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