valaxy 0.18.0-beta.0 → 0.18.0-beta.3
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/composables/{post.ts → post/index.ts} +4 -30
- package/client/composables/post/usePrevNext.ts +30 -0
- package/client/main.ts +4 -0
- package/client/modules/devtools.ts +1 -1
- package/client/modules/valaxy.ts +3 -0
- package/client/setup/main.ts +10 -6
- package/client/stores/site.ts +4 -0
- package/client/utils/dev.ts +13 -0
- package/dist/{chunk-GO3LEXT4.cjs → chunk-3BEOLPLA.cjs} +44 -39
- package/dist/chunk-APMSEIOX.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 +23 -2
- package/dist/node/index.d.ts +23 -2
- package/dist/node/index.mjs +1 -1
- package/package.json +5 -5
- package/shims.d.ts +5 -0
- package/dist/chunk-AQGELPBR.mjs +0 -142
package/dist/chunk-AQGELPBR.mjs
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
-
import{a as B,b as R,c as Z,d as l}from"./chunk-MJRGR35B.mjs";var he=R((s1,gn)=>{"use strict";l();var ep=B("tty"),tp=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||ep.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+Ui(o,t,r,i)+t:e+o+t},Ui=(e,t,r,n)=>{let o=e.substring(0,n)+r,i=e.substring(n+t.length),s=i.indexOf(t);return~s?o+Ui(i,t,r,s):o+i},Wi=(e=tp)=>({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=Wi();gn.exports.createColors=Wi});var Gi=R(ht=>{"use strict";l();Object.defineProperty(ht,"__esModule",{value:!0});ht.splitWhen=ht.flatten=void 0;function rp(e){return e.reduce((t,r)=>[].concat(t,r),[])}ht.flatten=rp;function np(e,t){let r=[[]],n=0;for(let o of e)t(o)?(n++,r[n]=[]):r[n].push(o);return r}ht.splitWhen=np});var Ki=R(sr=>{"use strict";l();Object.defineProperty(sr,"__esModule",{value:!0});sr.isEnoentCodeError=void 0;function op(e){return e.code==="ENOENT"}sr.isEnoentCodeError=op});var Yi=R(ar=>{"use strict";l();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 ip(e,t){return new hn(e,t)}ar.createDirentFromStats=ip});var Ji=R(re=>{"use strict";l();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 sp=B("os"),ap=B("path"),zi=sp.platform()==="win32",lp=2,cp=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,up=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,fp=/^\\\\([.?])/,pp=/\\(?![!()+@[\]{}])/g;function dp(e){return e.replace(/\\/g,"/")}re.unixify=dp;function mp(e,t){return ap.resolve(e,t)}re.makeAbsolute=mp;function gp(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(lp)}return e}re.removeLeadingDotSegment=gp;re.escape=zi?yn:vn;function yn(e){return e.replace(up,"\\$2")}re.escapeWindowsPath=yn;function vn(e){return e.replace(cp,"\\$2")}re.escapePosixPath=vn;re.convertPathToPattern=zi?Xi:Qi;function Xi(e){return yn(e).replace(fp,"//$1").replace(pp,"/")}re.convertWindowsPathToPattern=Xi;function Qi(e){return vn(e)}re.convertPosixPathToPattern=Qi});var es=R((h1,Zi)=>{"use strict";l();Zi.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 ns=R((v1,rs)=>{"use strict";l();var hp=es(),ts={"{":"}","(":")","[":"]"},yp=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=ts[a];if(f){var u=e.indexOf(f,t);u!==-1&&(t=u+1)}if(e[t]==="!")return!0}else t++}return!1},vp=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=ts[r];if(n){var o=e.indexOf(n,t);o!==-1&&(t=o+1)}if(e[t]==="!")return!0}else t++}return!1};rs.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(hp(t))return!0;var n=yp;return r&&r.strict===!1&&(n=vp),n(t)}});var is=R((_1,os)=>{"use strict";l();var xp=ns(),_p=B("path").posix.dirname,Cp=B("os").platform()==="win32",xn="/",bp=/\\/g,Rp=/[\{\[].*[\}\]]$/,Sp=/(^|[^\\])([\{\[]|\([^\)]+$)/,wp=/\\([\!\*\?\|\[\]\(\)\{\}])/g;os.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Cp&&t.indexOf(xn)<0&&(t=t.replace(bp,xn)),Rp.test(t)&&(t+=xn),t+="a";do t=_p(t);while(xp(t)||Sp.test(t));return t.replace(wp,"$1")}});var lr=R(be=>{"use strict";l();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=R((S1,as)=>{"use strict";l();var ss=lr();as.exports=(e,t={})=>{let r=(n,o={})=>{let i=t.escapeInvalid&&ss.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(i||s)&&ss.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 cs=R((E1,ls)=>{"use strict";l();ls.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var vs=R((k1,ys)=>{"use strict";l();var us=cs(),nt=(e,t,r)=>{if(us(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(us(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),c=Math.max(e,t);if(Math.abs(u-c)===1){let C=e+"|"+t;return n.capture?`(${C})`:n.wrap===!1?C:`(?:${C})`}let d=hs(e)||hs(t),p={min:e,max:t,a:u,b:c},y=[],x=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),u<0){let C=c<0?Math.abs(c):1;x=fs(C,Math.abs(u),p,n),u=p.a=0}return c>=0&&(y=fs(u,c,p,n)),p.negatives=x,p.positives=y,p.result=Ep(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 Ep(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 Ap(e,t){let r=1,n=1,o=ds(e,r),i=new Set([t]);for(;e<=o&&o<=t;)i.add(o),r+=1,o=ds(e,r);for(o=ms(t+1,n)-1;e<o&&o<=t;)i.add(o),n+=1,o=ms(t+1,n)-1;return i=[...i],i.sort(Op),i}function kp(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=Pp(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+=Tp(f,u,r):s++}return s&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[s],digits:o}}function fs(e,t,r,n){let o=Ap(e,t),i=[],s=e,a;for(let f=0;f<o.length;f++){let u=o[f],c=kp(String(s),String(u),n),d="";if(!r.isPadded&&a&&a.pattern===c.pattern){a.count.length>1&&a.count.pop(),a.count.push(c.count[0]),a.string=a.pattern+gs(a.count),s=u+1;continue}r.isPadded&&(d=$p(u,r,n)),c.string=d+c.pattern+gs(c.count),i.push(c),s=u+1,a=c}return i}function _n(e,t,r,n,o){let i=[];for(let s of e){let{string:a}=s;!n&&!ps(t,"string",a)&&i.push(r+a),n&&ps(t,"string",a)&&i.push(r+a)}return i}function Pp(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function Op(e,t){return e>t?1:t>e?-1:0}function ps(e,t,r){return e.some(n=>n[t]===r)}function ds(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function ms(e,t){return e-e%Math.pow(10,t)}function gs(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function Tp(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function hs(e){return/^-?(0+)\d/.test(e)}function $p(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={};ys.exports=nt});var Rn=R((O1,Es)=>{"use strict";l();var Fp=B("util"),Cs=vs(),xs=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Ip=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},Mp=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Np=(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},_s=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},Lp=(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},bs=(e,t,r,n)=>{if(r)return Cs(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);if(e===t)return o;let i=String.fromCharCode(t);return`[${o}-${i}]`},Rs=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,o=r.capture?"":"?:";return n?`(${o}${e.join("|")})`:e.join("|")}return Cs(e,t,r)},Ss=(...e)=>new RangeError("Invalid range arguments: "+Fp.inspect(...e)),ws=(e,t,r)=>{if(r.strictRanges===!0)throw Ss([e,t]);return[]},Dp=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Vp=(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 c=bn(a)||bn(f)||bn(u),d=c?Math.max(a.length,f.length,u.length):0,p=c===!1&&Mp(e,t,n)===!1,y=n.transform||Ip(p);if(n.toRegex&&r===1)return bs(_s(e,d),_s(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(Np(y(o,w),d,p)),o=s?o-r:o+r,w++;return n.toRegex===!0?r>1?Lp(x,n):Rs(b,null,{wrap:!1,...n}):b},jp=(e,t,r=1,n={})=>{if(!Mt(e)&&e.length>1||!Mt(t)&&t.length>1)return ws(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 bs(f,u,!1,n);let c=[],d=0;for(;a?i>=s:i<=s;)c.push(o(i,d)),i=a?i-r:i+r,d++;return n.toRegex===!0?Rs(c,null,{wrap:!1,options:n}):c},ur=(e,t,r,n={})=>{if(t==null&&Cn(e))return[e];if(!Cn(e)||!Cn(t))return ws(e,t,n);if(typeof r=="function")return ur(e,t,1,{transform:r});if(xs(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)?Vp(e,t,r,o):jp(e,t,Math.max(Math.abs(r),1),o):r!=null&&!xs(r)?Dp(r,o):ur(e,t,1,r)};Es.exports=ur});var Ps=R(($1,ks)=>{"use strict";l();var Hp=Rn(),As=lr(),qp=(e,t={})=>{let r=(n,o={})=>{let i=As.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 c=As.reduce(n.nodes),d=Hp(...c,{...t,wrap:!1,toRegex:!0});if(d.length!==0)return c.length>1&&d.length>1?`(${d})`:d}if(n.nodes)for(let c of n.nodes)u+=r(c,n);return u};return r(e)};ks.exports=qp});var $s=R((I1,Ts)=>{"use strict";l();var Bp=Rn(),Os=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)},Up=(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(),Os(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=Bp(...d,t);p.length===0&&(p=Os(o,t)),a.push(ot(a.pop(),p)),o.nodes=[];return}let f=yt.encloseBrace(o),u=o.queue,c=o;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,u=c.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))};Ts.exports=Up});var Is=R((N1,Fs)=>{"use strict";l();Fs.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 Vs=R((D1,Ds)=>{"use strict";l();var Wp=cr(),{MAX_LENGTH:Ms,CHAR_BACKSLASH:Sn,CHAR_BACKTICK:Gp,CHAR_COMMA:Kp,CHAR_DOT:Yp,CHAR_LEFT_PARENTHESES:zp,CHAR_RIGHT_PARENTHESES:Xp,CHAR_LEFT_CURLY_BRACE:Qp,CHAR_RIGHT_CURLY_BRACE:Jp,CHAR_LEFT_SQUARE_BRACKET:Ns,CHAR_RIGHT_SQUARE_BRACKET:Ls,CHAR_DOUBLE_QUOTE:Zp,CHAR_SINGLE_QUOTE:ed,CHAR_NO_BREAK_SPACE:td,CHAR_ZERO_WIDTH_NOBREAK_SPACE:rd}=Is(),nd=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Ms,r.maxLength):Ms;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,c=0,d=0,p,y={},x=()=>e[c++],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"});c<u;)if(s=i[i.length-1],p=x(),!(p===rd||p===td)){if(p===Sn){C({type:"text",value:(t.keepEscaping?p:"")+x()});continue}if(p===Ls){C({type:"text",value:"\\"+p});continue}if(p===Ns){f++;let b=!0,w;for(;c<u&&(w=x());){if(p+=w,w===Ns){f++;continue}if(w===Sn){p+=x();continue}if(w===Ls&&(f--,f===0))break}C({type:"text",value:p});continue}if(p===zp){s=C({type:"paren",nodes:[]}),i.push(s),C({type:"text",value:p});continue}if(p===Xp){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===Zp||p===ed||p===Gp){let b=p,w;for(t.keepQuotes!==!0&&(p="");c<u&&(w=x());){if(w===Sn){p+=w+x();continue}if(w===b){t.keepQuotes===!0&&(p+=w);break}p+=w}C({type:"text",value:p});continue}if(p===Qp){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===Jp){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===Kp&&d>0){if(s.ranges>0){s.ranges=0;let b=s.nodes.shift();s.nodes=[b,{type:"text",value:Wp(s)}]}C({type:"comma",value:p}),s.commas++;continue}if(p===Yp&&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};Ds.exports=nd});var qs=R((j1,Hs)=>{"use strict";l();var js=cr(),od=Ps(),id=$s(),sd=Vs(),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={})=>sd(e,t);xe.stringify=(e,t={})=>js(typeof e=="string"?xe.parse(e,t):e,t);xe.compile=(e,t={})=>(typeof e=="string"&&(e=xe.parse(e,t)),od(e,t));xe.expand=(e,t={})=>{typeof e=="string"&&(e=xe.parse(e,t));let r=id(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);Hs.exports=xe});var Nt=R((q1,Ks)=>{"use strict";l();var ad=B("path"),Te="\\\\/",Bs=`[^${Te}]`,De="\\.",ld="\\+",cd="\\?",fr="\\/",ud="(?=.)",Us="[^/]",wn=`(?:${fr}|$)`,Ws=`(?:^|${fr})`,En=`${De}{1,2}${wn}`,fd=`(?!${De})`,pd=`(?!${Ws}${En})`,dd=`(?!${De}{0,1}${wn})`,md=`(?!${En})`,gd=`[^.${fr}]`,hd=`${Us}*?`,Gs={DOT_LITERAL:De,PLUS_LITERAL:ld,QMARK_LITERAL:cd,SLASH_LITERAL:fr,ONE_CHAR:ud,QMARK:Us,END_ANCHOR:wn,DOTS_SLASH:En,NO_DOT:fd,NO_DOTS:pd,NO_DOT_SLASH:dd,NO_DOTS_SLASH:md,QMARK_NO_DOT:gd,STAR:hd,START_ANCHOR:Ws},yd={...Gs,SLASH_LITERAL:`[${Te}]`,QMARK:Bs,STAR:`${Bs}*?`,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}]|$)`},vd={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"};Ks.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:vd,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:ad.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?yd:Gs}}});var Lt=R(ve=>{"use strict";l();var xd=B("path"),_d=process.platform==="win32",{REGEX_BACKSLASH:Cd,REGEX_REMOVE_BACKSLASH:bd,REGEX_SPECIAL_CHARS:Rd,REGEX_SPECIAL_CHARS_GLOBAL:Sd}=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(Sd,"\\$1");ve.toPosixSlashes=e=>e.replace(Cd,"/");ve.removeBackslashes=e=>e.replace(bd,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:_d===!0||xd.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 ta=R((G1,ea)=>{"use strict";l();var Ys=Lt(),{CHAR_ASTERISK:An,CHAR_AT:wd,CHAR_BACKWARD_SLASH:Dt,CHAR_COMMA:Ed,CHAR_DOT:kn,CHAR_EXCLAMATION_MARK:Pn,CHAR_FORWARD_SLASH:Zs,CHAR_LEFT_CURLY_BRACE:On,CHAR_LEFT_PARENTHESES:Tn,CHAR_LEFT_SQUARE_BRACKET:Ad,CHAR_PLUS:kd,CHAR_QUESTION_MARK:zs,CHAR_RIGHT_CURLY_BRACE:Pd,CHAR_RIGHT_PARENTHESES:Xs,CHAR_RIGHT_SQUARE_BRACKET:Od}=Nt(),Qs=e=>e===Zs||e===Dt,Js=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Td=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,i=[],s=[],a=[],f=e,u=-1,c=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===Ed){if(p=$.isBrace=!0,x=$.isGlob=!0,O=!0,o===!0)continue;break}if(A===Pd&&(M--,M===0)){w=!1,p=$.isBrace=!0,O=!0;break}}if(o===!0)continue;break}if(A===Zs){if(i.push(u),s.push($),$={value:"",depth:0,isGlob:!1},O===!0)continue;if(E===kn&&u===c+1){c+=2;continue}d=u+1;continue}if(r.noext!==!0&&(A===kd||A===wd||A===An||A===zs||A===Pn)===!0&&h()===Tn){if(x=$.isGlob=!0,C=$.isExtglob=!0,O=!0,A===Pn&&u===c&&(N=!0),o===!0){for(;G()!==!0&&(A=T());){if(A===Dt){P=$.backslashes=!0,A=T();continue}if(A===Xs){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===zs){if(x=$.isGlob=!0,O=!0,o===!0)continue;break}if(A===Ad){for(;G()!==!0&&(q=T());){if(q===Dt){P=$.backslashes=!0,T();continue}if(q===Od){y=$.isBracket=!0,x=$.isGlob=!0,O=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&A===Pn&&u===c){I=$.negated=!0,c++;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===Xs){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="";c>0&&(j=f.slice(0,c),f=f.slice(c),d-=c),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&&Qs(L.charCodeAt(L.length-1))&&(L=L.slice(0,-1)),r.unescape===!0&&(v&&(v=Ys.removeBackslashes(v)),L&&P===!0&&(L=Ys.removeBackslashes(L)));let _={prefix:j,input:e,start:c,base:L,glob:v,isBrace:p,isBracket:y,isGlob:x,isExtglob:C,isGlobstar:b,negated:I,negatedExtglob:N};if(r.tokens===!0&&(_.maxDepth=0,Qs(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:c,te=i[F],J=e.slice(K,te);r.tokens&&(F===0&&c!==0?(s[F].isPrefix=!0,s[F].value=j):s[F].value=J,Js(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,Js(s[s.length-1]),_.maxDepth+=s[s.length-1].depth)}_.slashes=i,_.parts=a}return _};ea.exports=Td});var oa=R((Y1,na)=>{"use strict";l();var pr=Nt(),_e=Lt(),{MAX_LENGTH:dr,POSIX_REGEX_SOURCE:$d,REGEX_NON_SPECIAL_CHARS:Fd,REGEX_SPECIAL_CHARS_BACKREF:Id,REPLACEMENTS:ra}=pr,Md=(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=ra[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),c=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"),S=k.extglob===!0||T.length&&(k.type==="pipe"||k.type==="paren");k.type!=="slash"&&k.type!=="paren"&&!W&&!S&&(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 S={...c[W],conditions:1,inner:""};S.prev=v,S.parens=h.parens,S.output=h.output;let H=(r.capture?"(":"")+S.open;Le("parens"),V({type:k,value:W,output:h.output?"":x}),V({type:"paren",extglob:!0,value:K(),output:H}),T.push(S)},mt=k=>{let W=k.close+(r.capture?")":""),S;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("*")&&(S=te())&&/^\.[^\\/.]+$/.test(S)){let X=$n(S,{...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(Id,(S,H,X,ge,oe,mn)=>ge==="\\"?(k=!0,S):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?S:`\\${S}`);return k===!0&&(r.unescape===!0?W=W.replace(/\\/g,""):W=W.replace(/\\+/g,S=>S.length%2===0?"\\\\":S?"\\":"")),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 S=F();if(S==="/"&&r.bash!==!0||S==="."||S===";")continue;if(!S){_+="\\",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 S=v.value.slice(1);if(S.includes("[")&&(v.posix=!0,S.includes(":"))){let H=v.value.lastIndexOf("["),X=v.value.slice(0,H),ge=v.value.slice(H+2),oe=$d[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 S=T[T.length-1];if(S&&h.parens===S.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 S=v.value.slice(1);if(v.posix!==!0&&S[0]==="^"&&!S.includes("/")&&(_=`/${_}`),v.value+=_,me({value:_}),r.literalBrackets===!1||_e.hasRegexChars(S))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 S={type:"brace",value:_,output:"(",outputIndex:h.output.length,tokensIndex:h.tokens.length};L.push(S),V(S);continue}if(_==="}"){let S=L[L.length-1];if(r.nobrace===!0||!S){V({type:"text",value:_,output:_});continue}let H=")";if(S.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=Md(ge,r),h.backtrack=!0}if(S.comma!==!0&&S.dots!==!0){let X=h.output.slice(0,S.outputIndex),ge=h.tokens.slice(S.tokensIndex);S.value=S.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 S=_,H=L[L.length-1];H&&j[j.length-1]==="braces"&&(H.comma=!0,S="|"),V({type:"comma",value:_,output:S});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 S=L[L.length-1];v.type="dots",v.output+=_,v.value+=_,S.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 S=Fd.exec(te());S&&(_+=S[0],h.index+=S[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 S=v.prev,H=S.prev,X=S.type==="slash"||S.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&&(S.type==="comma"||S.type==="brace"),mn=T.length&&(S.type==="pipe"||S.type==="paren");if(!X&&S.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(S.type==="bos"&&q()){v.type="globstar",v.value+=_,v.output=E(r),h.output=v.output,h.globstar=!0,J(_);continue}if(S.type==="slash"&&S.prev.type!=="bos"&&!ge&&q()){h.output=h.output.slice(0,-(S.output+v.output).length),S.output=`(?:${S.output}`,v.type="globstar",v.output=E(r)+(r.strictSlashes?")":"|$)"),v.value+=_,h.globstar=!0,h.output+=S.output+v.output,J(_);continue}if(S.type==="slash"&&S.prev.type!=="bos"&&k[0]==="/"){let ir=k[1]!==void 0?"|$":"";h.output=h.output.slice(0,-(S.output+v.output).length),S.output=`(?:${S.output}`,v.type="globstar",v.output=`${E(r)}${y}|${y}${ir})`,v.value+=_,h.output+=S.output+v.output,h.globstar=!0,J(_+K()),V({type:"slash",value:"/",output:""});continue}if(S.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=ra[e]||e;let i=_e.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:f,DOTS_SLASH:u,NO_DOT:c,NO_DOTS:d,NO_DOTS_SLASH:p,STAR:y,START_ANCHOR:x}=pr.globChars(i),C=r.dot?d:c,b=r.dot?p:c,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};na.exports=$n});var sa=R((X1,ia)=>{"use strict";l();var Nd=B("path"),Ld=ta(),Fn=oa(),In=Lt(),Dd=Nt(),Vd=e=>e&&typeof e=="object"&&!Array.isArray(e),ee=(e,t,r=!1)=>{if(Array.isArray(e)){let c=e.map(p=>ee(p,t,r));return p=>{for(let y of c){let x=y(p);if(x)return x}return!1}}let n=Vd(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 c={...t,ignore:null,onMatch:null,onResult:null};f=ee(o.ignore,c,r)}let u=(c,d=!1)=>{let{isMatch:p,match:y,output:x}=ee.test(c,s,t,{glob:e,posix:i}),C={glob:e,state:a,regex:s,posix:i,input:c,output:x,match:y,isMatch:p};return typeof o.onResult=="function"&&o.onResult(C),p===!1?(C.isMatch=!1,d?C:!1):f(c)?(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(Nd.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)=>Ld(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=Dd;ia.exports=ee});var la=R((J1,aa)=>{"use strict";l();aa.exports=sa()});var da=R((eC,pa)=>{"use strict";l();var ua=B("util"),fa=qs(),$e=la(),Mn=Lt(),ca=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=c=>{i.add(c.output),r&&r.onResult&&r.onResult(c)};for(let c=0;c<t.length;c++){let d=$e(String(t[c]),{...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(c=>!n.has(c));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(c=>c.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: "${ua.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>z.contains(e,n,r));if(typeof t=="string"){if(ca(e)||ca(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: "${ua.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 fa(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]:fa(e,t)};z.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return z.braces(e,{...t,expand:!0})};pa.exports=z});var Ca=R(D=>{"use strict";l();Object.defineProperty(D,"__esModule",{value:!0});D.removeDuplicateSlashes=D.matchAny=D.convertPatternsToRe=D.makeRe=D.getPatternParts=D.expandBraceExpansion=D.expandPatternsWithBraceExpansion=D.isAffectDepthOfReadingPattern=D.endsWithSlashGlobStar=D.hasGlobStar=D.getBaseDirectory=D.isPatternRelatedToParentDirectory=D.getPatternsOutsideCurrentDirectory=D.getPatternsInsideCurrentDirectory=D.getPositivePatterns=D.getNegativePatterns=D.isPositivePattern=D.isNegativePattern=D.convertToNegativePattern=D.convertToPositivePattern=D.isDynamicPattern=D.isStaticPattern=void 0;var jd=B("path"),Hd=is(),Nn=da(),ma="**",qd="\\",Bd=/[*?]|^!/,Ud=/\[[^[]*]/,Wd=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Gd=/[!*+?@]\([^(]*\)/,Kd=/,|\.\./,Yd=/(?!^)\/{2,}/g;function ga(e,t={}){return!ha(e,t)}D.isStaticPattern=ga;function ha(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(qd)||Bd.test(e)||Ud.test(e)||Wd.test(e)||t.extglob!==!1&&Gd.test(e)||t.braceExpansion!==!1&&zd(e))}D.isDynamicPattern=ha;function zd(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 Kd.test(n)}function Xd(e){return mr(e)?e.slice(1):e}D.convertToPositivePattern=Xd;function Qd(e){return"!"+e}D.convertToNegativePattern=Qd;function mr(e){return e.startsWith("!")&&e[1]!=="("}D.isNegativePattern=mr;function ya(e){return!mr(e)}D.isPositivePattern=ya;function Jd(e){return e.filter(mr)}D.getNegativePatterns=Jd;function Zd(e){return e.filter(ya)}D.getPositivePatterns=Zd;function em(e){return e.filter(t=>!Ln(t))}D.getPatternsInsideCurrentDirectory=em;function tm(e){return e.filter(Ln)}D.getPatternsOutsideCurrentDirectory=tm;function Ln(e){return e.startsWith("..")||e.startsWith("./..")}D.isPatternRelatedToParentDirectory=Ln;function rm(e){return Hd(e,{flipBackslashes:!1})}D.getBaseDirectory=rm;function nm(e){return e.includes(ma)}D.hasGlobStar=nm;function va(e){return e.endsWith("/"+ma)}D.endsWithSlashGlobStar=va;function om(e){let t=jd.basename(e);return va(e)||ga(t)}D.isAffectDepthOfReadingPattern=om;function im(e){return e.reduce((t,r)=>t.concat(xa(r)),[])}D.expandPatternsWithBraceExpansion=im;function xa(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=xa;function sm(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=sm;function _a(e,t){return Nn.makeRe(e,t)}D.makeRe=_a;function am(e,t){return e.map(r=>_a(r,t))}D.convertPatternsToRe=am;function lm(e,t){return t.some(r=>r.test(e))}D.matchAny=lm;function cm(e){return e.replace(Yd,"/")}D.removeDuplicateSlashes=cm});var wa=R((oC,Sa)=>{"use strict";l();var um=B("stream"),ba=um.PassThrough,fm=Array.prototype.slice;Sa.exports=pm;function pm(){let e=[],t=fm.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=ba(n);function a(){for(let c=0,d=arguments.length;c<d;c++)e.push(Ra(arguments[c],n));return f(),this}function f(){if(r)return;r=!0;let c=e.shift();if(!c){process.nextTick(u);return}Array.isArray(c)||(c=[c]);let d=c.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<c.length;x++)y(c[x]);p()}function u(){r=!1,s.emit("queueDrain"),o&&s.end()}return s.setMaxListeners(0),s.add=a,s.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),s}function Ra(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=Ra(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(ba(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Aa=R(gr=>{"use strict";l();Object.defineProperty(gr,"__esModule",{value:!0});gr.merge=void 0;var dm=wa();function mm(e){let t=dm(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Ea(e)),t.once("end",()=>Ea(e)),t}gr.merge=mm;function Ea(e){e.forEach(t=>t.emit("close"))}});var ka=R(xt=>{"use strict";l();Object.defineProperty(xt,"__esModule",{value:!0});xt.isEmpty=xt.isString=void 0;function gm(e){return typeof e=="string"}xt.isString=gm;function hm(e){return e===""}xt.isEmpty=hm});var Ve=R(fe=>{"use strict";l();Object.defineProperty(fe,"__esModule",{value:!0});fe.string=fe.stream=fe.pattern=fe.path=fe.fs=fe.errno=fe.array=void 0;var ym=Gi();fe.array=ym;var vm=Ki();fe.errno=vm;var xm=Yi();fe.fs=xm;var _m=Ji();fe.path=_m;var Cm=Ca();fe.pattern=Cm;var bm=Aa();fe.stream=bm;var Rm=ka();fe.string=Rm});var $a=R(pe=>{"use strict";l();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 Sm(e,t){let r=Pa(e,t),n=Pa(t.ignore,t),o=Oa(r),i=Ta(r,n),s=o.filter(c=>ke.pattern.isStaticPattern(c,t)),a=o.filter(c=>ke.pattern.isDynamicPattern(c,t)),f=Dn(s,i,!1),u=Dn(a,i,!0);return f.concat(u)}pe.generate=Sm;function Pa(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 Oa(e){return ke.pattern.getPositivePatterns(e)}pe.getPositivePatterns=Oa;function Ta(e,t){return ke.pattern.getNegativePatterns(e).concat(t).map(ke.pattern.convertToPositivePattern)}pe.getNegativePatternsAsPositive=Ta;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 Ia=R(hr=>{"use strict";l();Object.defineProperty(hr,"__esModule",{value:!0});hr.read=void 0;function wm(e,t,r){t.fs.lstat(e,(n,o)=>{if(n!==null){Fa(r,n);return}if(!o.isSymbolicLink()||!t.followSymbolicLink){qn(r,o);return}t.fs.stat(e,(i,s)=>{if(i!==null){if(t.throwErrorOnBrokenSymbolicLink){Fa(r,i);return}qn(r,o);return}t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),qn(r,s)})})}hr.read=wm;function Fa(e,t){e(t)}function qn(e,t){e(null,t)}});var Ma=R(yr=>{"use strict";l();Object.defineProperty(yr,"__esModule",{value:!0});yr.read=void 0;function Em(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=Em});var Na=R(qe=>{"use strict";l();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 Am(e){return e===void 0?qe.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},qe.FILE_SYSTEM_ADAPTER),e)}qe.createFileSystemAdapter=Am});var La=R(Un=>{"use strict";l();Object.defineProperty(Un,"__esModule",{value:!0});var km=Na(),Bn=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=km.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=R(Be=>{"use strict";l();Object.defineProperty(Be,"__esModule",{value:!0});Be.statSync=Be.stat=Be.Settings=void 0;var Da=Ia(),Pm=Ma(),Wn=La();Be.Settings=Wn.default;function Om(e,t,r){if(typeof t=="function"){Da.read(e,Gn(),t);return}Da.read(e,Gn(t),r)}Be.stat=Om;function Tm(e,t){let r=Gn(t);return Pm.read(e,r)}Be.statSync=Tm;function Gn(e={}){return e instanceof Wn.default?e:new Wn.default(e)}});var Ha=R((SC,ja)=>{"use strict";l();var Va;ja.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Va||(Va=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Ba=R((EC,qa)=>{"use strict";l();qa.exports=Fm;var $m=Ha();function Fm(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?$m(u):u()}function a(f,u,c){r[f]=c,(--n===0||u)&&s(u)}n?o?o.forEach(function(f){e[f](function(u,c){a(f,u,c)})}):e.forEach(function(f,u){f(function(c,d){a(u,c,d)})}):s(null),i=!1}});var Kn=R(_r=>{"use strict";l();Object.defineProperty(_r,"__esModule",{value:!0});_r.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var xr=process.versions.node.split(".");if(xr[0]===void 0||xr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Ua=Number.parseInt(xr[0],10),Im=Number.parseInt(xr[1],10),Wa=10,Mm=10,Nm=Ua>Wa,Lm=Ua===Wa&&Im>=Mm;_r.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Nm||Lm});var Ga=R(Cr=>{"use strict";l();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 Dm(e,t){return new Yn(e,t)}Cr.createDirentFromStats=Dm});var zn=R(br=>{"use strict";l();Object.defineProperty(br,"__esModule",{value:!0});br.fs=void 0;var Vm=Ga();br.fs=Vm});var Xn=R(Rr=>{"use strict";l();Object.defineProperty(Rr,"__esModule",{value:!0});Rr.joinPathSegments=void 0;function jm(e,t,r){return e.endsWith(r)?e+t:e+r+t}Rr.joinPathSegments=jm});var Ja=R(Ue=>{"use strict";l();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.readdir=Ue.readdirWithFileTypes=Ue.read=void 0;var Hm=it(),Ka=Ba(),qm=Kn(),Ya=zn(),za=Xn();function Bm(e,t,r){if(!t.stats&&qm.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Xa(e,t,r);return}Qa(e,t,r)}Ue.read=Bm;function Xa(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,o)=>{if(n!==null){Sr(r,n);return}let i=o.map(a=>({dirent:a,name:a.name,path:za.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Qn(r,i);return}let s=i.map(a=>Um(a,t));Ka(s,(a,f)=>{if(a!==null){Sr(r,a);return}Qn(r,f)})})}Ue.readdirWithFileTypes=Xa;function Um(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=Ya.fs.createDirentFromStats(e.name,o),r(null,e)})}}function Qa(e,t,r){t.fs.readdir(e,(n,o)=>{if(n!==null){Sr(r,n);return}let i=o.map(s=>{let a=za.joinPathSegments(e,s,t.pathSegmentSeparator);return f=>{Hm.stat(a,t.fsStatSettings,(u,c)=>{if(u!==null){f(u);return}let d={name:s,path:a,dirent:Ya.fs.createDirentFromStats(s,c)};t.stats&&(d.stats=c),f(null,d)})}});Ka(i,(s,a)=>{if(s!==null){Sr(r,s);return}Qn(r,a)})})}Ue.readdir=Qa;function Sr(e,t){e(t)}function Qn(e,t){e(null,t)}});var nl=R(We=>{"use strict";l();Object.defineProperty(We,"__esModule",{value:!0});We.readdir=We.readdirWithFileTypes=We.read=void 0;var Wm=it(),Gm=Kn(),Za=zn(),el=Xn();function Km(e,t){return!t.stats&&Gm.IS_SUPPORT_READDIR_WITH_FILE_TYPES?tl(e,t):rl(e,t)}We.read=Km;function tl(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let o={dirent:n,name:n.name,path:el.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let i=t.fs.statSync(o.path);o.dirent=Za.fs.createDirentFromStats(o.name,i)}catch(i){if(t.throwErrorOnBrokenSymbolicLink)throw i}return o})}We.readdirWithFileTypes=tl;function rl(e,t){return t.fs.readdirSync(e).map(n=>{let o=el.joinPathSegments(e,n,t.pathSegmentSeparator),i=Wm.statSync(o,t.fsStatSettings),s={name:n,path:o,dirent:Za.fs.createDirentFromStats(n,i)};return t.stats&&(s.stats=i),s})}We.readdir=rl});var ol=R(Ge=>{"use strict";l();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 Ym(e){return e===void 0?Ge.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ge.FILE_SYSTEM_ADAPTER),e)}Ge.createFileSystemAdapter=Ym});var il=R(Zn=>{"use strict";l();Object.defineProperty(Zn,"__esModule",{value:!0});var zm=B("path"),Xm=it(),Qm=ol(),Jn=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Qm.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,zm.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Xm.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Zn.default=Jn});var wr=R(Ke=>{"use strict";l();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.Settings=Ke.scandirSync=Ke.scandir=void 0;var sl=Ja(),Jm=nl(),eo=il();Ke.Settings=eo.default;function Zm(e,t,r){if(typeof t=="function"){sl.read(e,to(),t);return}sl.read(e,to(t),r)}Ke.scandir=Zm;function eg(e,t){let r=to(t);return Jm.read(e,r)}Ke.scandirSync=eg;function to(e={}){return e instanceof eo.default?e:new eo.default(e)}});var ll=R((GC,al)=>{"use strict";l();function tg(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}}al.exports=tg});var ul=R((YC,ro)=>{"use strict";l();var rg=ll();function cl(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=rg(ng),o=null,i=null,s=0,a=null,f={push:C,drain:Re,saturated:Re,pause:c,paused:!1,concurrency:r,running:u,resume:y,idle:x,length:d,getQueue:p,unshift:b,empty:Re,kill:P,killAndDrain:I,error:N};return f;function u(){return s}function c(){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||Re,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||Re,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=Re}function I(){o=null,i=null,f.drain(),f.drain=Re}function N(O){a=O}}function Re(){}function ng(){this.value=null,this.callback=Re,this.next=null,this.release=Re,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=Re,e.errorHandler&&i(r,s),o.call(e.context,r,n),e.release(e)}}function og(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(c,d){t.call(this,c).then(function(p){d(null,p)},d)}var o=cl(e,n,r),i=o.push,s=o.unshift;return o.push=a,o.unshift=f,o.drained=u,o;function a(c){var d=new Promise(function(p,y){i(c,function(x,C){if(x){y(x);return}p(C)})});return d.catch(Re),d}function f(c){var d=new Promise(function(p,y){s(c,function(x,C){if(x){y(x);return}p(C)})});return d.catch(Re),d}function u(){if(o.idle())return new Promise(function(p){p()});var c=o.drain,d=new Promise(function(p){o.drain=function(){c(),p()}});return d}}ro.exports=cl;ro.exports.promise=og});var Er=R(Fe=>{"use strict";l();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.joinPathSegments=Fe.replacePathSegmentSeparator=Fe.isAppliedFilter=Fe.isFatalError=void 0;function ig(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Fe.isFatalError=ig;function sg(e,t){return e===null||e(t)}Fe.isAppliedFilter=sg;function ag(e,t){return e.split(/[/\\]/).join(t)}Fe.replacePathSegmentSeparator=ag;function lg(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Fe.joinPathSegments=lg});var io=R(oo=>{"use strict";l();Object.defineProperty(oo,"__esModule",{value:!0});var cg=Er(),no=class{constructor(t,r){this._root=t,this._settings=r,this._root=cg.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};oo.default=no});var lo=R(ao=>{"use strict";l();Object.defineProperty(ao,"__esModule",{value:!0});var ug=B("events"),fg=wr(),pg=ul(),Ar=Er(),dg=io(),so=class extends dg.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=fg.scandir,this._emitter=new ug.EventEmitter,this._queue=pg(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 fl=R(uo=>{"use strict";l();Object.defineProperty(uo,"__esModule",{value:!0});var mg=lo(),co=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new mg.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{gg(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{hg(t,this._storage)}),this._reader.read()}};uo.default=co;function gg(e,t){e(t)}function hg(e,t){e(null,t)}});var pl=R(po=>{"use strict";l();Object.defineProperty(po,"__esModule",{value:!0});var yg=B("stream"),vg=lo(),fo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new vg.default(this._root,this._settings),this._stream=new yg.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 dl=R(go=>{"use strict";l();Object.defineProperty(go,"__esModule",{value:!0});var xg=wr(),kr=Er(),_g=io(),mo=class extends _g.default{constructor(){super(...arguments),this._scandir=xg.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 ml=R(yo=>{"use strict";l();Object.defineProperty(yo,"__esModule",{value:!0});var Cg=dl(),ho=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Cg.default(this._root,this._settings)}read(){return this._reader.read()}};yo.default=ho});var gl=R(xo=>{"use strict";l();Object.defineProperty(xo,"__esModule",{value:!0});var bg=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,bg.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=R(Ie=>{"use strict";l();Object.defineProperty(Ie,"__esModule",{value:!0});Ie.Settings=Ie.walkStream=Ie.walkSync=Ie.walk=void 0;var hl=fl(),Sg=pl(),wg=ml(),_o=gl();Ie.Settings=_o.default;function Eg(e,t,r){if(typeof t=="function"){new hl.default(e,Pr()).read(t);return}new hl.default(e,Pr(t)).read(r)}Ie.walk=Eg;function Ag(e,t){let r=Pr(t);return new wg.default(e,r).read()}Ie.walkSync=Ag;function kg(e,t){let r=Pr(t);return new Sg.default(e,r).read()}Ie.walkStream=kg;function Pr(e={}){return e instanceof _o.default?e:new _o.default(e)}});var Tr=R(bo=>{"use strict";l();Object.defineProperty(bo,"__esModule",{value:!0});var Pg=B("path"),Og=it(),yl=Ve(),Co=class{constructor(t){this._settings=t,this._fsStatSettings=new Og.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return Pg.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:yl.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!yl.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};bo.default=Co});var wo=R(So=>{"use strict";l();Object.defineProperty(So,"__esModule",{value:!0});var Tg=B("stream"),$g=it(),Fg=Or(),Ig=Tr(),Ro=class extends Ig.default{constructor(){super(...arguments),this._walkStream=Fg.walkStream,this._stat=$g.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),o=new Tg.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))})}};So.default=Ro});var vl=R(Ao=>{"use strict";l();Object.defineProperty(Ao,"__esModule",{value:!0});var Mg=Or(),Ng=Tr(),Lg=wo(),Eo=class extends Ng.default{constructor(){super(...arguments),this._walkAsync=Mg.walk,this._readerStream=new Lg.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 xl=R(Po=>{"use strict";l();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 _l=R(To=>{"use strict";l();Object.defineProperty(To,"__esModule",{value:!0});var Dg=xl(),Oo=class extends Dg.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 c=i.segments[u];return!!(c.dynamic&&c.patternRe.test(f)||!c.dynamic&&c.pattern===f)}))return!0}return!1}};To.default=Oo});var Cl=R(Fo=>{"use strict";l();Object.defineProperty(Fo,"__esModule",{value:!0});var $r=Ve(),Vg=_l(),$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 Vg.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 bl=R(Mo=>{"use strict";l();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 Rl=R(Lo=>{"use strict";l();Object.defineProperty(Lo,"__esModule",{value:!0});var jg=Ve(),No=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return jg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Lo.default=No});var wl=R(Vo=>{"use strict";l();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=R(Ho=>{"use strict";l();Object.defineProperty(Ho,"__esModule",{value:!0});var Hg=B("path"),qg=Cl(),Bg=bl(),Ug=Rl(),Wg=wl(),jo=class{constructor(t){this._settings=t,this.errorFilter=new Ug.default(this._settings),this.entryFilter=new Bg.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new qg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Wg.default(this._settings)}_getRootDirectory(t){return Hg.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 El=R(Bo=>{"use strict";l();Object.defineProperty(Bo,"__esModule",{value:!0});var Gg=vl(),Kg=Fr(),qo=class extends Kg.default{constructor(){super(...arguments),this._reader=new Gg.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 Al=R(Wo=>{"use strict";l();Object.defineProperty(Wo,"__esModule",{value:!0});var Yg=B("stream"),zg=wo(),Xg=Fr(),Uo=class extends Xg.default{constructor(){super(...arguments),this._reader=new zg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),o=this.api(r,t,n),i=new Yg.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 kl=R(Ko=>{"use strict";l();Object.defineProperty(Ko,"__esModule",{value:!0});var Qg=it(),Jg=Or(),Zg=Tr(),Go=class extends Zg.default{constructor(){super(...arguments),this._walkSync=Jg.walkSync,this._statSync=Qg.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 Pl=R(zo=>{"use strict";l();Object.defineProperty(zo,"__esModule",{value:!0});var eh=kl(),th=Fr(),Yo=class extends th.default{constructor(){super(...arguments),this._reader=new eh.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 Ol=R(bt=>{"use strict";l();Object.defineProperty(bt,"__esModule",{value:!0});bt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ct=B("fs"),rh=B("os"),nh=Math.max(rh.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,nh),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=R((Ub,$l)=>{"use strict";l();var Tl=$a(),oh=El(),ih=Al(),sh=Pl(),Qo=Ol(),Se=Ve();async function Jo(e,t){Pe(e);let r=Zo(e,oh.default,t),n=await Promise.all(r);return Se.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(u,c){Pe(u);let d=Zo(u,sh.default,c);return Se.array.flatten(d)}e.sync=t;function r(u,c){Pe(u);let d=Zo(u,ih.default,c);return Se.stream.merge(d)}e.stream=r;function n(u,c){Pe(u);let d=[].concat(u),p=new Qo.default(c);return Tl.generate(d,p)}e.generateTasks=n;function o(u,c){Pe(u);let d=new Qo.default(c);return Se.pattern.isDynamicPattern(u,d)}e.isDynamicPattern=o;function i(u){return Pe(u),Se.path.escape(u)}e.escapePath=i;function s(u){return Pe(u),Se.path.convertPathToPattern(u)}e.convertPathToPattern=s;let a;(function(u){function c(p){return Pe(p),Se.path.escapePosixPath(p)}u.escapePath=c;function d(p){return Pe(p),Se.path.convertPosixPathToPattern(p)}u.convertPathToPattern=d})(a=e.posix||(e.posix={}));let f;(function(u){function c(p){return Pe(p),Se.path.escapeWindowsPath(p)}u.escapePath=c;function d(p){return Pe(p),Se.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=Tl.generate(n,o),s=new t(o);return i.map(s.read,s)}function Pe(e){if(![].concat(e).every(n=>Se.string.isString(n)&&!Se.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}$l.exports=Jo});var Il=R((Gb,Fl)=>{"use strict";l();var Rt=1e3,St=Rt*60,wt=St*60,at=wt*24,ah=at*7,lh=at*365.25;Fl.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return ch(e);if(r==="number"&&isFinite(e))return t.long?fh(e):uh(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function ch(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*lh;case"weeks":case"week":case"w":return r*ah;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*St;case"seconds":case"second":case"secs":case"sec":case"s":return r*Rt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function uh(e){var t=Math.abs(e);return t>=at?Math.round(e/at)+"d":t>=wt?Math.round(e/wt)+"h":t>=St?Math.round(e/St)+"m":t>=Rt?Math.round(e/Rt)+"s":e+"ms"}function fh(e){var t=Math.abs(e);return t>=at?Mr(e,t,at,"day"):t>=wt?Mr(e,t,wt,"hour"):t>=St?Mr(e,t,St,"minute"):t>=Rt?Mr(e,t,Rt,"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=R((Yb,Ml)=>{"use strict";l();function ph(e){r.debug=r,r.default=r,r.coerce=f,r.disable=i,r.enable=o,r.enabled=s,r.humanize=Il(),r.destroy=u,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let d=0;for(let p=0;p<c.length;p++)d=(d<<5)-d+c.charCodeAt(p),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(c){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=c,C.useColors=r.useColors(),C.color=r.selectColor(c),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(c)),x),set:b=>{p=b}}),typeof r.init=="function"&&r.init(C),C}function n(c,d){let p=r(this.namespace+(typeof d>"u"?":":d)+c);return p.log=this.log,p}function o(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let d,p=(typeof c=="string"?c:"").split(/[\s,]+/),y=p.length;for(d=0;d<y;d++)p[d]&&(c=p[d].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function i(){let c=[...r.names.map(a),...r.skips.map(a).map(d=>"-"+d)].join(",");return r.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let d,p;for(d=0,p=r.skips.length;d<p;d++)if(r.skips[d].test(c))return!1;for(d=0,p=r.names.length;d<p;d++)if(r.names[d].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function f(c){return c instanceof Error?c.stack||c.message:c}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}Ml.exports=ph});var Nl=R((Ce,Nr)=>{"use strict";l();Ce.formatArgs=mh;Ce.save=gh;Ce.load=hh;Ce.useColors=dh;Ce.storage=yh();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 dh(){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 mh(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 gh(e){try{e?Ce.storage.setItem("debug",e):Ce.storage.removeItem("debug")}catch{}}function hh(){let e;try{e=Ce.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function yh(){try{return localStorage}catch{}}Nr.exports=ei()(Ce);var{formatters:vh}=Nr.exports;vh.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Dl=R((Qb,Ll)=>{"use strict";l();Ll.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 Hl=R((Zb,jl)=>{"use strict";l();var xh=B("os"),Vl=B("tty"),we=Dl(),{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 _h(){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 Ch(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function bh(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=_h();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=xh.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=bh(e,{streamIsTTY:e&&e.isTTY,...t});return Ch(r)}jl.exports={supportsColor:ti,stdout:ti({isTTY:Vl.isatty(1)}),stderr:ti({isTTY:Vl.isatty(2)})}});var Bl=R((ce,Vr)=>{"use strict";l();var Rh=B("tty"),Dr=B("util");ce.init=Oh;ce.log=Ah;ce.formatArgs=wh;ce.save=kh;ce.load=Ph;ce.useColors=Sh;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=Hl();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 Sh(){return"colors"in ce.inspectOpts?!!ce.inspectOpts.colors:Rh.isatty(process.stderr.fd)}function wh(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]=Eh()+t+" "+e[0]}function Eh(){return ce.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ah(...e){return process.stderr.write(Dr.format(...e)+`
|
|
6
|
-
`)}function kh(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Ph(){return process.env.DEBUG}function Oh(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:ql}=Vr.exports;ql.o=function(e){return this.inspectOpts.colors=this.useColors,Dr.inspect(e,this.inspectOpts).split(`
|
|
7
|
-
`).map(t=>t.trim()).join(" ")};ql.O=function(e){return this.inspectOpts.colors=this.useColors,Dr.inspect(e,this.inspectOpts)}});var ni=R((rR,ri)=>{"use strict";l();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ri.exports=Nl():ri.exports=Bl()});var Yl=R((aR,Kl)=>{"use strict";l();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,c)=>je(u).length>=je(c).length?u:c)).length);let a="",f=t.bracketedArray?"[]":"";for(let u of i){let c=e[u];if(c&&Array.isArray(c))for(let d of c)a+=je(`${u}${f}`).padEnd(s," ")+n+je(d)+r;else c&&typeof c=="object"?o.push(u):a+=je(u).padEnd(s," ")+n+je(c)+r}t.section&&a.length&&(a="["+je(t.section)+"]"+(t.newline?r+r:r)+a);for(let u of o){let c=Wl(u,".").join("\\."),d=(t.section?t.section+".":"")+c,p=ii(e[u],{...t,section:d});a.length&&p.length&&(a+=r),a+=p}return a};function Wl(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 Ul=(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 c=u.match(i);if(!c)continue;if(c[1]!==void 0){if(o=jr(c[1]),o==="__proto__"){n=Object.create(null);continue}n=r[o]=r[o]||Object.create(null);continue}let d=jr(c[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=c[3]?jr(c[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 c=Wl(u,".");n=r;let d=c.pop(),p=d.replace(/\\\./g,".");for(let y of c)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},Gl=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),je=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Gl(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),jr=(e,t)=>{if(e=(e||"").trim(),Gl(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};Kl.exports={parse:Ul,decode:Ul,stringify:ii,encode:ii,safe:je,unsafe:jr}});var li=R((gR,Zl)=>{"use strict";l();var Lh=B("os");Zl.exports=Lh.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=R((yR,ec)=>{"use strict";l();ec.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 tc=R((xR,Bt)=>{"use strict";l();var Dh=process.platform==="win32",Vh=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,ui={};function jh(e){return Vh.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=jh(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 Hh=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,fi={};function qh(e){return Hh.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=qh(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]}};Dh?Bt.exports=ui.parse:Bt.exports=fi.parse;Bt.exports.posix=fi.parse;Bt.exports.win32=ui.parse});var pi=R((CR,ic)=>{"use strict";l();var oc=B("path"),rc=oc.parse||tc(),nc=function(t,r){var n="/";/^([A-Za-z]:)/.test(t)?n="":/^\\\\/.test(t)&&(n="\\\\");for(var o=[t],i=rc(t);i.dir!==o[o.length-1];)o.push(i.dir),i=rc(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(f){return oc.resolve(n,a,f)}))},[])};ic.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 nc(t,o)},r);var i=nc(t,o);return r&&r.paths?i.concat(r.paths):i}});var di=R((RR,sc)=>{"use strict";l();sc.exports=function(e,t){return t||{}}});var cc=R((wR,lc)=>{"use strict";l();var Bh="Function.prototype.bind called on incompatible ",Uh=Object.prototype.toString,Wh=Math.max,Gh="[object Function]",ac=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},Kh=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},Yh=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};lc.exports=function(t){var r=this;if(typeof r!="function"||Uh.apply(r)!==Gh)throw new TypeError(Bh+r);for(var n=Kh(arguments,1),o,i=function(){if(this instanceof o){var c=r.apply(this,ac(n,arguments));return Object(c)===c?c:this}return r.apply(t,ac(n,arguments))},s=Wh(0,r.length-n.length),a=[],f=0;f<s;f++)a[f]="$"+f;if(o=Function("binder","return function ("+Yh(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 fc=R((AR,uc)=>{"use strict";l();var zh=cc();uc.exports=Function.prototype.bind||zh});var dc=R((PR,pc)=>{"use strict";l();var Xh=Function.prototype.call,Qh=Object.prototype.hasOwnProperty,Jh=fc();pc.exports=Jh.call(Xh,Qh)});var mc=R((TR,Zh)=>{Zh.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=R(($R,yc)=>{"use strict";l();var ey=dc();function ty(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 gc(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!ty(e,r[n]))return!1;return!0}function ry(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(gc(r,t[n]))return!0;return!1}return gc(r,t)}var hc=mc();yc.exports=function(t,r){return ey(hc,t)&&ry(r,hc[t])}});var _c=R((IR,xc)=>{"use strict";l();var lt=B("fs"),ny=li(),ne=B("path"),oy=ci(),iy=pi(),sy=di(),ay=Ut(),ly=process.platform!=="win32"&<.realpath&&typeof lt.realpath.native=="function"?lt.realpath.native:lt.realpath,vc=ny(),cy=function(){return[ne.join(vc,".node_modules"),ne.join(vc,".node_libraries")]},uy=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())})},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.isDirectory())})},py=function(t,r){ly(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)},dy=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)}})},my=function(t,r,n){for(var o=iy(r,n,t),i=0;i<o.length;i++)o[i]=ne.join(o[i],t);return o};xc.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=sy(t,i);var a=i.isFile||uy,f=i.isDirectory||fy,u=i.readFile||lt.readFile,c=i.realpath||py,d=i.readPackage||dy;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(oy()),w=i.filename||b;i.paths=i.paths||cy();var P=ne.resolve(b);Wt(c,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&&ay(t))return o(null,t);G(t,h,function(T,L,j){if(T)o(T);else{if(L)return Wt(c,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(c,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(c,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(c,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,S){if(k)return j(k);if(W)return j(null,W,S);M(ne.join(h,"index"),S,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 my(h,T,i)};$(L,y?y(h,T,j,i):j())}}});var Cc=R((NR,gy)=>{gy.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 wc=R((LR,Sc)=>{"use strict";l();var hy=Ut(),bc=Cc(),Rc={};for(qr in bc)Object.prototype.hasOwnProperty.call(bc,qr)&&(Rc[qr]=hy(qr));var qr;Sc.exports=Rc});var Ac=R((VR,Ec)=>{"use strict";l();var yy=Ut();Ec.exports=function(t){return yy(t)}});var Oc=R((HR,Pc)=>{"use strict";l();var vy=Ut(),ct=B("fs"),de=B("path"),xy=li(),_y=ci(),Cy=pi(),by=di(),Ry=process.platform!=="win32"&&ct.realpathSync&&typeof ct.realpathSync.native=="function"?ct.realpathSync.native:ct.realpathSync,kc=xy(),Sy=function(){return[de.join(kc,".node_modules"),de.join(kc,".node_libraries")]},wy=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())},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.isDirectory()},Ay=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},ky=function(t,r){var n=t(r);try{var o=JSON.parse(n);return o}catch{}},Py=function(t,r,n){for(var o=Cy(r,n,t),i=0;i<o.length;i++)o[i]=de.join(o[i],t);return o};Pc.exports=function(t,r){if(typeof t!="string")throw new TypeError("Path must be a string.");var n=by(t,r),o=n.isFile||wy,i=n.readFileSync||ct.readFileSync,s=n.isDirectory||Ey,a=n.realpathSync||Ay,f=n.readPackageSync||ky;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var u=n.packageIterator,c=n.extensions||[".js"],d=n.includeCoreModules!==!1,p=n.basedir||de.dirname(_y()),y=n.filename||p;n.paths=n.paths||Sy();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&&vy(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<c.length;h++){var T=E+c[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 Py(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 $c=R((BR,Tc)=>{"use strict";l();var Br=_c();Br.core=wc();Br.isCore=Ac();Br.sync=Oc();Tc.exports=Br});l();import t1 from"node:process";import r1 from"yargs";import{hideBin as n1}from"yargs/helpers";var gt="0.18.0-beta.0";l();var Ae=Z(he(),1),gu=Z(Ir(),1);import{dirname as uv,join as fv,resolve as Zr}from"node:path";import{readFile as pv}from"node:fs/promises";import Xt from"fs-extra";import dv from"gray-matter";import mv from"markdown-it";import{Feed as gv}from"feed";import ft from"consola";l();var su=Z(ni(),1),au=Z(Ir(),1),Xe=Z(he(),1);import{dirname as iv}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 sv}from"@antfu/utils";import lu from"defu";import cu from"consola";l();l();import{spawn as Th}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=Th("git",o),s="";i.stdout.on("data",a=>s+=String(a)),i.on("close",()=>{r(+new Date(s))}),i.on("error",()=>{r(0)})})}l();import{join as Fc}from"node:path";import Oy from"is-installed-globally";l();var Xl=Z(Yl(),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",zl=e=>{try{return Xl.default.parse(Hr.readFileSync(e,"utf8")).prefix}catch{}},$h=()=>Object.keys(ie.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?ie.env[t]:e,void 0),Fh=()=>{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")}},Ih=()=>{if(qt){let{APPDATA:e}=ie.env;return e?se.join(e,"npm"):se.dirname(ie.execPath)}return se.dirname(se.dirname(ie.execPath))},Mh=()=>{let e=$h();if(e)return e;let t=zl(se.join(si.homedir(),".npmrc"));if(t)return t;if(ie.env.PREFIX)return ie.env.PREFIX;let r=zl(Fh());return r||Ih()},Ht=se.resolve(Mh()),Ql=()=>{if(qt&&ie.env.LOCALAPPDATA){let e=se.join(ie.env.LOCALAPPDATA,"Yarn");if(Hr.existsSync(e))return e}return!1},Nh=()=>{if(ie.env.PREFIX)return ie.env.PREFIX;let e=Ql();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 Jl=se.resolve(Nh());Me.yarn={};Me.yarn.prefix=Jl;Me.yarn.packages=se.join(Jl,Ql()?"Data/global/node_modules":"global/node_modules");Me.yarn.binaries=se.join(Me.yarn.packages,".bin");var ai=Me;var Mc=Z($c(),1);import Ic from"consola";function Ne(e,t=!1,r={preserveSymlinks:!1}){try{return(0,Mc.sync)(e,r)}catch(n){Ic.log(n)}if(Oy){try{return B.resolve(Fc(ai.yarn.packages,e))}catch{}try{return B.resolve(Fc(ai.npm.packages,e))}catch{}}if(t)throw new Error(`Failed to resolve package ${e}`);Ic.error(`Failed to resolve package ${e}`)}l();l();var Ur="<!-- more -->",Et=/^https?:/i,Nc=/^pathname:\/\//;function Lc(e){return Et.test(e)}function Ty(e){return e.replace(/\\/g,"/")}function mi(e,t){return t.startsWith(e)?t:e+t}function Q(e){return`/@fs${mi("/",Ty(e))}`}function Dc(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}function Vc(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}l();l();import $y from"node:process";import{fileURLToPath as Fy}from"node:url";import Iy from"jiti";import{resolve as My}from"pathe";import Ny from"consola";function Ly(e){let{name:t,cwd:r}=e,n=My(r,`${t}.config.ts`),o={};try{o=Iy(Fy(import.meta.url),{interopDefault:!0,requireCache:!1,esmResolve:!0})(n)}catch{Ny.debug(`Failed to load config file: ${n}`)}return{config:o,configFile:n}}async function At(e,t={}){let{config:r,configFile:n}=Ly({name:e,cwd:t.cwd||$y.cwd()}),o=r;return typeof r=="function"&&(o=await r(t.valaxyOptions||{})),{config:o,configFile:n}}l();var Pt=Z(he(),1);import jy from"node:process";import{createDefu as Hy}from"defu";import{mergeConfig as qy}from"vite";import{isFunction as Hc}from"@antfu/utils";import By from"consola";l();function Ye(){let e=performance.now();return()=>{let r=performance.now()-e;return r>1e3?`${(r/1e3).toFixed(2)}s`:`${r.toFixed(2)}ms`}}l();var kt=Z(he(),1);import{webcrypto as jc}from"node:crypto";import Dy 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 CS(e){return e}async function Vy(e){return At("site",{cwd:e})}async function Gr(e){let t=Ye(),{config:r,configFile:n}=await Vy(e),o=t();return r&&n&&Dy.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 Uy(e){return e}var $S=Uy;async function Kt(e,t){return await At("valaxy",{cwd:e,valaxyOptions:t})}var ut=Hy((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]=qy(e[t],r),!0});async function Bc(e){let t=e.userRoot||jy.cwd(),r=Ye(),{config:n,configFile:o}=await Kt(t),i=r();n&&o&&By.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}}l();import Wy from"node:path";import Gy from"fs-extra";function Ky(e){return e}var DS=Ky;async function Uc(e,t){let r={};for(let n of e){if(!Gy.existsSync(Wy.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}l();var zr=Z(he(),1);import Qy from"defu";l();var Gc=Z(he(),1);import Xy from"consola";l();import Wc from"node:process";import Yy from"node:fs";import zy 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=Yy.existsSync(zy.resolve(e,"pages"));return t||Oe.error(`No pages directory found in ${e}`),t}var Oe=Xy.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=Qy(t||{},n)}return{themeConfig:t,themeConfigFile:r}}function Jy(e){return e}var ew=Jy;function nw(e){return e}l();var ze=Z(he(),1);import Zc from"node:process";import{resolve as ev}from"pathe";import Xc from"fs-extra";import Qc from"defu";import tv from"ora";l();import{dirname as Yc}from"node:path";import{resolve as zc}from"pathe";import Zy from"fs-extra";function Xr(e,t){if(!e)return"";if(Dc(e))if(t){let r=Zy.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=tv(`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=rv(e,t.cwd||Zc.cwd()),n=ev(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 rv(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return Xr(r,t)}l();function tu(e,t){let r=e.startsWith("valaxy-theme")||e.startsWith(".")?e:`valaxy-theme-${e}`;return Xr(r,t)}l();import{writeFile as nv}from"node:fs/promises";import{ensureFile as ov}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 ov(t),await nv(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 av=(0,su.default)("valaxy:options");async function lv(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=sv([r,n,...f,o]);let c=e.config.vite?.build?.rollupOptions?.external||[];return e.config.vite.build.rollupOptions.external=c.filter(d=>!u.includes(d)),await lv(e),e}async function Ee(e={userRoot:nu.cwd()},t="dev"){let r=iv(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:c,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:c||"",siteConfigFile:x||"",themeConfigFile:b||"",pages:f.sort(),addons:[],redirects:w,env:{id:"",links:[]}};av(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}l();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}l();function Qe(e){return e.positional("root",{default:".",type:"string",describe:"root folder of your source files"})}l();function du(e,t){t.forEach(r=>{r.setup?.(e)})}var hv=mv({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`),c=[];for await(let b of u){let w=await pv(b,"utf-8"),{data:P,content:I,excerpt:N}=dv(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=hv.render(N||I.slice(0,100)).replace('src="/',`src="${o}/`);P.image?.startsWith("/")&&(P.image=o+P.image),c.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$/,"")})}c.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 gv(f);c.forEach(b=>p.addItem(b)),await Xt.ensureDir(uv(`./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=fv("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)})}};l();var hu=Z(Ir(),1),Ze=Z(he(),1);import $t from"node:path";import Je from"fs-extra";import Ft from"consola";import yv 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}=yv(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 vv(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"),c=await Je.readFile(u,"utf-8"),d=s.replace(/\\/g,"/");c.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){vv(e)},setup(e){e.hook("build:before",()=>{yu(e.options)})}};l();l();var rn=Z(he(),1);import{join as Rv,resolve as Cu}from"node:path";import{writeFile as Sv}from"node:fs/promises";import{render as wv}from"ejs";import Ev from"dayjs";import{ensureSuffix as Av}from"@antfu/utils";import{consola as xi}from"consola";l();import{access as xv}from"node:fs/promises";async function tn(e){try{return await xv(e),!0}catch{return!1}}l();import Cv from"node:path";import{readFile as bv}from"node:fs/promises";l();import _v from"node:process";var Qt=_v.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=Cv.resolve(o,"scaffolds",`${e}.md`);if(await tn(i))return bv(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=Av(".md",s),!await tn(s)){let a=await kv(e);try{await Sv(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 kv({date:e,title:t,layout:r="post"}){let n=await _u(r);return n||(n=xu),wv(n,{title:t,layout:r,date:e?Ev().format("YYYY-MM-DD HH:mm:ss"):""})}function Ru(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})})}l();var Xf=Z(he(),1);import Hi from"node:path";import G_ from"node:process";import qi from"consola";import{mergeConfig as zf}from"vite";l();import{join as Vf,resolve as jf}from"node:path";import{mergeConfig as Hf,build as I_}from"vite";import{build as M_}from"vite-ssg/node";import N_ from"vite-ssg-sitemap";import un from"fs-extra";import ji from"consola";l();import{splitVendorChunkPlugin as E_}from"vite";import A_ from"markdown-it";import k_ from"@vitejs/plugin-vue";import P_ from"vite-plugin-vue-layouts";import O_ from"unplugin-vue-components/vite";import T_ from"@intlify/unplugin-vue-i18n/vite";import $_ from"@unhead/addons/vite";import{resolve as F_}from"pathe";l();import{resolve as Iv}from"node:path";import{existsSync as Mv}from"node:fs";import{fileURLToPath as Nv}from"node:url";import Lv from"jiti";import Eu from"defu";import{presetAttributify as Dv,presetIcons as Vv,presetTypography as jv,presetUno as Hv,transformerDirectives as qv,transformerVariantGroup as Bv}from"unocss";l();import{resolve as Pv}from"node:path";import{fileURLToPath as Ov}from"node:url";import Tv from"fs-extra";import{isObject as $v}from"@antfu/utils";import Fv from"jiti";function Su(e,t,r=""){return e={...e},Object.keys(t).forEach(n=>{$v(e[n])?e[n]=Su(e[n],t[n],r?`${r}.${n}`:n):Array.isArray(e[n])?e[n]=[...e[n],...t[n]]:e[n]=t[n]}),e}async function wu(e,t,r,n,o=!0){let i=n;for(let s of e){let a=Pv(s,"setup",t);if(Tv.existsSync(a)){let{default:f}=Fv(Ov(import.meta.url),{esmResolve:!0})(a),u=await f(r);u!==null&&(i=o?Su(i,u):u)}}return i}async function Uv(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 Wv(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:[Hv(t.unocssPresets?.uno),Dv(t.unocssPresets?.attributify),Vv({scale:1.2,...t.unocssPresets?.icons}),jv(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:[qv(),Bv()],safelist:await Uv(e)}}async function Au(e){let t=await import("unocss/vite").then(p=>p.default),{unocss:r}=e.config,n=await Wv(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(Iv(p,y))));let c={},d=[];return f.forEach(p=>{if(Mv(p)){let y=Lv(Nv(import.meta.url),{esmResolve:!0})(p);"default"in y&&(y=y.default),c=Eu(c,y),d.push(p)}}),c=await wu(s,"unocss.ts",{},c,!0),t({configDeps:d,configFile:!1,...Eu(r||{},c,n)})}l();import{dirname as zv,join as Pu,resolve as He}from"node:path";import{mergeConfig as Xv,searchForWorkspaceRoot as bi}from"vite";import Qv from"is-installed-globally";import{uniq as Ou}from"@antfu/utils";l();import{join as _i}from"node:path";import Ci from"fs-extra";import{uniq as Gv}from"@antfu/utils";import{loadConfigFromFile as Kv,mergeConfig as Yv}from"vite";async function nn({userRoot:e,themeRoot:t},r){let n={mode:"development",command:r},o={},i=Gv([t,e]).map(s=>_i(s,"vite.config.ts"));for await(let s of i){if(!Ci.existsSync(s))continue;let a=await Kv(n,s);a?.config&&(o=Yv(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 c=_i(u,"index.html");if(!Ci.existsSync(c))continue;let d=await Ci.readFile(c,"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 Jv=["@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:Ri(e),resolve:{alias:Zv(e),dedupe:["vue"]},optimizeDeps:{entries:[He(e.clientRoot,"main.ts")],include:Ou([...Jv,...t,...r]).filter(i=>!Tu.includes(i)),exclude:Tu},server:{fs:{allow:Ou([bi(e.clientRoot),bi(e.themeRoot),bi(e.userRoot),zv(Ne("katex/package.json",!0))])}}};return Qv&&(o.cacheDir=Pu(e.pkgRoot,"node_modules/.vite"),o.resolve.alias.vue=`${Ne("vue/dist/vue.esm-browser.js",!0)}`),Xv(n,o)},async transformIndexHtml(n){return n=await ku(e,n),{html:n,tags:[]}}}}function Ri(e){return{__VUE_PROD_DEVTOOLS__:!1,__INTLIFY_PROD_DEVTOOLS__:!1}}function Zv(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}l();import{existsSync as ex}from"node:fs";import{join as tx,resolve as rx}from"node:path";import{slash as nx,uniq as ox}from"@antfu/utils";function Fu({clientRoot:e,themeRoot:t,userRoot:r}){let n=nx(rx(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 ox([t,r]).map(c=>tx(c,"setup",s)).forEach((c,d)=>{if(!ex(c))return;a.push(`import __n${d} from '${Q(c)}'`);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(`// ${c}`,p)}),o=o.replace("/* __imports__ */",a.join(`
|
|
48
|
-
`)),o=o.replace("/* __injections__ */",f.join(`
|
|
49
|
-
`)),o}return null}}}l();import{objectEntries as ix}from"@antfu/utils";function Iu(e){let t=ix(Ri(e));return[{name:"valaxy:flags",enforce:"pre",transform(r,n){if(n.match(/\.vue($|\?)/)){let o=r;if(t.forEach(([i,s])=>{r=r.replace(new RegExp(i,"g"),s)}),o!==r)return r}}}]}l();import px from"unplugin-vue-router/vite";import Si from"fs-extra";import{resolve as dx}from"pathe";import mx from"gray-matter";import{isDate as Nu}from"@antfu/utils";import{convert as gx}from"html-to-text";l();import{existsSync as sx,readFileSync as ax}from"node:fs";function lx(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 cx({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 ux({cn:e,en:t}){let r=e+t;return r<1e3?r:`${Math.round(r/100)/10}k`}function fx(e,t){let r=lx(e);return{countData:r,wordCount:ux(r),readingTime:cx(r,t.readTime)}}function Mu({route:e,options:t}){let r=e.components.get("default")||"";if(sx(r)){let n=ax(r,"utf-8"),{wordCount:o,readingTime:i}=fx(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))}}function hx(e="",t="html"){switch(t){case"ai":case"md":return e;case"html":return wi.render(e);case"text":return gx(wi.render(e));default:return e}}function Lu(e){let{roots:t,config:r}=e;return px({extensions:[".vue",".md"],routesFolder:t.map(n=>`${n}/pages`),dts:dx(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=Si.readFileSync(i,"utf-8"),{data:a,excerpt:f,content:u}=mx(s,{excerpt_separator:Ur}),c=a,d=e.config.siteConfig.lastUpdated;if(delete c.password,c.gallery_password&&(delete c.gallery_password,delete c.photos),c.date||(c.date=Si.statSync(i).mtime),d&&(c.updated||(c.updated=Si.statSync(i).ctime)),Nu(c.date)||(c.date=new Date(c.date)),Nu(c.updated)||(c.updated=new Date(c.updated)),c.from&&(Array.isArray(c.from)?c.from.forEach(y=>{e.redirects.push({from:y,to:n.fullPath})}):e.redirects.push({from:c.from,to:n.fullPath})),n.addToMeta({frontmatter:c,excerpt:f?hx(f,c.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)}})}l();var sn=Z(he(),1);import{join as Zt,relative as Ix,resolve as Mx}from"pathe";import er from"fs-extra";import{defu as Nx}from"defu";import Lx from"pascalcase";import Ju from"consola";l();l();var It=Z(he(),1);import yx from"consola";function Du(e,t){e.includes("{%")&&e.includes("%}")&&yx.error(`${`${t}
|
|
50
|
-
`} Please ${(0,It.red)("remove")} ${(0,It.cyan)("{% %}")}, because it conflicts with ${(0,It.yellow)("markdown-it-attrs")}.`)}l();import Ei from"node:process";var Ai=new Set;function Vu(e){if(Ai.size===0){let r=typeof Ei=="object"&&Ei.env.VITE_EXTRA_EXTENSIONS||Ei.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=>Ai.add(n))}let t=e.split(".").pop();return t==null||!Ai.has(t.toLowerCase())}l();import ki from"node:path";import vx from"fs-extra";import{slash as xx}from"@antfu/utils";function Pi(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 c=u?ki.join(e,a.slice(a[1]==="/"?2:1)):ki.join(ki.dirname(r),a),d=vx.readFileSync(c,"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(`
|
|
51
|
-
`)}return n.push(xx(c)),Pi(e,d,c,n)}catch{return s}})}l();var Xu=Z(ni(),1);import{LRUCache as Tx}from"lru-cache";import $x from"pathe";l();import ju from"pathe";import _x from"fs-extra";var Cx=/<!--\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=Pi(t,r,o,i),r=r.replace(Cx,(a,f)=>{try{let u=ju.join(s,f),c=_x.readFileSync(u,"utf-8");return i.push(u),c}catch{return a}}),{code:r,includes:i}}}l();import Jt from"pathe";import{slash as bx}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=[],c=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(bx(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)&&c(y)}}return u}}l();function Sx(e){return["import { provide } from 'vue'","import { useRoute } from 'vue-router'",`
|
|
52
|
-
const data = ${Vc(e)}
|
|
53
|
-
const route = useRoute()`,`const $frontmatter = data.frontmatter || {}
|
|
54
|
-
route.meta.frontmatter = Object.assign(route.meta.frontmatter || {}, data.frontmatter || {})
|
|
55
|
-
provide('pageData', data)
|
|
56
|
-
provide('valaxy:frontmatter', $frontmatter)
|
|
57
|
-
`]}function Bu(e){return(t,r,n)=>{let o=Sx(n),i=e.mode==="dev",s=[...o,i?"window.$frontmatter = $frontmatter":""];t=t.replace(/(<script setup.*>)/g,`$1
|
|
58
|
-
${s.join(`
|
|
59
|
-
`)}
|
|
60
|
-
`);let a=t.indexOf("<template>")+10,f=t.lastIndexOf("</template>"),u=t.slice(a,f).trim();return u.startsWith("<div>")&&u.endsWith("</div>")&&(u=u.slice(5,-6)),t=`${t.slice(0,a)}
|
|
61
|
-
${Uu(u)}
|
|
62
|
-
${t.slice(f)}`,t}}l();import wx from"pathe";function Ex(e,t){if(!e||!e.length)return;let r=e.find(([n,o={}])=>n==="meta"&&o.name===t&&o.content);return r&&r[1].content}function Ax(e){let{description:t,head:r}=e;return t!==void 0?t:r&&Ex(r,"description")||""}async function Wu(e,t,r){let{frontmatter:n={}}=r.env,o=t,i={title:n.title||r.env.title||"",titleTemplate:n.titleTemplate,description:Ax(n),frontmatter:n,headers:r.env.headers||[],relativePath:o,path:wx.join(r.userRoot,o)};return i.lastUpdated=await jt(t),i}l();function kx(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 kx(t,e,r.codeHeightLimit)}}l();l();import{webcrypto as Oi}from"node:crypto";function Px(e){let t=new TextEncoder;return Oi.subtle.importKey("raw",t.encode(e),"PBKDF2",!1,["deriveBits","deriveKey"])}function Ox(e,t){return Oi.subtle.deriveKey({name:"PBKDF2",salt:t,iterations:1e5,hash:"SHA-256"},e,{name:"AES-CBC",length:256},!0,["encrypt","decrypt"])}async function on(e,t){let{password:r,iv:n,salt:o}=t,i=await Px(r),s=await Ox(i,o),a=new TextEncoder,f=await Oi.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)=>{let{frontmatter:o={}}=e.env;if(t.enable){let i=/<!-- valaxy-encrypt-start:(?<password>\w+) -->(?<content>.*?)<!-- valaxy-encrypt-end -->/gs,s=/((<!-- valaxy-encrypt-start:\w+ -->)|(<!-- valaxy-encrypt-end -->))/g;if(o.password)r=r.replaceAll(s,"");else{let a=[];for(let u of r.matchAll(i))a.push(await on(u.groups.content,{password:u.groups.password,iv:t.iv,salt:t.salt}));o.partiallyEncryptedContents=a.length?a:void 0;let f=0;a.length&&(r=r.replaceAll(i,()=>{let u="$frontmatter.partiallyEncryptedContents",c=`${u}[${f++}]`;return`<ValaxyDecrypt v-if="${u} && ${c}" :encrypted-content="${c}" />`}))}if(o.password){let a=r.match(/<template>([\s\S]*?)<\/template>/)?.[1]||"",f=await on(a,{password:o.password,iv:t.iv,salt:t.salt});o.encryptedContent=f,o.encrypt=!0,delete o.password;let u="$frontmatter.encryptedContent";r=r.replace(a,`<ValaxyDecrypt v-if="${u}" :encrypted-content="${u}" />`)}if(o.gallery_password){let a=await on(JSON.stringify(o.photos),{password:o.gallery_password,iv:t.iv,salt:t.salt});o.encryptedPhotos=a,delete o.gallery_password,delete o.photos}}return r}}var Yu=(0,Xu.default)("valaxy:md"),zu=new Tx({max:128});function Fx(){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`
|
|
63
|
-
<${t} :frontmatter="$frontmatter">
|
|
64
|
-
<template #main-content-md>${e}</template>
|
|
65
|
-
${Fx()}
|
|
66
|
-
<slot />
|
|
67
|
-
</${t}>
|
|
68
|
-
`}async function Qu(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,c)=>{let d=c,p=$x.relative(a,d),y=JSON.stringify({code:u,id:c});if(f){let N=JSON.stringify({code:u,id:c}),O=zu.get(N);if(O)return Yu(`[cache hit] ${p}`),O}let x=Date.now(),C=r(u,c),b=C.includes;u=C.code,u=n(u),u=await i(u,c);let w=s(u,c),P=await Wu(u,c,e);u=o(u,c,P),Yu(`[render] ${d} in ${Date.now()-x}ms.`);let I={code:u,pageData:P,deadLinks:w,includes:b};return f&&zu.set(y,I),I}}function Dx(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 Vx(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(`
|
|
69
|
-
`)}function jx(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(`
|
|
70
|
-
`)}function Hx(e){let t=e.addons.filter(i=>i.global).filter(i=>er.existsSync(Zt(i.root,"./App.vue"))),r=i=>`Addon${Lx(i)}App`,n=t.map(i=>`import ${r(i.name)} from "${i.name}/App.vue"`).join(`
|
|
71
|
-
`),o=t.map(i=>`{ component: ${r(i.name)}, props: ${JSON.stringify(i.props)} }`).join(",");return`${n}
|
|
72
|
-
export default [${o}]`}var qx='import { defineComponent } from "vue"; export default defineComponent({ render: () => null });';function Zu(e){let t=Zt(e,"App.vue");return er.existsSync(t)?[`import AppVue from "${Q(t)}"`,"export default AppVue"].join(`
|
|
73
|
-
`):qx}async function ef(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 Qu(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 Dx(e);if(f==="/@valaxyjs/context")return`export default ${JSON.stringify(JSON.stringify({userRoot:e.userRoot}))}`;if(f==="/@valaxyjs/styles")return Vx(o,e);if(f==="/@valaxyjs/locales")return jx(o);if(f==="/@valaxyjs/addons")return Hx(e);if(f==="/@valaxyjs/UserAppVue")return Zu(e.userRoot);if(f==="/@valaxyjs/ThemeAppVue")return Zu(e.themeRoot);if(f.startsWith(n))return{code:"",map:{mappings:""}}},async transform(f,u){if(u.endsWith(".md")){let c=Ye();Du(f,u),f.replace("{%","{%"),f.replace("%}","%}");let{code:d,deadLinks:p,includes:y}=await s(f,u);return p.length&&(i=!0,Ju.error(`Dead links found in ${u}`),Ju.info(p)),y.length&&y.forEach(x=>{this.addWatchFile(x)}),Tt.success(`${(0,sn.yellow)("[HMR]")} ${u} ${(0,sn.dim)(`updated in ${c()}`)}`),d}},renderStart(){if(i&&!r.ignoreDeadLinks)throw new Error("One or more pages contain dead links.")},async handleHotUpdate(f){let{file:u,server:c,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=>c.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=Nx(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===Mx(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=await d(),{code:C,pageData:b}=await s(x,u),P={path:`/${Ix(`${e.userRoot}/pages`,u)}`,pageData:b};c.hot.send({type:"custom",event:"valaxy:pageData",data:P}),f.read=()=>C}}}]}l();import WP from"markdown-it";l();l();import rf from"crypto";l();var tf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var Bx=128,et,tt,nf=e=>{!et||et.length<e?(et=Buffer.allocUnsafe(e*Bx),rf.randomFillSync(et),tt=0):tt+e>et.length&&(rf.randomFillSync(et),tt=0),tt+=e},Ux=e=>(nf(e-=0),et.subarray(tt-e,tt)),Wx=(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}}},of=(e,t=21)=>Wx(e,t,Ux),Ti=(e=21)=>{nf(e-=0);let t="";for(let r=tt-e;r<tt;r++)t+=tf[et[r]&63];return t};var ff=Z(he(),1);l();function sf(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 Gx(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 c of a.children){if(c.type!=="element")continue;let d=c.children[0];if(d.type!=="text")continue;let p=!1;d.value=d.value.replace(t,(...y)=>r.call(this,y,a,c,i,f)?(p=!0,""):y[0]),p&&!d.value.trim()&&(u=c)}if(u&&(a.children.splice(a.children.indexOf(u),1),a.children.length===0&&(s.push(a),n))){let c=o.children[o.children.indexOf(a)+1];c&&c.type==="text"&&c.value===`
|
|
74
|
-
`&&s.push(c)}});for(let a of s)o.children.splice(o.children.indexOf(a),1)}}}function Kx(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function an(e={},t="@shikijs/transformers:notation-map"){let{classMap:r={},classActivePre:n=void 0}=e;return Gx(t,new RegExp(`\\s*(?://|/\\*|<!--|#)\\s+\\[!code (${Object.keys(r).map(Kx).join("|")})(:\\d+)?\\]\\s*(?:\\*/|-->)?`),function([o,i,s=":1"],a,f,u,c){let d=Number.parseInt(s.slice(1),10);return u.slice(c,c+d).forEach(p=>{this.addClassToHast(p,r[i])}),n&&this.addClassToHast(this.pre,n),!0})}function af(e={}){let{classActiveLine:t="focused",classActivePre:r="has-focused"}=e;return an({classMap:{focus:t},classActivePre:r},"@shikijs/transformers:notation-focus")}function lf(e={}){let{classActiveLine:t="highlighted",classActivePre:r="has-highlighted"}=e;return an({classMap:{highlight:t,hl:t},classActivePre:r},"@shikijs/transformers:notation-highlight")}function cf(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 uf(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 Sk=Symbol("highlighted-lines");import{addClassToHast as Yx,bundledLanguages as zx,getHighlighter as Xx,isSpecialLang as Qx}from"shiki";var Jx=of("abcdefghijklmnopqrstuvwxyz",10);function Zx(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 $i(e,t,r=console){let{defaultHighlightLang:n="",codeTransformers:o=[]}=t,i=await Xx({themes:typeof e=="object"&&"light"in e&&"dark"in e?[e.light,e.dark]:[e],langs:[...Object.keys(zx),...t.languages||[]],langAlias:t.languageAlias});await t?.shikiSetup?.(i);let s=[cf(),af({classActiveLine:"has-focus",classActivePre:"has-focused-lines"}),lf(),uf(),{name:"valaxy:add-class",pre(d){Yx(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*)?$/,c=/\{\{.*?\}\}/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)&&!Qx(p)&&(r.warn(ff.default.yellow(`
|
|
75
|
-
The language '${p}' is not loaded, falling back to '${n||"txt"}' for syntax highlighting.`)),p=n);let C=Zx(y),b=new Map,w=N=>x?N:N.replace(c,O=>{let M=b.get(O);return M||(M=Jx(),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,sf(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)}}l();import Mf from"markdown-it-anchor";import C_ from"markdown-it-attrs";import{full as b_}from"markdown-it-emoji";import R_ from"markdown-it-task-lists";l();var pf=new Set([!0,!1,"alt","title"]);function df(e,t){return(Array.isArray(e)?e:[]).filter(([r])=>r!==t)}function mf(e,t){e&&e.attrs&&(e.attrs=df(e.attrs,t))}function e_(e,t){if(!pf.has(e))throw new TypeError(`figcaption must be one of: ${[...pf]}.`);if(e==="alt")return t.content;let r=t.attrs.find(([n])=>n==="title");return Array.isArray(r)&&r[1]?(mf(t,"title"),r[1]):void 0}function gf(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,c,d]=s.children;if(u.type!=="link_open"||c.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=e_(t.figcaption,f);if(u){let[c]=e.parseInline(u,r.env);s.children.push(new r.Token("figcaption_open","figcaption",1)),s.children.push(...c.children),s.children.push(new r.Token("figcaption_close","figcaption",-1)),f.attrs&&(f.attrs=df(f.attrs,"title"))}}if(t.copyAttrs&&f.attrs){let u=t.copyAttrs===!0?"":t.copyAttrs;a.attrs=f.attrs.filter(([c])=>c.match(u)).map(c=>Array.from(c))}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 c=0,d=f.attrs.length;c<d&&!u;c++){let p=f.attrs[c];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(([c])=>c==="src");f.attrs.push(["data-src",u[1]]),mf(f,"src")}}})}l();l();var t_={"&":"&","<":"<",">":">","'":"'",'"':"""},r_=/[&<>'"]/g,pt=e=>e.replace(r_,t=>t_[t]);var Fi=(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=c=>{for(;f.length!==0&&c.level<=f[0].level;)f.shift();f.length===0?(a.push(c),f.push(c)):(f[0].children.push(c),f.unshift(c))};for(let c=0;c<e.length;c+=1){let d=e[c];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[c+1];if(!y)continue;let x=Fi(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},n_=/[\u0000-\u001f]/g,o_=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,i_=/[\u0300-\u036F]/g,dt=e=>e.normalize("NFKD").replace(i_,"").replace(n_,"").replace(o_,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase();var hf=(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))};l();var yf="script",vf="style",tr="template",s_=/^<script\s+.*?\bsetup\b.*?>$/is,a_=({customBlocks:e})=>{let t=Array.from(new Set([yf,vf,...e])).join("|");return new RegExp(`^\\s*(?<content>(?<tagOpen><(?<type>${t})\\s?.*?>)(?<contentStripped>.*)(?<tagClose><\\/\\k<type>\\s*>))\\s*$`,"is")},xf=(e,{customBlocks:t=[]}={})=>{let r=a_({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===yf?(f.sfcBlocks.scripts.push(y),s_.test(y.tagOpen)?f.sfcBlocks.scriptSetup=y:f.sfcBlocks.script=y):y.type===vf?f.sfcBlocks.styles.push(y):f.sfcBlocks.customBlocks.push(y),""}};l();var _f=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?Fi(r[i+1],{shouldAllowHtml:!1,shouldEscapeText:!1}):"",t(r,n,o)}};l();var l_=({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),c=o?` class="${pt(o)}"`:"",d=y=>n==="router-link"?` to="${y}"`:` href="${y}"`,p=y=>`<${i}${s}>${y.map(x=>`<${a}${f}><${u}${c}${d(x.link)}>${x.title}</${u}>${x.children.length>0?p(x.children):""}</${a}>`).join("")}</${i}>`;return p},c_=({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 c=n.push("toc_open",t,1);c.markup="",c.map=[o,n.line],r&&c.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},Cf=(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:c="",linkTag:d="a",linkClass:p=""}={})=>{e.block.ruler.before("heading","toc",c_({pattern:t,containerTag:s,containerClass:a}),{alt:["paragraph","reference","blockquote"]});let y=l_({listTag:f,listClass:u,itemClass:c,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 S_}from"css-i18n";l();import bf 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 u_(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 f_(e,t,r,n){let o,i,s,a,f=!1,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(u+2>c||e.src.slice(u,u+2)!=="$$")return!1;if(u+=2,o=e.src.slice(u,c),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],c=e.eMarks[s],u<c&&e.tShift[s]<e.blkIndent)));)e.src.slice(u,c).trim().slice(-2)==="$$"&&(a=e.src.slice(0,c).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}
|
|
76
|
-
`:"")+e.getLines(t+1,s,e.tShift[t],!0)+(i&&i.trim()?i:""),d.map=[t,e.line],d.markup="$$",!0}function Ii(e,t){t=t||{};let r=function(s){t.displayMode=!1;try{return bf.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>${bf.renderToString(s,t)}</p>`}catch(a){return t.throwOnError&&console.warn(a),s}},i=function(s,a){return`${o(s[a].content)}
|
|
77
|
-
`};e.inline.ruler.after("escape","math_inline",u_),e.block.ruler.after("blockquote","math_block",f_,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=n,e.renderer.rules.math_block=i}l();import Ni from"markdown-it-container";l();function Sf(e){return e.trim().replace(/=(\d*)/,"").replace(/:(no-)?line-numbers({| |$|=\d*).*/,"").replace(/(-vue|{| ).*$/,"").replace(/^vue-html$/,"template").replace(/^ansi$/,"")}function Mi(e){return e.hasSingleTheme?"":" vp-adaptive-theme"}function wf(e,t=!1){return t?e.replace(/<!--[^]*?-->/g,"").match(/data-title="(.*?)"/)?.[1]||"":e.match(/\[(.*)\]/)?.[1]||Sf(e)||"txt"}function p_(e){let t=e?.siteConfig?.codeHeightLimit;return t===void 0||t<=0?"":`style="max-height: ${t}px;"`}function Ef(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=Sf(s.info),f=r(...n);return`
|
|
78
|
-
<div ${p_(t)} class="language-${a}${Mi(t)}${/ active( |$)/.test(s.info)?" active":""}">
|
|
79
|
-
<button title="Copy Code" class="copy"></button><span class="lang">${a}</span>${f}<button class="collapse"></button>
|
|
80
|
-
</div>`}}function d_(e,{icon:t,color:r,text:n,langs:o}={}){return[Ni,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>`}
|
|
81
|
-
`;let u="";t&&(u=`<i class="icon ${t}" ${r?`style="color: ${r}"`:""}></i>`);let c=`<span lang="en">${f||n}</span>`;return o&&Object.keys(o).forEach(d=>{c+=`<span lang="${d}">${f||o[d]}</span>`}),`<div class="${e} custom-block"><p class="custom-block-title">${u}${c}</p>
|
|
82
|
-
`}else return e==="details"?`</details>
|
|
83
|
-
`:`</div>
|
|
84
|
-
`}}]}var Af={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 kf(e,t,r={}){Object.keys(Af).forEach(o=>{let i={...Af[o],...r[o]||{}};e.use(...d_(o,i))}),e.use(...m_(t)),["zh-CN","en"].forEach(o=>{e.use(Ni,o,{render:(i,s)=>i[s].nesting===1?`<div lang="${o}">
|
|
85
|
-
`:`</div>
|
|
86
|
-
`})})}function m_(e){return[Ni,"code-group",{render(t,r){if(t[r].nesting===1){let n=Ti(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=wf(a?t[s].content:t[s].info,a);if(f){let u=Ti(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${Mi(e)}"><div class="tabs">${o}</div><div class="blocks">
|
|
87
|
-
`}return`</div></div>
|
|
88
|
-
`}}]}l();var Li=/{([\d,-]+)}/;function Pf(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||!Li.test(f))return t(...r);let u=f.replace(Li,"").trim();i.info=u,a=Li.exec(f)[1]}return!a&&(a=s[0],!a||!/[\d,-]+/.test(a))?t(...r):(i.info+=` ${a}`,t(...r))}}l();import{URL as g_}from"node:url";var h_=/(^|.*\/)index.md(#?.*)$/i;function Of(e,t,r){e.renderer.rules.link_open=(i,s,a,f,u)=>{let c=i[s],d=c.attrIndex("href");if(d>=0){let p=c.attrs[d],y=p[1];Et.test(y)?(Object.entries(t).forEach(([C,b])=>{c.attrSet(C,b)}),p[1]=y.replace(Nc,"")):!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(h_);if(f){let[,u,c]=f;a=u+c}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 c=new g_(a,"http://a.com");a=u+c.search+c.hash}!a.startsWith("/")&&!/^\.\//.test(a)&&(a=`./${a}`),o(a.replace(/\.html$/,""),s),a.startsWith("/")&&(a=`${r}${a}`.replace(/\/+/g,"/")),i[1]=decodeURI(a)}function o(i,s){(s.links||(s.links=[])).push(i)}}l();function Tf(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(`
|
|
89
|
-
`),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"')}}l();import $f from"pathe";import Di from"fs-extra";var y_=/^(.+?(?:(?:\.([a-z0-9]+))?))(?:(#[\w-]+))?(?: ?(?:{(\d+(?:[,-]\d+)*)? ?(\S+)?}))? ?(?:\[(.+)\])?$/;function v_(e){let[t="",r="",n="",o="",i="",s=""]=(y_.exec(e)||[]).slice(1),a=s||t.split("/").pop()||"";return{filepath:t,extension:r,region:n,lines:o,lang:i,title:a}}function x_(e){let t=e.split(`
|
|
90
|
-
`),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(`
|
|
91
|
-
`):e}function Ff(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 __(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(Ff(s,a,t)){o=i+1,n=a;break}}else if(Ff(s,n,t,!0))return{start:o,end:i,regexp:n};return null}function If(e,t){let r=(o,i,s,a)=>{let u=o.bMarks[i]+o.tShift[i],c=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>=c)return!1;if(a)return!0;let d=u+3,p=o.skipSpacesBack(c,u),y=o.src.slice(d,p).trim().replace(/^@/,t).trim(),{filepath:x,extension:C,region:b,lines:w,lang:P,title:I}=v_(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=$f.resolve($f.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,c]=f.src??[];if(!u)return n(...o);a&&a.push(u);let d=Di.statSync(u).isFile();if(!Di.existsSync(u)||!d)return f.content=d?`Code snippet path not found: ${u}`:"Invalid code snippet option",f.info="",n(...o);let p=Di.readFileSync(u,"utf8");if(c){let y=p.split(/\r?\n/),x=__(y,c);x&&(p=x_(y.slice(x.start,x.end).filter(C=>!x.regexp.test(C.trim())).join(`
|
|
92
|
-
`)))}return f.content=p,n(...o)},e.block.ruler.before("fence","snippet",r)}var cn={light:"github-light",dark:"github-dark"};async function Vi(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(Pf).use(Ef,{theme:o,siteConfig:s}).use(If,t?.userRoot).use(kf,{hasSingleTheme:i},{...n.blocks,...n?.container}).use(S_,{languages:t?.config.siteConfig.languages}).use(Of,{target:"_blank",rel:"noreferrer",...n.externalLinks},r),e.use(Tf,n.lineNumbers),n.attrs?.disable||e.use(C_,n.attrs),e.use(b_),e.use(Mf,{slugify:dt,permalink:Mf.permalink.linkInsideHeader({symbol:"​",renderAttrs:(f,u)=>{let c=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[c+1].content}"`}}}),...n.anchor}),e.use(hf,{slugify:dt,...typeof n.headers=="boolean"?void 0:n.headers}).use(xf,{...n.sfc}).use(_f).use(Cf,{...n.toc}),e.use(Ii,n.katex);let a=t?.config.siteConfig.vanillaLazyload||{enable:!1};return e.use(gf,{figcaption:!0,lazy:!0,async:!0,...a.enable?{lazy:!0,async:!0,classes:"lazy"}:{},...n.imageFigures}),e.use(R_),n.config&&n.config(e),e}l();l();import w_ from"unplugin-vue-markdown/vite";l();import*as Nf from"js-base64";function Lf(e){return e.replace(/^```mermaid\s*?({.*?})?\n([\s\S]+?)\n```/mg,(t,r="",n="")=>(n=n.trim(),r=r.trim()||"{}",`<ValaxyMermaid :code="'${Nf.encode(n,!0)}'" v-bind="${r}" />`))}async function Df(e){let t=e?.config.markdown||{},r=t.theme??cn;return w_({include:[/\.md$/],wrapperClasses:"",frontmatter:!0,exportFrontmatter:!1,escapeCodeTagInterpolation:!0,markdownItOptions:{quotes:`""''`,html:!0,xhtmlOut:!0,linkify:!0,highlight:await $i(r,t),...t?.markdownItOptions},async markdownItSetup(n){n.linkify.set({fuzzyLink:!1}),await Vi(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=Lf(n),n}},...t})}var wi=new A_({html:!0});async function rr(e,t={}){let{roots:r,config:n}=e,o=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","meting-js"]),i=await Df(e),s=await ef(e,t);return[i,$u(e),Fu(e),k_({include:[/\.vue$/,/\.md$/],exclude:[],template:{compilerOptions:{isCustomElement:a=>o.has(a)},...n.vue?.template},...n.vue}),s,$_(),Lu(e),P_({layoutsDirs:r.map(a=>`${a}/layouts`),...n.layouts}),O_({extensions:["vue","md"],include:[/\.vue$/,/\.vue\?vue/,/\.md$/],exclude:[],allowOverrides:!0,dirs:r.map(a=>`${a}/components`).concat(["src/components","components"]),dts:F_(e.tempDir,"components.d.ts"),...n.components}),await Au(e),T_({runtimeOnly:!0,compositionOnly:!0,include:r.map(a=>`${a}/locales/**`)}),E_(),Iu(e)]}async function qf(e,t={}){let r=Hf(t,{plugins:await rr(e)});await I_(r)}async function Bf(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(){N_({hostname:e.config.siteConfig.url})}};let n=Hf(r,t);await M_({},n)}async function Uf(e){let{userRoot:t}=e,r=jf(t,"dist/index.html");if(un.existsSync(r)){ji.info("post process for ssg...");let n=await un.readFile(r,"utf-8"),o="</html>";if(!n.endsWith(o)){ji.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 L_(e)}async function L_(e){ji.info("generate client redirects...");let t=jf(e.userRoot,"dist"),n=Jr(e.redirects).map(async o=>{let i=Vf(t,`${o.from}.html`),s=Vf(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)}l();l();l();import Wf from"node:process";import{createServer as D_,mergeConfig as V_}from"vite";async function Gf(e,t={},r={}){Wf.env.EDITOR=Wf.env.EDITOR||"code";let n=await rr(e,r),o=e.mode==="dev"&&e.config.devtools,i=V_(t,{plugins:[...n,o&&(await import("vite-plugin-vue-devtools")).default]});return await D_(i)}l();l();import{createHooks as j_}from"hookable";var H_=["build:before","build:after"];function fn(e){let t=j_();typeof e.config.hooks=="object"&&Object.keys(e.config.hooks).forEach(n=>{let o=n,i=e.config.hooks[o];typeof i=="function"&&(H_.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}l();var U=Z(he(),1);import*as Kf from"node:readline";import q_ from"node:path";import B_ from"node:os";import rt from"node:process";import U_ from"consola";import{mergeConfig as W_}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)(q_.resolve(e.userRoot))}`),t){console.log(),console.log(`${(0,U.dim)(" Preview ")} > ${(0,U.cyan)(`http://localhost:${(0,U.bold)(t)}/`)}`),r&&Object.values(B_.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=W_(await nn(e,"serve"),t);try{pn=await Gf(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){U_.error(`failed to start server. error:
|
|
93
|
-
`),console.error(n),rt.exit(1)}}function Yf(e){rt.stdin.resume(),rt.stdin.setEncoding("utf8"),Kf.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 Qf(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)||G_.exit(0);let i=Hi.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=zf(await nn(s,"build"),s.config.vite||{}),c=zf(u,{configFile:Hi.resolve(s.clientRoot,"vite.config.ts"),build:{emptyOutDir:!0,outDir:Hi.resolve(s.userRoot,n)},logLevel:o});await a.hooks.callHook("config:init"),await a.hooks.callHook("build:before");try{if(t){qi.info(`use ${(0,Xf.yellow)("vite-ssg")} to do ssg build...`);try{await Bf(s,c),await Uf(s)}catch(d){qi.error("[vite-ssg] An internal error occurred."),console.log(d)}}else qi.info("use vite do spa build..."),await qf(s,c)}catch(d){console.log(d)}finally{await a.hooks.callHook("build:after")}})}l();import z_ from"node:path";import{exec as X_}from"node:child_process";import Q_ from"node:process";import J_ from"node:os";import{mergeConfig as Z_}from"vite";import e1 from"qrcode";l();import K_ from"node:net";async function Bi(e){return await Y_(e)?e:await Bi(e+1)}function Y_(e){return new Promise(t=>{let r=K_.createServer(n=>{n.write(`Echo server\r
|
|
94
|
-
`),n.pipe(n)});r.listen(e,"0.0.0.0"),r.on("error",()=>{t(!1)}),r.on("listening",()=>{r.close(),t(!0)})})}function Jf(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)||Q_.exit(0);let s=r||await Bi(4859),a=await Ee({userRoot:t});fn(a);let f=Z_({configFile:z_.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),Yf([{name:"r",fullName:"restart",action(){nr(a,f)}},{name:"o",fullName:"open",async action(){let{default:c}=await import("open");c(`http://localhost:${s}`)}},{name:"q",fullName:"qr",action(){let d=`http://${Object.values(J_.networkInterfaces()).flat().filter(p=>p?.family==="IPv4"&&!p.address.includes("127.0.0.1"))[0]?.address||"localhost"}:${s}`;e1.toString(d,{type:"terminal"},(p,y)=>{if(p)throw p;console.log(y)})}},{name:"e",fullName:"edit",action(){X_(`code "${t}"`)}}])})}var or=r1(n1(t1.argv)).scriptName("valaxy").usage("$0 [args]").version(gt).showHelpOnFail(!1).alias("h","help").alias("v","version");Jf(or);Qf(or);Ru(or);var o1=[en,vu];o1.forEach(e=>{e.extendCli?.(or)});function WT(){or.help().parse()}export{jt as a,Ne as b,Lc as c,Ty as d,mi as e,Q as f,Dc as g,Vc as h,Ly as i,At as j,Wr as k,CS as l,Vy as m,Gr as n,qc as o,Uy as p,$S as q,Kt as r,ut as s,Bc as t,Ky as u,DS as v,Uc as w,Yr as x,Kc as y,Jy as z,ew as A,nw as B,yi as C,Ee as D,vi as E,nn as F,ku as G,qf as H,Bf as I,Uf as J,L_ as K,Gf as L,or as M,WT as N};
|
|
95
|
-
/*! Bundled license information:
|
|
96
|
-
|
|
97
|
-
is-extglob/index.js:
|
|
98
|
-
(*!
|
|
99
|
-
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
100
|
-
*
|
|
101
|
-
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
102
|
-
* Licensed under the MIT License.
|
|
103
|
-
*)
|
|
104
|
-
|
|
105
|
-
is-glob/index.js:
|
|
106
|
-
(*!
|
|
107
|
-
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
108
|
-
*
|
|
109
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
110
|
-
* Released under the MIT License.
|
|
111
|
-
*)
|
|
112
|
-
|
|
113
|
-
is-number/index.js:
|
|
114
|
-
(*!
|
|
115
|
-
* is-number <https://github.com/jonschlinkert/is-number>
|
|
116
|
-
*
|
|
117
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
118
|
-
* Released under the MIT License.
|
|
119
|
-
*)
|
|
120
|
-
|
|
121
|
-
to-regex-range/index.js:
|
|
122
|
-
(*!
|
|
123
|
-
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
124
|
-
*
|
|
125
|
-
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
126
|
-
* Released under the MIT License.
|
|
127
|
-
*)
|
|
128
|
-
|
|
129
|
-
fill-range/index.js:
|
|
130
|
-
(*!
|
|
131
|
-
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
132
|
-
*
|
|
133
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
134
|
-
* Licensed under the MIT License.
|
|
135
|
-
*)
|
|
136
|
-
|
|
137
|
-
queue-microtask/index.js:
|
|
138
|
-
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
139
|
-
|
|
140
|
-
run-parallel/index.js:
|
|
141
|
-
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
142
|
-
*/
|