valaxy 0.16.4 → 0.17.0-beta.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.
@@ -1,146 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkGXMNHGBPcjs = require('./chunk-GXMNHGBP.cjs');var Oi=_chunkGXMNHGBPcjs.b.call(void 0, ut=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ut,"__esModule",{value:!0});ut.splitWhen=ut.flatten=void 0;function Df(e){return e.reduce((t,r)=>[].concat(t,r),[])}ut.flatten=Df;function Vf(e,t){let r=[[]],n=0;for(let o of e)t(o)?(n++,r[n]=[]):r[n].push(o);return r}ut.splitWhen=Vf});var Ti=_chunkGXMNHGBPcjs.b.call(void 0, Qt=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Qt,"__esModule",{value:!0});Qt.isEnoentCodeError=void 0;function Hf(e){return e.code==="ENOENT"}Qt.isEnoentCodeError=Hf});var $i=_chunkGXMNHGBPcjs.b.call(void 0, Zt=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Zt,"__esModule",{value:!0});Zt.createDirentFromStats=void 0;var on=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 jf(e,t){return new on(e,t)}Zt.createDirentFromStats=jf});var Ni=_chunkGXMNHGBPcjs.b.call(void 0, ee=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );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 qf=_chunkGXMNHGBPcjs.a.call(void 0, "os"),Bf=_chunkGXMNHGBPcjs.a.call(void 0, "path"),Fi=qf.platform()==="win32",Uf=2,Gf=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Wf=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,zf=/^\\\\([.?])/,Kf=/\\(?![!()+@[\]{}])/g;function Yf(e){return e.replace(/\\/g,"/")}ee.unixify=Yf;function Xf(e,t){return Bf.resolve(e,t)}ee.makeAbsolute=Xf;function Qf(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Uf)}return e}ee.removeLeadingDotSegment=Qf;ee.escape=Fi?sn:an;function sn(e){return e.replace(Wf,"\\$2")}ee.escapeWindowsPath=sn;function an(e){return e.replace(Gf,"\\$2")}ee.escapePosixPath=an;ee.convertPathToPattern=Fi?Ii:Li;function Ii(e){return sn(e).replace(zf,"//$1").replace(Kf,"/")}ee.convertWindowsPathToPattern=Ii;function Li(e){return an(e)}ee.convertPosixPathToPattern=Li});var Di=_chunkGXMNHGBPcjs.b.call(void 0, (Vx,Mi)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Mi.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 ji=_chunkGXMNHGBPcjs.b.call(void 0, (jx,Hi)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Zf=Di(),Vi={"{":"}","(":")","[":"]"},Jf=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 l=Vi[a];if(l){var f=e.indexOf(l,t);f!==-1&&(t=f+1)}if(e[t]==="!")return!0}else t++}return!1},ep=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=Vi[r];if(n){var o=e.indexOf(n,t);o!==-1&&(t=o+1)}if(e[t]==="!")return!0}else t++}return!1};Hi.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(Zf(t))return!0;var n=Jf;return r&&r.strict===!1&&(n=ep),n(t)}});var Bi=_chunkGXMNHGBPcjs.b.call(void 0, (Bx,qi)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var tp=ji(),rp=_chunkGXMNHGBPcjs.a.call(void 0, "path").posix.dirname,np=_chunkGXMNHGBPcjs.a.call(void 0, "os").platform()==="win32",cn="/",op=/\\/g,ip=/[\{\[].*[\}\]]$/,sp=/(^|[^\\])([\{\[]|\([^\)]+$)/,ap=/\\([\!\*\?\|\[\]\(\)\{\}])/g;qi.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&np&&t.indexOf(cn)<0&&(t=t.replace(op,cn)),ip.test(t)&&(t+=cn),t+="a";do t=rp(t);while(tp(t)||sp.test(t));return t.replace(ap,"$1")}});var Jt=_chunkGXMNHGBPcjs.b.call(void 0, _e=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );_e.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;_e.find=(e,t)=>e.nodes.find(r=>r.type===t);_e.exceedsLimit=(e,t,r=1,n)=>n===!1||!_e.isInteger(e)||!_e.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;_e.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)};_e.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);_e.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;_e.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;_e.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);_e.flatten=(...e)=>{let t=[],r=n=>{for(let o=0;o<n.length;o++){let i=n[o];Array.isArray(i)?r(i,t):i!==void 0&&t.push(i)}return t};return r(e),t}});var er=_chunkGXMNHGBPcjs.b.call(void 0, (zx,Gi)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Ui=Jt();Gi.exports=(e,t={})=>{let r=(n,o={})=>{let i=t.escapeInvalid&&Ui.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(i||s)&&Ui.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(e)}});var zi=_chunkGXMNHGBPcjs.b.call(void 0, (Yx,Wi)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Wi.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var rs=_chunkGXMNHGBPcjs.b.call(void 0, (Qx,ts)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Ki=zi(),Qe=(e,t,r)=>{if(Ki(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Ki(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),l=e+":"+t+"="+o+i+s+a;if(Qe.cache.hasOwnProperty(l))return Qe.cache[l].result;let f=Math.min(e,t),u=Math.max(e,t);if(Math.abs(f-u)===1){let _=e+"|"+t;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let p=es(e)||es(t),d={min:e,max:t,a:f,b:u},x=[],y=[];if(p&&(d.isPadded=p,d.maxLen=String(d.max).length),f<0){let _=u<0?Math.abs(u):1;y=Yi(_,Math.abs(f),d,n),f=d.a=0}return u>=0&&(x=Yi(f,u,d,n)),d.negatives=y,d.positives=x,d.result=cp(y,x,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&x.length+y.length>1&&(d.result=`(?:${d.result})`),Qe.cache[l]=d,d.result};function cp(e,t,r){let n=ln(e,t,"-",!1,r)||[],o=ln(t,e,"",!1,r)||[],i=ln(e,t,"-?",!0,r)||[];return n.concat(i).concat(o).join("|")}function lp(e,t){let r=1,n=1,o=Qi(e,r),i=new Set([t]);for(;e<=o&&o<=t;)i.add(o),r+=1,o=Qi(e,r);for(o=Zi(t+1,n)-1;e<o&&o<=t;)i.add(o),n+=1,o=Zi(t+1,n)-1;return i=[...i],i.sort(pp),i}function up(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=fp(e,t),o=n.length,i="",s=0;for(let a=0;a<o;a++){let[l,f]=n[a];l===f?i+=l:l!=="0"||f!=="9"?i+=dp(l,f,r):s++}return s&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[s],digits:o}}function Yi(e,t,r,n){let o=lp(e,t),i=[],s=e,a;for(let l=0;l<o.length;l++){let f=o[l],u=up(String(s),String(f),n),p="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+Ji(a.count),s=f+1;continue}r.isPadded&&(p=mp(f,r,n)),u.string=p+u.pattern+Ji(u.count),i.push(u),s=f+1,a=u}return i}function ln(e,t,r,n,o){let i=[];for(let s of e){let{string:a}=s;!n&&!Xi(t,"string",a)&&i.push(r+a),n&&Xi(t,"string",a)&&i.push(r+a)}return i}function fp(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function pp(e,t){return e>t?1:t>e?-1:0}function Xi(e,t,r){return e.some(n=>n[t]===r)}function Qi(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Zi(e,t){return e-e%Math.pow(10,t)}function Ji(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function dp(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function es(e){return/^-?(0+)\d/.test(e)}function mp(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}}`}}Qe.cache={};Qe.clearCache=()=>Qe.cache={};ts.exports=Qe});var pn=_chunkGXMNHGBPcjs.b.call(void 0, (Jx,us)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var gp=_chunkGXMNHGBPcjs.a.call(void 0, "util"),is=rs(),ns=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),hp=e=>t=>e===!0?Number(t):String(t),un=e=>typeof e=="number"||typeof e=="string"&&e!=="",At=e=>Number.isInteger(+e),fn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},yp=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,vp=(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},os=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},_p=(e,t)=>{e.negatives.sort((s,a)=>s<a?-1:s>a?1:0),e.positives.sort((s,a)=>s<a?-1:s>a?1:0);let r=t.capture?"":"?:",n="",o="",i;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(o=`-(${r}${e.negatives.join("|")})`),n&&o?i=`${n}|${o}`:i=n||o,t.wrap?`(${r}${i})`:i},ss=(e,t,r,n)=>{if(r)return is(e,t,{wrap:!1,...n});let o=String.fromCharCode(e);if(e===t)return o;let i=String.fromCharCode(t);return`[${o}-${i}]`},as=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,o=r.capture?"":"?:";return n?`(${o}${e.join("|")})`:e.join("|")}return is(e,t,r)},cs=(...e)=>new RangeError("Invalid range arguments: "+gp.inspect(...e)),ls=(e,t,r)=>{if(r.strictRanges===!0)throw cs([e,t]);return[]},xp=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Cp=(e,t,r=1,n={})=>{let o=Number(e),i=Number(t);if(!Number.isInteger(o)||!Number.isInteger(i)){if(n.strictRanges===!0)throw cs([e,t]);return[]}o===0&&(o=0),i===0&&(i=0);let s=o>i,a=String(e),l=String(t),f=String(r);r=Math.max(Math.abs(r),1);let u=fn(a)||fn(l)||fn(f),p=u?Math.max(a.length,l.length,f.length):0,d=u===!1&&yp(e,t,n)===!1,x=n.transform||hp(d);if(n.toRegex&&r===1)return ss(os(e,p),os(t,p),!0,n);let y={negatives:[],positives:[]},_=F=>y[F<0?"negatives":"positives"].push(Math.abs(F)),S=[],b=0;for(;s?o>=i:o<=i;)n.toRegex===!0&&r>1?_(o):S.push(vp(x(o,b),p,d)),o=s?o-r:o+r,b++;return n.toRegex===!0?r>1?_p(y,n):as(S,null,{wrap:!1,...n}):S},bp=(e,t,r=1,n={})=>{if(!At(e)&&e.length>1||!At(t)&&t.length>1)return ls(e,t,n);let o=n.transform||(d=>String.fromCharCode(d)),i=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=i>s,l=Math.min(i,s),f=Math.max(i,s);if(n.toRegex&&r===1)return ss(l,f,!1,n);let u=[],p=0;for(;a?i>=s:i<=s;)u.push(o(i,p)),i=a?i-r:i+r,p++;return n.toRegex===!0?as(u,null,{wrap:!1,options:n}):u},tr=(e,t,r,n={})=>{if(t==null&&un(e))return[e];if(!un(e)||!un(t))return ls(e,t,n);if(typeof r=="function")return tr(e,t,1,{transform:r});if(ns(r))return tr(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)?Cp(e,t,r,o):bp(e,t,Math.max(Math.abs(r),1),o):r!=null&&!ns(r)?xp(r,o):tr(e,t,1,r)};us.exports=tr});var ds=_chunkGXMNHGBPcjs.b.call(void 0, (tC,ps)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Sp=pn(),fs=Jt(),Rp=(e,t={})=>{let r=(n,o={})=>{let i=fs.isInvalidBrace(o),s=n.invalid===!0&&t.escapeInvalid===!0,a=i===!0||s===!0,l=t.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+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 u=fs.reduce(n.nodes),p=Sp(...u,{...t,wrap:!1,toRegex:!0});if(p.length!==0)return u.length>1&&p.length>1?`(${p})`:p}if(n.nodes)for(let u of n.nodes)f+=r(u,n);return f};return r(e)};ps.exports=Rp});var hs=_chunkGXMNHGBPcjs.b.call(void 0, (nC,gs)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var wp=pn(),ms=er(),ft=Jt(),Ze=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?ft.flatten(t).map(o=>`{${o}}`):t;for(let o of e)if(Array.isArray(o))for(let i of o)n.push(Ze(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?Ze(o,i,r):o+i);return ft.flatten(n)},Ep=(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(Ze(a.pop(),ms(o,t)));return}if(o.type==="brace"&&o.invalid!==!0&&o.nodes.length===2){a.push(Ze(a.pop(),["{}"]));return}if(o.nodes&&o.ranges>0){let p=ft.reduce(o.nodes);if(ft.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=wp(...p,t);d.length===0&&(d=ms(o,t)),a.push(Ze(a.pop(),d)),o.nodes=[];return}let l=ft.encloseBrace(o),f=o.queue,u=o;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,f=u.queue;for(let p=0;p<o.nodes.length;p++){let d=o.nodes[p];if(d.type==="comma"&&o.type==="brace"){p===1&&f.push(""),f.push("");continue}if(d.type==="close"){a.push(Ze(a.pop(),f,l));continue}if(d.value&&d.type!=="open"){f.push(Ze(f.pop(),d.value));continue}d.nodes&&n(d,o)}return f};return ft.flatten(n(e))};gs.exports=Ep});var vs=_chunkGXMNHGBPcjs.b.call(void 0, (iC,ys)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );ys.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
- `,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 Ss=_chunkGXMNHGBPcjs.b.call(void 0, (aC,bs)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Ap=er(),{MAX_LENGTH:_s,CHAR_BACKSLASH:dn,CHAR_BACKTICK:kp,CHAR_COMMA:Pp,CHAR_DOT:Op,CHAR_LEFT_PARENTHESES:Tp,CHAR_RIGHT_PARENTHESES:$p,CHAR_LEFT_CURLY_BRACE:Fp,CHAR_RIGHT_CURLY_BRACE:Ip,CHAR_LEFT_SQUARE_BRACKET:xs,CHAR_RIGHT_SQUARE_BRACKET:Cs,CHAR_DOUBLE_QUOTE:Lp,CHAR_SINGLE_QUOTE:Np,CHAR_NO_BREAK_SPACE:Mp,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Dp}=vs(),Vp=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(_s,r.maxLength):_s;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,l=0,f=e.length,u=0,p=0,d,x={},y=()=>e[u++],_=S=>{if(S.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&S.type==="text"){a.value+=S.value;return}return s.nodes.push(S),S.parent=s,S.prev=a,a=S,S};for(_({type:"bos"});u<f;)if(s=i[i.length-1],d=y(),!(d===Dp||d===Mp)){if(d===dn){_({type:"text",value:(t.keepEscaping?d:"")+y()});continue}if(d===Cs){_({type:"text",value:"\\"+d});continue}if(d===xs){l++;let S=!0,b;for(;u<f&&(b=y());){if(d+=b,b===xs){l++;continue}if(b===dn){d+=y();continue}if(b===Cs&&(l--,l===0))break}_({type:"text",value:d});continue}if(d===Tp){s=_({type:"paren",nodes:[]}),i.push(s),_({type:"text",value:d});continue}if(d===$p){if(s.type!=="paren"){_({type:"text",value:d});continue}s=i.pop(),_({type:"text",value:d}),s=i[i.length-1];continue}if(d===Lp||d===Np||d===kp){let S=d,b;for(t.keepQuotes!==!0&&(d="");u<f&&(b=y());){if(b===dn){d+=b+y();continue}if(b===S){t.keepQuotes===!0&&(d+=b);break}d+=b}_({type:"text",value:d});continue}if(d===Fp){p++;let b={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||s.dollar===!0,depth:p,commas:0,ranges:0,nodes:[]};s=_(b),i.push(s),_({type:"open",value:d});continue}if(d===Ip){if(s.type!=="brace"){_({type:"text",value:d});continue}let S="close";s=i.pop(),s.close=!0,_({type:S,value:d}),p--,s=i[i.length-1];continue}if(d===Pp&&p>0){if(s.ranges>0){s.ranges=0;let S=s.nodes.shift();s.nodes=[S,{type:"text",value:Ap(s)}]}_({type:"comma",value:d}),s.commas++;continue}if(d===Op&&p>0&&s.commas===0){let S=s.nodes;if(p===0||S.length===0){_({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"){S.pop();let b=S[S.length-1];b.value+=a.value+d,a=b,s.ranges--;continue}_({type:"dot",value:d});continue}_({type:"text",value:d})}do if(s=i.pop(),s.type!=="root"){s.nodes.forEach(F=>{F.nodes||(F.type==="open"&&(F.isOpen=!0),F.type==="close"&&(F.isClose=!0),F.nodes||(F.type="text"),F.invalid=!0)});let S=i[i.length-1],b=S.nodes.indexOf(s);S.nodes.splice(b,1,...s.nodes)}while(i.length>0);return _({type:"eos"}),o};bs.exports=Vp});var Es=_chunkGXMNHGBPcjs.b.call(void 0, (lC,ws)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Rs=er(),Hp=ds(),jp=hs(),qp=Ss(),ge=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let o=ge.create(n,t);Array.isArray(o)?r.push(...o):r.push(o)}else r=[].concat(ge.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};ge.parse=(e,t={})=>qp(e,t);ge.stringify=(e,t={})=>Rs(typeof e=="string"?ge.parse(e,t):e,t);ge.compile=(e,t={})=>(typeof e=="string"&&(e=ge.parse(e,t)),Hp(e,t));ge.expand=(e,t={})=>{typeof e=="string"&&(e=ge.parse(e,t));let r=jp(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};ge.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ge.compile(e,t):ge.expand(e,t);ws.exports=ge});var kt=_chunkGXMNHGBPcjs.b.call(void 0, (fC,Ts)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Bp=_chunkGXMNHGBPcjs.a.call(void 0, "path"),Ee="\\\\/",As=`[^${Ee}]`,Ne="\\.",Up="\\+",Gp="\\?",rr="\\/",Wp="(?=.)",ks="[^/]",mn=`(?:${rr}|$)`,Ps=`(?:^|${rr})`,gn=`${Ne}{1,2}${mn}`,zp=`(?!${Ne})`,Kp=`(?!${Ps}${gn})`,Yp=`(?!${Ne}{0,1}${mn})`,Xp=`(?!${gn})`,Qp=`[^.${rr}]`,Zp=`${ks}*?`,Os={DOT_LITERAL:Ne,PLUS_LITERAL:Up,QMARK_LITERAL:Gp,SLASH_LITERAL:rr,ONE_CHAR:Wp,QMARK:ks,END_ANCHOR:mn,DOTS_SLASH:gn,NO_DOT:zp,NO_DOTS:Kp,NO_DOT_SLASH:Yp,NO_DOTS_SLASH:Xp,QMARK_NO_DOT:Qp,STAR:Zp,START_ANCHOR:Ps},Jp={...Os,SLASH_LITERAL:`[${Ee}]`,QMARK:As,STAR:`${As}*?`,DOTS_SLASH:`${Ne}{1,2}(?:[${Ee}]|$)`,NO_DOT:`(?!${Ne})`,NO_DOTS:`(?!(?:^|[${Ee}])${Ne}{1,2}(?:[${Ee}]|$))`,NO_DOT_SLASH:`(?!${Ne}{0,1}(?:[${Ee}]|$))`,NO_DOTS_SLASH:`(?!${Ne}{1,2}(?:[${Ee}]|$))`,QMARK_NO_DOT:`[^.${Ee}]`,START_ANCHOR:`(?:^|[${Ee}])`,END_ANCHOR:`(?:[${Ee}]|$)`},ed={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"};Ts.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:ed,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:Bp.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?Jp:Os}}});var Pt=_chunkGXMNHGBPcjs.b.call(void 0, me=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var td=_chunkGXMNHGBPcjs.a.call(void 0, "path"),rd=process.platform==="win32",{REGEX_BACKSLASH:nd,REGEX_REMOVE_BACKSLASH:od,REGEX_SPECIAL_CHARS:id,REGEX_SPECIAL_CHARS_GLOBAL:sd}=kt();me.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);me.hasRegexChars=e=>id.test(e);me.isRegexChar=e=>e.length===1&&me.hasRegexChars(e);me.escapeRegex=e=>e.replace(sd,"\\$1");me.toPosixSlashes=e=>e.replace(nd,"/");me.removeBackslashes=e=>e.replace(od,t=>t==="\\"?"":t);me.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};me.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:rd===!0||td.sep==="\\";me.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?me.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};me.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};me.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i}});var Vs=_chunkGXMNHGBPcjs.b.call(void 0, (gC,Ds)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var $s=Pt(),{CHAR_ASTERISK:hn,CHAR_AT:ad,CHAR_BACKWARD_SLASH:Ot,CHAR_COMMA:cd,CHAR_DOT:yn,CHAR_EXCLAMATION_MARK:vn,CHAR_FORWARD_SLASH:Ms,CHAR_LEFT_CURLY_BRACE:_n,CHAR_LEFT_PARENTHESES:xn,CHAR_LEFT_SQUARE_BRACKET:ld,CHAR_PLUS:ud,CHAR_QUESTION_MARK:Fs,CHAR_RIGHT_CURLY_BRACE:fd,CHAR_RIGHT_PARENTHESES:Is,CHAR_RIGHT_SQUARE_BRACKET:pd}=kt(),Ls=e=>e===Ms||e===Ot,Ns=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},dd=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,i=[],s=[],a=[],l=e,f=-1,u=0,p=0,d=!1,x=!1,y=!1,_=!1,S=!1,b=!1,F=!1,I=!1,U=!1,P=!1,M=0,E,R,O={value:"",depth:0,isGlob:!1},W=()=>f>=n,m=()=>l.charCodeAt(f+1),A=()=>(E=R,l.charCodeAt(++f));for(;f<n;){R=A();let j;if(R===Ot){F=O.backslashes=!0,R=A(),R===_n&&(b=!0);continue}if(b===!0||R===_n){for(M++;W()!==!0&&(R=A());){if(R===Ot){F=O.backslashes=!0,A();continue}if(R===_n){M++;continue}if(b!==!0&&R===yn&&(R=A())===yn){if(d=O.isBrace=!0,y=O.isGlob=!0,P=!0,o===!0)continue;break}if(b!==!0&&R===cd){if(d=O.isBrace=!0,y=O.isGlob=!0,P=!0,o===!0)continue;break}if(R===fd&&(M--,M===0)){b=!1,d=O.isBrace=!0,P=!0;break}}if(o===!0)continue;break}if(R===Ms){if(i.push(f),s.push(O),O={value:"",depth:0,isGlob:!1},P===!0)continue;if(E===yn&&f===u+1){u+=2;continue}p=f+1;continue}if(r.noext!==!0&&(R===ud||R===ad||R===hn||R===Fs||R===vn)===!0&&m()===xn){if(y=O.isGlob=!0,_=O.isExtglob=!0,P=!0,R===vn&&f===u&&(U=!0),o===!0){for(;W()!==!0&&(R=A());){if(R===Ot){F=O.backslashes=!0,R=A();continue}if(R===Is){y=O.isGlob=!0,P=!0;break}}continue}break}if(R===hn){if(E===hn&&(S=O.isGlobstar=!0),y=O.isGlob=!0,P=!0,o===!0)continue;break}if(R===Fs){if(y=O.isGlob=!0,P=!0,o===!0)continue;break}if(R===ld){for(;W()!==!0&&(j=A());){if(j===Ot){F=O.backslashes=!0,A();continue}if(j===pd){x=O.isBracket=!0,y=O.isGlob=!0,P=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&R===vn&&f===u){I=O.negated=!0,u++;continue}if(r.noparen!==!0&&R===xn){if(y=O.isGlob=!0,o===!0){for(;W()!==!0&&(R=A());){if(R===xn){F=O.backslashes=!0,R=A();continue}if(R===Is){P=!0;break}}continue}break}if(y===!0){if(P=!0,o===!0)continue;break}}r.noext===!0&&(_=!1,y=!1);let T=l,D="",h="";u>0&&(D=l.slice(0,u),l=l.slice(u),p-=u),T&&y===!0&&p>0?(T=l.slice(0,p),h=l.slice(p)):y===!0?(T="",h=l):T=l,T&&T!==""&&T!=="/"&&T!==l&&Ls(T.charCodeAt(T.length-1))&&(T=T.slice(0,-1)),r.unescape===!0&&(h&&(h=$s.removeBackslashes(h)),T&&F===!0&&(T=$s.removeBackslashes(T)));let v={prefix:D,input:e,start:u,base:T,glob:h,isBrace:d,isBracket:x,isGlob:y,isExtglob:_,isGlobstar:S,negated:I,negatedExtglob:U};if(r.tokens===!0&&(v.maxDepth=0,Ls(R)||s.push(O),v.tokens=s),r.parts===!0||r.tokens===!0){let j;for(let $=0;$<i.length;$++){let L=j?j+1:u,G=i[$],H=e.slice(L,G);r.tokens&&($===0&&u!==0?(s[$].isPrefix=!0,s[$].value=D):s[$].value=H,Ns(s[$]),v.maxDepth+=s[$].depth),($!==0||H!=="")&&a.push(H),j=G}if(j&&j+1<e.length){let $=e.slice(j+1);a.push($),r.tokens&&(s[s.length-1].value=$,Ns(s[s.length-1]),v.maxDepth+=s[s.length-1].depth)}v.slashes=i,v.parts=a}return v};Ds.exports=dd});var qs=_chunkGXMNHGBPcjs.b.call(void 0, (yC,js)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var nr=kt(),he=Pt(),{MAX_LENGTH:or,POSIX_REGEX_SOURCE:md,REGEX_NON_SPECIAL_CHARS:gd,REGEX_SPECIAL_CHARS_BACKREF:hd,REPLACEMENTS:Hs}=nr,yd=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch (e2){return e.map(o=>he.escapeRegex(o)).join("..")}return r},pt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Cn=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Hs[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(or,r.maxLength):or,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?"":"?:",l=he.isWindows(t),f=nr.globChars(l),u=nr.extglobChars(f),{DOT_LITERAL:p,PLUS_LITERAL:d,SLASH_LITERAL:x,ONE_CHAR:y,DOTS_SLASH:_,NO_DOT:S,NO_DOT_SLASH:b,NO_DOTS_SLASH:F,QMARK:I,QMARK_NO_DOT:U,STAR:P,START_ANCHOR:M}=f,E=k=>`(${a}(?:(?!${M}${k.dot?_:p}).)*?)`,R=r.dot?"":S,O=r.dot?I:U,W=r.bash===!0?E(r):P;r.capture&&(W=`(${W})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let m={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=he.removePrefix(e,m),o=e.length;let A=[],T=[],D=[],h=i,v,j=()=>m.index===o-1,$=m.peek=(k=1)=>e[m.index+k],L=m.advance=()=>e[++m.index]||"",G=()=>e.slice(m.index+1),H=(k="",z=0)=>{m.consumed+=k,m.index+=z},re=k=>{m.output+=k.output!=null?k.output:k.value,H(k.value)},Z=()=>{let k=1;for(;$()==="!"&&($(2)!=="("||$(3)==="?");)L(),m.start++,k++;return k%2===0?!1:(m.negated=!0,m.start++,!0)},Ie=k=>{m[k]++,D.push(k)},ce=k=>{m[k]--,D.pop()},V=k=>{if(h.type==="globstar"){let z=m.braces>0&&(k.type==="comma"||k.type==="brace"),w=k.extglob===!0||A.length&&(k.type==="pipe"||k.type==="paren");k.type!=="slash"&&k.type!=="paren"&&!z&&!w&&(m.output=m.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=W,m.output+=h.output)}if(A.length&&k.type!=="paren"&&(A[A.length-1].inner+=k.value),(k.value||k.output)&&re(k),h&&h.type==="text"&&k.type==="text"){h.value+=k.value,h.output=(h.output||"")+k.value;return}k.prev=h,s.push(k),h=k},de=(k,z)=>{let w={...u[z],conditions:1,inner:""};w.prev=h,w.parens=m.parens,w.output=m.output;let q=(r.capture?"(":"")+w.open;Ie("parens"),V({type:k,value:z,output:m.output?"":y}),V({type:"paren",extglob:!0,value:L(),output:q}),A.push(w)},ct=k=>{let z=k.close+(r.capture?")":""),w;if(k.type==="negate"){let q=W;if(k.inner&&k.inner.length>1&&k.inner.includes("/")&&(q=E(r)),(q!==W||j()||/^\)+$/.test(G()))&&(z=k.close=`)$))${q}`),k.inner.includes("*")&&(w=G())&&/^\.[^\\/.]+$/.test(w)){let X=Cn(w,{...t,fastpaths:!1}).output;z=k.close=`)${X})${q})`}k.prev.type==="bos"&&(m.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:v,output:z}),ce("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let k=!1,z=e.replace(hd,(w,q,X,pe,ne,nn)=>pe==="\\"?(k=!0,w):pe==="?"?q?q+pe+(ne?I.repeat(ne.length):""):nn===0?O+(ne?I.repeat(ne.length):""):I.repeat(X.length):pe==="."?p.repeat(X.length):pe==="*"?q?q+pe+(ne?W:""):W:q?w:`\\${w}`);return k===!0&&(r.unescape===!0?z=z.replace(/\\/g,""):z=z.replace(/\\+/g,w=>w.length%2===0?"\\\\":w?"\\":"")),z===e&&r.contains===!0?(m.output=e,m):(m.output=he.wrapOutput(z,m,t),m)}for(;!j();){if(v=L(),v==="\0")continue;if(v==="\\"){let w=$();if(w==="/"&&r.bash!==!0||w==="."||w===";")continue;if(!w){v+="\\",V({type:"text",value:v});continue}let q=/^\\+/.exec(G()),X=0;if(q&&q[0].length>2&&(X=q[0].length,m.index+=X,X%2!==0&&(v+="\\")),r.unescape===!0?v=L():v+=L(),m.brackets===0){V({type:"text",value:v});continue}}if(m.brackets>0&&(v!=="]"||h.value==="["||h.value==="[^")){if(r.posix!==!1&&v===":"){let w=h.value.slice(1);if(w.includes("[")&&(h.posix=!0,w.includes(":"))){let q=h.value.lastIndexOf("["),X=h.value.slice(0,q),pe=h.value.slice(q+2),ne=md[pe];if(ne){h.value=X+ne,m.backtrack=!0,L(),!i.output&&s.indexOf(h)===1&&(i.output=y);continue}}}(v==="["&&$()!==":"||v==="-"&&$()==="]")&&(v=`\\${v}`),v==="]"&&(h.value==="["||h.value==="[^")&&(v=`\\${v}`),r.posix===!0&&v==="!"&&h.value==="["&&(v="^"),h.value+=v,re({value:v});continue}if(m.quotes===1&&v!=='"'){v=he.escapeRegex(v),h.value+=v,re({value:v});continue}if(v==='"'){m.quotes=m.quotes===1?0:1,r.keepQuotes===!0&&V({type:"text",value:v});continue}if(v==="("){Ie("parens"),V({type:"paren",value:v});continue}if(v===")"){if(m.parens===0&&r.strictBrackets===!0)throw new SyntaxError(pt("opening","("));let w=A[A.length-1];if(w&&m.parens===w.parens+1){ct(A.pop());continue}V({type:"paren",value:v,output:m.parens?")":"\\)"}),ce("parens");continue}if(v==="["){if(r.nobracket===!0||!G().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(pt("closing","]"));v=`\\${v}`}else Ie("brackets");V({type:"bracket",value:v});continue}if(v==="]"){if(r.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){V({type:"text",value:v,output:`\\${v}`});continue}if(m.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(pt("opening","["));V({type:"text",value:v,output:`\\${v}`});continue}ce("brackets");let w=h.value.slice(1);if(h.posix!==!0&&w[0]==="^"&&!w.includes("/")&&(v=`/${v}`),h.value+=v,re({value:v}),r.literalBrackets===!1||he.hasRegexChars(w))continue;let q=he.escapeRegex(h.value);if(m.output=m.output.slice(0,-h.value.length),r.literalBrackets===!0){m.output+=q,h.value=q;continue}h.value=`(${a}${q}|${h.value})`,m.output+=h.value;continue}if(v==="{"&&r.nobrace!==!0){Ie("braces");let w={type:"brace",value:v,output:"(",outputIndex:m.output.length,tokensIndex:m.tokens.length};T.push(w),V(w);continue}if(v==="}"){let w=T[T.length-1];if(r.nobrace===!0||!w){V({type:"text",value:v,output:v});continue}let q=")";if(w.dots===!0){let X=s.slice(),pe=[];for(let ne=X.length-1;ne>=0&&(s.pop(),X[ne].type!=="brace");ne--)X[ne].type!=="dots"&&pe.unshift(X[ne].value);q=yd(pe,r),m.backtrack=!0}if(w.comma!==!0&&w.dots!==!0){let X=m.output.slice(0,w.outputIndex),pe=m.tokens.slice(w.tokensIndex);w.value=w.output="\\{",v=q="\\}",m.output=X;for(let ne of pe)m.output+=ne.output||ne.value}V({type:"brace",value:v,output:q}),ce("braces"),T.pop();continue}if(v==="|"){A.length>0&&A[A.length-1].conditions++,V({type:"text",value:v});continue}if(v===","){let w=v,q=T[T.length-1];q&&D[D.length-1]==="braces"&&(q.comma=!0,w="|"),V({type:"comma",value:v,output:w});continue}if(v==="/"){if(h.type==="dot"&&m.index===m.start+1){m.start=m.index+1,m.consumed="",m.output="",s.pop(),h=i;continue}V({type:"slash",value:v,output:x});continue}if(v==="."){if(m.braces>0&&h.type==="dot"){h.value==="."&&(h.output=p);let w=T[T.length-1];h.type="dots",h.output+=v,h.value+=v,w.dots=!0;continue}if(m.braces+m.parens===0&&h.type!=="bos"&&h.type!=="slash"){V({type:"text",value:v,output:p});continue}V({type:"dot",value:v,output:p});continue}if(v==="?"){if(!(h&&h.value==="(")&&r.noextglob!==!0&&$()==="("&&$(2)!=="?"){de("qmark",v);continue}if(h&&h.type==="paren"){let q=$(),X=v;if(q==="<"&&!he.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(q)||q==="<"&&!/<([!=]|\w+>)/.test(G()))&&(X=`\\${v}`),V({type:"text",value:v,output:X});continue}if(r.dot!==!0&&(h.type==="slash"||h.type==="bos")){V({type:"qmark",value:v,output:U});continue}V({type:"qmark",value:v,output:I});continue}if(v==="!"){if(r.noextglob!==!0&&$()==="("&&($(2)!=="?"||!/[!=<:]/.test($(3)))){de("negate",v);continue}if(r.nonegate!==!0&&m.index===0){Z();continue}}if(v==="+"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){de("plus",v);continue}if(h&&h.value==="("||r.regex===!1){V({type:"plus",value:v,output:d});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||m.parens>0){V({type:"plus",value:v});continue}V({type:"plus",value:d});continue}if(v==="@"){if(r.noextglob!==!0&&$()==="("&&$(2)!=="?"){V({type:"at",extglob:!0,value:v,output:""});continue}V({type:"text",value:v});continue}if(v!=="*"){(v==="$"||v==="^")&&(v=`\\${v}`);let w=gd.exec(G());w&&(v+=w[0],m.index+=w[0].length),V({type:"text",value:v});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=v,h.output=W,m.backtrack=!0,m.globstar=!0,H(v);continue}let k=G();if(r.noextglob!==!0&&/^\([^?]/.test(k)){de("star",v);continue}if(h.type==="star"){if(r.noglobstar===!0){H(v);continue}let w=h.prev,q=w.prev,X=w.type==="slash"||w.type==="bos",pe=q&&(q.type==="star"||q.type==="globstar");if(r.bash===!0&&(!X||k[0]&&k[0]!=="/")){V({type:"star",value:v,output:""});continue}let ne=m.braces>0&&(w.type==="comma"||w.type==="brace"),nn=A.length&&(w.type==="pipe"||w.type==="paren");if(!X&&w.type!=="paren"&&!ne&&!nn){V({type:"star",value:v,output:""});continue}for(;k.slice(0,3)==="/**";){let Xt=e[m.index+4];if(Xt&&Xt!=="/")break;k=k.slice(3),H("/**",3)}if(w.type==="bos"&&j()){h.type="globstar",h.value+=v,h.output=E(r),m.output=h.output,m.globstar=!0,H(v);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&!pe&&j()){m.output=m.output.slice(0,-(w.output+h.output).length),w.output=`(?:${w.output}`,h.type="globstar",h.output=E(r)+(r.strictSlashes?")":"|$)"),h.value+=v,m.globstar=!0,m.output+=w.output+h.output,H(v);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&k[0]==="/"){let Xt=k[1]!==void 0?"|$":"";m.output=m.output.slice(0,-(w.output+h.output).length),w.output=`(?:${w.output}`,h.type="globstar",h.output=`${E(r)}${x}|${x}${Xt})`,h.value+=v,m.output+=w.output+h.output,m.globstar=!0,H(v+L()),V({type:"slash",value:"/",output:""});continue}if(w.type==="bos"&&k[0]==="/"){h.type="globstar",h.value+=v,h.output=`(?:^|${x}|${E(r)}${x})`,m.output=h.output,m.globstar=!0,H(v+L()),V({type:"slash",value:"/",output:""});continue}m.output=m.output.slice(0,-h.output.length),h.type="globstar",h.output=E(r),h.value+=v,m.output+=h.output,m.globstar=!0,H(v);continue}let z={type:"star",value:v,output:W};if(r.bash===!0){z.output=".*?",(h.type==="bos"||h.type==="slash")&&(z.output=R+z.output),V(z);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&r.regex===!0){z.output=v,V(z);continue}(m.index===m.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(m.output+=b,h.output+=b):r.dot===!0?(m.output+=F,h.output+=F):(m.output+=R,h.output+=R),$()!=="*"&&(m.output+=y,h.output+=y)),V(z)}for(;m.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(pt("closing","]"));m.output=he.escapeLast(m.output,"["),ce("brackets")}for(;m.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(pt("closing",")"));m.output=he.escapeLast(m.output,"("),ce("parens")}for(;m.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(pt("closing","}"));m.output=he.escapeLast(m.output,"{"),ce("braces")}if(r.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&V({type:"maybe_slash",value:"",output:`${x}?`}),m.backtrack===!0){m.output="";for(let k of m.tokens)m.output+=k.output!=null?k.output:k.value,k.suffix&&(m.output+=k.suffix)}return m};Cn.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(or,r.maxLength):or,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=Hs[e]||e;let i=he.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:f,NO_DOT:u,NO_DOTS:p,NO_DOTS_SLASH:d,STAR:x,START_ANCHOR:y}=nr.globChars(i),_=r.dot?p:u,S=r.dot?d:u,b=r.capture?"":"?:",F={negated:!1,prefix:""},I=r.bash===!0?".*?":x;r.capture&&(I=`(${I})`);let U=R=>R.noglobstar===!0?I:`(${b}(?:(?!${y}${R.dot?f:s}).)*?)`,P=R=>{switch(R){case"*":return`${_}${l}${I}`;case".*":return`${s}${l}${I}`;case"*.*":return`${_}${I}${s}${l}${I}`;case"*/*":return`${_}${I}${a}${l}${S}${I}`;case"**":return _+U(r);case"**/*":return`(?:${_}${U(r)}${a})?${S}${l}${I}`;case"**/*.*":return`(?:${_}${U(r)}${a})?${S}${I}${s}${l}${I}`;case"**/.*":return`(?:${_}${U(r)}${a})?${s}${l}${I}`;default:{let O=/^(.*?)\.(\w+)$/.exec(R);if(!O)return;let W=P(O[1]);return W?W+s+O[2]:void 0}}},M=he.removePrefix(e,F),E=P(M);return E&&r.strictSlashes!==!0&&(E+=`${a}?`),E};js.exports=Cn});var Us=_chunkGXMNHGBPcjs.b.call(void 0, (_C,Bs)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var vd=_chunkGXMNHGBPcjs.a.call(void 0, "path"),_d=Vs(),bn=qs(),Sn=Pt(),xd=kt(),Cd=e=>e&&typeof e=="object"&&!Array.isArray(e),J=(e,t,r=!1)=>{if(Array.isArray(e)){let u=e.map(d=>J(d,t,r));return d=>{for(let x of u){let y=x(d);if(y)return y}return!1}}let n=Cd(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=Sn.isWindows(t),s=n?J.compileRe(e,t):J.makeRe(e,t,!1,!0),a=s.state;delete s.state;let l=()=>!1;if(o.ignore){let u={...t,ignore:null,onMatch:null,onResult:null};l=J(o.ignore,u,r)}let f=(u,p=!1)=>{let{isMatch:d,match:x,output:y}=J.test(u,s,t,{glob:e,posix:i}),_={glob:e,state:a,regex:s,posix:i,input:u,output:y,match:x,isMatch:d};return typeof o.onResult=="function"&&o.onResult(_),d===!1?(_.isMatch=!1,p?_:!1):l(u)?(typeof o.onIgnore=="function"&&o.onIgnore(_),_.isMatch=!1,p?_:!1):(typeof o.onMatch=="function"&&o.onMatch(_),p?_:!0)};return r&&(f.state=a),f};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?Sn.toPosixSlashes:null),a=e===n,l=a&&s?s(e):e;return a===!1&&(l=s?s(e):e,a=l===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=J.matchBase(e,t,r,o):a=t.exec(l)),{isMatch:!!a,match:a,output:l}};J.matchBase=(e,t,r,n=Sn.isWindows(r))=>(t instanceof RegExp?t:J.makeRe(t,r)).test(vd.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)):bn(e,{...t,fastpaths:!1});J.scan=(e,t)=>_d(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 l=J.toRegex(a,t);return n===!0&&(l.state=e),l};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=bn.fastpaths(e,t)),o.output||(o=bn(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=xd;Bs.exports=J});var Ws=_chunkGXMNHGBPcjs.b.call(void 0, (CC,Gs)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Gs.exports=Us()});var Qs=_chunkGXMNHGBPcjs.b.call(void 0, (SC,Xs)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Ks=_chunkGXMNHGBPcjs.a.call(void 0, "util"),Ys=Es(),Ae=Ws(),Rn=Pt(),zs=e=>e===""||e==="./",K=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,o=new Set,i=new Set,s=0,a=u=>{i.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<t.length;u++){let p=Ae(String(t[u]),{...r,onResult:a},!0),d=p.state.negated||p.state.negatedExtglob;d&&s++;for(let x of e){let y=p(x,!0);(d?!y.isMatch:y.isMatch)&&(d?n.add(y.output):(n.delete(y.output),o.add(y.output)))}}let f=(s===t.length?[...i]:[...o]).filter(u=>!n.has(u));if(r&&f.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(u=>u.replace(/\\/g,"")):t}return f};K.match=K;K.matcher=(e,t)=>Ae(e,t);K.isMatch=(e,t,r)=>Ae(t,r)(e);K.any=K.isMatch;K.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,o=[],i=a=>{r.onResult&&r.onResult(a),o.push(a.output)},s=new Set(K(e,t,{...r,onResult:i}));for(let a of o)s.has(a)||n.add(a);return[...n]};K.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Ks.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>K.contains(e,n,r));if(typeof t=="string"){if(zs(e)||zs(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return K.isMatch(e,t,{...r,contains:!0})};K.matchKeys=(e,t,r)=>{if(!Rn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=K(Object.keys(e),t,r),o={};for(let i of n)o[i]=e[i];return o};K.some=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=Ae(String(o),r);if(n.some(s=>i(s)))return!0}return!1};K.every=(e,t,r)=>{let n=[].concat(e);for(let o of[].concat(t)){let i=Ae(String(o),r);if(!n.every(s=>i(s)))return!1}return!0};K.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Ks.inspect(e)}"`);return[].concat(t).every(n=>Ae(n,r)(e))};K.capture=(e,t,r)=>{let n=Rn.isWindows(r),i=Ae.makeRe(String(e),{...r,capture:!0}).exec(n?Rn.toPosixSlashes(t):t);if(i)return i.slice(1).map(s=>s===void 0?"":s)};K.makeRe=(...e)=>Ae.makeRe(...e);K.scan=(...e)=>Ae.scan(...e);K.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let o of Ys(String(n),t))r.push(Ae.parse(o,t));return r};K.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:Ys(e,t)};K.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return K.braces(e,{...t,expand:!0})};Xs.exports=K});var ia=_chunkGXMNHGBPcjs.b.call(void 0, N=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(N,"__esModule",{value:!0});N.removeDuplicateSlashes=N.matchAny=N.convertPatternsToRe=N.makeRe=N.getPatternParts=N.expandBraceExpansion=N.expandPatternsWithBraceExpansion=N.isAffectDepthOfReadingPattern=N.endsWithSlashGlobStar=N.hasGlobStar=N.getBaseDirectory=N.isPatternRelatedToParentDirectory=N.getPatternsOutsideCurrentDirectory=N.getPatternsInsideCurrentDirectory=N.getPositivePatterns=N.getNegativePatterns=N.isPositivePattern=N.isNegativePattern=N.convertToNegativePattern=N.convertToPositivePattern=N.isDynamicPattern=N.isStaticPattern=void 0;var bd=_chunkGXMNHGBPcjs.a.call(void 0, "path"),Sd=Bi(),wn=Qs(),Zs="**",Rd="\\",wd=/[*?]|^!/,Ed=/\[[^[]*]/,Ad=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,kd=/[!*+?@]\([^(]*\)/,Pd=/,|\.\./,Od=/(?!^)\/{2,}/g;function Js(e,t={}){return!ea(e,t)}N.isStaticPattern=Js;function ea(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Rd)||wd.test(e)||Ed.test(e)||Ad.test(e)||t.extglob!==!1&&kd.test(e)||t.braceExpansion!==!1&&Td(e))}N.isDynamicPattern=ea;function Td(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 Pd.test(n)}function $d(e){return ir(e)?e.slice(1):e}N.convertToPositivePattern=$d;function Fd(e){return"!"+e}N.convertToNegativePattern=Fd;function ir(e){return e.startsWith("!")&&e[1]!=="("}N.isNegativePattern=ir;function ta(e){return!ir(e)}N.isPositivePattern=ta;function Id(e){return e.filter(ir)}N.getNegativePatterns=Id;function Ld(e){return e.filter(ta)}N.getPositivePatterns=Ld;function Nd(e){return e.filter(t=>!En(t))}N.getPatternsInsideCurrentDirectory=Nd;function Md(e){return e.filter(En)}N.getPatternsOutsideCurrentDirectory=Md;function En(e){return e.startsWith("..")||e.startsWith("./..")}N.isPatternRelatedToParentDirectory=En;function Dd(e){return Sd(e,{flipBackslashes:!1})}N.getBaseDirectory=Dd;function Vd(e){return e.includes(Zs)}N.hasGlobStar=Vd;function ra(e){return e.endsWith("/"+Zs)}N.endsWithSlashGlobStar=ra;function Hd(e){let t=bd.basename(e);return ra(e)||Js(t)}N.isAffectDepthOfReadingPattern=Hd;function jd(e){return e.reduce((t,r)=>t.concat(na(r)),[])}N.expandPatternsWithBraceExpansion=jd;function na(e){let t=wn.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}N.expandBraceExpansion=na;function qd(e,t){let{parts:r}=wn.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}N.getPatternParts=qd;function oa(e,t){return wn.makeRe(e,t)}N.makeRe=oa;function Bd(e,t){return e.map(r=>oa(r,t))}N.convertPatternsToRe=Bd;function Ud(e,t){return t.some(r=>r.test(e))}N.matchAny=Ud;function Gd(e){return e.replace(Od,"/")}N.removeDuplicateSlashes=Gd});var la=_chunkGXMNHGBPcjs.b.call(void 0, (AC,ca)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Wd=_chunkGXMNHGBPcjs.a.call(void 0, "stream"),sa=Wd.PassThrough,zd=Array.prototype.slice;ca.exports=Kd;function Kd(){let e=[],t=zd.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=sa(n);function a(){for(let u=0,p=arguments.length;u<p;u++)e.push(aa(arguments[u],n));return l(),this}function l(){if(r)return;r=!0;let u=e.shift();if(!u){process.nextTick(f);return}Array.isArray(u)||(u=[u]);let p=u.length+1;function d(){--p>0||(r=!1,l())}function x(y){function _(){y.removeListener("merge2UnpipeEnd",_),y.removeListener("end",_),i&&y.removeListener("error",S),d()}function S(b){s.emit("error",b)}if(y._readableState.endEmitted)return d();y.on("merge2UnpipeEnd",_),y.on("end",_),i&&y.on("error",S),y.pipe(s,{end:!1}),y.resume()}for(let y=0;y<u.length;y++)x(u[y]);d()}function f(){r=!1,s.emit("queueDrain"),o&&s.end()}return s.setMaxListeners(0),s.add=a,s.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),s}function aa(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=aa(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(sa(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var fa=_chunkGXMNHGBPcjs.b.call(void 0, sr=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(sr,"__esModule",{value:!0});sr.merge=void 0;var Yd=la();function Xd(e){let t=Yd(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>ua(e)),t.once("end",()=>ua(e)),t}sr.merge=Xd;function ua(e){e.forEach(t=>t.emit("close"))}});var pa=_chunkGXMNHGBPcjs.b.call(void 0, dt=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(dt,"__esModule",{value:!0});dt.isEmpty=dt.isString=void 0;function Qd(e){return typeof e=="string"}dt.isString=Qd;function Zd(e){return e===""}dt.isEmpty=Zd});var Me=_chunkGXMNHGBPcjs.b.call(void 0, le=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(le,"__esModule",{value:!0});le.string=le.stream=le.pattern=le.path=le.fs=le.errno=le.array=void 0;var Jd=Oi();le.array=Jd;var em=Ti();le.errno=em;var tm=$i();le.fs=tm;var rm=Ni();le.path=rm;var nm=ia();le.pattern=nm;var om=fa();le.stream=om;var im=pa();le.string=im});var ha=_chunkGXMNHGBPcjs.b.call(void 0, ue=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ue,"__esModule",{value:!0});ue.convertPatternGroupToTask=ue.convertPatternGroupsToTasks=ue.groupPatternsByBaseDirectory=ue.getNegativePatternsAsPositive=ue.getPositivePatterns=ue.convertPatternsToTasks=ue.generate=void 0;var Se=Me();function sm(e,t){let r=da(e,t),n=da(t.ignore,t),o=ma(r),i=ga(r,n),s=o.filter(u=>Se.pattern.isStaticPattern(u,t)),a=o.filter(u=>Se.pattern.isDynamicPattern(u,t)),l=An(s,i,!1),f=An(a,i,!0);return l.concat(f)}ue.generate=sm;function da(e,t){let r=e;return t.braceExpansion&&(r=Se.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>Se.pattern.removeDuplicateSlashes(n))}function An(e,t,r){let n=[],o=Se.pattern.getPatternsOutsideCurrentDirectory(e),i=Se.pattern.getPatternsInsideCurrentDirectory(e),s=kn(o),a=kn(i);return n.push(...Pn(s,t,r)),"."in a?n.push(On(".",i,t,r)):n.push(...Pn(a,t,r)),n}ue.convertPatternsToTasks=An;function ma(e){return Se.pattern.getPositivePatterns(e)}ue.getPositivePatterns=ma;function ga(e,t){return Se.pattern.getNegativePatterns(e).concat(t).map(Se.pattern.convertToPositivePattern)}ue.getNegativePatternsAsPositive=ga;function kn(e){let t={};return e.reduce((r,n)=>{let o=Se.pattern.getBaseDirectory(n);return o in r?r[o].push(n):r[o]=[n],r},t)}ue.groupPatternsByBaseDirectory=kn;function Pn(e,t,r){return Object.keys(e).map(n=>On(n,e[n],t,r))}ue.convertPatternGroupsToTasks=Pn;function On(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Se.pattern.convertToNegativePattern))}}ue.convertPatternGroupToTask=On});var va=_chunkGXMNHGBPcjs.b.call(void 0, ar=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ar,"__esModule",{value:!0});ar.read=void 0;function am(e,t,r){t.fs.lstat(e,(n,o)=>{if(n!==null){ya(r,n);return}if(!o.isSymbolicLink()||!t.followSymbolicLink){Tn(r,o);return}t.fs.stat(e,(i,s)=>{if(i!==null){if(t.throwErrorOnBrokenSymbolicLink){ya(r,i);return}Tn(r,o);return}t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),Tn(r,s)})})}ar.read=am;function ya(e,t){e(t)}function Tn(e,t){e(null,t)}});var _a=_chunkGXMNHGBPcjs.b.call(void 0, cr=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(cr,"__esModule",{value:!0});cr.read=void 0;function cm(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}}cr.read=cm});var xa=_chunkGXMNHGBPcjs.b.call(void 0, He=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(He,"__esModule",{value:!0});He.createFileSystemAdapter=He.FILE_SYSTEM_ADAPTER=void 0;var lr=_chunkGXMNHGBPcjs.a.call(void 0, "fs");He.FILE_SYSTEM_ADAPTER={lstat:lr.lstat,stat:lr.stat,lstatSync:lr.lstatSync,statSync:lr.statSync};function lm(e){return e===void 0?He.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},He.FILE_SYSTEM_ADAPTER),e)}He.createFileSystemAdapter=lm});var Ca=_chunkGXMNHGBPcjs.b.call(void 0, Fn=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Fn,"__esModule",{value:!0});var um=xa(),$n=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=um.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return _nullishCoalesce(t, () => (r))}};Fn.default=$n});var Je=_chunkGXMNHGBPcjs.b.call(void 0, je=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(je,"__esModule",{value:!0});je.statSync=je.stat=je.Settings=void 0;var ba=va(),fm=_a(),In=Ca();je.Settings=In.default;function pm(e,t,r){if(typeof t=="function"){ba.read(e,Ln(),t);return}ba.read(e,Ln(t),r)}je.stat=pm;function dm(e,t){let r=Ln(t);return fm.read(e,r)}je.statSync=dm;function Ln(e={}){return e instanceof In.default?e:new In.default(e)}});var wa=_chunkGXMNHGBPcjs.b.call(void 0, (zC,Ra)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Sa;Ra.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Sa||(Sa=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Aa=_chunkGXMNHGBPcjs.b.call(void 0, (YC,Ea)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Ea.exports=gm;var mm=wa();function gm(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(l){function f(){t&&t(l,r),t=null}i?mm(f):f()}function a(l,f,u){r[l]=u,(--n===0||f)&&s(f)}n?o?o.forEach(function(l){e[l](function(f,u){a(l,f,u)})}):e.forEach(function(l,f){l(function(u,p){a(f,u,p)})}):s(null),i=!1}});var Nn=_chunkGXMNHGBPcjs.b.call(void 0, fr=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(fr,"__esModule",{value:!0});fr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var ur=process.versions.node.split(".");if(ur[0]===void 0||ur[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var ka=Number.parseInt(ur[0],10),hm=Number.parseInt(ur[1],10),Pa=10,ym=10,vm=ka>Pa,_m=ka===Pa&&hm>=ym;fr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=vm||_m});var Oa=_chunkGXMNHGBPcjs.b.call(void 0, pr=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(pr,"__esModule",{value:!0});pr.createDirentFromStats=void 0;var Mn=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 xm(e,t){return new Mn(e,t)}pr.createDirentFromStats=xm});var Dn=_chunkGXMNHGBPcjs.b.call(void 0, dr=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(dr,"__esModule",{value:!0});dr.fs=void 0;var Cm=Oa();dr.fs=Cm});var Vn=_chunkGXMNHGBPcjs.b.call(void 0, mr=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(mr,"__esModule",{value:!0});mr.joinPathSegments=void 0;function bm(e,t,r){return e.endsWith(r)?e+t:e+r+t}mr.joinPathSegments=bm});var Na=_chunkGXMNHGBPcjs.b.call(void 0, qe=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(qe,"__esModule",{value:!0});qe.readdir=qe.readdirWithFileTypes=qe.read=void 0;var Sm=Je(),Ta=Aa(),Rm=Nn(),$a=Dn(),Fa=Vn();function wm(e,t,r){if(!t.stats&&Rm.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ia(e,t,r);return}La(e,t,r)}qe.read=wm;function Ia(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,o)=>{if(n!==null){gr(r,n);return}let i=o.map(a=>({dirent:a,name:a.name,path:Fa.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Hn(r,i);return}let s=i.map(a=>Em(a,t));Ta(s,(a,l)=>{if(a!==null){gr(r,a);return}Hn(r,l)})})}qe.readdirWithFileTypes=Ia;function Em(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=$a.fs.createDirentFromStats(e.name,o),r(null,e)})}}function La(e,t,r){t.fs.readdir(e,(n,o)=>{if(n!==null){gr(r,n);return}let i=o.map(s=>{let a=Fa.joinPathSegments(e,s,t.pathSegmentSeparator);return l=>{Sm.stat(a,t.fsStatSettings,(f,u)=>{if(f!==null){l(f);return}let p={name:s,path:a,dirent:$a.fs.createDirentFromStats(s,u)};t.stats&&(p.stats=u),l(null,p)})}});Ta(i,(s,a)=>{if(s!==null){gr(r,s);return}Hn(r,a)})})}qe.readdir=La;function gr(e,t){e(t)}function Hn(e,t){e(null,t)}});var ja=_chunkGXMNHGBPcjs.b.call(void 0, Be=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Be,"__esModule",{value:!0});Be.readdir=Be.readdirWithFileTypes=Be.read=void 0;var Am=Je(),km=Nn(),Ma=Dn(),Da=Vn();function Pm(e,t){return!t.stats&&km.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Va(e,t):Ha(e,t)}Be.read=Pm;function Va(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let o={dirent:n,name:n.name,path:Da.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(o.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let i=t.fs.statSync(o.path);o.dirent=Ma.fs.createDirentFromStats(o.name,i)}catch(i){if(t.throwErrorOnBrokenSymbolicLink)throw i}return o})}Be.readdirWithFileTypes=Va;function Ha(e,t){return t.fs.readdirSync(e).map(n=>{let o=Da.joinPathSegments(e,n,t.pathSegmentSeparator),i=Am.statSync(o,t.fsStatSettings),s={name:n,path:o,dirent:Ma.fs.createDirentFromStats(n,i)};return t.stats&&(s.stats=i),s})}Be.readdir=Ha});var qa=_chunkGXMNHGBPcjs.b.call(void 0, Ue=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Ue,"__esModule",{value:!0});Ue.createFileSystemAdapter=Ue.FILE_SYSTEM_ADAPTER=void 0;var mt=_chunkGXMNHGBPcjs.a.call(void 0, "fs");Ue.FILE_SYSTEM_ADAPTER={lstat:mt.lstat,stat:mt.stat,lstatSync:mt.lstatSync,statSync:mt.statSync,readdir:mt.readdir,readdirSync:mt.readdirSync};function Om(e){return e===void 0?Ue.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ue.FILE_SYSTEM_ADAPTER),e)}Ue.createFileSystemAdapter=Om});var Ba=_chunkGXMNHGBPcjs.b.call(void 0, qn=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(qn,"__esModule",{value:!0});var Tm=_chunkGXMNHGBPcjs.a.call(void 0, "path"),$m=Je(),Fm=qa(),jn=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Fm.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Tm.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new $m.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return _nullishCoalesce(t, () => (r))}};qn.default=jn});var hr=_chunkGXMNHGBPcjs.b.call(void 0, Ge=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Ge,"__esModule",{value:!0});Ge.Settings=Ge.scandirSync=Ge.scandir=void 0;var Ua=Na(),Im=ja(),Bn=Ba();Ge.Settings=Bn.default;function Lm(e,t,r){if(typeof t=="function"){Ua.read(e,Un(),t);return}Ua.read(e,Un(t),r)}Ge.scandir=Lm;function Nm(e,t){let r=Un(t);return Im.read(e,r)}Ge.scandirSync=Nm;function Un(e={}){return e instanceof Bn.default?e:new Bn.default(e)}});var Wa=_chunkGXMNHGBPcjs.b.call(void 0, (gb,Ga)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );function Mm(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}}Ga.exports=Mm});var Ka=_chunkGXMNHGBPcjs.b.call(void 0, (yb,Gn)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Dm=Wa();function za(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=Dm(Vm),o=null,i=null,s=0,a=null,l={push:_,drain:xe,saturated:xe,pause:u,paused:!1,concurrency:r,running:f,resume:x,idle:y,length:p,getQueue:d,unshift:S,empty:xe,kill:F,killAndDrain:I,error:U};return l;function f(){return s}function u(){l.paused=!0}function p(){for(var P=o,M=0;P;)P=P.next,M++;return M}function d(){for(var P=o,M=[];P;)M.push(P.value),P=P.next;return M}function x(){if(l.paused){l.paused=!1;for(var P=0;P<l.concurrency;P++)s++,b()}}function y(){return s===0&&l.length()===0}function _(P,M){var E=n.get();E.context=e,E.release=b,E.value=P,E.callback=M||xe,E.errorHandler=a,s===l.concurrency||l.paused?i?(i.next=E,i=E):(o=E,i=E,l.saturated()):(s++,t.call(e,E.value,E.worked))}function S(P,M){var E=n.get();E.context=e,E.release=b,E.value=P,E.callback=M||xe,s===l.concurrency||l.paused?o?(E.next=o,o=E):(o=E,i=E,l.saturated()):(s++,t.call(e,E.value,E.worked))}function b(P){P&&n.release(P);var M=o;M?l.paused?s--:(i===o&&(i=null),o=M.next,M.next=null,t.call(e,M.value,M.worked),i===null&&l.empty()):--s===0&&l.drain()}function F(){o=null,i=null,l.drain=xe}function I(){o=null,i=null,l.drain(),l.drain=xe}function U(P){a=P}}function xe(){}function Vm(){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 Hm(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(u,p){t.call(this,u).then(function(d){p(null,d)},p)}var o=za(e,n,r),i=o.push,s=o.unshift;return o.push=a,o.unshift=l,o.drained=f,o;function a(u){var p=new Promise(function(d,x){i(u,function(y,_){if(y){x(y);return}d(_)})});return p.catch(xe),p}function l(u){var p=new Promise(function(d,x){s(u,function(y,_){if(y){x(y);return}d(_)})});return p.catch(xe),p}function f(){if(o.idle())return new Promise(function(d){d()});var u=o.drain,p=new Promise(function(d){o.drain=function(){u(),d()}});return p}}Gn.exports=za;Gn.exports.promise=Hm});var yr=_chunkGXMNHGBPcjs.b.call(void 0, ke=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ke,"__esModule",{value:!0});ke.joinPathSegments=ke.replacePathSegmentSeparator=ke.isAppliedFilter=ke.isFatalError=void 0;function jm(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}ke.isFatalError=jm;function qm(e,t){return e===null||e(t)}ke.isAppliedFilter=qm;function Bm(e,t){return e.split(/[/\\]/).join(t)}ke.replacePathSegmentSeparator=Bm;function Um(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}ke.joinPathSegments=Um});var Kn=_chunkGXMNHGBPcjs.b.call(void 0, zn=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(zn,"__esModule",{value:!0});var Gm=yr(),Wn=class{constructor(t,r){this._root=t,this._settings=r,this._root=Gm.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};zn.default=Wn});var Qn=_chunkGXMNHGBPcjs.b.call(void 0, Xn=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Xn,"__esModule",{value:!0});var Wm=_chunkGXMNHGBPcjs.a.call(void 0, "events"),zm=hr(),Km=Ka(),vr=yr(),Ym=Kn(),Yn=class extends Ym.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=zm.scandir,this._emitter=new Wm.EventEmitter,this._queue=Km(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||!vr.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=vr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),vr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&vr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Xn.default=Yn});var Ya=_chunkGXMNHGBPcjs.b.call(void 0, Jn=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Jn,"__esModule",{value:!0});var Xm=Qn(),Zn=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Xm.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Qm(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Zm(t,this._storage)}),this._reader.read()}};Jn.default=Zn;function Qm(e,t){e(t)}function Zm(e,t){e(null,t)}});var Xa=_chunkGXMNHGBPcjs.b.call(void 0, to=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(to,"__esModule",{value:!0});var Jm=_chunkGXMNHGBPcjs.a.call(void 0, "stream"),eg=Qn(),eo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new eg.default(this._root,this._settings),this._stream=new Jm.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}};to.default=eo});var Qa=_chunkGXMNHGBPcjs.b.call(void 0, no=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(no,"__esModule",{value:!0});var tg=hr(),_r=yr(),rg=Kn(),ro=class extends rg.default{constructor(){super(...arguments),this._scandir=tg.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(_r.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=_r.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),_r.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&_r.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};no.default=ro});var Za=_chunkGXMNHGBPcjs.b.call(void 0, io=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(io,"__esModule",{value:!0});var ng=Qa(),oo=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new ng.default(this._root,this._settings)}read(){return this._reader.read()}};io.default=oo});var Ja=_chunkGXMNHGBPcjs.b.call(void 0, ao=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ao,"__esModule",{value:!0});var og=_chunkGXMNHGBPcjs.a.call(void 0, "path"),ig=hr(),so=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,og.sep),this.fsScandirSettings=new ig.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 _nullishCoalesce(t, () => (r))}};ao.default=so});var Cr=_chunkGXMNHGBPcjs.b.call(void 0, Pe=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Pe,"__esModule",{value:!0});Pe.Settings=Pe.walkStream=Pe.walkSync=Pe.walk=void 0;var ec=Ya(),sg=Xa(),ag=Za(),co=Ja();Pe.Settings=co.default;function cg(e,t,r){if(typeof t=="function"){new ec.default(e,xr()).read(t);return}new ec.default(e,xr(t)).read(r)}Pe.walk=cg;function lg(e,t){let r=xr(t);return new ag.default(e,r).read()}Pe.walkSync=lg;function ug(e,t){let r=xr(t);return new sg.default(e,r).read()}Pe.walkStream=ug;function xr(e={}){return e instanceof co.default?e:new co.default(e)}});var br=_chunkGXMNHGBPcjs.b.call(void 0, uo=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(uo,"__esModule",{value:!0});var fg=_chunkGXMNHGBPcjs.a.call(void 0, "path"),pg=Je(),tc=Me(),lo=class{constructor(t){this._settings=t,this._fsStatSettings=new pg.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return fg.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:tc.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!tc.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};uo.default=lo});var mo=_chunkGXMNHGBPcjs.b.call(void 0, po=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(po,"__esModule",{value:!0});var dg=_chunkGXMNHGBPcjs.a.call(void 0, "stream"),mg=Je(),gg=Cr(),hg=br(),fo=class extends hg.default{constructor(){super(...arguments),this._walkStream=gg.walkStream,this._stat=mg.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),o=new dg.PassThrough({objectMode:!0});o._write=(i,s,a)=>this._getEntry(n[i],t[i],r).then(l=>{l!==null&&r.entryFilter(l)&&o.push(l),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))})}};po.default=fo});var rc=_chunkGXMNHGBPcjs.b.call(void 0, ho=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ho,"__esModule",{value:!0});var yg=Cr(),vg=br(),_g=mo(),go=class extends vg.default{constructor(){super(...arguments),this._walkAsync=yg.walk,this._readerStream=new _g.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))})}};ho.default=go});var nc=_chunkGXMNHGBPcjs.b.call(void 0, vo=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(vo,"__esModule",{value:!0});var Tt=Me(),yo=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 Tt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Tt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Tt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Tt.array.splitWhen(t,r=>r.dynamic&&Tt.pattern.hasGlobStar(r.pattern))}};vo.default=yo});var oc=_chunkGXMNHGBPcjs.b.call(void 0, xo=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(xo,"__esModule",{value:!0});var xg=nc(),_o=class extends xg.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((l,f)=>{let u=i.segments[f];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};xo.default=_o});var ic=_chunkGXMNHGBPcjs.b.call(void 0, bo=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(bo,"__esModule",{value:!0});var Sr=Me(),Cg=oc(),Co=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 Cg.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Sr.pattern.isAffectDepthOfReadingPattern);return Sr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,o){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=Sr.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!Sr.pattern.matchAny(t,r)}};bo.default=Co});var sc=_chunkGXMNHGBPcjs.b.call(void 0, Ro=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Ro,"__esModule",{value:!0});var et=Me(),So=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=et.pattern.convertPatternsToRe(t,this._micromatchOptions),o=et.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return i=>this._filter(i,n,o)}_filter(t,r,n){let o=et.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=et.path.makeAbsolute(this._settings.cwd,t);return et.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let o=et.pattern.matchAny(t,r);return!o&&n?et.pattern.matchAny(t+"/",r):o}};Ro.default=So});var ac=_chunkGXMNHGBPcjs.b.call(void 0, Eo=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Eo,"__esModule",{value:!0});var bg=Me(),wo=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return bg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Eo.default=wo});var lc=_chunkGXMNHGBPcjs.b.call(void 0, ko=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ko,"__esModule",{value:!0});var cc=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=cc.path.makeAbsolute(this._settings.cwd,r),r=cc.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};ko.default=Ao});var Rr=_chunkGXMNHGBPcjs.b.call(void 0, Oo=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Oo,"__esModule",{value:!0});var Sg=_chunkGXMNHGBPcjs.a.call(void 0, "path"),Rg=ic(),wg=sc(),Eg=ac(),Ag=lc(),Po=class{constructor(t){this._settings=t,this.errorFilter=new Eg.default(this._settings),this.entryFilter=new wg.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Rg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Ag.default(this._settings)}_getRootDirectory(t){return Sg.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}}};Oo.default=Po});var uc=_chunkGXMNHGBPcjs.b.call(void 0, $o=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty($o,"__esModule",{value:!0});var kg=rc(),Pg=Rr(),To=class extends Pg.default{constructor(){super(...arguments),this._reader=new kg.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(i=>n.transform(i))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};$o.default=To});var fc=_chunkGXMNHGBPcjs.b.call(void 0, Io=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Io,"__esModule",{value:!0});var Og=_chunkGXMNHGBPcjs.a.call(void 0, "stream"),Tg=mo(),$g=Rr(),Fo=class extends $g.default{constructor(){super(...arguments),this._reader=new Tg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),o=this.api(r,t,n),i=new Og.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)}};Io.default=Fo});var pc=_chunkGXMNHGBPcjs.b.call(void 0, No=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(No,"__esModule",{value:!0});var Fg=Je(),Ig=Cr(),Lg=br(),Lo=class extends Lg.default{constructor(){super(...arguments),this._walkSync=Ig.walkSync,this._statSync=Fg.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)}};No.default=Lo});var dc=_chunkGXMNHGBPcjs.b.call(void 0, Do=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(Do,"__esModule",{value:!0});var Ng=pc(),Mg=Rr(),Mo=class extends Mg.default{constructor(){super(...arguments),this._reader=new Ng.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)}};Do.default=Mo});var mc=_chunkGXMNHGBPcjs.b.call(void 0, ht=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Object.defineProperty(ht,"__esModule",{value:!0});ht.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var gt=_chunkGXMNHGBPcjs.a.call(void 0, "fs"),Dg=_chunkGXMNHGBPcjs.a.call(void 0, "os"),Vg=Math.max(Dg.cpus().length,1);ht.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:gt.lstat,lstatSync:gt.lstatSync,stat:gt.stat,statSync:gt.statSync,readdir:gt.readdir,readdirSync:gt.readdirSync};var Vo=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,Vg),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({},ht.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};ht.default=Vo});var wr=_chunkGXMNHGBPcjs.b.call(void 0, (dS,hc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var gc=ha(),Hg=uc(),jg=fc(),qg=dc(),Ho=mc(),Ce=Me();async function jo(e,t){Re(e);let r=qo(e,Hg.default,t),n=await Promise.all(r);return Ce.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(f,u){Re(f);let p=qo(f,qg.default,u);return Ce.array.flatten(p)}e.sync=t;function r(f,u){Re(f);let p=qo(f,jg.default,u);return Ce.stream.merge(p)}e.stream=r;function n(f,u){Re(f);let p=[].concat(f),d=new Ho.default(u);return gc.generate(p,d)}e.generateTasks=n;function o(f,u){Re(f);let p=new Ho.default(u);return Ce.pattern.isDynamicPattern(f,p)}e.isDynamicPattern=o;function i(f){return Re(f),Ce.path.escape(f)}e.escapePath=i;function s(f){return Re(f),Ce.path.convertPathToPattern(f)}e.convertPathToPattern=s;let a;(function(f){function u(d){return Re(d),Ce.path.escapePosixPath(d)}f.escapePath=u;function p(d){return Re(d),Ce.path.convertPosixPathToPattern(d)}f.convertPathToPattern=p})(a=e.posix||(e.posix={}));let l;(function(f){function u(d){return Re(d),Ce.path.escapeWindowsPath(d)}f.escapePath=u;function p(d){return Re(d),Ce.path.convertWindowsPathToPattern(d)}f.convertPathToPattern=p})(l=e.win32||(e.win32={}))})(jo||(jo={}));function qo(e,t,r){let n=[].concat(e),o=new Ho.default(r),i=gc.generate(n,o),s=new t(o);return i.map(s.read,s)}function Re(e){if(![].concat(e).every(n=>Ce.string.isString(n)&&!Ce.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}hc.exports=jo});var vc=_chunkGXMNHGBPcjs.b.call(void 0, (gS,yc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var yt=1e3,vt=yt*60,_t=vt*60,tt=_t*24,Bg=tt*7,Ug=tt*365.25;yc.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Gg(e);if(r==="number"&&isFinite(e))return t.long?zg(e):Wg(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Gg(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Ug;case"weeks":case"week":case"w":return r*Bg;case"days":case"day":case"d":return r*tt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*_t;case"minutes":case"minute":case"mins":case"min":case"m":return r*vt;case"seconds":case"second":case"secs":case"sec":case"s":return r*yt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Wg(e){var t=Math.abs(e);return t>=tt?Math.round(e/tt)+"d":t>=_t?Math.round(e/_t)+"h":t>=vt?Math.round(e/vt)+"m":t>=yt?Math.round(e/yt)+"s":e+"ms"}function zg(e){var t=Math.abs(e);return t>=tt?Er(e,t,tt,"day"):t>=_t?Er(e,t,_t,"hour"):t>=vt?Er(e,t,vt,"minute"):t>=yt?Er(e,t,yt,"second"):e+" ms"}function Er(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var Bo=_chunkGXMNHGBPcjs.b.call(void 0, (yS,_c)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );function Kg(e){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=o,r.enabled=s,r.humanize=vc(),r.destroy=f,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let p=0;for(let d=0;d<u.length;d++)p=(p<<5)-p+u.charCodeAt(d),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(u){let p,d=null,x,y;function _(...S){if(!_.enabled)return;let b=_,F=Number(new Date),I=F-(p||F);b.diff=I,b.prev=p,b.curr=F,p=F,S[0]=r.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let U=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(M,E)=>{if(M==="%%")return"%";U++;let R=r.formatters[E];if(typeof R=="function"){let O=S[U];M=R.call(b,O),S.splice(U,1),U--}return M}),r.formatArgs.call(b,S),(b.log||r.log).apply(b,S)}return _.namespace=u,_.useColors=r.useColors(),_.color=r.selectColor(u),_.extend=n,_.destroy=r.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(x!==r.namespaces&&(x=r.namespaces,y=r.enabled(u)),y),set:S=>{d=S}}),typeof r.init=="function"&&r.init(_),_}function n(u,p){let d=r(this.namespace+(typeof p>"u"?":":p)+u);return d.log=this.log,d}function o(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let p,d=(typeof u=="string"?u:"").split(/[\s,]+/),x=d.length;for(p=0;p<x;p++)d[p]&&(u=d[p].replace(/\*/g,".*?"),u[0]==="-"?r.skips.push(new RegExp("^"+u.slice(1)+"$")):r.names.push(new RegExp("^"+u+"$")))}function i(){let u=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),u}function s(u){if(u[u.length-1]==="*")return!0;let p,d;for(p=0,d=r.skips.length;p<d;p++)if(r.skips[p].test(u))return!1;for(p=0,d=r.names.length;p<d;p++)if(r.names[p].test(u))return!0;return!1}function a(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}_c.exports=Kg});var xc=_chunkGXMNHGBPcjs.b.call(void 0, (ye,Ar)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );ye.formatArgs=Xg;ye.save=Qg;ye.load=Zg;ye.useColors=Yg;ye.storage=Jg();ye.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ye.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Yg(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Xg(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Ar.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}ye.log=console.debug||console.log||(()=>{});function Qg(e){try{e?ye.storage.setItem("debug",e):ye.storage.removeItem("debug")}catch (e3){}}function Zg(){let e;try{e=ye.storage.getItem("debug")}catch (e4){}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Jg(){try{return localStorage}catch (e5){}}Ar.exports=Bo()(ye);var{formatters:eh}=Ar.exports;eh.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var bc=_chunkGXMNHGBPcjs.b.call(void 0, (xS,Cc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Cc.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var wc=_chunkGXMNHGBPcjs.b.call(void 0, (bS,Rc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var th=_chunkGXMNHGBPcjs.a.call(void 0, "os"),Sc=_chunkGXMNHGBPcjs.a.call(void 0, "tty"),be=bc(),{env:se}=process,kr;be("no-color")||be("no-colors")||be("color=false")||be("color=never")?kr=0:(be("color")||be("colors")||be("color=true")||be("color=always"))&&(kr=1);function rh(){if("FORCE_COLOR"in se)return se.FORCE_COLOR==="true"?1:se.FORCE_COLOR==="false"?0:se.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(se.FORCE_COLOR,10),3)}function nh(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function oh(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=rh();n!==void 0&&(kr=n);let o=r?kr:n;if(o===0)return 0;if(r){if(be("color=16m")||be("color=full")||be("color=truecolor"))return 3;if(be("color=256"))return 2}if(e&&!t&&o===void 0)return 0;let i=o||0;if(se.TERM==="dumb")return i;if(process.platform==="win32"){let s=th.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in se)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in se)||se.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in se)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(se.TEAMCITY_VERSION)?1:0;if(se.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in se){let s=Number.parseInt((se.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(se.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(se.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(se.TERM)||"COLORTERM"in se?1:i}function Uo(e,t={}){let r=oh(e,{streamIsTTY:e&&e.isTTY,...t});return nh(r)}Rc.exports={supportsColor:Uo,stdout:Uo({isTTY:Sc.isatty(1)}),stderr:Uo({isTTY:Sc.isatty(2)})}});var Ac=_chunkGXMNHGBPcjs.b.call(void 0, (ae,Or)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var ih=_chunkGXMNHGBPcjs.a.call(void 0, "tty"),Pr=_chunkGXMNHGBPcjs.a.call(void 0, "util");ae.init=ph;ae.log=lh;ae.formatArgs=ah;ae.save=uh;ae.load=fh;ae.useColors=sh;ae.destroy=Pr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ae.colors=[6,2,3,4,5,1];try{let e=wc();e&&(e.stderr||e).level>=2&&(ae.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch (e6){}ae.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(o,i)=>i.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function sh(){return"colors"in ae.inspectOpts?!!ae.inspectOpts.colors:ih.isatty(process.stderr.fd)}function ah(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),i=` ${o};1m${t} \x1B[0m`;e[0]=i+e[0].split(`
3
- `).join(`
4
- `+i),e.push(o+"m+"+Or.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=ch()+t+" "+e[0]}function ch(){return ae.inspectOpts.hideDate?"":new Date().toISOString()+" "}function lh(...e){return process.stderr.write(Pr.format(...e)+`
5
- `)}function uh(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function fh(){return process.env.DEBUG}function ph(e){e.inspectOpts={};let t=Object.keys(ae.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=ae.inspectOpts[t[r]]}Or.exports=Bo()(ae);var{formatters:Ec}=Or.exports;Ec.o=function(e){return this.inspectOpts.colors=this.useColors,Pr.inspect(e,this.inspectOpts).split(`
6
- `).map(t=>t.trim()).join(" ")};Ec.O=function(e){return this.inspectOpts.colors=this.useColors,Pr.inspect(e,this.inspectOpts)}});var Wo=_chunkGXMNHGBPcjs.b.call(void 0, (wS,Go)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Go.exports=xc():Go.exports=Ac()});var $c=_chunkGXMNHGBPcjs.b.call(void 0, (AS,Tc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var{hasOwnProperty:zo}=Object.prototype,Ko=(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
7
- `:`
8
- `,n=t.whitespace?" = ":"=",o=[],i=t.sort?Object.keys(e).sort():Object.keys(e),s=0;t.align&&(s=De(i.filter(f=>e[f]===null||Array.isArray(e[f])||typeof e[f]!="object").map(f=>Array.isArray(e[f])?`${f}[]`:f).concat([""]).reduce((f,u)=>De(f).length>=De(u).length?f:u)).length);let a="",l=t.bracketedArray?"[]":"";for(let f of i){let u=e[f];if(u&&Array.isArray(u))for(let p of u)a+=De(`${f}${l}`).padEnd(s," ")+n+De(p)+r;else u&&typeof u=="object"?o.push(f):a+=De(f).padEnd(s," ")+n+De(u)+r}t.section&&a.length&&(a="["+De(t.section)+"]"+(t.newline?r+r:r)+a);for(let f of o){let u=Pc(f,".").join("\\."),p=(t.section?t.section+".":"")+u,d=Ko(e[f],{...t,section:p});a.length&&d.length&&(a+=r),a+=d}return a};function Pc(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 kc=(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 f of s){if(!f||f.match(/^\s*[;#]/)||f.match(/^\s*$/))continue;let u=f.match(i);if(!u)continue;if(u[1]!==void 0){if(o=Tr(u[1]),o==="__proto__"){n=Object.create(null);continue}n=r[o]=r[o]||Object.create(null);continue}let p=Tr(u[2]),d;t.bracketedArray?d=p.length>2&&p.slice(-2)==="[]":(a[p]=(_optionalChain([a, 'optionalAccess', _2 => _2[p]])||0)+1,d=a[p]>1);let x=d?p.slice(0,-2):p;if(x==="__proto__")continue;let y=u[3]?Tr(u[4]):!0,_=y==="true"||y==="false"||y==="null"?JSON.parse(y):y;d&&(zo.call(n,x)?Array.isArray(n[x])||(n[x]=[n[x]]):n[x]=[]),Array.isArray(n[x])?n[x].push(_):n[x]=_}let l=[];for(let f of Object.keys(r)){if(!zo.call(r,f)||typeof r[f]!="object"||Array.isArray(r[f]))continue;let u=Pc(f,".");n=r;let p=u.pop(),d=p.replace(/\\\./g,".");for(let x of u)x!=="__proto__"&&((!zo.call(n,x)||typeof n[x]!="object")&&(n[x]=Object.create(null)),n=n[x]);n===r&&d===p||(n[d]=r[f],l.push(f))}for(let f of l)delete r[f];return r},Oc=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),De=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Oc(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),Tr=(e,t)=>{if(e=(e||"").trim(),Oc(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch (e7){}}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};Tc.exports={parse:kc,decode:kc,stringify:Ko,encode:Ko,safe:De,unsafe:Tr}});var Qo=_chunkGXMNHGBPcjs.b.call(void 0, (LS,Mc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var vh=_chunkGXMNHGBPcjs.a.call(void 0, "os");Mc.exports=vh.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 Zo=_chunkGXMNHGBPcjs.b.call(void 0, (MS,Dc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Dc.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 Vc=_chunkGXMNHGBPcjs.b.call(void 0, (VS,It)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var _h=process.platform==="win32",xh=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,Jo={};function Ch(e){return xh.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=Ch(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 bh=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,ei={};function Sh(e){return bh.exec(e).slice(1)}ei.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=Sh(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]}};_h?It.exports=Jo.parse:It.exports=ei.parse;It.exports.posix=ei.parse;It.exports.win32=Jo.parse});var ti=_chunkGXMNHGBPcjs.b.call(void 0, (jS,Bc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var qc=_chunkGXMNHGBPcjs.a.call(void 0, "path"),Hc=qc.parse||Vc(),jc=function(t,r){var n="/";/^([A-Za-z]:)/.test(t)?n="":/^\\\\/.test(t)&&(n="\\\\");for(var o=[t],i=Hc(t);i.dir!==o[o.length-1];)o.push(i.dir),i=Hc(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(l){return qc.resolve(n,a,l)}))},[])};Bc.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 jc(t,o)},r);var i=jc(t,o);return r&&r.paths?i.concat(r.paths):i}});var ri=_chunkGXMNHGBPcjs.b.call(void 0, (BS,Uc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );Uc.exports=function(e,t){return t||{}}});var zc=_chunkGXMNHGBPcjs.b.call(void 0, (GS,Wc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Rh="Function.prototype.bind called on incompatible ",wh=Object.prototype.toString,Eh=Math.max,Ah="[object Function]",Gc=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},kh=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},Ph=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};Wc.exports=function(t){var r=this;if(typeof r!="function"||wh.apply(r)!==Ah)throw new TypeError(Rh+r);for(var n=kh(arguments,1),o,i=function(){if(this instanceof o){var u=r.apply(this,Gc(n,arguments));return Object(u)===u?u:this}return r.apply(t,Gc(n,arguments))},s=Eh(0,r.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(o=Function("binder","return function ("+Ph(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var f=function(){};f.prototype=r.prototype,o.prototype=new f,f.prototype=null}return o}});var Yc=_chunkGXMNHGBPcjs.b.call(void 0, (zS,Kc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Oh=zc();Kc.exports=Function.prototype.bind||Oh});var Qc=_chunkGXMNHGBPcjs.b.call(void 0, (YS,Xc)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Th=Function.prototype.call,$h=Object.prototype.hasOwnProperty,Fh=Yc();Xc.exports=Fh.call(Th,$h)});var Zc=_chunkGXMNHGBPcjs.b.call(void 0, (QS,Ih)=>{Ih.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 Lt=_chunkGXMNHGBPcjs.b.call(void 0, (ZS,tl)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Lh=Qc();function Nh(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),l=parseInt(i[s]||0,10);if(a!==l)return o==="<"?a<l:o===">="?a>=l:!1}return o===">="}function Jc(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!Nh(e,r[n]))return!1;return!0}function Mh(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(Jc(r,t[n]))return!0;return!1}return Jc(r,t)}var el=Zc();tl.exports=function(t,r){return Lh(el,t)&&Mh(r,el[t])}});var ol=_chunkGXMNHGBPcjs.b.call(void 0, (eR,nl)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var rt=_chunkGXMNHGBPcjs.a.call(void 0, "fs"),Dh=Qo(),te=_chunkGXMNHGBPcjs.a.call(void 0, "path"),Vh=Zo(),Hh=ti(),jh=ri(),qh=Lt(),Bh=process.platform!=="win32"&&rt.realpath&&typeof rt.realpath.native=="function"?rt.realpath.native:rt.realpath,rl=Dh(),Uh=function(){return[te.join(rl,".node_modules"),te.join(rl,".node_libraries")]},Gh=function(t,r){rt.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isFile()||o.isFIFO())})},Wh=function(t,r){rt.stat(t,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isDirectory())})},zh=function(t,r){Bh(t,function(n,o){n&&n.code!=="ENOENT"?r(n):r(null,n?t:o)})},Nt=function(t,r,n,o){n&&n.preserveSymlinks===!1?t(r,o):o(null,r)},Kh=function(t,r,n){t(r,function(o,i){if(o)n(o);else try{var s=JSON.parse(i);n(null,s)}catch (e8){n(null)}})},Yh=function(t,r,n){for(var o=Hh(r,n,t),i=0;i<o.length;i++)o[i]=te.join(o[i],t);return o};nl.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=jh(t,i);var a=i.isFile||Gh,l=i.isDirectory||Wh,f=i.readFile||rt.readFile,u=i.realpath||zh,p=i.readPackage||Kh;if(i.readFile&&i.readPackage){var d=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(d)})}var x=i.packageIterator,y=i.extensions||[".js"],_=i.includeCoreModules!==!1,S=i.basedir||te.dirname(Vh()),b=i.filename||S;i.paths=i.paths||Uh();var F=te.resolve(S);Nt(u,F,i,function(m,A){m?o(m):U(A)});var I;function U(m){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t))I=te.resolve(m,t),(t==="."||t===".."||t.slice(-1)==="/")&&(I+="/"),/\/$/.test(t)&&I===m?R(I,i.package,P):M(I,i.package,P);else{if(_&&qh(t))return o(null,t);W(t,m,function(A,T,D){if(A)o(A);else{if(T)return Nt(u,T,i,function(v,j){v?o(v):o(null,j,D)});var h=new Error("Cannot find module '"+t+"' from '"+b+"'");h.code="MODULE_NOT_FOUND",o(h)}})}}function P(m,A,T){m?o(m):A?o(null,A,T):R(I,function(D,h,v){if(D)o(D);else if(h)Nt(u,h,i,function($,L){$?o($):o(null,L,v)});else{var j=new Error("Cannot find module '"+t+"' from '"+b+"'");j.code="MODULE_NOT_FOUND",o(j)}})}function M(m,A,T){var D=A,h=T;typeof D=="function"&&(h=D,D=void 0);var v=[""].concat(y);j(v,m,D);function j($,L,G){if($.length===0)return h(null,void 0,G);var H=L+$[0],re=G;re?Z(null,re):E(te.dirname(H),Z);function Z(ce,V,de){if(re=V,ce)return h(ce);if(de&&re&&i.pathFilter){var ct=te.relative(de,H),k=ct.slice(0,ct.length-$[0].length),z=i.pathFilter(re,L,k);if(z)return j([""].concat(y.slice()),te.resolve(de,z),re)}a(H,Ie)}function Ie(ce,V){if(ce)return h(ce);if(V)return h(null,H,re);j($.slice(1),L,re)}}}function E(m,A){if(m===""||m==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(m)||/[/\\]node_modules[/\\]*$/.test(m))return A(null);Nt(u,m,i,function(T,D){if(T)return E(te.dirname(m),A);var h=te.join(D,"package.json");a(h,function(v,j){if(!j)return E(te.dirname(m),A);p(f,h,function($,L){$&&A($);var G=L;G&&i.packageFilter&&(G=i.packageFilter(G,h)),A(null,G,m)})})})}function R(m,A,T){var D=T,h=A;typeof h=="function"&&(D=h,h=i.package),Nt(u,m,i,function(v,j){if(v)return D(v);var $=te.join(j,"package.json");a($,function(L,G){if(L)return D(L);if(!G)return M(te.join(m,"index"),h,D);p(f,$,function(H,re){if(H)return D(H);var Z=re;if(Z&&i.packageFilter&&(Z=i.packageFilter(Z,$)),Z&&Z.main){if(typeof Z.main!="string"){var Ie=new TypeError("package \u201C"+Z.name+"\u201D `main` must be a string");return Ie.code="INVALID_PACKAGE_MAIN",D(Ie)}(Z.main==="."||Z.main==="./")&&(Z.main="index"),M(te.resolve(m,Z.main),Z,function(ce,V,de){if(ce)return D(ce);if(V)return D(null,V,de);if(!de)return M(te.join(m,"index"),de,D);var ct=te.resolve(m,de.main);R(ct,de,function(k,z,w){if(k)return D(k);if(z)return D(null,z,w);M(te.join(m,"index"),w,D)})});return}M(te.join(m,"/index"),Z,D)})})})}function O(m,A){if(A.length===0)return m(null,void 0);var T=A[0];l(te.dirname(T),D);function D(j,$){if(j)return m(j);if(!$)return O(m,A.slice(1));M(T,i.package,h)}function h(j,$,L){if(j)return m(j);if($)return m(null,$,L);R(T,i.package,v)}function v(j,$,L){if(j)return m(j);if($)return m(null,$,L);O(m,A.slice(1))}}function W(m,A,T){var D=function(){return Yh(m,A,i)};O(T,x?x(m,A,D,i):D())}}});var il=_chunkGXMNHGBPcjs.b.call(void 0, (rR,Xh)=>{Xh.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 ll=_chunkGXMNHGBPcjs.b.call(void 0, (nR,cl)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Qh=Lt(),sl=il(),al={};for(Fr in sl)Object.prototype.hasOwnProperty.call(sl,Fr)&&(al[Fr]=Qh(Fr));var Fr;cl.exports=al});var fl=_chunkGXMNHGBPcjs.b.call(void 0, (iR,ul)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Zh=Lt();ul.exports=function(t){return Zh(t)}});var ml=_chunkGXMNHGBPcjs.b.call(void 0, (aR,dl)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Jh=Lt(),nt=_chunkGXMNHGBPcjs.a.call(void 0, "fs"),fe=_chunkGXMNHGBPcjs.a.call(void 0, "path"),ey=Qo(),ty=Zo(),ry=ti(),ny=ri(),oy=process.platform!=="win32"&&nt.realpathSync&&typeof nt.realpathSync.native=="function"?nt.realpathSync.native:nt.realpathSync,pl=ey(),iy=function(){return[fe.join(pl,".node_modules"),fe.join(pl,".node_libraries")]},sy=function(t){try{var r=nt.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&(r.isFile()||r.isFIFO())},ay=function(t){try{var r=nt.statSync(t,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&r.isDirectory()},cy=function(t){try{return oy(t)}catch(r){if(r.code!=="ENOENT")throw r}return t},Mt=function(t,r,n){return n&&n.preserveSymlinks===!1?t(r):r},ly=function(t,r){var n=t(r);try{var o=JSON.parse(n);return o}catch (e9){}},uy=function(t,r,n){for(var o=ry(r,n,t),i=0;i<o.length;i++)o[i]=fe.join(o[i],t);return o};dl.exports=function(t,r){if(typeof t!="string")throw new TypeError("Path must be a string.");var n=ny(t,r),o=n.isFile||sy,i=n.readFileSync||nt.readFileSync,s=n.isDirectory||ay,a=n.realpathSync||cy,l=n.readPackageSync||ly;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var f=n.packageIterator,u=n.extensions||[".js"],p=n.includeCoreModules!==!1,d=n.basedir||fe.dirname(ty()),x=n.filename||d;n.paths=n.paths||iy();var y=Mt(a,fe.resolve(d),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(t)){var _=fe.resolve(y,t);(t==="."||t===".."||t.slice(-1)==="/")&&(_+="/");var S=I(_)||P(_);if(S)return Mt(a,S,n)}else{if(p&&Jh(t))return t;var b=M(t,y);if(b)return Mt(a,b,n)}var F=new Error("Cannot find module '"+t+"' from '"+x+"'");throw F.code="MODULE_NOT_FOUND",F;function I(E){var R=U(fe.dirname(E));if(R&&R.dir&&R.pkg&&n.pathFilter){var O=fe.relative(R.dir,E),W=n.pathFilter(R.pkg,E,O);W&&(E=fe.resolve(R.dir,W))}if(o(E))return E;for(var m=0;m<u.length;m++){var A=E+u[m];if(o(A))return A}}function U(E){if(!(E===""||E==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(E))&&!/[/\\]node_modules[/\\]*$/.test(E)){var R=fe.join(Mt(a,E,n),"package.json");if(!o(R))return U(fe.dirname(E));var O=l(i,R);return O&&n.packageFilter&&(O=n.packageFilter(O,E)),{pkg:O,dir:E}}}function P(E){var R=fe.join(Mt(a,E,n),"/package.json");if(o(R)){try{var O=l(i,R)}catch (e10){}if(O&&n.packageFilter&&(O=n.packageFilter(O,E)),O&&O.main){if(typeof O.main!="string"){var W=new TypeError("package \u201C"+O.name+"\u201D `main` must be a string");throw W.code="INVALID_PACKAGE_MAIN",W}(O.main==="."||O.main==="./")&&(O.main="index");try{var m=I(fe.resolve(E,O.main));if(m)return m;var A=P(fe.resolve(E,O.main));if(A)return A}catch (e11){}}}return I(fe.join(E,"/index"))}function M(E,R){for(var O=function(){return uy(E,R,n)},W=f?f(E,R,O,n):O(),m=0;m<W.length;m++){var A=W[m];if(s(fe.dirname(A))){var T=I(A);if(T)return T;var D=P(A);if(D)return D}}}}});var hl=_chunkGXMNHGBPcjs.b.call(void 0, (lR,gl)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var Ir=ol();Ir.core=ll();Ir.isCore=fl();Ir.sync=ml();gl.exports=Ir});var hi=_chunkGXMNHGBPcjs.b.call(void 0, (zE,gi)=>{"use strict";_chunkGXMNHGBPcjs.e.call(void 0, );var s_=_chunkGXMNHGBPcjs.a.call(void 0, "tty"),a_=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||s_.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),Y=(e,t,r=e)=>n=>{let o=""+n,i=o.indexOf(t,e.length);return~i?e+Fu(o,t,r,i)+t:e+o+t},Fu=(e,t,r,n)=>{let o=e.substring(0,n)+r,i=e.substring(n+t.length),s=i.indexOf(t);return~s?o+Fu(i,t,r,s):o+i},Iu=(e=a_)=>({isColorSupported:e,reset:e?t=>`\x1B[0m${t}\x1B[0m`:String,bold:e?Y("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:e?Y("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:e?Y("\x1B[3m","\x1B[23m"):String,underline:e?Y("\x1B[4m","\x1B[24m"):String,inverse:e?Y("\x1B[7m","\x1B[27m"):String,hidden:e?Y("\x1B[8m","\x1B[28m"):String,strikethrough:e?Y("\x1B[9m","\x1B[29m"):String,black:e?Y("\x1B[30m","\x1B[39m"):String,red:e?Y("\x1B[31m","\x1B[39m"):String,green:e?Y("\x1B[32m","\x1B[39m"):String,yellow:e?Y("\x1B[33m","\x1B[39m"):String,blue:e?Y("\x1B[34m","\x1B[39m"):String,magenta:e?Y("\x1B[35m","\x1B[39m"):String,cyan:e?Y("\x1B[36m","\x1B[39m"):String,white:e?Y("\x1B[37m","\x1B[39m"):String,gray:e?Y("\x1B[90m","\x1B[39m"):String,bgBlack:e?Y("\x1B[40m","\x1B[49m"):String,bgRed:e?Y("\x1B[41m","\x1B[49m"):String,bgGreen:e?Y("\x1B[42m","\x1B[49m"):String,bgYellow:e?Y("\x1B[43m","\x1B[49m"):String,bgBlue:e?Y("\x1B[44m","\x1B[49m"):String,bgMagenta:e?Y("\x1B[45m","\x1B[49m"):String,bgCyan:e?Y("\x1B[46m","\x1B[49m"):String,bgWhite:e?Y("\x1B[47m","\x1B[49m"):String});gi.exports=Iu();gi.exports.createColors=Iu});_chunkGXMNHGBPcjs.e.call(void 0, );var _process = require('process'); var _process2 = _interopRequireDefault(_process);var _yargs = require('yargs'); var _yargs2 = _interopRequireDefault(_yargs);var _helpers = require('yargs/helpers');var lt="0.16.4";_chunkGXMNHGBPcjs.e.call(void 0, );var Jl=_chunkGXMNHGBPcjs.c.call(void 0, wr(),1);var _path = require('path'); var _path2 = _interopRequireDefault(_path);var _promises = require('fs/promises');var _kolorist = require('kolorist');var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);var _graymatter = require('gray-matter'); var _graymatter2 = _interopRequireDefault(_graymatter);var _markdownit = require('markdown-it'); var _markdownit2 = _interopRequireDefault(_markdownit);var _feed = require('feed');var _consola = require('consola'); var _consola2 = _interopRequireDefault(_consola);_chunkGXMNHGBPcjs.e.call(void 0, );var ql=_chunkGXMNHGBPcjs.c.call(void 0, Wo(),1),Bl=_chunkGXMNHGBPcjs.c.call(void 0, wr(),1);var _utils = require('@antfu/utils');var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);_chunkGXMNHGBPcjs.e.call(void 0, );var _isinstalledglobally = require('is-installed-globally'); var _isinstalledglobally2 = _interopRequireDefault(_isinstalledglobally);_chunkGXMNHGBPcjs.e.call(void 0, );var Ic=_chunkGXMNHGBPcjs.c.call(void 0, $c(),1);var _os = require('os'); var _os2 = _interopRequireDefault(_os);var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);var Ft=_process2.default.platform==="win32",Fc=e=>{try{return Ic.default.parse(_fs2.default.readFileSync(e,"utf8")).prefix}catch (e12){}},dh=()=>Object.keys(_process2.default.env).reduce((e,t)=>/^npm_config_prefix$/i.test(t)?_process2.default.env[t]:e,void 0),mh=()=>{if(Ft&&_process2.default.env.APPDATA)return _path2.default.join(_process2.default.env.APPDATA,"/npm/etc/npmrc");if(_process2.default.execPath.includes("/Cellar/node")){let e=_process2.default.execPath.slice(0,_process2.default.execPath.indexOf("/Cellar/node"));return _path2.default.join(e,"/lib/node_modules/npm/npmrc")}if(_process2.default.execPath.endsWith("/bin/node")){let e=_path2.default.dirname(_path2.default.dirname(_process2.default.execPath));return _path2.default.join(e,"/etc/npmrc")}},gh=()=>{if(Ft){let{APPDATA:e}=_process2.default.env;return e?_path2.default.join(e,"npm"):_path2.default.dirname(_process2.default.execPath)}return _path2.default.dirname(_path2.default.dirname(_process2.default.execPath))},hh=()=>{let e=dh();if(e)return e;let t=Fc(_path2.default.join(_os2.default.homedir(),".npmrc"));if(t)return t;if(_process2.default.env.PREFIX)return _process2.default.env.PREFIX;let r=Fc(mh());return r||gh()},$t=_path2.default.resolve(hh()),Lc=()=>{if(Ft&&_process2.default.env.LOCALAPPDATA){let e=_path2.default.join(_process2.default.env.LOCALAPPDATA,"Yarn");if(_fs2.default.existsSync(e))return e}return!1},yh=()=>{if(_process2.default.env.PREFIX)return _process2.default.env.PREFIX;let e=Lc();if(e)return e;let t=_path2.default.join(_os2.default.homedir(),".config/yarn");if(_fs2.default.existsSync(t))return t;let r=_path2.default.join(_os2.default.homedir(),".yarn-config");return _fs2.default.existsSync(r)?r:$t},Oe={};Oe.npm={};Oe.npm.prefix=$t;Oe.npm.packages=_path2.default.join($t,Ft?"node_modules":"lib/node_modules");Oe.npm.binaries=Ft?$t:_path2.default.join($t,"bin");var Nc=_path2.default.resolve(yh());Oe.yarn={};Oe.yarn.prefix=Nc;Oe.yarn.packages=_path2.default.join(Nc,Lc()?"Data/global/node_modules":"global/node_modules");Oe.yarn.binaries=_path2.default.join(Oe.yarn.packages,".bin");var Xo=Oe;var wl=_chunkGXMNHGBPcjs.c.call(void 0, hl(),1);_chunkGXMNHGBPcjs.e.call(void 0, );var _crossspawn = require('cross-spawn');function Dt(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=_crossspawn.spawn.call(void 0, "git",o),s="";i.stdout.on("data",a=>s+=String(a)),i.on("close",()=>{r(+new Date(s))}),i.on("error",()=>{r(0)})})}_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );var Lr="<!-- more -->",xt=/^https?:/i,yl=/^pathname:\/\//;function vl(e){return xt.test(e)}function Te(e){return e.replace(/\\/g,"/")}function ni(e,t){return t.startsWith(e)?t:e+t}function Q(e){return`/@fs${ni("/",Te(e))}`}function _l(e){return e.startsWith("/")||/^\.\.?[\/\\]/.test(e)}_chunkGXMNHGBPcjs.e.call(void 0, );var _vite = require('vite');_chunkGXMNHGBPcjs.e.call(void 0, );var _unconfig = require('unconfig');async function ot(e,t={}){let{config:r,sources:n}=await _unconfig.loadConfig.call(void 0, {sources:{files:e,rewrite:t.rewrite},cwd:t.cwd||_process2.default.cwd()}),o=_vite.normalizePath.call(void 0, n[0]||"");return{config:r,configFile:o}}var Ct=_defu.createDefu.call(void 0, (e,t,r)=>{if(_utils.isFunction.call(void 0, e[t])&&_utils.isFunction.call(void 0, r)&&(e[t]=function(...n){e[t].call(this,...n),r.call(this,...n)}),t==="vite")return e[t]=_vite.mergeConfig.call(void 0, e[t],r),!0});async function oi(e,t){return ot("valaxy.config",{rewrite(r){return typeof r=="function"?r(t||{}):r},cwd:e})}async function Cl(e){let t=e.userRoot||_process2.default.cwd(),{config:r,configFile:n}=await oi(t);r&&_consola2.default.success(`Resolve ${_kolorist.cyan.call(void 0, "userValaxyConfig")} from ${_kolorist.dim.call(void 0, n)}`);let o=e.theme||_optionalChain([r, 'optionalAccess', _3 => _3.theme])||"yun";return{config:r,configFile:n,theme:o}}async function bl(e,t){let r={};for(let n of e){if(!_fs.existsSync.call(void 0, _path.resolve.call(void 0, n.root,"valaxy.config.ts")))continue;let{config:o,configFile:i}=await ot("valaxy.config",{rewrite(s,a){return typeof s=="function"?s(n,t):s},cwd:n.root});o&&(n.configFile=i,r=Ct(o,r))}return r}function El(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}function $e(e,t=!1,r={preserveSymlinks:!1}){try{return(0,wl.sync)(e,r)}catch(n){_consola2.default.log(n)}if(_isinstalledglobally2.default){try{return _chunkGXMNHGBPcjs.a.resolve(_path.join.call(void 0, Xo.yarn.packages,e))}catch (e13){}try{return _chunkGXMNHGBPcjs.a.resolve(_path.join.call(void 0, Xo.npm.packages,e))}catch (e14){}}if(t)throw new Error(`Failed to resolve package ${e}`);_consola2.default.error(`Failed to resolve package ${e}`)}_chunkGXMNHGBPcjs.e.call(void 0, );var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);_chunkGXMNHGBPcjs.e.call(void 0, );function Ry(e){return e}var GR=Ry;function wy(e){return e}var WR=wy;function XR(e){return e}function Ey(e){return e}var QR=Ey,ii= exports.t ={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:_crypto.webcrypto.getRandomValues(new Uint8Array(16)),iv:_crypto.webcrypto.getRandomValues(new Uint8Array(16))}},kl= exports.u ={ignoreDeadLinks:!0,siteConfig:ii,theme:"yun",themeConfig:{pkg:{name:"",version:""}},runtimeConfig:{addons:{}},modules:{rss:{enable:!0}},features:{katex:!0},vite:{build:{rollupOptions:{external:[]}}}};function ZR(e){return e}_chunkGXMNHGBPcjs.e.call(void 0, );var _ora = require('ora'); var _ora2 = _interopRequireDefault(_ora);_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );function si(){return _process2.default.env.NODE_ENV==="production"}function ai(e="development"){_process2.default.env.NODE_ENV=e,it.level=si()?2:3}function bt(){return ai("production")}var it=_consola2.default.create({level:si()?2:3});_chunkGXMNHGBPcjs.e.call(void 0, );function Nr(e,t){if(!e)return"";if(_l(e))if(t){let r=_fsextra2.default.lstatSync(t).isFile();return _path.resolve.call(void 0, r?_path.dirname.call(void 0, t):t,e)}else throw new Error(`entry is required when ${e} is path`);else return _path.dirname.call(void 0, $e(`${e}/package.json`)||"")}async function Ml(e,t=_process2.default.cwd()){let r=_ora2.default.call(void 0, `Resolve ${_kolorist.cyan.call(void 0, "addons")} from ${_kolorist.dim.call(void 0, t)}`).start(),n={},o=s=>{s&&(n[s.name]=_defu2.default.call(void 0, n[s.name]||{},s))};if(Array.isArray(e))for(let s of e){if(typeof s=="string"){o(await Ll(s,{cwd:t}));continue}typeof s=="object"&&o(_defu2.default.call(void 0, await Ll(s.name,{cwd:t}),s||{}))}r.succeed();let i=Object.values(n).filter(s=>s.enable);return i.forEach((s,a)=>{it.log(` ${a===i.length-1?"\u2514\u2500":"\u251C\u2500"} ${_kolorist.yellow.call(void 0, s.name)}${s.global?_kolorist.cyan.call(void 0, " (global)"):""} ${_kolorist.dim.call(void 0, s.pkg.homepage||_optionalChain([s, 'access', _4 => _4.pkg, 'access', _5 => _5.repository, 'optionalAccess', _6 => _6.url])||s.pkg.repository)}`)}),i}async function Ll(e,t={}){let r=Fy(e,t.cwd||_process2.default.cwd()),n=_path.resolve.call(void 0, r,"./package.json");if(!_fsextra2.default.existsSync(n)){it.error(`No addon named ${e} found`);return}let o=await _fsextra2.default.readJSON(n);return{enable:!0,name:o.name,global:!!o.global,root:r,options:{},props:{},pkg:o}}function Fy(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return Nr(r,t)}_chunkGXMNHGBPcjs.e.call(void 0, );function Dl(e,t){let r=e.startsWith("valaxy-theme")||e.startsWith(".")?e:`valaxy-theme-${e}`;return Nr(r,t)}_chunkGXMNHGBPcjs.e.call(void 0, );async function My(e){return ot("site.config",{cwd:e})}async function Mr(e){let{config:t,configFile:r}=await My(e);return t&&_consola2.default.success(`Resolve ${_kolorist.cyan.call(void 0, "siteConfig")} from ${_kolorist.dim.call(void 0, r)}`),{siteConfig:t,siteConfigFile:r}}_chunkGXMNHGBPcjs.e.call(void 0, );async function Hy(e){return ot("theme.config",{cwd:e})}async function Vl(e){let{config:t,configFile:r}=await Hy(e);return t&&it.info(`Resolve ${_kolorist.cyan.call(void 0, "themeConfig")} from ${_kolorist.dim.call(void 0, r)}`),{themeConfig:t,themeConfigFile:r}}var zy=(0,ql.default)("valaxy:options");async function Ky(e){let{config:t,themeRoot:r,theme:n}=e,o=t.siteConfig;o.url=_utils.ensureSuffix.call(void 0, "/",o.url||""),o.cdn.prefix=_utils.ensureSuffix.call(void 0, "/",o.cdn.prefix||"");let i=_path.resolve.call(void 0, r,"package.json");try{t.themeConfig.pkg=await _fsextra2.default.readJson(i,"utf-8")}catch (e15){console.error(`valaxy-theme-${n} doesn't have package.json`)}}async function ci(e,t){let{clientRoot:r,themeRoot:n,userRoot:o}=e,i=await Ml(t.addons||[],e.userRoot),s=await bl(i,e);t=Ct(t,s);let a=_defu2.default.call(void 0, t,kl);e.config={...a,runtimeConfig:{addons:{}}},e.addons=i,i.forEach(p=>{e.config.runtimeConfig.addons[p.name]=p});let l=i.map(({root:p})=>p),f=i.map(({name:p})=>p);e.addonRoots=l,e.roots=_utils.uniq.call(void 0, [r,n,...l,o]);let u=_optionalChain([e, 'access', _7 => _7.config, 'access', _8 => _8.vite, 'optionalAccess', _9 => _9.build, 'optionalAccess', _10 => _10.rollupOptions, 'optionalAccess', _11 => _11.external])||[];return e.config.vite.build.rollupOptions.external=u.filter(p=>!f.includes(p)),await Ky(e),e}async function ve(e={userRoot:_process2.default.cwd()},t="dev"){let r=_path.dirname.call(void 0, $e("valaxy/package.json",!0)),n=_path.resolve.call(void 0, r,"client"),o=Te(_path.resolve.call(void 0, e.userRoot||_process2.default.cwd()));_consola2.default.start(`Resolve ${_kolorist.magenta.call(void 0, "valaxy")} config...`);let[i,s,a,l]=await Promise.all([Cl(e),Mr(e.userRoot),Vl(e.userRoot),(0,Bl.default)(["**.md"],{cwd:_path.resolve.call(void 0, o,"pages"),ignore:["**/node_modules"]})]),{config:f,configFile:u,theme:p}=i,{siteConfig:d,siteConfigFile:x}=s,{themeConfig:y,themeConfigFile:_}=a;f=_defu2.default.call(void 0, {siteConfig:d},{themeConfig:y},f);let S=Dl(p,e.userRoot),b={mode:t,pkgRoot:r,clientRoot:n,userRoot:o,themeRoot:S,addonRoots:[],roots:[],theme:p,config:{...f,runtimeConfig:{addons:{}}},configFile:u||"",siteConfigFile:x||"",themeConfigFile:_||"",pages:l.sort(),addons:[]};zy(b);let F=await li(b),I=Ct(f,F);return b=await ci(b,I),b}async function li(e){let{config:t}=await oi(e.themeRoot,e);return t&&_consola2.default.success(`Resolve ${_kolorist.cyan.call(void 0, "valaxy.config.ts")} from ${_kolorist.yellow.call(void 0, `theme(${e.theme})`)}`),t}_chunkGXMNHGBPcjs.e.call(void 0, );async function zl(e){return await Dt(e,"created")||(await _fsextra2.default.stat(e)).ctime}async function Kl(e){return await Dt(e,"created")||(await _fsextra2.default.stat(e)).mtime}_chunkGXMNHGBPcjs.e.call(void 0, );function We(e){return e.positional("root",{default:".",type:"string",describe:"root folder of your source files"})}_chunkGXMNHGBPcjs.e.call(void 0, );function Yl(e,t){t.forEach(r=>{_optionalChain([r, 'access', _12 => _12.setup, 'optionalCall', _13 => _13(e)])})}var ov=_markdownit2.default.call(void 0, {html:!0,breaks:!0,linkify:!0});async function Zl(e){_consola2.default.info(`${_kolorist.yellow.call(void 0, "RSS Generating ...")}`);let{config:t}=e,r=t.siteConfig;if(!r.url||r.url==="/"){_consola2.default.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:_optionalChain([r, 'access', _14 => _14.author, 'optionalAccess', _15 => _15.name]),email:_optionalChain([r, 'access', _16 => _16.author, 'optionalAccess', _17 => _17.email]),link:_optionalChain([r, 'access', _18 => _18.author, 'optionalAccess', _19 => _19.link])};_consola2.default.info(`RSS Site Url: ${_kolorist.cyan.call(void 0, n)}`);let s=_optionalChain([r, 'access', _20 => _20.license, 'optionalAccess', _21 => _21.type])==="zero"?"1.0":"4.0",a={atom:_optionalChain([r, 'access', _22 => _22.feed, 'optionalAccess', _23 => _23.name])?`${_optionalChain([r, 'access', _24 => _24.feed, 'optionalAccess', _25 => _25.name])}.atom`:"atom.xml",json:`${_optionalChain([r, 'access', _26 => _26.feed, 'optionalAccess', _27 => _27.name])||"feed"}.json`,rss:`${_optionalChain([r, 'access', _28 => _28.feed, 'optionalAccess', _29 => _29.name])||"feed"}.xml`},l={title:r.title||"Valaxy Blog",description:r.description,id:n||"valaxy",link:n,copyright:`CC ${_optionalChain([r, 'access', _30 => _30.license, 'optionalAccess', _31 => _31.type, 'optionalAccess', _32 => _32.toUpperCase, 'call', _33 => _33()])} ${s} ${new Date().getFullYear()} \xA9 ${_optionalChain([r, 'access', _34 => _34.author, 'optionalAccess', _35 => _35.name])}`,feedLinks:{}};Object.keys(a).forEach(_=>{l.feedLinks[_]=`${n}${a[_]}`});let f=await(0,Jl.default)(`${e.userRoot}/pages/posts/**/*.md`),u=[];for await(let _ of f){let S=await _promises.readFile.call(void 0, _,"utf-8"),{data:b,content:F,excerpt:I}=_graymatter2.default.call(void 0, S,{excerpt_separator:Lr});if(b.password)continue;if(b.draft){_consola2.default.warn(`Ignore draft post: ${_kolorist.dim.call(void 0, _)}`);continue}if(b.hide)continue;let U=_;b.date||(b.date=await zl(U)),r.lastUpdated&&(b.updated||(b.updated=await Kl(U)));let P=ov.render(I||F.slice(0,100)).replace('src="/',`src="${o}/`);_optionalChain([b, 'access', _36 => _36.image, 'optionalAccess', _37 => _37.startsWith, 'call', _38 => _38("/")])&&(b.image=o+b.image),u.push({title:"",...b,id:(b.id||"").toString(),date:new Date(b.date),published:new Date(b.updated||b.date),content:P,author:[i],link:o+_.replace(`${e.userRoot}/pages`,"").replace(/\.md$/,"")})}u.sort((_,S)=>+new Date(S.published||S.date)-+new Date(_.published||_.date));let p=_optionalChain([r, 'access', _39 => _39.author, 'optionalAccess', _40 => _40.avatar])||"/favicon.svg";l.author=i,l.image=vl(p)?_optionalChain([r, 'access', _41 => _41.author, 'optionalAccess', _42 => _42.avatar]):`${o}${ni("/",p)}`,l.favicon=`${o}${_optionalChain([r, 'access', _43 => _43.feed, 'optionalAccess', _44 => _44.favicon])||r.favicon}`;let d=new (0, _feed.Feed)(l);u.forEach(_=>d.addItem(_)),await _fsextra2.default.ensureDir(_path.dirname.call(void 0, `./dist/${a.atom}`));let x=_path.resolve.call(void 0, e.userRoot,"./dist");["rss","atom","json"].forEach(_=>{let S="",b=`${x}/${a[_]}`;_==="rss"?S=d.rss2():_==="atom"?S=d.atom1():_==="json"&&(S=d.json1()),_fsextra2.default.writeFileSync(b,S,"utf-8"),_consola2.default.info(`${_}: ${_kolorist.dim.call(void 0, b)}`)})}var Vr={extendCli(e){e.command("rss [root]","generate rss feed",t=>We(t).strict().help(),async({root:t})=>{bt();let r=await ve({userRoot:t},"build");await Zl(r)})},setup(e){e.hook("build:after",()=>{console.log(),Zl(e.options)})}};_chunkGXMNHGBPcjs.e.call(void 0, );var eu=_chunkGXMNHGBPcjs.c.call(void 0, wr(),1);async function tu(e){_consola2.default.start(`Generate List for Fuse Search by (${_kolorist.cyan.call(void 0, "fuse.js")}) ...`);let t=await(0,eu.default)(`${e.userRoot}/pages/posts/**/*.md`),r=[];for await(let n of t){let o=_fsextra2.default.readFileSync(n,"utf-8"),{data:i,excerpt:s,content:a}=_graymatter2.default.call(void 0, o,{excerpt_separator:"<!-- more -->"});if(i.draft){_consola2.default.warn(`Ignore draft post: ${_kolorist.dim.call(void 0, n)}`);continue}if(i.hide||i.password)continue;let l=e.config.siteConfig.fuse.options.keys||[],f={title:i.title||"",tags:(typeof i.tags=="string"?[i.tags]:i.tags)||[],categories:i.categories||[],author:e.config.siteConfig.author.name,excerpt:s||a.slice(0,100),link:encodeURI(n.replace(`${e.userRoot}/pages`,"").replace(/\.md$/,""))};l.includes("content")&&(f.content=a||""),r.push(f)}return r}function av(e){e.command("fuse [root]","generate fuse list for search",t=>We(t).strict().help(),async({root:t})=>{_consola2.default.info("Please generate it before build."),bt();let r=await ve({userRoot:t},"build"),n=await tu(r);await _fsextra2.default.ensureDir("./dist");let o=_path2.default.resolve(r.userRoot,"public"),i=_path2.default.resolve(o,r.config.siteConfig.fuse.dataPath),s=_path2.default.join("public",r.config.siteConfig.fuse.dataPath);await _fsextra2.default.ensureFile(i),_fsextra2.default.writeJSONSync(i,n),_consola2.default.success(`Generate fuse list in ${_kolorist.dim.call(void 0, o)}`);let a=_path2.default.resolve(r.userRoot,"dist"),l=_path2.default.resolve(a,r.config.siteConfig.fuse.dataPath);await _fsextra2.default.ensureDir(a),_fsextra2.default.writeJSONSync(l,n),_consola2.default.success(`Generate fuse list in ${_kolorist.dim.call(void 0, a)}`);try{let f=await _fsextra2.default.readFile(`${r.userRoot}/.gitignore`,"utf-8"),u=s.replace(/\\/g,"/");f.includes(u)||(await _fsextra2.default.appendFile(`${r.userRoot}/.gitignore`,`
9
- # valaxy
10
- ${u}
11
- `),_consola2.default.success(`Add ${_kolorist.dim.call(void 0, u)} to ${_kolorist.dim.call(void 0, ".gitignore")}`))}catch (e16){}})}var ru={extendCli(e){av(e)},setup(e){e.hook("build:before",()=>{tu(e.options)})}};_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );var _ejs = require('ejs');var _dayjs = require('dayjs'); var _dayjs2 = _interopRequireDefault(_dayjs);_chunkGXMNHGBPcjs.e.call(void 0, );async function Hr(e){try{return await _promises.access.call(void 0, e),!0}catch (e17){return!1}}_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );var qt=_process2.default.cwd(),nu=`---
12
- layout: <%=layout%>
13
- title: <%=title%>
14
- date: <%=date%>
15
- ---
16
- `;async function ou(e){let{clientRoot:t,themeRoot:r}=await ve({userRoot:qt}),n=[qt,r,t];for(let o of n){let i=_path2.default.resolve(o,"scaffolds",`${e}.md`);if(await Hr(i))return _promises.readFile.call(void 0, i,"utf-8")}return!1}async function su(e){let t=_path.resolve.call(void 0, qt,"pages"),{path:r,title:n}=e,o=r||_path.join.call(void 0, "posts",n),i=0;for(;;){let s=_path.resolve.call(void 0, t,o);if(i&&(s=`${s}-${i}`),s=_utils.ensureSuffix.call(void 0, ".md",s),!await Hr(s)){let a=await _v(e);try{await _promises.writeFile.call(void 0, s,a,"utf-8"),_consola.consola.success(`[valaxy new]: successfully generated file ${_kolorist.magenta.call(void 0, s)}`)}catch(l){console.log(l),_consola.consola.error(`[valaxy new]: failed to write file ${s}`),_consola.consola.warn(`You should run ${_kolorist.green.call(void 0, "valaxy new")} in your valaxy project root directory.`)}return s}i++}}async function _v({date:e,title:t,layout:r="post"}){let n=await ou(r);n||(n=nu);let o="YYYY-MM-DD HH:mm:ss";return _ejs.render.call(void 0, n,{title:t,layout:r,date:e?_dayjs2.default.call(void 0, ).format(o):""})}function au(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 su({title:t,date:n,layout:o,path:r})})}_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );var _node = require('vite-ssg/node');var _vitessgsitemap = require('vite-ssg-sitemap'); var _vitessgsitemap2 = _interopRequireDefault(_vitessgsitemap);_chunkGXMNHGBPcjs.e.call(void 0, );var _pluginvue = require('@vitejs/plugin-vue'); var _pluginvue2 = _interopRequireDefault(_pluginvue);var _vitepluginvuelayouts = require('vite-plugin-vue-layouts'); var _vitepluginvuelayouts2 = _interopRequireDefault(_vitepluginvuelayouts);var _vite3 = require('unplugin-vue-components/vite'); var _vite4 = _interopRequireDefault(_vite3);var _vite5 = require('@intlify/unplugin-vue-i18n/vite'); var _vite6 = _interopRequireDefault(_vite5);var _vite7 = require('@unhead/addons/vite'); var _vite8 = _interopRequireDefault(_vite7);_chunkGXMNHGBPcjs.e.call(void 0, );var _markdownitanchor = require('markdown-it-anchor'); var _markdownitanchor2 = _interopRequireDefault(_markdownitanchor);var _markdownitattrs = require('markdown-it-attrs'); var _markdownitattrs2 = _interopRequireDefault(_markdownitattrs);var _markdownitemoji = require('markdown-it-emoji');var _markdownittasklists = require('markdown-it-task-lists'); var _markdownittasklists2 = _interopRequireDefault(_markdownittasklists);_chunkGXMNHGBPcjs.e.call(void 0, );var cu=new Set([!0,!1,"alt","title"]);function lu(e,t){return(Array.isArray(e)?e:[]).filter(([r])=>r!==t)}function uu(e,t){e&&e.attrs&&(e.attrs=lu(e.attrs,t))}function xv(e,t){if(!cu.has(e))throw new TypeError(`figcaption must be one of: ${[...cu]}.`);if(e==="alt")return t.content;let r=t.attrs.find(([n])=>n==="title");return Array.isArray(r)&&r[1]?(uu(t,"title"),r[1]):void 0}function fu(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(r){let n=1;for(let o=1,i=r.tokens.length;o<i-1;++o){let s=r.tokens[o];if(s.type!=="inline"||!s.children||s.children.length!==1&&s.children.length!==3||s.children.length===1&&s.children[0].type!=="image")continue;if(s.children.length===3){let[f,u,p]=s.children;if(f.type!=="link_open"||u.type!=="image"||p.type!=="link_close")continue}if(o!==0&&r.tokens[o-1].type!=="paragraph_open"||o!==i-1&&r.tokens[o+1].type!=="paragraph_close")continue;let a=r.tokens[o-1],l;if(a.type="figure_open",a.tag="figure",r.tokens[o+1].type="figure_close",r.tokens[o+1].tag="figure",t.dataType&&r.tokens[o-1].attrPush(["data-type","image"]),t.link&&s.children.length===1){[l]=s.children;let f=new r.Token("link_open","a",1);f.attrPush(["href",l.attrGet("src")]),s.children.unshift(f),s.children.push(new r.Token("link_close","a",-1))}if(l=s.children.length===1?s.children[0]:s.children[1],t.figcaption){let f=xv(t.figcaption,l);if(f){let[u]=e.parseInline(f,r.env);s.children.push(new r.Token("figcaption_open","figcaption",1)),s.children.push(...u.children),s.children.push(new r.Token("figcaption_close","figcaption",-1)),l.attrs&&(l.attrs=lu(l.attrs,"title"))}}if(t.copyAttrs&&l.attrs){let f=t.copyAttrs===!0?"":t.copyAttrs;a.attrs=l.attrs.filter(([u])=>u.match(f)).map(u=>Array.from(u))}if(t.tabindex&&(r.tokens[o-1].attrPush(["tabindex",n]),n++),t.lazy&&(l.attrs.some(([f])=>f==="loading")||l.attrs.push(["loading","lazy"])),t.async&&(l.attrs.some(([f])=>f==="decoding")||l.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let f=!1;for(let u=0,p=l.attrs.length;u<p&&!f;u++){let d=l.attrs[u];d[0]==="class"&&(d[1]=`${d[1]} ${t.classes}`,f=!0)}f||l.attrs.push(["class",t.classes])}if(t.removeSrc){let f=l.attrs.find(([u])=>u==="src");l.attrs.push(["data-src",f[1]]),uu(l,"src")}}})}_chunkGXMNHGBPcjs.e.call(void 0, );var _html_blocksmjs = require('markdown-it/lib/common/html_blocks.mjs'); var _html_blocksmjs2 = _interopRequireDefault(_html_blocksmjs);var bv="[a-zA-Z_:@][a-zA-Z0-9:._-]*",Sv="[^\"'=<>`\\x00-\\x20]+",Rv="'[^']*'",wv='"[^"]*"',Ev="(?:"+Sv+"|"+Rv+"|"+wv+")",fi="(?:\\s+"+bv+"(?:\\s*=\\s*"+Ev+")?)",pu="<[A-Za-z][A-Za-z0-9\\-]*"+fi+"*\\s*\\/?>",du="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Av="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",kv="<[?][\\s\\S]*?[?]>",Pv="<![A-Z]+\\s+[^>]*>",Ov="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Tv=new RegExp("^(?:"+pu+"|"+du+"|"+Av+"|"+kv+"|"+Pv+"|"+Ov+")"),$v=new RegExp("^(?:"+pu+"|"+du+")"),Fv=new RegExp("^<[A-Za-z][A-Za-z0-9\\-]*"+fi+"*\\s*\\/>"),Iv=new RegExp("^<([A-Za-z][A-Za-z0-9\\-]*)"+fi+"*\\s*>.*<\\/\\1\\s*>"),Lv=_html_blocksmjs2.default,Nv=["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],Mv=["template","component","transition","transition-group","keep-alive","slot","teleport"],Dv=({blockTags:e,inlineTags:t})=>{let r=[...e,...Lv],n=[...t,...Nv.filter(i=>!Mv.includes(i))];return[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp("^</?(?!("+n.join("|")+")(?![\\w-]))[A-Za-z][A-Za-z0-9\\-]*(?=(\\s|/?>|$))"),/^$/,!0],[new RegExp($v.source+"\\s*$"),/^$/,!1]]},Vv=e=>{let t=Dv(e);return(r,n,o,i)=>{let s,a,l,f=r.bMarks[n]+r.tShift[n],u=r.eMarks[n];if(r.sCount[n]-r.blkIndent>=4||!r.md.options.html||r.src.charCodeAt(f)!==60)return!1;for(l=r.src.slice(f,u),s=0;s<t.length&&!t[s][0].test(l);s++);if(s===t.length)return!1;if(i)return t[s][2];if(s===6){let d=_nullishCoalesce(l.match(Fv), () => (l.match(Iv)));if(d){r.line=n+1;let x=r.push("html_inline","",0);return x.content=d[0],x.map=[n,r.line],x=r.push("inline","",0),x.content=l.slice(d[0].length),x.map=[n,r.line],x.children=[],!0}}if(a=n+1,!t[s][1].test(l)){for(;a<o&&!(r.sCount[a]<r.blkIndent);a++)if(f=r.bMarks[a]+r.tShift[a],u=r.eMarks[a],l=r.src.slice(f,u),t[s][1].test(l)){l.length!==0&&a++;break}}r.line=a;let p=r.push("html_block","",0);return p.map=[n,a],p.content=r.getLines(n,a,r.blkIndent,!0),!0}},Hv=e=>{let t=e|32;return t>=97&&t<=122},jv=(e,t)=>{let{pos:r}=e;if(!e.md.options.html)return!1;let n=e.posMax;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let o=e.src.charCodeAt(r+1);if(o!==33&&o!==63&&o!==47&&!Hv(o))return!1;let i=e.src.slice(r).match(Tv);if(!i)return!1;if(!t){let s=e.push("html_inline","",0);s.content=e.src.slice(r,r+i[0].length)}return e.pos+=i[0].length,!0},mu=(e,{blockTags:t=[],inlineTags:r=[]}={})=>{let n=Vv({blockTags:t,inlineTags:r});e.block.ruler.at("html_block",n,{alt:["paragraph","reference","blockquote"]}),e.inline.ruler.at("html_inline",jv)};_chunkGXMNHGBPcjs.e.call(void 0, );var gu=(e,{grayMatterOptions:t,renderExcerpt:r=!0}={})=>{let n=e.render.bind(e);e.render=(o,i={})=>{let{data:s,content:a,excerpt:l=""}=_graymatter2.default.call(void 0, o,t);return i.content=a,i.frontmatter={...i.frontmatter,...s},i.excerpt=r&&l?n(l,{...i}):l,n(a,i)}};_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );var Bv={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},Uv=/[&<>'"]/g,st=e=>e.replace(Uv,t=>Bv[t]);var Bt=(e,{shouldAllowHtml:t,shouldEscapeText:r})=>{let n=_nullishCoalesce(e.children, () => ([])),o=["text","emoji","code_inline"];return t&&o.push("html_inline"),n.filter(s=>o.includes(s.type)&&!_optionalChain([s, 'access', _45 => _45.meta, 'optionalAccess', _46 => _46.isPermalinkSymbol])).reduce((s,a)=>r&&(a.type==="code_inline"||a.type==="text")?`${s}${st(a.content)}`:`${s}${a.content}`,"").trim()},jr=(e,{level:t,shouldAllowHtml:r,shouldAllowNested:n,shouldEscapeText:o,slugify:i,format:s})=>{let a=[],l=[],f=u=>{for(;l.length!==0&&u.level<=l[0].level;)l.shift();l.length===0?(a.push(u),l.push(u)):(l[0].children.push(u),l.unshift(u))};for(let u=0;u<e.length;u+=1){let p=e[u];if(_optionalChain([p, 'optionalAccess', _47 => _47.type])!=="heading_open"||_optionalChain([p, 'optionalAccess', _48 => _48.level])!==0&&!n)continue;let d=Number.parseInt(p.tag.slice(1),10);if(!t.includes(d))continue;let x=e[u+1];if(!x)continue;let y=Bt(x,{shouldAllowHtml:r,shouldEscapeText:o}),_=_nullishCoalesce(p.attrGet("id"), () => (i(y)));f({level:d,title:_nullishCoalesce(_optionalChain([s, 'optionalCall', _49 => _49(y)]), () => (y)),slug:_,link:`#${_}`,children:[]})}return a},Gv=/[\u0000-\u001f]/g,Wv=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g,zv=/[\u0300-\u036F]/g,at=e=>e.normalize("NFKD").replace(zv,"").replace(Gv,"").replace(Wv,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase();var hu=(e,{level:t=[2,3],shouldAllowNested:r=!1,slugify:n=at,format:o}={})=>{let i=e.renderer.render.bind(e.renderer);e.renderer.render=(s,a,l)=>(l.headers=jr(s,{level:t,shouldAllowHtml:!1,shouldAllowNested:r,shouldEscapeText:!1,slugify:n,format:o}),i(s,a,l))};_chunkGXMNHGBPcjs.e.call(void 0, );var yu="script",vu="style",Ut="template",Kv=/^<script\s+.*?\bsetup\b.*?>$/is,Yv=({customBlocks:e})=>{let t=Array.from(new Set([yu,vu,...e])).join("|");return new RegExp(`^\\s*(?<content>(?<tagOpen><(?<type>${t})\\s?.*?>)(?<contentStripped>.*)(?<tagClose><\\/\\k<type>\\s*>))\\s*$`,"is")},_u=(e,{customBlocks:t=[]}={})=>{let r=Yv({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:Ut,content:`<${Ut}>${a}</${Ut}>`,contentStripped:a,tagOpen:`<${Ut}>`,tagClose:`</${Ut}>`},a};let o=e.renderer.rules.html_block;e.renderer.rules.html_block=(i,s,a,l,f)=>{if(!l.sfcBlocks)return o(i,s,a,l,f);let d=i[s].content.match(r);if(!d)return o(i,s,a,l,f);let x=d.groups;return x.type===yu?(l.sfcBlocks.scripts.push(x),Kv.test(x.tagOpen)?l.sfcBlocks.scriptSetup=x:l.sfcBlocks.script=x):x.type===vu?l.sfcBlocks.styles.push(x):l.sfcBlocks.customBlocks.push(x),""}};_chunkGXMNHGBPcjs.e.call(void 0, );var xu=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?Bt(r[i+1],{shouldAllowHtml:!1,shouldEscapeText:!1}):"",t(r,n,o)}};_chunkGXMNHGBPcjs.e.call(void 0, );var Xv=({listTag:e,listClass:t,itemClass:r,linkTag:n,linkClass:o})=>{let i=st(e),s=t?` class="${st(t)}"`:"",a="li",l=r?` class="${st(r)}"`:"",f=st(n),u=o?` class="${st(o)}"`:"",p=x=>n==="router-link"?` to="${x}"`:` href="${x}"`,d=x=>`<${i}${s}>${x.map(y=>`<${a}${l}><${f}${u}${p(y.link)}>${y.title}</${f}>${y.children.length>0?d(y.children):""}</${a}>`).join("")}</${i}>`;return d},Qv=({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],l=n.eMarks[o],f=n.src.slice(a,l).split(" ")[0];if(!e.test(f))return!1;if(s)return!0;n.line=o+1;let u=n.push("toc_open",t,1);u.markup="",u.map=[o,n.line],r&&u.attrSet("class",r);let p=n.push("toc_body","",0);p.markup=f,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},Cu=(e,{pattern:t=/^\[\[toc\]\]$/i,slugify:r=at,format:n,level:o=[2,3],shouldAllowNested:i=!1,containerTag:s="nav",containerClass:a="table-of-contents",listTag:l="ul",listClass:f="",itemClass:u="",linkTag:p="a",linkClass:d=""}={})=>{e.block.ruler.before("heading","toc",Qv({pattern:t,containerTag:s,containerClass:a}),{alt:["paragraph","reference","blockquote"]});let x=Xv({listTag:l,listClass:f,itemClass:u,linkTag:p,linkClass:d});e.renderer.rules.toc_body=y=>x(jr(y,{level:o,shouldAllowHtml:!0,shouldAllowNested:i,shouldEscapeText:!0,slugify:r,format:n}))};var _cssi18n = require('css-i18n');_chunkGXMNHGBPcjs.e.call(void 0, );var _katex = require('katex'); var _katex2 = _interopRequireDefault(_katex);function Su(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 Zv(e,t){let r,n,o,i;if(e.src[e.pos]!=="$")return!1;if(o=Su(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=Su(e,r),o.can_close?(t||(n=e.push("math_inline","math",0),n.markup="$",n.content=e.src.slice(s,r)),e.pos=r+1,!0):(t||(e.pending+="$"),e.pos=s,!0))}function Jv(e,t,r,n){let o,i,s,a,l=!1,f=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(f+2>u||e.src.slice(f,f+2)!=="$$")return!1;if(f+=2,o=e.src.slice(f,u),n)return!0;for(o.trim().slice(-2)==="$$"&&(o=o.trim().slice(0,-2),l=!0),s=t;!l&&(s++,!(s>=r||(f=e.bMarks[s]+e.tShift[s],u=e.eMarks[s],f<u&&e.tShift[s]<e.blkIndent)));)e.src.slice(f,u).trim().slice(-2)==="$$"&&(a=e.src.slice(0,u).lastIndexOf("$$"),i=e.src.slice(f,a),l=!0);e.line=s+1;let p=e.push("math_block","math",0);return p.block=!0,p.content=(o&&o.trim()?`${o}
17
- `:"")+e.getLines(t+1,s,e.tShift[t],!0)+(i&&i.trim()?i:""),p.map=[t,e.line],p.markup="$$",!0}function pi(e,t){t=t||{};let r=function(s){t.displayMode=!1;try{return _katex2.default.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>${_katex2.default.renderToString(s,t)}</p>`}catch(a){return t.throwOnError&&console.warn(a),s}},i=function(s,a){return`${o(s[a].content)}
18
- `};e.inline.ruler.after("escape","math_inline",Zv),e.block.ruler.after("blockquote","math_block",Jv,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=n,e.renderer.rules.math_block=i}_chunkGXMNHGBPcjs.e.call(void 0, );var _markdownitcontainer = require('markdown-it-container'); var _markdownitcontainer2 = _interopRequireDefault(_markdownitcontainer);_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );var Ru="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var e_=128,Ke,Ye,Eu=e=>{!Ke||Ke.length<e?(Ke=Buffer.allocUnsafe(e*e_),_crypto2.default.randomFillSync(Ke),Ye=0):Ye+e>Ke.length&&(_crypto2.default.randomFillSync(Ke),Ye=0),Ye+=e},t_=e=>(Eu(e-=0),Ke.subarray(Ye-e,Ye)),r_=(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),l=o;for(;l--;)if(s+=e[a[l]&n]||"",s.length===i)return s}}},Au=(e,t=21)=>r_(e,t,t_),di=(e=21)=>{Eu(e-=0);let t="";for(let r=Ye-e;r<Ye;r++)t+=Ru[Ke[r]&63];return t};_chunkGXMNHGBPcjs.e.call(void 0, );function ku(e){return e.trim().replace(/=(\d*)/,"").replace(/:(no-)?line-numbers({| |$|=\d*).*/,"").replace(/(-vue|{| ).*$/,"").replace(/^vue-html$/,"template").replace(/^ansi$/,"")}function mi(e){let{theme:t}=e,r=typeof t=="string"||"name"in t,n="";if(r){n=" va-adaptive-theme";let o=typeof t=="string"?t:t.name;n=o.includes("dark")||o.includes("night")?" dark":" light"}return n}function Pu(e,t=!1){return t?_optionalChain([e, 'access', _50 => _50.replace, 'call', _51 => _51(/<!--[^]*?-->/g,""), 'access', _52 => _52.match, 'call', _53 => _53(/data-title="(.*?)"/), 'optionalAccess', _54 => _54[1]])||"":_optionalChain([e, 'access', _55 => _55.match, 'call', _56 => _56(/\[(.*)\]/), 'optionalAccess', _57 => _57[1]])||ku(e)||"txt"}function n_(e){let t=_optionalChain([e, 'optionalAccess', _58 => _58.siteConfig, 'optionalAccess', _59 => _59.codeHeightLimit]);return t===void 0||t<=0?"":`style="max-height: ${t}px;"`}function Ou(e,t){let r=e.renderer.rules.fence;e.renderer.rules.fence=(...n)=>{let[o,i]=n,s=o[i];s.info=s.info.replace(/\[.*\]/,"");let a=ku(s.info),l=r(...n);return`
19
- <div ${n_(t)} class="language-${a}${mi(t)}${/ active( |$)/.test(s.info)?" active":""}">
20
- <button title="Copy Code" class="copy"></button><span class="lang">${a}</span>${l}<button class="collapse"></button>
21
- </div>`}}function o_(e,{icon:t,color:r,text:n,langs:o}={}){return[_markdownitcontainer2.default,e,{render(i,s){let a=i[s],l=a.info.trim().slice(e.length).trim();if(a.nesting===1){if(e==="details")return`<details class="${e} custom-block">${`<summary>${l}</summary>`}
22
- `;let f="";t&&(f=`<i class="icon ${t}" ${r?`style="color: ${r}"`:""}></i>`);let u=`<span lang="en">${l||n}</span>`;return o&&Object.keys(o).forEach(p=>{u+=`<span lang="${p}">${l||o[p]}</span>`}),`<div class="${e} custom-block"><p class="custom-block-title">${f}${u}</p>
23
- `}else return e==="details"?`</details>
24
- `:`</div>
25
- `}}]}var Tu={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 $u(e,t={}){Object.keys(Tu).forEach(n=>{let o={...Tu[n],...t[n]||{}};e.use(...o_(n,o))}),e.use(...i_(t)),e.use(_markdownitcontainer2.default,"v-pre",{render:(n,o)=>n[o].nesting===1?`<div v-pre>
26
- `:`</div>
27
- `}),["zh-CN","en"].forEach(n=>{e.use(_markdownitcontainer2.default,n,{render:(o,i)=>o[i].nesting===1?`<div lang="${n}">
28
- `:`</div>
29
- `})})}function i_(e){return[_markdownitcontainer2.default,"code-group",{render(t,r){if(t[r].nesting===1){let n=di(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 l=Pu(a?t[s].content:t[s].info,a);if(l){let f=di(7);o+=`<input type="radio" name="group-${n}" id="tab-${f}" ${i}><label for="tab-${f}">${l}</label>`,i&&!a&&(t[s].info+=" active"),i=""}}}return`<div class="vp-code-group${mi({theme:e.theme})}"><div class="tabs">${o}</div><div class="blocks">
30
- `}return`</div></div>
31
- `}}]}_chunkGXMNHGBPcjs.e.call(void 0, );var Vu=_chunkGXMNHGBPcjs.c.call(void 0, hi(),1);var _shiki = require('shiki');_chunkGXMNHGBPcjs.e.call(void 0, );function Gt(e,t={}){return({code:r})=>{let n=_nullishCoalesce(t.tagRegExp, () => (/(?:\/\/|\/\*{1,2}) *\[!code ([\w+-]+)(?::(\d+))?] *(?:\*{1,2}\/)?/)),o=[];return r=r.split(`
32
- `).map((i,s)=>{let[a,l,f]=_nullishCoalesce(i.match(n), () => ([]));return!a||!Object.keys(e).includes(l)?i:(Array.from({length:Number(_nullishCoalesce(f, () => (1)))}).forEach((u,p)=>{o.push({line:s+p+1,classes:e[l]})}),i.replace(n,""))}).join(`
33
- `),{code:r,lineOptions:o}}}function Rt(e,t,r){let n=new RegExp(`<${_nullishCoalesce(r, () => ("w+"))}[^>]*class="([\\w+-:;\\/* ]*)"`);return t=Array.isArray(t)?t:[t],e.replace(n,(o,i)=>o.replace(i,`${i} ${t}`))}function Lu(e={}){let t=_nullishCoalesce(e.commonDiffClass, () => ("diff")),r=_nullishCoalesce(e.removedLinesClasses, () => (["remove"])),n=_nullishCoalesce(e.removedLinesClasses, () => (["add"])),o=_nullishCoalesce(e.removeLineTag, () => ("--")),i=_nullishCoalesce(e.addLineTag, () => ("++")),s=_nullishCoalesce(e.hasDiffClass, () => ("has-diff"));return{name:"diff",handler:Gt({[o]:[t,...r],[i]:[t,...n]},e),postProcess:({code:a})=>a.includes(t)?Rt(a,s,"pre"):a}}function Nu(e={}){let t=_nullishCoalesce(e.hasFocusClass, () => ("has-focus")),r=_nullishCoalesce(e.hasFocusedLinesClass, () => ("has-focused-lines")),n=_nullishCoalesce(e.focusTag, () => ("focus"));return{name:"focus",handler:Gt({[n]:[t]},e),postProcess:({code:o})=>o.includes(t)?Rt(o,r,"pre"):o}}function Mu(e={}){let t=_nullishCoalesce(e.hasHighlightClass, () => ("has-highlight")),r=_nullishCoalesce(e.hasHighlightedLinesClass, () => ("has-highlighted-lines")),n=_nullishCoalesce(e.highlightTag, () => ("hl"));return{name:"highlight",handler:Gt({[n]:[t]},e),postProcess:({code:o})=>o.includes(t)?Rt(o,r,"pre"):o}}function l_(e,t,r){return e.reduce((n,o)=>{let{code:i,lineOptions:s}=_nullishCoalesce(_optionalChain([o, 'access', _60 => _60.handler, 'optionalCall', _61 => _61({code:n.code,lang:r})]), () => (n));return{code:i,lineOptions:[...n.lineOptions,...s]}},{code:t,lineOptions:[]})}function u_(e,t,r){return e.reduce((n,o)=>_nullishCoalesce(_optionalChain([o, 'access', _62 => _62.postProcess, 'optionalCall', _63 => _63({code:n,lang:r})]), () => (n)),t)}async function Du(e={}){let t=await _shiki.getHighlighter.call(void 0, e),r=_nullishCoalesce(e.processors, () => ([]));return{...t,codeToHtml:(n,o)=>{let i=typeof o=="object"?o.lang:o,s=typeof o=="object"?_nullishCoalesce(o.lineOptions, () => ([])):[],a=typeof o=="object"?o.theme:void 0,{code:l,lineOptions:f}=l_(r,n,i),u=t.codeToHtml(l,{lang:i,theme:a,lineOptions:[...f,...s]});return u_(r,u,i)}}}var p_=Au("abcdefghijklmnopqrstuvwxyz",10);function d_(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"]}))):[]}var m_={name:"error-level",handler:Gt({error:["highlighted","error"],warning:["highlighted","warning"]})};async function Hu(e,t=[],r="",n=console){let o=typeof e=="string"||"name"in e,i=y=>typeof y=="string"?y:y.name,s=[Nu(),Mu({hasHighlightClass:"highlighted"}),Lu(),m_],a=await Du({themes:o?[e]:[e.dark,e.light],langs:[..._shiki.BUNDLED_LANGUAGES,...t],processors:s}),l=/<pre[^>]*(style=".*?")/,f=/^<pre(.*?)>/,u=/-vue$/,p=/=(\d*)/,d=/:(no-)?line-numbers(=\d*)?$/,x=/\{\{.*?\}\}/g;return(y,_,S)=>{let b=u.test(_)?"":"v-pre";_=_.replace(p,"").replace(d,"").replace(u,"").toLowerCase()||r,_&&!a.getLoadedLanguages().includes(_)&&!["ansi","plaintext","txt","text"].includes(_)&&(n.warn(Vu.default.yellow(`
34
- The language '${_}' is not loaded, falling back to '${r||"txt"}' for syntax highlighting.`)),_=r);let F=d_(S),I=m=>m.replace(f,(A,T)=>`<pre ${b}${T.replace(' tabindex="0"',"")}>`).replace(l,(A,T)=>A.replace(T,"")),U=new Map,P=m=>b?m:m.replace(x,A=>{let T=U.get(A);return T||(T=p_(),U.set(A,T)),T}),M=m=>(U.forEach((A,T)=>{m=m.replaceAll(A,T)}),m),E=m=>m.replace(/(<span class="line highlighted">)(<\/span>)/g,"$1<wbr>$2");y=P(y).trimEnd();let R=m=>{let A=_==="ansi"?a.ansiToHtml(y,{lineOptions:F,theme:i(m)}):a.codeToHtml(y,{lang:_,lineOptions:F,theme:i(m)});return E(I(M(A)))};if(o)return R(e);let O=Rt(R(e.dark),"vp-code-dark","pre"),W=Rt(R(e.light),"vp-code-light","pre");return O+W}}_chunkGXMNHGBPcjs.e.call(void 0, );var yi=/{([\d,-]+)}/;function ju(e){let t=e.renderer.rules.fence;e.renderer.rules.fence=(...r)=>{let[n,o]=r,i=n[o],s=i.attrs&&i.attrs[0],a=null;if(!s){let l=i.info;if(!l||!yi.test(l))return t(...r);let f=l.replace(yi,"").trim();i.info=f,a=yi.exec(l)[1]}return!a&&(a=s[0],!a||!/[\d,-]+/.test(a))?t(...r):(i.info+=` ${a}`,t(...r))}}_chunkGXMNHGBPcjs.e.call(void 0, );var _url = require('url');var h_=/(^|.*\/)index.md(#?.*)$/i;function qu(e,t,r){e.renderer.rules.link_open=(i,s,a,l,f)=>{let u=i[s],p=u.attrIndex("href");if(p>=0){let d=u.attrs[p],x=d[1];xt.test(x)?(Object.entries(t).forEach(([_,S])=>{u.attrSet(_,S)}),d[1]=x.replace(yl,"")):!x.startsWith("#")&&!x.startsWith("mailto:")&&!/\.(?!html|md)\w+($|\?)/i.test(x)&&n(d,l),d[1]=d[1].replace(/\bimport\.meta/g,"import%2Emeta").replace(/\bprocess\.env/g,"process%2Eenv")}return f.renderToken(i,s,a)};function n(i,s){let a=i[1],l=a.match(h_);if(l){let[,f,u]=l;a=f+u}else{let f=a.replace(/[?#].*$/,"");f.endsWith(".md")&&(f=f.replace(/\.md$/,s.cleanUrls==="disabled"?".html":"")),s.cleanUrls==="disabled"&&!f.endsWith(".html")&&!f.endsWith("/")&&(f+=".html");let u=new (0, _url.URL)(a,"http://a.com");a=f+u.search+u.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)}}_chunkGXMNHGBPcjs.e.call(void 0, );function Bu(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 l=1,f=a.match(/=(\d*)/);f&&f[1]&&(l=Number.parseInt(f[1]));let p=o.slice(o.indexOf("<code>"),o.indexOf("</code>")).split(`
35
- `),x=`<div class="line-numbers-wrapper" aria-hidden="true">${[...Array(p.length)].map((_,S)=>`<span class="line-number">${S+l}</span><br>`).join("")}</div>`;return o.replace(/<\/div>$/,`${x}</div>`).replace(/"(language-[^"]*?)"/,'"$1 line-numbers-mode"')}}_chunkGXMNHGBPcjs.e.call(void 0, );var y_=/^(.+?(?:(?:\.([a-z0-9]+))?))(?:(#[\w-]+))?(?: ?(?:{(\d+(?:[,-]\d+)*)? ?(\S+)?}))? ?(?:\[(.+)\])?$/;function v_(e){let[t="",r="",n="",o="",i="",s=""]=(y_.exec(e)||[]).slice(1),a=s||t.split("/").pop()||"";return{filepath:t,extension:r,region:n,lines:o,lang:i,title:a}}function __(e){let t=e.split(`
36
- `),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(`
37
- `):e}function Gu(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 x_(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(Gu(s,a,t)){o=i+1,n=a;break}}else if(Gu(s,n,t,!0))return{start:o,end:i,regexp:n};return null}function Wu(e,t){let r=(o,i,s,a)=>{let f=o.bMarks[i]+o.tShift[i],u=o.eMarks[i];if(o.sCount[i]-o.blkIndent>=4)return!1;for(let R=0;R<3;++R)if(o.src.charCodeAt(f+R)!==60||f+R>=u)return!1;if(a)return!0;let p=f+3,d=o.skipSpacesBack(u,f),x=o.src.slice(p,d).trim().replace(/^@/,t).trim(),{filepath:y,extension:_,region:S,lines:b,lang:F,title:I}=v_(x);o.line=i+1;let U=o.push("fence","code",0);U.info=`${F||_}${b?`{${b}}`:""}${I?`[${I}]`:""}`;let{realPath:P,path:M}=o.env,E=_path2.default.resolve(_path2.default.dirname(_nullishCoalesce(P, () => (M))),y);return U.src=[E,S.slice(1)],U.markup="```",U.map=[i,i+1],!0},n=e.renderer.rules.fence;e.renderer.rules.fence=(...o)=>{let[i,s,,{includes:a}]=o,l=i[s],[f,u]=_nullishCoalesce(l.src, () => ([]));if(!f)return n(...o);a&&a.push(f);let p=_fsextra2.default.statSync(f).isFile();if(!_fsextra2.default.existsSync(f)||!p)return l.content=p?`Code snippet path not found: ${f}`:"Invalid code snippet option",l.info="",n(...o);let d=_fsextra2.default.readFileSync(f,"utf8");if(u){let x=d.split(/\r?\n/),y=x_(x,u);y&&(d=__(x.slice(y.start,y.end).filter(_=>!y.regexp.test(_.trim())).join(`
38
- `)))}return l.content=d,n(...o)},e.block.ruler.before("fence","snippet",r)}_chunkGXMNHGBPcjs.e.call(void 0, );var Ku={light:"github-light",dark:"github-dark"};async function _i(e,t,r=!1,n="/"){let o=_optionalChain([t, 'optionalAccess', _64 => _64.config, 'access', _65 => _65.markdown])||{},i=_nullishCoalesce(o.theme, () => (Ku)),s=_optionalChain([t, 'optionalAccess', _66 => _66.config, 'access', _67 => _67.siteConfig])||{};o.preConfig&&o.preConfig(e),e.use(mu,{...o.component}),e.use(ju).use(Ou,{theme:i,siteConfig:s}).use(Wu,_optionalChain([t, 'optionalAccess', _68 => _68.userRoot])).use($u,{...o.blocks,theme:i}).use(_cssi18n.cssI18nContainer,{languages:_optionalChain([t, 'optionalAccess', _69 => _69.config, 'access', _70 => _70.siteConfig, 'access', _71 => _71.languages])}).use(qu,{target:"_blank",rel:"noreferrer",...o.externalLinks},n),e.use(Bu,o.lineNumbers),_optionalChain([o, 'access', _72 => _72.attrs, 'optionalAccess', _73 => _73.disable])||e.use(_markdownitattrs2.default,o.attrs),e.use(_markdownitemoji.full),r||e.use(_markdownitanchor2.default,{slugify:at,permalink:_markdownitanchor2.default.permalink.linkInsideHeader({symbol:"&ZeroWidthSpace;",renderAttrs:(l,f)=>{let u=f.tokens.findIndex(d=>{let y=_optionalChain([d, 'access', _74 => _74.attrs, 'optionalAccess', _75 => _75.find, 'call', _76 => _76(_=>_[0]==="id")]);return y&&l===y[1]});return{"aria-label":`Permalink to "${f.tokens[u+1].content}"`}}}),...o.anchor}),e.use(gu,{...o.frontmatter}).use(hu,{slugify:at,...o.headers}).use(_u,{...o.sfc}).use(xu).use(Cu,{...o.toc}),e.use(pi,o.katex);let a=_optionalChain([t, 'optionalAccess', _77 => _77.config, 'access', _78 => _78.siteConfig, 'access', _79 => _79.vanillaLazyload])||{enable:!1};return e.use(fu,{figcaption:!0,lazy:!0,async:!0,...a.enable?{lazy:!0,async:!0,classes:"lazy"}:{},...o.imageFigures}),e.use(_markdownittasklists2.default),o.config&&o.config(e),e}async function Yu(e){let t=_optionalChain([e, 'optionalAccess', _80 => _80.config, 'access', _81 => _81.markdown])||{},r=_nullishCoalesce(t.theme, () => (Ku)),n=_markdownit2.default.call(void 0, {html:!0,linkify:!0,highlight:await Hu(r,t.languages,t.defaultHighlightLang),...t.options});return await _i(n,e),n}_chunkGXMNHGBPcjs.e.call(void 0, );var _jiti = require('jiti'); var _jiti2 = _interopRequireDefault(_jiti);var _unocss = require('unocss');_chunkGXMNHGBPcjs.e.call(void 0, );function Xu(e,t,r=""){return e={...e},Object.keys(t).forEach(n=>{_utils.isObject.call(void 0, e[n])?e[n]=Xu(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 Qu(e,t,r,n,o=!0){let i=n;for(let s of e){let a=_path.resolve.call(void 0, s,"setup",t);if(_fsextra2.default.existsSync(a)){let{default:l}=_jiti2.default.call(void 0, _url.fileURLToPath.call(void 0, (0, _chunkGXMNHGBPcjs.d)))(a),f=await l(r);f!==null&&(i=o?Xu(i,f):f)}}return i}async function j_(e){let{config:t}=e,r=["i-ri-clipboard-line","i-ri-archive-line","i-ri-folder-2-line","i-ri-price-tag-3-line","i-ri-cloud-line"].concat(_optionalChain([e, 'access', _82 => _82.config, 'access', _83 => _83.unocss, 'optionalAccess', _84 => _84.safelist])||[]),n="animate-fade-in m-auto text-left".split(" ").concat(["rotate-y-180"]).concat(r),o=t.siteConfig;_optionalChain([o, 'access', _85 => _85.social, 'optionalAccess', _86 => _86.length])&&o.social.forEach(s=>n.push(_optionalChain([s, 'optionalAccess', _87 => _87.icon])||""));let i=_optionalChain([o, 'access', _88 => _88.sponsor, 'optionalAccess', _89 => _89.methods])||[];return i.length&&i.forEach(s=>n.push(_optionalChain([s, 'optionalAccess', _90 => _90.icon])||"")),n}async function q_(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:[_unocss.presetUno.call(void 0, _optionalChain([t, 'access', _91 => _91.unocssPresets, 'optionalAccess', _92 => _92.uno])),_unocss.presetAttributify.call(void 0, _optionalChain([t, 'access', _93 => _93.unocssPresets, 'optionalAccess', _94 => _94.attributify])),_unocss.presetIcons.call(void 0, {scale:1.2,..._optionalChain([t, 'access', _95 => _95.unocssPresets, 'optionalAccess', _96 => _96.icons])}),_unocss.presetTypography.call(void 0, _optionalChain([t, 'access', _97 => _97.unocssPresets, 'optionalAccess', _98 => _98.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:[_unocss.transformerDirectives.call(void 0, ),_unocss.transformerVariantGroup.call(void 0, )],safelist:await j_(e)}}async function Ju(e){let t=await Promise.resolve().then(() => _interopRequireWildcard(require("unocss/vite"))).then(d=>d.default),{unocss:r}=e.config,n=await q_(e),{themeRoot:o,clientRoot:i,roots:s}=e,a=["uno.config.ts","unocss.config.ts"],l=[];[o,i].forEach(d=>a.forEach(x=>l.push(_path.resolve.call(void 0, d,x))));let u={},p=[];return l.forEach(d=>{if(_fs.existsSync.call(void 0, d)){let x=_jiti2.default.call(void 0, _url.fileURLToPath.call(void 0, (0, _chunkGXMNHGBPcjs.d)))(d);"default"in x&&(x=x.default),u=_defu2.default.call(void 0, u,x),p.push(d)}}),u=await Qu(s,"unocss.ts",{},u,!0),t({configDeps:p,configFile:!1,..._defu2.default.call(void 0, r||{},u,n)})}_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );async function Ur({userRoot:e,themeRoot:t},r){let n={mode:"development",command:r},o={},i=_utils.uniq.call(void 0, [t,e]).map(s=>_path.join.call(void 0, s,"vite.config.ts"));for await(let s of i){if(!_fsextra2.default.existsSync(s))continue;let a=await _vite.loadConfigFromFile.call(void 0, n,s);_optionalChain([a, 'optionalAccess', _99 => _99.config])&&(o=_vite.mergeConfig.call(void 0, o,a.config))}return o}async function Gr({clientRoot:e,themeRoot:t,userRoot:r,config:n}){let o=_path.resolve.call(void 0, e,"template.html"),i=await _fsextra2.default.readFile(o,"utf-8"),s="",a="";n.siteConfig.favicon&&(s+=`<link rel="icon" href="${n.siteConfig.favicon}">`);let l=[r,t];n.siteConfig.mode==="auto"&&(s+=`
39
- <script>
40
- const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
41
- const colorSchemeSetting = localStorage.getItem('vueuse-color-scheme') || 'auto';
42
- if (colorSchemeSetting === 'dark' || (prefersDark && colorSchemeSetting !== 'light')) {
43
- document.documentElement.classList.toggle('dark', true);
44
- }
45
- </script>
46
- `),n.siteConfig.lang&&(s+=`
47
- <script>
48
- const locale = localStorage.getItem('valaxy-locale') || '${n.siteConfig.lang}';
49
- document.documentElement.setAttribute('lang', locale);
50
- </script>
51
- `);for(let f of l){let u=_path.join.call(void 0, f,"index.html");if(!_fsextra2.default.existsSync(u))continue;let p=await _fsextra2.default.readFile(u,"utf-8");s+=`
52
- ${(_optionalChain([p, 'access', _100 => _100.match, 'call', _101 => _101(/<head>([\s\S]*?)<\/head>/im), 'optionalAccess', _102 => _102[1]])||"").trim()}`,a+=`
53
- ${(_optionalChain([p, 'access', _103 => _103.match, 'call', _104 => _104(/<body>([\s\S]*?)<\/body>/im), 'optionalAccess', _105 => _105[1]])||"").trim()}`}return i=i.replace("__ENTRY__",Q(_path.join.call(void 0, e,"main.ts"))).replace("<!-- head -->",s).replace("<!-- body -->",a),i}var Q_=["@unhead/schema-org","@unhead/vue","@vueuse/integrations/useFuse","body-scroll-lock","defu","dayjs","dayjs/locale/zh-cn","dayjs/plugin/relativeTime","dayjs/plugin/timezone","dayjs/plugin/utc","katex","nprogress","unocss","vue","vue-router","vue-i18n","fuse.js","medium-zoom","vanilla-lazyload"],rf=["@docsearch/css","@vueuse/core","@vueuse/shared","@unocss/reset","unocss","vue","vue-demi","meting","valaxy","/@valaxyjs/config","/@valaxyjs/context","/@valaxyjs/addons","/@valaxyjs/locales","/@valaxyjs/styles"];function nf(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",config(n){let o={root:e.clientRoot,publicDir:_path.join.call(void 0, e.userRoot,"public"),define:bi(e),resolve:{alias:Z_(e),dedupe:["vue"]},optimizeDeps:{entries:[_path.resolve.call(void 0, e.clientRoot,"main.ts")],include:_utils.uniq.call(void 0, [...Q_,...t,...r]).filter(i=>!rf.includes(i)),exclude:rf},server:{fs:{allow:_utils.uniq.call(void 0, [_vite.searchForWorkspaceRoot.call(void 0, e.clientRoot),_vite.searchForWorkspaceRoot.call(void 0, e.themeRoot),_vite.searchForWorkspaceRoot.call(void 0, e.userRoot),_path.dirname.call(void 0, $e("katex/package.json",!0))])}}};return _isinstalledglobally2.default&&(o.cacheDir=_path.join.call(void 0, e.pkgRoot,"node_modules/.vite"),o.resolve.alias.vue=`${$e("vue/dist/vue.esm-browser.js",!0)}`),_vite.mergeConfig.call(void 0, n,o)},configureServer(n){return()=>{n.middlewares.use(async(o,i,s)=>{if(o.url.endsWith(".html")){i.setHeader("Content-Type","text/html"),i.statusCode=200,i.end(await Gr(e));return}if(o.url==="/atom.xml"){i.setHeader("Content-Type","application/xml"),i.statusCode=200,i.end(await _fsextra2.default.readFile(_path.resolve.call(void 0, e.userRoot,"dist/atom.xml"),"utf-8"));return}s()})}}}}function bi(e){return{}}function Z_(e){let t=[{find:"~/",replacement:`${Q(e.userRoot)}/`},{find:"valaxy/client/",replacement:`${Q(e.clientRoot)}/`},{find:"valaxy/package.json",replacement:Q(_path.resolve.call(void 0, e.clientRoot,"../package.json"))},{find:/^valaxy$/,replacement:Q(_path.resolve.call(void 0, e.clientRoot,"index.ts"))},{find:"@valaxyjs/client/",replacement:`${Q(e.clientRoot)}/`},{find:`valaxy-theme-${e.theme}/`,replacement:`${Q(_path.resolve.call(void 0, e.themeRoot))}/`},{find:`valaxy-theme-${e.theme}`,replacement:`${Q(_path.resolve.call(void 0, e.themeRoot))}/client/index.ts`}];return e.config.siteConfig.encrypt.enable&&t.push({find:/^vue$/,replacement:$e("vue/dist/vue.esm-bundler.js",!0)}),e.addons.forEach(r=>{t.push({find:`${r.name}/client/`,replacement:`${Q(`${_path.resolve.call(void 0, r.root)}`)}/client/`}),t.push({find:`${r.name}/App.vue`,replacement:`${Q(_path.resolve.call(void 0, r.root))}/App.vue`}),t.push({find:r.name,replacement:`${Q(_path.resolve.call(void 0, r.root))}/client/index.ts`})}),t.push({find:/^valaxy-addon-(.*)$/,replacement:Q(_path.resolve.call(void 0, e.clientRoot,"./addons/index.ts"))}),t}_chunkGXMNHGBPcjs.e.call(void 0, );function of({clientRoot:e,themeRoot:t,userRoot:r}){let n=_utils.slash.call(void 0, _path.resolve.call(void 0, 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=[],l=[];return _utils.uniq.call(void 0, [t,r]).map(u=>_path.join.call(void 0, u,"setup",s)).forEach((u,p)=>{if(!_fs.existsSync.call(void 0, u))return;a.push(`import __n${p} from '${Q(u)}'`);let d=`__n${p}`;/\binjection_return\b/g.test(o)&&(d=`injection_return = ${d}`),/\binjection_arg\b/g.test(o)?d+="(injection_arg)":d+="()",l.push(`// ${u}`,d)}),o=o.replace("/* __imports__ */",a.join(`
54
- `)),o=o.replace("/* __injections__ */",l.join(`
55
- `)),o}return null}}}_chunkGXMNHGBPcjs.e.call(void 0, );function sf(e){let t=_utils.objectEntries.call(void 0, bi(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}}}]}_chunkGXMNHGBPcjs.e.call(void 0, );var _vitepluginpages = require('vite-plugin-pages'); var _vitepluginpages2 = _interopRequireDefault(_vitepluginpages);var _htmltotext = require('html-to-text');_chunkGXMNHGBPcjs.e.call(void 0, );function a1(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 c1({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 l1({cn:e,en:t}){let r=e+t;return r<1e3?r:`${Math.round(r/100)/10}k`}function u1(e,t){let r=a1(e);return{countData:r,wordCount:l1(r),readingTime:c1(r,t.readTime)}}function af({route:e,options:t}){if(_fs.existsSync.call(void 0, e.component)){let r=_fs.readFileSync.call(void 0, e.component,"utf-8"),{wordCount:n,readingTime:o}=u1(r,{readTime:Object.assign({speed:{cn:300,en:100}},t.readTime)});e.meta.frontmatter&&(e.meta.frontmatter.wordCount||(e.meta.frontmatter.wordCount=n),e.meta.frontmatter.readingTime||(e.meta.frontmatter.readingTime=o))}}function m1(e="",t="html"){switch(t){case"ai":case"md":return e;case"html":return zr.render(e);case"text":return _htmltotext.convert.call(void 0, zr.render(e));default:return e}}function lf(e){let{roots:t,config:r}=e;return _vitepluginpages2.default.call(void 0, {extensions:["vue","md"],dirs:t.map(n=>`${n}/pages`),...r.pages,async extendRoute(n,o){let i=n.component,s=JSON.parse(JSON.stringify(r.siteConfig.frontmatter))||{};if(n.meta?n.meta.frontmatter||(n.meta.frontmatter=s):n.meta={frontmatter:s},n.path=encodeURI(n.path),n.path==="/"&&(n.meta.layout="home"),t.forEach(a=>{let l=a+n.component;_fsextra2.default.existsSync(l)&&(i=l)}),n.path.startsWith("/posts/")&&(n.meta.layout="post"),i.endsWith(".md")){let a=_fsextra2.default.readFileSync(i,"utf-8"),{data:l,excerpt:f,content:u}=_graymatter2.default.call(void 0, a,{excerpt_separator:Lr}),p=l,d=e.config.siteConfig.lastUpdated;if(delete p.password,p.gallery_password&&(delete p.gallery_password,delete p.photos),p.date||(p.date=_fsextra2.default.statSync(i).mtime),d&&(p.updated||(p.updated=_fsextra2.default.statSync(i).ctime)),_utils.isDate.call(void 0, p.date)||(p.date=new Date(p.date)),_utils.isDate.call(void 0, p.updated)||(p.updated=new Date(p.updated)),n.meta=Object.assign(n.meta,{frontmatter:Object.assign(s,p),excerpt:f?m1(f,p.excerpt_type):""}),l.layout&&(n.meta.layout=l.layout),_optionalChain([n, 'access', _106 => _106.meta, 'access', _107 => _107.frontmatter, 'optionalAccess', _108 => _108.updated])||(n.meta.frontmatter.updated=n.meta.frontmatter.date),n.meta.frontmatter.tags){let y=n.meta.frontmatter.tags;typeof y=="string"&&(n.meta.frontmatter.tags=[y])}r.siteConfig.statistics.enable&&af({options:r.siteConfig.statistics,route:n});let x={route:n,data:l,excerpt:f,content:u,path:i};_optionalChain([r, 'access', _109 => _109.extendMd, 'optionalCall', _110 => _110(x)])}return _optionalChain([r, 'access', _111 => _111.pages, 'optionalAccess', _112 => _112.extendRoute, 'optionalCall', _113 => _113(n,o)]),n}})}_chunkGXMNHGBPcjs.e.call(void 0, );var _pascalcase = require('pascalcase'); var _pascalcase2 = _interopRequireDefault(_pascalcase);_chunkGXMNHGBPcjs.e.call(void 0, );var wt=_chunkGXMNHGBPcjs.c.call(void 0, hi(),1),df=_chunkGXMNHGBPcjs.c.call(void 0, Wo(),1);var _lrucache = require('lru-cache');_chunkGXMNHGBPcjs.e.call(void 0, );function g1(e){let t=new TextEncoder;return _crypto.webcrypto.subtle.importKey("raw",t.encode(e),"PBKDF2",!1,["deriveBits","deriveKey"])}function h1(e,t){return _crypto.webcrypto.subtle.deriveKey({name:"PBKDF2",salt:t,iterations:1e5,hash:"SHA-256"},e,{name:"AES-CBC",length:256},!0,["encrypt","decrypt"])}async function Kr(e,t){let{password:r,iv:n,salt:o}=t,i=await g1(r),s=await h1(i,o),a=new TextEncoder,l=await _crypto.webcrypto.subtle.encrypt({name:"AES-CBC",iv:n},s,a.encode(e));return String.fromCharCode(...new Uint8Array(l))}_chunkGXMNHGBPcjs.e.call(void 0, );function wi(e,t,r,n){let o=/<!--\s*@include:\s*(.*?)\s*-->/g,i=/\{(\d*),(\d*)\}$/;return t.replace(o,(s,a)=>{if(!a.length)return s;let l=a.match(i);l&&(a=a.slice(0,-l[0].length));let f=a[0]==="@";try{let u=f?_path2.default.join(e,a.slice(a[1]==="/"?2:1)):_path2.default.join(_path2.default.dirname(r),a),p=_fsextra2.default.readFileSync(u,"utf-8");if(l){let[,d,x]=l;p=p.split(/\r?\n/).slice(d?Number.parseInt(d,10)-1:void 0,x?Number.parseInt(x,10):void 0).join(`
56
- `)}return n.push(_utils.slash.call(void 0, u)),wi(e,p,u,n)}catch (e18){return s}})}var x1="\u200B",C1="<wbr>",uf=(0,df.default)("vitepress:md"),ff=new (0, _lrucache.LRUCache)({max:1024}),b1=/<!--\s*@include:\s*(.*?)\s*-->/g;function S1(e={},t){let r=["process.env"];return t&&r.push("import.meta",...Object.keys(e)),new RegExp(`\\b(${r.map(n=>n.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")).join("|")})`,"g")}function mf(e,t,r){return e=e.replace(/<a (.*?)>(.*?)<\/a>/g,"<AppLink $1>$2</AppLink>"),e.replace(t,n=>`${n[0]}${r}${n.slice(1)}`)}function R1(e,t,r){if(typeof t.title=="string"){let n=e.parseInline(t.title,{})[0];if(n)return Bt(n,{shouldAllowHtml:!1,shouldEscapeText:!1})}return r}function w1(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 E1(e){let{description:t,head:r}=e;return t!==void 0?t:r&&w1(r,"description")||""}function A1(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}async function gf(e,t,r,n,o=!1,i=!1,s="with-subfolders"){let a=await Yu(e);r=r.map(f=>Te(f.replace(/\.md$/,"")).replace(/\/index$/,""));let l=S1(n,o);return async(f,u,p)=>{let d=u,x=_path2.default.dirname(u),y=Te(_path2.default.relative(t,u)),_=JSON.stringify({src:f,file:d}),S=ff.get(_);if(S)return uf(`[cache hit] ${y}`),S;let b=Date.now(),F=[];f=wi(t,f,d,F),f=f.replace(b1,(L,G)=>{try{let H=_path2.default.join(x,G),re=_fsextra2.default.readFileSync(H,"utf-8");return F.push(Te(H)),re}catch (e19){return L}});let I={path:u,relativePath:y,cleanUrls:s,realPath:d},U=a.render(f,I),{frontmatter:P={},headers:M=[],links:E=[],sfcBlocks:R,title:O=""}=I,W=[],m=L=>{console.warn(wt.default.yellow(`
57
- (!) Found dead link ${wt.default.cyan(L)} in file ${wt.default.white(wt.default.dim(u))}
58
- If it is intended, you can use:
59
- ${wt.default.cyan(`<a href="${L}" target="_blank" rel="noreferrer">${L}</a>`)}`)),W.push(L)};if(E){let L=_path2.default.dirname(u);for(let G of E){if(/\.(?!html|md)\w+($|\?)/i.test(G))continue;if(G.replace(xt,"").startsWith("//localhost:")){m(G);continue}G=G.replace(/[?#].*$/,"").replace(/\.(html|md)$/,"");let H=decodeURIComponent(Te(G.startsWith("/")?G.slice(1):_path2.default.relative(t,_path2.default.resolve(L,G)))).replace(/\/index$/,"");(H.endsWith("/")?r.includes(H.slice(0,-1)):r.includes(H)||_fsextra2.default.existsSync(_path2.default.resolve(L,p,`${H}.html`))||_fsextra2.default.existsSync(_path2.default.resolve(L,p,`${H}/index.html`)))||m(G)}}let A={title:R1(a,P,O),titleTemplate:P.titleTemplate,description:E1(P),frontmatter:P,headers:M,relativePath:y,path:_path2.default.join(t,y)};i&&(A.lastUpdated=await Dt(u));let T="ValaxyMain";function D(){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(H=>`<template #${H}><slot name="${H}" /></template>`).join("")}let h=mf(U,l,C1);h=A1(h,e,P.codeHeightLimit);let{config:{siteConfig:{encrypt:v}}}=e;if(v.enable){let L=/<!-- valaxy-encrypt-start:(?<password>\w+) -->(?<content>.*?)<!-- valaxy-encrypt-end -->/gs,G=/((<!-- valaxy-encrypt-start:\w+ -->)|(<!-- valaxy-encrypt-end -->))/g;if(P.password)h=h.replaceAll(G,"");else{let H=[];for(let Z of h.matchAll(L))H.push(await Kr(Z.groups.content,{password:Z.groups.password,iv:v.iv,salt:v.salt}));P.partiallyEncryptedContents=H.length?H:void 0;let re=0;h=h.replaceAll(L,()=>`<ValaxyDecrypt :encrypted-content="frontmatter.partiallyEncryptedContents[${re++}]" />`)}if(P.password){let H=await Kr(h,{password:P.password,iv:v.iv,salt:v.salt});h="",P.encryptedContent=H,P.encrypt=!0,delete P.password}if(P.gallery_password){let H=await Kr(JSON.stringify(P.photos),{password:P.gallery_password,iv:v.iv,salt:v.salt});P.encryptedPhotos=H,delete P.gallery_password,delete P.photos}}let j=[...F1(_nullishCoalesce(_optionalChain([R, 'optionalAccess', _114 => _114.scripts, 'access', _115 => _115.map, 'call', _116 => _116(L=>L.content)]), () => ([])),A,l),`<template><${T} :frontmatter="frontmatter" :data="data">`,`<template #main-content-md>${h}</template>`,D(),"<slot />",`</${T}></template>`,..._nullishCoalesce(_optionalChain([R, 'optionalAccess', _117 => _117.styles, 'access', _118 => _118.map, 'call', _119 => _119(L=>L.content)]), () => ([])),..._nullishCoalesce(_optionalChain([R, 'optionalAccess', _120 => _120.customBlocks, 'access', _121 => _121.map, 'call', _122 => _122(L=>L.content)]), () => ([]))].join(`
60
- `);uf(`[render] ${u} in ${Date.now()-b}ms.`);let $={vueSrc:j,pageData:A,deadLinks:W,includes:F};return ff.set(f,$),$}}var pf=/<\/script>/,k1=/<\s*script[^>]*\blang=['"]ts['"][^>]*/,P1=/<\s*script[^>]*\bsetup\b[^>]*/,O1=/<\s*script[^>]*\bclient\b[^>]*/,T1=/((?:^|\n|;)\s*)export(\s*)default/,$1=/((?:^|\n|;)\s*)export(.+)as(\s*)default/;function F1(e,t,r){let n=JSON.stringify(t),o=`
61
- export const __pageData = JSON.parse(${JSON.stringify(mf(n,r,x1))})`,i=e.findIndex(l=>pf.test(l)&&!P1.test(l)&&!O1.test(l)),s=e.findIndex(l=>k1.test(l))>-1,a=`
62
- import { provide } from 'vue'
63
- import { useRoute } from 'vue-router'
64
- const data = ${El(t)}
65
-
66
- export default {
67
- name:'${t.relativePath}',
68
- data() {
69
- return { data, frontmatter: data.frontmatter, $frontmatter: data.frontmatter }
70
- },
71
- setup() {
72
- const route = useRoute()
73
- route.meta.frontmatter = Object.assign(route.meta.frontmatter, data.frontmatter)
74
- provide('pageData', data)
75
- }
76
- }`;if(i>-1){let l=e[i],f=T1.test(l)||$1.test(l);e[i]=l.replace(pf,`${o+(f?"":`
77
- ${a}`)}</script>`)}else e.unshift(`<script ${s?'lang="ts"':""}>${o}
78
- ${a}</script>`);return e}_chunkGXMNHGBPcjs.e.call(void 0, );function hf(e,t){e.includes("{%")&&e.includes("%}")&&_consola2.default.error(`${`${t}
79
- `} Please ${_kolorist.red.call(void 0, "remove")} ${_kolorist.cyan.call(void 0, "{% %}")}, because it conflicts with ${_kolorist.yellow.call(void 0, "markdown-it-attrs")}.`)}function q1(e,t){let r=[];_optionalChain([t, 'access', _123 => _123.config, 'access', _124 => _124.features, 'optionalAccess', _125 => _125.katex])&&(r.push(`import "${Q($e("katex/dist/katex.min.css",!0))}"`),r.push(`import "${Q(_path.join.call(void 0, t.clientRoot,"styles/third/katex.scss"))}"`));for(let n of e){let o=[];["index","css-vars"].forEach(s=>{o.push(_path.join.call(void 0, n,"styles",`${s}.css`)),o.push(_path.join.call(void 0, n,"styles",`${s}.scss`))});for(let s of o)_fsextra2.default.existsSync(s)&&r.push(`import "${Q(s)}"`)}return r.join(`
80
- `)}function B1(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(_fsextra2.default.existsSync(s)&&_fsextra2.default.readFileSync(s,"utf-8")){let a=i.replace("-","")+o;t.unshift(`import ${a} from "${Q(s)}"`),t.push(`messages['${i}'] = defu(${a}, messages['${i}'])`)}})}),t.push("export default messages"),t.join(`
81
- `)}function U1(e){let t=e.addons.filter(i=>i.global).filter(i=>_fsextra2.default.existsSync(_path.join.call(void 0, i.root,"./App.vue"))),r=i=>`Addon${_pascalcase2.default.call(void 0, i)}App`,n=t.map(i=>`import ${r(i.name)} from "${i.name}/App.vue"`).join(`
82
- `),o=t.map(i=>`{ component: ${r(i.name)}, props: ${JSON.stringify(i.props)} }`).join(",");return`${n}
83
- export default [${o}]`}var G1='import { defineComponent } from "vue"; export default defineComponent({ render: () => null });';function yf(e){let t=_path.join.call(void 0, e,"App.vue");return _fsextra2.default.existsSync(t)?[`import AppVue from "${Q(t)}"`,"export default AppVue"].join(`
84
- `):G1}function vf(e,t={}){let{config:r}=e,n="/@valaxy",o=e.roots,i,s=!1,a;return{name:"valaxy:loader",enforce:"pre",async configResolved(l){a=l,i=await gf(e,e.userRoot,e.pages,a.define,a.command==="build",e.config.siteConfig.lastUpdated)},configureServer(l){l.watcher.add([e.configFile,e.clientRoot,e.themeRoot,e.userRoot])},resolveId(l){return l.startsWith(n)?l:null},load(l){if(l==="/@valaxyjs/config")return`export default ${JSON.stringify(JSON.stringify(r))}`;if(l==="/@valaxyjs/context")return`export default ${JSON.stringify(JSON.stringify({userRoot:e.userRoot}))}`;if(l==="/@valaxyjs/styles")return q1(o,e);if(l==="/@valaxyjs/locales")return B1(o);if(l==="/@valaxyjs/addons")return U1(e);if(l==="/@valaxyjs/UserAppVue")return yf(e.userRoot);if(l==="/@valaxyjs/ThemeAppVue")return yf(e.themeRoot);if(l.startsWith(n))return{code:"",map:{mappings:""}}},async transform(l,f){if(f.endsWith(".md")){hf(l,f),l.replace("{%","{%"),l.replace("%}","%}");let{vueSrc:u,deadLinks:p,includes:d}=await i(l,f,a.publicDir);return p.length&&(s=!0),d.length&&d.forEach(x=>{this.addWatchFile(x)}),u}},renderStart(){if(s&&!r.ignoreDeadLinks)throw new Error("One or more pages contain dead links.")},async handleHotUpdate(l){let{file:f,server:u,read:p}=l,d=y=>{_optionalChain([t, 'access', _126 => _126.onConfigReload, 'optionalCall', _127 => _127(y,e.config)]),Object.assign(e.config,y),r=y;let _=["/@valaxyjs/config","/@valaxyjs/context"];return[...Array.from(_).map(b=>u.moduleGraph.getModuleById(b))].filter(b=>!!b)};if([e.configFile].includes(f)){let{config:y}=await ve({userRoot:e.userRoot});return d(y)}if(f===e.siteConfigFile){let{siteConfig:y}=await Mr(e.userRoot);return r.siteConfig=_defu.defu.call(void 0, y,ii),d(r)}if(f===e.themeConfigFile){let{config:y}=await ve({userRoot:e.userRoot});return d(y)}if(f===_path.resolve.call(void 0, e.themeRoot,"valaxy.config.ts")){let y=li(e),_=Ct(e.config,y),{config:S}=await ci(e,_);return d(S)}if(f.endsWith(".md")){let y=await p(),{pageData:_,vueSrc:S}=await i(y,f,_path.join.call(void 0, e.userRoot,"public")),F={path:`/${Te(_path.relative.call(void 0, `${e.userRoot}/pages`,f))}`,pageData:_};u.ws.send({type:"custom",event:"valaxy:pageData",data:F}),l.read=()=>S}}}}var zr=new (0, _markdownit2.default)({html:!0});async function zt(e,t={}){let{roots:r,config:n}=e;await _i(zr,e,!0);let o=new Set(["annotation","math","menclose","mfrac","mglyph","mi","mlabeledtr","mn","mo","mover","mpadded","mphantom","mroot","mrow","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics","meting-js"]);return[_pluginvue2.default.call(void 0, {include:[/\.vue$/,/\.md$/],template:{compilerOptions:{isCustomElement:i=>o.has(i)},..._optionalChain([n, 'access', _128 => _128.vue, 'optionalAccess', _129 => _129.template])},...n.vue}),_vite8.default.call(void 0, ),nf(e),of(e),vf(e,t),lf(e),_vitepluginvuelayouts2.default.call(void 0, {layoutsDirs:r.map(i=>`${i}/layouts`)}),_vite4.default.call(void 0, {extensions:["vue","md"],include:[/\.vue$/,/\.vue\?vue/,/\.md$/],exclude:[],allowOverrides:!0,dirs:r.map(i=>`${i}/components`).concat(r.map(i=>`${i}/layouts`)).concat(["src/components","components"]),dts:`${e.userRoot}/components.d.ts`,...n.components}),await Ju(e),_vite6.default.call(void 0, {runtimeOnly:!0,compositionOnly:!0,include:r.map(i=>`${i}/locales/**`)}),_vite.splitVendorChunkPlugin.call(void 0, ),sf(e)]}_chunkGXMNHGBPcjs.e.call(void 0, );function Yr(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function _f(e){let t=[];for(let r of e)if(Array.isArray(r.from))for(let n of r.from)t.push({from:Yr(n),to:Yr(r.to)});else t.push({from:Yr(r.from),to:Yr(r.to)});return t}async function xf(e,t){await _fsextra.ensureFile.call(void 0, t),await _promises.writeFile.call(void 0, t,`
85
- <!DOCTYPE html>
86
- <html lang="en">
87
- <head>
88
- <meta charset="UTF-8">
89
- <meta http-equiv="refresh" content="0; url=${e}">
90
- <link rel="canonical" href="${e}">
91
- </head>
92
- <script>
93
- window.location.href = '${e}' + window.location.search + window.location.hash
94
- </script>
95
- </html>
96
- `)}async function Rf(e,t={}){let r=_vite.mergeConfig.call(void 0, t,{plugins:await zt(e)});await _vite.build.call(void 0, r)}async function wf(e,t={}){let r={plugins:await zt(e),ssr:{noExternal:["workbox-window",/vue-i18n/]}};r.ssgOptions={script:"async",formatting:"minify",crittersOptions:{reduceInlineStyles:!1},onFinished(){_vitessgsitemap2.default.call(void 0, {hostname:e.config.siteConfig.url})}};let n=_vite.mergeConfig.call(void 0, r,t);await _node.build.call(void 0, {},n)}async function Ef(e){let{userRoot:t}=e,r=_path.resolve.call(void 0, t,"dist/index.html");if(_fsextra2.default.existsSync(r)){_consola2.default.info("post process for ssg...");let n=await _fsextra2.default.readFile(r,"utf-8"),o="</html>";if(!n.endsWith(o)){let i=n.lastIndexOf(o);await _fsextra2.default.writeFile(r,n.slice(0,i+o.length),"utf-8")}}await ix(e)}async function ix(e){let t=_path.resolve.call(void 0, e.userRoot,"dist"),n=_f(_nullishCoalesce(_optionalChain([e, 'access', _130 => _130.config, 'access', _131 => _131.siteConfig, 'optionalAccess', _132 => _132.redirects]), () => ([]))).map(async o=>{let i=_path.join.call(void 0, t,`${o.from}.html`),s=_path.join.call(void 0, t,`${o.to}.html`);if(!await _fsextra2.default.pathExists(s))throw new Error(`the route of '${o.to}' not exists`);await xf(o.to,i)});await Promise.all(n)}_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );async function kf(e,t={},r={}){_process2.default.env.EDITOR=_process2.default.env.EDITOR||"code";let n=await zt(e,r),o=_vite.mergeConfig.call(void 0, t,{plugins:n});return await _vite.createServer.call(void 0, o)}_chunkGXMNHGBPcjs.e.call(void 0, );_chunkGXMNHGBPcjs.e.call(void 0, );var _hookable = require('hookable');var lx=["build:before","build:after"];function Qr(e){let t=_hookable.createHooks.call(void 0, );typeof e.config.hooks=="object"&&Object.keys(e.config.hooks).forEach(n=>{let o=n,i=e.config.hooks[o];typeof i=="function"&&(lx.includes(o)?e.mode==="build"&&t.hook(o,i):t.hook(o,i))});let r={version:lt,hooks:t,hook:t.hook,options:e};return e.addons.forEach(n=>{typeof n.setup=="function"&&n.setup(r)}),r}_chunkGXMNHGBPcjs.e.call(void 0, );var _readline = require('readline'); var Tf = _interopRequireWildcard(_readline);var Jr;function en(e,t,r){if(console.log(),console.log(` ${_kolorist.bold.call(void 0, "\u{1F30C} Valaxy")} ${_kolorist.blue.call(void 0, `v${lt}`)}`),console.log(),console.log(`${_kolorist.dim.call(void 0, " \u{1FA90} theme ")} > ${e.theme?_kolorist.green.call(void 0, e.theme):_kolorist.gray.call(void 0, "none")}`),console.log(` ${_kolorist.dim.call(void 0, "\u{1F4C1}")} ${_kolorist.dim.call(void 0, _path2.default.resolve(e.userRoot))}`),t){console.log(),console.log(`${_kolorist.dim.call(void 0, " Preview ")} > ${_kolorist.cyan.call(void 0, `http://localhost:${_kolorist.bold.call(void 0, t)}/`)}`),r&&Object.values(_os2.default.networkInterfaces()).forEach(l=>(l||[]).filter(f=>f.family==="IPv4"&&!f.address.includes("127.0.0.1")).forEach(({address:f})=>{console.log(`${_kolorist.dim.call(void 0, " Network ")} > ${_kolorist.blue.call(void 0, `http://${f}:${_kolorist.bold.call(void 0, t)}/`)}`)})),console.log();let n=`${_kolorist.underline.call(void 0, "r")}${_kolorist.dim.call(void 0, "estart")}`,o=`${_kolorist.underline.call(void 0, "e")}${_kolorist.dim.call(void 0, "dit")}`,i=`${_kolorist.underline.call(void 0, "o")}${_kolorist.dim.call(void 0, "pen")}`,s=`${_kolorist.underline.call(void 0, "q")}${_kolorist.dim.call(void 0, "r")}`,a=`${_kolorist.dim.call(void 0, " | ")}`;console.log(`${_kolorist.dim.call(void 0, " shortcuts ")} > ${n}${a}${i}${a}${s}${a}${o}`)}console.log()}async function Kt(e,t){Jr&&await Jr.close();let r=_vite.mergeConfig.call(void 0, await Ur(e,"serve"),t);try{Jr=await kf(e,r,{async onConfigReload(n,o,i=!1){i&&(_consola2.default.info("[valaxy]",`${_kolorist.yellow.call(void 0, "force")} reload the server`),Kt(e,t));let s=!1;n.theme!==o.theme&&(s=!0),s&&Kt(e,t)}}),await Jr.listen()}catch(n){_consola2.default.error(`failed to start server. error:
97
- `),console.error(n),_process2.default.exit(1)}}function $f(e){_process2.default.stdin.resume(),_process2.default.stdin.setEncoding("utf8"),Tf.emitKeypressEvents(_process2.default.stdin),_process2.default.stdin.isTTY&&_process2.default.stdin.setRawMode(!0),_process2.default.stdin.on("keypress",(t,r)=>{if(r.ctrl&&r.name==="c")_process2.default.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 If(e){e.command("build [root]","build your blog to static content",t=>We(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})=>{bt();let i=await ve({userRoot:r},"build");en(i);let s=Qr(i);await s.hooks.callHook("options:resolved");let a=[];i.config.modules.rss.enable&&a.push(Vr),Yl(s,a);let l=_vite.mergeConfig.call(void 0, await Ur(i,"build"),i.config.vite||{}),f=_vite.mergeConfig.call(void 0, l,{configFile:_path2.default.resolve(i.clientRoot,"vite.config.ts"),build:{emptyOutDir:!0,outDir:_path2.default.resolve(i.userRoot,n)},logLevel:o});await s.hooks.callHook("config:init");let u=_path2.default.resolve(i.clientRoot,"template.html"),p=_path2.default.resolve(i.clientRoot,"index.html");_fsextra2.default.existsSync(u)&&await _fsextra2.default.copyFile(u,p);let d=await Gr(i);await _fsextra2.default.writeFile(p,d,"utf-8"),await s.hooks.callHook("build:before");try{if(t){_consola2.default.info(`use ${_kolorist.yellow.call(void 0, "vite-ssg")} to do ssg build...`);try{await wf(i,f),await Ef(i)}catch(x){_consola2.default.error("[vite-ssg] An internal error occurred."),console.log(x)}}else _consola2.default.info("use vite do spa build..."),await Rf(i,f)}catch(x){console.log(x)}finally{await _fsextra2.default.copyFile(u,p),await s.hooks.callHook("build:after")}})}_chunkGXMNHGBPcjs.e.call(void 0, );var _child_process = require('child_process');var _qrcode = require('qrcode'); var _qrcode2 = _interopRequireDefault(_qrcode);_chunkGXMNHGBPcjs.e.call(void 0, );var _net = require('net'); var _net2 = _interopRequireDefault(_net);async function Pi(e){return await _x(e)?e:await Pi(e+1)}function _x(e){return new Promise(t=>{let r=_net2.default.createServer(n=>{n.write(`Echo server\r
98
- `),n.pipe(n)});r.listen(e,"0.0.0.0"),r.on("error",()=>{t(!1)}),r.on("listening",()=>{r.close(),t(!0)})})}function Nf(e){e.command("* [root]","Start a local server for Valaxy",t=>We(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})=>{ai(),_fsextra2.default.existsSync(_path2.default.resolve(t,"pages"))||_process2.default.exit(0);let s=r||await Pi(4859),a=await ve({userRoot:t});Qr(a);let l=_vite.mergeConfig.call(void 0, {configFile:_path2.default.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 Kt(a,l),en(a,s,o),$f([{name:"r",fullName:"restart",action(){Kt(a,l)}},{name:"o",fullName:"open",async action(){let{default:u}=await Promise.resolve().then(() => _interopRequireWildcard(require("open")));u(`http://localhost:${s}`)}},{name:"q",fullName:"qr",action(){let p=`http://${_optionalChain([Object, 'access', _133 => _133.values, 'call', _134 => _134(_os2.default.networkInterfaces()), 'access', _135 => _135.flat, 'call', _136 => _136(), 'access', _137 => _137.filter, 'call', _138 => _138(d=>_optionalChain([d, 'optionalAccess', _139 => _139.family])==="IPv4"&&!d.address.includes("127.0.0.1")), 'access', _140 => _140[0], 'optionalAccess', _141 => _141.address])||"localhost"}:${s}`;_qrcode2.default.toString(p,{type:"terminal"},(d,x)=>{if(d)throw d;console.log(x)})}},{name:"e",fullName:"edit",action(){_child_process.exec.call(void 0, `code "${t}"`)}}])})}var Yt=_yargs2.default.call(void 0, _helpers.hideBin.call(void 0, _process2.default.argv)).scriptName("valaxy").usage("$0 [args]").version(lt).showHelpOnFail(!1).alias("h","help").alias("v","version");Nf(Yt);If(Yt);au(Yt);var Px=[Vr,ru];Px.forEach(e=>{_optionalChain([e, 'access', _142 => _142.extendCli, 'optionalCall', _143 => _143(Yt)])});function CT(){Yt.help().parse()}exports.a = Dt; exports.b = vl; exports.c = Te; exports.d = ni; exports.e = Q; exports.f = _l; exports.g = Ct; exports.h = oi; exports.i = Cl; exports.j = bl; exports.k = El; exports.l = $e; exports.m = Ry; exports.n = GR; exports.o = wy; exports.p = WR; exports.q = XR; exports.r = Ey; exports.s = QR; exports.t = ii; exports.u = kl; exports.v = ZR; exports.w = ci; exports.x = ve; exports.y = li; exports.z = Ur; exports.A = Gr; exports.B = Rf; exports.C = wf; exports.D = Ef; exports.E = ix; exports.F = kf; exports.G = Yt; exports.H = CT;
99
- /*! Bundled license information:
100
-
101
- is-extglob/index.js:
102
- (*!
103
- * is-extglob <https://github.com/jonschlinkert/is-extglob>
104
- *
105
- * Copyright (c) 2014-2016, Jon Schlinkert.
106
- * Licensed under the MIT License.
107
- *)
108
-
109
- is-glob/index.js:
110
- (*!
111
- * is-glob <https://github.com/jonschlinkert/is-glob>
112
- *
113
- * Copyright (c) 2014-2017, Jon Schlinkert.
114
- * Released under the MIT License.
115
- *)
116
-
117
- is-number/index.js:
118
- (*!
119
- * is-number <https://github.com/jonschlinkert/is-number>
120
- *
121
- * Copyright (c) 2014-present, Jon Schlinkert.
122
- * Released under the MIT License.
123
- *)
124
-
125
- to-regex-range/index.js:
126
- (*!
127
- * to-regex-range <https://github.com/micromatch/to-regex-range>
128
- *
129
- * Copyright (c) 2015-present, Jon Schlinkert.
130
- * Released under the MIT License.
131
- *)
132
-
133
- fill-range/index.js:
134
- (*!
135
- * fill-range <https://github.com/jonschlinkert/fill-range>
136
- *
137
- * Copyright (c) 2014-present, Jon Schlinkert.
138
- * Licensed under the MIT License.
139
- *)
140
-
141
- queue-microtask/index.js:
142
- (*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
143
-
144
- run-parallel/index.js:
145
- (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
146
- */