updates 16.7.3 → 16.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/index.d.ts +8 -1
- package/dist/index.js +22 -77
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -47,11 +47,12 @@ export default {
|
|
|
47
47
|
|
|
48
48
|
### Config Options
|
|
49
49
|
|
|
50
|
-
- `include` *Array\<string | RegExp>*: Array of
|
|
51
|
-
- `exclude` *Array\<string | RegExp>*: Array of
|
|
52
|
-
- `types` *Array\<string>*: Array of
|
|
50
|
+
- `include` *Array\<string | RegExp>*: Array of packages to include
|
|
51
|
+
- `exclude` *Array\<string | RegExp>*: Array of packages to exclude
|
|
52
|
+
- `types` *Array\<string>*: Array of package types to use
|
|
53
53
|
- `registry` *string*: URL to npm registry
|
|
54
|
+
- `minAge` *number*: Minimum package age in hours
|
|
54
55
|
|
|
55
|
-
CLI arguments have precedence over options in the config file
|
|
56
|
+
CLI arguments have precedence over options in the config file. `include` and `exclude` options are merged.
|
|
56
57
|
|
|
57
58
|
© [silverwind](https://github.com/silverwind), distributed under BSD licence
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
//#region index.d.ts
|
|
3
3
|
type Config = {
|
|
4
|
+
/** Array of packages to include */
|
|
4
5
|
include?: Array<string | RegExp>;
|
|
6
|
+
/** Array of packages to exclude */
|
|
5
7
|
exclude?: Array<string | RegExp>;
|
|
8
|
+
/** Array of package types to use */
|
|
6
9
|
types?: Array<string>;
|
|
10
|
+
/** URL to npm registry */
|
|
7
11
|
registry?: string;
|
|
12
|
+
/** Minimum package age in hours */
|
|
13
|
+
minAge?: number;
|
|
8
14
|
};
|
|
15
|
+
declare function canIncludeByDate(date: string | undefined, minAge: number, now: number): boolean;
|
|
9
16
|
//#endregion
|
|
10
|
-
export { Config };
|
|
17
|
+
export { Config, canIncludeByDate };
|
package/dist/index.js
CHANGED
|
@@ -1,92 +1,36 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{createRequire as e}from"node:module";import{argv as t,cwd as n,env as r,exit as i,platform as a,stderr as o,stdout as s,versions as c}from"node:process";import{basename as l,dirname as u,join as d,resolve as f}from"node:path";import{accessSync as p,lstatSync as m,readFileSync as h,truncateSync as g,writeFileSync as _}from"node:fs";import{stripVTControlCharacters as v,styleText as y}from"node:util";import{execFileSync as b}from"node:child_process";import{rootCertificates as x}from"node:tls";import{availableParallelism as S,cpus as C}from"node:os";var w=Object.create,T=Object.defineProperty,E=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,O=Object.getPrototypeOf,
|
|
2
|
+
import{createRequire as e}from"node:module";import{argv as t,cwd as n,env as r,exit as i,platform as a,stderr as o,stdout as s,versions as c}from"node:process";import{basename as l,dirname as u,join as d,resolve as f}from"node:path";import{accessSync as p,lstatSync as m,readFileSync as h,truncateSync as g,writeFileSync as _}from"node:fs";import{stripVTControlCharacters as v,styleText as y}from"node:util";import{execFileSync as b}from"node:child_process";import{rootCertificates as x}from"node:tls";import{availableParallelism as S,cpus as C}from"node:os";var w=Object.create,T=Object.defineProperty,E=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,O=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ee=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=D(t),a=0,o=i.length,s;a<o;a++)s=i[a],!k.call(e,s)&&s!==n&&T(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=E(t,s))||r.enumerable});return e},j=(e,t,n)=>(n=e==null?{}:w(O(e)),ee(t||!e||!e.__esModule?T(n,`default`,{value:e,enumerable:!0}):n,e)),M=e(import.meta.url),te=A(((e,t)=>{function n(e,t){var n=e;return t.slice(0,-1).forEach(function(e){n=n[e]||{}}),t[t.length-1]in n}function r(e){return typeof e==`number`||/^0x[0-9a-f]+$/i.test(e)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function i(e,t){return t===`constructor`&&typeof e[t]==`function`||t===`__proto__`}t.exports=function(e,t){t||={};var a={bools:{},strings:{},unknownFn:null};typeof t.unknown==`function`&&(a.unknownFn=t.unknown),typeof t.boolean==`boolean`&&t.boolean?a.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach(function(e){a.bools[e]=!0});var o={};function s(e){return o[e].some(function(e){return a.bools[e]})}Object.keys(t.alias||{}).forEach(function(e){o[e]=[].concat(t.alias[e]),o[e].forEach(function(t){o[t]=[e].concat(o[e].filter(function(e){return t!==e}))})}),[].concat(t.string).filter(Boolean).forEach(function(e){a.strings[e]=!0,o[e]&&[].concat(o[e]).forEach(function(e){a.strings[e]=!0})});var c=t.default||{},l={_:[]};function u(e,t){return a.allBools&&/^--[^=]+$/.test(t)||a.strings[e]||a.bools[e]||o[e]}function d(e,t,n){for(var r=e,o=0;o<t.length-1;o++){var s=t[o];if(i(r,s))return;r[s]===void 0&&(r[s]={}),(r[s]===Object.prototype||r[s]===Number.prototype||r[s]===String.prototype)&&(r[s]={}),r[s]===Array.prototype&&(r[s]=[]),r=r[s]}var c=t[t.length-1];i(r,c)||((r===Object.prototype||r===Number.prototype||r===String.prototype)&&(r={}),r===Array.prototype&&(r=[]),r[c]===void 0||a.bools[c]||typeof r[c]==`boolean`?r[c]=n:Array.isArray(r[c])?r[c].push(n):r[c]=[r[c],n])}function f(e,t,n){if(!(n&&a.unknownFn&&!u(e,n)&&a.unknownFn(n)===!1)){var i=!a.strings[e]&&r(t)?Number(t):t;d(l,e.split(`.`),i),(o[e]||[]).forEach(function(e){d(l,e.split(`.`),i)})}}Object.keys(a.bools).forEach(function(e){f(e,c[e]===void 0?!1:c[e])});var p=[];e.indexOf(`--`)!==-1&&(p=e.slice(e.indexOf(`--`)+1),e=e.slice(0,e.indexOf(`--`)));for(var m=0;m<e.length;m++){var h=e[m],g,_;if(/^--.+=/.test(h)){var v=h.match(/^--([^=]+)=([\s\S]*)$/);g=v[1];var y=v[2];a.bools[g]&&(y=y!==`false`),f(g,y,h)}else if(/^--no-.+/.test(h))g=h.match(/^--no-(.+)/)[1],f(g,!1,h);else if(/^--.+/.test(h))g=h.match(/^--(.+)/)[1],_=e[m+1],_!==void 0&&!/^(-|--)[^-]/.test(_)&&!a.bools[g]&&!a.allBools&&(!o[g]||!s(g))?(f(g,_,h),m+=1):/^(true|false)$/.test(_)?(f(g,_===`true`,h),m+=1):f(g,a.strings[g]?``:!0,h);else if(/^-[^-]+/.test(h)){for(var b=h.slice(1,-1).split(``),x=!1,S=0;S<b.length;S++){if(_=h.slice(S+2),_===`-`){f(b[S],_,h);continue}if(/[A-Za-z]/.test(b[S])&&_[0]===`=`){f(b[S],_.slice(1),h),x=!0;break}if(/[A-Za-z]/.test(b[S])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(_)){f(b[S],_,h),x=!0;break}if(b[S+1]&&b[S+1].match(/\W/)){f(b[S],h.slice(S+2),h),x=!0;break}else f(b[S],a.strings[b[S]]?``:!0,h)}g=h.slice(-1)[0],!x&&g!==`-`&&(e[m+1]&&!/^(-|--)[^-]/.test(e[m+1])&&!a.bools[g]&&(!o[g]||!s(g))?(f(g,e[m+1],h),m+=1):e[m+1]&&/^(true|false)$/.test(e[m+1])?(f(g,e[m+1]===`true`,h),m+=1):f(g,a.strings[g]?``:!0,h))}else if((!a.unknownFn||a.unknownFn(h)!==!1)&&l._.push(a.strings._||!r(h)?h:Number(h)),t.stopEarly){l._.push.apply(l._,e.slice(m+1));break}}return Object.keys(c).forEach(function(e){n(l,e.split(`.`))||(d(l,e.split(`.`),c[e]),(o[e]||[]).forEach(function(t){d(l,t.split(`.`),c[e])}))}),t[`--`]?l[`--`]=p.slice():p.forEach(function(e){l._.push(e)}),l}})),ne=j(te(),1),re=class extends Error{constructor(e){super(),this.name=`AbortError`,this.message=e}};const ie=e=>globalThis.DOMException===void 0?new re(e):new DOMException(e),ae=e=>{let t=e.reason===void 0?ie(`This operation was aborted.`):e.reason;return t instanceof Error?t:ie(t)};async function oe(e,t,{concurrency:n=1/0,stopOnError:r=!0,signal:i}={}){return new Promise((a,o)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!=`function`)throw TypeError(`Mapper function is required`);if(!((Number.isSafeInteger(n)||n===1/0)&&n>=1))throw TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${n}\` (${typeof n})`);let s=[],c=[],l=new Map,u=!1,d=!1,f=!1,p=0,m=0,h=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),g=e=>{u=!0,d=!0,o(e)};i&&(i.aborted&&g(ae(i)),i.addEventListener(`abort`,()=>{g(ae(i))}));let _=async()=>{if(d)return;let e=await h.next(),n=m;if(m++,e.done){if(f=!0,p===0&&!d){if(!r&&c.length>0){g(AggregateError(c));return}if(d=!0,l.size===0){a(s);return}let e=[];for(let[t,n]of s.entries())l.get(t)!==se&&e.push(n);a(e)}return}p++,(async()=>{try{let r=await e.value;if(d)return;let i=await t(r,n);i===se&&l.set(n,i),s[n]=i,p--,await _()}catch(e){if(r)g(e);else{c.push(e),p--;try{await _()}catch(e){g(e)}}}})()};(async()=>{for(let e=0;e<n;e++){try{await _()}catch(e){g(e);break}if(f||u)break}})()})}const se=Symbol(`skip`);async function ce(e,t){return oe(e,e=>e(),t)}var le={name:`updates`,version:`16.8.0`,description:`Flexible npm and poetry dependency update tool`,author:`silverwind`,repository:`silverwind/updates`,license:`BSD-2-Clause`,bin:`dist/index.js`,types:`dist/index.d.ts`,type:`module`,sideEffects:!1,files:[`dist`],engines:{node:`>=20`},devDependencies:{"@types/minimist":`1.2.5`,"@types/node":`24.6.2`,"@types/rc":`1.2.4`,"@types/semver":`7.7.1`,eslint:`9.37.0`,"eslint-config-silverwind":`105.2.2`,minimist:`1.2.8`,"nano-spawn":`1.0.3`,"p-all":`5.0.1`,rc:`1.2.8`,"registry-auth-token":`5.1.0`,restana:`5.1.0`,semver:`7.7.2`,"smol-toml":`1.4.2`,timerel:`5.8.2`,tsdown:`0.15.6`,"tsdown-config-silverwind":`1.4.0`,typescript:`5.9.3`,"typescript-config-silverwind":`11.0.0`,versions:`13.2.1`,vitest:`3.2.4`,"vitest-config-silverwind":`10.2.0`}},ue=A((e=>{e.parse=e.decode=i,e.stringify=e.encode=n,e.safe=o,e.unsafe=s;var t=typeof process<`u`&&process.platform===`win32`?`\r
|
|
3
3
|
`:`
|
|
4
4
|
`;function n(e,i){var a=[],s=``;typeof i==`string`?i={section:i,whitespace:!1}:(i||={},i.whitespace=i.whitespace===!0);var c=i.whitespace?` = `:`=`;return Object.keys(e).forEach(function(n,r,i){var l=e[n];l&&Array.isArray(l)?l.forEach(function(e){s+=o(n+`[]`)+c+o(e)+`
|
|
5
|
-
`}):l&&typeof l==`object`?a.push(n):s+=o(n)+c+o(l)+t}),i.section&&s.length&&(s=`[`+o(i.section)+`]`+t+s),a.forEach(function(a,o,c){var l=r(a).join(`\\.`),u=(i.section?i.section+`.`:``)+l,d=n(e[a],{section:u,whitespace:i.whitespace});s.length&&d.length&&(s+=t),s+=d}),s}function r(e){return e.replace(/\1/g,`LITERAL\\1LITERAL`).replace(/\\\./g,``).split(/\./).map(function(e){return e.replace(/\1/g,`\\.`).replace(/\2LITERAL\\1LITERAL\2/g,``)})}function i(e){var t={},n=t,i=null,a=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return e.split(/[\r\n]+/g).forEach(function(e,r,o){if(!(!e||e.match(/^\s*[;#]/))){var c=e.match(a);if(c){if(c[1]!==void 0){if(i=s(c[1]),i===`__proto__`){n={};return}n=t[i]=t[i]||{};return}var l=s(c[2]);if(l!==`__proto__`){var u=c[3]?s(c[4]):!0;switch(u){case`true`:case`false`:case`null`:u=JSON.parse(u)}if(l.length>2&&l.slice(-2)===`[]`){if(l=l.substring(0,l.length-2),l===`__proto__`)return;n[l]?Array.isArray(n[l])||(n[l]=[n[l]]):n[l]=[]}Array.isArray(n[l])?n[l].push(u):n[l]=u}}}}),Object.keys(t).filter(function(e,n,i){if(!t[e]||typeof t[e]!=`object`||Array.isArray(t[e]))return!1;var a=r(e),o=t,s=a.pop(),c=s.replace(/\\\./g,`.`);return a.forEach(function(e,t,n){e!==`__proto__`&&((!o[e]||typeof o[e]!=`object`)&&(o[e]={}),o=o[e])}),o===t&&c===s?!1:(o[c]=t[e],!0)}).forEach(function(e,n,r){delete t[e]}),t}function a(e){return e.charAt(0)===`"`&&e.slice(-1)===`"`||e.charAt(0)===`'`&&e.slice(-1)===`'`}function o(e){return typeof e!=`string`||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&a(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,`\\;`).replace(/#/g,`\\#`)}function s(e,t){if(e=(e||``).trim(),a(e)){e.charAt(0)===`'`&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{for(var n=!1,r=``,i=0,o=e.length;i<o;i++){var s=e.charAt(i);if(n)`\\;#`.indexOf(s)===-1?r+=`\\`+s:r+=s,n=!1;else if(`;#`.indexOf(s)!==-1)break;else s===`\\`?n=!0:r+=s}return n&&(r+=`\\`),r.trim()}return e}})),
|
|
5
|
+
`}):l&&typeof l==`object`?a.push(n):s+=o(n)+c+o(l)+t}),i.section&&s.length&&(s=`[`+o(i.section)+`]`+t+s),a.forEach(function(a,o,c){var l=r(a).join(`\\.`),u=(i.section?i.section+`.`:``)+l,d=n(e[a],{section:u,whitespace:i.whitespace});s.length&&d.length&&(s+=t),s+=d}),s}function r(e){return e.replace(/\1/g,`LITERAL\\1LITERAL`).replace(/\\\./g,``).split(/\./).map(function(e){return e.replace(/\1/g,`\\.`).replace(/\2LITERAL\\1LITERAL\2/g,``)})}function i(e){var t={},n=t,i=null,a=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return e.split(/[\r\n]+/g).forEach(function(e,r,o){if(!(!e||e.match(/^\s*[;#]/))){var c=e.match(a);if(c){if(c[1]!==void 0){if(i=s(c[1]),i===`__proto__`){n={};return}n=t[i]=t[i]||{};return}var l=s(c[2]);if(l!==`__proto__`){var u=c[3]?s(c[4]):!0;switch(u){case`true`:case`false`:case`null`:u=JSON.parse(u)}if(l.length>2&&l.slice(-2)===`[]`){if(l=l.substring(0,l.length-2),l===`__proto__`)return;n[l]?Array.isArray(n[l])||(n[l]=[n[l]]):n[l]=[]}Array.isArray(n[l])?n[l].push(u):n[l]=u}}}}),Object.keys(t).filter(function(e,n,i){if(!t[e]||typeof t[e]!=`object`||Array.isArray(t[e]))return!1;var a=r(e),o=t,s=a.pop(),c=s.replace(/\\\./g,`.`);return a.forEach(function(e,t,n){e!==`__proto__`&&((!o[e]||typeof o[e]!=`object`)&&(o[e]={}),o=o[e])}),o===t&&c===s?!1:(o[c]=t[e],!0)}).forEach(function(e,n,r){delete t[e]}),t}function a(e){return e.charAt(0)===`"`&&e.slice(-1)===`"`||e.charAt(0)===`'`&&e.slice(-1)===`'`}function o(e){return typeof e!=`string`||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&a(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,`\\;`).replace(/#/g,`\\#`)}function s(e,t){if(e=(e||``).trim(),a(e)){e.charAt(0)===`'`&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch{}}else{for(var n=!1,r=``,i=0,o=e.length;i<o;i++){var s=e.charAt(i);if(n)`\\;#`.indexOf(s)===-1?r+=`\\`+s:r+=s,n=!1;else if(`;#`.indexOf(s)!==-1)break;else s===`\\`?n=!0:r+=s}return n&&(r+=`\\`),r.trim()}return e}})),de=A(((e,t)=>{var n=1,r=2;function i(){return``}function a(e,t,n){return e.slice(t,n).replace(/\S/g,` `)}t.exports=function(e,t){t||={};for(var o,s,c=!1,l=!1,u=0,d=``,f=t.whitespace===!1?i:a,p=0;p<e.length;p++)if(o=e[p],s=e[p+1],!l&&o===`"`&&(e[p-1]===`\\`&&e[p-2]!==`\\`||(c=!c)),!c){if(!l&&o+s===`//`)d+=e.slice(u,p),u=p,l=n,p++;else if(l===n&&o+s===`\r
|
|
6
6
|
`){p++,l=!1,d+=f(e,u,p),u=p;continue}else if(l===n&&o===`
|
|
7
|
-
`)l=!1,d+=f(e,u,p),u=p;else if(!l&&o+s===`/*`){d+=e.slice(u,p),u=p,l=r,p++;continue}else if(l===r&&o+s===`*/`){p++,l=!1,d+=f(e,u,p+1),u=p+1;continue}}return d+(l?f(e.substr(u)):e.substr(u))}})),
|
|
8
|
-
GFS4: `),console.error(e)}),!n[s]){var f=global[s]||[];u(n,f),n.close=(function(e){function t(t,r){return e.call(n,t,function(e){e||g(),typeof r==`function`&&r.apply(this,arguments)})}return Object.defineProperty(t,c,{value:e}),t})(n.close),n.closeSync=(function(e){function t(t){e.apply(n,arguments),g()}return Object.defineProperty(t,c,{value:e}),t})(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&process.on(`exit`,function(){d(n[s]),j(`assert`).equal(n[s].length,0)})}global[s]||u(global,n[s]),t.exports=p(a(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(t.exports=p(n),n.__patched=!0);function p(e){r(e),e.gracefulify=p,e.createReadStream=T,e.createWriteStream=E;var t=e.readFile;e.readFile=n;function n(e,n,r){return typeof n==`function`&&(r=n,n=null),i(e,n,r);function i(e,n,r,a){return t(e,n,function(t){t&&(t.code===`EMFILE`||t.code===`ENFILE`)?m([i,[e,n,r],t,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var a=e.writeFile;e.writeFile=o;function o(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,o){return a(e,t,n,function(a){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?m([i,[e,t,n,r],a,o||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=c);function c(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return s(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=u);function u(e,t,n,r){return typeof n==`function`&&(r=n,n=0),i(e,t,n,r);function i(e,t,n,r,a){return l(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var d=e.readdir;e.readdir=h;var f=/^v[0-5]\./;function h(e,t,n){typeof t==`function`&&(n=t,t=null);var r=f.test(process.version)?function(e,t,n,r){return d(e,i(e,t,n,r))}:function(e,t,n,r){return d(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(a,o){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?m([r,[e,t,n],a,i||Date.now(),Date.now()]):(o&&o.sort&&o.sort(),typeof n==`function`&&n.call(this,a,o))}}}if(process.version.substr(0,4)===`v0.8`){var g=i(e);x=g.ReadStream,C=g.WriteStream}var _=e.ReadStream;_&&(x.prototype=Object.create(_.prototype),x.prototype.open=S);var v=e.WriteStream;v&&(C.prototype=Object.create(v.prototype),C.prototype.open=w),Object.defineProperty(e,`ReadStream`,{get:function(){return x},set:function(e){x=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,`WriteStream`,{get:function(){return C},set:function(e){C=e},enumerable:!0,configurable:!0});var y=x;Object.defineProperty(e,`FileReadStream`,{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var b=C;Object.defineProperty(e,`FileWriteStream`,{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});function x(e,t){return this instanceof x?(_.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function S(){var e=this;O(e.path,e.flags,e.mode,function(t,n){t?(e.autoClose&&e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n),e.read())})}function C(e,t){return this instanceof C?(v.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function w(){var e=this;O(e.path,e.flags,e.mode,function(t,n){t?(e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n))})}function T(t,n){return new e.ReadStream(t,n)}function E(t,n){return new e.WriteStream(t,n)}var D=e.open;e.open=O;function O(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return D(e,t,n,function(o,s){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}return e}function m(e){d(`ENQUEUE`,e[0].name,e[1]),n[s].push(e),_()}var h;function g(){for(var e=Date.now(),t=0;t<n[s].length;++t)n[s][t].length>2&&(n[s][t][3]=e,n[s][t][4]=e);_()}function _(){if(clearTimeout(h),h=void 0,n[s].length!==0){var e=n[s].shift(),t=e[0],r=e[1],i=e[2],a=e[3],o=e[4];if(a===void 0)d(`RETRY`,t.name,r),t.apply(null,r);else if(Date.now()-a>=6e4){d(`TIMEOUT`,t.name,r);var c=r.pop();typeof c==`function`&&c.call(null,i)}else{var l=Date.now()-o,u=Math.max(o-a,1),f=Math.min(u*1.2,100);l>=f?(d(`RETRY`,t.name,r),t.apply(null,r.concat([a]))):n[s].push(e)}h===void 0&&(h=setTimeout(_,0))}}})),be=k((exports=>{var t=exports&&exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,`__esModule`,{value:!0});let n=t(ye());function r(e){try{let t=n.default.readFileSync(e,`utf8`),r=`-----END CERTIFICATE-----`;return t.split(r).filter(e=>!!e.trim()).map(e=>`${e.trimLeft()}${r}`)}catch(e){if(e.code===`ENOENT`)return;throw e}}exports.readCAFileSync=r})),xe=k((exports=>{var t=exports&&exports.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=exports&&exports.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(exports,`__esModule`,{value:!0}),n(be(),exports)})),Se=k(((exports,t)=>{t.exports=r;function n(e,t){if(typeof Object.setPrototypeOf==`function`)return Object.setPrototypeOf(e,t);e.__proto__=t}function r(){this.list=[];var e=null;Object.defineProperty(this,`root`,{get:function(){return e},set:function(t){e=t,this.list.length&&n(this.list[this.list.length-1],t)},enumerable:!0,configurable:!0})}r.prototype={get length(){return this.list.length},get keys(){var e=[];for(var t in this.list[0])e.push(t);return e},get snapshot(){var e={};return this.keys.forEach(function(t){e[t]=this.get(t)},this),e},get store(){return this.list[0]},push:function(e){return typeof e!=`object`&&(e={valueOf:e}),this.list.length>=1&&n(this.list[this.list.length-1],e),n(e,this.root),this.list.push(e)},pop:function(){return this.list.length>=2&&n(this.list[this.list.length-2],this.root),this.list.pop()},unshift:function(e){return n(e,this.list[0]||this.root),this.list.unshift(e)},shift:function(){return this.list.length===1&&n(this.list[0],this.root),this.list.shift()},get:function(e){return this.list[0][e]},set:function(e,t,n){return this.length||this.push({}),n&&this.list[0].hasOwnProperty(e)&&this.push({}),this.list[0][e]=t},forEach:function(e,t){for(var n in this.list[0])e.call(t,n,this.list[0][n])},slice:function(){return this.list.slice.apply(this.list,arguments)},splice:function(){for(var e=this.list.splice.apply(this.list,arguments),t=0,r=this.list.length;t<r;t++)n(this.list[t],this.list[t+1]||this.root);return e}}})),Ce=k(((exports,t)=>{var n=Se(),r=j(`path`),i=j(`fs`),a=de(),o=j(`events`).EventEmitter,s=j(`url`),c=j(`http`),l=t.exports=function(){for(var e=[].slice.call(arguments),t=new f;e.length;){var n=e.shift();n&&t.push(typeof n==`string`?d(n):n)}return t};l.find=function(){var e=r.join.apply(null,[].slice.call(arguments));function t(e,n){var a=r.join(e,n);try{return i.statSync(a),a}catch{if(r.dirname(e)!==e)return t(r.dirname(e),n)}}return t(__dirname,e)};var u=l.parse=function(e,t,n){if(e=``+e,n)if(n===`json`)if(this.emit)try{return JSON.parse(e)}catch(e){this.emit(`error`,e)}else return JSON.parse(e);else return a.parse(e);else try{return JSON.parse(e)}catch{return a.parse(e)}},d=l.json=function(){var e=[].slice.call(arguments).filter(function(e){return e!=null}),t=r.join.apply(null,e),n;try{n=i.readFileSync(t,`utf-8`)}catch{return}return u(n,t,`json`)};l.env=function(e,t){t||=process.env;var n={},r=e.length;for(var i in t)i.indexOf(e)===0&&(n[i.substring(r)]=t[i]);return n},l.ConfigChain=f;function f(){o.apply(this),n.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var p={constructor:{value:f}};Object.keys(o.prototype).forEach(function(e){p[e]=Object.getOwnPropertyDescriptor(o.prototype,e)}),f.prototype=Object.create(n.prototype,p),f.prototype.del=function(e,t){if(t){var n=this.sources[t];if(n&&=n.data,!n)return this.emit(`error`,Error(`not found `+t));delete n[e]}else for(var r=0,i=this.list.length;r<i;r++)delete this.list[r][e];return this},f.prototype.set=function(e,t,n){var r;if(n){if(r=this.sources[n],r&&=r.data,!r)return this.emit(`error`,Error(`not found `+n))}else if(r=this.list[0],!r)return this.emit(`error`,Error(`cannot set, no confs!`));return r[e]=t,this},f.prototype.get=function(e,t){return t?(t=this.sources[t],t&&=t.data,t&&Object.hasOwnProperty.call(t,e)?t[e]:void 0):this.list[0][e]},f.prototype.save=function(e,t,n){typeof t==`function`&&(n=t,t=null);var r=this.sources[e];if(!r||!(r.path||r.source)||!r.data)return this.emit(`error`,Error(`bad save target: `+e));if(r.source){var o=r.prefix||``;return Object.keys(r.data).forEach(function(e){r.source[o+e]=r.data[e]}),this}var t=t||r.type,s=r.data;return s=r.type===`json`?JSON.stringify(s):a.stringify(s),this._saving++,i.writeFile(r.path,s,`utf8`,function(e){if(this._saving--,e)return n?n(e):this.emit(`error`,e);this._saving===0&&(n&&n(),this.emit(`save`))}.bind(this)),this},f.prototype.addFile=function(e,t,n){n||=e;var r={__source__:n};return this.sources[n]={path:e,type:t},this.push(r),this._await(),i.readFile(e,`utf8`,function(n,i){n&&this.emit(`error`,n),this.addString(i,e,t,r)}.bind(this)),this},f.prototype.addEnv=function(e,t,n){n||=`env`;var r=l.env(e,t);return this.sources[n]={data:r,source:t,prefix:e},this.add(r,n)},f.prototype.addUrl=function(e,t,n){this._await();var r=s.format(e);n||=r;var i={__source__:n};return this.sources[n]={href:r,type:t},this.push(i),c.request(e,function(e){var n=[],a=e.headers[`content-type`];t||(t=a.indexOf(`json`)===-1?a.indexOf(`ini`)===-1?r.match(/\.json$/)?`json`:r.match(/\.ini$/)?`ini`:null:`ini`:`json`,i.type=t),e.on(`data`,n.push.bind(n)).on(`end`,function(){this.addString(Buffer.concat(n),r,t,i)}.bind(this)).on(`error`,this.emit.bind(this,`error`))}.bind(this)).on(`error`,this.emit.bind(this,`error`)).end(),this},f.prototype.addString=function(e,t,n,r){return e=this.parse(e,t,n),this.add(e,r),this},f.prototype.add=function(e,t){if(t&&typeof t==`object`){var n=this.list.indexOf(t);if(n===-1)return this.emit(`error`,Error(`bad marker`));this.splice(n,1,e),t=t.__source__,this.sources[t]=this.sources[t]||{},this.sources[t].data=e,this._resolve()}else typeof t==`string`&&(this.sources[t]=this.sources[t]||{},this.sources[t].data=e),this._await(),this.push(e),process.nextTick(this._resolve.bind(this));return this},f.prototype.parse=l.parse,f.prototype._await=function(){this._awaiting++},f.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit(`load`,this)}})),we=k(((exports,t)=>{t.exports=function(e){let t=e.indexOf(`:`);if(t===-1)return n(e);let r=e.substr(0,t),i=e.substr(t+1);return`${n(r)}:${n(i)}`};function n(e){if(e=e.toLowerCase(),e===`_authtoken`)return`_authToken`;let t=e[0];for(let n=1;n<e.length;n++)t+=e[n]===`_`?`-`:e[n];return t}})),Te=k((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0});let t=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function n(e,n){return e.replace(t,r.bind(null,n))}exports.envReplace=n;function r(e,t,n,r){if(n.length%2)return t.slice((n.length+1)/2);let i=a(e,r);if(i===void 0)throw Error(`Failed to replace env in config: ${t}`);return`${n.slice(n.length/2)}${i}`}let i=/([^:-]+)(:?)-(.+)/;function a(e,t){let n=t.match(i);if(!n)return e[t];let[,r,a,o]=n;return Object.prototype.hasOwnProperty.call(e,r)?!e[r]&&a?o:e[r]:o}})),Ee=k((exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.envReplace=void 0;var t=Te();Object.defineProperty(exports,`envReplace`,{enumerable:!0,get:function(){return t.envReplace}})})),De=k((exports=>{let t=j(`fs`),n=j(`path`),{envReplace:r}=Ee();exports.envReplace=r,exports.findPrefix=e=>{e=n.resolve(e);let r=!1;for(;n.basename(e)===`node_modules`;)e=n.dirname(e),r=!0;if(r)return e;let i=(e,r)=>{if(e===`/`||process.platform===`win32`&&/^[a-zA-Z]:(\\|\/)?$/.test(e))return r;try{let a=t.readdirSync(e);if(a.includes(`node_modules`)||a.includes(`package.json`)||a.includes(`package.json5`)||a.includes(`package.yaml`)||a.includes(`pnpm-workspace.yaml`))return e;let o=n.dirname(e);return o===e?r:i(o,r)}catch(t){if(e===r){if(t.code===`ENOENT`)return r;throw t}return r}};return i(e,e)},exports.parseField=(e,t,i)=>{if(typeof t!=`string`)return t;let a=[].concat(e[i]),o=a.indexOf(n)!==-1,s=a.indexOf(Boolean)!==-1,c=a.indexOf(String)!==-1,l=a.indexOf(Number)!==-1;if(t=`${t}`.trim(),/^".*"$/.test(t))try{t=JSON.parse(t)}catch{throw Error(`Failed parsing JSON config key ${i}: ${t}`)}if(s&&!c&&t===``)return!0;switch(t){case`true`:return!0;case`false`:return!1;case`null`:return null;case`undefined`:return}return t=r(t,process.env),o&&((process.platform===`win32`?/^~(\/|\\)/:/^~\//).test(t)&&process.env.HOME&&(t=n.resolve(process.env.HOME,t.substr(2))),t=n.resolve(t)),l&&!isNaN(t)&&(t=Number(t)),t},exports.parseKey=e=>typeof e==`string`?r(e,process.env):e})),Oe=k((exports=>{let t=j(`path`),n=j(`stream`).Stream,r=j(`url`),i=()=>{},a=()=>[],o=()=>{};exports.types={access:[null,`restricted`,`public`],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,`dev`,`development`],audit:Boolean,"auth-type":[`legacy`,`sso`,`saml`,`oauth`],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:t,cache:t,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:[`always`,Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:t,"global-style":Boolean,group:[Number,String],"https-proxy":[null,r],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":t,"init-author-name":String,"init-author-email":String,"init-author-url":[``,r],"init-license":String,"init-version":o,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":a(),loglevel:[`silent`,`error`,`warn`,`notice`,`http`,`timing`,`info`,`verbose`,`silly`],logstream:n,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,o],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,`dev`,`development`,`prod`,`production`],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:t,production:Boolean,progress:Boolean,proxy:[null,!1,r],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,r],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,`auto`,`warn-only`],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,`oauth`,`saml`],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:t,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:t,umask:i,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}})),ke=k(((exports,t)=>{let{readCAFileSync:n}=xe(),r=j(`fs`),i=j(`path`),{ConfigChain:a}=Ce(),o=we(),s=De();var c=class extends a{constructor(e,t){super(e),this.root=e,this._parseField=s.parseField.bind(null,t||Oe())}add(e,t){try{for(let[t,n]of Object.entries(e)){let r=s.parseKey(t);r!==t&&delete e[t],e[r]=this._parseField(n,r)}}catch(e){throw e}return super.add(e,t)}addFile(e,t){t||=e;let n={__source__:t};this.sources[t]={path:e,type:`ini`},this.push(n),this._await();try{let t=r.readFileSync(e,`utf8`);this.addString(t,e,`ini`,n)}catch(t){if(t.code===`ENOENT`)this.add({},n);else if(t.code!==`EISDIR`)return`Issue while reading "${e}". ${t.message}`}}addEnv(e){e||=process.env;let t={};return Object.keys(e).filter(e=>/^npm_config_/i.test(e)).forEach(n=>{if(!e[n])return;let r=o(n.substr(11)),i=e[n];t[r]=l(r,i)}),super.addEnv(``,t,`env`)}loadPrefix(){let e=this.list[0];Object.defineProperty(this,`prefix`,{enumerable:!0,set:e=>{let t=this.get(`global`);this[t?`globalPrefix`:`localPrefix`]=e},get:()=>this.get(`global`)?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,`globalPrefix`,{enumerable:!0,set:e=>{this.set(`prefix`,e)},get:()=>i.resolve(this.get(`prefix`))});let t;if(Object.defineProperty(this,`localPrefix`,{enumerable:!0,set:e=>{t=e},get:()=>t}),Object.prototype.hasOwnProperty.call(e,`prefix`))t=i.resolve(e.prefix);else try{t=s.findPrefix(process.cwd())}catch(e){throw e}return t}loadCAFile(e){if(!e)return;let t=n(e);t&&this.set(`ca`,t)}loadUser(){let e=this.root;if(this.get(`global`))return;if(process.env.SUDO_UID){e.user=Number(process.env.SUDO_UID);return}let t=i.resolve(this.get(`prefix`));try{e.user=r.statSync(t).uid}catch(e){if(e.code===`ENOENT`)return;throw e}}};function l(e,t){function n(e){return e.indexOf(`
|
|
7
|
+
`)l=!1,d+=f(e,u,p),u=p;else if(!l&&o+s===`/*`){d+=e.slice(u,p),u=p,l=r,p++;continue}else if(l===r&&o+s===`*/`){p++,l=!1,d+=f(e,u,p+1),u=p+1;continue}}return d+(l?f(e.substr(u)):e.substr(u))}})),fe=A((e=>{var t=M(`fs`),n=ue(),r=M(`path`),i=de(),a=e.parse=function(e){return/^\s*{/.test(e)?JSON.parse(i(e)):n.parse(e)},o=e.file=function(){var e=[].slice.call(arguments).filter(function(e){return e!=null});for(var n in e)if(typeof e[n]!=`string`)return;var i=r.join.apply(null,e);try{return t.readFileSync(i,`utf-8`)}catch{return}};e.json=function(){var e=o.apply(null,arguments);return e?a(e):null},e.env=function(e,t){t||=process.env;var n={},r=e.length;for(var i in t)if(i.toLowerCase().indexOf(e.toLowerCase())===0){for(var a=i.substring(r).split(`__`),o;(o=a.indexOf(``))>-1;)a.splice(o,1);var s=n;a.forEach(function(e,n){!e||typeof s!=`object`||(n===a.length-1&&(s[e]=t[i]),s[e]===void 0&&(s[e]={}),s=s[e])})}return n},e.find=function(){var e=r.join.apply(null,[].slice.call(arguments));function n(e,i){var a=r.join(e,i);try{return t.statSync(a),a}catch{if(r.dirname(e)!==e)return n(r.dirname(e),i)}}return n(process.cwd(),e)}})),pe=A(((e,t)=>{function n(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp}function r(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);return e.copy(t),t}else if(e instanceof Date)return new Date(e.getTime());else if(e instanceof RegExp)return new RegExp(e);else throw Error(`Unexpected situation`)}function i(e){var t=[];return e.forEach(function(e,a){typeof e==`object`&&e?Array.isArray(e)?t[a]=i(e):n(e)?t[a]=r(e):t[a]=o({},e):t[a]=e}),t}function a(e,t){return t===`__proto__`?void 0:e[t]}var o=t.exports=function(){if(arguments.length<1||typeof arguments[0]!=`object`)return!1;if(arguments.length<2)return arguments[0];var e=arguments[0],t=Array.prototype.slice.call(arguments,1),s,c;return t.forEach(function(t){typeof t!=`object`||!t||Array.isArray(t)||Object.keys(t).forEach(function(l){if(c=a(e,l),s=a(t,l),s!==e)if(typeof s!=`object`||!s){e[l]=s;return}else if(Array.isArray(s)){e[l]=i(s);return}else if(n(s)){e[l]=r(s);return}else if(typeof c!=`object`||!c||Array.isArray(c)){e[l]=o({},s);return}else{e[l]=o(c,s);return}})}),e}})),me=A(((e,t)=>{var n=fe(),r=M(`path`).join,i=pe(),a=`/etc`,o=process.platform===`win32`,s=o?process.env.USERPROFILE:process.env.HOME;t.exports=function(e,t,c,l){if(typeof e!=`string`)throw Error(`rc(name): name *must* be string`);c||=te()(process.argv.slice(2)),t=(typeof t==`string`?n.json(t):t)||{},l||=n.parse;var u=n.env(e+`_`),d=[t],f=[];function p(e){if(!(f.indexOf(e)>=0)){var t=n.file(e);t&&(d.push(l(t)),f.push(e))}}return o||[r(a,e,`config`),r(a,e+`rc`)].forEach(p),s&&[r(s,`.config`,e,`config`),r(s,`.config`,e),r(s,`.`+e,`config`),r(s,`.`+e+`rc`)].forEach(p),p(n.find(`.`+e+`rc`)),u.config&&p(u.config),c.config&&p(c.config),i.apply(null,d.concat([u,c,f.length?{configs:f,config:f[f.length-1]}:void 0]))}})),he=A(((e,t)=>{var n=M(`constants`),r=process.cwd,i=null,a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||=r.call(process),i};try{process.cwd()}catch{}if(typeof process.chdir==`function`){var o=process.chdir;process.chdir=function(e){i=null,o.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,o)}t.exports=s;function s(e){n.hasOwnProperty(`O_SYMLINK`)&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=l(e.stat),e.fstat=l(e.fstat),e.lstat=l(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){}),a===`win32`&&(e.rename=typeof e.rename==`function`?(function(t){function n(n,r,i){var a=Date.now(),o=0;t(n,r,function s(c){if(c&&(c.code===`EACCES`||c.code===`EPERM`)&&Date.now()-a<6e4){setTimeout(function(){e.stat(r,function(e,a){e&&e.code===`ENOENT`?t(n,r,s):i(c)})},o),o<100&&(o+=10);return}i&&i(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.rename):e.rename),e.read=typeof e.read==`function`?(function(t){function n(n,r,i,a,o,s){var c;if(s&&typeof s==`function`){var l=0;c=function(u,d,f){if(u&&u.code===`EAGAIN`&&l<10)return l++,t.call(e,n,r,i,a,o,c);s.apply(this,arguments)}}return t.call(e,n,r,i,a,o,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.read):e.read,e.readSync=typeof e.readSync==`function`?(function(t){return function(n,r,i,a,o){for(var s=0;;)try{return t.call(e,n,r,i,a,o)}catch(e){if(e.code===`EAGAIN`&&s<10){s++;continue}throw e}}})(e.readSync):e.readSync;function t(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,function(t,n){if(t){i&&i(t);return}e.fchmod(n,r,function(t){e.close(n,function(e){i&&i(t||e)})})})},e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),a=!0,o;try{o=e.fchmodSync(i,r),a=!1}finally{if(a)try{e.closeSync(i)}catch{}else e.closeSync(i)}return o}}function r(e){n.hasOwnProperty(`O_SYMLINK`)&&e.futimes?(e.lutimes=function(t,r,i,a){e.open(t,n.O_SYMLINK,function(t,n){if(t){a&&a(t);return}e.futimes(n,r,i,function(t){e.close(n,function(e){a&&a(t||e)})})})},e.lutimesSync=function(t,r,i){var a=e.openSync(t,n.O_SYMLINK),o,s=!0;try{o=e.futimesSync(a,r,i),s=!1}finally{if(s)try{e.closeSync(a)}catch{}else e.closeSync(a)}return o}):e.futimes&&(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}function i(t){return t&&function(n,r,i){return t.call(e,n,r,function(e){d(e)&&(e=null),i&&i.apply(this,arguments)})}}function o(t){return t&&function(n,r){try{return t.call(e,n,r)}catch(e){if(!d(e))throw e}}}function s(t){return t&&function(n,r,i,a){return t.call(e,n,r,i,function(e){d(e)&&(e=null),a&&a.apply(this,arguments)})}}function c(t){return t&&function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!d(e))throw e}}}function l(t){return t&&function(n,r,i){typeof r==`function`&&(i=r,r=null);function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return r?t.call(e,n,r,a):t.call(e,n,a)}}function u(t){return t&&function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}}function d(e){return!e||e.code===`ENOSYS`||(!process.getuid||process.getuid()!==0)&&(e.code===`EINVAL`||e.code===`EPERM`)}}})),ge=A(((e,t)=>{var n=M(`stream`).Stream;t.exports=r;function r(e){return{ReadStream:t,WriteStream:r};function t(r,i){if(!(this instanceof t))return new t(r,i);n.call(this);var a=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags=`r`,this.mode=438,this.bufferSize=64*1024,i||={};for(var o=Object.keys(i),s=0,c=o.length;s<c;s++){var l=o[s];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!=`number`)throw TypeError(`start must be a Number`);if(this.end===void 0)this.end=1/0;else if(typeof this.end!=`number`)throw TypeError(`end must be a Number`);if(this.start>this.end)throw Error(`start must be <= end`);this.pos=this.start}if(this.fd!==null){process.nextTick(function(){a._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){a.emit(`error`,e),a.readable=!1;return}a.fd=t,a.emit(`open`,t),a._read()})}function r(t,i){if(!(this instanceof r))return new r(t,i);n.call(this),this.path=t,this.fd=null,this.writable=!0,this.flags=`w`,this.encoding=`binary`,this.mode=438,this.bytesWritten=0,i||={};for(var a=Object.keys(i),o=0,s=a.length;o<s;o++){var c=a[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!=`number`)throw TypeError(`start must be a Number`);if(this.start<0)throw Error(`start must be >= zero`);this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}})),_e=A(((e,t)=>{t.exports=r;var n=Object.getPrototypeOf||function(e){return e.__proto__};function r(e){if(typeof e!=`object`||!e)return e;if(e instanceof Object)var t={__proto__:n(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}})),ve=A(((e,t)=>{var n=M(`fs`),r=he(),i=ge(),a=_e(),o=M(`util`),s,c;typeof Symbol==`function`&&typeof Symbol.for==`function`?(s=Symbol.for(`graceful-fs.queue`),c=Symbol.for(`graceful-fs.previous`)):(s=`___graceful-fs.queue`,c=`___graceful-fs.previous`);function l(){}function u(e,t){Object.defineProperty(e,s,{get:function(){return t}})}var d=l;if(o.debuglog?d=o.debuglog(`gfs4`):/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&(d=function(){var e=o.format.apply(o,arguments);e=`GFS4: `+e.split(/\n/).join(`
|
|
8
|
+
GFS4: `),console.error(e)}),!n[s]){var f=global[s]||[];u(n,f),n.close=(function(e){function t(t,r){return e.call(n,t,function(e){e||g(),typeof r==`function`&&r.apply(this,arguments)})}return Object.defineProperty(t,c,{value:e}),t})(n.close),n.closeSync=(function(e){function t(t){e.apply(n,arguments),g()}return Object.defineProperty(t,c,{value:e}),t})(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&process.on(`exit`,function(){d(n[s]),M(`assert`).equal(n[s].length,0)})}global[s]||u(global,n[s]),t.exports=p(a(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(t.exports=p(n),n.__patched=!0);function p(e){r(e),e.gracefulify=p,e.createReadStream=T,e.createWriteStream=E;var t=e.readFile;e.readFile=n;function n(e,n,r){return typeof n==`function`&&(r=n,n=null),i(e,n,r);function i(e,n,r,a){return t(e,n,function(t){t&&(t.code===`EMFILE`||t.code===`ENFILE`)?m([i,[e,n,r],t,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var a=e.writeFile;e.writeFile=o;function o(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,o){return a(e,t,n,function(a){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?m([i,[e,t,n,r],a,o||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=c);function c(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return s(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=u);function u(e,t,n,r){return typeof n==`function`&&(r=n,n=0),i(e,t,n,r);function i(e,t,n,r,a){return l(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var d=e.readdir;e.readdir=h;var f=/^v[0-5]\./;function h(e,t,n){typeof t==`function`&&(n=t,t=null);var r=f.test(process.version)?function(e,t,n,r){return d(e,i(e,t,n,r))}:function(e,t,n,r){return d(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(a,o){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?m([r,[e,t,n],a,i||Date.now(),Date.now()]):(o&&o.sort&&o.sort(),typeof n==`function`&&n.call(this,a,o))}}}if(process.version.substr(0,4)===`v0.8`){var g=i(e);x=g.ReadStream,C=g.WriteStream}var _=e.ReadStream;_&&(x.prototype=Object.create(_.prototype),x.prototype.open=S);var v=e.WriteStream;v&&(C.prototype=Object.create(v.prototype),C.prototype.open=w),Object.defineProperty(e,`ReadStream`,{get:function(){return x},set:function(e){x=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,`WriteStream`,{get:function(){return C},set:function(e){C=e},enumerable:!0,configurable:!0});var y=x;Object.defineProperty(e,`FileReadStream`,{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var b=C;Object.defineProperty(e,`FileWriteStream`,{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});function x(e,t){return this instanceof x?(_.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function S(){var e=this;O(e.path,e.flags,e.mode,function(t,n){t?(e.autoClose&&e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n),e.read())})}function C(e,t){return this instanceof C?(v.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function w(){var e=this;O(e.path,e.flags,e.mode,function(t,n){t?(e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n))})}function T(t,n){return new e.ReadStream(t,n)}function E(t,n){return new e.WriteStream(t,n)}var D=e.open;e.open=O;function O(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return D(e,t,n,function(o,s){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}return e}function m(e){d(`ENQUEUE`,e[0].name,e[1]),n[s].push(e),_()}var h;function g(){for(var e=Date.now(),t=0;t<n[s].length;++t)n[s][t].length>2&&(n[s][t][3]=e,n[s][t][4]=e);_()}function _(){if(clearTimeout(h),h=void 0,n[s].length!==0){var e=n[s].shift(),t=e[0],r=e[1],i=e[2],a=e[3],o=e[4];if(a===void 0)d(`RETRY`,t.name,r),t.apply(null,r);else if(Date.now()-a>=6e4){d(`TIMEOUT`,t.name,r);var c=r.pop();typeof c==`function`&&c.call(null,i)}else{var l=Date.now()-o,u=Math.max(o-a,1),f=Math.min(u*1.2,100);l>=f?(d(`RETRY`,t.name,r),t.apply(null,r.concat([a]))):n[s].push(e)}h===void 0&&(h=setTimeout(_,0))}}})),ye=A((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(ve());function r(e){try{let t=n.default.readFileSync(e,`utf8`),r=`-----END CERTIFICATE-----`;return t.split(r).filter(e=>!!e.trim()).map(e=>`${e.trimLeft()}${r}`)}catch(e){if(e.code===`ENOENT`)return;throw e}}e.readCAFileSync=r})),be=A((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(ye(),e)})),xe=A(((e,t)=>{t.exports=r;function n(e,t){if(typeof Object.setPrototypeOf==`function`)return Object.setPrototypeOf(e,t);e.__proto__=t}function r(){this.list=[];var e=null;Object.defineProperty(this,`root`,{get:function(){return e},set:function(t){e=t,this.list.length&&n(this.list[this.list.length-1],t)},enumerable:!0,configurable:!0})}r.prototype={get length(){return this.list.length},get keys(){var e=[];for(var t in this.list[0])e.push(t);return e},get snapshot(){var e={};return this.keys.forEach(function(t){e[t]=this.get(t)},this),e},get store(){return this.list[0]},push:function(e){return typeof e!=`object`&&(e={valueOf:e}),this.list.length>=1&&n(this.list[this.list.length-1],e),n(e,this.root),this.list.push(e)},pop:function(){return this.list.length>=2&&n(this.list[this.list.length-2],this.root),this.list.pop()},unshift:function(e){return n(e,this.list[0]||this.root),this.list.unshift(e)},shift:function(){return this.list.length===1&&n(this.list[0],this.root),this.list.shift()},get:function(e){return this.list[0][e]},set:function(e,t,n){return this.length||this.push({}),n&&this.list[0].hasOwnProperty(e)&&this.push({}),this.list[0][e]=t},forEach:function(e,t){for(var n in this.list[0])e.call(t,n,this.list[0][n])},slice:function(){return this.list.slice.apply(this.list,arguments)},splice:function(){for(var e=this.list.splice.apply(this.list,arguments),t=0,r=this.list.length;t<r;t++)n(this.list[t],this.list[t+1]||this.root);return e}}})),Se=A(((e,t)=>{var n=xe(),r=M(`path`),i=M(`fs`),a=ue(),o=M(`events`).EventEmitter,s=M(`url`),c=M(`http`),l=t.exports=function(){for(var e=[].slice.call(arguments),t=new f;e.length;){var n=e.shift();n&&t.push(typeof n==`string`?d(n):n)}return t};l.find=function(){var e=r.join.apply(null,[].slice.call(arguments));function t(e,n){var a=r.join(e,n);try{return i.statSync(a),a}catch{if(r.dirname(e)!==e)return t(r.dirname(e),n)}}return t(__dirname,e)};var u=l.parse=function(e,t,n){if(e=``+e,n)if(n===`json`)if(this.emit)try{return JSON.parse(e)}catch(e){this.emit(`error`,e)}else return JSON.parse(e);else return a.parse(e);else try{return JSON.parse(e)}catch{return a.parse(e)}},d=l.json=function(){var e=[].slice.call(arguments).filter(function(e){return e!=null}),t=r.join.apply(null,e),n;try{n=i.readFileSync(t,`utf-8`)}catch{return}return u(n,t,`json`)};l.env=function(e,t){t||=process.env;var n={},r=e.length;for(var i in t)i.indexOf(e)===0&&(n[i.substring(r)]=t[i]);return n},l.ConfigChain=f;function f(){o.apply(this),n.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var p={constructor:{value:f}};Object.keys(o.prototype).forEach(function(e){p[e]=Object.getOwnPropertyDescriptor(o.prototype,e)}),f.prototype=Object.create(n.prototype,p),f.prototype.del=function(e,t){if(t){var n=this.sources[t];if(n&&=n.data,!n)return this.emit(`error`,Error(`not found `+t));delete n[e]}else for(var r=0,i=this.list.length;r<i;r++)delete this.list[r][e];return this},f.prototype.set=function(e,t,n){var r;if(n){if(r=this.sources[n],r&&=r.data,!r)return this.emit(`error`,Error(`not found `+n))}else if(r=this.list[0],!r)return this.emit(`error`,Error(`cannot set, no confs!`));return r[e]=t,this},f.prototype.get=function(e,t){return t?(t=this.sources[t],t&&=t.data,t&&Object.hasOwnProperty.call(t,e)?t[e]:void 0):this.list[0][e]},f.prototype.save=function(e,t,n){typeof t==`function`&&(n=t,t=null);var r=this.sources[e];if(!r||!(r.path||r.source)||!r.data)return this.emit(`error`,Error(`bad save target: `+e));if(r.source){var o=r.prefix||``;return Object.keys(r.data).forEach(function(e){r.source[o+e]=r.data[e]}),this}var t=t||r.type,s=r.data;return s=r.type===`json`?JSON.stringify(s):a.stringify(s),this._saving++,i.writeFile(r.path,s,`utf8`,function(e){if(this._saving--,e)return n?n(e):this.emit(`error`,e);this._saving===0&&(n&&n(),this.emit(`save`))}.bind(this)),this},f.prototype.addFile=function(e,t,n){n||=e;var r={__source__:n};return this.sources[n]={path:e,type:t},this.push(r),this._await(),i.readFile(e,`utf8`,function(n,i){n&&this.emit(`error`,n),this.addString(i,e,t,r)}.bind(this)),this},f.prototype.addEnv=function(e,t,n){n||=`env`;var r=l.env(e,t);return this.sources[n]={data:r,source:t,prefix:e},this.add(r,n)},f.prototype.addUrl=function(e,t,n){this._await();var r=s.format(e);n||=r;var i={__source__:n};return this.sources[n]={href:r,type:t},this.push(i),c.request(e,function(e){var n=[],a=e.headers[`content-type`];t||(t=a.indexOf(`json`)===-1?a.indexOf(`ini`)===-1?r.match(/\.json$/)?`json`:r.match(/\.ini$/)?`ini`:null:`ini`:`json`,i.type=t),e.on(`data`,n.push.bind(n)).on(`end`,function(){this.addString(Buffer.concat(n),r,t,i)}.bind(this)).on(`error`,this.emit.bind(this,`error`))}.bind(this)).on(`error`,this.emit.bind(this,`error`)).end(),this},f.prototype.addString=function(e,t,n,r){return e=this.parse(e,t,n),this.add(e,r),this},f.prototype.add=function(e,t){if(t&&typeof t==`object`){var n=this.list.indexOf(t);if(n===-1)return this.emit(`error`,Error(`bad marker`));this.splice(n,1,e),t=t.__source__,this.sources[t]=this.sources[t]||{},this.sources[t].data=e,this._resolve()}else typeof t==`string`&&(this.sources[t]=this.sources[t]||{},this.sources[t].data=e),this._await(),this.push(e),process.nextTick(this._resolve.bind(this));return this},f.prototype.parse=l.parse,f.prototype._await=function(){this._awaiting++},f.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit(`load`,this)}})),Ce=A(((e,t)=>{t.exports=function(e){let t=e.indexOf(`:`);if(t===-1)return n(e);let r=e.substr(0,t),i=e.substr(t+1);return`${n(r)}:${n(i)}`};function n(e){if(e=e.toLowerCase(),e===`_authtoken`)return`_authToken`;let t=e[0];for(let n=1;n<e.length;n++)t+=e[n]===`_`?`-`:e[n];return t}})),we=A((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function n(e,n){return e.replace(t,r.bind(null,n))}e.envReplace=n;function r(e,t,n,r){if(n.length%2)return t.slice((n.length+1)/2);let i=a(e,r);if(i===void 0)throw Error(`Failed to replace env in config: ${t}`);return`${n.slice(n.length/2)}${i}`}let i=/([^:-]+)(:?)-(.+)/;function a(e,t){let n=t.match(i);if(!n)return e[t];let[,r,a,o]=n;return Object.prototype.hasOwnProperty.call(e,r)?!e[r]&&a?o:e[r]:o}})),Te=A((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.envReplace=void 0;var t=we();Object.defineProperty(e,`envReplace`,{enumerable:!0,get:function(){return t.envReplace}})})),Ee=A((e=>{let t=M(`fs`),n=M(`path`),{envReplace:r}=Te();e.envReplace=r,e.findPrefix=e=>{e=n.resolve(e);let r=!1;for(;n.basename(e)===`node_modules`;)e=n.dirname(e),r=!0;if(r)return e;let i=(e,r)=>{if(e===`/`||process.platform===`win32`&&/^[a-zA-Z]:(\\|\/)?$/.test(e))return r;try{let a=t.readdirSync(e);if(a.includes(`node_modules`)||a.includes(`package.json`)||a.includes(`package.json5`)||a.includes(`package.yaml`)||a.includes(`pnpm-workspace.yaml`))return e;let o=n.dirname(e);return o===e?r:i(o,r)}catch(t){if(e===r){if(t.code===`ENOENT`)return r;throw t}return r}};return i(e,e)},e.parseField=(e,t,i)=>{if(typeof t!=`string`)return t;let a=[].concat(e[i]),o=a.indexOf(n)!==-1,s=a.indexOf(Boolean)!==-1,c=a.indexOf(String)!==-1,l=a.indexOf(Number)!==-1;if(t=`${t}`.trim(),/^".*"$/.test(t))try{t=JSON.parse(t)}catch{throw Error(`Failed parsing JSON config key ${i}: ${t}`)}if(s&&!c&&t===``)return!0;switch(t){case`true`:return!0;case`false`:return!1;case`null`:return null;case`undefined`:return}return t=r(t,process.env),o&&((process.platform===`win32`?/^~(\/|\\)/:/^~\//).test(t)&&process.env.HOME&&(t=n.resolve(process.env.HOME,t.substr(2))),t=n.resolve(t)),l&&!isNaN(t)&&(t=Number(t)),t},e.parseKey=e=>typeof e==`string`?r(e,process.env):e})),De=A((e=>{let t=M(`path`),n=M(`stream`).Stream,r=M(`url`),i=()=>{},a=()=>[],o=()=>{};e.types={access:[null,`restricted`,`public`],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,`dev`,`development`],audit:Boolean,"auth-type":[`legacy`,`sso`,`saml`,`oauth`],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:t,cache:t,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:[`always`,Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:t,"global-style":Boolean,group:[Number,String],"https-proxy":[null,r],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":t,"init-author-name":String,"init-author-email":String,"init-author-url":[``,r],"init-license":String,"init-version":o,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":a(),loglevel:[`silent`,`error`,`warn`,`notice`,`http`,`timing`,`info`,`verbose`,`silly`],logstream:n,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,o],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,`dev`,`development`,`prod`,`production`],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:t,production:Boolean,progress:Boolean,proxy:[null,!1,r],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,r],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,`auto`,`warn-only`],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,`oauth`,`saml`],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:t,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:t,umask:i,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}})),Oe=A(((e,t)=>{let{readCAFileSync:n}=be(),r=M(`fs`),i=M(`path`),{ConfigChain:a}=Se(),o=Ce(),s=Ee();var c=class extends a{constructor(e,t){super(e),this.root=e,this._parseField=s.parseField.bind(null,t||De())}add(e,t){try{for(let[t,n]of Object.entries(e)){let r=s.parseKey(t);r!==t&&delete e[t],e[r]=this._parseField(n,r)}}catch(e){throw e}return super.add(e,t)}addFile(e,t){t||=e;let n={__source__:t};this.sources[t]={path:e,type:`ini`},this.push(n),this._await();try{let t=r.readFileSync(e,`utf8`);this.addString(t,e,`ini`,n)}catch(t){if(t.code===`ENOENT`)this.add({},n);else if(t.code!==`EISDIR`)return`Issue while reading "${e}". ${t.message}`}}addEnv(e){e||=process.env;let t={};return Object.keys(e).filter(e=>/^npm_config_/i.test(e)).forEach(n=>{if(!e[n])return;let r=o(n.substr(11)),i=e[n];t[r]=l(r,i)}),super.addEnv(``,t,`env`)}loadPrefix(){let e=this.list[0];Object.defineProperty(this,`prefix`,{enumerable:!0,set:e=>{let t=this.get(`global`);this[t?`globalPrefix`:`localPrefix`]=e},get:()=>this.get(`global`)?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,`globalPrefix`,{enumerable:!0,set:e=>{this.set(`prefix`,e)},get:()=>i.resolve(this.get(`prefix`))});let t;if(Object.defineProperty(this,`localPrefix`,{enumerable:!0,set:e=>{t=e},get:()=>t}),Object.prototype.hasOwnProperty.call(e,`prefix`))t=i.resolve(e.prefix);else try{t=s.findPrefix(process.cwd())}catch(e){throw e}return t}loadCAFile(e){if(!e)return;let t=n(e);t&&this.set(`ca`,t)}loadUser(){let e=this.root;if(this.get(`global`))return;if(process.env.SUDO_UID){e.user=Number(process.env.SUDO_UID);return}let t=i.resolve(this.get(`prefix`));try{e.user=r.statSync(t).uid}catch(e){if(e.code===`ENOENT`)return;throw e}}};function l(e,t){function n(e){return e.indexOf(`
|
|
9
9
|
|
|
10
10
|
`)?e.split(`
|
|
11
11
|
|
|
12
|
-
`):e.split(`,`)}switch(e){case`hoist-pattern`:case`public-hoist-pattern`:return n(t)}return t}t.exports=c})),
|
|
13
|
-
/*!
|
|
14
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
15
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
|
-
*
|
|
17
|
-
* Redistribution and use in source and binary forms, with or without
|
|
18
|
-
* modification, are permitted provided that the following conditions are met:
|
|
19
|
-
*
|
|
20
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
21
|
-
* list of conditions and the following disclaimer.
|
|
22
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
23
|
-
* this list of conditions and the following disclaimer in the
|
|
24
|
-
* documentation and/or other materials provided with the distribution.
|
|
25
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
26
|
-
* may be used to endorse or promote products derived from this software without
|
|
27
|
-
* specific prior written permission.
|
|
28
|
-
*
|
|
29
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
30
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
31
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
32
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
33
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
34
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
35
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
36
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
37
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
38
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
39
|
-
*/
|
|
40
|
-
function Ne(e,t){let n=e.slice(0,t).split(/\r\n|\n|\r/g);return[n.length,n.pop().length+1]}function Pe(e,t,n){let r=e.split(/\r\n|\n|\r/g),i=``,a=(Math.log10(t+1)|0)+1;for(let e=t-1;e<=t+1;e++){let o=r[e-1];o&&(i+=e.toString().padEnd(a,` `),i+=`: `,i+=o,i+=`
|
|
12
|
+
`):e.split(`,`)}switch(e){case`hoist-pattern`:case`public-hoist-pattern`:return n(t)}return t}t.exports=c})),ke=A((e=>{let t=M(`os`),n=M(`path`),r=t.tmpdir(),i=process.getuid?process.getuid():process.pid,a=()=>!0,o=process.platform===`win32`,s={editor:()=>process.env.EDITOR||process.env.VISUAL||(o?`notepad.exe`:`vi`),shell:()=>o?process.env.COMSPEC||`cmd.exe`:process.env.SHELL||`/bin/bash`},c={fromString:()=>process.umask()},l=t.homedir();l?process.env.HOME=l:l=n.resolve(r,`npm-`+i);let u=process.platform===`win32`?`npm-cache`:`.npm`,d=process.platform===`win32`&&process.env.APPDATA||l,f=n.resolve(d,u),p,m;Object.defineProperty(e,`defaults`,{get:function(){return p||(process.env.PREFIX?m=process.env.PREFIX:process.platform===`win32`?m=n.dirname(process.execPath):(m=n.dirname(n.dirname(process.execPath)),process.env.DESTDIR&&(m=n.join(process.env.DESTDIR,m))),p={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":`legacy`,"bin-links":!0,browser:null,ca:null,cafile:null,cache:f,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:s.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:`git`,"git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:n.resolve(m,`etc`,`npmrc`),"global-style":!1,group:process.platform===`win32`?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:`npm`,"if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":n.resolve(l,`.npm-init.js`),"init-author-name":``,"init-author-email":``,"init-author-url":``,"init-version":`1.0.0`,"init-license":`ISC`,json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:`notice`,logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:`%s`,"metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:m,production:process.env.NODE_ENV===`production`,progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":`npm/{npm-version} node/{node-version} {platform} {arch}`,"read-only":!1,"rebuild-bundle":!0,registry:`https://registry.npmjs.org/`,rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":`^`,"save-prod":!1,scope:``,"script-shell":null,"scripts-prepend-node-path":`warn-only`,searchopts:``,searchexclude:null,searchlimit:20,searchstaleness:900,"send-metrics":!1,shell:s.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":`oauth`,"strict-ssl":!0,tag:`latest`,"tag-version-prefix":`v`,timing:!1,tmp:r,unicode:a(),"unsafe-perm":process.platform===`win32`||process.platform===`cygwin`||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform===`win32`?0:`nobody`,userconfig:n.resolve(l,`.npmrc`),umask:process.umask?process.umask():c.fromString(`022`),version:!1,versions:!1,viewer:process.platform===`win32`?`browser`:`man`,_exit:!0},p)}})})),Ae=A(((e,t)=>{let n=M(`path`),r=Oe(),i=ke();t.exports=(e,t,a)=>{let o=new r(Object.assign({},i.defaults,a),t);o.add(Object.assign({},e),`cli`);let s=[],c=!1;if(M.resolve.paths){let e=M.resolve.paths(`npm`),t;try{t=M.resolve(`npm`,{paths:e.slice(-1)})}catch{c=!0}t&&s.push(o.addFile(n.resolve(n.dirname(t),`..`,`npmrc`),`builtin`))}o.addEnv(),o.loadPrefix();let l=n.resolve(o.localPrefix,`.npmrc`),u=o.get(`userconfig`);if(!o.get(`global`)&&l!==u?s.push(o.addFile(l,`project`)):o.add({},`project`),o.get(`workspace-prefix`)&&o.get(`workspace-prefix`)!==l){let e=n.resolve(o.get(`workspace-prefix`),`.npmrc`);s.push(o.addFile(e,`workspace`))}if(s.push(o.addFile(o.get(`userconfig`),`user`)),o.get(`prefix`)){let e=n.resolve(o.get(`prefix`),`etc`);o.root.globalconfig=n.resolve(e,`npmrc`),o.root.globalignorefile=n.resolve(e,`npmignore`)}s.push(o.addFile(o.get(`globalconfig`),`global`)),o.loadUser();let d=o.get(`cafile`);return d&&o.loadCAFile(d),{config:o,warnings:s.filter(Boolean),failedToLoadBuiltInConfig:c}},Object.defineProperty(t.exports,`defaults`,{get(){return i.defaults},enumerable:!0})})),je=A(((e,t)=>{let n=Ae();t.exports=function(){let e,t;arguments.length>=2?(e=arguments[0],t=Object.assign({},arguments[1])):typeof arguments[0]==`string`?e=arguments[0]:t=Object.assign({},arguments[0]),t||={};let r=t.npmrc;return t.npmrc=(t.npmrc?{config:{get:e=>r[e]}}:n()).config,e=e||t.npmrc.get(`registry`)||n.defaults.registry,i(e,t)||a(t.npmrc)};function r(e,t){let n=new URL(t,new URL(e.startsWith(`//`)?`./${e}`:e,`resolve://`));if(n.protocol===`resolve:`){let{pathname:e,search:t,hash:r}=n;return e+t+r}return n.toString()}function i(e,t){let n=e instanceof URL?e:new URL(e.startsWith(`//`)?`http:${e}`:e),a;for(;a!==`/`&&n.pathname!==a;){a=n.pathname||`/`;let c=`//`+n.host+a.replace(/\/$/,``),l=s(c,t.npmrc);if(l)return l;if(!t.recursive)return/\/$/.test(e)?void 0:i(new URL(`./`,n),t);n.pathname=r(o(a),`..`)||`/`}}function a(e){if(e.get(`_auth`))return{token:c(e.get(`_auth`)),type:`Basic`}}function o(e){return e[e.length-1]===`/`?e:e+`/`}function s(e,t){let n=l(t.get(e+`:_authToken`)||t.get(e+`/:_authToken`));if(n)return n;let r=t.get(e+`:username`)||t.get(e+`/:username`),i=t.get(e+`:_password`)||t.get(e+`/:_password`),a=u(r,i);if(a)return a;let o=d(t.get(e+`:_auth`)||t.get(e+`/:_auth`));if(o)return o}function c(e){return e.replace(/^\$\{?([^}]*)\}?$/,function(e,t){return process.env[t]})}function l(e){if(e)return{token:c(e),type:`Bearer`}}function u(e,t){if(!e||!t)return;let n=Buffer.from(c(t),`base64`).toString(`utf8`);return{token:Buffer.from(e+`:`+n,`utf8`).toString(`base64`),type:`Basic`,password:n,username:e}}function d(e){if(e)return{token:c(e),type:`Basic`}}}));function Me(e,t){let n=e.slice(0,t).split(/\r\n|\n|\r/g);return[n.length,n.pop().length+1]}function Ne(e,t,n){let r=e.split(/\r\n|\n|\r/g),i=``,a=(Math.log10(t+1)|0)+1;for(let e=t-1;e<=t+1;e++){let o=r[e-1];o&&(i+=e.toString().padEnd(a,` `),i+=`: `,i+=o,i+=`
|
|
41
13
|
`,e===t&&(i+=` `.repeat(a+n+2),i+=`^
|
|
42
|
-
`))}return i}var
|
|
43
|
-
`,t);return e[r-1]===`\r`&&r--,r<=n?r:-1}function
|
|
14
|
+
`))}return i}var N=class extends Error{line;column;codeblock;constructor(e,t){let[n,r]=Me(t.toml,t.ptr),i=Ne(t.toml,n,r);super(`Invalid TOML document: ${e}\n\n${i}`,t),this.line=n,this.column=r,this.codeblock=i}};function Pe(e,t){let n=0;for(;e[t-++n]===`\\`;);return--n&&n%2}function P(e,t=0,n=e.length){let r=e.indexOf(`
|
|
15
|
+
`,t);return e[r-1]===`\r`&&r--,r<=n?r:-1}function Fe(e,t){for(let n=t;n<e.length;n++){let r=e[n];if(r===`
|
|
44
16
|
`)return n;if(r===`\r`&&e[n+1]===`
|
|
45
|
-
`)return n+1;if(r<` `&&r!==` `||r===``)throw new
|
|
17
|
+
`)return n+1;if(r<` `&&r!==` `||r===``)throw new N(`control characters are not allowed in comments`,{toml:e,ptr:t})}return e.length}function F(e,t,n,r){let i;for(;(i=e[t])===` `||i===` `||!n&&(i===`
|
|
46
18
|
`||i===`\r`&&e[t+1]===`
|
|
47
|
-
`);)t++;return r||i!==`#`?t:
|
|
19
|
+
`);)t++;return r||i!==`#`?t:F(e,Fe(e,t),n)}function Ie(e,t,n,r,i=!1){if(!r)return t=P(e,t),t<0?e.length:t;for(let a=t;a<e.length;a++){let t=e[a];if(t===`#`)a=P(e,a);else if(t===n)return a+1;else if(t===r||i&&(t===`
|
|
48
20
|
`||t===`\r`&&e[a+1]===`
|
|
49
|
-
`))return a}throw new
|
|
50
|
-
|
|
51
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
52
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*
|
|
54
|
-
* Redistribution and use in source and binary forms, with or without
|
|
55
|
-
* modification, are permitted provided that the following conditions are met:
|
|
56
|
-
*
|
|
57
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
58
|
-
* list of conditions and the following disclaimer.
|
|
59
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
60
|
-
* this list of conditions and the following disclaimer in the
|
|
61
|
-
* documentation and/or other materials provided with the distribution.
|
|
62
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
63
|
-
* may be used to endorse or promote products derived from this software without
|
|
64
|
-
* specific prior written permission.
|
|
65
|
-
*
|
|
66
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
67
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
68
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
69
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
70
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
71
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
72
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
73
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
74
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
75
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
76
|
-
*/
|
|
77
|
-
let ze=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;var Be=class e extends Date{#hasDate=!1;#hasTime=!1;#offset=null;constructor(e){let t=!0,n=!0,r=`Z`;if(typeof e==`string`){let i=e.match(ze);i?(i[1]||(t=!1,e=`0000-01-01T${e}`),n=!!i[2],n&&e[10]===` `&&(e=e.replace(` `,`T`)),i[2]&&+i[2]>23?e=``:(r=i[3]||null,e=e.toUpperCase(),!r&&n&&(e+=`Z`))):e=``}super(e),isNaN(this.getTime())||(this.#hasDate=t,this.#hasTime=n,this.#offset=r)}isDateTime(){return this.#hasDate&&this.#hasTime}isLocal(){return!this.#hasDate||!this.#hasTime||!this.#offset}isDate(){return this.#hasDate&&!this.#hasTime}isTime(){return this.#hasTime&&!this.#hasDate}isValid(){return this.#hasDate||this.#hasTime}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#offset===null)return e.slice(0,-1);if(this.#offset===`Z`)return e;let t=this.#offset.slice(1,3)*60+ +this.#offset.slice(4,6);return t=this.#offset[0]===`-`?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#offset}static wrapAsOffsetDateTime(t,n=`Z`){let r=new e(t);return r.#offset=n,r}static wrapAsLocalDateTime(t){let n=new e(t);return n.#offset=null,n}static wrapAsLocalDate(t){let n=new e(t);return n.#hasTime=!1,n.#offset=null,n}static wrapAsLocalTime(t){let n=new e(t);return n.#hasDate=!1,n.#offset=null,n}};let Ve=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,He=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,Ue=/^[+-]?0[0-9_]/,We=/^[0-9a-f]{4,8}$/i,Ge={b:`\b`,t:` `,n:`
|
|
78
|
-
`,f:`\f`,r:`\r`,'"':`"`,"\\":`\\`};function Ke(e,t=0,n=e.length){let r=e[t]===`'`,i=e[t++]===e[t]&&e[t]===e[t+1];i&&(n-=2,e[t+=2]===`\r`&&t++,e[t]===`
|
|
21
|
+
`))return a}throw new N(`cannot find end of structure`,{toml:e,ptr:t})}function Le(e,t){let n=e[t],r=n===e[t+1]&&e[t+1]===e[t+2]?e.slice(t,t+3):n;t+=r.length-1;do t=e.indexOf(r,++t);while(t>-1&&n!==`'`&&Pe(e,t));return t>-1&&(t+=r.length,r.length>1&&(e[t]===n&&t++,e[t]===n&&t++)),t}let Re=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;var ze=class e extends Date{#hasDate=!1;#hasTime=!1;#offset=null;constructor(e){let t=!0,n=!0,r=`Z`;if(typeof e==`string`){let i=e.match(Re);i?(i[1]||(t=!1,e=`0000-01-01T${e}`),n=!!i[2],n&&e[10]===` `&&(e=e.replace(` `,`T`)),i[2]&&+i[2]>23?e=``:(r=i[3]||null,e=e.toUpperCase(),!r&&n&&(e+=`Z`))):e=``}super(e),isNaN(this.getTime())||(this.#hasDate=t,this.#hasTime=n,this.#offset=r)}isDateTime(){return this.#hasDate&&this.#hasTime}isLocal(){return!this.#hasDate||!this.#hasTime||!this.#offset}isDate(){return this.#hasDate&&!this.#hasTime}isTime(){return this.#hasTime&&!this.#hasDate}isValid(){return this.#hasDate||this.#hasTime}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#offset===null)return e.slice(0,-1);if(this.#offset===`Z`)return e;let t=this.#offset.slice(1,3)*60+ +this.#offset.slice(4,6);return t=this.#offset[0]===`-`?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#offset}static wrapAsOffsetDateTime(t,n=`Z`){let r=new e(t);return r.#offset=n,r}static wrapAsLocalDateTime(t){let n=new e(t);return n.#offset=null,n}static wrapAsLocalDate(t){let n=new e(t);return n.#hasTime=!1,n.#offset=null,n}static wrapAsLocalTime(t){let n=new e(t);return n.#hasDate=!1,n.#offset=null,n}};let Be=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,Ve=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,He=/^[+-]?0[0-9_]/,Ue=/^[0-9a-f]{4,8}$/i,We={b:`\b`,t:` `,n:`
|
|
22
|
+
`,f:`\f`,r:`\r`,'"':`"`,"\\":`\\`};function Ge(e,t=0,n=e.length){let r=e[t]===`'`,i=e[t++]===e[t]&&e[t]===e[t+1];i&&(n-=2,e[t+=2]===`\r`&&t++,e[t]===`
|
|
79
23
|
`&&t++);let a=0,o,s=``,c=t;for(;t<n-1;){let n=e[t++];if(n===`
|
|
80
24
|
`||n===`\r`&&e[t]===`
|
|
81
|
-
`){if(!i)throw new
|
|
82
|
-
`||n===` `||n===` `||n===`\r`)){if(t=
|
|
83
|
-
`&&e[t]!==`\r`)throw new
|
|
84
|
-
`,o.length);if(n>-1)throw new
|
|
85
|
-
`&&e[o]!==`\r`)throw new
|
|
86
|
-
`)throw new
|
|
87
|
-
`&&a!==`\r`){let a=
|
|
88
|
-
`&&e[s]!==`\r`)throw new M(`each key-value declaration must be followed by an end-of-line`,{toml:e,ptr:s});s=P(e,s)}return r}var F=k(((exports,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),nt=k(((exports,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),I=k(((exports,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=F(),a=nt();exports=t.exports={};let o=exports.re=[],s=exports.safeRe=[],c=exports.src=[],l=exports.safeSrc=[],u=exports.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),exports.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),rt=k(((exports,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),it=k(((exports,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),L=k(((exports,t)=>{let n=nt(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=F(),{safeRe:a,t:o}=I(),s=rt(),{compareIdentifiers:c}=it();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),c(this.major,t.major)||c(this.minor,t.minor)||c(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),R=k(((exports,t)=>{let n=L();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),at=k(((exports,t)=>{let n=R();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),ot=k(((exports,t)=>{let n=R();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),st=k(((exports,t)=>{let n=L();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),ct=k(((exports,t)=>{let n=R();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),lt=k(((exports,t)=>{let n=L();t.exports=(e,t)=>new n(e,t).major})),ut=k(((exports,t)=>{let n=L();t.exports=(e,t)=>new n(e,t).minor})),dt=k(((exports,t)=>{let n=L();t.exports=(e,t)=>new n(e,t).patch})),ft=k(((exports,t)=>{let n=R();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),z=k(((exports,t)=>{let n=L();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),pt=k(((exports,t)=>{let n=z();t.exports=(e,t,r)=>n(t,e,r)})),mt=k(((exports,t)=>{let n=z();t.exports=(e,t)=>n(e,t,!0)})),ht=k(((exports,t)=>{let n=L();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),gt=k(((exports,t)=>{let n=ht();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),_t=k(((exports,t)=>{let n=ht();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),vt=k(((exports,t)=>{let n=z();t.exports=(e,t,r)=>n(e,t,r)>0})),yt=k(((exports,t)=>{let n=z();t.exports=(e,t,r)=>n(e,t,r)<0})),bt=k(((exports,t)=>{let n=z();t.exports=(e,t,r)=>n(e,t,r)===0})),xt=k(((exports,t)=>{let n=z();t.exports=(e,t,r)=>n(e,t,r)!==0})),St=k(((exports,t)=>{let n=z();t.exports=(e,t,r)=>n(e,t,r)>=0})),Ct=k(((exports,t)=>{let n=z();t.exports=(e,t,r)=>n(e,t,r)<=0})),wt=k(((exports,t)=>{let n=bt(),r=xt(),i=vt(),a=St(),o=yt(),s=Ct();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),Tt=k(((exports,t)=>{let n=L(),r=R(),{safeRe:i,t:a}=I();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2],c=o[3]||`0`,l=o[4]||`0`,u=t.includePrerelease&&o[5]?`-${o[5]}`:``,d=t.includePrerelease&&o[6]?`+${o[6]}`:``;return r(`${s}.${c}.${l}${u}${d}`,t)}})),Et=k(((exports,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),B=k(((exports,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!h(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&g(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(s,O(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[l.COMPARATORTRIM],u),o(`comparator trim`,e),e=e.replace(c[l.TILDETRIM],d),o(`tilde trim`,e),e=e.replace(c[l.CARETTRIM],f),o(`caret trim`,e);let g=e.split(` `).map(e=>v(e,this.options)).join(` `).split(/\s+/).map(e=>D(e,this.options));i&&(g=g.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[l.COMPARATORLOOSE])))),o(`range list`,g);let _=new Map,y=g.map(e=>new a(e,this.options));for(let e of y){if(h(e))return[e];_.set(e.value,e)}_.size>1&&_.has(``)&&_.delete(``);let b=[..._.values()];return r.set(t,b),b}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>_(e,n)&&t.set.some(t=>_(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(ee(this.set[t],e,this.options))return!0;return!1}};let r=new(Et()),i=rt(),a=V(),o=nt(),s=L(),{safeRe:c,t:l,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=I(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=F(),h=e=>e.value===`<0.0.0-0`,g=e=>e.value===``,_=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},v=(e,t)=>(o(`comp`,e,t),e=S(e,t),o(`caret`,e),e=b(e,t),o(`tildes`,e),e=w(e,t),o(`xrange`,e),e=E(e,t),o(`stars`,e),e),y=e=>!e||e.toLowerCase()===`x`||e===`*`,b=(e,t)=>e.trim().split(/\s+/).map(e=>x(e,t)).join(` `),x=(e,t)=>{let n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return y(n)?s=``:y(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:y(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(` `),C=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return y(n)?c=``:y(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:y(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},w=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>T(e,t)).join(` `)),T=(e,t)=>{e=e.trim();let n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=y(i),u=l||y(a),d=u||y(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},E=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[l.STAR],``)),D=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],``)),O=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=y(r)?``:y(i)?`>=${r}.0.0${e?`-0`:``}`:y(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=y(l)?``:y(u)?`<${+l+1}.0.0-0`:y(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),ee=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),V=k(((exports,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=rt(),{safeRe:i,t:a}=I(),o=wt(),s=nt(),c=L(),l=B()})),H=k(((exports,t)=>{let n=B();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),Dt=k(((exports,t)=>{let n=B();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),Ot=k(((exports,t)=>{let n=L(),r=B();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),kt=k(((exports,t)=>{let n=L(),r=B();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),At=k(((exports,t)=>{let n=L(),r=B(),i=vt();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),jt=k(((exports,t)=>{let n=B();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),Mt=k(((exports,t)=>{let n=L(),r=V(),{ANY:i}=r,a=B(),o=H(),s=vt(),c=yt(),l=Ct(),u=St();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),Nt=k(((exports,t)=>{let n=Mt();t.exports=(e,t,r)=>n(e,t,`>`,r)})),Pt=k(((exports,t)=>{let n=Mt();t.exports=(e,t,r)=>n(e,t,`<`,r)})),Ft=k(((exports,t)=>{let n=B();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),It=k(((exports,t)=>{let n=H(),r=z();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),Lt=k(((exports,t)=>{let n=B(),r=V(),{ANY:i}=r,a=H(),o=z(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),U=A(k(((exports,t)=>{let n=I(),r=F(),i=L(),a=it(),o=R(),s=at(),c=ot(),l=st(),u=ct(),d=lt(),f=ut(),p=dt(),m=ft(),h=z(),g=pt(),_=mt(),v=ht(),y=gt(),b=_t(),x=vt(),S=yt(),C=bt(),w=xt(),T=St(),E=Ct(),D=wt(),O=Tt(),ee=V(),k=B(),te=H(),A=Dt(),j=Ot(),ne=kt(),re=At(),ie=jt(),ae=Mt(),oe=Nt(),se=Pt(),ce=Ft(),le=It(),ue=Lt();t.exports={parse:o,valid:s,clean:c,inc:l,diff:u,major:d,minor:f,patch:p,prerelease:m,compare:h,rcompare:g,compareLoose:_,compareBuild:v,sort:y,rsort:b,gt:x,lt:S,eq:C,neq:w,gte:T,lte:E,cmp:D,coerce:O,Comparator:ee,Range:k,satisfies:te,toComparators:A,maxSatisfying:j,minSatisfying:ne,minVersion:re,validRange:ie,outside:ae,gtr:oe,ltr:se,intersects:ce,simplifyRange:le,subset:ue,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}))(),1),Rt=A(Me(),1),zt=A(he(),1);const Bt=[[1e3,6e4,`sec`],[6e4,36e5,`min`],[36e5,864e5,`hour`],[864e5,6048e5,`day`],[6048e5,2628e6,`week`],[2628e6,31536e6,`month`],[31536e6,1/0,`year`]],Vt={"1 day ago":`yesterday`,"1 week ago":`last week`,"1 month ago":`last month`,"1 year ago":`last year`,"in 1 day":`tomorrow`,"in 1 week":`next week`,"in 1 month":`next month`,"in 1 year":`next year`},Ht={sec:`second`,min:`minute`};function Ut(e){return e instanceof Date?e.getTime():typeof e==`string`?Date.parse(e):e}function Wt(e,{now:t,noAffix:n=!1,times:r=Bt,nowThreshold:i=2e3,nowString:a=`now`,unknownString:o=``,aliases:s=!1,aliasesMap:c=Vt,longUnits:l=!1}={}){let u=Ut(e);if(t=t===void 0?Date.now():Ut(t),Number.isNaN(u))return o||String(e);let d=!1,f=t-u;if(f<0&&(d=!0,f=Math.abs(f)),f<i)return a;let p=0,m=``;for(let e=0,t=r.length;e<t;e++){let t=r[e];if(!(f>=t[1])){p=Math.floor(f/t[0]),m=(l&&Ht[t[2]]||t[2])+(p>1?`s`:``);break}}let h=`${d&&!n?`in `:``}${p} ${m}${!d&&!n?` ago`:``}`;return s?c[h]??h:h}function Gt(e){let t=[];for(let n of e){let[e,r]=n.replaceAll(/\s+/g,``).split(/[<>=~]+/);e&&/^[0-9.a-z]+$/.test(r)&&t.push({name:e,version:r})}return t}const Kt=[`dependencies`,`devDependencies`,`peerDependencies`,`optionalDependencies`,`resolutions`],qt=[`tool.poetry.dependencies`,`tool.poetry.dev-dependencies`,`tool.poetry.test-dependencies`,`tool.poetry.group.dev.dependencies`,`tool.poetry.group.test.dependencies`],Jt=[`project.dependencies`,`project.optional-dependencies`,`dependency-groups.dev`,`dependency-groups.lint`,`dependency-groups.test`],Yt=[`deps`],Xt=S?.()??C().length??4;c?.uv&&Xt>4&&(r.UV_THREADPOOL_SIZE=String(Xt));const Zt=/^.*?:\/\/(.*?@)?(github\.com[:/])/i,Qt=/^([^/]+)\/([^/#]+)?.*?\/([0-9a-f]+|v?[0-9]+\.[0-9]+\.[0-9]+)$/i,$t=/^[0-9a-f]{7,}$/i,en=/[0-9]+(\.[0-9]+)?(\.[0-9]+)?/g,tn=/[0-9]+\.[0-9]+\.[0-9]+(-.+)?/g,W=e=>e.replace(/[|\\{}()[\]^$+*?.-]/g,`\\$&`),G=e=>e.endsWith(`/`)?e.substring(0,e.length-1):e,nn=ue.version||`0.0.0`,rn={"package.json":`npm`,"pyproject.toml":`pypi`,"go.mod":`go`},K=(0,re.default)(t.slice(2),{boolean:[`E`,`error-on-outdated`,`U`,`error-on-unchanged`,`h`,`help`,`j`,`json`,`n`,`no-color`,`u`,`update`,`v`,`version`,`V`,`verbose`],string:[`d`,`allow-downgrade`,`f`,`file`,`g`,`greatest`,`m`,`minor`,`M`,`modes`,`P`,`patch`,`p`,`prerelease`,`R`,`release`,`r`,`registry`,`t`,`types`,`githubapi`,`pypiapi`,`goproxy`],alias:{d:`allow-downgrade`,E:`error-on-outdated`,U:`error-on-unchanged`,e:`exclude`,f:`file`,g:`greatest`,h:`help`,i:`include`,j:`json`,m:`minor`,M:`modes`,n:`no-color`,P:`patch`,p:`prerelease`,r:`registry`,R:`release`,s:`semver`,S:`sockets`,t:`types`,u:`update`,v:`version`,V:`verbose`}}),[an,on,sn]=[`magenta`,`red`,`green`].map(e=>K[`no-color`]?String:t=>y(e,String(t))),q=$(Q(K.greatest)),cn=$(Q(K.prerelease)),ln=$(Q(K.release)),un=$(Q(K.patch)),dn=$(Q(K.minor)),fn=Q(K[`allow-downgrade`]),pn=Q(K.modes)||new Set([`npm`,`pypi`]),mn=K.githubapi?G(K.githubapi):`https://api.github.com`,hn=K.pypiapi?G(K.pypiapi):`https://pypi.org`,gn=K.goproxy?[G(K.goproxy)]:vn(),J=e=>e.replace(/^v/,``);function Y(e,t){for(let n of t instanceof Set?t:[])if(n.test(e))return!0;return!1}function _n(e,t){let n=t[`${e}:registry`]||t.registry;return n.endsWith(`/`)?n:`${n}/`}function vn(){return r.GOPROXY?r.GOPROXY.split(/[,|]/).map(e=>e.trim()).filter(e=>!!e&&e!==`direct`):[`https://proxy.golang.org`]}function yn(e,t){return t.split(`.`).reduce((e,t)=>e?.[t]??null,e)}function bn(e){return e.split(`,`).filter(Boolean)}function xn(e,t){let n=d(t,e);try{return p(n),n}catch{}let r=u(t);return r===t?null:xn(e,r)}function Sn(e,t,n,r){if(e.startsWith(`@`)){let i=(/@[a-z0-9][\w-.]+/.exec(e)||[``])[0],a=G(_n(i,r));if(a!==t)try{let e=(0,Rt.default)(a,n);if(e?.token)return{auth:e,registry:a}}catch{}return{auth:(0,Rt.default)(t,n),registry:t}}else return{auth:(0,Rt.default)(t,n),registry:t}}function Cn(e,t,n){return{...Object.keys(e).length&&{agentOpts:e},headers:{"user-agent":`updates/${nn}`,...n&&{Authorization:`${t} ${n}`}}}}function wn(){let e=new Date;return[e.getFullYear(),`-`,String(e.getMonth()+1).padStart(2,`0`),`-`,String(e.getDate()).padStart(2,`0`),` `,String(e.getHours()).padStart(2,`0`),`:`,String(e.getMinutes()).padStart(2,`0`),`:`,String(e.getSeconds()).padStart(2,`0`)].join(``)}function Tn(e){console.error(`${wn()} ${e}`)}async function En(e,t){K.verbose&&Tn(`${an(`fetch`)} ${e}`);let n=await fetch(e,t);return K.verbose&&Tn(`${n.ok?sn(n.status):on(n.status)} ${e}`),n}async function Dn(e,t,n,r,i,a){let{auth:o,registry:s}=Sn(e,n,i,a),c=t===`resolutions`?l(e):e,u=`${s}/${c.replace(/\//g,`%2f`)}`,d=await En(u,Cn(r,o?.type,o?.token));if(d?.ok)return[await d.json(),t,s,e];throw d?.status&&d?.statusText?Error(`Received ${d.status} ${d.statusText} from ${u}`):Error(`Unable to fetch ${e} from ${s}`)}async function On(e,t,n){let r=`${hn}/pypi/${e}/json`,i=await En(r,Cn(n));if(i?.ok)return[await i.json(),t,null,e];throw i?.status&&i?.statusText?Error(`Received ${i.status} ${i.statusText} from ${r}`):Error(`Unable to fetch ${e} from ${hn}`)}function kn(e){return e.split(/\r?\n/).map(e=>e.trim()).filter(Boolean)}async function An(e,t,n,r){let i=r.shift();if(!i)throw Error(`No more go proxies available`);let a=`${i}/${e.toLowerCase()}/${t===`latest`?`@latest`:`@v/${t}.info`}`,o=null,s=!1;try{if(o=await En(a,{...Cn(n),signal:AbortSignal.timeout(1e4)}),o?.ok)return await o.json();s=[404,410].includes(o.status)&&!!r.length}catch(e){e.name===`TimeoutError`&&(s=!!r.length)}if(s)return An(e,t,n,r);throw o?.status&&o?.statusText?Error(`Received ${o.status} ${o.statusText} from ${a}`):Error(`Unable to fetch ${e} from ${i}`)}async function jn(e,t){let n=null,r=e;for(;;){if(/\/v[0-9]+$/.test(r)){let e=Number(r.split(`/`).at(-1).substring(1))+1;r=r.replace(/\/v[0-9]+$/,`/${`v${e}`}`)}else r=`${r}/v2`;try{let e=await An(r,`latest`,t,Array.from(gn));if(e===null)break;if(e?.Version){n=e;continue}}catch{break}}return n}function Mn(e){return e=e.replace(`git@`,``).replace(/.+?\/\//,`https://`).replace(/\.git$/,``),/^[a-z]+:[a-z0-9-]\/[a-z0-9-]$/.test(e)?e.replace(/^(.+?):/,(e,t)=>`https://${t}.com/`):/^[a-z0-9-]\/[a-z0-9-]$/.test(e)?`https://github.com/${e}`:e}function Nn(e){return e.startsWith(`https://bitbucket.org`)?`src/HEAD`:`tree/HEAD`}function Pn({repository:e,homepage:t,info:n},r,i){n&&(e=n.project_urls.repository||n.project_urls.Repository||n.project_urls.repo||n.project_urls.Repo||n.project_urls.source||n.project_urls.Source||n.project_urls[`source code`]||n.project_urls[`Source code`]||n.project_urls[`Source Code`]||n.project_urls.homepage||n.project_urls.Homepage||`https://pypi.org/project/${i}/`);let a=``;if(r===`https://npm.pkg.github.com`)return`https://github.com/${i.replace(/^@/,``)}`;if(e){let t=typeof e==`string`?e:e.url;a=Mn(t),a&&typeof e!=`string`&&e.directory&&(a=`${a}/${Nn(a)}/${e.directory}`)}return a||t||``}async function Fn(e){console.info(K.json?JSON.stringify({message:e}):e),await X()}async function X(e,t){if(e){let t=e.stack??e.message,n=e.cause;K.json?console.info(JSON.stringify({error:t,cause:n})):(console.info(on(t)),n&&console.info(on(`Caused by: ${n}`)))}a===`win32`&&Number(c?.node?.split(`.`)[0])>=23&&await new Promise(e=>setTimeout(e,50)),i(t||e?1:0)}function In(e={}){for(let t of Object.keys(e))for(let n of Object.values(e[t]))typeof n.oldPrint==`string`&&(n.old=n.oldPrint,delete n.oldPrint),typeof n.newPrint==`string`&&(n.new=n.newPrint,delete n.newPrint),typeof n.oldOriginal==`string`&&(n.old=n.oldOriginal,delete n.oldOriginal);let t=0;for(let n of Object.keys(e))t+=Object.keys(e[n]).length;if(K.json){let t={results:{}};for(let n of Object.keys(e))for(let[r,i]of Object.entries(e[n])){let[e,a]=r.split(`\0`);t.results[n]||(t.results[n]={}),t.results[n][e]||(t.results[n][e]={}),t.results[n][e][a]=i}console.info(JSON.stringify(t))}else t&&console.info(Hn(e));return K[`error-on-outdated`]?t?2:0:K[`error-on-unchanged`]?t?0:2:0}function Ln(e,t){a===`win32`&&g(e,0),_(e,t,a===`win32`?{flag:`r+`}:void 0)}function Rn(e,t,n){if(e===t)return e;let r=e.split(/\./),i=t.split(/\./),a=/^[0-9a-zA-Z-.]+$/,o=``;for(let e=0;e<r.length;e++)if(r[e]!==i[e]){a.test(r[e])?o+=n(r.slice(e).join(`.`)):o+=r[e].split(``).map(e=>a.test(e)?n(e):e).join(``)+n(`.${r.slice(e+1).join(`.`)}`.replace(/\.$/,``));break}else o+=`${r[e]}.`;return o.replace(/\.$/,``)}const zn=e=>v(e).length;function Bn(e,t=` `){let n=``,r=Array(e[0].length).fill(0);for(let t of e)for(let[e,n]of t.entries()){let t=zn(n);t>r[e]&&(r[e]=t)}for(let[i,a]of e.entries()){for(let[e,i]of a.entries()){e>0&&(n+=t);let o=` `.repeat(r[e]-zn(i));n+=i+(e===a.length-1?``:o)}i<e.length-1&&(n+=`
|
|
89
|
-
`)}return n}function Vn(e){return/\/v[0-9]$/.test(e)&&(e=u(e)),e}function Hn(e){let t=[[`NAME`,`OLD`,`NEW`,`AGE`,`INFO`]],n=new Set;for(let r of Object.keys(e))for(let[i,a]of Object.entries(e[r])){let e=i.split(`\0`)[1],o=`${r}|${e}`;
|
|
25
|
+
`){if(!i)throw new N(`newlines are not allowed in strings`,{toml:e,ptr:t-1})}else if(n<` `&&n!==` `||n===``)throw new N(`control characters are not allowed in strings`,{toml:e,ptr:t-1});if(o){if(o=!1,n===`u`||n===`U`){let r=e.slice(t,t+=n===`u`?4:8);if(!Ue.test(r))throw new N(`invalid unicode escape`,{toml:e,ptr:a});try{s+=String.fromCodePoint(parseInt(r,16))}catch{throw new N(`invalid unicode escape`,{toml:e,ptr:a})}}else if(i&&(n===`
|
|
26
|
+
`||n===` `||n===` `||n===`\r`)){if(t=F(e,t-1,!0),e[t]!==`
|
|
27
|
+
`&&e[t]!==`\r`)throw new N(`invalid escape: only line-ending whitespace may be escaped`,{toml:e,ptr:a});t=F(e,t)}else if(n in We)s+=We[n];else throw new N(`unrecognized escape sequence`,{toml:e,ptr:a});c=t}else !r&&n===`\\`&&(a=t-1,o=!0,s+=e.slice(c,a))}return s+e.slice(c,n-1)}function Ke(e,t,n,r){if(e===`true`)return!0;if(e===`false`)return!1;if(e===`-inf`)return-1/0;if(e===`inf`||e===`+inf`)return 1/0;if(e===`nan`||e===`+nan`||e===`-nan`)return NaN;if(e===`-0`)return r?0n:0;let i=Be.test(e);if(i||Ve.test(e)){if(He.test(e))throw new N(`leading zeroes are not allowed`,{toml:t,ptr:n});e=e.replace(/_/g,``);let a=+e;if(isNaN(a))throw new N(`invalid number`,{toml:t,ptr:n});if(i){if((i=!Number.isSafeInteger(a))&&!r)throw new N(`integer value cannot be represented losslessly`,{toml:t,ptr:n});(i||r===!0)&&(a=BigInt(e))}return a}let a=new ze(e);if(!a.isValid())throw new N(`invalid value`,{toml:t,ptr:n});return a}function qe(e,t,n,r){let i=e.slice(t,n),a=i.indexOf(`#`);a>-1&&(Fe(e,a),i=i.slice(0,a));let o=i.trimEnd();if(!r){let n=i.indexOf(`
|
|
28
|
+
`,o.length);if(n>-1)throw new N(`newlines are not allowed in inline tables`,{toml:e,ptr:t+n})}return[o,a]}function Je(e,t,n,r,i){if(r===0)throw new N(`document contains excessively nested structures. aborting.`,{toml:e,ptr:t});let a=e[t];if(a===`[`||a===`{`){let[o,s]=a===`[`?Qe(e,t,r,i):Ze(e,t,r,i),c=n?Ie(e,s,`,`,n):s;if(s-c&&n===`}`){let t=P(e,s,c);if(t>-1)throw new N(`newlines are not allowed in inline tables`,{toml:e,ptr:t})}return[o,c]}let o;if(a===`"`||a===`'`){o=Le(e,t);let r=Ge(e,t,o);if(n){if(o=F(e,o,n!==`]`),e[o]&&e[o]!==`,`&&e[o]!==n&&e[o]!==`
|
|
29
|
+
`&&e[o]!==`\r`)throw new N(`unexpected character encountered`,{toml:e,ptr:o});o+=+(e[o]===`,`)}return[r,o]}o=Ie(e,t,`,`,n);let s=qe(e,t,o-+(e[o-1]===`,`),n===`]`);if(!s[0])throw new N(`incomplete key-value declaration: no value specified`,{toml:e,ptr:t});return n&&s[1]>-1&&(o=F(e,t+s[1]),o+=+(e[o]===`,`)),[Ke(s[0],e,t,i),o]}let Ye=/^[a-zA-Z0-9-_]+[ \t]*$/;function Xe(e,t,n=`=`){let r=t-1,i=[],a=e.indexOf(n,t);if(a<0)throw new N(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});do{let o=e[t=++r];if(o!==` `&&o!==` `)if(o===`"`||o===`'`){if(o===e[t+1]&&o===e[t+2])throw new N(`multiline strings are not allowed in keys`,{toml:e,ptr:t});let s=Le(e,t);if(s<0)throw new N(`unfinished string encountered`,{toml:e,ptr:t});r=e.indexOf(`.`,s);let c=e.slice(s,r<0||r>a?a:r),l=P(c);if(l>-1)throw new N(`newlines are not allowed in keys`,{toml:e,ptr:t+r+l});if(c.trimStart())throw new N(`found extra tokens after the string part`,{toml:e,ptr:s});if(a<s&&(a=e.indexOf(n,s),a<0))throw new N(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});i.push(Ge(e,t,s))}else{r=e.indexOf(`.`,t);let n=e.slice(t,r<0||r>a?a:r);if(!Ye.test(n))throw new N(`only letter, numbers, dashes and underscores are allowed in keys`,{toml:e,ptr:t});i.push(n.trimEnd())}}while(r+1&&r<a);return[i,F(e,a+1,!0,!0)]}function Ze(e,t,n,r){let i={},a=new Set,o,s=0;for(t++;(o=e[t++])!==`}`&&o;){let c={toml:e,ptr:t-1};if(o===`
|
|
30
|
+
`)throw new N(`newlines are not allowed in inline tables`,c);if(o===`#`)throw new N(`inline tables cannot contain comments`,c);if(o===`,`)throw new N(`expected key-value, found comma`,c);if(o!==` `&&o!==` `){let o,c=i,l=!1,[u,d]=Xe(e,t-1);for(let n=0;n<u.length;n++){if(n&&(c=l?c[o]:c[o]={}),o=u[n],(l=Object.hasOwn(c,o))&&(typeof c[o]!=`object`||a.has(c[o])))throw new N(`trying to redefine an already defined value`,{toml:e,ptr:t});!l&&o===`__proto__`&&Object.defineProperty(c,o,{enumerable:!0,configurable:!0,writable:!0})}if(l)throw new N(`trying to redefine an already defined value`,{toml:e,ptr:t});let[f,p]=Je(e,d,`}`,n-1,r);a.add(f),c[o]=f,t=p,s=e[t-1]===`,`?t-1:0}}if(s)throw new N(`trailing commas are not allowed in inline tables`,{toml:e,ptr:s});if(!o)throw new N(`unfinished table encountered`,{toml:e,ptr:t});return[i,t]}function Qe(e,t,n,r){let i=[],a;for(t++;(a=e[t++])!==`]`&&a;)if(a===`,`)throw new N(`expected value, found comma`,{toml:e,ptr:t-1});else if(a===`#`)t=Fe(e,t);else if(a!==` `&&a!==` `&&a!==`
|
|
31
|
+
`&&a!==`\r`){let a=Je(e,t-1,`]`,n-1,r);i.push(a[0]),t=a[1]}if(!a)throw new N(`unfinished array encountered`,{toml:e,ptr:t});return[i,t]}function $e(e,t,n,r){let i=t,a=n,o,s=!1,c;for(let t=0;t<e.length;t++){if(t){if(i=s?i[o]:i[o]={},a=(c=a[o]).c,r===0&&(c.t===1||c.t===2))return null;if(c.t===2){let e=i.length-1;i=i[e],a=a[e].c}}if(o=e[t],(s=Object.hasOwn(i,o))&&a[o]?.t===0&&a[o]?.d)return null;s||(o===`__proto__`&&(Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(a,o,{enumerable:!0,configurable:!0,writable:!0})),a[o]={t:t<e.length-1&&r===2?3:r,d:!1,i:0,c:{}})}if(c=a[o],c.t!==r&&!(r===1&&c.t===3)||(r===2&&(c.d||(c.d=!0,i[o]=[]),i[o].push(i={}),c.c[c.i++]=c={t:1,d:!1,i:0,c:{}}),c.d))return null;if(c.d=!0,r===1)i=s?i[o]:i[o]={};else if(r===0&&s)return null;return[o,i,c.c]}function et(e,{maxDepth:t=1e3,integersAsBigInt:n}={}){let r={},i={},a=r,o=i;for(let s=F(e,0);s<e.length;){if(e[s]===`[`){let t=e[++s]===`[`,n=Xe(e,s+=+t,`]`);if(t){if(e[n[1]-1]!==`]`)throw new N(`expected end of table declaration`,{toml:e,ptr:n[1]-1});n[1]++}let c=$e(n[0],r,i,t?2:1);if(!c)throw new N(`trying to redefine an already defined table or value`,{toml:e,ptr:s});o=c[2],a=c[1],s=n[1]}else{let r=Xe(e,s),i=$e(r[0],a,o,0);if(!i)throw new N(`trying to redefine an already defined table or value`,{toml:e,ptr:s});let c=Je(e,r[1],void 0,t,n);i[1][i[0]]=c[0],s=c[1]}if(s=F(e,s,!0),e[s]&&e[s]!==`
|
|
32
|
+
`&&e[s]!==`\r`)throw new N(`each key-value declaration must be followed by an end-of-line`,{toml:e,ptr:s});s=F(e,s)}return r}var tt=A(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),nt=A(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),I=A(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=tt(),a=nt();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),rt=A(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),it=A(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),L=A(((e,t)=>{let n=nt(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=tt(),{safeRe:a,t:o}=I(),s=rt(),{compareIdentifiers:c}=it();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),c(this.major,t.major)||c(this.minor,t.minor)||c(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),R=A(((e,t)=>{let n=L();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),at=A(((e,t)=>{let n=R();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),ot=A(((e,t)=>{let n=R();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),st=A(((e,t)=>{let n=L();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),ct=A(((e,t)=>{let n=R();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),lt=A(((e,t)=>{let n=L();t.exports=(e,t)=>new n(e,t).major})),ut=A(((e,t)=>{let n=L();t.exports=(e,t)=>new n(e,t).minor})),dt=A(((e,t)=>{let n=L();t.exports=(e,t)=>new n(e,t).patch})),ft=A(((e,t)=>{let n=R();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),z=A(((e,t)=>{let n=L();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),pt=A(((e,t)=>{let n=z();t.exports=(e,t,r)=>n(t,e,r)})),mt=A(((e,t)=>{let n=z();t.exports=(e,t)=>n(e,t,!0)})),ht=A(((e,t)=>{let n=L();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),gt=A(((e,t)=>{let n=ht();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),_t=A(((e,t)=>{let n=ht();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),B=A(((e,t)=>{let n=z();t.exports=(e,t,r)=>n(e,t,r)>0})),vt=A(((e,t)=>{let n=z();t.exports=(e,t,r)=>n(e,t,r)<0})),yt=A(((e,t)=>{let n=z();t.exports=(e,t,r)=>n(e,t,r)===0})),bt=A(((e,t)=>{let n=z();t.exports=(e,t,r)=>n(e,t,r)!==0})),xt=A(((e,t)=>{let n=z();t.exports=(e,t,r)=>n(e,t,r)>=0})),St=A(((e,t)=>{let n=z();t.exports=(e,t,r)=>n(e,t,r)<=0})),Ct=A(((e,t)=>{let n=yt(),r=bt(),i=B(),a=xt(),o=vt(),s=St();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),wt=A(((e,t)=>{let n=L(),r=R(),{safeRe:i,t:a}=I();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2],c=o[3]||`0`,l=o[4]||`0`,u=t.includePrerelease&&o[5]?`-${o[5]}`:``,d=t.includePrerelease&&o[6]?`+${o[6]}`:``;return r(`${s}.${c}.${l}${u}${d}`,t)}})),Tt=A(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),V=A(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!h(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&g(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(s,O(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[l.COMPARATORTRIM],u),o(`comparator trim`,e),e=e.replace(c[l.TILDETRIM],d),o(`tilde trim`,e),e=e.replace(c[l.CARETTRIM],f),o(`caret trim`,e);let g=e.split(` `).map(e=>v(e,this.options)).join(` `).split(/\s+/).map(e=>D(e,this.options));i&&(g=g.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[l.COMPARATORLOOSE])))),o(`range list`,g);let _=new Map,y=g.map(e=>new a(e,this.options));for(let e of y){if(h(e))return[e];_.set(e.value,e)}_.size>1&&_.has(``)&&_.delete(``);let b=[..._.values()];return r.set(t,b),b}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>_(e,n)&&t.set.some(t=>_(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(k(this.set[t],e,this.options))return!0;return!1}};let r=new(Tt()),i=rt(),a=H(),o=nt(),s=L(),{safeRe:c,t:l,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=I(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=tt(),h=e=>e.value===`<0.0.0-0`,g=e=>e.value===``,_=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},v=(e,t)=>(o(`comp`,e,t),e=S(e,t),o(`caret`,e),e=b(e,t),o(`tildes`,e),e=w(e,t),o(`xrange`,e),e=E(e,t),o(`stars`,e),e),y=e=>!e||e.toLowerCase()===`x`||e===`*`,b=(e,t)=>e.trim().split(/\s+/).map(e=>x(e,t)).join(` `),x=(e,t)=>{let n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return y(n)?s=``:y(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:y(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(` `),C=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return y(n)?c=``:y(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:y(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},w=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>T(e,t)).join(` `)),T=(e,t)=>{e=e.trim();let n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=y(i),u=l||y(a),d=u||y(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},E=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[l.STAR],``)),D=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],``)),O=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=y(r)?``:y(i)?`>=${r}.0.0${e?`-0`:``}`:y(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=y(l)?``:y(u)?`<${+l+1}.0.0-0`:y(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),k=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),H=A(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=rt(),{safeRe:i,t:a}=I(),o=Ct(),s=nt(),c=L(),l=V()})),Et=A(((e,t)=>{let n=V();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),Dt=A(((e,t)=>{let n=V();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),Ot=A(((e,t)=>{let n=L(),r=V();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),kt=A(((e,t)=>{let n=L(),r=V();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),At=A(((e,t)=>{let n=L(),r=V(),i=B();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),jt=A(((e,t)=>{let n=V();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),Mt=A(((e,t)=>{let n=L(),r=H(),{ANY:i}=r,a=V(),o=Et(),s=B(),c=vt(),l=St(),u=xt();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),Nt=A(((e,t)=>{let n=Mt();t.exports=(e,t,r)=>n(e,t,`>`,r)})),Pt=A(((e,t)=>{let n=Mt();t.exports=(e,t,r)=>n(e,t,`<`,r)})),Ft=A(((e,t)=>{let n=V();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),It=A(((e,t)=>{let n=Et(),r=z();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),Lt=A(((e,t)=>{let n=V(),r=H(),{ANY:i}=r,a=Et(),o=z(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),U=j(A(((e,t)=>{let n=I(),r=tt(),i=L(),a=it(),o=R(),s=at(),c=ot(),l=st(),u=ct(),d=lt(),f=ut(),p=dt(),m=ft(),h=z(),g=pt(),_=mt(),v=ht(),y=gt(),b=_t(),x=B(),S=vt(),C=yt(),w=bt(),T=xt(),E=St(),D=Ct(),O=wt(),k=H(),A=V(),ee=Et(),j=Dt(),M=Ot(),te=kt(),ne=At(),re=jt(),ie=Mt(),ae=Nt(),oe=Pt(),se=Ft(),ce=It(),le=Lt();t.exports={parse:o,valid:s,clean:c,inc:l,diff:u,major:d,minor:f,patch:p,prerelease:m,compare:h,rcompare:g,compareLoose:_,compareBuild:v,sort:y,rsort:b,gt:x,lt:S,eq:C,neq:w,gte:T,lte:E,cmp:D,coerce:O,Comparator:k,Range:A,satisfies:ee,toComparators:j,maxSatisfying:M,minSatisfying:te,minVersion:ne,validRange:re,outside:ie,gtr:ae,ltr:oe,intersects:se,simplifyRange:ce,subset:le,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}))(),1),Rt=j(je(),1),zt=j(me(),1);const Bt=[[1e3,6e4,`sec`],[6e4,36e5,`min`],[36e5,864e5,`hour`],[864e5,6048e5,`day`],[6048e5,2628e6,`week`],[2628e6,31536e6,`month`],[31536e6,1/0,`year`]],Vt={"1 day ago":`yesterday`,"1 week ago":`last week`,"1 month ago":`last month`,"1 year ago":`last year`,"in 1 day":`tomorrow`,"in 1 week":`next week`,"in 1 month":`next month`,"in 1 year":`next year`},Ht={sec:`second`,min:`minute`};function Ut(e){return e instanceof Date?e.getTime():typeof e==`string`?Date.parse(e):e}function Wt(e,{now:t,noAffix:n=!1,times:r=Bt,nowThreshold:i=2e3,nowString:a=`now`,unknownString:o=``,aliases:s=!1,aliasesMap:c=Vt,longUnits:l=!1}={}){let u=Ut(e);if(t=t===void 0?Date.now():Ut(t),Number.isNaN(u))return o||String(e);let d=!1,f=t-u;if(f<0&&(d=!0,f=Math.abs(f)),f<i)return a;let p=0,m=``;for(let e=0,t=r.length;e<t;e++){let t=r[e];if(!(f>=t[1])){p=Math.floor(f/t[0]),m=(l&&Ht[t[2]]||t[2])+(p>1?`s`:``);break}}let h=`${d&&!n?`in `:``}${p} ${m}${!d&&!n?` ago`:``}`;return s?c[h]??h:h}function Gt(e){let t=[];for(let n of e){let[e,r]=n.replaceAll(/\s+/g,``).split(/[<>=~]+/);e&&/^[0-9.a-z]+$/.test(r)&&t.push({name:e,version:r})}return t}const Kt=[`dependencies`,`devDependencies`,`peerDependencies`,`optionalDependencies`,`resolutions`],qt=[`tool.poetry.dependencies`,`tool.poetry.dev-dependencies`,`tool.poetry.test-dependencies`,`tool.poetry.group.dev.dependencies`,`tool.poetry.group.test.dependencies`],Jt=[`project.dependencies`,`project.optional-dependencies`,`dependency-groups.dev`,`dependency-groups.lint`,`dependency-groups.test`],Yt=[`deps`],Xt=S?.()??C().length??4;c?.uv&&Xt>4&&(r.UV_THREADPOOL_SIZE=String(Xt));const Zt=/^.*?:\/\/(.*?@)?(github\.com[:/])/i,Qt=/^([^/]+)\/([^/#]+)?.*?\/([0-9a-f]+|v?[0-9]+\.[0-9]+\.[0-9]+)$/i,$t=/^[0-9a-f]{7,}$/i,en=/[0-9]+(\.[0-9]+)?(\.[0-9]+)?/g,tn=/[0-9]+\.[0-9]+\.[0-9]+(-.+)?/g,W=e=>e.replace(/[|\\{}()[\]^$+*?.-]/g,`\\$&`),G=e=>e.endsWith(`/`)?e.substring(0,e.length-1):e,nn=le.version||`0.0.0`,rn={"package.json":`npm`,"pyproject.toml":`pypi`,"go.mod":`go`},K=(0,ne.default)(t.slice(2),{boolean:[`E`,`error-on-outdated`,`U`,`error-on-unchanged`,`h`,`help`,`j`,`json`,`n`,`no-color`,`u`,`update`,`v`,`version`,`V`,`verbose`],string:[`d`,`allow-downgrade`,`f`,`file`,`g`,`greatest`,`m`,`minor`,`M`,`modes`,`P`,`patch`,`p`,`prerelease`,`R`,`release`,`r`,`registry`,`t`,`types`,`s`,`sockets`,`githubapi`,`pypiapi`,`goproxy`],alias:{a:`min-age`,d:`allow-downgrade`,E:`error-on-outdated`,U:`error-on-unchanged`,e:`exclude`,f:`file`,g:`greatest`,h:`help`,i:`include`,j:`json`,m:`minor`,M:`modes`,n:`no-color`,P:`patch`,p:`prerelease`,r:`registry`,R:`release`,s:`semver`,S:`sockets`,t:`types`,u:`update`,v:`version`,V:`verbose`}}),[an,on,sn]=[`magenta`,`red`,`green`].map(e=>K[`no-color`]?String:t=>y(e,String(t))),q=$(Q(K.greatest)),cn=$(Q(K.prerelease)),ln=$(Q(K.release)),un=$(Q(K.patch)),dn=$(Q(K.minor)),fn=Q(K[`allow-downgrade`]),pn=Q(K.modes)||new Set([`npm`,`pypi`]),mn=K.githubapi?G(K.githubapi):`https://api.github.com`,hn=K.pypiapi?G(K.pypiapi):`https://pypi.org`,gn=K.goproxy?[G(K.goproxy)]:vn(),J=e=>e.replace(/^v/,``);function Y(e,t){for(let n of t instanceof Set?t:[])if(n.test(e))return!0;return!1}function _n(e,t){let n=t[`${e}:registry`]||t.registry;return n.endsWith(`/`)?n:`${n}/`}function vn(){return r.GOPROXY?r.GOPROXY.split(/[,|]/).map(e=>e.trim()).filter(e=>!!e&&e!==`direct`):[`https://proxy.golang.org`]}function yn(e,t){return t.split(`.`).reduce((e,t)=>e?.[t]??null,e)}function bn(e){return e.split(`,`).filter(Boolean)}function xn(e,t){let n=d(t,e);try{return p(n),n}catch{}let r=u(t);return r===t?null:xn(e,r)}function Sn(e,t,n,r){if(e.startsWith(`@`)){let i=(/@[a-z0-9][\w-.]+/.exec(e)||[``])[0],a=G(_n(i,r));if(a!==t)try{let e=(0,Rt.default)(a,n);if(e?.token)return{auth:e,registry:a}}catch{}return{auth:(0,Rt.default)(t,n),registry:t}}else return{auth:(0,Rt.default)(t,n),registry:t}}function Cn(e,t,n){return{...Object.keys(e).length&&{agentOpts:e},headers:{"user-agent":`updates/${nn}`,...n&&{Authorization:`${t} ${n}`}}}}function wn(){let e=new Date;return[e.getFullYear(),`-`,String(e.getMonth()+1).padStart(2,`0`),`-`,String(e.getDate()).padStart(2,`0`),` `,String(e.getHours()).padStart(2,`0`),`:`,String(e.getMinutes()).padStart(2,`0`),`:`,String(e.getSeconds()).padStart(2,`0`)].join(``)}function Tn(e){console.error(`${wn()} ${e}`)}async function En(e,t){K.verbose&&Tn(`${an(`fetch`)} ${e}`);let n=await fetch(e,t);return K.verbose&&Tn(`${n.ok?sn(n.status):on(n.status)} ${e}`),n}async function Dn(e,t,n,r,i,a){let{auth:o,registry:s}=Sn(e,n,i,a),c=t===`resolutions`?l(e):e,u=`${s}/${c.replace(/\//g,`%2f`)}`,d=await En(u,Cn(r,o?.type,o?.token));if(d?.ok)return[await d.json(),t,s,e];throw d?.status&&d?.statusText?Error(`Received ${d.status} ${d.statusText} from ${u}`):Error(`Unable to fetch ${e} from ${s}`)}async function On(e,t,n){let r=`${hn}/pypi/${e}/json`,i=await En(r,Cn(n));if(i?.ok)return[await i.json(),t,null,e];throw i?.status&&i?.statusText?Error(`Received ${i.status} ${i.statusText} from ${r}`):Error(`Unable to fetch ${e} from ${hn}`)}function kn(e){return e.split(/\r?\n/).map(e=>e.trim()).filter(Boolean)}async function An(e,t,n,r){let i=r.shift();if(!i)throw Error(`No more go proxies available`);let a=`${i}/${e.toLowerCase()}/${t===`latest`?`@latest`:`@v/${t}.info`}`,o=null,s=!1;try{if(o=await En(a,{...Cn(n),signal:AbortSignal.timeout(1e4)}),o?.ok)return await o.json();s=[404,410].includes(o.status)&&!!r.length}catch(e){e.name===`TimeoutError`&&(s=!!r.length)}if(s)return An(e,t,n,r);throw o?.status&&o?.statusText?Error(`Received ${o.status} ${o.statusText} from ${a}`):Error(`Unable to fetch ${e} from ${i}`)}async function jn(e,t){let n=null,r=e;for(;;){if(/\/v[0-9]+$/.test(r)){let e=Number(r.split(`/`).at(-1).substring(1))+1;r=r.replace(/\/v[0-9]+$/,`/${`v${e}`}`)}else r=`${r}/v2`;try{let e=await An(r,`latest`,t,Array.from(gn));if(e===null)break;if(e?.Version){n=e;continue}}catch{break}}return n}function Mn(e){return e=e.replace(`git@`,``).replace(/.+?\/\//,`https://`).replace(/\.git$/,``),/^[a-z]+:[a-z0-9-]\/[a-z0-9-]$/.test(e)?e.replace(/^(.+?):/,(e,t)=>`https://${t}.com/`):/^[a-z0-9-]\/[a-z0-9-]$/.test(e)?`https://github.com/${e}`:e}function Nn(e){return e.startsWith(`https://bitbucket.org`)?`src/HEAD`:`tree/HEAD`}function Pn({repository:e,homepage:t,info:n},r,i){n&&(e=n.project_urls.repository||n.project_urls.Repository||n.project_urls.repo||n.project_urls.Repo||n.project_urls.source||n.project_urls.Source||n.project_urls[`source code`]||n.project_urls[`Source code`]||n.project_urls[`Source Code`]||n.project_urls.homepage||n.project_urls.Homepage||`https://pypi.org/project/${i}/`);let a=``;if(r===`https://npm.pkg.github.com`)return`https://github.com/${i.replace(/^@/,``)}`;if(e){let t=typeof e==`string`?e:e.url;a=Mn(t),a&&typeof e!=`string`&&e.directory&&(a=`${a}/${Nn(a)}/${e.directory}`)}return a||t||``}async function Fn(e){console.info(K.json?JSON.stringify({message:e}):e),await X()}async function X(e,t){if(e){let t=e.stack??e.message,n=e.cause;K.json?console.info(JSON.stringify({error:t,cause:n})):(console.info(on(t)),n&&console.info(on(`Caused by: ${n}`)))}a===`win32`&&Number(c?.node?.split(`.`)[0])>=23&&await new Promise(e=>setTimeout(e,50)),i(t||e?1:0)}function In(e={}){for(let t of Object.keys(e))for(let n of Object.values(e[t])){typeof n.oldPrint==`string`&&(n.old=n.oldPrint),typeof n.newPrint==`string`&&(n.new=n.newPrint),typeof n.oldOriginal==`string`&&(n.old=n.oldOriginal);for(let e of[`oldPrint`,`newPrint`,`oldOriginal`,`date`])delete n[e]}let t=0;for(let n of Object.keys(e))t+=Object.keys(e[n]).length;if(K.json){let t={results:{}};for(let n of Object.keys(e))for(let[r,i]of Object.entries(e[n])){let[e,a]=r.split(`\0`);t.results[n]||(t.results[n]={}),t.results[n][e]||(t.results[n][e]={}),t.results[n][e][a]=i}console.info(JSON.stringify(t))}else t&&console.info(Hn(e));return K[`error-on-outdated`]?t?2:0:K[`error-on-unchanged`]?t?0:2:0}function Ln(e,t){a===`win32`&&g(e,0),_(e,t,a===`win32`?{flag:`r+`}:void 0)}function Rn(e,t,n){if(e===t)return e;let r=e.split(/\./),i=t.split(/\./),a=/^[0-9a-zA-Z-.]+$/,o=``;for(let e=0;e<r.length;e++)if(r[e]!==i[e]){a.test(r[e])?o+=n(r.slice(e).join(`.`)):o+=r[e].split(``).map(e=>a.test(e)?n(e):e).join(``)+n(`.${r.slice(e+1).join(`.`)}`.replace(/\.$/,``));break}else o+=`${r[e]}.`;return o.replace(/\.$/,``)}const zn=e=>v(e).length;function Bn(e,t=` `){let n=``,r=Array(e[0].length).fill(0);for(let t of e)for(let[e,n]of t.entries()){let t=zn(n);t>r[e]&&(r[e]=t)}for(let[i,a]of e.entries()){for(let[e,i]of a.entries()){e>0&&(n+=t);let o=` `.repeat(r[e]-zn(i));n+=i+(e===a.length-1?``:o)}i<e.length-1&&(n+=`
|
|
33
|
+
`)}return n}function Vn(e){return/\/v[0-9]$/.test(e)&&(e=u(e)),e}function Hn(e){let t=[[`NAME`,`OLD`,`NEW`,`AGE`,`INFO`]],n=new Set;for(let r of Object.keys(e))for(let[i,a]of Object.entries(e[r])){let e=i.split(`\0`)[1],o=`${r}|${e}`;n.has(o)||(n.add(o),t.push([r===`go`?Vn(e):e,Rn(a.old,a.new,on),Rn(a.new,a.old,sn),a.age||``,a.info||``]))}return Bn(t)}function Un(e,t){let n=e;for(let e of Object.keys(t)){let r=e.split(`\0`)[1],i=t[e].oldOriginal||t[e].old,a=RegExp(`"${W(r)}": *"${W(i)}"`,`g`);n=n.replace(a,`"${r}": "${t[e].new}"`)}return n}function Wn(e,t){let n=e;for(let e of Object.keys(t)){let r=e.split(`\0`)[1],i=t[e].oldOriginal||t[e].old;n=n.replace(RegExp(`${W(r)} *= *"${W(i)}"`,`g`),`${r} = "${t[e].new}"`),n=n.replace(RegExp(`("${W(r)} *[<>=~]+ *)${W(i)}(")`,`g`),(n,r,i)=>`${r}${t[e].new}${i}`)}return n}function Gn(e,t,n){let r=e.replace(tn,t);if(n&&n!==e&&/^[\^~]/.test(r)){let e=n.substring(1).split(`.`),t=r.substring(1).split(`.`);e.length!==t.length&&(r=`${r[0]}${t.slice(0,e.length).join(`.`)}`)}return r}function Kn(e){let t=(0,U.parse)(e);return t?!!t.prerelease.length:!1}function qn(e){return/[0-9]+\.[0-9]+\.[0-9]+-.+/.test(e)}function Z(e){try{return(0,U.coerce)(e)?.version??``}catch{return``}}function Jn(e,t,{range:n,semvers:r,usePre:i,useRel:a,useGreatest:o}){let s=Z(n);if(!s)return s;i=qn(n)||i,i&&(r.add(`prerelease`),r.has(`patch`)&&r.add(`prepatch`),r.has(`minor`)&&r.add(`preminor`),r.has(`major`)&&r.add(`premajor`));let c=0,l=s;for(let n of t){let t=(0,U.parse)(n);if(!t?.version||t.prerelease.length&&(!i||a))continue;let s=t.version,u=(0,U.diff)(l,s);if(!(!u||!r.has(u)))if(o||!(`time`in e))(0,U.gte)(Z(s),l)&&(l=s);else{let t=new Date(e.time[n]).getTime();t>=0&&t>c&&(l=s,c=t)}}return l||null}function Yn(e,{mode:t,range:n,useGreatest:r,useRel:i,usePre:a,semvers:o}){if(t===`go`)return(0,U.gt)(J(e.Version),J(n))?e.Version:null;if(n===`*`||n.includes(`||`))return null;let s=[];t===`pypi`?s=Object.keys(e.releases).filter(e=>(0,U.valid)(e)):t===`npm`&&(s=Object.keys(e.versions).filter(e=>(0,U.valid)(e)));let c=Jn(e,s,{range:n,semvers:o,usePre:a,useRel:i,useGreatest:r});if(!c)return null;if(r)return c;{let r=``,s=``;t===`pypi`?(s=e.info.version,r=Z(e.info.version)):r=e[`dist-tags`].latest;let l=Z(n),u=qn(n),d=Kn(c),f=Kn(r),p=(0,U.gt)(c,l);if(!i&&a||u&&d||i&&!p&&u&&!d||u&&!d&&p)return c;if(u&&!d&&!p)return null;let m=(0,U.diff)(l,r);return m&&m!==`prerelease`&&!o.has(m.replace(/^pre/,``))||i&&Kn(r)?c:(0,U.lt)(r,l)&&!f?fn===!0||Y(e.name,fn)?r:null:s||r}}function Xn(e){let t={},n=r.UPDATES_GITHUB_API_TOKEN||r.GITHUB_API_TOKEN||r.GH_TOKEN||r.GITHUB_TOKEN||r.HOMEBREW_GITHUB_API_TOKEN;return n&&(t.headers={Authorization:`Bearer ${n}`}),En(e,t)}async function Zn(e,t){let n=`${mn}/repos/${e}/${t}/commits`,r=await Xn(n);if(!r?.ok)return{hash:``,commit:{}};let{sha:i,commit:a}=(await r.json())[0];return{hash:i,commit:a}}async function Qn(e,t){let n=await Xn(`${mn}/repos/${e}/${t}/git/refs/tags`);return n?.ok?(await n.json()).map(e=>e.ref.replace(/^refs\/tags\//,``)):[]}function $n(e,t,n){let r=J(t);if(!(0,U.valid)(r))return null;if(n){let n=t,i=J(t);for(let t of e){let e=J(t);(0,U.valid)(e)&&(!n||(0,U.gt)(e,i))&&(n=t,i=e)}if((0,U.neq)(r,i))return n}else{let t=e.at(-1);if(!t)return null;let n=J(t);if(!(0,U.valid)(n))return null;if((0,U.neq)(r,n))return t}return null}async function er(e,t,n){let r=t.old.replace(Zt,``),[i,a,o,s]=Qt.exec(r)||[];if(!a||!o||!s)return null;if($t.test(s)){let{hash:n,commit:r}=await Zn(a,o);if(!n)return null;let i=r?.committer?.date??r?.author?.date,c=n.substring(0,s.length);if(s!==c){let n=t.old.replace(s,c);return{key:e,newRange:n,user:a,repo:o,oldRef:s,newRef:c,newDate:i}}}else{let t=await Qn(a,o),r=$n(t,s,n);if(r)return{key:e,newRange:r,user:a,repo:o,oldRef:s,newRef:r}}return null}function tr(e){return e.replace(/-.*/,``)}function nr(e){let t=e.match(en);return t?.length===1?e.replace(en,Z(t[0])):e}function Q(e){return e===void 0?!1:e===``?!0:typeof e==`string`?e.includes(`,`)?new Set(bn(e)):new Set([e]):Array.isArray(e)?new Set(e):!1}function rr(e){return Array.from(e.matchAll(/(----BEGIN CERT[^]+?IFICATE----)/g),e=>e[0])}function ir(e){return Array.from(e.matchAll(/(----BEGIN [^]+?PRIVATE KEY----)/g),e=>e[0])}function ar(e,t){return RegExp(`^${W(e).replaceAll(`\\*`,`.*`)}$`,t?`i`:``)}function or(e,t,n){return t&&typeof e==`string`?/\/.+\//.test(e)?new RegExp(e.slice(1,-1)):ar(e,n):e instanceof RegExp?e:ar(e,n)}function $(e){if(e instanceof Set){let t=new Set;for(let n of e)t.add(or(n,!0,!1));return t}return e}function sr(e,t){let n=new Set;for(let t of e||[])n.add(or(t,!0,!0));for(let e of t||[])n.add(or(e,!1,!0));return n}function cr(e,t,n,r){if(t===`pypi`&&e===`python`)return!1;if(!n.size&&!r.size)return!0;for(let t of r)if(t.test(e))return!1;for(let t of n)if(t.test(e))return!0;return!n.size}function lr(e,t,n){return!e||!t?!0:(n-Date.parse(e))/36e5>=t}function ur(e){let t=new Set,r=new Set;if(e)for(let n of e){let e;try{e=m(n)}catch(e){throw Error(`Unable to open ${n}: ${e.message}`)}if(e?.isFile()){let e=f(n);t.add(e),r.add(e)}else if(e?.isDirectory())for(let e of Object.keys(rn)){let r=d(n,e),i=null;try{i=m(r)}catch{}i?.isFile()&&t.add(f(r))}else throw Error(`${n} is neither a file nor directory`)}else for(let e of Object.keys(rn)){let r=xn(e,n());r&&t.add(f(r))}return[t,r]}async function dr(e){let t=[];for(let e of[``,`.config/`])for(let n of[`js`,`ts`,`mjs`,`mts`])t.push(`${e}updates${e?``:`.config`}.${n}`);let n={};try{({default:n}=await Promise.any(t.map(t=>import(d(e,...t.split(`/`))))))}catch{}return n}async function fr(){for(let e of[s,o])e?._handle?.setBlocking?.(!0);let e=typeof K.sockets==`number`?K.sockets:96,{help:t,version:n,file:r,types:i,update:a}=K;t&&(s.write(`usage: updates [options]
|
|
90
34
|
|
|
91
35
|
Options:
|
|
92
36
|
-u, --update Update versions and write package file
|
|
@@ -100,6 +44,7 @@ let ze=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}
|
|
|
100
44
|
-P, --patch [<pkg,...>] Consider only up to semver-patch
|
|
101
45
|
-m, --minor [<pkg,...>] Consider only up to semver-minor
|
|
102
46
|
-d, --allow-downgrade [<pkg,...>] Allow version downgrades when using latest version
|
|
47
|
+
-a, --min-age <num> Minimum package age in hours
|
|
103
48
|
-E, --error-on-outdated Exit with code 2 when updates are available and 0 when not
|
|
104
49
|
-U, --error-on-unchanged Exit with code 0 when updates are available and 2 when not
|
|
105
50
|
-r, --registry <url> Override npm registry URL
|
|
@@ -118,4 +63,4 @@ let ze=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}
|
|
|
118
63
|
$ updates -e '/^react-(dom)?/'
|
|
119
64
|
$ updates -f package.json
|
|
120
65
|
$ updates -f pyproject.toml
|
|
121
|
-
`),await X()),n&&(console.info(nn),await X());let c={},d={},p={},m={},g=0,[
|
|
66
|
+
`),await X()),n&&(console.info(nn),await X());let c={},d={},p={},m={},g=Date.now(),_=0,[v,y]=ur(Q(r));for(let t of v){let n=u(f(t)),r=l(t),a=rn[r];if(!pn.has(a)&&!y.has(t))continue;m[a]=t,c[a]||(c[a]={});let o=await dr(n),s=[],v=[];K.include&&K.include!==!0&&(s=(Array.isArray(K.include)?K.include:[K.include]).flatMap(e=>bn(e))),K.exclude&&K.exclude!==!0&&(v=(Array.isArray(K.exclude)?K.exclude:[K.exclude]).flatMap(e=>bn(e)));let S=sr(s,o?.include??[]),C=sr(v,o?.exclude??[]),w={},T=(0,zt.default)(`npm`,{registry:`https://registry.npmjs.org`})||{},E={npmrc:T,recursive:!0};if(a===`npm`){T[`strict-ssl`]===!1&&(w.rejectUnauthorized=!1);for(let e of[`cert`,`ca`,`key`]){let n=e===`key`?ir:rr,r=[];T[e]&&(r=(Array.isArray(T[e])?T[e]:[T[e]]).flatMap(e=>n(e))),T[`${e}file`]&&(r=Array.from(n(h(T[`opt${t}`],`utf8`)))),r.length&&(w[e]=e===`ca`?[...x,...r]:r)}}let D=[];i?D=Array.isArray(i)?i:bn(i):`types`in o&&Array.isArray(o.types)?D=o.types:a===`npm`?D=Kt:a===`pypi`?D=[...Jt,...qt]:a===`go`&&(D=Array.from(Yt));let O={};if(a===`go`)p[a]=b(`go`,[`list`,`-m`,`-f`,`{{if not .Indirect}}{{.Path}}@{{.Version}}{{end}}`,`all`],{stdio:`pipe`,encoding:`utf8`,cwd:n});else try{p[a]=h(t,`utf8`)}catch(e){throw Error(`Unable to open ${t}: ${e.message}`)}try{if(a===`npm`)O=JSON.parse(p[a]);else if(a===`pypi`)O=et(p[a]);else{O.deps={};for(let e of kn(p[a])){let[t,n]=e.split(`@`);n&&(O.deps[t]=n)}}}catch(e){throw Error(`Error parsing ${t}: ${e.message}`)}for(let e of D){let t;if(t=a===`npm`||a===`go`?O[e]||{}:yn(O,e)||{},Array.isArray(t)&&a===`pypi`)for(let{name:n,version:r}of Gt(t))cr(n,a,S,C)&&(c[a][`${e}${n}`]={old:nr(r),oldOriginal:r});else for(let[n,r]of Object.entries(t))a!==`go`&&(0,U.validRange)(r)&&cr(n,a,S,C)?c[a][`${e}${n}`]={old:nr(r),oldOriginal:r}:a===`npm`&&cr(n,a,S,C)?d[`${e}${n}`]={old:r}:a===`go`&&(c[a][`${e}${n}`]={old:tr(r),oldOriginal:r})}if(_+=Object.keys(c[a]).length+Object.keys(d).length,!_)continue;let k;a===`npm`&&(k=G(K.registry||o.registry||T.registry));let A=await ce(Object.keys(c[a]).map(e=>async()=>{let[t,n]=e.split(`\0`);if(a===`npm`)return Dn(n,t,k,w,E,T);if(a===`pypi`)return On(n,t,w);{let e=await An(n,`latest`,w,Array.from(gn)),t=await jn(n,w);return t&&e&&(0,U.gt)(t.Version.substring(1),e.Version.substring(1))&&(e=t),[e,Yt[0],null,n]}}),{concurrency:e});for(let[e,t,n,r]of A){if(e?.error)throw Error(e.error);let i=typeof q==`boolean`?q:Y(e.name,q),o=typeof cn==`boolean`?cn:Y(e.name,cn),s=typeof ln==`boolean`?ln:Y(e.name,ln),l;l=un===!0||Y(e.name,un)?new Set([`patch`]):dn===!0||Y(e.name,dn)?new Set([`patch`,`minor`]):new Set([`patch`,`minor`,`major`]);let u=`${t}${r}`,d=c[a][u].old,f=c[a][u].oldOriginal,p=Yn(e,{usePre:o,useRel:s,useGreatest:i,semvers:l,range:d,mode:a}),m=``;if([`go`,`pypi`].includes(a)&&p?m=p:p&&(m=Gn(d,p,f)),!p||f&&f===m){delete c[a][u];continue}let h=``;a===`npm`&&e.time?.[p]?h=e.time[p]:a===`pypi`&&e.releases?.[p]?.[0]?.upload_time_iso_8601?h=e.releases[p][0].upload_time_iso_8601:a===`go`&&e.Time&&(h=e.Time),c[a][u].new=m,a===`npm`?c[a][u].info=Pn(e?.versions?.[p],n,e.name):a===`pypi`?c[a][u].info=Pn(e,n,e.info.name):c[a][u].info=e?.Origin?.URL??`https://${r}`,h&&(c[a][u].date=h,c[a][u].age=Wt(h,{noAffix:!0}))}if(Object.keys(d).length){let t=(await ce(Object.entries(d).map(([e,t])=>()=>{let n=e.split(`\0`)[1],r=typeof q==`boolean`?q:Y(n,q);return er(e,t,r)}),{concurrency:e})).filter(e=>e!==null);for(let e of t){let{key:t,newRange:n,user:r,repo:i,oldRef:o,newRef:s,newDate:l}=e;c[a][t]={old:d[t].old,new:n,oldPrint:$t.test(o)?o.substring(0,7):o,newPrint:$t.test(s)?s.substring(0,7):s,info:`https://github.com/${r}/${i}`,...l?{age:Wt(l,{noAffix:!0})}:{}}}}let ee=K[`min-age`]??o.minAge;if(ee){for(let e of Object.keys(c))for(let[t,{date:n}]of Object.entries(c[e]))if(!lr(n,ee,g)){delete c[e][t];continue}}}_===0&&Fn(`No dependencies found, nothing to do.`);let S=0;for(let e of Object.keys(c))S+=Object.keys(c[e]).length;S||Fn(`All dependencies are up to date.`);let C=In(c);if(a){for(let e of Object.keys(c))if(Object.keys(c[e]).length){try{let t=e===`npm`?Un:Wn;Ln(m[e],t(p[e],c[e]))}catch(t){throw Error(`Error writing ${l(m[e])}: ${t.message}`)}console.info(sn(`✨ ${l(m[e])} updated`))}}await X(void 0,C)}try{await fr()}catch(e){await X(e)}export{lr as canIncludeByDate};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "updates",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.8.0",
|
|
4
4
|
"description": "Flexible npm and poetry dependency update tool",
|
|
5
5
|
"author": "silverwind",
|
|
6
6
|
"repository": "silverwind/updates",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/minimist": "1.2.5",
|
|
20
|
-
"@types/node": "24.
|
|
20
|
+
"@types/node": "24.6.2",
|
|
21
21
|
"@types/rc": "1.2.4",
|
|
22
22
|
"@types/semver": "7.7.1",
|
|
23
|
-
"eslint": "9.
|
|
24
|
-
"eslint-config-silverwind": "105.2.
|
|
23
|
+
"eslint": "9.37.0",
|
|
24
|
+
"eslint-config-silverwind": "105.2.2",
|
|
25
25
|
"minimist": "1.2.8",
|
|
26
26
|
"nano-spawn": "1.0.3",
|
|
27
27
|
"p-all": "5.0.1",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"semver": "7.7.2",
|
|
32
32
|
"smol-toml": "1.4.2",
|
|
33
33
|
"timerel": "5.8.2",
|
|
34
|
-
"tsdown": "0.15.
|
|
35
|
-
"tsdown-config-silverwind": "1.
|
|
36
|
-
"typescript": "5.9.
|
|
37
|
-
"typescript-config-silverwind": "
|
|
38
|
-
"versions": "13.1
|
|
34
|
+
"tsdown": "0.15.6",
|
|
35
|
+
"tsdown-config-silverwind": "1.4.0",
|
|
36
|
+
"typescript": "5.9.3",
|
|
37
|
+
"typescript-config-silverwind": "11.0.0",
|
|
38
|
+
"versions": "13.2.1",
|
|
39
39
|
"vitest": "3.2.4",
|
|
40
40
|
"vitest-config-silverwind": "10.2.0"
|
|
41
41
|
}
|