valaxy 0.18.1 → 0.18.2
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/client/layouts/empty.vue +3 -0
- package/client/main.ts +1 -1
- package/client/styles/common/code.scss +1 -2
- package/dist/chunk-Q6HC4A7A.cjs +146 -0
- package/dist/chunk-SDQ4EP7Z.mjs +147 -0
- 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.d.cts +4 -2
- package/dist/node/index.d.ts +4 -2
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs +1 -1
- package/package.json +12 -12
- package/dist/chunk-PY7U2LJ4.cjs +0 -146
- package/dist/chunk-QNA2UBUL.mjs +0 -147
- /package/dist/{chunk-MJRGR35B.mjs → chunk-5OREE7SY.mjs} +0 -0
- /package/dist/{chunk-RWOIGW5M.cjs → chunk-ZAC5357O.cjs} +0 -0
- /package/dist/{config-qoiMoYQY.d.cts → config-BqkMQ-w8.d.cts} +0 -0
- /package/dist/{config-qoiMoYQY.d.ts → config-BqkMQ-w8.d.ts} +0 -0
package/dist/chunk-QNA2UBUL.mjs
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
-
import{a as B,b as S,c as Z,d as c}from"./chunk-MJRGR35B.mjs";var he=S((a1,gn)=>{"use strict";c();var tp=B("tty"),rp=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||tp.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),Y=(e,t,r=e)=>n=>{let o=""+n,i=o.indexOf(t,e.length);return~i?e+Bi(o,t,r,i)+t:e+o+t},Bi=(e,t,r,n)=>{let o=e.substring(0,n)+r,i=e.substring(n+t.length),s=i.indexOf(t);return~s?o+Bi(i,t,r,s):o+i},Ui=(e=rp)=>({isColorSupported:e,reset:e?t=>`\x1B[0m${t}\x1B[0m`:String,bold:e?Y("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:e?Y("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:e?Y("\x1B[3m","\x1B[23m"):String,underline:e?Y("\x1B[4m","\x1B[24m"):String,inverse:e?Y("\x1B[7m","\x1B[27m"):String,hidden:e?Y("\x1B[8m","\x1B[28m"):String,strikethrough:e?Y("\x1B[9m","\x1B[29m"):String,black:e?Y("\x1B[30m","\x1B[39m"):String,red:e?Y("\x1B[31m","\x1B[39m"):String,green:e?Y("\x1B[32m","\x1B[39m"):String,yellow:e?Y("\x1B[33m","\x1B[39m"):String,blue:e?Y("\x1B[34m","\x1B[39m"):String,magenta:e?Y("\x1B[35m","\x1B[39m"):String,cyan:e?Y("\x1B[36m","\x1B[39m"):String,white:e?Y("\x1B[37m","\x1B[39m"):String,gray:e?Y("\x1B[90m","\x1B[39m"):String,bgBlack:e?Y("\x1B[40m","\x1B[49m"):String,bgRed:e?Y("\x1B[41m","\x1B[49m"):String,bgGreen:e?Y("\x1B[42m","\x1B[49m"):String,bgYellow:e?Y("\x1B[43m","\x1B[49m"):String,bgBlue:e?Y("\x1B[44m","\x1B[49m"):String,bgMagenta:e?Y("\x1B[45m","\x1B[49m"):String,bgCyan:e?Y("\x1B[46m","\x1B[49m"):String,bgWhite:e?Y("\x1B[47m","\x1B[49m"):String});gn.exports=Ui();gn.exports.createColors=Ui});var Wi=S(ht=>{"use strict";c();Object.defineProperty(ht,"__esModule",{value:!0});ht.splitWhen=ht.flatten=void 0;function np(e){return e.reduce((t,r)=>[].concat(t,r),[])}ht.flatten=np;function op(e,t){let r=[[]],n=0;for(let o of e)t(o)?(n++,r[n]=[]):r[n].push(o);return r}ht.splitWhen=op});var Gi=S(sr=>{"use strict";c();Object.defineProperty(sr,"__esModule",{value:!0});sr.isEnoentCodeError=void 0;function ip(e){return e.code==="ENOENT"}sr.isEnoentCodeError=ip});var Ki=S(ar=>{"use strict";c();Object.defineProperty(ar,"__esModule",{value:!0});ar.createDirentFromStats=void 0;var hn=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 sp(e,t){return new hn(e,t)}ar.createDirentFromStats=sp});var Qi=S(re=>{"use strict";c();Object.defineProperty(re,"__esModule",{value:!0});re.convertPosixPathToPattern=re.convertWindowsPathToPattern=re.convertPathToPattern=re.escapePosixPath=re.escapeWindowsPath=re.escape=re.removeLeadingDotSegment=re.makeAbsolute=re.unixify=void 0;var ap=B("os"),lp=B("path"),Yi=ap.platform()==="win32",cp=2,up=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,fp=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,pp=/^\\\\([.?])/,dp=/\\(?![!()+@[\]{}])/g;function mp(e){return e.replace(/\\/g,"/")}re.unixify=mp;function gp(e,t){return lp.resolve(e,t)}re.makeAbsolute=gp;function hp(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(cp)}return e}re.removeLeadingDotSegment=hp;re.escape=Yi?yn:vn;function yn(e){return e.replace(fp,"\\$2")}re.escapeWindowsPath=yn;function vn(e){return e.replace(up,"\\$2")}re.escapePosixPath=vn;re.convertPathToPattern=Yi?zi:Xi;function zi(e){return yn(e).replace(pp,"//$1").replace(dp,"/")}re.convertWindowsPathToPattern=zi;function Xi(e){return vn(e)}re.convertPosixPathToPattern=Xi});var Zi=S((y1,Ji)=>{"use strict";c();Ji.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 rs=S((x1,ts)=>{"use strict";c();var yp=Zi(),es={"{":"}","(":")","[":"]"},vp=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 f=es[a];if(f){var u=e.indexOf(f,t);u!==-1&&(t=u+1)}if(e[t]==="!")return!0}else t++}return!1},xp=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=es[r];if(n){var o=e.indexOf(n,t);o!==-1&&(t=o+1)}if(e[t]==="!")return!0}else t++}return!1};ts.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(yp(t))return!0;var n=vp;return r&&r.strict===!1&&(n=xp),n(t)}});var os=S((C1,ns)=>{"use strict";c();var _p=rs(),Cp=B("path").posix.dirname,bp=B("os").platform()==="win32",xn="/",Sp=/\\/g,Rp=/[\{\[].*[\}\]]$/,wp=/(^|[^\\])([\{\[]|\([^\)]+$)/,Ep=/\\([\!\*\?\|\[\]\(\)\{\}])/g;ns.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&bp&&t.indexOf(xn)<0&&(t=t.replace(Sp,xn)),Rp.test(t)&&(t+=xn),t+="a";do t=Cp(t);while(_p(t)||wp.test(t));return t.replace(Ep,"$1")}});var lr=S(be=>{"use strict";c();be.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;be.find=(e,t)=>e.nodes.find(r=>r.type===t);be.exceedsLimit=(e,t,r=1,n)=>n===!1||!be.isInteger(e)||!be.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;be.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)};be.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);be.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;be.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;be.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);be.flatten=(...e)=>{let t=[],r=n=>{for(let o=0;o<n.length;o++){let i=n[o];Array.isArray(i)?r(i,t):i!==void 0&&t.push(i)}return t};return r(e),t}});var cr=S((w1,ss)=>{"use strict";c();var is=lr();ss.exports=(e,t={})=>{let r=(n,o={})=>{let i=t.escapeInvalid&&is.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(i||s)&&is.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let f of n.nodes)a+=r(f);return a};return r(e)}});var ls=S((A1,as)=>{"use strict";c();as.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var ys=S((P1,hs)=>{"use strict";c();var cs=ls(),nt=(e,t,r)=>{if(cs(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(cs(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),f=e+":"+t+"="+o+i+s+a;if(nt.cache.hasOwnProperty(f))return nt.cache[f].result;let u=Math.min(e,t),l=Math.max(e,t);if(Math.abs(u-l)===1){let C=e+"|"+t;return n.capture?`(${C})`:n.wrap===!1?C:`(?:${C})`}let d=gs(e)||gs(t),p={min:e,max:t,a:u,b:l},y=[],x=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),u<0){let C=l<0?Math.abs(l):1;x=us(C,Math.abs(u),p,n),u=p.a=0}return l>=0&&(y=us(u,l,p,n)),p.negatives=x,p.positives=y,p.result=Ap(x,y,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&y.length+x.length>1&&(p.result=`(?:${p.result})`),nt.cache[f]=p,p.result};function Ap(e,t,r){let n=_n(e,t,"-",!1,r)||[],o=_n(t,e,"",!1,r)||[],i=_n(e,t,"-?",!0,r)||[];return n.concat(i).concat(o).join("|")}function kp(e,t){let r=1,n=1,o=ps(e,r),i=new Set([t]);for(;e<=o&&o<=t;)i.add(o),r+=1,o=ps(e,r);for(o=ds(t+1,n)-1;e<o&&o<=t;)i.add(o),n+=1,o=ds(t+1,n)-1;return i=[...i],i.sort(Tp),i}function Pp(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=Op(e,t),o=n.length,i="",s=0;for(let a=0;a<o;a++){let[f,u]=n[a];f===u?i+=f:f!=="0"||u!=="9"?i+=$p(f,u,r):s++}return s&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[s],digits:o}}function us(e,t,r,n){let o=kp(e,t),i=[],s=e,a;for(let f=0;f<o.length;f++){let u=o[f],l=Pp(String(s),String(u),n),d="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+ms(a.count),s=u+1;continue}r.isPadded&&(d=Fp(u,r,n)),l.string=d+l.pattern+ms(l.count),i.push(l),s=u+1,a=l}return i}function _n(e,t,r,n,o){let i=[];for(let s of e){let{string:a}=s;!n&&!fs(t,"string",a)&&i.push(r+a),n&&fs(t,"string",a)&&i.push(r+a)}return i}function Op(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function Tp(e,t){return e>t?1:t>e?-1:0}function fs(e,t,r){return e.some(n=>n[t]===r)}function ps(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function ds(e,t){return e-e%Math.pow(10,t)}function ms(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function $p(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function gs(e){return/^-?(0+)\d/.test(e)}function Fp(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}}`}}nt.cache={};nt.clearCache=()=>nt.cache={};hs.exports=nt});var Sn=S((T1,ws)=>{"use strict";c();var Ip=B("util"),_s=ys(),vs=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Mp=e=>t=>e===!0?Number(t):String(t),Cn=e=>typeof e=="number"||typeof e=="string"&&e!=="",Mt=e=>Number.isInteger(+e),bn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Np=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Lp=(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},xs=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},Dp=(e,t)=>{e.negatives.sort((s,a)=>s<a?-1:s>a?1:0),e.positives.sort((s,a)=>s<a?-1:s>a?1:0);let r=t.capture?"":"?:",n="",o="",i;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(o=`-(${r}${e.negatives.join("|")})`),n&&o?i=`${n}|${o}`:i=n||o,t.wrap?`(${r}${i})`:i},Cs=(e,t,r,n)=>{if(r)return _s(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);if(e===t)return o;let i=String.fromCharCode(t);return`[${o}-${i}]`},bs=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,o=r.capture?"":"?:";return n?`(${o}${e.join("|")})`:e.join("|")}return _s(e,t,r)},Ss=(...e)=>new RangeError("Invalid range arguments: "+Ip.inspect(...e)),Rs=(e,t,r)=>{if(r.strictRanges===!0)throw Ss([e,t]);return[]},Vp=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},jp=(e,t,r=1,n={})=>{let o=Number(e),i=Number(t);if(!Number.isInteger(o)||!Number.isInteger(i)){if(n.strictRanges===!0)throw Ss([e,t]);return[]}o===0&&(o=0),i===0&&(i=0);let s=o>i,a=String(e),f=String(t),u=String(r);r=Math.max(Math.abs(r),1);let l=bn(a)||bn(f)||bn(u),d=l?Math.max(a.length,f.length,u.length):0,p=l===!1&&Np(e,t,n)===!1,y=n.transform||Mp(p);if(n.toRegex&&r===1)return Cs(xs(e,d),xs(t,d),!0,n);let x={negatives:[],positives:[]},C=P=>x[P<0?"negatives":"positives"].push(Math.abs(P)),b=[],w=0;for(;s?o>=i:o<=i;)n.toRegex===!0&&r>1?C(o):b.push(Lp(y(o,w),d,p)),o=s?o-r:o+r,w++;return n.toRegex===!0?r>1?Dp(x,n):bs(b,null,{wrap:!1,...n}):b},Hp=(e,t,r=1,n={})=>{if(!Mt(e)&&e.length>1||!Mt(t)&&t.length>1)return Rs(e,t,n);let o=n.transform||(p=>String.fromCharCode(p)),i=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=i>s,f=Math.min(i,s),u=Math.max(i,s);if(n.toRegex&&r===1)return Cs(f,u,!1,n);let l=[],d=0;for(;a?i>=s:i<=s;)l.push(o(i,d)),i=a?i-r:i+r,d++;return n.toRegex===!0?bs(l,null,{wrap:!1,options:n}):l},ur=(e,t,r,n={})=>{if(t==null&&Cn(e))return[e];if(!Cn(e)||!Cn(t))return Rs(e,t,n);if(typeof r=="function")return ur(e,t,1,{transform:r});if(vs(r))return ur(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)?jp(e,t,r,o):Hp(e,t,Math.max(Math.abs(r),1),o):r!=null&&!vs(r)?Vp(r,o):ur(e,t,1,r)};ws.exports=ur});var ks=S((F1,As)=>{"use strict";c();var qp=Sn(),Es=lr(),Bp=(e,t={})=>{let r=(n,o={})=>{let i=Es.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a=i===!0||s===!0,f=t.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0||n.isClose===!0)return f+n.value;if(n.type==="open")return a?f+n.value:"(";if(n.type==="close")return a?f+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 l=Es.reduce(n.nodes),d=qp(...l,{...t,wrap:!1,toRegex:!0});if(d.length!==0)return l.length>1&&d.length>1?`(${d})`:d}if(n.nodes)for(let l of n.nodes)u+=r(l,n);return u};return r(e)};As.exports=Bp});var Ts=S((M1,Os)=>{"use strict";c();var Up=Sn(),Ps=cr(),yt=lr(),ot=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?yt.flatten(t).map(o=>`{${o}}`):t;for(let o of e)if(Array.isArray(o))for(let i of o)n.push(ot(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?ot(o,i,r):o+i);return yt.flatten(n)},Wp=(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(ot(a.pop(),Ps(o,t)));return}if(o.type==="brace"&&o.invalid!==!0&&o.nodes.length===2){a.push(ot(a.pop(),["{}"]));return}if(o.nodes&&o.ranges>0){let d=yt.reduce(o.nodes);if(yt.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=Up(...d,t);p.length===0&&(p=Ps(o,t)),a.push(ot(a.pop(),p)),o.nodes=[];return}let f=yt.encloseBrace(o),u=o.queue,l=o;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,u=l.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(ot(a.pop(),u,f));continue}if(p.value&&p.type!=="open"){u.push(ot(u.pop(),p.value));continue}p.nodes&&n(p,o)}return u};return yt.flatten(n(e))};Os.exports=Wp});var Fs=S((L1,$s)=>{"use strict";c();$s.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
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 Ds=S((V1,Ls)=>{"use strict";c();var Gp=cr(),{MAX_LENGTH:Is,CHAR_BACKSLASH:Rn,CHAR_BACKTICK:Kp,CHAR_COMMA:Yp,CHAR_DOT:zp,CHAR_LEFT_PARENTHESES:Xp,CHAR_RIGHT_PARENTHESES:Qp,CHAR_LEFT_CURLY_BRACE:Jp,CHAR_RIGHT_CURLY_BRACE:Zp,CHAR_LEFT_SQUARE_BRACKET:Ms,CHAR_RIGHT_SQUARE_BRACKET:Ns,CHAR_DOUBLE_QUOTE:ed,CHAR_SINGLE_QUOTE:td,CHAR_NO_BREAK_SPACE:rd,CHAR_ZERO_WIDTH_NOBREAK_SPACE:nd}=Fs(),od=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Is,r.maxLength):Is;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,f=0,u=e.length,l=0,d=0,p,y={},x=()=>e[l++],C=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(C({type:"bos"});l<u;)if(s=i[i.length-1],p=x(),!(p===nd||p===rd)){if(p===Rn){C({type:"text",value:(t.keepEscaping?p:"")+x()});continue}if(p===Ns){C({type:"text",value:"\\"+p});continue}if(p===Ms){f++;let b=!0,w;for(;l<u&&(w=x());){if(p+=w,w===Ms){f++;continue}if(w===Rn){p+=x();continue}if(w===Ns&&(f--,f===0))break}C({type:"text",value:p});continue}if(p===Xp){s=C({type:"paren",nodes:[]}),i.push(s),C({type:"text",value:p});continue}if(p===Qp){if(s.type!=="paren"){C({type:"text",value:p});continue}s=i.pop(),C({type:"text",value:p}),s=i[i.length-1];continue}if(p===ed||p===td||p===Kp){let b=p,w;for(t.keepQuotes!==!0&&(p="");l<u&&(w=x());){if(w===Rn){p+=w+x();continue}if(w===b){t.keepQuotes===!0&&(p+=w);break}p+=w}C({type:"text",value:p});continue}if(p===Jp){d++;let w={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||s.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};s=C(w),i.push(s),C({type:"open",value:p});continue}if(p===Zp){if(s.type!=="brace"){C({type:"text",value:p});continue}let b="close";s=i.pop(),s.close=!0,C({type:b,value:p}),d--,s=i[i.length-1];continue}if(p===Yp&&d>0){if(s.ranges>0){s.ranges=0;let b=s.nodes.shift();s.nodes=[b,{type:"text",value:Gp(s)}]}C({type:"comma",value:p}),s.commas++;continue}if(p===zp&&d>0&&s.commas===0){let b=s.nodes;if(d===0||b.length===0){C({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 w=b[b.length-1];w.value+=a.value+p,a=w,s.ranges--;continue}C({type:"dot",value:p});continue}C({type:"text",value:p})}do if(s=i.pop(),s.type!=="root"){s.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});let b=i[i.length-1],w=b.nodes.indexOf(s);b.nodes.splice(w,1,...s.nodes)}while(i.length>0);return C({type:"eos"}),o};Ls.exports=od});var Hs=S((H1,js)=>{"use strict";c();var Vs=cr(),id=ks(),sd=Ts(),ad=Ds(),xe=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let o=xe.create(n,t);Array.isArray(o)?r.push(...o):r.push(o)}else r=[].concat(xe.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};xe.parse=(e,t={})=>ad(e,t);xe.stringify=(e,t={})=>Vs(typeof e=="string"?xe.parse(e,t):e,t);xe.compile=(e,t={})=>(typeof e=="string"&&(e=xe.parse(e,t)),id(e,t));xe.expand=(e,t={})=>{typeof e=="string"&&(e=xe.parse(e,t));let r=sd(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};xe.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?xe.compile(e,t):xe.expand(e,t);js.exports=xe});var Nt=S((B1,Gs)=>{"use strict";c();var ld=B("path"),Te="\\\\/",qs=`[^${Te}]`,De="\\.",cd="\\+",ud="\\?",fr="\\/",fd="(?=.)",Bs="[^/]",wn=`(?:${fr}|$)`,Us=`(?:^|${fr})`,En=`${De}{1,2}${wn}`,pd=`(?!${De})`,dd=`(?!${Us}${En})`,md=`(?!${De}{0,1}${wn})`,gd=`(?!${En})`,hd=`[^.${fr}]`,yd=`${Bs}*?`,Ws={DOT_LITERAL:De,PLUS_LITERAL:cd,QMARK_LITERAL:ud,SLASH_LITERAL:fr,ONE_CHAR:fd,QMARK:Bs,END_ANCHOR:wn,DOTS_SLASH:En,NO_DOT:pd,NO_DOTS:dd,NO_DOT_SLASH:md,NO_DOTS_SLASH:gd,QMARK_NO_DOT:hd,STAR:yd,START_ANCHOR:Us},vd={...Ws,SLASH_LITERAL:`[${Te}]`,QMARK:qs,STAR:`${qs}*?`,DOTS_SLASH:`${De}{1,2}(?:[${Te}]|$)`,NO_DOT:`(?!${De})`,NO_DOTS:`(?!(?:^|[${Te}])${De}{1,2}(?:[${Te}]|$))`,NO_DOT_SLASH:`(?!${De}{0,1}(?:[${Te}]|$))`,NO_DOTS_SLASH:`(?!${De}{1,2}(?:[${Te}]|$))`,QMARK_NO_DOT:`[^.${Te}]`,START_ANCHOR:`(?:^|[${Te}])`,END_ANCHOR:`(?:[${Te}]|$)`},xd={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"};Gs.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:xd,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:ld.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?vd:Ws}}});var Lt=S(ve=>{"use strict";c();var _d=B("path"),Cd=process.platform==="win32",{REGEX_BACKSLASH:bd,REGEX_REMOVE_BACKSLASH:Sd,REGEX_SPECIAL_CHARS:Rd,REGEX_SPECIAL_CHARS_GLOBAL:wd}=Nt();ve.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ve.hasRegexChars=e=>Rd.test(e);ve.isRegexChar=e=>e.length===1&&ve.hasRegexChars(e);ve.escapeRegex=e=>e.replace(wd,"\\$1");ve.toPosixSlashes=e=>e.replace(bd,"/");ve.removeBackslashes=e=>e.replace(Sd,t=>t==="\\"?"":t);ve.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ve.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Cd===!0||_d.sep==="\\";ve.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ve.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ve.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ve.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i}});var ea=S((K1,Zs)=>{"use strict";c();var Ks=Lt(),{CHAR_ASTERISK:An,CHAR_AT:Ed,CHAR_BACKWARD_SLASH:Dt,CHAR_COMMA:Ad,CHAR_DOT:kn,CHAR_EXCLAMATION_MARK:Pn,CHAR_FORWARD_SLASH:Js,CHAR_LEFT_CURLY_BRACE:On,CHAR_LEFT_PARENTHESES:Tn,CHAR_LEFT_SQUARE_BRACKET:kd,CHAR_PLUS:Pd,CHAR_QUESTION_MARK:Ys,CHAR_RIGHT_CURLY_BRACE:Od,CHAR_RIGHT_PARENTHESES:zs,CHAR_RIGHT_SQUARE_BRACKET:Td}=Nt(),Xs=e=>e===Js||e===Dt,Qs=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},$d=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,i=[],s=[],a=[],f=e,u=-1,l=0,d=0,p=!1,y=!1,x=!1,C=!1,b=!1,w=!1,P=!1,I=!1,N=!1,O=!1,M=0,E,A,$={value:"",depth:0,isGlob:!1},G=()=>u>=n,h=()=>f.charCodeAt(u+1),T=()=>(E=A,f.charCodeAt(++u));for(;u<n;){A=T();let q;if(A===Dt){P=$.backslashes=!0,A=T(),A===On&&(w=!0);continue}if(w===!0||A===On){for(M++;G()!==!0&&(A=T());){if(A===Dt){P=$.backslashes=!0,T();continue}if(A===On){M++;continue}if(w!==!0&&A===kn&&(A=T())===kn){if(p=$.isBrace=!0,x=$.isGlob=!0,O=!0,o===!0)continue;break}if(w!==!0&&A===Ad){if(p=$.isBrace=!0,x=$.isGlob=!0,O=!0,o===!0)continue;break}if(A===Od&&(M--,M===0)){w=!1,p=$.isBrace=!0,O=!0;break}}if(o===!0)continue;break}if(A===Js){if(i.push(u),s.push($),$={value:"",depth:0,isGlob:!1},O===!0)continue;if(E===kn&&u===l+1){l+=2;continue}d=u+1;continue}if(r.noext!==!0&&(A===Pd||A===Ed||A===An||A===Ys||A===Pn)===!0&&h()===Tn){if(x=$.isGlob=!0,C=$.isExtglob=!0,O=!0,A===Pn&&u===l&&(N=!0),o===!0){for(;G()!==!0&&(A=T());){if(A===Dt){P=$.backslashes=!0,A=T();continue}if(A===zs){x=$.isGlob=!0,O=!0;break}}continue}break}if(A===An){if(E===An&&(b=$.isGlobstar=!0),x=$.isGlob=!0,O=!0,o===!0)continue;break}if(A===Ys){if(x=$.isGlob=!0,O=!0,o===!0)continue;break}if(A===kd){for(;G()!==!0&&(q=T());){if(q===Dt){P=$.backslashes=!0,T();continue}if(q===Td){y=$.isBracket=!0,x=$.isGlob=!0,O=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&A===Pn&&u===l){I=$.negated=!0,l++;continue}if(r.noparen!==!0&&A===Tn){if(x=$.isGlob=!0,o===!0){for(;G()!==!0&&(A=T());){if(A===Tn){P=$.backslashes=!0,A=T();continue}if(A===zs){O=!0;break}}continue}break}if(x===!0){if(O=!0,o===!0)continue;break}}r.noext===!0&&(C=!1,x=!1);let L=f,j="",v="";l>0&&(j=f.slice(0,l),f=f.slice(l),d-=l),L&&x===!0&&d>0?(L=f.slice(0,d),v=f.slice(d)):x===!0?(L="",v=f):L=f,L&&L!==""&&L!=="/"&&L!==f&&Xs(L.charCodeAt(L.length-1))&&(L=L.slice(0,-1)),r.unescape===!0&&(v&&(v=Ks.removeBackslashes(v)),L&&P===!0&&(L=Ks.removeBackslashes(L)));let _={prefix:j,input:e,start:l,base:L,glob:v,isBrace:p,isBracket:y,isGlob:x,isExtglob:C,isGlobstar:b,negated:I,negatedExtglob:N};if(r.tokens===!0&&(_.maxDepth=0,Xs(A)||s.push($),_.tokens=s),r.parts===!0||r.tokens===!0){let q;for(let F=0;F<i.length;F++){let K=q?q+1:l,te=i[F],J=e.slice(K,te);r.tokens&&(F===0&&l!==0?(s[F].isPrefix=!0,s[F].value=j):s[F].value=J,Qs(s[F]),_.maxDepth+=s[F].depth),(F!==0||J!=="")&&a.push(J),q=te}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 _};Zs.exports=$d});var na=S((z1,ra)=>{"use strict";c();var pr=Nt(),_e=Lt(),{MAX_LENGTH:dr,POSIX_REGEX_SOURCE:Fd,REGEX_NON_SPECIAL_CHARS:Id,REGEX_SPECIAL_CHARS_BACKREF:Md,REPLACEMENTS:ta}=pr,Nd=(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=>_e.escapeRegex(o)).join("..")}return r},vt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,$n=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=ta[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?"":"?:",f=_e.isWindows(t),u=pr.globChars(f),l=pr.extglobChars(u),{DOT_LITERAL:d,PLUS_LITERAL:p,SLASH_LITERAL:y,ONE_CHAR:x,DOTS_SLASH:C,NO_DOT:b,NO_DOT_SLASH:w,NO_DOTS_SLASH:P,QMARK:I,QMARK_NO_DOT:N,STAR:O,START_ANCHOR:M}=u,E=k=>`(${a}(?:(?!${M}${k.dot?C:d}).)*?)`,A=r.dot?"":b,$=r.dot?I:N,G=r.bash===!0?E(r):O;r.capture&&(G=`(${G})`),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=_e.removePrefix(e,h),o=e.length;let T=[],L=[],j=[],v=i,_,q=()=>h.index===o-1,F=h.peek=(k=1)=>e[h.index+k],K=h.advance=()=>e[++h.index]||"",te=()=>e.slice(h.index+1),J=(k="",W=0)=>{h.consumed+=k,h.index+=W},me=k=>{h.output+=k.output!=null?k.output:k.value,J(k.value)},ae=()=>{let k=1;for(;F()==="!"&&(F(2)!=="("||F(3)==="?");)K(),h.start++,k++;return k%2===0?!1:(h.negated=!0,h.start++,!0)},Le=k=>{h[k]++,j.push(k)},ue=k=>{h[k]--,j.pop()},V=k=>{if(v.type==="globstar"){let W=h.braces>0&&(k.type==="comma"||k.type==="brace"),R=k.extglob===!0||T.length&&(k.type==="pipe"||k.type==="paren");k.type!=="slash"&&k.type!=="paren"&&!W&&!R&&(h.output=h.output.slice(0,-v.output.length),v.type="star",v.value="*",v.output=G,h.output+=v.output)}if(T.length&&k.type!=="paren"&&(T[T.length-1].inner+=k.value),(k.value||k.output)&&me(k),v&&v.type==="text"&&k.type==="text"){v.value+=k.value,v.output=(v.output||"")+k.value;return}k.prev=v,s.push(k),v=k},ye=(k,W)=>{let R={...l[W],conditions:1,inner:""};R.prev=v,R.parens=h.parens,R.output=h.output;let H=(r.capture?"(":"")+R.open;Le("parens"),V({type:k,value:W,output:h.output?"":x}),V({type:"paren",extglob:!0,value:K(),output:H}),T.push(R)},mt=k=>{let W=k.close+(r.capture?")":""),R;if(k.type==="negate"){let H=G;if(k.inner&&k.inner.length>1&&k.inner.includes("/")&&(H=E(r)),(H!==G||q()||/^\)+$/.test(te()))&&(W=k.close=`)$))${H}`),k.inner.includes("*")&&(R=te())&&/^\.[^\\/.]+$/.test(R)){let X=$n(R,{...t,fastpaths:!1}).output;W=k.close=`)${X})${H})`}k.prev.type==="bos"&&(h.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:_,output:W}),ue("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let k=!1,W=e.replace(Md,(R,H,X,ge,oe,mn)=>ge==="\\"?(k=!0,R):ge==="?"?H?H+ge+(oe?I.repeat(oe.length):""):mn===0?$+(oe?I.repeat(oe.length):""):I.repeat(X.length):ge==="."?d.repeat(X.length):ge==="*"?H?H+ge+(oe?G:""):G:H?R:`\\${R}`);return k===!0&&(r.unescape===!0?W=W.replace(/\\/g,""):W=W.replace(/\\+/g,R=>R.length%2===0?"\\\\":R?"\\":"")),W===e&&r.contains===!0?(h.output=e,h):(h.output=_e.wrapOutput(W,h,t),h)}for(;!q();){if(_=K(),_==="\0")continue;if(_==="\\"){let R=F();if(R==="/"&&r.bash!==!0||R==="."||R===";")continue;if(!R){_+="\\",V({type:"text",value:_});continue}let H=/^\\+/.exec(te()),X=0;if(H&&H[0].length>2&&(X=H[0].length,h.index+=X,X%2!==0&&(_+="\\")),r.unescape===!0?_=K():_+=K(),h.brackets===0){V({type:"text",value:_});continue}}if(h.brackets>0&&(_!=="]"||v.value==="["||v.value==="[^")){if(r.posix!==!1&&_===":"){let R=v.value.slice(1);if(R.includes("[")&&(v.posix=!0,R.includes(":"))){let H=v.value.lastIndexOf("["),X=v.value.slice(0,H),ge=v.value.slice(H+2),oe=Fd[ge];if(oe){v.value=X+oe,h.backtrack=!0,K(),!i.output&&s.indexOf(v)===1&&(i.output=x);continue}}}(_==="["&&F()!==":"||_==="-"&&F()==="]")&&(_=`\\${_}`),_==="]"&&(v.value==="["||v.value==="[^")&&(_=`\\${_}`),r.posix===!0&&_==="!"&&v.value==="["&&(_="^"),v.value+=_,me({value:_});continue}if(h.quotes===1&&_!=='"'){_=_e.escapeRegex(_),v.value+=_,me({value:_});continue}if(_==='"'){h.quotes=h.quotes===1?0:1,r.keepQuotes===!0&&V({type:"text",value:_});continue}if(_==="("){Le("parens"),V({type:"paren",value:_});continue}if(_===")"){if(h.parens===0&&r.strictBrackets===!0)throw new SyntaxError(vt("opening","("));let R=T[T.length-1];if(R&&h.parens===R.parens+1){mt(T.pop());continue}V({type:"paren",value:_,output:h.parens?")":"\\)"}),ue("parens");continue}if(_==="["){if(r.nobracket===!0||!te().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(vt("closing","]"));_=`\\${_}`}else Le("brackets");V({type:"bracket",value:_});continue}if(_==="]"){if(r.nobracket===!0||v&&v.type==="bracket"&&v.value.length===1){V({type:"text",value:_,output:`\\${_}`});continue}if(h.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(vt("opening","["));V({type:"text",value:_,output:`\\${_}`});continue}ue("brackets");let R=v.value.slice(1);if(v.posix!==!0&&R[0]==="^"&&!R.includes("/")&&(_=`/${_}`),v.value+=_,me({value:_}),r.literalBrackets===!1||_e.hasRegexChars(R))continue;let H=_e.escapeRegex(v.value);if(h.output=h.output.slice(0,-v.value.length),r.literalBrackets===!0){h.output+=H,v.value=H;continue}v.value=`(${a}${H}|${v.value})`,h.output+=v.value;continue}if(_==="{"&&r.nobrace!==!0){Le("braces");let R={type:"brace",value:_,output:"(",outputIndex:h.output.length,tokensIndex:h.tokens.length};L.push(R),V(R);continue}if(_==="}"){let R=L[L.length-1];if(r.nobrace===!0||!R){V({type:"text",value:_,output:_});continue}let H=")";if(R.dots===!0){let X=s.slice(),ge=[];for(let oe=X.length-1;oe>=0&&(s.pop(),X[oe].type!=="brace");oe--)X[oe].type!=="dots"&&ge.unshift(X[oe].value);H=Nd(ge,r),h.backtrack=!0}if(R.comma!==!0&&R.dots!==!0){let X=h.output.slice(0,R.outputIndex),ge=h.tokens.slice(R.tokensIndex);R.value=R.output="\\{",_=H="\\}",h.output=X;for(let oe of ge)h.output+=oe.output||oe.value}V({type:"brace",value:_,output:H}),ue("braces"),L.pop();continue}if(_==="|"){T.length>0&&T[T.length-1].conditions++,V({type:"text",value:_});continue}if(_===","){let R=_,H=L[L.length-1];H&&j[j.length-1]==="braces"&&(H.comma=!0,R="|"),V({type:"comma",value:_,output:R});continue}if(_==="/"){if(v.type==="dot"&&h.index===h.start+1){h.start=h.index+1,h.consumed="",h.output="",s.pop(),v=i;continue}V({type:"slash",value:_,output:y});continue}if(_==="."){if(h.braces>0&&v.type==="dot"){v.value==="."&&(v.output=d);let R=L[L.length-1];v.type="dots",v.output+=_,v.value+=_,R.dots=!0;continue}if(h.braces+h.parens===0&&v.type!=="bos"&&v.type!=="slash"){V({type:"text",value:_,output:d});continue}V({type:"dot",value:_,output:d});continue}if(_==="?"){if(!(v&&v.value==="(")&&r.noextglob!==!0&&F()==="("&&F(2)!=="?"){ye("qmark",_);continue}if(v&&v.type==="paren"){let H=F(),X=_;if(H==="<"&&!_e.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(v.value==="("&&!/[!=<:]/.test(H)||H==="<"&&!/<([!=]|\w+>)/.test(te()))&&(X=`\\${_}`),V({type:"text",value:_,output:X});continue}if(r.dot!==!0&&(v.type==="slash"||v.type==="bos")){V({type:"qmark",value:_,output:N});continue}V({type:"qmark",value:_,output:I});continue}if(_==="!"){if(r.noextglob!==!0&&F()==="("&&(F(2)!=="?"||!/[!=<:]/.test(F(3)))){ye("negate",_);continue}if(r.nonegate!==!0&&h.index===0){ae();continue}}if(_==="+"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){ye("plus",_);continue}if(v&&v.value==="("||r.regex===!1){V({type:"plus",value:_,output:p});continue}if(v&&(v.type==="bracket"||v.type==="paren"||v.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=Id.exec(te());R&&(_+=R[0],h.index+=R[0].length),V({type:"text",value:_});continue}if(v&&(v.type==="globstar"||v.star===!0)){v.type="star",v.star=!0,v.value+=_,v.output=G,h.backtrack=!0,h.globstar=!0,J(_);continue}let k=te();if(r.noextglob!==!0&&/^\([^?]/.test(k)){ye("star",_);continue}if(v.type==="star"){if(r.noglobstar===!0){J(_);continue}let R=v.prev,H=R.prev,X=R.type==="slash"||R.type==="bos",ge=H&&(H.type==="star"||H.type==="globstar");if(r.bash===!0&&(!X||k[0]&&k[0]!=="/")){V({type:"star",value:_,output:""});continue}let oe=h.braces>0&&(R.type==="comma"||R.type==="brace"),mn=T.length&&(R.type==="pipe"||R.type==="paren");if(!X&&R.type!=="paren"&&!oe&&!mn){V({type:"star",value:_,output:""});continue}for(;k.slice(0,3)==="/**";){let ir=e[h.index+4];if(ir&&ir!=="/")break;k=k.slice(3),J("/**",3)}if(R.type==="bos"&&q()){v.type="globstar",v.value+=_,v.output=E(r),h.output=v.output,h.globstar=!0,J(_);continue}if(R.type==="slash"&&R.prev.type!=="bos"&&!ge&&q()){h.output=h.output.slice(0,-(R.output+v.output).length),R.output=`(?:${R.output}`,v.type="globstar",v.output=E(r)+(r.strictSlashes?")":"|$)"),v.value+=_,h.globstar=!0,h.output+=R.output+v.output,J(_);continue}if(R.type==="slash"&&R.prev.type!=="bos"&&k[0]==="/"){let ir=k[1]!==void 0?"|$":"";h.output=h.output.slice(0,-(R.output+v.output).length),R.output=`(?:${R.output}`,v.type="globstar",v.output=`${E(r)}${y}|${y}${ir})`,v.value+=_,h.output+=R.output+v.output,h.globstar=!0,J(_+K()),V({type:"slash",value:"/",output:""});continue}if(R.type==="bos"&&k[0]==="/"){v.type="globstar",v.value+=_,v.output=`(?:^|${y}|${E(r)}${y})`,h.output=v.output,h.globstar=!0,J(_+K()),V({type:"slash",value:"/",output:""});continue}h.output=h.output.slice(0,-v.output.length),v.type="globstar",v.output=E(r),v.value+=_,h.output+=v.output,h.globstar=!0,J(_);continue}let W={type:"star",value:_,output:G};if(r.bash===!0){W.output=".*?",(v.type==="bos"||v.type==="slash")&&(W.output=A+W.output),V(W);continue}if(v&&(v.type==="bracket"||v.type==="paren")&&r.regex===!0){W.output=_,V(W);continue}(h.index===h.start||v.type==="slash"||v.type==="dot")&&(v.type==="dot"?(h.output+=w,v.output+=w):r.dot===!0?(h.output+=P,v.output+=P):(h.output+=A,v.output+=A),F()!=="*"&&(h.output+=x,v.output+=x)),V(W)}for(;h.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(vt("closing","]"));h.output=_e.escapeLast(h.output,"["),ue("brackets")}for(;h.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(vt("closing",")"));h.output=_e.escapeLast(h.output,"("),ue("parens")}for(;h.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(vt("closing","}"));h.output=_e.escapeLast(h.output,"{"),ue("braces")}if(r.strictSlashes!==!0&&(v.type==="star"||v.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};$n.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=ta[e]||e;let i=_e.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:f,DOTS_SLASH:u,NO_DOT:l,NO_DOTS:d,NO_DOTS_SLASH:p,STAR:y,START_ANCHOR:x}=pr.globChars(i),C=r.dot?d:l,b=r.dot?p:l,w=r.capture?"":"?:",P={negated:!1,prefix:""},I=r.bash===!0?".*?":y;r.capture&&(I=`(${I})`);let N=A=>A.noglobstar===!0?I:`(${w}(?:(?!${x}${A.dot?u:s}).)*?)`,O=A=>{switch(A){case"*":return`${C}${f}${I}`;case".*":return`${s}${f}${I}`;case"*.*":return`${C}${I}${s}${f}${I}`;case"*/*":return`${C}${I}${a}${f}${b}${I}`;case"**":return C+N(r);case"**/*":return`(?:${C}${N(r)}${a})?${b}${f}${I}`;case"**/*.*":return`(?:${C}${N(r)}${a})?${b}${I}${s}${f}${I}`;case"**/.*":return`(?:${C}${N(r)}${a})?${s}${f}${I}`;default:{let $=/^(.*?)\.(\w+)$/.exec(A);if(!$)return;let G=O($[1]);return G?G+s+$[2]:void 0}}},M=_e.removePrefix(e,P),E=O(M);return E&&r.strictSlashes!==!0&&(E+=`${a}?`),E};ra.exports=$n});var ia=S((Q1,oa)=>{"use strict";c();var Ld=B("path"),Dd=ea(),Fn=na(),In=Lt(),Vd=Nt(),jd=e=>e&&typeof e=="object"&&!Array.isArray(e),ee=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(p=>ee(p,t,r));return p=>{for(let y of l){let x=y(p);if(x)return x}return!1}}let n=jd(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=In.isWindows(t),s=n?ee.compileRe(e,t):ee.makeRe(e,t,!1,!0),a=s.state;delete s.state;let f=()=>!1;if(o.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};f=ee(o.ignore,l,r)}let u=(l,d=!1)=>{let{isMatch:p,match:y,output:x}=ee.test(l,s,t,{glob:e,posix:i}),C={glob:e,state:a,regex:s,posix:i,input:l,output:x,match:y,isMatch:p};return typeof o.onResult=="function"&&o.onResult(C),p===!1?(C.isMatch=!1,d?C:!1):f(l)?(typeof o.onIgnore=="function"&&o.onIgnore(C),C.isMatch=!1,d?C:!1):(typeof o.onMatch=="function"&&o.onMatch(C),d?C:!0)};return r&&(u.state=a),u};ee.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?In.toPosixSlashes:null),a=e===n,f=a&&s?s(e):e;return a===!1&&(f=s?s(e):e,a=f===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=ee.matchBase(e,t,r,o):a=t.exec(f)),{isMatch:!!a,match:a,output:f}};ee.matchBase=(e,t,r,n=In.isWindows(r))=>(t instanceof RegExp?t:ee.makeRe(t,r)).test(Ld.basename(e));ee.isMatch=(e,t,r)=>ee(t,r)(e);ee.parse=(e,t)=>Array.isArray(e)?e.map(r=>ee.parse(r,t)):Fn(e,{...t,fastpaths:!1});ee.scan=(e,t)=>Dd(e,t);ee.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 f=ee.toRegex(a,t);return n===!0&&(f.state=e),f};ee.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=Fn.fastpaths(e,t)),o.output||(o=Fn(e,t)),ee.compileRe(o,t,r,n)};ee.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/$^/}};ee.constants=Vd;oa.exports=ee});var aa=S((Z1,sa)=>{"use strict";c();sa.exports=ia()});var pa=S((tC,fa)=>{"use strict";c();var ca=B("util"),ua=Hs(),$e=aa(),Mn=Lt(),la=e=>e===""||e==="./",z=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,o=new Set,i=new Set,s=0,a=l=>{i.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<t.length;l++){let d=$e(String(t[l]),{...r,onResult:a},!0),p=d.state.negated||d.state.negatedExtglob;p&&s++;for(let y of e){let x=d(y,!0);(p?!x.isMatch:x.isMatch)&&(p?n.add(x.output):(n.delete(x.output),o.add(x.output)))}}let u=(s===t.length?[...i]:[...o]).filter(l=>!n.has(l));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(l=>l.replace(/\\/g,"")):t}return u};z.match=z;z.matcher=(e,t)=>$e(e,t);z.isMatch=(e,t,r)=>$e(t,r)(e);z.any=z.isMatch;z.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(z(e,t,{...r,onResult:i}));for(let a of o)s.has(a)||n.add(a);return[...n]};z.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ca.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>z.contains(e,n,r));if(typeof t=="string"){if(la(e)||la(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return z.isMatch(e,t,{...r,contains:!0})};z.matchKeys=(e,t,r)=>{if(!Mn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=z(Object.keys(e),t,r),o={};for(let i of n)o[i]=e[i];return o};z.some=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=$e(String(o),r);if(n.some(s=>i(s)))return!0}return!1};z.every=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=$e(String(o),r);if(!n.every(s=>i(s)))return!1}return!0};z.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ca.inspect(e)}"`);return[].concat(t).every(n=>$e(n,r)(e))};z.capture=(e,t,r)=>{let n=Mn.isWindows(r),i=$e.makeRe(String(e),{...r,capture:!0}).exec(n?Mn.toPosixSlashes(t):t);if(i)return i.slice(1).map(s=>s===void 0?"":s)};z.makeRe=(...e)=>$e.makeRe(...e);z.scan=(...e)=>$e.scan(...e);z.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let o of ua(String(n),t))r.push($e.parse(o,t));return r};z.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:ua(e,t)};z.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return z.braces(e,{...t,expand:!0})};fa.exports=z});var _a=S(D=>{"use strict";c();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 Hd=B("path"),qd=os(),Nn=pa(),da="**",Bd="\\",Ud=/[*?]|^!/,Wd=/\[[^[]*]/,Gd=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Kd=/[!*+?@]\([^(]*\)/,Yd=/,|\.\./,zd=/(?!^)\/{2,}/g;function ma(e,t={}){return!ga(e,t)}D.isStaticPattern=ma;function ga(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Bd)||Ud.test(e)||Wd.test(e)||Gd.test(e)||t.extglob!==!1&&Kd.test(e)||t.braceExpansion!==!1&&Xd(e))}D.isDynamicPattern=ga;function Xd(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 Yd.test(n)}function Qd(e){return mr(e)?e.slice(1):e}D.convertToPositivePattern=Qd;function Jd(e){return"!"+e}D.convertToNegativePattern=Jd;function mr(e){return e.startsWith("!")&&e[1]!=="("}D.isNegativePattern=mr;function ha(e){return!mr(e)}D.isPositivePattern=ha;function Zd(e){return e.filter(mr)}D.getNegativePatterns=Zd;function em(e){return e.filter(ha)}D.getPositivePatterns=em;function tm(e){return e.filter(t=>!Ln(t))}D.getPatternsInsideCurrentDirectory=tm;function rm(e){return e.filter(Ln)}D.getPatternsOutsideCurrentDirectory=rm;function Ln(e){return e.startsWith("..")||e.startsWith("./..")}D.isPatternRelatedToParentDirectory=Ln;function nm(e){return qd(e,{flipBackslashes:!1})}D.getBaseDirectory=nm;function om(e){return e.includes(da)}D.hasGlobStar=om;function ya(e){return e.endsWith("/"+da)}D.endsWithSlashGlobStar=ya;function im(e){let t=Hd.basename(e);return ya(e)||ma(t)}D.isAffectDepthOfReadingPattern=im;function sm(e){return e.reduce((t,r)=>t.concat(va(r)),[])}D.expandPatternsWithBraceExpansion=sm;function va(e){let t=Nn.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}D.expandBraceExpansion=va;function am(e,t){let{parts:r}=Nn.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=am;function xa(e,t){return Nn.makeRe(e,t)}D.makeRe=xa;function lm(e,t){return e.map(r=>xa(r,t))}D.convertPatternsToRe=lm;function cm(e,t){return t.some(r=>r.test(e))}D.matchAny=cm;function um(e){return e.replace(zd,"/")}D.removeDuplicateSlashes=um});var Ra=S((iC,Sa)=>{"use strict";c();var fm=B("stream"),Ca=fm.PassThrough,pm=Array.prototype.slice;Sa.exports=dm;function dm(){let e=[],t=pm.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=Ca(n);function a(){for(let l=0,d=arguments.length;l<d;l++)e.push(ba(arguments[l],n));return f(),this}function f(){if(r)return;r=!0;let l=e.shift();if(!l){process.nextTick(u);return}Array.isArray(l)||(l=[l]);let d=l.length+1;function p(){--d>0||(r=!1,f())}function y(x){function C(){x.removeListener("merge2UnpipeEnd",C),x.removeListener("end",C),i&&x.removeListener("error",b),p()}function b(w){s.emit("error",w)}if(x._readableState.endEmitted)return p();x.on("merge2UnpipeEnd",C),x.on("end",C),i&&x.on("error",b),x.pipe(s,{end:!1}),x.resume()}for(let x=0;x<l.length;x++)y(l[x]);p()}function u(){r=!1,s.emit("queueDrain"),o&&s.end()}return s.setMaxListeners(0),s.add=a,s.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),s}function ba(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=ba(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Ca(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Ea=S(gr=>{"use strict";c();Object.defineProperty(gr,"__esModule",{value:!0});gr.merge=void 0;var mm=Ra();function gm(e){let t=mm(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>wa(e)),t.once("end",()=>wa(e)),t}gr.merge=gm;function wa(e){e.forEach(t=>t.emit("close"))}});var Aa=S(xt=>{"use strict";c();Object.defineProperty(xt,"__esModule",{value:!0});xt.isEmpty=xt.isString=void 0;function hm(e){return typeof e=="string"}xt.isString=hm;function ym(e){return e===""}xt.isEmpty=ym});var Ve=S(fe=>{"use strict";c();Object.defineProperty(fe,"__esModule",{value:!0});fe.string=fe.stream=fe.pattern=fe.path=fe.fs=fe.errno=fe.array=void 0;var vm=Wi();fe.array=vm;var xm=Gi();fe.errno=xm;var _m=Ki();fe.fs=_m;var Cm=Qi();fe.path=Cm;var bm=_a();fe.pattern=bm;var Sm=Ea();fe.stream=Sm;var Rm=Aa();fe.string=Rm});var Ta=S(pe=>{"use strict";c();Object.defineProperty(pe,"__esModule",{value:!0});pe.convertPatternGroupToTask=pe.convertPatternGroupsToTasks=pe.groupPatternsByBaseDirectory=pe.getNegativePatternsAsPositive=pe.getPositivePatterns=pe.convertPatternsToTasks=pe.generate=void 0;var ke=Ve();function wm(e,t){let r=ka(e,t),n=ka(t.ignore,t),o=Pa(r),i=Oa(r,n),s=o.filter(l=>ke.pattern.isStaticPattern(l,t)),a=o.filter(l=>ke.pattern.isDynamicPattern(l,t)),f=Dn(s,i,!1),u=Dn(a,i,!0);return f.concat(u)}pe.generate=wm;function ka(e,t){let r=e;return t.braceExpansion&&(r=ke.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>ke.pattern.removeDuplicateSlashes(n))}function Dn(e,t,r){let n=[],o=ke.pattern.getPatternsOutsideCurrentDirectory(e),i=ke.pattern.getPatternsInsideCurrentDirectory(e),s=Vn(o),a=Vn(i);return n.push(...jn(s,t,r)),"."in a?n.push(Hn(".",i,t,r)):n.push(...jn(a,t,r)),n}pe.convertPatternsToTasks=Dn;function Pa(e){return ke.pattern.getPositivePatterns(e)}pe.getPositivePatterns=Pa;function Oa(e,t){return ke.pattern.getNegativePatterns(e).concat(t).map(ke.pattern.convertToPositivePattern)}pe.getNegativePatternsAsPositive=Oa;function Vn(e){let t={};return e.reduce((r,n)=>{let o=ke.pattern.getBaseDirectory(n);return o in r?r[o].push(n):r[o]=[n],r},t)}pe.groupPatternsByBaseDirectory=Vn;function jn(e,t,r){return Object.keys(e).map(n=>Hn(n,e[n],t,r))}pe.convertPatternGroupsToTasks=jn;function Hn(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(ke.pattern.convertToNegativePattern))}}pe.convertPatternGroupToTask=Hn});var Fa=S(hr=>{"use strict";c();Object.defineProperty(hr,"__esModule",{value:!0});hr.read=void 0;function Em(e,t,r){t.fs.lstat(e,(n,o)=>{if(n!==null){$a(r,n);return}if(!o.isSymbolicLink()||!t.followSymbolicLink){qn(r,o);return}t.fs.stat(e,(i,s)=>{if(i!==null){if(t.throwErrorOnBrokenSymbolicLink){$a(r,i);return}qn(r,o);return}t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),qn(r,s)})})}hr.read=Em;function $a(e,t){e(t)}function qn(e,t){e(null,t)}});var Ia=S(yr=>{"use strict";c();Object.defineProperty(yr,"__esModule",{value:!0});yr.read=void 0;function Am(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=Am});var Ma=S(qe=>{"use strict";c();Object.defineProperty(qe,"__esModule",{value:!0});qe.createFileSystemAdapter=qe.FILE_SYSTEM_ADAPTER=void 0;var vr=B("fs");qe.FILE_SYSTEM_ADAPTER={lstat:vr.lstat,stat:vr.stat,lstatSync:vr.lstatSync,statSync:vr.statSync};function km(e){return e===void 0?qe.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},qe.FILE_SYSTEM_ADAPTER),e)}qe.createFileSystemAdapter=km});var Na=S(Un=>{"use strict";c();Object.defineProperty(Un,"__esModule",{value:!0});var Pm=Ma(),Bn=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Pm.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}};Un.default=Bn});var it=S(Be=>{"use strict";c();Object.defineProperty(Be,"__esModule",{value:!0});Be.statSync=Be.stat=Be.Settings=void 0;var La=Fa(),Om=Ia(),Wn=Na();Be.Settings=Wn.default;function Tm(e,t,r){if(typeof t=="function"){La.read(e,Gn(),t);return}La.read(e,Gn(t),r)}Be.stat=Tm;function $m(e,t){let r=Gn(t);return Om.read(e,r)}Be.statSync=$m;function Gn(e={}){return e instanceof Wn.default?e:new Wn.default(e)}});var ja=S((wC,Va)=>{"use strict";c();var Da;Va.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Da||(Da=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var qa=S((AC,Ha)=>{"use strict";c();Ha.exports=Im;var Fm=ja();function Im(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(f){function u(){t&&t(f,r),t=null}i?Fm(u):u()}function a(f,u,l){r[f]=l,(--n===0||u)&&s(u)}n?o?o.forEach(function(f){e[f](function(u,l){a(f,u,l)})}):e.forEach(function(f,u){f(function(l,d){a(u,l,d)})}):s(null),i=!1}});var Kn=S(_r=>{"use strict";c();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 Ba=Number.parseInt(xr[0],10),Mm=Number.parseInt(xr[1],10),Ua=10,Nm=10,Lm=Ba>Ua,Dm=Ba===Ua&&Mm>=Nm;_r.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Lm||Dm});var Wa=S(Cr=>{"use strict";c();Object.defineProperty(Cr,"__esModule",{value:!0});Cr.createDirentFromStats=void 0;var Yn=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 Vm(e,t){return new Yn(e,t)}Cr.createDirentFromStats=Vm});var zn=S(br=>{"use strict";c();Object.defineProperty(br,"__esModule",{value:!0});br.fs=void 0;var jm=Wa();br.fs=jm});var Xn=S(Sr=>{"use strict";c();Object.defineProperty(Sr,"__esModule",{value:!0});Sr.joinPathSegments=void 0;function Hm(e,t,r){return e.endsWith(r)?e+t:e+r+t}Sr.joinPathSegments=Hm});var Qa=S(Ue=>{"use strict";c();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.readdir=Ue.readdirWithFileTypes=Ue.read=void 0;var qm=it(),Ga=qa(),Bm=Kn(),Ka=zn(),Ya=Xn();function Um(e,t,r){if(!t.stats&&Bm.IS_SUPPORT_READDIR_WITH_FILE_TYPES){za(e,t,r);return}Xa(e,t,r)}Ue.read=Um;function za(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,o)=>{if(n!==null){Rr(r,n);return}let i=o.map(a=>({dirent:a,name:a.name,path:Ya.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Qn(r,i);return}let s=i.map(a=>Wm(a,t));Ga(s,(a,f)=>{if(a!==null){Rr(r,a);return}Qn(r,f)})})}Ue.readdirWithFileTypes=za;function Wm(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=Ka.fs.createDirentFromStats(e.name,o),r(null,e)})}}function Xa(e,t,r){t.fs.readdir(e,(n,o)=>{if(n!==null){Rr(r,n);return}let i=o.map(s=>{let a=Ya.joinPathSegments(e,s,t.pathSegmentSeparator);return f=>{qm.stat(a,t.fsStatSettings,(u,l)=>{if(u!==null){f(u);return}let d={name:s,path:a,dirent:Ka.fs.createDirentFromStats(s,l)};t.stats&&(d.stats=l),f(null,d)})}});Ga(i,(s,a)=>{if(s!==null){Rr(r,s);return}Qn(r,a)})})}Ue.readdir=Xa;function Rr(e,t){e(t)}function Qn(e,t){e(null,t)}});var rl=S(We=>{"use strict";c();Object.defineProperty(We,"__esModule",{value:!0});We.readdir=We.readdirWithFileTypes=We.read=void 0;var Gm=it(),Km=Kn(),Ja=zn(),Za=Xn();function Ym(e,t){return!t.stats&&Km.IS_SUPPORT_READDIR_WITH_FILE_TYPES?el(e,t):tl(e,t)}We.read=Ym;function el(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let o={dirent:n,name:n.name,path:Za.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let i=t.fs.statSync(o.path);o.dirent=Ja.fs.createDirentFromStats(o.name,i)}catch(i){if(t.throwErrorOnBrokenSymbolicLink)throw i}return o})}We.readdirWithFileTypes=el;function tl(e,t){return t.fs.readdirSync(e).map(n=>{let o=Za.joinPathSegments(e,n,t.pathSegmentSeparator),i=Gm.statSync(o,t.fsStatSettings),s={name:n,path:o,dirent:Ja.fs.createDirentFromStats(n,i)};return t.stats&&(s.stats=i),s})}We.readdir=tl});var nl=S(Ge=>{"use strict";c();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.createFileSystemAdapter=Ge.FILE_SYSTEM_ADAPTER=void 0;var _t=B("fs");Ge.FILE_SYSTEM_ADAPTER={lstat:_t.lstat,stat:_t.stat,lstatSync:_t.lstatSync,statSync:_t.statSync,readdir:_t.readdir,readdirSync:_t.readdirSync};function zm(e){return e===void 0?Ge.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ge.FILE_SYSTEM_ADAPTER),e)}Ge.createFileSystemAdapter=zm});var ol=S(Zn=>{"use strict";c();Object.defineProperty(Zn,"__esModule",{value:!0});var Xm=B("path"),Qm=it(),Jm=nl(),Jn=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Jm.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Xm.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Qm.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Zn.default=Jn});var wr=S(Ke=>{"use strict";c();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.Settings=Ke.scandirSync=Ke.scandir=void 0;var il=Qa(),Zm=rl(),eo=ol();Ke.Settings=eo.default;function eg(e,t,r){if(typeof t=="function"){il.read(e,to(),t);return}il.read(e,to(t),r)}Ke.scandir=eg;function tg(e,t){let r=to(t);return Zm.read(e,r)}Ke.scandirSync=tg;function to(e={}){return e instanceof eo.default?e:new eo.default(e)}});var al=S((KC,sl)=>{"use strict";c();function rg(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}}sl.exports=rg});var cl=S((zC,ro)=>{"use strict";c();var ng=al();function ll(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=ng(og),o=null,i=null,s=0,a=null,f={push:C,drain:Se,saturated:Se,pause:l,paused:!1,concurrency:r,running:u,resume:y,idle:x,length:d,getQueue:p,unshift:b,empty:Se,kill:P,killAndDrain:I,error:N};return f;function u(){return s}function l(){f.paused=!0}function d(){for(var O=o,M=0;O;)O=O.next,M++;return M}function p(){for(var O=o,M=[];O;)M.push(O.value),O=O.next;return M}function y(){if(f.paused){f.paused=!1;for(var O=0;O<f.concurrency;O++)s++,w()}}function x(){return s===0&&f.length()===0}function C(O,M){var E=n.get();E.context=e,E.release=w,E.value=O,E.callback=M||Se,E.errorHandler=a,s===f.concurrency||f.paused?i?(i.next=E,i=E):(o=E,i=E,f.saturated()):(s++,t.call(e,E.value,E.worked))}function b(O,M){var E=n.get();E.context=e,E.release=w,E.value=O,E.callback=M||Se,E.errorHandler=a,s===f.concurrency||f.paused?o?(E.next=o,o=E):(o=E,i=E,f.saturated()):(s++,t.call(e,E.value,E.worked))}function w(O){O&&n.release(O);var M=o;M?f.paused?s--:(i===o&&(i=null),o=M.next,M.next=null,t.call(e,M.value,M.worked),i===null&&f.empty()):--s===0&&f.drain()}function P(){o=null,i=null,f.drain=Se}function I(){o=null,i=null,f.drain(),f.drain=Se}function N(O){a=O}}function Se(){}function og(){this.value=null,this.callback=Se,this.next=null,this.release=Se,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=Se,e.errorHandler&&i(r,s),o.call(e.context,r,n),e.release(e)}}function ig(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(l,d){t.call(this,l).then(function(p){d(null,p)},d)}var o=ll(e,n,r),i=o.push,s=o.unshift;return o.push=a,o.unshift=f,o.drained=u,o;function a(l){var d=new Promise(function(p,y){i(l,function(x,C){if(x){y(x);return}p(C)})});return d.catch(Se),d}function f(l){var d=new Promise(function(p,y){s(l,function(x,C){if(x){y(x);return}p(C)})});return d.catch(Se),d}function u(){if(o.idle())return new Promise(function(p){p()});var l=o.drain,d=new Promise(function(p){o.drain=function(){l(),p()}});return d}}ro.exports=ll;ro.exports.promise=ig});var Er=S(Fe=>{"use strict";c();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.joinPathSegments=Fe.replacePathSegmentSeparator=Fe.isAppliedFilter=Fe.isFatalError=void 0;function sg(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Fe.isFatalError=sg;function ag(e,t){return e===null||e(t)}Fe.isAppliedFilter=ag;function lg(e,t){return e.split(/[/\\]/).join(t)}Fe.replacePathSegmentSeparator=lg;function cg(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Fe.joinPathSegments=cg});var io=S(oo=>{"use strict";c();Object.defineProperty(oo,"__esModule",{value:!0});var ug=Er(),no=class{constructor(t,r){this._root=t,this._settings=r,this._root=ug.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};oo.default=no});var lo=S(ao=>{"use strict";c();Object.defineProperty(ao,"__esModule",{value:!0});var fg=B("events"),pg=wr(),dg=cl(),Ar=Er(),mg=io(),so=class extends mg.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=pg.scandir,this._emitter=new fg.EventEmitter,this._queue=dg(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||!Ar.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=Ar.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Ar.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Ar.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};ao.default=so});var ul=S(uo=>{"use strict";c();Object.defineProperty(uo,"__esModule",{value:!0});var gg=lo(),co=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new gg.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{hg(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{yg(t,this._storage)}),this._reader.read()}};uo.default=co;function hg(e,t){e(t)}function yg(e,t){e(null,t)}});var fl=S(po=>{"use strict";c();Object.defineProperty(po,"__esModule",{value:!0});var vg=B("stream"),xg=lo(),fo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new xg.default(this._root,this._settings),this._stream=new vg.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}};po.default=fo});var pl=S(go=>{"use strict";c();Object.defineProperty(go,"__esModule",{value:!0});var _g=wr(),kr=Er(),Cg=io(),mo=class extends Cg.default{constructor(){super(...arguments),this._scandir=_g.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)}};go.default=mo});var dl=S(yo=>{"use strict";c();Object.defineProperty(yo,"__esModule",{value:!0});var bg=pl(),ho=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new bg.default(this._root,this._settings)}read(){return this._reader.read()}};yo.default=ho});var ml=S(xo=>{"use strict";c();Object.defineProperty(xo,"__esModule",{value:!0});var Sg=B("path"),Rg=wr(),vo=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,Sg.sep),this.fsScandirSettings=new Rg.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}};xo.default=vo});var Or=S(Ie=>{"use strict";c();Object.defineProperty(Ie,"__esModule",{value:!0});Ie.Settings=Ie.walkStream=Ie.walkSync=Ie.walk=void 0;var gl=ul(),wg=fl(),Eg=dl(),_o=ml();Ie.Settings=_o.default;function Ag(e,t,r){if(typeof t=="function"){new gl.default(e,Pr()).read(t);return}new gl.default(e,Pr(t)).read(r)}Ie.walk=Ag;function kg(e,t){let r=Pr(t);return new Eg.default(e,r).read()}Ie.walkSync=kg;function Pg(e,t){let r=Pr(t);return new wg.default(e,r).read()}Ie.walkStream=Pg;function Pr(e={}){return e instanceof _o.default?e:new _o.default(e)}});var Tr=S(bo=>{"use strict";c();Object.defineProperty(bo,"__esModule",{value:!0});var Og=B("path"),Tg=it(),hl=Ve(),Co=class{constructor(t){this._settings=t,this._fsStatSettings=new Tg.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return Og.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:hl.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!hl.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};bo.default=Co});var wo=S(Ro=>{"use strict";c();Object.defineProperty(Ro,"__esModule",{value:!0});var $g=B("stream"),Fg=it(),Ig=Or(),Mg=Tr(),So=class extends Mg.default{constructor(){super(...arguments),this._walkStream=Ig.walkStream,this._stat=Fg.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),o=new $g.PassThrough({objectMode:!0});o._write=(i,s,a)=>this._getEntry(n[i],t[i],r).then(f=>{f!==null&&r.entryFilter(f)&&o.push(f),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))})}};Ro.default=So});var yl=S(Ao=>{"use strict";c();Object.defineProperty(Ao,"__esModule",{value:!0});var Ng=Or(),Lg=Tr(),Dg=wo(),Eo=class extends Lg.default{constructor(){super(...arguments),this._walkAsync=Ng.walk,this._readerStream=new Dg.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))})}};Ao.default=Eo});var vl=S(Po=>{"use strict";c();Object.defineProperty(Po,"__esModule",{value:!0});var Vt=Ve(),ko=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 Vt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Vt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Vt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Vt.array.splitWhen(t,r=>r.dynamic&&Vt.pattern.hasGlobStar(r.pattern))}};Po.default=ko});var xl=S(To=>{"use strict";c();Object.defineProperty(To,"__esModule",{value:!0});var Vg=vl(),Oo=class extends Vg.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((f,u)=>{let l=i.segments[u];return!!(l.dynamic&&l.patternRe.test(f)||!l.dynamic&&l.pattern===f)}))return!0}return!1}};To.default=Oo});var _l=S(Fo=>{"use strict";c();Object.defineProperty(Fo,"__esModule",{value:!0});var $r=Ve(),jg=xl(),$o=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 jg.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)}};Fo.default=$o});var Cl=S(Mo=>{"use strict";c();Object.defineProperty(Mo,"__esModule",{value:!0});var st=Ve(),Io=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=st.pattern.convertPatternsToRe(t,this._micromatchOptions),o=st.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return i=>this._filter(i,n,o)}_filter(t,r,n){let o=st.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=st.path.makeAbsolute(this._settings.cwd,t);return st.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let o=st.pattern.matchAny(t,r);return!o&&n?st.pattern.matchAny(t+"/",r):o}};Mo.default=Io});var bl=S(Lo=>{"use strict";c();Object.defineProperty(Lo,"__esModule",{value:!0});var Hg=Ve(),No=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Hg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Lo.default=No});var Rl=S(Vo=>{"use strict";c();Object.defineProperty(Vo,"__esModule",{value:!0});var Sl=Ve(),Do=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Sl.path.makeAbsolute(this._settings.cwd,r),r=Sl.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Vo.default=Do});var Fr=S(Ho=>{"use strict";c();Object.defineProperty(Ho,"__esModule",{value:!0});var qg=B("path"),Bg=_l(),Ug=Cl(),Wg=bl(),Gg=Rl(),jo=class{constructor(t){this._settings=t,this.errorFilter=new Wg.default(this._settings),this.entryFilter=new Ug.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Bg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Gg.default(this._settings)}_getRootDirectory(t){return qg.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}}};Ho.default=jo});var wl=S(Bo=>{"use strict";c();Object.defineProperty(Bo,"__esModule",{value:!0});var Kg=yl(),Yg=Fr(),qo=class extends Yg.default{constructor(){super(...arguments),this._reader=new Kg.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)}};Bo.default=qo});var El=S(Wo=>{"use strict";c();Object.defineProperty(Wo,"__esModule",{value:!0});var zg=B("stream"),Xg=wo(),Qg=Fr(),Uo=class extends Qg.default{constructor(){super(...arguments),this._reader=new Xg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),o=this.api(r,t,n),i=new zg.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)}};Wo.default=Uo});var Al=S(Ko=>{"use strict";c();Object.defineProperty(Ko,"__esModule",{value:!0});var Jg=it(),Zg=Or(),eh=Tr(),Go=class extends eh.default{constructor(){super(...arguments),this._walkSync=Zg.walkSync,this._statSync=Jg.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)}};Ko.default=Go});var kl=S(zo=>{"use strict";c();Object.defineProperty(zo,"__esModule",{value:!0});var th=Al(),rh=Fr(),Yo=class extends rh.default{constructor(){super(...arguments),this._reader=new th.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)}};zo.default=Yo});var Pl=S(bt=>{"use strict";c();Object.defineProperty(bt,"__esModule",{value:!0});bt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ct=B("fs"),nh=B("os"),oh=Math.max(nh.cpus().length,1);bt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ct.lstat,lstatSync:Ct.lstatSync,stat:Ct.stat,statSync:Ct.statSync,readdir:Ct.readdir,readdirSync:Ct.readdirSync};var Xo=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,oh),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=Xo});var Ir=S((Wb,Tl)=>{"use strict";c();var Ol=Ta(),ih=wl(),sh=El(),ah=kl(),Qo=Pl(),Re=Ve();async function Jo(e,t){Pe(e);let r=Zo(e,ih.default,t),n=await Promise.all(r);return Re.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(u,l){Pe(u);let d=Zo(u,ah.default,l);return Re.array.flatten(d)}e.sync=t;function r(u,l){Pe(u);let d=Zo(u,sh.default,l);return Re.stream.merge(d)}e.stream=r;function n(u,l){Pe(u);let d=[].concat(u),p=new Qo.default(l);return Ol.generate(d,p)}e.generateTasks=n;function o(u,l){Pe(u);let d=new Qo.default(l);return Re.pattern.isDynamicPattern(u,d)}e.isDynamicPattern=o;function i(u){return Pe(u),Re.path.escape(u)}e.escapePath=i;function s(u){return Pe(u),Re.path.convertPathToPattern(u)}e.convertPathToPattern=s;let a;(function(u){function l(p){return Pe(p),Re.path.escapePosixPath(p)}u.escapePath=l;function d(p){return Pe(p),Re.path.convertPosixPathToPattern(p)}u.convertPathToPattern=d})(a=e.posix||(e.posix={}));let f;(function(u){function l(p){return Pe(p),Re.path.escapeWindowsPath(p)}u.escapePath=l;function d(p){return Pe(p),Re.path.convertWindowsPathToPattern(p)}u.convertPathToPattern=d})(f=e.win32||(e.win32={}))})(Jo||(Jo={}));function Zo(e,t,r){let n=[].concat(e),o=new Qo.default(r),i=Ol.generate(n,o),s=new t(o);return i.map(s.read,s)}function Pe(e){if(![].concat(e).every(n=>Re.string.isString(n)&&!Re.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Tl.exports=Jo});var Fl=S((Kb,$l)=>{"use strict";c();var St=1e3,Rt=St*60,wt=Rt*60,at=wt*24,lh=at*7,ch=at*365.25;$l.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return uh(e);if(r==="number"&&isFinite(e))return t.long?ph(e):fh(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function uh(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*ch;case"weeks":case"week":case"w":return r*lh;case"days":case"day":case"d":return r*at;case"hours":case"hour":case"hrs":case"hr":case"h":return r*wt;case"minutes":case"minute":case"mins":case"min":case"m":return r*Rt;case"seconds":case"second":case"secs":case"sec":case"s":return r*St;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function fh(e){var t=Math.abs(e);return t>=at?Math.round(e/at)+"d":t>=wt?Math.round(e/wt)+"h":t>=Rt?Math.round(e/Rt)+"m":t>=St?Math.round(e/St)+"s":e+"ms"}function ph(e){var t=Math.abs(e);return t>=at?Mr(e,t,at,"day"):t>=wt?Mr(e,t,wt,"hour"):t>=Rt?Mr(e,t,Rt,"minute"):t>=St?Mr(e,t,St,"second"):e+" ms"}function Mr(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var ei=S((zb,Il)=>{"use strict";c();function dh(e){r.debug=r,r.default=r,r.coerce=f,r.disable=i,r.enable=o,r.enabled=s,r.humanize=Fl(),r.destroy=u,Object.keys(e).forEach(l=>{r[l]=e[l]}),r.names=[],r.skips=[],r.formatters={};function t(l){let d=0;for(let p=0;p<l.length;p++)d=(d<<5)-d+l.charCodeAt(p),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(l){let d,p=null,y,x;function C(...b){if(!C.enabled)return;let w=C,P=Number(new Date),I=P-(d||P);w.diff=I,w.prev=d,w.curr=P,d=P,b[0]=r.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let N=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(M,E)=>{if(M==="%%")return"%";N++;let A=r.formatters[E];if(typeof A=="function"){let $=b[N];M=A.call(w,$),b.splice(N,1),N--}return M}),r.formatArgs.call(w,b),(w.log||r.log).apply(w,b)}return C.namespace=l,C.useColors=r.useColors(),C.color=r.selectColor(l),C.extend=n,C.destroy=r.destroy,Object.defineProperty(C,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(y!==r.namespaces&&(y=r.namespaces,x=r.enabled(l)),x),set:b=>{p=b}}),typeof r.init=="function"&&r.init(C),C}function n(l,d){let p=r(this.namespace+(typeof d>"u"?":":d)+l);return p.log=this.log,p}function o(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let d,p=(typeof l=="string"?l:"").split(/[\s,]+/),y=p.length;for(d=0;d<y;d++)p[d]&&(l=p[d].replace(/\*/g,".*?"),l[0]==="-"?r.skips.push(new RegExp("^"+l.slice(1)+"$")):r.names.push(new RegExp("^"+l+"$")))}function i(){let l=[...r.names.map(a),...r.skips.map(a).map(d=>"-"+d)].join(",");return r.enable(""),l}function s(l){if(l[l.length-1]==="*")return!0;let d,p;for(d=0,p=r.skips.length;d<p;d++)if(r.skips[d].test(l))return!1;for(d=0,p=r.names.length;d<p;d++)if(r.names[d].test(l))return!0;return!1}function a(l){return l.toString().substring(2,l.toString().length-2).replace(/\.\*\?$/,"*")}function f(l){return l instanceof Error?l.stack||l.message:l}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Il.exports=dh});var Ml=S((Ce,Nr)=>{"use strict";c();Ce.formatArgs=gh;Ce.save=hh;Ce.load=yh;Ce.useColors=mh;Ce.storage=vh();Ce.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Ce.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function mh(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function gh(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Nr.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}Ce.log=console.debug||console.log||(()=>{});function hh(e){try{e?Ce.storage.setItem("debug",e):Ce.storage.removeItem("debug")}catch{}}function yh(){let e;try{e=Ce.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function vh(){try{return localStorage}catch{}}Nr.exports=ei()(Ce);var{formatters:xh}=Nr.exports;xh.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Ll=S((Jb,Nl)=>{"use strict";c();Nl.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var jl=S((eS,Vl)=>{"use strict";c();var _h=B("os"),Dl=B("tty"),we=Ll(),{env:le}=process,Lr;we("no-color")||we("no-colors")||we("color=false")||we("color=never")?Lr=0:(we("color")||we("colors")||we("color=true")||we("color=always"))&&(Lr=1);function Ch(){if("FORCE_COLOR"in le)return le.FORCE_COLOR==="true"?1:le.FORCE_COLOR==="false"?0:le.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(le.FORCE_COLOR,10),3)}function bh(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Sh(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=Ch();n!==void 0&&(Lr=n);let o=r?Lr:n;if(o===0)return 0;if(r){if(we("color=16m")||we("color=full")||we("color=truecolor"))return 3;if(we("color=256"))return 2}if(e&&!t&&o===void 0)return 0;let i=o||0;if(le.TERM==="dumb")return i;if(process.platform==="win32"){let s=_h.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in le)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in le)||le.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in le)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(le.TEAMCITY_VERSION)?1:0;if(le.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in le){let s=Number.parseInt((le.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(le.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(le.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(le.TERM)||"COLORTERM"in le?1:i}function ti(e,t={}){let r=Sh(e,{streamIsTTY:e&&e.isTTY,...t});return bh(r)}Vl.exports={supportsColor:ti,stdout:ti({isTTY:Dl.isatty(1)}),stderr:ti({isTTY:Dl.isatty(2)})}});var ql=S((ce,Vr)=>{"use strict";c();var Rh=B("tty"),Dr=B("util");ce.init=Th;ce.log=kh;ce.formatArgs=Eh;ce.save=Ph;ce.load=Oh;ce.useColors=wh;ce.destroy=Dr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ce.colors=[6,2,3,4,5,1];try{let e=jl();e&&(e.stderr||e).level>=2&&(ce.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ce.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(o,i)=>i.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function wh(){return"colors"in ce.inspectOpts?!!ce.inspectOpts.colors:Rh.isatty(process.stderr.fd)}function Eh(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),i=` ${o};1m${t} \x1B[0m`;e[0]=i+e[0].split(`
|
|
4
|
-
`).join(`
|
|
5
|
-
`+i),e.push(o+"m+"+Vr.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Ah()+t+" "+e[0]}function Ah(){return ce.inspectOpts.hideDate?"":new Date().toISOString()+" "}function kh(...e){return process.stderr.write(Dr.format(...e)+`
|
|
6
|
-
`)}function Ph(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Oh(){return process.env.DEBUG}function Th(e){e.inspectOpts={};let t=Object.keys(ce.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=ce.inspectOpts[t[r]]}Vr.exports=ei()(ce);var{formatters:Hl}=Vr.exports;Hl.o=function(e){return this.inspectOpts.colors=this.useColors,Dr.inspect(e,this.inspectOpts).split(`
|
|
7
|
-
`).map(t=>t.trim()).join(" ")};Hl.O=function(e){return this.inspectOpts.colors=this.useColors,Dr.inspect(e,this.inspectOpts)}});var ni=S((nS,ri)=>{"use strict";c();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ri.exports=Ml():ri.exports=ql()});var Kl=S((lS,Gl)=>{"use strict";c();var{hasOwnProperty:oi}=Object.prototype,ii=(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
|
|
8
|
-
`:`
|
|
9
|
-
`,n=t.whitespace?" = ":"=",o=[],i=t.sort?Object.keys(e).sort():Object.keys(e),s=0;t.align&&(s=je(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,l)=>je(u).length>=je(l).length?u:l)).length);let a="",f=t.bracketedArray?"[]":"";for(let u of i){let l=e[u];if(l&&Array.isArray(l))for(let d of l)a+=je(`${u}${f}`).padEnd(s," ")+n+je(d)+r;else l&&typeof l=="object"?o.push(u):a+=je(u).padEnd(s," ")+n+je(l)+r}t.section&&a.length&&(a="["+je(t.section)+"]"+(t.newline?r+r:r)+a);for(let u of o){let l=Ul(u,".").join("\\."),d=(t.section?t.section+".":"")+l,p=ii(e[u],{...t,section:d});a.length&&p.length&&(a+=r),a+=p}return a};function Ul(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 Bl=(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 l=u.match(i);if(!l)continue;if(l[1]!==void 0){if(o=jr(l[1]),o==="__proto__"){n=Object.create(null);continue}n=r[o]=r[o]||Object.create(null);continue}let d=jr(l[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 x=l[3]?jr(l[4]):!0,C=x==="true"||x==="false"||x==="null"?JSON.parse(x):x;p&&(oi.call(n,y)?Array.isArray(n[y])||(n[y]=[n[y]]):n[y]=[]),Array.isArray(n[y])?n[y].push(C):n[y]=C}let f=[];for(let u of Object.keys(r)){if(!oi.call(r,u)||typeof r[u]!="object"||Array.isArray(r[u]))continue;let l=Ul(u,".");n=r;let d=l.pop(),p=d.replace(/\\\./g,".");for(let y of l)y!=="__proto__"&&((!oi.call(n,y)||typeof n[y]!="object")&&(n[y]=Object.create(null)),n=n[y]);n===r&&p===d||(n[p]=r[u],f.push(u))}for(let u of f)delete r[u];return r},Wl=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),je=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Wl(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),jr=(e,t)=>{if(e=(e||"").trim(),Wl(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};Gl.exports={parse:Bl,decode:Bl,stringify:ii,encode:ii,safe:je,unsafe:jr}});var li=S((hS,Jl)=>{"use strict";c();var Dh=B("os");Jl.exports=Dh.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 ci=S((vS,Zl)=>{"use strict";c();Zl.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 ec=S((_S,Bt)=>{"use strict";c();var Vh=process.platform==="win32",jh=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,ui={};function Hh(e){return jh.exec(e).slice(1)}ui.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=Hh(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 qh=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,fi={};function Bh(e){return qh.exec(e).slice(1)}fi.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=Bh(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]}};Vh?Bt.exports=ui.parse:Bt.exports=fi.parse;Bt.exports.posix=fi.parse;Bt.exports.win32=ui.parse});var pi=S((bS,oc)=>{"use strict";c();var nc=B("path"),tc=nc.parse||ec(),rc=function(t,r){var n="/";/^([A-Za-z]:)/.test(t)?n="":/^\\\\/.test(t)&&(n="\\\\");for(var o=[t],i=tc(t);i.dir!==o[o.length-1];)o.push(i.dir),i=tc(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(f){return nc.resolve(n,a,f)}))},[])};oc.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 rc(t,o)},r);var i=rc(t,o);return r&&r.paths?i.concat(r.paths):i}});var di=S((RS,ic)=>{"use strict";c();ic.exports=function(e,t){return t||{}}});var lc=S((ES,ac)=>{"use strict";c();var Uh="Function.prototype.bind called on incompatible ",Wh=Object.prototype.toString,Gh=Math.max,Kh="[object Function]",sc=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},Yh=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},zh=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};ac.exports=function(t){var r=this;if(typeof r!="function"||Wh.apply(r)!==Kh)throw new TypeError(Uh+r);for(var n=Yh(arguments,1),o,i=function(){if(this instanceof o){var l=r.apply(this,sc(n,arguments));return Object(l)===l?l:this}return r.apply(t,sc(n,arguments))},s=Gh(0,r.length-n.length),a=[],f=0;f<s;f++)a[f]="$"+f;if(o=Function("binder","return function ("+zh(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 uc=S((kS,cc)=>{"use strict";c();var Xh=lc();cc.exports=Function.prototype.bind||Xh});var pc=S((OS,fc)=>{"use strict";c();var Qh=Function.prototype.call,Jh=Object.prototype.hasOwnProperty,Zh=uc();fc.exports=Zh.call(Qh,Jh)});var dc=S(($S,ey)=>{ey.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 Ut=S((FS,hc)=>{"use strict";c();var ty=pc();function ry(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),f=parseInt(i[s]||0,10);if(a!==f)return o==="<"?a<f:o===">="?a>=f:!1}return o===">="}function mc(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!ry(e,r[n]))return!1;return!0}function ny(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(mc(r,t[n]))return!0;return!1}return mc(r,t)}var gc=dc();hc.exports=function(t,r){return ty(gc,t)&&ny(r,gc[t])}});var xc=S((MS,vc)=>{"use strict";c();var lt=B("fs"),oy=li(),ne=B("path"),iy=ci(),sy=pi(),ay=di(),ly=Ut(),cy=process.platform!=="win32"&<.realpath&&typeof lt.realpath.native=="function"?lt.realpath.native:lt.realpath,yc=oy(),uy=function(){return[ne.join(yc,".node_modules"),ne.join(yc,".node_libraries")]},fy=function(t,r){lt.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isFile()||o.isFIFO())})},py=function(t,r){lt.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isDirectory())})},dy=function(t,r){cy(t,function(n,o){n&&n.code!=="ENOENT"?r(n):r(null,n?t:o)})},Wt=function(t,r,n,o){n&&n.preserveSymlinks===!1?t(r,o):o(null,r)},my=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)}})},gy=function(t,r,n){for(var o=sy(r,n,t),i=0;i<o.length;i++)o[i]=ne.join(o[i],t);return o};vc.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=ay(t,i);var a=i.isFile||fy,f=i.isDirectory||py,u=i.readFile||lt.readFile,l=i.realpath||dy,d=i.readPackage||my;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,x=i.extensions||[".js"],C=i.includeCoreModules!==!1,b=i.basedir||ne.dirname(iy()),w=i.filename||b;i.paths=i.paths||uy();var P=ne.resolve(b);Wt(l,P,i,function(h,T){h?o(h):N(T)});var I;function N(h){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t))I=ne.resolve(h,t),(t==="."||t===".."||t.slice(-1)==="/")&&(I+="/"),/\/$/.test(t)&&I===h?A(I,i.package,O):M(I,i.package,O);else{if(C&&ly(t))return o(null,t);G(t,h,function(T,L,j){if(T)o(T);else{if(L)return Wt(l,L,i,function(_,q){_?o(_):o(null,q,j)});var v=new Error("Cannot find module '"+t+"' from '"+w+"'");v.code="MODULE_NOT_FOUND",o(v)}})}}function O(h,T,L){h?o(h):T?o(null,T,L):A(I,function(j,v,_){if(j)o(j);else if(v)Wt(l,v,i,function(F,K){F?o(F):o(null,K,_)});else{var q=new Error("Cannot find module '"+t+"' from '"+w+"'");q.code="MODULE_NOT_FOUND",o(q)}})}function M(h,T,L){var j=T,v=L;typeof j=="function"&&(v=j,j=void 0);var _=[""].concat(x);q(_,h,j);function q(F,K,te){if(F.length===0)return v(null,void 0,te);var J=K+F[0],me=te;me?ae(null,me):E(ne.dirname(J),ae);function ae(ue,V,ye){if(me=V,ue)return v(ue);if(ye&&me&&i.pathFilter){var mt=ne.relative(ye,J),k=mt.slice(0,mt.length-F[0].length),W=i.pathFilter(me,K,k);if(W)return q([""].concat(x.slice()),ne.resolve(ye,W),me)}a(J,Le)}function Le(ue,V){if(ue)return v(ue);if(V)return v(null,J,me);q(F.slice(1),K,me)}}}function E(h,T){if(h===""||h==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(h)||/[/\\]node_modules[/\\]*$/.test(h))return T(null);Wt(l,h,i,function(L,j){if(L)return E(ne.dirname(h),T);var v=ne.join(j,"package.json");a(v,function(_,q){if(!q)return E(ne.dirname(h),T);d(u,v,function(F,K){F&&T(F);var te=K;te&&i.packageFilter&&(te=i.packageFilter(te,v)),T(null,te,h)})})})}function A(h,T,L){var j=L,v=T;typeof v=="function"&&(j=v,v=i.package),Wt(l,h,i,function(_,q){if(_)return j(_);var F=ne.join(q,"package.json");a(F,function(K,te){if(K)return j(K);if(!te)return M(ne.join(h,"index"),v,j);d(u,F,function(J,me){if(J)return j(J);var ae=me;if(ae&&i.packageFilter&&(ae=i.packageFilter(ae,F)),ae&&ae.main){if(typeof ae.main!="string"){var Le=new TypeError("package \u201C"+ae.name+"\u201D `main` must be a string");return Le.code="INVALID_PACKAGE_MAIN",j(Le)}(ae.main==="."||ae.main==="./")&&(ae.main="index"),M(ne.resolve(h,ae.main),ae,function(ue,V,ye){if(ue)return j(ue);if(V)return j(null,V,ye);if(!ye)return M(ne.join(h,"index"),ye,j);var mt=ne.resolve(h,ye.main);A(mt,ye,function(k,W,R){if(k)return j(k);if(W)return j(null,W,R);M(ne.join(h,"index"),R,j)})});return}M(ne.join(h,"/index"),ae,j)})})})}function $(h,T){if(T.length===0)return h(null,void 0);var L=T[0];f(ne.dirname(L),j);function j(q,F){if(q)return h(q);if(!F)return $(h,T.slice(1));M(L,i.package,v)}function v(q,F,K){if(q)return h(q);if(F)return h(null,F,K);A(L,i.package,_)}function _(q,F,K){if(q)return h(q);if(F)return h(null,F,K);$(h,T.slice(1))}}function G(h,T,L){var j=function(){return gy(h,T,i)};$(L,y?y(h,T,j,i):j())}}});var _c=S((LS,hy)=>{hy.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 Rc=S((DS,Sc)=>{"use strict";c();var yy=Ut(),Cc=_c(),bc={};for(qr in Cc)Object.prototype.hasOwnProperty.call(Cc,qr)&&(bc[qr]=yy(qr));var qr;Sc.exports=bc});var Ec=S((jS,wc)=>{"use strict";c();var vy=Ut();wc.exports=function(t){return vy(t)}});var Pc=S((qS,kc)=>{"use strict";c();var xy=Ut(),ct=B("fs"),de=B("path"),_y=li(),Cy=ci(),by=pi(),Sy=di(),Ry=process.platform!=="win32"&&ct.realpathSync&&typeof ct.realpathSync.native=="function"?ct.realpathSync.native:ct.realpathSync,Ac=_y(),wy=function(){return[de.join(Ac,".node_modules"),de.join(Ac,".node_libraries")]},Ey=function(t){try{var r=ct.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&(r.isFile()||r.isFIFO())},Ay=function(t){try{var r=ct.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&r.isDirectory()},ky=function(t){try{return Ry(t)}catch(r){if(r.code!=="ENOENT")throw r}return t},Gt=function(t,r,n){return n&&n.preserveSymlinks===!1?t(r):r},Py=function(t,r){var n=t(r);try{var o=JSON.parse(n);return o}catch{}},Oy=function(t,r,n){for(var o=by(r,n,t),i=0;i<o.length;i++)o[i]=de.join(o[i],t);return o};kc.exports=function(t,r){if(typeof t!="string")throw new TypeError("Path must be a string.");var n=Sy(t,r),o=n.isFile||Ey,i=n.readFileSync||ct.readFileSync,s=n.isDirectory||Ay,a=n.realpathSync||ky,f=n.readPackageSync||Py;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var u=n.packageIterator,l=n.extensions||[".js"],d=n.includeCoreModules!==!1,p=n.basedir||de.dirname(Cy()),y=n.filename||p;n.paths=n.paths||wy();var x=Gt(a,de.resolve(p),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)){var C=de.resolve(x,t);(t==="."||t===".."||t.slice(-1)==="/")&&(C+="/");var b=I(C)||O(C);if(b)return Gt(a,b,n)}else{if(d&&xy(t))return t;var w=M(t,x);if(w)return Gt(a,w,n)}var P=new Error("Cannot find module '"+t+"' from '"+y+"'");throw P.code="MODULE_NOT_FOUND",P;function I(E){var A=N(de.dirname(E));if(A&&A.dir&&A.pkg&&n.pathFilter){var $=de.relative(A.dir,E),G=n.pathFilter(A.pkg,E,$);G&&(E=de.resolve(A.dir,G))}if(o(E))return E;for(var h=0;h<l.length;h++){var T=E+l[h];if(o(T))return T}}function N(E){if(!(E===""||E==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(E))&&!/[/\\]node_modules[/\\]*$/.test(E)){var A=de.join(Gt(a,E,n),"package.json");if(!o(A))return N(de.dirname(E));var $=f(i,A);return $&&n.packageFilter&&($=n.packageFilter($,E)),{pkg:$,dir:E}}}function O(E){var A=de.join(Gt(a,E,n),"/package.json");if(o(A)){try{var $=f(i,A)}catch{}if($&&n.packageFilter&&($=n.packageFilter($,E)),$&&$.main){if(typeof $.main!="string"){var G=new TypeError("package \u201C"+$.name+"\u201D `main` must be a string");throw G.code="INVALID_PACKAGE_MAIN",G}($.main==="."||$.main==="./")&&($.main="index");try{var h=I(de.resolve(E,$.main));if(h)return h;var T=O(de.resolve(E,$.main));if(T)return T}catch{}}}return I(de.join(E,"/index"))}function M(E,A){for(var $=function(){return Oy(E,A,n)},G=u?u(E,A,$,n):$(),h=0;h<G.length;h++){var T=G[h];if(s(de.dirname(T))){var L=I(T);if(L)return L;var j=O(T);if(j)return j}}}}});var Tc=S((US,Oc)=>{"use strict";c();var Br=xc();Br.core=Rc();Br.isCore=Ec();Br.sync=Pc();Oc.exports=Br});c();import r1 from"node:process";import n1 from"yargs";import{hideBin as o1}from"yargs/helpers";var gt="0.18.1";c();var Ae=Z(he(),1),gu=Z(Ir(),1);import{dirname as fv,join as pv,resolve as Zr}from"node:path";import{readFile as dv}from"node:fs/promises";import Xt from"fs-extra";import mv from"gray-matter";import gv from"markdown-it";import{Feed as hv}from"feed";import ft from"consola";c();var su=Z(ni(),1),au=Z(Ir(),1),Xe=Z(he(),1);import{dirname as sv}from"node:path";import nu from"node:process";import{resolve as zt}from"pathe";import iu from"fs-extra";import{ensureSuffix as ou,uniq as av}from"@antfu/utils";import lu from"defu";import cu from"consola";c();c();import{spawn as $h}from"cross-spawn";function jt(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=$h("git",o),s="";i.stdout.on("data",a=>s+=String(a)),i.on("close",()=>{r(+new Date(s))}),i.on("error",()=>{r(0)})})}c();import{join as $c}from"node:path";import Ty from"is-installed-globally";c();var zl=Z(Kl(),1);import ie from"node:process";import se from"node:path";import si from"node:os";import Hr from"node:fs";var qt=ie.platform==="win32",Yl=e=>{try{return zl.default.parse(Hr.readFileSync(e,"utf8")).prefix}catch{}},Fh=()=>Object.keys(ie.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?ie.env[t]:e,void 0),Ih=()=>{if(qt&&ie.env.APPDATA)return se.join(ie.env.APPDATA,"/npm/etc/npmrc");if(ie.execPath.includes("/Cellar/node")){let e=ie.execPath.slice(0,ie.execPath.indexOf("/Cellar/node"));return se.join(e,"/lib/node_modules/npm/npmrc")}if(ie.execPath.endsWith("/bin/node")){let e=se.dirname(se.dirname(ie.execPath));return se.join(e,"/etc/npmrc")}},Mh=()=>{if(qt){let{APPDATA:e}=ie.env;return e?se.join(e,"npm"):se.dirname(ie.execPath)}return se.dirname(se.dirname(ie.execPath))},Nh=()=>{let e=Fh();if(e)return e;let t=Yl(se.join(si.homedir(),".npmrc"));if(t)return t;if(ie.env.PREFIX)return ie.env.PREFIX;let r=Yl(Ih());return r||Mh()},Ht=se.resolve(Nh()),Xl=()=>{if(qt&&ie.env.LOCALAPPDATA){let e=se.join(ie.env.LOCALAPPDATA,"Yarn");if(Hr.existsSync(e))return e}return!1},Lh=()=>{if(ie.env.PREFIX)return ie.env.PREFIX;let e=Xl();if(e)return e;let t=se.join(si.homedir(),".config/yarn");if(Hr.existsSync(t))return t;let r=se.join(si.homedir(),".yarn-config");return Hr.existsSync(r)?r:Ht},Me={};Me.npm={};Me.npm.prefix=Ht;Me.npm.packages=se.join(Ht,qt?"node_modules":"lib/node_modules");Me.npm.binaries=qt?Ht:se.join(Ht,"bin");var Ql=se.resolve(Lh());Me.yarn={};Me.yarn.prefix=Ql;Me.yarn.packages=se.join(Ql,Xl()?"Data/global/node_modules":"global/node_modules");Me.yarn.binaries=se.join(Me.yarn.packages,".bin");var ai=Me;var Ic=Z(Tc(),1);import Fc from"consola";function Ne(e,t=!1,r={preserveSymlinks:!1}){try{return(0,Ic.sync)(e,r)}catch(n){Fc.log(n)}if(Ty){try{return B.resolve($c(ai.yarn.packages,e))}catch{}try{return B.resolve($c(ai.npm.packages,e))}catch{}}if(t)throw new Error(`Failed to resolve package ${e}`);Fc.error(`Failed to resolve package ${e}`)}c();c();var Ur="<!-- more -->",Et=/^https?:/i,Mc=/^pathname:\/\//,ZS="/:all(.*)*",Nc=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"]);function Lc(e){return Et.test(e)}function $y(e){return e.replace(/\\/g,"/")}function mi(e,t){return t.startsWith(e)?t:e+t}function Q(e){return`/@fs${mi("/",$y(e))}`}function Dc(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}function Vc(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}c();c();import Fy from"node:process";import{fileURLToPath as Iy}from"node:url";import My from"jiti";import{resolve as Ny}from"pathe";import Ly from"consola";function Dy(e){let{name:t,cwd:r}=e,n=Ny(r,`${t}.config.ts`),o={};try{o=My(Iy(import.meta.url),{interopDefault:!0,requireCache:!1,esmResolve:!0})(n)}catch{Ly.debug(`Failed to load config file: ${n}`)}return{config:o,configFile:n}}async function At(e,t={}){let{config:r,configFile:n}=Dy({name:e,cwd:t.cwd||Fy.cwd()}),o=r;return typeof r=="function"&&(o=await r(t.valaxyOptions||{})),{config:o,configFile:n}}c();var Pt=Z(he(),1);import Hy from"node:process";import{createDefu as qy}from"defu";import{mergeConfig as By}from"vite";import{isFunction as Hc}from"@antfu/utils";import Uy from"consola";c();function Ye(){let e=performance.now();return()=>{let r=performance.now()-e;return r>1e3?`${(r/1e3).toFixed(2)}s`:`${r.toFixed(2)}ms`}}c();var kt=Z(he(),1);import{webcrypto as jc}from"node:crypto";import Vy from"consola";var Wr={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:{}},statistics:{enable:!1,readTime:{speed:{cn:300,en:100}}},pageSize:7,encrypt:{enable:!1,algorithm:"AES-CBC",salt:jc.getRandomValues(new Uint8Array(16)),iv:jc.getRandomValues(new Uint8Array(16))},redirects:{useVueRouter:!0,rules:[]}};function SR(e){return e}async function jy(e){return At("site",{cwd:e})}async function Gr(e){let t=Ye(),{config:r,configFile:n}=await jy(e),o=t();return r&&n&&Vy.success(`Resolve ${(0,kt.cyan)("siteConfig")} from ${(0,kt.dim)(n)} ${(0,kt.yellow)(o)}`),{siteConfig:r,siteConfigFile:n}}var qc={siteConfig:Wr,theme:"yun",themeConfig:{pkg:{name:"",version:""}},runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}},modules:{rss:{enable:!0}},features:{katex:!0},vite:{build:{rollupOptions:{external:[]}}},devtools:!0};function Wy(e){return e}var IR=Wy;async function Kt(e,t){return await At("valaxy",{cwd:e,valaxyOptions:t})}var ut=qy((e,t,r)=>{if(Hc(e[t])&&Hc(r)&&(e[t]=function(...n){e[t].call(this,...n),r.call(this,...n)}),t==="vite")return e[t]=By(e[t],r),!0});async function Bc(e){let t=e.userRoot||Hy.cwd(),r=Ye(),{config:n,configFile:o}=await Kt(t),i=r();n&&o&&Uy.success(`Resolve ${(0,Pt.cyan)("userValaxyConfig")} from ${(0,Pt.dim)(o)} ${(0,Pt.yellow)(i)}`);let s=e.theme||n?.theme||"yun";return{config:n,configFile:o,theme:s}}c();import Gy from"node:path";import Ky from"fs-extra";function Yy(e){return e}var jR=Yy;async function Uc(e,t){let r={};for(let n of e){if(!Ky.existsSync(Gy.resolve(n.root,"valaxy.config.ts")))continue;let{config:o,configFile:i}=await Kt(n.root,t);o&&(n.configFile=i,r=ut(o,r))}return r}c();var zr=Z(he(),1);import Jy from"defu";c();var Gc=Z(he(),1);import Qy from"consola";c();import Wc from"node:process";import zy from"node:fs";import Xy from"node:path";function Yt(){return Wc.env.NODE_ENV==="production"}function gi(e="development"){Wc.env.NODE_ENV=e,Oe.level=Yt()?2:3}function Ot(){return gi("production")}function Kr(e){let t=zy.existsSync(Xy.resolve(e,"pages"));return t||Oe.error(`No pages directory found in ${e}`),t}var Oe=Qy.create({level:Yt()?2:3}),hi=`${(0,Gc.magenta)("valaxy")}:`,Tt={success:e=>Oe.success(hi,e),info:e=>Oe.info(hi,e),ready:e=>Oe.ready(hi,e)};async function Yr(e){return At("theme",{cwd:e})}async function Kc(e){let{config:t,configFile:r}=await Yr(e.userRoot);if(t&&r&&Oe.info(`Resolve ${(0,zr.cyan)("themeConfig")} from ${(0,zr.dim)(r)}`),e?.themeRoot){let{config:n}=await Yr(e.themeRoot);t=Jy(t||{},n)}return{themeConfig:t,themeConfigFile:r}}function Zy(e){return e}var rw=Zy;function iw(e){return e}c();var ze=Z(he(),1);import Zc from"node:process";import{resolve as tv}from"pathe";import Xc from"fs-extra";import Qc from"defu";import rv from"ora";c();import{dirname as Yc}from"node:path";import{resolve as zc}from"pathe";import ev from"fs-extra";function Xr(e,t){if(!e)return"";if(Dc(e))if(t){let r=ev.lstatSync(t).isFile();return zc(r?Yc(t):t,e)}else throw new Error(`entry is required when ${e} is path`);else return zc(Yc(Ne(`${e}/package.json`)||""))}async function eu(e,t=Zc.cwd()){let r=rv(`Resolve ${(0,ze.cyan)("addons")} from ${(0,ze.dim)(t)}`).start(),n={},o=s=>{s&&(n[s.name]=Qc(n[s.name]||{},s))};if(Array.isArray(e))for(let s of e){if(typeof s=="string"){o(await Jc(s,{cwd:t}));continue}typeof s=="object"&&o(Qc(await Jc(s.name,{cwd:t}),s||{}))}r.succeed();let i=Object.values(n).filter(s=>s.enable);return i.forEach((s,a)=>{Oe.log(` ${a===i.length-1?"\u2514\u2500":"\u251C\u2500"} ${(0,ze.yellow)(s.name)}${s.global?(0,ze.cyan)(" (global)"):""} ${(0,ze.dim)(s.pkg.homepage||s.pkg.repository?.url||s.pkg.repository)}`)}),i}async function Jc(e,t={}){let r=nv(e,t.cwd||Zc.cwd()),n=tv(r,"./package.json");if(!Xc.existsSync(n)){Oe.error(`No addon named ${e} found`);return}let o=await Xc.readJSON(n);return{enable:!0,name:o.name,global:!!o.global,root:r,options:{},props:{},pkg:o}}function nv(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return Xr(r,t)}c();function tu(e,t){let r=e.startsWith("valaxy-theme")||e.startsWith(".")?e:`valaxy-theme-${e}`;return Xr(r,t)}c();import{writeFile as ov}from"node:fs/promises";import{ensureFile as iv}from"fs-extra";function Qr(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function Jr(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:Qr(n),to:Qr(r.to)});else t.push({from:Qr(r.from),to:Qr(r.to)});return t}async function ru(e,t){await iv(t),await ov(t,`
|
|
10
|
-
<!DOCTYPE html>
|
|
11
|
-
<html lang="en">
|
|
12
|
-
<head>
|
|
13
|
-
<meta charset="UTF-8">
|
|
14
|
-
<meta http-equiv="refresh" content="0; url=${e}">
|
|
15
|
-
<link rel="canonical" href="${e}">
|
|
16
|
-
</head>
|
|
17
|
-
<script>
|
|
18
|
-
window.location.href = '${e}' + window.location.search + window.location.hash
|
|
19
|
-
</script>
|
|
20
|
-
</html>
|
|
21
|
-
`)}var lv=(0,su.default)("valaxy:options");async function cv(e){let{config:t,themeRoot:r,theme:n}=e,o=t.siteConfig;o.url=ou("/",o.url||""),o.cdn.prefix=ou("/",o.cdn.prefix||"");let i=zt(r,"package.json");try{t.themeConfig.pkg=await iu.readJson(i,"utf-8")}catch{console.error(`valaxy-theme-${n} doesn't have package.json`)}}async function yi(e,t){let{clientRoot:r,themeRoot:n,userRoot:o}=e,i=await eu(t.addons||[],e.userRoot),s=await Uc(i,e);t=ut(t,s);let a=lu(t,qc);e.config={...a,runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}}},e.addons=i,i.forEach(d=>{e.config.runtimeConfig.addons[d.name]=d});let f=i.map(({root:d})=>d),u=i.map(({name:d})=>d);e.addonRoots=f,e.roots=av([r,n,...f,o]);let l=e.config.vite?.build?.rollupOptions?.external||[];return e.config.vite.build.rollupOptions.external=l.filter(d=>!u.includes(d)),await cv(e),e}async function Ee(e={userRoot:nu.cwd()},t="dev"){let r=sv(Ne("valaxy/package.json",!0)),n=zt(r,"client"),o=zt(e.userRoot||nu.cwd());cu.start(`Resolve ${(0,Xe.magenta)("valaxy")} config...`);let[i,s,a,f]=await Promise.all([Bc(e),Gr(e.userRoot),Yr(e.userRoot),(0,au.default)(["**.md"],{cwd:zt(o,"pages"),ignore:["**/node_modules"]})]),{config:u,configFile:l,theme:d}=i,p=tu(d,e.userRoot),{siteConfig:y,siteConfigFile:x}=s,{config:C,configFile:b}=a,w=Jr(y.redirects?.rules);u=lu({siteConfig:y},{themeConfig:C},u);let P={mode:t,pkgRoot:r,tempDir:zt(o,".valaxy"),clientRoot:n,userRoot:o,themeRoot:p,addonRoots:[],roots:[],theme:d,config:{...u,runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}}},configFile:l||"",siteConfigFile:x||"",themeConfigFile:b||"",pages:f.sort(),addons:[],redirects:w,env:{id:"",links:[]}};lv(P);let I=await vi(P),N=ut(u,I);return P=await yi(P,N),iu.ensureDirSync(P.tempDir),P}async function vi(e){let t=Ye(),{config:r}=await Kt(e.themeRoot,e),n=t();return r&&cu.success(`Resolve ${(0,Xe.cyan)("valaxy.config.ts")} from ${(0,Xe.blue)(`theme(${e.theme})`)} ${(0,Xe.yellow)(n)}`),r}c();import uu from"fs-extra";async function fu(e){return await jt(e,"created")||(await uu.stat(e)).ctime}async function pu(e){return await jt(e,"created")||(await uu.stat(e)).mtime}c();function Qe(e){return e.positional("root",{default:".",type:"string",describe:"root folder of your source files"})}c();function du(e,t){t.forEach(r=>{r.setup?.(e)})}var yv=gv({html:!0,breaks:!0,linkify:!0});async function mu(e){ft.info(`${(0,Ae.yellow)("RSS Generating ...")}`);let{config:t}=e,r=t.siteConfig;if(!r.url||r.url==="/"){ft.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};ft.info(`RSS Site Url: ${(0,Ae.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`},f={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(b=>{f.feedLinks[b]=`${n}${a[b]}`});let u=await(0,gu.default)(`${e.userRoot}/pages/posts/**/*.md`),l=[];for await(let b of u){let w=await dv(b,"utf-8"),{data:P,content:I,excerpt:N}=mv(w,{excerpt_separator:Ur});if(P.password)continue;if(P.draft){ft.warn(`Ignore draft post: ${(0,Ae.dim)(b)}`);continue}if(P.hide)continue;let O=b;P.date||(P.date=await fu(O)),r.lastUpdated&&(P.updated||(P.updated=await pu(O)));let M=yv.render(N||I.slice(0,100)).replace('src="/',`src="${o}/`);P.image?.startsWith("/")&&(P.image=o+P.image),l.push({title:"",...P,id:(P.id||"").toString(),date:new Date(P.date),published:new Date(P.updated||P.date),content:M,author:[i],link:o+b.replace(`${e.userRoot}/pages`,"").replace(/\.md$/,"")})}l.sort((b,w)=>+new Date(w.published||w.date)-+new Date(b.published||b.date));let d=r.author?.avatar||"/favicon.svg";f.author=i,f.image=Lc(d)?r.author?.avatar:`${o}${mi("/",d)}`,f.favicon=`${o}${r.feed?.favicon||r.favicon}`;let p=new hv(f);l.forEach(b=>p.addItem(b)),await Xt.ensureDir(fv(`./dist/${a.atom}`));let y=Zr(e.userRoot,"./dist"),x=Zr(e.userRoot,"public");["rss","atom","json"].forEach(async b=>{let w="",P=`${y}/${a[b]}`;b==="rss"?w=p.rss2():b==="atom"?w=p.atom1():b==="json"&&(w=p.json1()),Xt.writeFileSync(P,w,"utf-8"),ft.success(`[${(0,Ae.cyan)(b)}] dist: ${(0,Ae.dim)(P)}`);let I=Zr(x,a[b]),N=pv("public",a[b]);Xt.writeFileSync(I,w,"utf-8"),ft.success(`[${(0,Ae.cyan)(b)}] public: ${(0,Ae.dim)(P)}`);try{let O=Zr(e.userRoot,".gitignore"),M=await Xt.readFile(O,"utf-8"),E=N.replace(/\\/g,"/");M.includes(E)||(await Xt.appendFile(O,`
|
|
22
|
-
# valaxy rss
|
|
23
|
-
${E}
|
|
24
|
-
`),ft.success(`Add ${(0,Ae.dim)(E)} to ${(0,Ae.dim)(".gitignore")}`))}catch{}})}var en={extendCli(e){e.command("rss [root]","generate rss feed",t=>Qe(t).strict().help(),async({root:t})=>{Ot();let r=await Ee({userRoot:t},"build");await mu(r)})},setup(e){e.hook("build:after",()=>{console.log(),mu(e.options)})}};c();var hu=Z(Ir(),1),Ze=Z(he(),1);import $t from"node:path";import Je from"fs-extra";import Ft from"consola";import vv from"gray-matter";async function yu(e){Ft.start(`Generate List for Fuse Search by (${(0,Ze.cyan)("fuse.js")}) ...`);let t=await(0,hu.default)(`${e.userRoot}/pages/posts/**/*.md`),r=[];for await(let n of t){let o=Je.readFileSync(n,"utf-8"),{data:i,excerpt:s,content:a}=vv(o,{excerpt_separator:"<!-- more -->"});if(i.draft){Ft.warn(`Ignore draft post: ${(0,Ze.dim)(n)}`);continue}if(i.hide||i.password)continue;let f=e.config.siteConfig.fuse.options.keys||[],u={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(n.replace(`${e.userRoot}/pages`,"").replace(/\.md$/,""))};f.includes("content")&&(u.content=a||""),r.push(u)}return r}function xv(e){e.command("fuse [root]","generate fuse list for search",t=>Qe(t).strict().help(),async({root:t})=>{Ft.info("Please generate it before build."),Ot();let r=await Ee({userRoot:t},"build"),n=await yu(r);await Je.ensureDir("./dist");let o=$t.resolve(r.userRoot,"public"),i=$t.resolve(o,r.config.siteConfig.fuse.dataPath),s=$t.join("public",r.config.siteConfig.fuse.dataPath);await Je.ensureFile(i),Je.writeJSONSync(i,n),Ft.success(`Generate fuse list in ${(0,Ze.dim)(o)}`);let a=$t.resolve(r.userRoot,"dist"),f=$t.resolve(a,r.config.siteConfig.fuse.dataPath);await Je.ensureDir(a),Je.writeJSONSync(f,n),Ft.success(`Generate fuse list in ${(0,Ze.dim)(a)}`);try{let u=$t.resolve(r.userRoot,".gitignore"),l=await Je.readFile(u,"utf-8"),d=s.replace(/\\/g,"/");l.includes(d)||(await Je.appendFile(u,`
|
|
25
|
-
# valaxy fuse
|
|
26
|
-
${d}
|
|
27
|
-
`),Ft.success(`Add ${(0,Ze.dim)(d)} to ${(0,Ze.dim)(".gitignore")}`))}catch{}})}var vu={extendCli(e){xv(e)},setup(e){e.hook("build:before",()=>{yu(e.options)})}};c();c();var rn=Z(he(),1);import{join as Rv,resolve as Cu}from"node:path";import{writeFile as wv}from"node:fs/promises";import{render as Ev}from"ejs";import Av from"dayjs";import{ensureSuffix as kv}from"@antfu/utils";import{consola as xi}from"consola";c();import{access as _v}from"node:fs/promises";async function tn(e){try{return await _v(e),!0}catch{return!1}}c();import bv from"node:path";import{readFile as Sv}from"node:fs/promises";c();import Cv from"node:process";var Qt=Cv.cwd(),xu=`---
|
|
28
|
-
layout: <%=layout%>
|
|
29
|
-
title: <%=title%>
|
|
30
|
-
date: <%=date%>
|
|
31
|
-
---
|
|
32
|
-
`;async function _u(e){let{clientRoot:t,themeRoot:r}=await Ee({userRoot:Qt}),n=[Qt,r,t];for(let o of n){let i=bv.resolve(o,"scaffolds",`${e}.md`);if(await tn(i))return Sv(i,"utf-8")}return!1}async function bu(e){let t=Cu(Qt,"pages"),{path:r,title:n}=e,o=r||Rv("posts",n),i=0;for(;;){let s=Cu(t,o);if(i&&(s=`${s}-${i}`),s=kv(".md",s),!await tn(s)){let a=await Pv(e);try{await wv(s,a,"utf-8"),xi.success(`[valaxy new]: successfully generated file ${(0,rn.magenta)(s)}`)}catch(f){console.log(f),xi.error(`[valaxy new]: failed to write file ${s}`),xi.warn(`You should run ${(0,rn.green)("valaxy new")} in your valaxy project root directory.`)}return s}i++}}async function Pv({date:e,title:t,layout:r="post"}){let n=await _u(r);return n||(n=xu),Ev(n,{title:t,layout:r,date:e?Av().format("YYYY-MM-DD HH:mm:ss"):""})}function Su(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 bu({title:t,date:n,layout:o,path:r})})}c();var Qf=Z(he(),1);import ji from"node:path";import K_ from"node:process";import Hi from"consola";import{mergeConfig as Xf}from"vite";c();import{join as jf,resolve as Hf}from"node:path";import{mergeConfig as qf,build as M_}from"vite";import{build as N_}from"vite-ssg/node";import L_ from"vite-ssg-sitemap";import un from"fs-extra";import Vi from"consola";c();import{splitVendorChunkPlugin as k_}from"vite";import P_ from"@vitejs/plugin-vue";import O_ from"vite-plugin-vue-layouts";import T_ from"unplugin-vue-components/vite";import $_ from"@intlify/unplugin-vue-i18n/vite";import F_ from"@unhead/addons/vite";import{resolve as I_}from"pathe";c();import{resolve as Mv}from"node:path";import{existsSync as Nv}from"node:fs";import{fileURLToPath as Lv}from"node:url";import Dv from"jiti";import Eu from"defu";import{presetAttributify as Vv,presetIcons as jv,presetTypography as Hv,presetUno as qv,transformerDirectives as Bv,transformerVariantGroup as Uv}from"unocss";c();import{resolve as Ov}from"node:path";import{fileURLToPath as Tv}from"node:url";import $v from"fs-extra";import{isObject as Fv}from"@antfu/utils";import Iv from"jiti";function Ru(e,t,r=""){return e={...e},Object.keys(t).forEach(n=>{Fv(e[n])?e[n]=Ru(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 wu(e,t,r,n,o=!0){let i=n;for(let s of e){let a=Ov(s,"setup",t);if($v.existsSync(a)){let{default:f}=Iv(Tv(import.meta.url),{esmResolve:!0})(a),u=await f(r);u!==null&&(i=o?Ru(i,u):u)}}return i}async function Wv(e){let{config:t}=e,r=["i-ri-clipboard-line","i-ri-archive-line","i-ri-folder-2-line","i-ri-price-tag-3-line","i-ri-cloud-line"].concat(e.config.unocss?.safelist||[]),n="animate-fade-in m-auto text-left".split(" ").concat(["rotate-y-180"]).concat(r),o=t.siteConfig;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 Gv(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:[qv(t.unocssPresets?.uno),Vv(t.unocssPresets?.attributify),jv({scale:1.2,...t.unocssPresets?.icons}),Hv(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:[Bv(),Uv()],safelist:await Wv(e)}}async function Au(e){let t=await import("unocss/vite").then(p=>p.default),{unocss:r}=e.config,n=await Gv(e),{themeRoot:o,clientRoot:i,roots:s}=e,a=["uno.config.ts","unocss.config.ts"],f=[];[o,i].forEach(p=>a.forEach(y=>f.push(Mv(p,y))));let l={},d=[];return f.forEach(p=>{if(Nv(p)){let y=Dv(Lv(import.meta.url),{esmResolve:!0})(p);"default"in y&&(y=y.default),l=Eu(l,y),d.push(p)}}),l=await wu(s,"unocss.ts",{},l,!0),t({configDeps:d,configFile:!1,...Eu(r||{},l,n)})}c();import{dirname as Xv,join as Pu,resolve as He}from"node:path";import{mergeConfig as Qv,searchForWorkspaceRoot as bi}from"vite";import Jv from"is-installed-globally";import{uniq as Ou}from"@antfu/utils";c();import{join as _i}from"node:path";import Ci from"fs-extra";import{uniq as Kv}from"@antfu/utils";import{loadConfigFromFile as Yv,mergeConfig as zv}from"vite";async function nn({userRoot:e,themeRoot:t},r){let n={mode:"development",command:r},o={},i=Kv([t,e]).map(s=>_i(s,"vite.config.ts"));for await(let s of i){if(!Ci.existsSync(s))continue;let a=await Yv(n,s);a?.config&&(o=zv(o,a.config))}return o}async function ku({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 f=[r,t];n.siteConfig.mode==="auto"&&(s+=`
|
|
33
|
-
<script>
|
|
34
|
-
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
35
|
-
const colorSchemeSetting = localStorage.getItem('vueuse-color-scheme') || 'auto';
|
|
36
|
-
if (colorSchemeSetting === 'dark' || (prefersDark && colorSchemeSetting !== 'light')) {
|
|
37
|
-
document.documentElement.classList.toggle('dark', true);
|
|
38
|
-
}
|
|
39
|
-
</script>
|
|
40
|
-
`),n.siteConfig.lang&&(s+=`
|
|
41
|
-
<script>
|
|
42
|
-
const locale = localStorage.getItem('valaxy-locale') || '${n.siteConfig.lang}';
|
|
43
|
-
document.documentElement.setAttribute('lang', locale);
|
|
44
|
-
</script>
|
|
45
|
-
`);for(let u of f){let l=_i(u,"index.html");if(!Ci.existsSync(l))continue;let d=await Ci.readFile(l,"utf-8");s+=`
|
|
46
|
-
${(d.match(/<head>([\s\S]*?)<\/head>/im)?.[1]||"").trim()}`,a+=`
|
|
47
|
-
${(d.match(/<body>([\s\S]*?)<\/body>/im)?.[1]||"").trim()}`}return i=i.replace("__ENTRY__",Q(_i(e,"main.ts"))).replace("<!-- head -->",s).replace("<!-- body -->",a),i}var Zv=["@unhead/schema-org","@unhead/vue","@vueuse/integrations/useFuse","body-scroll-lock","defu","dayjs","dayjs/locale/zh-cn","dayjs/plugin/relativeTime","dayjs/plugin/timezone","dayjs/plugin/utc","katex","nprogress","unocss","vue","vue-router","vue-i18n","fuse.js","medium-zoom","vanilla-lazyload","@vue/devtools-api"],Tu=["@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 $u(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,publicDir:Pu(e.userRoot,"public"),define:Si(e),resolve:{alias:ex(e),dedupe:["vue"]},optimizeDeps:{entries:[He(e.clientRoot,"main.ts")],include:Ou([...Zv,...t,...r]).filter(i=>!Tu.includes(i)),exclude:Tu},server:{fs:{allow:Ou([bi(e.clientRoot),bi(e.themeRoot),bi(e.userRoot),Xv(Ne("katex/package.json",!0))])}}};return Jv&&(o.cacheDir=Pu(e.pkgRoot,"node_modules/.vite"),o.resolve.alias.vue=`${Ne("vue/dist/vue.esm-browser.js",!0)}`),Qv(n,o)},async transformIndexHtml(n){return n=await ku(e,n),{html:n,tags:[]}}}}function Si(e){return{__VUE_PROD_DEVTOOLS__:!1,__INTLIFY_PROD_DEVTOOLS__:!1}}function ex(e){let t=[{find:"~/",replacement:`${Q(e.userRoot)}/`},{find:"valaxy/client/",replacement:`${Q(e.clientRoot)}/`},{find:"valaxy/package.json",replacement:Q(He(e.clientRoot,"../package.json"))},{find:/^valaxy$/,replacement:Q(He(e.clientRoot,"index.ts"))},{find:"@valaxyjs/client/",replacement:`${Q(e.clientRoot)}/`},{find:`valaxy-theme-${e.theme}/`,replacement:`${Q(He(e.themeRoot))}/`},{find:`valaxy-theme-${e.theme}`,replacement:`${Q(He(e.themeRoot))}/client/index.ts`}];return e.config.siteConfig.encrypt.enable&&t.push({find:/^vue$/,replacement:Ne("vue/dist/vue.esm-bundler.js",!0)}),e.addons.forEach(r=>{t.push({find:`${r.name}/client/`,replacement:`${Q(`${He(r.root)}`)}/client/`}),t.push({find:`${r.name}/App.vue`,replacement:`${Q(He(r.root))}/App.vue`}),t.push({find:r.name,replacement:`${Q(He(r.root))}/client/index.ts`})}),t.push({find:/^valaxy-addon-(.*)$/,replacement:Q(He(e.clientRoot,"./addons/index.ts"))}),t}c();import{existsSync as tx}from"node:fs";import{join as rx,resolve as nx}from"node:path";import{slash as ox,uniq as ix}from"@antfu/utils";function Fu({clientRoot:e,themeRoot:t,userRoot:r}){let n=ox(nx(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=[],f=[];return ix([t,r]).map(l=>rx(l,"setup",s)).forEach((l,d)=>{if(!tx(l))return;a.push(`import __n${d} from '${Q(l)}'`);let p=`__n${d}`;/\binjection_return\b/g.test(o)&&(p=`injection_return = ${p}`),/\binjection_arg\b/g.test(o)?p+="(injection_arg)":p+="()",f.push(`// ${l}`,p)}),o=o.replace("/* __imports__ */",a.join(`
|
|
48
|
-
`)),o=o.replace("/* __injections__ */",f.join(`
|
|
49
|
-
`)),o}return null}}}c();import{objectEntries as sx}from"@antfu/utils";function Iu(e){let t=sx(Si(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}}}]}c();import dx from"unplugin-vue-router/vite";import Ri from"fs-extra";import{resolve as mx}from"pathe";import gx from"gray-matter";import{isDate as Nu}from"@antfu/utils";import{convert as hx}from"html-to-text";import yx from"markdown-it";c();import{existsSync as ax,readFileSync as lx}from"node:fs";function cx(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 ux({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 fx({cn:e,en:t}){let r=e+t;return r<1e3?r:`${Math.round(r/100)/10}k`}function px(e,t){let r=cx(e);return{countData:r,wordCount:fx(r),readingTime:ux(r,t.readTime)}}function Mu({route:e,options:t}){let r=e.components.get("default")||"";if(ax(r)){let n=lx(r,"utf-8"),{wordCount:o,readingTime:i}=px(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))}}var Lu=new yx({html:!0});function vx(e="",t="html"){switch(t){case"ai":case"md":return e;case"html":return Lu.render(e);case"text":return hx(Lu.render(e));default:return e}}function Du(e){let{roots:t,config:r}=e;return dx({extensions:[".vue",".md"],routesFolder:t.map(n=>`${n}/pages`),dts:mx(e.tempDir,"typed-router.d.ts"),...r.router,async extendRoute(n){let o=JSON.parse(JSON.stringify(r.siteConfig.frontmatter))||{};if(n.meta&&n.meta.frontmatter){let{frontmatter:s,otherMeta:a}=n.meta;n.meta=a}n.addToMeta({frontmatter:o}),(n.fullPath==="/"||n.fullPath==="/page")&&n.addToMeta({layout:"home"});let i=n.components.get("default")||"";if(n.fullPath.startsWith("/posts/")&&n.addToMeta({layout:"post"}),i.endsWith(".md")){let s=Ri.readFileSync(i,"utf-8"),{data:a,excerpt:f,content:u}=gx(s,{excerpt_separator:Ur}),l=a,d=e.config.siteConfig.lastUpdated;if(delete l.password,l.gallery_password&&(delete l.gallery_password,delete l.photos),l.date||(l.date=Ri.statSync(i).mtime),d&&(l.updated||(l.updated=Ri.statSync(i).ctime)),Nu(l.date)||(l.date=new Date(l.date)),Nu(l.updated)||(l.updated=new Date(l.updated)),l.from&&(Array.isArray(l.from)?l.from.forEach(y=>{e.redirects.push({from:y,to:n.fullPath})}):e.redirects.push({from:l.from,to:n.fullPath})),n.addToMeta({frontmatter:l,excerpt:f?vx(f,l.excerpt_type):""}),a.layout&&n.addToMeta({layout:a.layout}),n.meta.frontmatter?.updated||(n.meta.frontmatter.updated=n.meta.frontmatter.date),n.meta.frontmatter.tags){let y=n.meta.frontmatter.tags;typeof y=="string"&&(n.meta.frontmatter.tags=[y])}r.siteConfig.statistics.enable&&Mu({options:r.siteConfig.statistics,route:n});let p={route:n,data:a,excerpt:f,content:u,path:i};r.extendMd?.(p)}return r.router?.extendRoute?.(n)}})}c();var sn=Z(he(),1);import{join as Zt,relative as Nx,resolve as Lx}from"pathe";import er from"fs-extra";import{defu as Dx}from"defu";import Vx from"pascalcase";import Zu from"consola";c();var Qu=Z(ni(),1);import{LRUCache as Fx}from"lru-cache";import Ix from"pathe";c();import ju from"pathe";import Cx from"fs-extra";c();c();import wi from"node:process";var Ei=new Set;function Vu(e){if(Ei.size===0){let r=typeof wi=="object"&&wi.env.VITE_EXTRA_EXTENSIONS||wi.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=>Ei.add(n))}let t=e.split(".").pop();return t==null||!Ei.has(t.toLowerCase())}c();import Ai from"node:path";import xx from"fs-extra";import{slash as _x}from"@antfu/utils";function ki(e,t,r,n){let o=/<!--\s*@include:\s*(.*?)\s*-->/g,i=/\{(\d*),(\d*)\}$/;return t.replace(o,(s,a)=>{if(!a.length)return s;let f=a.match(i);f&&(a=a.slice(0,-f[0].length));let u=a[0]==="@";try{let l=u?Ai.join(e,a.slice(a[1]==="/"?2:1)):Ai.join(Ai.dirname(r),a),d=xx.readFileSync(l,"utf-8");if(f){let[,p,y]=f;d=d.split(/\r?\n/).slice(p?Number.parseInt(p,10)-1:void 0,y?Number.parseInt(y,10):void 0).join(`
|
|
50
|
-
`)}return n.push(_x(l)),ki(e,d,l,n)}catch{return s}})}var bx=/<!--\s*@include:\s*(.*?)\s*-->/g;function Hu(e){let t=e.userRoot;return(r,n)=>{let o=n,i=[],s=ju.dirname(n);return r=ki(t,r,o,i),r=r.replace(bx,(a,f)=>{try{let u=ju.join(s,f),l=Cx.readFileSync(u,"utf-8");return i.push(u),l}catch{return a}}),{code:r,includes:i}}}c();import Jt from"pathe";import{slash as Sx}from"@antfu/utils";import Rx from"fs-extra";function qu(e){let t=e.userRoot,{ignoreDeadLinks:r}=e.config,n=e.config.vite?.publicDir||"public";return(o,i)=>{let{links:s=[]}=e.env,a=i,f=i,u=[],l=p=>{u.push({url:p,file:Jt.relative(t,a)})};function d(p){return r?r===!0?!0:r==="localhostLinks"?p.replace(Et,"").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=Jt.dirname(f);for(let y of s){let{pathname:x}=new URL(y,"http://a.com");if(!Vu(x))continue;y=y.replace(/[?#].*$/,"").replace(/\.(html|md)$/,""),y.endsWith("/")&&(y+="index");let C=decodeURIComponent(Sx(y.startsWith("/")?y.slice(1):Jt.relative(t,Jt.resolve(p,y)))).replace(/\/index$/,"");!e.pages.includes(C)&&!Rx.existsSync(Jt.resolve(p,n,`${C}.html`))&&!d(y)&&l(y)}}return u}}c();function wx(e){return["import { provide } from 'vue'","import { useRoute } from 'vue-router'",`
|
|
51
|
-
const data = ${Vc(e)}
|
|
52
|
-
const route = useRoute()`,`const $frontmatter = data.frontmatter || {}
|
|
53
|
-
route.meta.frontmatter = Object.assign(route.meta.frontmatter || {}, data.frontmatter || {})
|
|
54
|
-
provide('pageData', data)
|
|
55
|
-
provide('valaxy:frontmatter', $frontmatter)
|
|
56
|
-
`]}function Bu(e){return(t,r,n)=>{let o=wx(n),i=e.mode==="dev",s=[...o,i?`
|
|
57
|
-
window.$pageData = data
|
|
58
|
-
window.$frontmatter = $frontmatter
|
|
59
|
-
`:"","globalThis.$frontmatter = $frontmatter"],a=t.indexOf("<script setup>");a!==-1?t=t.slice(0,a+14)+s.join(`
|
|
60
|
-
`)+t.slice(a+14):t=`<script setup>
|
|
61
|
-
${s.join(`
|
|
62
|
-
`)}
|
|
63
|
-
</script>
|
|
64
|
-
${t}`;let f=t.indexOf("<template>")+10,u=t.lastIndexOf("</template>"),l=t.slice(f,u).trim();return l.startsWith("<div>")&&l.endsWith("</div>")&&(l=l.slice(5,-6)),t=`${t.slice(0,f)}
|
|
65
|
-
${Uu(l)}
|
|
66
|
-
${t.slice(u)}`,t}}c();import Ex from"pathe";function Ax(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 kx(e){let{description:t,head:r}=e;return t!==void 0?t:r&&Ax(r,"description")||""}async function Wu(e,t,r){let{frontmatter:n={}}=r.env,o=Ex.relative(r.userRoot,t),i=JSON.parse(JSON.stringify(n)),s={title:i.title||r.env.title||"",titleTemplate:i.titleTemplate,description:kx(i),frontmatter:i,headers:r.env.headers||[],relativePath:o,path:t};return s.lastUpdated=await jt(t),s}c();function Px(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 Gu(e){return t=>{let{frontmatter:r={}}=e.env;return Px(t,e,r.codeHeightLimit)}}c();c();import{webcrypto as Pi}from"node:crypto";function Ox(e){let t=new TextEncoder;return Pi.subtle.importKey("raw",t.encode(e),"PBKDF2",!1,["deriveBits","deriveKey"])}function Tx(e,t){return Pi.subtle.deriveKey({name:"PBKDF2",salt:t,iterations:1e5,hash:"SHA-256"},e,{name:"AES-CBC",length:256},!0,["encrypt","decrypt"])}async function on(e,t){let{password:r,iv:n,salt:o}=t,i=await Ox(r),s=await Tx(i,o),a=new TextEncoder,f=await Pi.subtle.encrypt({name:"AES-CBC",iv:n},s,a.encode(e));return String.fromCharCode(...new Uint8Array(f))}function Ku(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 f=[];for(let l of r.matchAll(s))f.push(await on(l.groups.content,{password:l.groups.password,iv:t.iv,salt:t.salt}));let u=0;f.length&&(i.partiallyEncryptedContents=f,r=r.replaceAll(s,()=>`<ClientOnly><ValaxyDecrypt :encrypted-content="${`$frontmatter.partiallyEncryptedContents[${u++}]`}" /></ClientOnly>`))}if(i.password){let f=r.indexOf("<template>"),u=r.lastIndexOf("</template>"),l=r.slice(f+10,u),d=await on(l,{password:i.password,iv:t.iv,salt:t.salt});i.encryptedContent=d,i.encrypt=!0,delete i.password,r=r.replace(l,'<ClientOnly><ValaxyDecrypt :encrypted-content="$frontmatter.encryptedContent" /></ClientOnly>');let y=r.lastIndexOf("<script setup>"),x=r.lastIndexOf("</script>"),C=r.slice(y+14,x);r=r.replace(C,"")}if(i.gallery_password){let f=await on(JSON.stringify(i.photos),{password:i.gallery_password,iv:t.iv,salt:t.salt});i.encryptedPhotos=f,delete i.gallery_password,delete i.photos}}return r}}c();var It=Z(he(),1);import $x from"consola";function Yu(e,t){return e.includes("{%")&&e.includes("%}")&&$x.error(`${`${t}
|
|
67
|
-
`} Please ${(0,It.red)("remove")} ${(0,It.cyan)("{% %}")}, because it conflicts with ${(0,It.yellow)("markdown-it-attrs")}.`),e.replace("{%","{%"),e.replace("%}","%}"),e}var zu=(0,Qu.default)("valaxy:md"),Xu=new Fx({max:128});function Mx(){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 Uu(e){let t="ValaxyMain";return`
|
|
68
|
-
<${t} :frontmatter="$frontmatter">
|
|
69
|
-
<template #main-content-md>${e}</template>
|
|
70
|
-
${Mx()}
|
|
71
|
-
<slot />
|
|
72
|
-
</${t}>
|
|
73
|
-
`}async function Ju(e,t){e.pages=e.pages.map(u=>u.replace(/\.md$/,"").replace(/\/index$/,""));let r=Hu(e),n=Gu(e),o=Bu(e),i=Ku(e),s=qu(e),a=e.userRoot,f=e.mode==="build";return async(u,l)=>{let d=l,p=Ix.relative(a,d),y=JSON.stringify({code:u,id:l});if(f){let N=JSON.stringify({code:u,id:l}),O=Xu.get(N);if(O)return zu(`[cache hit] ${p}`),O}let x=Date.now(),C=await Wu(u,l,e);u=Yu(u,l);let b=r(u,l),w=b.includes;u=b.code,u=n(u),u=await i(u,l,C);let P=s(u,l);u=o(u,l,C),zu(`[render] ${d} in ${Date.now()-x}ms.`);let I={code:u,pageData:C,deadLinks:P,includes:w};return f&&Xu.set(y,I),I}}function jx(e){let t=e.redirects.map(r=>({path:r.from,redirect:r.to}));return e.config.runtimeConfig.redirects={useVueRouter:Yt()?e.config.siteConfig.redirects.useVueRouter:!0,redirectRoutes:t},`export default ${JSON.stringify(JSON.stringify(e.config))}`}function Hx(e,t){let r=[];t.config.features?.katex&&(r.push(`import "${Q(Ne("katex/dist/katex.min.css",!0))}"`),r.push(`import "${Q(Zt(t.clientRoot,"styles/third/katex.scss"))}"`));for(let n of e){let o=[];["index","css-vars"].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 "${Q(s)}"`)}return r.join(`
|
|
74
|
-
`)}function qx(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 "${Q(s)}"`),t.push(`messages['${i}'] = defu(${a}, messages['${i}'])`)}})}),t.push("export default messages"),t.join(`
|
|
75
|
-
`)}function Bx(e){let t=e.addons.filter(i=>i.global).filter(i=>er.existsSync(Zt(i.root,"./App.vue"))),r=i=>`Addon${Vx(i)}App`,n=t.map(i=>`import ${r(i.name)} from "${i.name}/App.vue"`).join(`
|
|
76
|
-
`),o=t.map(i=>`{ component: ${r(i.name)}, props: ${JSON.stringify(i.props)} }`).join(",");return`${n}
|
|
77
|
-
export default [${o}]`}var Ux='import { defineComponent } from "vue"; export default defineComponent({ render: () => null });';function ef(e){let t=Zt(e,"App.vue");return er.existsSync(t)?[`import AppVue from "${Q(t)}"`,"export default AppVue"].join(`
|
|
78
|
-
`):Ux}async function tf(e,t={}){let{config:r}=e,n="/@valaxy",o=e.roots,i=!1,s,a;return[{name:"valaxy:loader",enforce:"pre",async configResolved(f){a=f,s=await Ju(e,a)},configureServer(f){f.watcher.add([e.configFile,e.clientRoot,e.themeRoot,e.userRoot])},resolveId(f){return f.startsWith(n)?f:null},load(f){if(f==="/@valaxyjs/config")return jx(e);if(f==="/@valaxyjs/context")return`export default ${JSON.stringify(JSON.stringify({userRoot:e.userRoot}))}`;if(f==="/@valaxyjs/styles")return Hx(o,e);if(f==="/@valaxyjs/locales")return qx(o);if(f==="/@valaxyjs/addons")return Bx(e);if(f==="/@valaxyjs/UserAppVue")return ef(e.userRoot);if(f==="/@valaxyjs/ThemeAppVue")return ef(e.themeRoot);if(f.startsWith(n))return{code:"",map:{mappings:""}}},async transform(f,u){if(u.endsWith(".md")){let{code:l,deadLinks:d,includes:p}=await s(f,u);return d.length&&(i=!0,Zu.error(`Dead links found in ${u}`),Zu.error(d)),p.length&&p.forEach(y=>{this.addWatchFile(y)}),l}},renderStart(){if(i&&!r.ignoreDeadLinks)throw new Error("One or more pages contain dead links.")},async handleHotUpdate(f){let{file:u,server:l,read:d}=f,p=x=>{t.onConfigReload?.(x,e.config),Object.assign(e.config,x),r=x;let C=["/@valaxyjs/config","/@valaxyjs/context"];return[...Array.from(C).map(w=>l.moduleGraph.getModuleById(w))].filter(w=>!!w)};if([e.configFile].includes(u)){let{config:x}=await Ee({userRoot:e.userRoot});return p(x)}if(u===e.siteConfigFile){let{siteConfig:x}=await Gr(e.userRoot);return r.siteConfig=Dx(x,Wr),p(r)}if(u===e.themeConfigFile){let{themeConfig:x}=await Kc(e),C=r.themeConfig.pkg;return x.pkg=C,r.themeConfig=x,p(r)}if(u===Lx(e.themeRoot,"valaxy.config.ts")){let x=await vi(e),C=ut(e.config,x),{config:b}=await yi(e,C);return p(b)}if(u.endsWith(".md")){let x=Ye(),C=await d(),{code:b,pageData:w}=await s(C,u),I={path:`/${Nx(`${e.userRoot}/pages`,u)}`,pageData:w};l.hot.send({type:"custom",event:"valaxy:pageData",data:I}),Tt.success(`${(0,sn.yellow)("[HMR]")} ${u} ${(0,sn.dim)(`updated in ${x()}`)}`),f.read=()=>b}}}]}c();import GP from"markdown-it";c();c();import nf from"crypto";c();var rf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var Wx=128,et,tt,of=e=>{!et||et.length<e?(et=Buffer.allocUnsafe(e*Wx),nf.randomFillSync(et),tt=0):tt+e>et.length&&(nf.randomFillSync(et),tt=0),tt+=e},Gx=e=>(of(e-=0),et.subarray(tt-e,tt)),Kx=(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),f=o;for(;f--;)if(s+=e[a[f]&n]||"",s.length===i)return s}}},sf=(e,t=21)=>Kx(e,t,Gx),Oi=(e=21)=>{of(e-=0);let t="";for(let r=tt-e;r<tt;r++)t+=rf[et[r]&63];return t};var pf=Z(he(),1);c();function af(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 Yx(e,t,r,n=!1){return{name:e,code(o){let i=o.children.filter(a=>a.type==="element"),s=[];i.forEach((a,f)=>{let u;for(let l of a.children){if(l.type!=="element")continue;let d=l.children[0];if(d.type!=="text")continue;let p=!1;d.value=d.value.replace(t,(...y)=>r.call(this,y,a,l,i,f)?(p=!0,""):y[0]),p&&!d.value.trim()&&(u=l)}if(u&&(a.children.splice(a.children.indexOf(u),1),a.children.length===0&&(s.push(a),n))){let l=o.children[o.children.indexOf(a)+1];l&&l.type==="text"&&l.value===`
|
|
79
|
-
`&&s.push(l)}});for(let a of s)o.children.splice(o.children.indexOf(a),1)}}}function zx(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function an(e={},t="@shikijs/transformers:notation-map"){let{classMap:r={},classActivePre:n=void 0}=e;return Yx(t,new RegExp(`\\s*(?://|/\\*|<!--|#)\\s+\\[!code (${Object.keys(r).map(zx).join("|")})(:\\d+)?\\]\\s*(?:\\*/|-->)?`),function([o,i,s=":1"],a,f,u,l){let d=Number.parseInt(s.slice(1),10);return u.slice(l,l+d).forEach(p=>{this.addClassToHast(p,r[i])}),n&&this.addClassToHast(this.pre,n),!0})}function lf(e={}){let{classActiveLine:t="focused",classActivePre:r="has-focused"}=e;return an({classMap:{focus:t},classActivePre:r},"@shikijs/transformers:notation-focus")}function cf(e={}){let{classActiveLine:t="highlighted",classActivePre:r="has-highlighted"}=e;return an({classMap:{highlight:t,hl:t},classActivePre:r},"@shikijs/transformers:notation-highlight")}function uf(e={}){let{classLineAdd:t="diff add",classLineRemove:r="diff remove",classActivePre:n="has-diff"}=e;return an({classMap:{"++":t,"--":r},classActivePre:n},"@shikijs/transformers:notation-diff")}function ff(e={}){let{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:r="has-highlighted"}=e;return an({classMap:t,classActivePre:r},"@shikijs/transformers:notation-error-level")}var wk=Symbol("highlighted-lines");import{addClassToHast as Xx,bundledLanguages as Qx,getHighlighter as Jx,isSpecialLang as Zx}from"shiki";var e_=sf("abcdefghijklmnopqrstuvwxyz",10);function t_(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 Ti(e,t,r=console){let{defaultHighlightLang:n="",codeTransformers:o=[]}=t,i=await Jx({themes:typeof e=="object"&&"light"in e&&"dark"in e?[e.light,e.dark]:[e],langs:[...Object.keys(Qx),...t.languages||[]],langAlias:t.languageAlias});await t?.shikiSetup?.(i);let s=[uf(),lf({classActiveLine:"has-focus",classActivePre:"has-focused-lines"}),cf(),ff(),{name:"valaxy:add-class",pre(d){Xx(d,"vp-code")}},{name:"valaxy:clean-up",pre(d){delete d.properties.tabindex,delete d.properties.style}}],a=/-vue$/,f=/=(\d*)/,u=/:(no-)?line-numbers(=\d*)?$/,l=/\{\{.*?\}\}/g;return(d,p,y)=>{let x=a.test(p)?"":"v-pre";p=p.replace(f,"").replace(u,"").replace(a,"").toLowerCase()||n,p&&!i.getLoadedLanguages().includes(p)&&!Zx(p)&&(r.warn(pf.default.yellow(`
|
|
80
|
-
The language '${p}' is not loaded, falling back to '${n||"txt"}' for syntax highlighting.`)),p=n);let C=t_(y),b=new Map,w=N=>x?N:N.replace(l,O=>{let M=b.get(O);return M||(M=e_(),b.set(O,M)),M}),P=N=>(b.forEach((O,M)=>{N=N.replaceAll(O,M)}),N);d=w(d).trimEnd();let I=i.codeToHtml(d,{lang:p,transformers:[...s,af(C),{name:"valaxy:v-pre",pre(N){x&&(N.properties["v-pre"]="")}},{name:"valaxy:empty-line",code(N){N.children.forEach(O=>{O.type==="element"&&O.tagName==="span"&&Array.isArray(O.properties.class)&&O.properties.class.includes("line")&&O.children.length===0&&O.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 P(I)}}c();import Nf from"markdown-it-anchor";import S_ from"markdown-it-attrs";import{full as R_}from"markdown-it-emoji";import w_ from"markdown-it-task-lists";c();var df=new Set([!0,!1,"alt","title"]);function mf(e,t){return(Array.isArray(e)?e:[]).filter(([r])=>r!==t)}function gf(e,t){e&&e.attrs&&(e.attrs=mf(e.attrs,t))}function r_(e,t){if(!df.has(e))throw new TypeError(`figcaption must be one of: ${[...df]}.`);if(e==="alt")return t.content;let r=t.attrs.find(([n])=>n==="title");return Array.isArray(r)&&r[1]?(gf(t,"title"),r[1]):void 0}function hf(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(r){let n=1;for(let o=1,i=r.tokens.length;o<i-1;++o){let s=r.tokens[o];if(s.type!=="inline"||!s.children||s.children.length!==1&&s.children.length!==3||s.children.length===1&&s.children[0].type!=="image")continue;if(s.children.length===3){let[u,l,d]=s.children;if(u.type!=="link_open"||l.type!=="image"||d.type!=="link_close")continue}if(o!==0&&r.tokens[o-1].type!=="paragraph_open"||o!==i-1&&r.tokens[o+1].type!=="paragraph_close")continue;let a=r.tokens[o-1],f;if(a.type="figure_open",a.tag="figure",r.tokens[o+1].type="figure_close",r.tokens[o+1].tag="figure",t.dataType&&r.tokens[o-1].attrPush(["data-type","image"]),t.link&&s.children.length===1){[f]=s.children;let u=new r.Token("link_open","a",1);u.attrPush(["href",f.attrGet("src")]),s.children.unshift(u),s.children.push(new r.Token("link_close","a",-1))}if(f=s.children.length===1?s.children[0]:s.children[1],t.figcaption){let u=r_(t.figcaption,f);if(u){let[l]=e.parseInline(u,r.env);s.children.push(new r.Token("figcaption_open","figcaption",1)),s.children.push(...l.children),s.children.push(new r.Token("figcaption_close","figcaption",-1)),f.attrs&&(f.attrs=mf(f.attrs,"title"))}}if(t.copyAttrs&&f.attrs){let u=t.copyAttrs===!0?"":t.copyAttrs;a.attrs=f.attrs.filter(([l])=>l.match(u)).map(l=>Array.from(l))}if(t.tabindex&&(r.tokens[o-1].attrPush(["tabindex",n]),n++),t.lazy&&(f.attrs.some(([u])=>u==="loading")||f.attrs.push(["loading","lazy"])),t.async&&(f.attrs.some(([u])=>u==="decoding")||f.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let u=!1;for(let l=0,d=f.attrs.length;l<d&&!u;l++){let p=f.attrs[l];p[0]==="class"&&(p[1]=`${p[1]} ${t.classes}`,u=!0)}u||f.attrs.push(["class",t.classes])}if(t.removeSrc){let u=f.attrs.find(([l])=>l==="src");f.attrs.push(["data-src",u[1]]),gf(f,"src")}}})}c();c();var n_={"&":"&","<":"<",">":">","'":"'",'"':"""},o_=/[&<>'"]/g,pt=e=>e.replace(o_,t=>n_[t]);var $i=(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}${pt(a.content)}`:`${s}${a.content}`,"").trim()},ln=(e,{level:t,shouldAllowHtml:r,shouldAllowNested:n,shouldEscapeText:o,slugify:i,format:s})=>{let a=[],f=[],u=l=>{for(;f.length!==0&&l.level<=f[0].level;)f.shift();f.length===0?(a.push(l),f.push(l)):(f[0].children.push(l),f.unshift(l))};for(let l=0;l<e.length;l+=1){let d=e[l];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[l+1];if(!y)continue;let x=$i(y,{shouldAllowHtml:r,shouldEscapeText:o}),C=d.attrGet("id")??i(x);u({level:p,title:s?.(x)??x,slug:C,link:`#${C}`,children:[]})}return a},i_=/[\u0000-\u001f]/g,s_=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,a_=/[\u0300-\u036F]/g,dt=e=>e.normalize("NFKD").replace(a_,"").replace(i_,"").replace(s_,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase();var yf=(e,{level:t=[2,3],shouldAllowNested:r=!1,slugify:n=dt,format:o}={})=>{let i=e.renderer.render.bind(e.renderer);e.renderer.render=(s,a,f)=>(f.headers=ln(s,{level:t,shouldAllowHtml:!1,shouldAllowNested:r,shouldEscapeText:!1,slugify:n,format:o}),i(s,a,f))};c();var vf="script",xf="style",tr="template",l_=/^<script\s+.*?\bsetup\b.*?>$/is,c_=({customBlocks:e})=>{let t=Array.from(new Set([vf,xf,...e])).join("|");return new RegExp(`^\\s*(?<content>(?<tagOpen><(?<type>${t})\\s?.*?>)(?<contentStripped>.*)(?<tagClose><\\/\\k<type>\\s*>))\\s*$`,"is")},_f=(e,{customBlocks:t=[]}={})=>{let r=c_({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:tr,content:`<${tr}>${a}</${tr}>`,contentStripped:a,tagOpen:`<${tr}>`,tagClose:`</${tr}>`},a};let o=e.renderer.rules.html_block;e.renderer.rules.html_block=(i,s,a,f,u)=>{if(!f.sfcBlocks)return o(i,s,a,f,u);let p=i[s].content.match(r);if(!p)return o(i,s,a,f,u);let y=p.groups;return y.type===vf?(f.sfcBlocks.scripts.push(y),l_.test(y.tagOpen)?f.sfcBlocks.scriptSetup=y:f.sfcBlocks.script=y):y.type===xf?f.sfcBlocks.styles.push(y):f.sfcBlocks.customBlocks.push(y),""}};c();var Cf=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?$i(r[i+1],{shouldAllowHtml:!1,shouldEscapeText:!1}):"",t(r,n,o)}};c();var u_=({listTag:e,listClass:t,itemClass:r,linkTag:n,linkClass:o})=>{let i=pt(e),s=t?` class="${pt(t)}"`:"",a="li",f=r?` class="${pt(r)}"`:"",u=pt(n),l=o?` class="${pt(o)}"`:"",d=y=>n==="router-link"?` to="${y}"`:` href="${y}"`,p=y=>`<${i}${s}>${y.map(x=>`<${a}${f}><${u}${l}${d(x.link)}>${x.title}</${u}>${x.children.length>0?p(x.children):""}</${a}>`).join("")}</${i}>`;return p},f_=({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],f=n.eMarks[o],u=n.src.slice(a,f).split(" ")[0];if(!e.test(u))return!1;if(s)return!0;n.line=o+1;let l=n.push("toc_open",t,1);l.markup="",l.map=[o,n.line],r&&l.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},bf=(e,{pattern:t=/^\[\[toc\]\]$/i,slugify:r=dt,format:n,level:o=[2,3],shouldAllowNested:i=!1,containerTag:s="nav",containerClass:a="table-of-contents",listTag:f="ul",listClass:u="",itemClass:l="",linkTag:d="a",linkClass:p=""}={})=>{e.block.ruler.before("heading","toc",f_({pattern:t,containerTag:s,containerClass:a}),{alt:["paragraph","reference","blockquote"]});let y=u_({listTag:f,listClass:u,itemClass:l,linkTag:d,linkClass:p});e.renderer.rules.toc_body=x=>y(ln(x,{level:o,shouldAllowHtml:!0,shouldAllowNested:i,shouldEscapeText:!0,slugify:r,format:n}))};import{cssI18nContainer as E_}from"css-i18n";c();import Sf from"katex";function Rf(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 p_(e,t){let r,n,o,i;if(e.src[e.pos]!=="$")return!1;if(o=Rf(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=Rf(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 d_(e,t,r,n){let o,i,s,a,f=!1,u=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(u+2>l||e.src.slice(u,u+2)!=="$$")return!1;if(u+=2,o=e.src.slice(u,l),n)return!0;for(o.trim().slice(-2)==="$$"&&(o=o.trim().slice(0,-2),f=!0),s=t;!f&&(s++,!(s>=r||(u=e.bMarks[s]+e.tShift[s],l=e.eMarks[s],u<l&&e.tShift[s]<e.blkIndent)));)e.src.slice(u,l).trim().slice(-2)==="$$"&&(a=e.src.slice(0,l).lastIndexOf("$$"),i=e.src.slice(u,a),f=!0);e.line=s+1;let d=e.push("math_block","math",0);return d.block=!0,d.content=(o&&o.trim()?`${o}
|
|
81
|
-
`:"")+e.getLines(t+1,s,e.tShift[t],!0)+(i&&i.trim()?i:""),d.map=[t,e.line],d.markup="$$",!0}function Fi(e,t){t=t||{};let r=function(s){t.displayMode=!1;try{return Sf.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>${Sf.renderToString(s,t)}</p>`}catch(a){return t.throwOnError&&console.warn(a),s}},i=function(s,a){return`${o(s[a].content)}
|
|
82
|
-
`};e.inline.ruler.after("escape","math_inline",p_),e.block.ruler.after("blockquote","math_block",d_,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=n,e.renderer.rules.math_block=i}c();import Mi from"markdown-it-container";c();function wf(e){return e.trim().replace(/=(\d*)/,"").replace(/:(no-)?line-numbers({| |$|=\d*).*/,"").replace(/(-vue|{| ).*$/,"").replace(/^vue-html$/,"template").replace(/^ansi$/,"")}function Ii(e){return e.hasSingleTheme?"":" vp-adaptive-theme"}function Ef(e,t=!1){return t?e.replace(/<!--[^]*?-->/g,"").match(/data-title="(.*?)"/)?.[1]||"":e.match(/\[(.*)\]/)?.[1]||wf(e)||"txt"}function m_(e){let t=e?.siteConfig?.codeHeightLimit;return t===void 0||t<=0?"":`style="max-height: ${t}px;"`}function Af(e,t){let r=e.renderer.rules.fence;e.renderer.rules.fence=(...n)=>{let[o,i]=n,s=o[i];s.info=s.info.replace(/\[.*\]/,"");let a=wf(s.info),f=r(...n);return`
|
|
83
|
-
<div ${m_(t)} class="language-${a}${Ii(t)}${/ active( |$)/.test(s.info)?" active":""}">
|
|
84
|
-
<button title="Copy Code" class="copy"></button><span class="lang">${a}</span>${f}<button class="collapse"></button>
|
|
85
|
-
</div>`}}function g_(e,{icon:t,color:r,text:n,langs:o}={}){return[Mi,e,{render(i,s){let a=i[s],f=a.info.trim().slice(e.length).trim();if(a.nesting===1){if(e==="details")return`<details class="${e} custom-block">${`<summary>${f}</summary>`}
|
|
86
|
-
`;let u="";t&&(u=`<i class="icon ${t}" ${r?`style="color: ${r}"`:""}></i>`);let l=`<span lang="en">${f||n}</span>`;return o&&Object.keys(o).forEach(d=>{l+=`<span lang="${d}">${f||o[d]}</span>`}),`<div class="${e} custom-block"><p class="custom-block-title">${u}${l}</p>
|
|
87
|
-
`}else return e==="details"?`</details>
|
|
88
|
-
`:`</div>
|
|
89
|
-
`}}]}var kf={tip:{text:"TIP",langs:{"zh-CN":"\u63D0\u793A"}},warning:{text:"WARNING",langs:{"zh-CN":"\u6CE8\u610F"}},danger:{text:"DANGER",langs:{"zh-CN":"\u8B66\u544A"}},info:{text:"INFO",langs:{"zh-CN":"\u4FE1\u606F"}},details:{text:"Details",langs:{"zh-CN":"\u8BE6\u60C5"}}};function Pf(e,t,r={}){Object.keys(kf).forEach(o=>{let i={...kf[o],...r[o]||{}};e.use(...g_(o,i))}),e.use(...h_(t)),["zh-CN","en"].forEach(o=>{e.use(Mi,o,{render:(i,s)=>i[s].nesting===1?`<div lang="${o}">
|
|
90
|
-
`:`</div>
|
|
91
|
-
`})})}function h_(e){return[Mi,"code-group",{render(t,r){if(t[r].nesting===1){let n=Oi(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 f=Ef(a?t[s].content:t[s].info,a);if(f){let u=Oi(7);o+=`<input type="radio" name="group-${n}" id="tab-${u}" ${i}><label for="tab-${u}">${f}</label>`,i&&!a&&(t[s].info+=" active"),i=""}}}return`<div class="vp-code-group${Ii(e)}"><div class="tabs">${o}</div><div class="blocks">
|
|
92
|
-
`}return`</div></div>
|
|
93
|
-
`}}]}c();var Ni=/{([\d,-]+)}/;function Of(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 f=i.info;if(!f||!Ni.test(f))return t(...r);let u=f.replace(Ni,"").trim();i.info=u,a=Ni.exec(f)[1]}return!a&&(a=s[0],!a||!/[\d,-]+/.test(a))?t(...r):(i.info+=` ${a}`,t(...r))}}c();import{URL as y_}from"node:url";var v_=/(^|.*\/)index.md(#?.*)$/i;function Tf(e,t,r){e.renderer.rules.link_open=(i,s,a,f,u)=>{let l=i[s],d=l.attrIndex("href");if(d>=0){let p=l.attrs[d],y=p[1];Et.test(y)?(Object.entries(t).forEach(([C,b])=>{l.attrSet(C,b)}),p[1]=y.replace(Mc,"")):!y.startsWith("#")&&!y.startsWith("mailto:")&&!/\.(?!html|md)\w+($|\?)/i.test(y)&&n(p,f),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],f=a.match(v_);if(f){let[,u,l]=f;a=u+l}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 l=new y_(a,"http://a.com");a=u+l.search+l.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)}}c();function $f(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 f=1,u=a.match(/=(\d*)/);u&&u[1]&&(f=Number.parseInt(u[1]));let d=o.slice(o.indexOf("<code>"),o.indexOf("</code>")).split(`
|
|
94
|
-
`),y=`<div class="line-numbers-wrapper" aria-hidden="true">${[...Array(d.length)].map((C,b)=>`<span class="line-number">${b+f}</span><br>`).join("")}</div>`;return o.replace(/<\/div>$/,`${y}</div>`).replace(/"(language-[^"]*?)"/,'"$1 line-numbers-mode"')}}c();import Ff from"pathe";import Li from"fs-extra";var x_=/^(.+?(?:(?:\.([a-z0-9]+))?))(?:(#[\w-]+))?(?: ?(?:{(\d+(?:[,-]\d+)*)? ?(\S+)?}))? ?(?:\[(.+)\])?$/;function __(e){let[t="",r="",n="",o="",i="",s=""]=(x_.exec(e)||[]).slice(1),a=s||t.split("/").pop()||"";return{filepath:t,extension:r,region:n,lines:o,lang:i,title:a}}function C_(e){let t=e.split(`
|
|
95
|
-
`),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(`
|
|
96
|
-
`):e}function If(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 b_(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(If(s,a,t)){o=i+1,n=a;break}}else if(If(s,n,t,!0))return{start:o,end:i,regexp:n};return null}function Mf(e,t){let r=(o,i,s,a)=>{let u=o.bMarks[i]+o.tShift[i],l=o.eMarks[i];if(o.sCount[i]-o.blkIndent>=4)return!1;for(let A=0;A<3;++A)if(o.src.charCodeAt(u+A)!==60||u+A>=l)return!1;if(a)return!0;let d=u+3,p=o.skipSpacesBack(l,u),y=o.src.slice(d,p).trim().replace(/^@/,t).trim(),{filepath:x,extension:C,region:b,lines:w,lang:P,title:I}=__(y);o.line=i+1;let N=o.push("fence","code",0);N.info=`${P||C}${w?`{${w}}`:""}${I?`[${I}]`:""}`;let{realPath:O,path:M}=o.env,E=Ff.resolve(Ff.dirname(O??M),x);return N.src=[E,b.slice(1)],N.markup="```",N.map=[i,i+1],!0},n=e.renderer.rules.fence;e.renderer.rules.fence=(...o)=>{let[i,s,,{includes:a}]=o,f=i[s],[u,l]=f.src??[];if(!u)return n(...o);a&&a.push(u);let d=Li.statSync(u).isFile();if(!Li.existsSync(u)||!d)return f.content=d?`Code snippet path not found: ${u}`:"Invalid code snippet option",f.info="",n(...o);let p=Li.readFileSync(u,"utf8");if(l){let y=p.split(/\r?\n/),x=b_(y,l);x&&(p=C_(y.slice(x.start,x.end).filter(C=>!x.regexp.test(C.trim())).join(`
|
|
97
|
-
`)))}return f.content=p,n(...o)},e.block.ruler.before("fence","snippet",r)}var cn={light:"github-light",dark:"github-dark"};async function Di(e,t,r="/"){let n=t?.config.markdown||{},o=n.theme??cn,i=typeof o=="string"||"name"in o,s=t?.config.siteConfig||{};n.preConfig&&n.preConfig(e),e.use(Of).use(Af,{theme:o,siteConfig:s}).use(Mf,t?.userRoot).use(Pf,{hasSingleTheme:i},{...n.blocks,...n?.container}).use(E_,{languages:t?.config.siteConfig.languages}).use(Tf,{target:"_blank",rel:"noreferrer",...n.externalLinks},r),e.use($f,n.lineNumbers),n.attrs?.disable||e.use(S_,n.attrs),e.use(R_),e.use(Nf,{slugify:dt,permalink:Nf.permalink.linkInsideHeader({symbol:"​",renderAttrs:(f,u)=>{let l=u.tokens.findIndex(p=>{let x=p.attrs?.find(C=>C[0]==="id");return x&&f===x[1]});return{"aria-label":`Permalink to "${u.tokens[l+1].content}"`}}}),...n.anchor}),e.use(yf,{slugify:dt,...typeof n.headers=="boolean"?void 0:n.headers}).use(_f,{...n.sfc}).use(Cf).use(bf,{...n.toc}),e.use(Fi,n.katex);let a=t?.config.siteConfig.vanillaLazyload||{enable:!1};return e.use(hf,{figcaption:!0,lazy:!0,async:!0,...a.enable?{lazy:!0,async:!0,classes:"lazy"}:{},...n.imageFigures}),e.use(w_),n.config&&n.config(e),e}c();c();import A_ from"unplugin-vue-markdown/vite";c();import*as Lf from"js-base64";function Df(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="'${Lf.encode(n,!0)}'" v-bind="${r}" />`)),e=e.replace(/^````txt\n\\`\\`\\`mermaid/mg,"````txt\n```mermaid"),e}async function Vf(e){let t=e?.config.markdown||{},r=t.theme??cn;return A_({include:[/\.md$/],wrapperClasses:"",frontmatter:!0,exportFrontmatter:!1,escapeCodeTagInterpolation:!0,markdownItOptions:{quotes:`""''`,html:!0,xhtmlOut:!0,linkify:!0,highlight:await Ti(r,t),...t?.markdownItOptions},async markdownItSetup(n){n.linkify.set({fuzzyLink:!1}),await Di(n,e),e?.config.markdown?.markdownItSetup?.(n);function o(i){i.core.ruler.push("valaxy_md_env",s=>{e.env=s.env})}n.use(o)},transforms:{before(n,o){return n=Df(n),n}},...t})}async function rr(e,t={}){let{roots:r,config:n}=e,o=await Vf(e),i=await tf(e,t);return[o,$u(e),Fu(e),P_({include:[/\.vue$/,/\.md$/],exclude:[],template:{...n.vue?.template,compilerOptions:{...n.vue?.template?.compilerOptions,isCustomElement:s=>Nc.has(s)||n.vue?.template?.compilerOptions?.isCustomElement?.(s)}},...n.vue}),i,F_(),Du(e),O_({layoutsDirs:r.map(s=>`${s}/layouts`),...n.layouts}),T_({extensions:["vue","md"],include:[/\.vue$/,/\.vue\?vue/,/\.md$/],exclude:[],allowOverrides:!0,dirs:r.map(s=>`${s}/components`).concat(["src/components","components"]),dts:I_(e.tempDir,"components.d.ts"),...n.components}),await Au(e),$_({runtimeOnly:!0,compositionOnly:!0,include:r.map(s=>`${s}/locales/**`)}),k_(),Iu(e)]}async function Bf(e,t={}){let r=qf(t,{plugins:await rr(e)});await M_(r)}async function Uf(e,t={}){let r={plugins:await rr(e),ssr:{noExternal:["workbox-window",/vue-i18n/,"@vue/devtools-api"]}};r.ssgOptions={script:"async",formatting:"minify",crittersOptions:{reduceInlineStyles:!1},onFinished(){L_({hostname:e.config.siteConfig.url})}};let n=qf(r,t);await N_({},n)}async function Wf(e){let{userRoot:t}=e,r=Hf(t,"dist/index.html");if(un.existsSync(r)){Vi.info("post process for ssg...");let n=await un.readFile(r,"utf-8"),o="</html>";if(!n.endsWith(o)){Vi.warn("fix incomplete index.html...");let i=n.lastIndexOf(o);await un.writeFile(r,n.slice(0,i+o.length),"utf-8")}}e.config.siteConfig.redirects?.useVueRouter||await D_(e)}async function D_(e){Vi.info("generate client redirects...");let t=Hf(e.userRoot,"dist"),n=Jr(e.redirects).map(async o=>{let i=jf(t,`${o.from}.html`),s=jf(t,`${o.to}.html`);if(!await un.pathExists(s))throw new Error(`the route of '${o.to}' not exists`);await ru(o.to,i)});await Promise.all(n)}c();c();c();c();import Gf from"node:process";import{createServer as V_,mergeConfig as j_}from"vite";async function Kf(e,t={},r={}){Gf.env.EDITOR=Gf.env.EDITOR||"code";let n=await rr(e,r),o=e.mode==="dev"&&e.config.devtools,i=[...n];o&&i.push((await import("vite-plugin-vue-devtools")).default(),(await import("@valaxyjs/devtools")).default());let s=j_(t,{plugins:i});return await V_(s)}c();c();import{createHooks as H_}from"hookable";var q_=["build:before","build:after"];function fn(e){let t=H_();typeof e.config.hooks=="object"&&Object.keys(e.config.hooks).forEach(n=>{let o=n,i=e.config.hooks[o];typeof i=="function"&&(q_.includes(o)?e.mode==="build"&&t.hook(o,i):t.hook(o,i))});let r={version:gt,hooks:t,hook:t.hook,options:e};return e.addons.forEach(n=>{typeof n.setup=="function"&&n.setup(r)}),r}c();var U=Z(he(),1);import*as Yf from"node:readline";import B_ from"node:path";import U_ from"node:os";import rt from"node:process";import W_ from"consola";import{mergeConfig as G_}from"vite";var pn;function dn(e,t,r){if(console.log(),console.log(` ${(0,U.bold)("\u{1F30C} Valaxy")} ${(0,U.blue)(`v${gt}`)}`),console.log(),console.log(`${(0,U.dim)(" \u{1FA90} theme ")} > ${e.theme?(0,U.green)(e.theme):(0,U.gray)("none")}`),console.log(` ${(0,U.dim)("\u{1F4C1}")} ${(0,U.dim)(B_.resolve(e.userRoot))}`),t){console.log(),console.log(`${(0,U.dim)(" Preview ")} > ${(0,U.cyan)(`http://localhost:${(0,U.bold)(t)}/`)}`),r&&Object.values(U_.networkInterfaces()).forEach(f=>(f||[]).filter(u=>u.family==="IPv4"&&!u.address.includes("127.0.0.1")).forEach(({address:u})=>{console.log(`${(0,U.dim)(" Network ")} > ${(0,U.blue)(`http://${u}:${(0,U.bold)(t)}/`)}`)})),console.log();let n=`${(0,U.underline)("r")}${(0,U.dim)("estart")}`,o=`${(0,U.underline)("e")}${(0,U.dim)("dit")}`,i=`${(0,U.underline)("o")}${(0,U.dim)("pen")}`,s=`${(0,U.underline)("q")}${(0,U.dim)("r")}`,a=`${(0,U.dim)(" | ")}`;console.log(`${(0,U.dim)(" shortcuts ")} > ${n}${a}${i}${a}${s}${a}${o}`)}console.log()}async function nr(e,t){pn&&(Tt.info("close server..."),await pn.close());let r=G_(await nn(e,"serve"),t);try{pn=await Kf(e,r,{async onConfigReload(n,o,i=!1){i&&(Tt.info(`${(0,U.yellow)("force")} reload the server`),nr(e,t));let s=!1;n.theme!==o.theme&&(s=!0),s&&nr(e,t)}}),await pn.listen(),Tt.ready("server ready")}catch(n){W_.error(`failed to start server. error:
|
|
98
|
-
`),console.error(n),rt.exit(1)}}function zf(e){rt.stdin.resume(),rt.stdin.setEncoding("utf8"),Yf.emitKeypressEvents(rt.stdin),rt.stdin.isTTY&&rt.stdin.setRawMode(!0),rt.stdin.on("keypress",(t,r)=>{if(r.ctrl&&r.name==="c")rt.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)}}})}function Jf(e){e.command("build [root]","build your blog to static content",t=>Qe(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})=>{Ot(),Kr(r)||K_.exit(0);let i=ji.resolve(r),s=await Ee({userRoot:i},"build");dn(s);let a=fn(s);await a.hooks.callHook("options:resolved");let f=[];s.config.modules.rss.enable&&f.push(en),du(a,f);let u=Xf(await nn(s,"build"),s.config.vite||{}),l=Xf(u,{configFile:ji.resolve(s.clientRoot,"vite.config.ts"),build:{emptyOutDir:!0,outDir:ji.resolve(s.userRoot,n)},logLevel:o});await a.hooks.callHook("config:init"),await a.hooks.callHook("build:before");try{if(t){Hi.info(`use ${(0,Qf.yellow)("vite-ssg")} to do ssg build...`);try{await Uf(s,l),await Wf(s)}catch(d){Hi.error("[vite-ssg] An internal error occurred."),console.log(d)}}else Hi.info("use vite do spa build..."),await Bf(s,l)}catch(d){console.log(d)}finally{await a.hooks.callHook("build:after")}})}c();import X_ from"node:path";import{exec as Q_}from"node:child_process";import J_ from"node:process";import Z_ from"node:os";import{mergeConfig as e1}from"vite";import t1 from"qrcode";c();import Y_ from"node:net";async function qi(e){return await z_(e)?e:await qi(e+1)}function z_(e){return new Promise(t=>{let r=Y_.createServer(n=>{n.write(`Echo server\r
|
|
99
|
-
`),n.pipe(n)});r.listen(e,"0.0.0.0"),r.on("error",()=>{t(!1)}),r.on("listening",()=>{r.close(),t(!0)})})}function Zf(e){e.command("* [root]","Start a local server for Valaxy",t=>Qe(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})=>{gi(),Kr(t)||J_.exit(0);let s=r||await qi(4859),a=await Ee({userRoot:t});fn(a);let f=e1({configFile:X_.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 nr(a,f),dn(a,s,o),zf([{name:"r",fullName:"restart",action(){nr(a,f)}},{name:"o",fullName:"open",async action(){let{default:l}=await import("open");l(`http://localhost:${s}`)}},{name:"q",fullName:"qr",action(){let d=`http://${Object.values(Z_.networkInterfaces()).flat().filter(p=>p?.family==="IPv4"&&!p.address.includes("127.0.0.1"))[0]?.address||"localhost"}:${s}`;t1.toString(d,{type:"terminal"},(p,y)=>{if(p)throw p;console.log(y)})}},{name:"e",fullName:"edit",action(){Q_(`code "${t}"`)}}])})}var or=n1(o1(r1.argv)).scriptName("valaxy").usage("$0 [args]").version(gt).showHelpOnFail(!1).alias("h","help").alias("v","version");Zf(or);Jf(or);Su(or);var i1=[en,vu];i1.forEach(e=>{e.extendCli?.(or)});function JT(){or.help().parse()}export{jt as a,Ne as b,Ur as c,Et as d,Mc as e,ZS as f,Nc as g,Lc as h,$y as i,mi as j,Q as k,Dc as l,Vc as m,Dy as n,At as o,Wr as p,SR as q,jy as r,Gr as s,qc as t,Wy as u,IR as v,Kt as w,ut as x,Bc as y,Yy as z,jR as A,Uc as B,Yr as C,Kc as D,Zy as E,rw as F,iw as G,yi as H,Ee as I,vi as J,nn as K,ku as L,tf as M,rr as N,Bf as O,Uf as P,Wf as Q,D_ as R,Kf as S,or as T,JT as U};
|
|
100
|
-
/*! Bundled license information:
|
|
101
|
-
|
|
102
|
-
is-extglob/index.js:
|
|
103
|
-
(*!
|
|
104
|
-
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
105
|
-
*
|
|
106
|
-
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
107
|
-
* Licensed under the MIT License.
|
|
108
|
-
*)
|
|
109
|
-
|
|
110
|
-
is-glob/index.js:
|
|
111
|
-
(*!
|
|
112
|
-
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
113
|
-
*
|
|
114
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
115
|
-
* Released under the MIT License.
|
|
116
|
-
*)
|
|
117
|
-
|
|
118
|
-
is-number/index.js:
|
|
119
|
-
(*!
|
|
120
|
-
* is-number <https://github.com/jonschlinkert/is-number>
|
|
121
|
-
*
|
|
122
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
123
|
-
* Released under the MIT License.
|
|
124
|
-
*)
|
|
125
|
-
|
|
126
|
-
to-regex-range/index.js:
|
|
127
|
-
(*!
|
|
128
|
-
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
129
|
-
*
|
|
130
|
-
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
131
|
-
* Released under the MIT License.
|
|
132
|
-
*)
|
|
133
|
-
|
|
134
|
-
fill-range/index.js:
|
|
135
|
-
(*!
|
|
136
|
-
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
137
|
-
*
|
|
138
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
139
|
-
* Licensed under the MIT License.
|
|
140
|
-
*)
|
|
141
|
-
|
|
142
|
-
queue-microtask/index.js:
|
|
143
|
-
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
144
|
-
|
|
145
|
-
run-parallel/index.js:
|
|
146
|
-
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
147
|
-
*/
|