@modern-js/utils 2.69.7 → 3.0.0-alpha.1
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/dist/cjs/cli/alias.js +76 -70
- package/dist/cjs/cli/applyOptionsChain.js +44 -45
- package/dist/cjs/cli/babel.js +100 -119
- package/dist/cjs/cli/commands.js +61 -59
- package/dist/cjs/cli/common.js +45 -37
- package/dist/cjs/cli/config.js +36 -30
- package/dist/cjs/cli/constants.js +124 -161
- package/dist/cjs/cli/ensure.js +52 -45
- package/dist/cjs/cli/fs.js +41 -38
- package/dist/cjs/cli/get/config.js +43 -38
- package/dist/cjs/cli/get/data.js +108 -125
- package/dist/cjs/cli/get/index.js +109 -58
- package/dist/cjs/cli/index.js +202 -63
- package/dist/cjs/cli/is/config.js +75 -71
- package/dist/cjs/cli/is/env.js +49 -37
- package/dist/cjs/cli/is/index.js +76 -25
- package/dist/cjs/cli/is/project.js +139 -135
- package/dist/cjs/cli/is/type.js +65 -49
- package/dist/cjs/cli/logger.js +36 -27
- package/dist/cjs/cli/monorepo.js +100 -96
- package/dist/cjs/cli/package.js +85 -82
- package/dist/cjs/cli/path.js +101 -82
- package/dist/cjs/cli/port.js +71 -74
- package/dist/cjs/cli/prettyInstructions.js +106 -116
- package/dist/cjs/cli/require.js +116 -136
- package/dist/cjs/cli/route.js +67 -77
- package/dist/cjs/cli/runtimeExports.js +16 -70
- package/dist/cjs/cli/version.js +53 -42
- package/dist/cjs/cli/watch.js +79 -72
- package/dist/cjs/compiled.js +199 -128
- package/dist/cjs/import.js +58 -33
- package/dist/cjs/index.js +69 -23
- package/dist/cjs/universal/constants.js +77 -67
- package/dist/cjs/universal/index.js +33 -25
- package/dist/cjs/universal/path.js +33 -27
- package/dist/cjs/universal/pluginDagSort.js +69 -68
- package/dist/compiled/address/index.js +171 -1
- package/dist/compiled/browserslist/index.js +1329 -1
- package/dist/compiled/chalk/index.js +2368 -1
- package/dist/compiled/chokidar/index.js +4138 -16
- package/dist/compiled/chokidar/index.js.LICENSE.txt +41 -0
- package/dist/compiled/commander/index.js +1540 -1
- package/dist/compiled/debug/index.js +621 -1
- package/dist/compiled/dotenv/index.js +101 -1
- package/dist/compiled/dotenv-expand/index.js +54 -1
- package/dist/compiled/execa/index.js +1738 -1
- package/dist/compiled/fast-glob/index.js +4645 -17
- package/dist/compiled/fast-glob/index.js.LICENSE.txt +38 -0
- package/dist/compiled/filesize/index.js +193 -4
- package/dist/compiled/filesize/index.js.LICENSE.txt +7 -0
- package/dist/compiled/fs-extra/index.js +2222 -1
- package/dist/compiled/glob/index.js +2011 -1
- package/dist/compiled/globby/index.js +690 -1
- package/dist/compiled/gzip-size/index.js +157 -1
- package/dist/compiled/import-lazy/index.js +45 -1
- package/dist/compiled/inquirer/index.js +20162 -4
- package/dist/compiled/inquirer/index.js.LICENSE.txt +7 -0
- package/dist/compiled/js-yaml/index.js +2188 -1
- package/dist/compiled/json5/index.js +983 -1
- package/dist/compiled/lodash/index.js +0 -4
- package/dist/compiled/mime-types/index.js +108 -6
- package/dist/compiled/mime-types/index.js.LICENSE.txt +13 -0
- package/dist/compiled/minimist/index.js +202 -1
- package/dist/compiled/nanoid/index.js +83 -1
- package/dist/compiled/ora/index.js +3936 -3
- package/dist/compiled/ora/index.js.LICENSE.txt +1 -0
- package/dist/compiled/pkg-up/index.js +177 -1
- package/dist/compiled/semver/index.js +1779 -1
- package/dist/compiled/signale/index.js +1704 -1
- package/dist/compiled/slash/index.js +32 -1
- package/dist/compiled/strip-ansi/index.js +34 -1
- package/dist/compiled/tsconfig-paths/index.js +629 -1
- package/dist/compiled/upath/index.js +135 -1
- package/dist/compiled/url-join/index.js +61 -1
- package/dist/compiled/webpack-chain/index.js +1475 -1
- package/dist/esm/cli/alias.mjs +31 -0
- package/dist/esm/cli/applyOptionsChain.mjs +16 -0
- package/dist/esm/cli/babel.mjs +76 -0
- package/dist/esm/cli/commands.mjs +23 -0
- package/dist/esm/cli/common.mjs +11 -0
- package/dist/esm/cli/config.mjs +5 -0
- package/dist/esm/cli/constants.mjs +29 -0
- package/dist/esm/cli/ensure.mjs +9 -0
- package/dist/esm/cli/fs.mjs +9 -0
- package/dist/esm/cli/get/config.mjs +14 -0
- package/dist/esm/cli/get/data.mjs +57 -0
- package/dist/esm/cli/get/index.mjs +18 -0
- package/dist/{esm-node/cli/index.js → esm/cli/index.mjs} +0 -1
- package/dist/esm/cli/is/config.mjs +34 -0
- package/dist/esm/cli/is/env.mjs +6 -0
- package/dist/esm/cli/is/project.mjs +104 -0
- package/dist/esm/cli/is/type.mjs +26 -0
- package/dist/esm/cli/logger.mjs +2 -0
- package/dist/esm/cli/monorepo.mjs +50 -0
- package/dist/esm/cli/package.mjs +51 -0
- package/dist/esm/cli/path.mjs +35 -0
- package/dist/esm/cli/port.mjs +35 -0
- package/dist/esm/cli/prettyInstructions.mjs +68 -0
- package/dist/esm/cli/require.mjs +79 -0
- package/dist/esm/cli/route.mjs +36 -0
- package/dist/esm/cli/runtimeExports.mjs +0 -0
- package/dist/esm/cli/version.mjs +21 -0
- package/dist/esm/cli/watch.mjs +40 -0
- package/dist/esm/compiled.mjs +115 -0
- package/dist/esm/import.mjs +25 -0
- package/dist/esm/universal/constants.mjs +13 -0
- package/dist/{esm-node/universal/index.js → esm/universal/index.mjs} +1 -3
- package/dist/esm/universal/path.mjs +2 -0
- package/dist/esm/universal/pluginDagSort.mjs +41 -0
- package/dist/esm-node/cli/alias.mjs +31 -0
- package/dist/esm-node/cli/applyOptionsChain.mjs +16 -0
- package/dist/esm-node/cli/babel.mjs +76 -0
- package/dist/esm-node/cli/commands.mjs +23 -0
- package/dist/esm-node/cli/common.mjs +11 -0
- package/dist/esm-node/cli/config.mjs +5 -0
- package/dist/esm-node/cli/constants.mjs +29 -0
- package/dist/esm-node/cli/ensure.mjs +9 -0
- package/dist/esm-node/cli/fs.mjs +9 -0
- package/dist/esm-node/cli/get/config.mjs +14 -0
- package/dist/esm-node/cli/get/data.mjs +57 -0
- package/dist/esm-node/cli/get/index.mjs +18 -0
- package/dist/esm-node/cli/index.mjs +22 -0
- package/dist/esm-node/cli/is/config.mjs +34 -0
- package/dist/esm-node/cli/is/env.mjs +6 -0
- package/dist/esm-node/cli/is/index.mjs +4 -0
- package/dist/esm-node/cli/is/project.mjs +104 -0
- package/dist/esm-node/cli/is/type.mjs +26 -0
- package/dist/esm-node/cli/logger.mjs +2 -0
- package/dist/esm-node/cli/monorepo.mjs +50 -0
- package/dist/esm-node/cli/package.mjs +51 -0
- package/dist/esm-node/cli/path.mjs +35 -0
- package/dist/esm-node/cli/port.mjs +35 -0
- package/dist/esm-node/cli/prettyInstructions.mjs +68 -0
- package/dist/esm-node/cli/require.mjs +79 -0
- package/dist/esm-node/cli/route.mjs +36 -0
- package/dist/esm-node/cli/runtimeExports.mjs +0 -0
- package/dist/esm-node/cli/version.mjs +21 -0
- package/dist/esm-node/cli/watch.mjs +40 -0
- package/dist/esm-node/compiled.mjs +115 -0
- package/dist/esm-node/import.mjs +25 -0
- package/dist/esm-node/index.mjs +3 -0
- package/dist/esm-node/universal/constants.mjs +13 -0
- package/dist/esm-node/universal/index.mjs +2 -0
- package/dist/esm-node/universal/path.mjs +2 -0
- package/dist/esm-node/universal/pluginDagSort.mjs +41 -0
- package/dist/types/cli/constants.d.ts +2 -26
- package/dist/types/cli/get/data.d.ts +0 -1
- package/dist/types/cli/index.d.ts +0 -1
- package/dist/types/cli/is/config.d.ts +1 -1
- package/dist/types/cli/runtimeExports.d.ts +1 -4
- package/dist/types/cli/watch.d.ts +1 -1
- package/dist/types/compiled.d.ts +0 -5
- package/dist/types/universal/constants.d.ts +4 -7
- package/package.json +27 -27
- package/rslib.config.mts +140 -0
- package/dist/cjs/cli/action.js +0 -55
- package/dist/cjs/universal/formatWebpack.js +0 -127
- package/dist/esm/cli/action.js +0 -68
- package/dist/esm/cli/alias.js +0 -43
- package/dist/esm/cli/applyOptionsChain.js +0 -29
- package/dist/esm/cli/babel.js +0 -122
- package/dist/esm/cli/commands.js +0 -39
- package/dist/esm/cli/common.js +0 -20
- package/dist/esm/cli/config.js +0 -11
- package/dist/esm/cli/constants.js +0 -114
- package/dist/esm/cli/ensure.js +0 -16
- package/dist/esm/cli/fs.js +0 -65
- package/dist/esm/cli/get/config.js +0 -19
- package/dist/esm/cli/get/data.js +0 -143
- package/dist/esm/cli/get/index.js +0 -38
- package/dist/esm/cli/index.js +0 -23
- package/dist/esm/cli/is/config.js +0 -70
- package/dist/esm/cli/is/env.js +0 -22
- package/dist/esm/cli/is/index.js +0 -4
- package/dist/esm/cli/is/project.js +0 -146
- package/dist/esm/cli/is/type.js +0 -39
- package/dist/esm/cli/logger.js +0 -5
- package/dist/esm/cli/monorepo.js +0 -82
- package/dist/esm/cli/package.js +0 -203
- package/dist/esm/cli/path.js +0 -66
- package/dist/esm/cli/port.js +0 -97
- package/dist/esm/cli/prettyInstructions.js +0 -102
- package/dist/esm/cli/require.js +0 -235
- package/dist/esm/cli/route.js +0 -64
- package/dist/esm/cli/runtimeExports.js +0 -44
- package/dist/esm/cli/version.js +0 -26
- package/dist/esm/cli/watch.js +0 -112
- package/dist/esm/compiled.js +0 -66
- package/dist/esm/import.js +0 -11
- package/dist/esm/index.js +0 -3
- package/dist/esm/universal/constants.js +0 -32
- package/dist/esm/universal/formatWebpack.js +0 -95
- package/dist/esm/universal/index.js +0 -4
- package/dist/esm/universal/path.js +0 -6
- package/dist/esm/universal/pluginDagSort.js +0 -73
- package/dist/esm-node/cli/action.js +0 -30
- package/dist/esm-node/cli/alias.js +0 -40
- package/dist/esm-node/cli/applyOptionsChain.js +0 -27
- package/dist/esm-node/cli/babel.js +0 -107
- package/dist/esm-node/cli/commands.js +0 -39
- package/dist/esm-node/cli/common.js +0 -15
- package/dist/esm-node/cli/config.js +0 -9
- package/dist/esm-node/cli/constants.js +0 -114
- package/dist/esm-node/cli/ensure.js +0 -14
- package/dist/esm-node/cli/fs.js +0 -18
- package/dist/esm-node/cli/get/config.js +0 -19
- package/dist/esm-node/cli/get/data.js +0 -96
- package/dist/esm-node/cli/get/index.js +0 -22
- package/dist/esm-node/cli/is/config.js +0 -50
- package/dist/esm-node/cli/is/env.js +0 -12
- package/dist/esm-node/cli/is/project.js +0 -105
- package/dist/esm-node/cli/is/type.js +0 -36
- package/dist/esm-node/cli/logger.js +0 -5
- package/dist/esm-node/cli/monorepo.js +0 -67
- package/dist/esm-node/cli/package.js +0 -66
- package/dist/esm-node/cli/path.js +0 -48
- package/dist/esm-node/cli/port.js +0 -48
- package/dist/esm-node/cli/prettyInstructions.js +0 -90
- package/dist/esm-node/cli/require.js +0 -111
- package/dist/esm-node/cli/route.js +0 -60
- package/dist/esm-node/cli/runtimeExports.js +0 -38
- package/dist/esm-node/cli/version.js +0 -26
- package/dist/esm-node/cli/watch.js +0 -45
- package/dist/esm-node/compiled.js +0 -66
- package/dist/esm-node/import.js +0 -11
- package/dist/esm-node/universal/constants.js +0 -32
- package/dist/esm-node/universal/formatWebpack.js +0 -102
- package/dist/esm-node/universal/path.js +0 -6
- package/dist/esm-node/universal/pluginDagSort.js +0 -50
- package/dist/types/cli/action.d.ts +0 -2
- package/dist/types/universal/formatWebpack.d.ts +0 -26
- /package/dist/{esm-node/cli/is/index.js → esm/cli/is/index.mjs} +0 -0
- /package/dist/{esm-node/index.js → esm/index.mjs} +0 -0
|
@@ -1 +1,621 @@
|
|
|
1
|
-
(()=>{var e={434:(e,t,r)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let s=0;let n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}s++;if(e==="%c"){n=s}}));t.splice(n,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(290)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},290:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(367);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let r=null;let s;let n;function debug(...e){if(!debug.enabled){return}const r=debug;const s=Number(new Date);const n=s-(t||s);r.diff=n;r.prev=t;r.curr=s;t=s;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,s)=>{if(t==="%%"){return"%"}o++;const n=createDebug.formatters[s];if(typeof n==="function"){const s=e[o];t=n.call(r,s);e.splice(o,1);o--}return t}));createDebug.formatArgs.call(r,e);const a=r.log||createDebug.log;a.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(s!==createDebug.namespaces){s=createDebug.namespaces;n=createDebug.enabled(e)}return n},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const s=r.length;for(t=0;t<s;t++){if(!r[t]){continue}e=r[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.slice(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t<r;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,r=createDebug.names.length;t<r;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},372:(e,t,r)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(434)}else{e.exports=r(970)}},970:(e,t,r)=>{const s=r(224);const n=r(837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(332);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let s=process.env[t];if(/^(yes|on|true|enabled)$/i.test(s)){s=true}else if(/^(no|off|false|disabled)$/i.test(s)){s=false}else if(s==="null"){s=null}else{s=Number(s)}e[r]=s;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):s.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:s}=this;if(s){const s=this.color;const n="[3"+(s<8?s:"8;5;"+s);const o=` ${n};1m${r} [0m`;t[0]=o+t[0].split("\n").join("\n"+o);t.push(n+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(n.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let s=0;s<r.length;s++){e.inspectOpts[r[s]]=t.inspectOpts[r[s]]}}e.exports=r(290)(t);const{formatters:o}=e.exports;o.o=function(e){this.inspectOpts.colors=this.useColors;return n.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};o.O=function(e){this.inspectOpts.colors=this.useColors;return n.inspect(e,this.inspectOpts)}},419:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const s=t.indexOf(r+e);const n=t.indexOf("--");return s!==-1&&(n===-1?true:s<n)}},367:e=>{var t=1e3;var r=t*60;var s=r*60;var n=s*24;var o=n*7;var a=n*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c){return}var u=parseFloat(c[1]);var i=(c[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return u*a;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*n;case"hours":case"hour":case"hrs":case"hr":case"h":return u*s;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=n){return Math.round(e/n)+"d"}if(o>=s){return Math.round(e/s)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=n){return plural(e,o,n,"day")}if(o>=s){return plural(e,o,s,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,s){var n=t>=r*1.5;return Math.round(e/r)+" "+s+(n?"s":"")}},332:(e,t,r)=>{"use strict";const s=r(37);const n=r(419);const o=process.env;let a;if(n("no-color")||n("no-colors")||n("color=false")){a=false}else if(n("color")||n("colors")||n("color=true")||n("color=always")){a=true}if("FORCE_COLOR"in o){a=o.FORCE_COLOR.length===0||parseInt(o.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(a===false){return 0}if(n("color=16m")||n("color=full")||n("color=truecolor")){return 3}if(n("color=256")){return 2}if(e&&!e.isTTY&&a!==true){return 0}const t=a?1:0;if(process.platform==="win32"){const e=s.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in o))||o.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}if(o.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},37:e=>{"use strict";e.exports=require("os")},224:e=>{"use strict";e.exports=require("tty")},837:e=>{"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var n=t[r]={exports:{}};var o=true;try{e[r](n,n.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(372);module.exports=r})();
|
|
1
|
+
(()=>{
|
|
2
|
+
var e = {
|
|
3
|
+
434: (e, t, r)=>{
|
|
4
|
+
t.formatArgs = formatArgs;
|
|
5
|
+
t.save = save;
|
|
6
|
+
t.load = load;
|
|
7
|
+
t.useColors = useColors;
|
|
8
|
+
t.storage = localstorage();
|
|
9
|
+
t.destroy = (()=>{
|
|
10
|
+
let e = false;
|
|
11
|
+
return ()=>{
|
|
12
|
+
if (!e) {
|
|
13
|
+
e = true;
|
|
14
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
})();
|
|
18
|
+
t.colors = [
|
|
19
|
+
"#0000CC",
|
|
20
|
+
"#0000FF",
|
|
21
|
+
"#0033CC",
|
|
22
|
+
"#0033FF",
|
|
23
|
+
"#0066CC",
|
|
24
|
+
"#0066FF",
|
|
25
|
+
"#0099CC",
|
|
26
|
+
"#0099FF",
|
|
27
|
+
"#00CC00",
|
|
28
|
+
"#00CC33",
|
|
29
|
+
"#00CC66",
|
|
30
|
+
"#00CC99",
|
|
31
|
+
"#00CCCC",
|
|
32
|
+
"#00CCFF",
|
|
33
|
+
"#3300CC",
|
|
34
|
+
"#3300FF",
|
|
35
|
+
"#3333CC",
|
|
36
|
+
"#3333FF",
|
|
37
|
+
"#3366CC",
|
|
38
|
+
"#3366FF",
|
|
39
|
+
"#3399CC",
|
|
40
|
+
"#3399FF",
|
|
41
|
+
"#33CC00",
|
|
42
|
+
"#33CC33",
|
|
43
|
+
"#33CC66",
|
|
44
|
+
"#33CC99",
|
|
45
|
+
"#33CCCC",
|
|
46
|
+
"#33CCFF",
|
|
47
|
+
"#6600CC",
|
|
48
|
+
"#6600FF",
|
|
49
|
+
"#6633CC",
|
|
50
|
+
"#6633FF",
|
|
51
|
+
"#66CC00",
|
|
52
|
+
"#66CC33",
|
|
53
|
+
"#9900CC",
|
|
54
|
+
"#9900FF",
|
|
55
|
+
"#9933CC",
|
|
56
|
+
"#9933FF",
|
|
57
|
+
"#99CC00",
|
|
58
|
+
"#99CC33",
|
|
59
|
+
"#CC0000",
|
|
60
|
+
"#CC0033",
|
|
61
|
+
"#CC0066",
|
|
62
|
+
"#CC0099",
|
|
63
|
+
"#CC00CC",
|
|
64
|
+
"#CC00FF",
|
|
65
|
+
"#CC3300",
|
|
66
|
+
"#CC3333",
|
|
67
|
+
"#CC3366",
|
|
68
|
+
"#CC3399",
|
|
69
|
+
"#CC33CC",
|
|
70
|
+
"#CC33FF",
|
|
71
|
+
"#CC6600",
|
|
72
|
+
"#CC6633",
|
|
73
|
+
"#CC9900",
|
|
74
|
+
"#CC9933",
|
|
75
|
+
"#CCCC00",
|
|
76
|
+
"#CCCC33",
|
|
77
|
+
"#FF0000",
|
|
78
|
+
"#FF0033",
|
|
79
|
+
"#FF0066",
|
|
80
|
+
"#FF0099",
|
|
81
|
+
"#FF00CC",
|
|
82
|
+
"#FF00FF",
|
|
83
|
+
"#FF3300",
|
|
84
|
+
"#FF3333",
|
|
85
|
+
"#FF3366",
|
|
86
|
+
"#FF3399",
|
|
87
|
+
"#FF33CC",
|
|
88
|
+
"#FF33FF",
|
|
89
|
+
"#FF6600",
|
|
90
|
+
"#FF6633",
|
|
91
|
+
"#FF9900",
|
|
92
|
+
"#FF9933",
|
|
93
|
+
"#FFCC00",
|
|
94
|
+
"#FFCC33"
|
|
95
|
+
];
|
|
96
|
+
function useColors() {
|
|
97
|
+
if ("u" > typeof window && window.process && ("renderer" === window.process.type || window.process.__nwjs)) return true;
|
|
98
|
+
if ("u" > typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return false;
|
|
99
|
+
return "u" > typeof document && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || "u" > typeof window && window.console && (window.console.firebug || window.console.exception && window.console.table) || "u" > typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || "u" > typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
100
|
+
}
|
|
101
|
+
function formatArgs(t) {
|
|
102
|
+
t[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + t[0] + (this.useColors ? "%c " : " ") + "+" + e.exports.humanize(this.diff);
|
|
103
|
+
if (!this.useColors) return;
|
|
104
|
+
const r = "color: " + this.color;
|
|
105
|
+
t.splice(1, 0, r, "color: inherit");
|
|
106
|
+
let s = 0;
|
|
107
|
+
let n = 0;
|
|
108
|
+
t[0].replace(/%[a-zA-Z%]/g, (e)=>{
|
|
109
|
+
if ("%%" === e) return;
|
|
110
|
+
s++;
|
|
111
|
+
if ("%c" === e) n = s;
|
|
112
|
+
});
|
|
113
|
+
t.splice(n, 0, r);
|
|
114
|
+
}
|
|
115
|
+
t.log = console.debug || console.log || (()=>{});
|
|
116
|
+
function save(e) {
|
|
117
|
+
try {
|
|
118
|
+
if (e) t.storage.setItem("debug", e);
|
|
119
|
+
else t.storage.removeItem("debug");
|
|
120
|
+
} catch (e) {}
|
|
121
|
+
}
|
|
122
|
+
function load() {
|
|
123
|
+
let e;
|
|
124
|
+
try {
|
|
125
|
+
e = t.storage.getItem("debug");
|
|
126
|
+
} catch (e) {}
|
|
127
|
+
if (!e && "u" > typeof process && "env" in process) e = process.env.DEBUG;
|
|
128
|
+
return e;
|
|
129
|
+
}
|
|
130
|
+
function localstorage() {
|
|
131
|
+
try {
|
|
132
|
+
return localStorage;
|
|
133
|
+
} catch (e) {}
|
|
134
|
+
}
|
|
135
|
+
e.exports = r(290)(t);
|
|
136
|
+
const { formatters: s } = e.exports;
|
|
137
|
+
s.j = function(e) {
|
|
138
|
+
try {
|
|
139
|
+
return JSON.stringify(e);
|
|
140
|
+
} catch (e) {
|
|
141
|
+
return "[UnexpectedJSONParseError]: " + e.message;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
},
|
|
145
|
+
290: (e, t, r)=>{
|
|
146
|
+
function setup(e) {
|
|
147
|
+
createDebug.debug = createDebug;
|
|
148
|
+
createDebug.default = createDebug;
|
|
149
|
+
createDebug.coerce = coerce;
|
|
150
|
+
createDebug.disable = disable;
|
|
151
|
+
createDebug.enable = enable;
|
|
152
|
+
createDebug.enabled = enabled;
|
|
153
|
+
createDebug.humanize = r(367);
|
|
154
|
+
createDebug.destroy = destroy;
|
|
155
|
+
Object.keys(e).forEach((t)=>{
|
|
156
|
+
createDebug[t] = e[t];
|
|
157
|
+
});
|
|
158
|
+
createDebug.names = [];
|
|
159
|
+
createDebug.skips = [];
|
|
160
|
+
createDebug.formatters = {};
|
|
161
|
+
function selectColor(e) {
|
|
162
|
+
let t = 0;
|
|
163
|
+
for(let r = 0; r < e.length; r++){
|
|
164
|
+
t = (t << 5) - t + e.charCodeAt(r);
|
|
165
|
+
t |= 0;
|
|
166
|
+
}
|
|
167
|
+
return createDebug.colors[Math.abs(t) % createDebug.colors.length];
|
|
168
|
+
}
|
|
169
|
+
createDebug.selectColor = selectColor;
|
|
170
|
+
function createDebug(e) {
|
|
171
|
+
let t;
|
|
172
|
+
let r = null;
|
|
173
|
+
let s;
|
|
174
|
+
let n;
|
|
175
|
+
function debug(...e) {
|
|
176
|
+
if (!debug.enabled) return;
|
|
177
|
+
const r = debug;
|
|
178
|
+
const s = Number(new Date);
|
|
179
|
+
const n = s - (t || s);
|
|
180
|
+
r.diff = n;
|
|
181
|
+
r.prev = t;
|
|
182
|
+
r.curr = s;
|
|
183
|
+
t = s;
|
|
184
|
+
e[0] = createDebug.coerce(e[0]);
|
|
185
|
+
if ("string" != typeof e[0]) e.unshift("%O");
|
|
186
|
+
let o = 0;
|
|
187
|
+
e[0] = e[0].replace(/%([a-zA-Z%])/g, (t, s)=>{
|
|
188
|
+
if ("%%" === t) return "%";
|
|
189
|
+
o++;
|
|
190
|
+
const n = createDebug.formatters[s];
|
|
191
|
+
if ("function" == typeof n) {
|
|
192
|
+
const s = e[o];
|
|
193
|
+
t = n.call(r, s);
|
|
194
|
+
e.splice(o, 1);
|
|
195
|
+
o--;
|
|
196
|
+
}
|
|
197
|
+
return t;
|
|
198
|
+
});
|
|
199
|
+
createDebug.formatArgs.call(r, e);
|
|
200
|
+
const a = r.log || createDebug.log;
|
|
201
|
+
a.apply(r, e);
|
|
202
|
+
}
|
|
203
|
+
debug.namespace = e;
|
|
204
|
+
debug.useColors = createDebug.useColors();
|
|
205
|
+
debug.color = createDebug.selectColor(e);
|
|
206
|
+
debug.extend = extend;
|
|
207
|
+
debug.destroy = createDebug.destroy;
|
|
208
|
+
Object.defineProperty(debug, "enabled", {
|
|
209
|
+
enumerable: true,
|
|
210
|
+
configurable: false,
|
|
211
|
+
get: ()=>{
|
|
212
|
+
if (null !== r) return r;
|
|
213
|
+
if (s !== createDebug.namespaces) {
|
|
214
|
+
s = createDebug.namespaces;
|
|
215
|
+
n = createDebug.enabled(e);
|
|
216
|
+
}
|
|
217
|
+
return n;
|
|
218
|
+
},
|
|
219
|
+
set: (e)=>{
|
|
220
|
+
r = e;
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
if ("function" == typeof createDebug.init) createDebug.init(debug);
|
|
224
|
+
return debug;
|
|
225
|
+
}
|
|
226
|
+
function extend(e, t) {
|
|
227
|
+
const r = createDebug(this.namespace + (void 0 === t ? ":" : t) + e);
|
|
228
|
+
r.log = this.log;
|
|
229
|
+
return r;
|
|
230
|
+
}
|
|
231
|
+
function enable(e) {
|
|
232
|
+
createDebug.save(e);
|
|
233
|
+
createDebug.namespaces = e;
|
|
234
|
+
createDebug.names = [];
|
|
235
|
+
createDebug.skips = [];
|
|
236
|
+
let t;
|
|
237
|
+
const r = ("string" == typeof e ? e : "").split(/[\s,]+/);
|
|
238
|
+
const s = r.length;
|
|
239
|
+
for(t = 0; t < s; t++)if (r[t]) {
|
|
240
|
+
e = r[t].replace(/\*/g, ".*?");
|
|
241
|
+
if ("-" === e[0]) createDebug.skips.push(new RegExp("^" + e.slice(1) + "$"));
|
|
242
|
+
else createDebug.names.push(new RegExp("^" + e + "$"));
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
function disable() {
|
|
246
|
+
const e = [
|
|
247
|
+
...createDebug.names.map(toNamespace),
|
|
248
|
+
...createDebug.skips.map(toNamespace).map((e)=>"-" + e)
|
|
249
|
+
].join(",");
|
|
250
|
+
createDebug.enable("");
|
|
251
|
+
return e;
|
|
252
|
+
}
|
|
253
|
+
function enabled(e) {
|
|
254
|
+
if ("*" === e[e.length - 1]) return true;
|
|
255
|
+
let t;
|
|
256
|
+
let r;
|
|
257
|
+
for(t = 0, r = createDebug.skips.length; t < r; t++)if (createDebug.skips[t].test(e)) return false;
|
|
258
|
+
for(t = 0, r = createDebug.names.length; t < r; t++)if (createDebug.names[t].test(e)) return true;
|
|
259
|
+
return false;
|
|
260
|
+
}
|
|
261
|
+
function toNamespace(e) {
|
|
262
|
+
return e.toString().substring(2, e.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
263
|
+
}
|
|
264
|
+
function coerce(e) {
|
|
265
|
+
if (e instanceof Error) return e.stack || e.message;
|
|
266
|
+
return e;
|
|
267
|
+
}
|
|
268
|
+
function destroy() {
|
|
269
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
270
|
+
}
|
|
271
|
+
createDebug.enable(createDebug.load());
|
|
272
|
+
return createDebug;
|
|
273
|
+
}
|
|
274
|
+
e.exports = setup;
|
|
275
|
+
},
|
|
276
|
+
372: (e, t, r)=>{
|
|
277
|
+
if ("u" < typeof process || "renderer" === process.type || true === process.browser || process.__nwjs) e.exports = r(434);
|
|
278
|
+
else e.exports = r(970);
|
|
279
|
+
},
|
|
280
|
+
970: (e, t, r)=>{
|
|
281
|
+
const s = r(224);
|
|
282
|
+
const n = r(837);
|
|
283
|
+
t.init = init;
|
|
284
|
+
t.log = log;
|
|
285
|
+
t.formatArgs = formatArgs;
|
|
286
|
+
t.save = save;
|
|
287
|
+
t.load = load;
|
|
288
|
+
t.useColors = useColors;
|
|
289
|
+
t.destroy = n.deprecate(()=>{}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
290
|
+
t.colors = [
|
|
291
|
+
6,
|
|
292
|
+
2,
|
|
293
|
+
3,
|
|
294
|
+
4,
|
|
295
|
+
5,
|
|
296
|
+
1
|
|
297
|
+
];
|
|
298
|
+
try {
|
|
299
|
+
const e = r(332);
|
|
300
|
+
if (e && (e.stderr || e).level >= 2) t.colors = [
|
|
301
|
+
20,
|
|
302
|
+
21,
|
|
303
|
+
26,
|
|
304
|
+
27,
|
|
305
|
+
32,
|
|
306
|
+
33,
|
|
307
|
+
38,
|
|
308
|
+
39,
|
|
309
|
+
40,
|
|
310
|
+
41,
|
|
311
|
+
42,
|
|
312
|
+
43,
|
|
313
|
+
44,
|
|
314
|
+
45,
|
|
315
|
+
56,
|
|
316
|
+
57,
|
|
317
|
+
62,
|
|
318
|
+
63,
|
|
319
|
+
68,
|
|
320
|
+
69,
|
|
321
|
+
74,
|
|
322
|
+
75,
|
|
323
|
+
76,
|
|
324
|
+
77,
|
|
325
|
+
78,
|
|
326
|
+
79,
|
|
327
|
+
80,
|
|
328
|
+
81,
|
|
329
|
+
92,
|
|
330
|
+
93,
|
|
331
|
+
98,
|
|
332
|
+
99,
|
|
333
|
+
112,
|
|
334
|
+
113,
|
|
335
|
+
128,
|
|
336
|
+
129,
|
|
337
|
+
134,
|
|
338
|
+
135,
|
|
339
|
+
148,
|
|
340
|
+
149,
|
|
341
|
+
160,
|
|
342
|
+
161,
|
|
343
|
+
162,
|
|
344
|
+
163,
|
|
345
|
+
164,
|
|
346
|
+
165,
|
|
347
|
+
166,
|
|
348
|
+
167,
|
|
349
|
+
168,
|
|
350
|
+
169,
|
|
351
|
+
170,
|
|
352
|
+
171,
|
|
353
|
+
172,
|
|
354
|
+
173,
|
|
355
|
+
178,
|
|
356
|
+
179,
|
|
357
|
+
184,
|
|
358
|
+
185,
|
|
359
|
+
196,
|
|
360
|
+
197,
|
|
361
|
+
198,
|
|
362
|
+
199,
|
|
363
|
+
200,
|
|
364
|
+
201,
|
|
365
|
+
202,
|
|
366
|
+
203,
|
|
367
|
+
204,
|
|
368
|
+
205,
|
|
369
|
+
206,
|
|
370
|
+
207,
|
|
371
|
+
208,
|
|
372
|
+
209,
|
|
373
|
+
214,
|
|
374
|
+
215,
|
|
375
|
+
220,
|
|
376
|
+
221
|
|
377
|
+
];
|
|
378
|
+
} catch (e) {}
|
|
379
|
+
t.inspectOpts = Object.keys(process.env).filter((e)=>/^debug_/i.test(e)).reduce((e, t)=>{
|
|
380
|
+
const r = t.substring(6).toLowerCase().replace(/_([a-z])/g, (e, t)=>t.toUpperCase());
|
|
381
|
+
let s = process.env[t];
|
|
382
|
+
s = /^(yes|on|true|enabled)$/i.test(s) ? true : /^(no|off|false|disabled)$/i.test(s) ? false : "null" === s ? null : Number(s);
|
|
383
|
+
e[r] = s;
|
|
384
|
+
return e;
|
|
385
|
+
}, {});
|
|
386
|
+
function useColors() {
|
|
387
|
+
return "colors" in t.inspectOpts ? Boolean(t.inspectOpts.colors) : s.isatty(process.stderr.fd);
|
|
388
|
+
}
|
|
389
|
+
function formatArgs(t) {
|
|
390
|
+
const { namespace: r, useColors: s } = this;
|
|
391
|
+
if (s) {
|
|
392
|
+
const s = this.color;
|
|
393
|
+
const n = "[3" + (s < 8 ? s : "8;5;" + s);
|
|
394
|
+
const o = ` ${n};1m${r} [0m`;
|
|
395
|
+
t[0] = o + t[0].split("\n").join("\n" + o);
|
|
396
|
+
t.push(n + "m+" + e.exports.humanize(this.diff) + "[0m");
|
|
397
|
+
} else t[0] = getDate() + r + " " + t[0];
|
|
398
|
+
}
|
|
399
|
+
function getDate() {
|
|
400
|
+
if (t.inspectOpts.hideDate) return "";
|
|
401
|
+
return (new Date).toISOString() + " ";
|
|
402
|
+
}
|
|
403
|
+
function log(...e) {
|
|
404
|
+
return process.stderr.write(n.format(...e) + "\n");
|
|
405
|
+
}
|
|
406
|
+
function save(e) {
|
|
407
|
+
if (e) process.env.DEBUG = e;
|
|
408
|
+
else delete process.env.DEBUG;
|
|
409
|
+
}
|
|
410
|
+
function load() {
|
|
411
|
+
return process.env.DEBUG;
|
|
412
|
+
}
|
|
413
|
+
function init(e) {
|
|
414
|
+
e.inspectOpts = {};
|
|
415
|
+
const r = Object.keys(t.inspectOpts);
|
|
416
|
+
for(let s = 0; s < r.length; s++)e.inspectOpts[r[s]] = t.inspectOpts[r[s]];
|
|
417
|
+
}
|
|
418
|
+
e.exports = r(290)(t);
|
|
419
|
+
const { formatters: o } = e.exports;
|
|
420
|
+
o.o = function(e) {
|
|
421
|
+
this.inspectOpts.colors = this.useColors;
|
|
422
|
+
return n.inspect(e, this.inspectOpts).split("\n").map((e)=>e.trim()).join(" ");
|
|
423
|
+
};
|
|
424
|
+
o.O = function(e) {
|
|
425
|
+
this.inspectOpts.colors = this.useColors;
|
|
426
|
+
return n.inspect(e, this.inspectOpts);
|
|
427
|
+
};
|
|
428
|
+
},
|
|
429
|
+
419: (e)=>{
|
|
430
|
+
"use strict";
|
|
431
|
+
e.exports = (e, t)=>{
|
|
432
|
+
t = t || process.argv;
|
|
433
|
+
const r = e.startsWith("-") ? "" : 1 === e.length ? "-" : "--";
|
|
434
|
+
const s = t.indexOf(r + e);
|
|
435
|
+
const n = t.indexOf("--");
|
|
436
|
+
return -1 !== s && (-1 === n ? true : s < n);
|
|
437
|
+
};
|
|
438
|
+
},
|
|
439
|
+
367: (e)=>{
|
|
440
|
+
var t = 1e3;
|
|
441
|
+
var r = 60 * t;
|
|
442
|
+
var s = 60 * r;
|
|
443
|
+
var n = 24 * s;
|
|
444
|
+
var o = 7 * n;
|
|
445
|
+
var a = 365.25 * n;
|
|
446
|
+
e.exports = function(e, t) {
|
|
447
|
+
t = t || {};
|
|
448
|
+
var r = typeof e;
|
|
449
|
+
if ("string" === r && e.length > 0) return parse(e);
|
|
450
|
+
if ("number" === r && isFinite(e)) return t.long ? fmtLong(e) : fmtShort(e);
|
|
451
|
+
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(e));
|
|
452
|
+
};
|
|
453
|
+
function parse(e) {
|
|
454
|
+
e = String(e);
|
|
455
|
+
if (e.length > 100) return;
|
|
456
|
+
var c = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);
|
|
457
|
+
if (!c) return;
|
|
458
|
+
var u = parseFloat(c[1]);
|
|
459
|
+
var i = (c[2] || "ms").toLowerCase();
|
|
460
|
+
switch(i){
|
|
461
|
+
case "years":
|
|
462
|
+
case "year":
|
|
463
|
+
case "yrs":
|
|
464
|
+
case "yr":
|
|
465
|
+
case "y":
|
|
466
|
+
return u * a;
|
|
467
|
+
case "weeks":
|
|
468
|
+
case "week":
|
|
469
|
+
case "w":
|
|
470
|
+
return u * o;
|
|
471
|
+
case "days":
|
|
472
|
+
case "day":
|
|
473
|
+
case "d":
|
|
474
|
+
return u * n;
|
|
475
|
+
case "hours":
|
|
476
|
+
case "hour":
|
|
477
|
+
case "hrs":
|
|
478
|
+
case "hr":
|
|
479
|
+
case "h":
|
|
480
|
+
return u * s;
|
|
481
|
+
case "minutes":
|
|
482
|
+
case "minute":
|
|
483
|
+
case "mins":
|
|
484
|
+
case "min":
|
|
485
|
+
case "m":
|
|
486
|
+
return u * r;
|
|
487
|
+
case "seconds":
|
|
488
|
+
case "second":
|
|
489
|
+
case "secs":
|
|
490
|
+
case "sec":
|
|
491
|
+
case "s":
|
|
492
|
+
return u * t;
|
|
493
|
+
case "milliseconds":
|
|
494
|
+
case "millisecond":
|
|
495
|
+
case "msecs":
|
|
496
|
+
case "msec":
|
|
497
|
+
case "ms":
|
|
498
|
+
return u;
|
|
499
|
+
default:
|
|
500
|
+
return;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
function fmtShort(e) {
|
|
504
|
+
var o = Math.abs(e);
|
|
505
|
+
if (o >= n) return Math.round(e / n) + "d";
|
|
506
|
+
if (o >= s) return Math.round(e / s) + "h";
|
|
507
|
+
if (o >= r) return Math.round(e / r) + "m";
|
|
508
|
+
if (o >= t) return Math.round(e / t) + "s";
|
|
509
|
+
return e + "ms";
|
|
510
|
+
}
|
|
511
|
+
function fmtLong(e) {
|
|
512
|
+
var o = Math.abs(e);
|
|
513
|
+
if (o >= n) return plural(e, o, n, "day");
|
|
514
|
+
if (o >= s) return plural(e, o, s, "hour");
|
|
515
|
+
if (o >= r) return plural(e, o, r, "minute");
|
|
516
|
+
if (o >= t) return plural(e, o, t, "second");
|
|
517
|
+
return e + " ms";
|
|
518
|
+
}
|
|
519
|
+
function plural(e, t, r, s) {
|
|
520
|
+
var n = t >= 1.5 * r;
|
|
521
|
+
return Math.round(e / r) + " " + s + (n ? "s" : "");
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
332: (e, t, r)=>{
|
|
525
|
+
"use strict";
|
|
526
|
+
const s = r(37);
|
|
527
|
+
const n = r(419);
|
|
528
|
+
const o = process.env;
|
|
529
|
+
let a;
|
|
530
|
+
if (n("no-color") || n("no-colors") || n("color=false")) a = false;
|
|
531
|
+
else if (n("color") || n("colors") || n("color=true") || n("color=always")) a = true;
|
|
532
|
+
if ("FORCE_COLOR" in o) a = 0 === o.FORCE_COLOR.length || 0 !== parseInt(o.FORCE_COLOR, 10);
|
|
533
|
+
function translateLevel(e) {
|
|
534
|
+
if (0 === e) return false;
|
|
535
|
+
return {
|
|
536
|
+
level: e,
|
|
537
|
+
hasBasic: true,
|
|
538
|
+
has256: e >= 2,
|
|
539
|
+
has16m: e >= 3
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
function supportsColor(e) {
|
|
543
|
+
if (false === a) return 0;
|
|
544
|
+
if (n("color=16m") || n("color=full") || n("color=truecolor")) return 3;
|
|
545
|
+
if (n("color=256")) return 2;
|
|
546
|
+
if (e && !e.isTTY && true !== a) return 0;
|
|
547
|
+
const t = a ? 1 : 0;
|
|
548
|
+
if ("win32" === process.platform) {
|
|
549
|
+
const e = s.release().split(".");
|
|
550
|
+
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(e[0]) >= 10 && Number(e[2]) >= 10586) return Number(e[2]) >= 14931 ? 3 : 2;
|
|
551
|
+
return 1;
|
|
552
|
+
}
|
|
553
|
+
if ("CI" in o) {
|
|
554
|
+
if ([
|
|
555
|
+
"TRAVIS",
|
|
556
|
+
"CIRCLECI",
|
|
557
|
+
"APPVEYOR",
|
|
558
|
+
"GITLAB_CI"
|
|
559
|
+
].some((e)=>e in o) || "codeship" === o.CI_NAME) return 1;
|
|
560
|
+
return t;
|
|
561
|
+
}
|
|
562
|
+
if ("TEAMCITY_VERSION" in o) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION) ? 1 : 0;
|
|
563
|
+
if ("truecolor" === o.COLORTERM) return 3;
|
|
564
|
+
if ("TERM_PROGRAM" in o) {
|
|
565
|
+
const e = parseInt((o.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
566
|
+
switch(o.TERM_PROGRAM){
|
|
567
|
+
case "iTerm.app":
|
|
568
|
+
return e >= 3 ? 3 : 2;
|
|
569
|
+
case "Apple_Terminal":
|
|
570
|
+
return 2;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
if (/-256(color)?$/i.test(o.TERM)) return 2;
|
|
574
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)) return 1;
|
|
575
|
+
if ("COLORTERM" in o) return 1;
|
|
576
|
+
o.TERM;
|
|
577
|
+
return t;
|
|
578
|
+
}
|
|
579
|
+
function getSupportLevel(e) {
|
|
580
|
+
const t = supportsColor(e);
|
|
581
|
+
return translateLevel(t);
|
|
582
|
+
}
|
|
583
|
+
e.exports = {
|
|
584
|
+
supportsColor: getSupportLevel,
|
|
585
|
+
stdout: getSupportLevel(process.stdout),
|
|
586
|
+
stderr: getSupportLevel(process.stderr)
|
|
587
|
+
};
|
|
588
|
+
},
|
|
589
|
+
37: (e)=>{
|
|
590
|
+
"use strict";
|
|
591
|
+
e.exports = require("os");
|
|
592
|
+
},
|
|
593
|
+
224: (e)=>{
|
|
594
|
+
"use strict";
|
|
595
|
+
e.exports = require("tty");
|
|
596
|
+
},
|
|
597
|
+
837: (e)=>{
|
|
598
|
+
"use strict";
|
|
599
|
+
e.exports = require("util");
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
var t = {};
|
|
603
|
+
function __nccwpck_require__(r) {
|
|
604
|
+
var s = t[r];
|
|
605
|
+
if (void 0 !== s) return s.exports;
|
|
606
|
+
var n = t[r] = {
|
|
607
|
+
exports: {}
|
|
608
|
+
};
|
|
609
|
+
var o = true;
|
|
610
|
+
try {
|
|
611
|
+
e[r](n, n.exports, __nccwpck_require__);
|
|
612
|
+
o = false;
|
|
613
|
+
} finally{
|
|
614
|
+
if (o) delete t[r];
|
|
615
|
+
}
|
|
616
|
+
return n.exports;
|
|
617
|
+
}
|
|
618
|
+
if (void 0 !== __nccwpck_require__) __nccwpck_require__.ab = __dirname + "/";
|
|
619
|
+
var r = __nccwpck_require__(372);
|
|
620
|
+
module.exports = r;
|
|
621
|
+
})();
|