@umijs/utils 4.0.0-beta.9 → 4.0.0-canary-20240513.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +70 -0
- package/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
- package/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/types.d.ts +35 -0
- package/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
- package/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +74 -0
- package/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/types.d.ts +92 -0
- package/compiled/@ampproject/remapping/LICENSE +202 -0
- package/compiled/@ampproject/remapping/dist/types/remapping.d.ts +19 -0
- package/compiled/@ampproject/remapping/dist/types/source-map.d.ts +17 -0
- package/compiled/@ampproject/remapping/dist/types/types.d.ts +14 -0
- package/compiled/@ampproject/remapping/index.js +1 -0
- package/compiled/@ampproject/remapping/package.json +1 -0
- package/compiled/@clack/prompts/LICENSE +23 -0
- package/compiled/@clack/prompts/dist/index.d.ts +38 -0
- package/compiled/@clack/prompts/index.js +1 -0
- package/compiled/@clack/prompts/package.json +1 -0
- package/compiled/@hapi/joi/index.d.ts +2218 -0
- package/compiled/@hapi/joi/index.js +1 -0
- package/compiled/@hapi/joi/package.json +1 -0
- package/compiled/axios/index.d.ts +29 -14
- package/compiled/axios/index.js +1 -1
- package/compiled/chalk/LICENSE +1 -1
- package/compiled/chalk/index.js +1 -1
- package/compiled/chalk/package.json +1 -1
- package/compiled/chalk/source/index.d.ts +318 -0
- package/compiled/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/compiled/color/color-convert/conversions.d.ts +87 -87
- package/compiled/color/color-convert/index.d.ts +75 -60
- package/compiled/color/color-convert/route.d.ts +271 -271
- package/compiled/color/index.d.ts +118 -121
- package/compiled/color/index.js +1 -1
- package/compiled/color/package.json +1 -4
- package/compiled/debug/LICENSE +10 -9
- package/compiled/debug/index.js +1 -1
- package/compiled/debug/package.json +1 -1
- package/compiled/execa/index.d.ts +467 -445
- package/compiled/execa/index.js +1 -1
- package/compiled/fastest-levenshtein/index.js +1 -0
- package/compiled/fastest-levenshtein/mod.d.ts +3 -0
- package/compiled/fastest-levenshtein/package.json +1 -0
- package/compiled/filesize/LICENSE +28 -0
- package/compiled/filesize/filesize.d.ts +131 -0
- package/compiled/filesize/index.js +8 -0
- package/compiled/filesize/package.json +1 -0
- package/compiled/filesize/types/filesize.d.ts +46 -0
- package/compiled/fs-extra/index.d.ts +930 -253
- package/compiled/fs-extra/index.js +1 -1
- package/compiled/fs-extra/jsonfile/index.d.ts +78 -0
- package/compiled/fs-extra/package.json +1 -1
- package/compiled/glob/LICENSE +1 -7
- package/compiled/glob/index.d.ts +3 -1
- package/compiled/glob/index.js +1 -1
- package/compiled/glob/package.json +1 -1
- package/compiled/gzip-size/LICENSE +9 -0
- package/compiled/gzip-size/index.d.ts +103 -0
- package/compiled/gzip-size/index.js +1 -0
- package/compiled/gzip-size/package.json +1 -0
- package/compiled/lodash/common/array.d.ts +0 -0
- package/compiled/lodash/common/collection.d.ts +0 -0
- package/compiled/lodash/common/common.d.ts +0 -0
- package/compiled/lodash/common/date.d.ts +0 -0
- package/compiled/lodash/common/function.d.ts +0 -0
- package/compiled/lodash/common/lang.d.ts +0 -0
- package/compiled/lodash/common/math.d.ts +0 -0
- package/compiled/lodash/common/number.d.ts +0 -0
- package/compiled/lodash/common/object.d.ts +0 -0
- package/compiled/lodash/common/seq.d.ts +0 -0
- package/compiled/lodash/common/string.d.ts +0 -0
- package/compiled/lodash/common/util.d.ts +0 -0
- package/compiled/magic-string/LICENSE +7 -0
- package/compiled/magic-string/index.d.ts +250 -0
- package/compiled/magic-string/index.js +1 -0
- package/compiled/magic-string/package.json +1 -0
- package/compiled/pirates/LICENSE +21 -0
- package/compiled/pirates/index.d.ts +82 -0
- package/compiled/pirates/index.js +1 -0
- package/compiled/pirates/package.json +1 -0
- package/compiled/pkg-up/LICENSE +1 -1
- package/compiled/pkg-up/index.d.ts +55 -44
- package/compiled/pkg-up/index.js +1 -1
- package/compiled/pkg-up/package.json +1 -1
- package/compiled/portfinder/index.js +1 -1
- package/compiled/portfinder/lib/portfinder.d.ts +16 -1
- package/compiled/portfinder/package.json +1 -1
- package/compiled/resolve/index.js +1 -1
- package/compiled/semver/classes/range.d.ts +1 -1
- package/compiled/semver/classes/semver.d.ts +1 -1
- package/compiled/semver/functions/compare-build.d.ts +6 -1
- package/compiled/semver/functions/diff.d.ts +1 -5
- package/compiled/semver/functions/satisfies.d.ts +1 -1
- package/compiled/semver/index.d.ts +3 -0
- package/compiled/semver/index.js +1 -1
- package/compiled/semver/package.json +1 -1
- package/compiled/semver/ranges/gtr.d.ts +1 -1
- package/compiled/semver/ranges/intersects.d.ts +1 -1
- package/compiled/semver/ranges/ltr.d.ts +1 -1
- package/compiled/semver/ranges/max-satisfying.d.ts +1 -1
- package/compiled/semver/ranges/min-satisfying.d.ts +1 -1
- package/compiled/semver/ranges/outside.d.ts +1 -1
- package/compiled/semver/ranges/subset.d.ts +1 -5
- package/compiled/semver/ranges/valid.d.ts +1 -1
- package/compiled/strip-ansi/LICENSE +1 -1
- package/compiled/strip-ansi/index.d.ts +2 -4
- package/compiled/strip-ansi/index.js +1 -1
- package/compiled/strip-ansi/package.json +1 -1
- package/compiled/tar/LICENSE +15 -0
- package/compiled/tar/index.d.ts +943 -0
- package/compiled/tar/index.js +1 -0
- package/compiled/tar/minipass/index.d.ts +150 -0
- package/compiled/tar/package.json +1 -0
- package/compiled/tsconfig-paths/LICENSE +21 -0
- package/compiled/tsconfig-paths/index.js +1 -0
- package/compiled/tsconfig-paths/lib/index.d.ts +5 -0
- package/compiled/tsconfig-paths/package.json +1 -0
- package/compiled/yargs-parser/index.js +1 -1
- package/compiled/yargs-parser/package.json +1 -1
- package/compiled/zod/LICENSE +21 -0
- package/compiled/zod/index.d.ts +2 -0
- package/compiled/zod/index.js +1 -0
- package/compiled/zod/lib/ZodError.d.ts +159 -0
- package/compiled/zod/lib/__tests__/Mocker.d.ts +17 -0
- package/compiled/zod/lib/benchmarks/discriminatedUnion.d.ts +5 -0
- package/compiled/zod/lib/benchmarks/index.d.ts +1 -0
- package/compiled/zod/lib/benchmarks/object.d.ts +5 -0
- package/compiled/zod/lib/benchmarks/primitives.d.ts +5 -0
- package/compiled/zod/lib/benchmarks/realworld.d.ts +5 -0
- package/compiled/zod/lib/benchmarks/string.d.ts +5 -0
- package/compiled/zod/lib/benchmarks/union.d.ts +5 -0
- package/compiled/zod/lib/errors.d.ts +5 -0
- package/compiled/zod/lib/external.d.ts +6 -0
- package/compiled/zod/lib/helpers/enumUtil.d.ts +8 -0
- package/compiled/zod/lib/helpers/errorUtil.d.ts +9 -0
- package/compiled/zod/lib/helpers/parseUtil.d.ts +78 -0
- package/compiled/zod/lib/helpers/partialUtil.d.ts +8 -0
- package/compiled/zod/lib/helpers/typeAliases.d.ts +2 -0
- package/compiled/zod/lib/helpers/util.d.ts +47 -0
- package/compiled/zod/lib/index.d.ts +4 -0
- package/compiled/zod/lib/locales/en.d.ts +3 -0
- package/compiled/zod/lib/types.d.ts +975 -0
- package/compiled/zod/package.json +1 -0
- package/dist/BaseGenerator/BaseGenerator.d.ts +3 -3
- package/dist/BaseGenerator/BaseGenerator.js +78 -54
- package/dist/BaseGenerator/generateFile.d.ts +2 -1
- package/dist/BaseGenerator/generateFile.js +49 -22
- package/dist/Generator/Generator.d.ts +18 -14
- package/dist/Generator/Generator.js +97 -70
- package/dist/aliasUtils/getAliasValue.d.ts +4 -0
- package/dist/aliasUtils/getAliasValue.js +66 -0
- package/dist/aliasUtils/index.d.ts +2 -0
- package/dist/aliasUtils/index.js +32 -0
- package/dist/aliasUtils/parseCircleAlias.d.ts +4 -0
- package/dist/aliasUtils/parseCircleAlias.js +66 -0
- package/dist/getCorejsVersion.d.ts +1 -0
- package/dist/getCorejsVersion.js +35 -0
- package/dist/getDevBanner.d.ts +5 -0
- package/dist/getDevBanner.js +81 -0
- package/dist/getFileGitIno.d.ts +47 -0
- package/dist/getFileGitIno.js +130 -0
- package/dist/getGitInfo.d.ts +6 -0
- package/dist/getGitInfo.js +50 -0
- package/dist/importLazy.js +42 -14
- package/dist/index.d.ts +26 -3
- package/dist/index.js +185 -86
- package/dist/installDeps.js +69 -37
- package/dist/isJavaScriptFile.d.ts +1 -0
- package/dist/isJavaScriptFile.js +32 -0
- package/dist/isLocalDev.d.ts +4 -0
- package/dist/isLocalDev.js +36 -0
- package/dist/isMonorepo.d.ts +5 -0
- package/dist/isMonorepo.js +44 -0
- package/dist/isStyleFile.d.ts +5 -0
- package/dist/isStyleFile.js +44 -0
- package/dist/logger.d.ts +13 -6
- package/dist/logger.js +166 -25
- package/dist/node.d.ts +4 -0
- package/dist/node.js +61 -0
- package/dist/npmClient.d.ts +3 -2
- package/dist/npmClient.js +86 -40
- package/dist/printHelp.d.ts +2 -0
- package/dist/printHelp.js +64 -0
- package/dist/randomColor/randomColor.js +47 -16
- package/dist/readDirFiles.d.ts +9 -0
- package/dist/readDirFiles.js +62 -0
- package/dist/register.d.ts +1 -0
- package/dist/register.js +75 -38
- package/dist/setNoDeprecation.d.ts +1 -0
- package/dist/setNoDeprecation.js +31 -0
- package/dist/tryPaths.d.ts +1 -0
- package/dist/tryPaths.js +35 -0
- package/dist/updatePackageJSON.js +50 -19
- package/dist/winPath.js +33 -9
- package/dist/zod/isZodSchema.d.ts +2 -0
- package/dist/zod/isZodSchema.js +31 -0
- package/package.json +60 -34
|
@@ -1,48 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
interface Options {
|
|
3
|
-
/**
|
|
4
|
-
Directory to start from.
|
|
5
|
-
|
|
6
|
-
@default process.cwd()
|
|
7
|
-
*/
|
|
8
|
-
readonly cwd?: string;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare const pkgUp: {
|
|
1
|
+
export interface Options {
|
|
13
2
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@returns The filepath, or `null` if it couldn't be found.
|
|
17
|
-
|
|
18
|
-
@example
|
|
19
|
-
```
|
|
20
|
-
// /
|
|
21
|
-
// └── Users
|
|
22
|
-
// └── sindresorhus
|
|
23
|
-
// └── foo
|
|
24
|
-
// ├── package.json
|
|
25
|
-
// └── bar
|
|
26
|
-
// ├── baz
|
|
27
|
-
// └── example.js
|
|
28
|
-
|
|
29
|
-
// example.js
|
|
30
|
-
import pkgUp = require('../pkg-up');
|
|
31
|
-
|
|
32
|
-
(async () => {
|
|
33
|
-
console.log(await pkgUp());
|
|
34
|
-
//=> '/Users/sindresorhus/foo/package.json'
|
|
35
|
-
})();
|
|
36
|
-
```
|
|
37
|
-
*/
|
|
38
|
-
(options?: pkgUp.Options): Promise<string | null>;
|
|
3
|
+
The directory to start from.
|
|
39
4
|
|
|
40
|
-
|
|
41
|
-
Synchronously find the closest `package.json` file.
|
|
42
|
-
|
|
43
|
-
@returns The filepath, or `null` if it couldn't be found.
|
|
5
|
+
@default process.cwd()
|
|
44
6
|
*/
|
|
45
|
-
|
|
46
|
-
}
|
|
7
|
+
readonly cwd?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
Find the closest `package.json` file.
|
|
12
|
+
|
|
13
|
+
@returns The file path, or `undefined` if it could not be found.
|
|
14
|
+
|
|
15
|
+
@example
|
|
16
|
+
```
|
|
17
|
+
// /
|
|
18
|
+
// └── Users
|
|
19
|
+
// └── sindresorhus
|
|
20
|
+
// └── foo
|
|
21
|
+
// ├── package.json
|
|
22
|
+
// └── bar
|
|
23
|
+
// ├── baz
|
|
24
|
+
// └── example.js
|
|
25
|
+
|
|
26
|
+
// example.js
|
|
27
|
+
import {pkgUp} from '../pkg-up';
|
|
28
|
+
|
|
29
|
+
console.log(await pkgUp());
|
|
30
|
+
//=> '/Users/sindresorhus/foo/package.json'
|
|
31
|
+
```
|
|
32
|
+
*/
|
|
33
|
+
export function pkgUp(options?: Options): Promise<string | undefined>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
Synchronously find the closest `package.json` file.
|
|
37
|
+
|
|
38
|
+
@returns The file path, or `undefined` if it could not be found.
|
|
39
|
+
|
|
40
|
+
@example
|
|
41
|
+
```
|
|
42
|
+
// /
|
|
43
|
+
// └── Users
|
|
44
|
+
// └── sindresorhus
|
|
45
|
+
// └── foo
|
|
46
|
+
// ├── package.json
|
|
47
|
+
// └── bar
|
|
48
|
+
// ├── baz
|
|
49
|
+
// └── example.js
|
|
50
|
+
|
|
51
|
+
// example.js
|
|
52
|
+
import {pkgUpSync} from '../pkg-up';
|
|
53
|
+
|
|
54
|
+
console.log(pkgUpSync());
|
|
55
|
+
//=> '/Users/sindresorhus/foo/package.json'
|
|
56
|
+
```
|
|
57
|
+
*/
|
|
58
|
+
export function pkgUpSync(options?: Options): string | undefined;
|
|
47
59
|
|
|
48
|
-
export = pkgUp;
|
package/compiled/pkg-up/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){"use strict";var e={
|
|
1
|
+
(function(){"use strict";var e={};!function(){e.d=function(t,n){for(var r in n){if(e.o(n,r)&&!e.o(t,r)){Object.defineProperty(t,r,{enumerable:true,get:n[r]})}}}}();!function(){e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();if(typeof e!=="undefined")e.ab=__dirname+"/";var t={};e.r(t);e.d(t,{pkgUp:function(){return pkgUp},pkgUpSync:function(){return pkgUpSync}});var n=require("path");var r=require("url");var c=require("process");var i=require("fs");class Node{value;next;constructor(e){this.value=e}}class Queue{#e;#t;#n;constructor(){this.clear()}enqueue(e){const t=new Node(e);if(this.#e){this.#t.next=t;this.#t=t}else{this.#e=t;this.#t=t}this.#n++}dequeue(){const e=this.#e;if(!e){return}this.#e=this.#e.next;this.#n--;return e.value}clear(){this.#e=undefined;this.#t=undefined;this.#n=0}get size(){return this.#n}*[Symbol.iterator](){let e=this.#e;while(e){yield e.value;e=e.next}}}function pLimit(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const t=new Queue;let n=0;const next=()=>{n--;if(t.size>0){t.dequeue()()}};const run=async(e,t,r)=>{n++;const c=(async()=>e(...r))();t(c);try{await c}catch{}next()};const enqueue=(r,c,i)=>{t.enqueue(run.bind(undefined,r,c,i));(async()=>{await Promise.resolve();if(n<e&&t.size>0){t.dequeue()()}})()};const generator=(e,...t)=>new Promise((n=>{enqueue(e,n,t)}));Object.defineProperties(generator,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}});return generator}class EndError extends Error{constructor(e){super();this.value=e}}const testElement=async(e,t)=>t(await e);const finder=async e=>{const t=await Promise.all(e);if(t[1]===true){throw new EndError(t[0])}return false};async function pLocate(e,t,{concurrency:n=Number.POSITIVE_INFINITY,preserveOrder:r=true}={}){const c=pLimit(n);const i=[...e].map((e=>[e,c(testElement,e,t)]));const o=pLimit(r?1:Number.POSITIVE_INFINITY);try{await Promise.all(i.map((e=>o(finder,e))))}catch(e){if(e instanceof EndError){return e.value}throw e}}const o={directory:"isDirectory",file:"isFile"};function checkType(e){if(e in o){return}throw new Error(`Invalid type specified: ${e}`)}const matchType=(e,t)=>e===undefined||t[o[e]]();const toPath=e=>e instanceof URL?(0,r.fileURLToPath)(e):e;async function locatePath(e,{cwd:t=c.cwd(),type:r="file",allowSymlinks:o=true,concurrency:s,preserveOrder:a}={}){checkType(r);t=toPath(t);const u=o?i.promises.stat:i.promises.lstat;return pLocate(e,(async e=>{try{const c=await u(n.resolve(t,e));return matchType(r,c)}catch{return false}}),{concurrency:s,preserveOrder:a})}function locatePathSync(e,{cwd:t=c.cwd(),type:r="file",allowSymlinks:o=true}={}){checkType(r);t=toPath(t);const s=o?i.statSync:i.lstatSync;for(const c of e){try{const e=s(n.resolve(t,c));if(matchType(r,e)){return c}}catch{}}}async function pathExists(e){try{await fsPromises.access(e);return true}catch{return false}}function pathExistsSync(e){try{fs.accessSync(e);return true}catch{return false}}const find_up_toPath=e=>e instanceof URL?(0,r.fileURLToPath)(e):e;const s=Symbol("findUpStop");async function findUpMultiple(e,t={}){let r=n.resolve(find_up_toPath(t.cwd)||"");const{root:c}=n.parse(r);const i=n.resolve(r,t.stopAt||c);const o=t.limit||Number.POSITIVE_INFINITY;const a=[e].flat();const runMatcher=async t=>{if(typeof e!=="function"){return locatePath(a,t)}const n=await e(t.cwd);if(typeof n==="string"){return locatePath([n],t)}return n};const u=[];while(true){const e=await runMatcher({...t,cwd:r});if(e===s){break}if(e){u.push(n.resolve(r,e))}if(r===i||u.length>=o){break}r=n.dirname(r)}return u}function findUpMultipleSync(e,t={}){let r=n.resolve(find_up_toPath(t.cwd)||"");const{root:c}=n.parse(r);const i=t.stopAt||c;const o=t.limit||Number.POSITIVE_INFINITY;const a=[e].flat();const runMatcher=t=>{if(typeof e!=="function"){return locatePathSync(a,t)}const n=e(t.cwd);if(typeof n==="string"){return locatePathSync([n],t)}return n};const u=[];while(true){const e=runMatcher({...t,cwd:r});if(e===s){break}if(e){u.push(n.resolve(r,e))}if(r===i||u.length>=o){break}r=n.dirname(r)}return u}async function findUp(e,t={}){const n=await findUpMultiple(e,{...t,limit:1});return n[0]}function findUpSync(e,t={}){const n=findUpMultipleSync(e,{...t,limit:1});return n[0]}async function pkgUp({cwd:e}={}){return findUp("package.json",{cwd:e})}function pkgUpSync({cwd:e}={}){return findUpSync("package.json",{cwd:e})}module.exports=t})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"pkg-up","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"license":"MIT"}
|
|
1
|
+
{"name":"pkg-up","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){var e={557:function(e,r,t){e=t.nmd(e);(function(e,t){true?t(r):0})(this,(function(r){"use strict";function slice(e,r){r=r|0;var t=Math.max(e.length-r,0);var n=Array(t);for(var i=0;i<t;i++){n[i]=e[r+i]}return n}var apply=function(e){var r=slice(arguments,1);return function(){var t=slice(arguments);return e.apply(null,r.concat(t))}};var initialParams=function(e){return function(){var r=slice(arguments);var t=r.pop();e.call(this,r,t)}};function isObject(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var t=typeof setImmediate==="function"&&setImmediate;var n=typeof process==="object"&&typeof process.nextTick==="function";function fallback(e){setTimeout(e,0)}function wrap(e){return function(r){var t=slice(arguments,1);e((function(){r.apply(null,t)}))}}var i;if(t){i=setImmediate}else if(n){i=process.nextTick}else{i=fallback}var a=wrap(i);function asyncify(e){return initialParams((function(r,t){var n;try{n=e.apply(this,r)}catch(e){return t(e)}if(isObject(n)&&typeof n.then==="function"){n.then((function(e){invokeCallback(t,null,e)}),(function(e){invokeCallback(t,e.message?e:new Error(e))}))}else{t(null,n)}}))}function invokeCallback(e,r,t){try{e(r,t)}catch(e){a(rethrow,e)}}function rethrow(e){throw e}var o=typeof Symbol==="function";function isAsync(e){return o&&e[Symbol.toStringTag]==="AsyncFunction"}function wrapAsync(e){return isAsync(e)?asyncify(e):e}function applyEach$1(e){return function(r){var t=slice(arguments,1);var n=initialParams((function(t,n){var i=this;return e(r,(function(e,r){wrapAsync(e).apply(i,t.concat(r))}),n)}));if(t.length){return n.apply(this,t)}else{return n}}}var c=typeof global=="object"&&global&&global.Object===Object&&global;var u=typeof self=="object"&&self&&self.Object===Object&&self;var s=c||u||Function("return this")();var l=s.Symbol;var f=Object.prototype;var p=f.hasOwnProperty;var v=f.toString;var h=l?l.toStringTag:undefined;function getRawTag(e){var r=p.call(e,h),t=e[h];try{e[h]=undefined;var n=true}catch(e){}var i=v.call(e);if(n){if(r){e[h]=t}else{delete e[h]}}return i}var y=Object.prototype;var d=y.toString;function objectToString(e){return d.call(e)}var m="[object Null]";var b="[object Undefined]";var g=l?l.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?b:m}return g&&g in Object(e)?getRawTag(e):objectToString(e)}var L="[object AsyncFunction]";var k="[object Function]";var w="[object GeneratorFunction]";var A="[object Proxy]";function isFunction(e){if(!isObject(e)){return false}var r=baseGetTag(e);return r==k||r==w||r==L||r==A}var j=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=j}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var O={};function noop(){}function once(e){return function(){if(e===null)return;var r=e;e=null;r.apply(this,arguments)}}var S=typeof Symbol==="function"&&Symbol.iterator;var getIterator=function(e){return S&&e[S]&&e[S]()};function baseTimes(e,r){var t=-1,n=Array(e);while(++t<e){n[t]=r(t)}return n}function isObjectLike(e){return e!=null&&typeof e=="object"}var P="[object Arguments]";function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==P}var x=Object.prototype;var _=x.hasOwnProperty;var E=x.propertyIsEnumerable;var T=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&_.call(e,"callee")&&!E.call(e,"callee")};var I=Array.isArray;function stubFalse(){return false}var F=typeof r=="object"&&r&&!r.nodeType&&r;var D=F&&"object"=="object"&&e&&!e.nodeType&&e;var q=D&&D.exports===F;var N=q?s.Buffer:undefined;var $=N?N.isBuffer:undefined;var B=$||stubFalse;var R=9007199254740991;var M=/^(?:0|[1-9]\d*)$/;function isIndex(e,r){var t=typeof e;r=r==null?R:r;return!!r&&(t=="number"||t!="symbol"&&M.test(e))&&(e>-1&&e%1==0&&e<r)}var C="[object Arguments]";var z="[object Array]";var U="[object Boolean]";var V="[object Date]";var G="[object Error]";var H="[object Function]";var W="[object Map]";var K="[object Number]";var Q="[object Object]";var J="[object RegExp]";var X="[object Set]";var Y="[object String]";var Z="[object WeakMap]";var ee="[object ArrayBuffer]";var re="[object DataView]";var te="[object Float32Array]";var ne="[object Float64Array]";var ie="[object Int8Array]";var ae="[object Int16Array]";var oe="[object Int32Array]";var ce="[object Uint8Array]";var ue="[object Uint8ClampedArray]";var se="[object Uint16Array]";var le="[object Uint32Array]";var fe={};fe[te]=fe[ne]=fe[ie]=fe[ae]=fe[oe]=fe[ce]=fe[ue]=fe[se]=fe[le]=true;fe[C]=fe[z]=fe[ee]=fe[U]=fe[re]=fe[V]=fe[G]=fe[H]=fe[W]=fe[K]=fe[Q]=fe[J]=fe[X]=fe[Y]=fe[Z]=false;function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!fe[baseGetTag(e)]}function baseUnary(e){return function(r){return e(r)}}var pe=typeof r=="object"&&r&&!r.nodeType&&r;var ve=pe&&"object"=="object"&&e&&!e.nodeType&&e;var he=ve&&ve.exports===pe;var ye=he&&c.process;var de=function(){try{var e=ve&&ve.require&&ve.require("util").types;if(e){return e}return ye&&ye.binding&&ye.binding("util")}catch(e){}}();var me=de&&de.isTypedArray;var be=me?baseUnary(me):baseIsTypedArray;var ge=Object.prototype;var Le=ge.hasOwnProperty;function arrayLikeKeys(e,r){var t=I(e),n=!t&&T(e),i=!t&&!n&&B(e),a=!t&&!n&&!i&&be(e),o=t||n||i||a,c=o?baseTimes(e.length,String):[],u=c.length;for(var s in e){if((r||Le.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||isIndex(s,u)))){c.push(s)}}return c}var ke=Object.prototype;function isPrototype(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||ke;return e===t}function overArg(e,r){return function(t){return e(r(t))}}var we=overArg(Object.keys,Object);var Ae=Object.prototype;var je=Ae.hasOwnProperty;function baseKeys(e){if(!isPrototype(e)){return we(e)}var r=[];for(var t in Object(e)){if(je.call(e,t)&&t!="constructor"){r.push(t)}}return r}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function createArrayIterator(e){var r=-1;var t=e.length;return function next(){return++r<t?{value:e[r],key:r}:null}}function createES2015Iterator(e){var r=-1;return function next(){var t=e.next();if(t.done)return null;r++;return{value:t.value,key:r}}}function createObjectIterator(e){var r=keys(e);var t=-1;var n=r.length;return function next(){var i=r[++t];return t<n?{value:e[i],key:i}:null}}function iterator(e){if(isArrayLike(e)){return createArrayIterator(e)}var r=getIterator(e);return r?createES2015Iterator(r):createObjectIterator(e)}function onlyOnce(e){return function(){if(e===null)throw new Error("Callback was already called.");var r=e;e=null;r.apply(this,arguments)}}function _eachOfLimit(e){return function(r,t,n){n=once(n||noop);if(e<=0||!r){return n(null)}var i=iterator(r);var a=false;var o=0;var c=false;function iterateeCallback(e,r){o-=1;if(e){a=true;n(e)}else if(r===O||a&&o<=0){a=true;return n(null)}else if(!c){replenish()}}function replenish(){c=true;while(o<e&&!a){var r=i();if(r===null){a=true;if(o<=0){n(null)}return}o+=1;t(r.value,r.key,onlyOnce(iterateeCallback))}c=false}replenish()}}function eachOfLimit(e,r,t,n){_eachOfLimit(r)(e,wrapAsync(t),n)}function doLimit(e,r){return function(t,n,i){return e(t,r,n,i)}}function eachOfArrayLike(e,r,t){t=once(t||noop);var n=0,i=0,a=e.length;if(a===0){t(null)}function iteratorCallback(e,r){if(e){t(e)}else if(++i===a||r===O){t(null)}}for(;n<a;n++){r(e[n],n,onlyOnce(iteratorCallback))}}var Oe=doLimit(eachOfLimit,Infinity);var eachOf=function(e,r,t){var n=isArrayLike(e)?eachOfArrayLike:Oe;n(e,wrapAsync(r),t)};function doParallel(e){return function(r,t,n){return e(eachOf,r,wrapAsync(t),n)}}function _asyncMap(e,r,t,n){n=n||noop;r=r||[];var i=[];var a=0;var o=wrapAsync(t);e(r,(function(e,r,t){var n=a++;o(e,(function(e,r){i[n]=r;t(e)}))}),(function(e){n(e,i)}))}var Se=doParallel(_asyncMap);var Pe=applyEach$1(Se);function doParallelLimit(e){return function(r,t,n,i){return e(_eachOfLimit(t),r,wrapAsync(n),i)}}var xe=doParallelLimit(_asyncMap);var _e=doLimit(xe,1);var Ee=applyEach$1(_e);function arrayEach(e,r){var t=-1,n=e==null?0:e.length;while(++t<n){if(r(e[t],t,e)===false){break}}return e}function createBaseFor(e){return function(r,t,n){var i=-1,a=Object(r),o=n(r),c=o.length;while(c--){var u=o[e?c:++i];if(t(a[u],u,a)===false){break}}return r}}var Te=createBaseFor();function baseForOwn(e,r){return e&&Te(e,r,keys)}function baseFindIndex(e,r,t,n){var i=e.length,a=t+(n?1:-1);while(n?a--:++a<i){if(r(e[a],a,e)){return a}}return-1}function baseIsNaN(e){return e!==e}function strictIndexOf(e,r,t){var n=t-1,i=e.length;while(++n<i){if(e[n]===r){return n}}return-1}function baseIndexOf(e,r,t){return r===r?strictIndexOf(e,r,t):baseFindIndex(e,baseIsNaN,t)}var auto=function(e,r,t){if(typeof r==="function"){t=r;r=null}t=once(t||noop);var n=keys(e);var i=n.length;if(!i){return t(null)}if(!r){r=i}var a={};var o=0;var c=false;var u=Object.create(null);var s=[];var l=[];var f={};baseForOwn(e,(function(r,t){if(!I(r)){enqueueTask(t,[r]);l.push(t);return}var n=r.slice(0,r.length-1);var i=n.length;if(i===0){enqueueTask(t,r);l.push(t);return}f[t]=i;arrayEach(n,(function(a){if(!e[a]){throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+a+"` in "+n.join(", "))}addListener(a,(function(){i--;if(i===0){enqueueTask(t,r)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(e,r){s.push((function(){runTask(e,r)}))}function processQueue(){if(s.length===0&&o===0){return t(null,a)}while(s.length&&o<r){var e=s.shift();e()}}function addListener(e,r){var t=u[e];if(!t){t=u[e]=[]}t.push(r)}function taskComplete(e){var r=u[e]||[];arrayEach(r,(function(e){e()}));processQueue()}function runTask(e,r){if(c)return;var n=onlyOnce((function(r,n){o--;if(arguments.length>2){n=slice(arguments,1)}if(r){var i={};baseForOwn(a,(function(e,r){i[r]=e}));i[e]=n;c=true;u=Object.create(null);t(r,i)}else{a[e]=n;taskComplete(e)}}));o++;var i=wrapAsync(r[r.length-1]);if(r.length>1){i(a,n)}else{i(n)}}function checkForDeadlocks(){var e;var r=0;while(l.length){e=l.pop();r++;arrayEach(getDependents(e),(function(e){if(--f[e]===0){l.push(e)}}))}if(r!==i){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(r){var t=[];baseForOwn(e,(function(e,n){if(I(e)&&baseIndexOf(e,r,0)>=0){t.push(n)}}));return t}};function arrayMap(e,r){var t=-1,n=e==null?0:e.length,i=Array(n);while(++t<n){i[t]=r(e[t],t,e)}return i}var Ie="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==Ie}var Fe=1/0;var De=l?l.prototype:undefined;var qe=De?De.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(I(e)){return arrayMap(e,baseToString)+""}if(isSymbol(e)){return qe?qe.call(e):""}var r=e+"";return r=="0"&&1/e==-Fe?"-0":r}function baseSlice(e,r,t){var n=-1,i=e.length;if(r<0){r=-r>i?0:i+r}t=t>i?i:t;if(t<0){t+=i}i=r>t?0:t-r>>>0;r>>>=0;var a=Array(i);while(++n<i){a[n]=e[n+r]}return a}function castSlice(e,r,t){var n=e.length;t=t===undefined?n:t;return!r&&t>=n?e:baseSlice(e,r,t)}function charsEndIndex(e,r){var t=e.length;while(t--&&baseIndexOf(r,e[t],0)>-1){}return t}function charsStartIndex(e,r){var t=-1,n=e.length;while(++t<n&&baseIndexOf(r,e[t],0)>-1){}return t}function asciiToArray(e){return e.split("")}var Ne="\\ud800-\\udfff";var $e="\\u0300-\\u036f";var Be="\\ufe20-\\ufe2f";var Re="\\u20d0-\\u20ff";var Me=$e+Be+Re;var Ce="\\ufe0e\\ufe0f";var ze="\\u200d";var Ue=RegExp("["+ze+Ne+Me+Ce+"]");function hasUnicode(e){return Ue.test(e)}var Ve="\\ud800-\\udfff";var Ge="\\u0300-\\u036f";var He="\\ufe20-\\ufe2f";var We="\\u20d0-\\u20ff";var Ke=Ge+He+We;var Qe="\\ufe0e\\ufe0f";var Je="["+Ve+"]";var Xe="["+Ke+"]";var Ye="\\ud83c[\\udffb-\\udfff]";var Ze="(?:"+Xe+"|"+Ye+")";var er="[^"+Ve+"]";var rr="(?:\\ud83c[\\udde6-\\uddff]){2}";var tr="[\\ud800-\\udbff][\\udc00-\\udfff]";var nr="\\u200d";var ir=Ze+"?";var ar="["+Qe+"]?";var or="(?:"+nr+"(?:"+[er,rr,tr].join("|")+")"+ar+ir+")*";var cr=ar+ir+or;var ur="(?:"+[er+Xe+"?",Xe,rr,tr,Je].join("|")+")";var sr=RegExp(Ye+"(?="+Ye+")|"+ur+cr,"g");function unicodeToArray(e){return e.match(sr)||[]}function stringToArray(e){return hasUnicode(e)?unicodeToArray(e):asciiToArray(e)}function toString(e){return e==null?"":baseToString(e)}var lr=/^\s+|\s+$/g;function trim(e,r,t){e=toString(e);if(e&&(t||r===undefined)){return e.replace(lr,"")}if(!e||!(r=baseToString(r))){return e}var n=stringToArray(e),i=stringToArray(r),a=charsStartIndex(n,i),o=charsEndIndex(n,i)+1;return castSlice(n,a,o).join("")}var fr=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m;var pr=/,/;var vr=/(=.+)?(\s*)$/;var hr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function parseParams(e){e=e.toString().replace(hr,"");e=e.match(fr)[2].replace(" ","");e=e?e.split(pr):[];e=e.map((function(e){return trim(e.replace(vr,""))}));return e}function autoInject(e,r){var t={};baseForOwn(e,(function(e,r){var n;var i=isAsync(e);var a=!i&&e.length===1||i&&e.length===0;if(I(e)){n=e.slice(0,-1);e=e[e.length-1];t[r]=n.concat(n.length>0?newTask:e)}else if(a){t[r]=e}else{n=parseParams(e);if(e.length===0&&!i&&n.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!i)n.pop();t[r]=n.concat(newTask)}function newTask(r,t){var i=arrayMap(n,(function(e){return r[e]}));i.push(t);wrapAsync(e).apply(null,i)}}));auto(t,r)}function DLL(){this.head=this.tail=null;this.length=0}function setInitial(e,r){e.length=1;e.head=e.tail=r}DLL.prototype.removeLink=function(e){if(e.prev)e.prev.next=e.next;else this.head=e.next;if(e.next)e.next.prev=e.prev;else this.tail=e.prev;e.prev=e.next=null;this.length-=1;return e};DLL.prototype.empty=function(){while(this.head)this.shift();return this};DLL.prototype.insertAfter=function(e,r){r.prev=e;r.next=e.next;if(e.next)e.next.prev=r;else this.tail=r;e.next=r;this.length+=1};DLL.prototype.insertBefore=function(e,r){r.prev=e.prev;r.next=e;if(e.prev)e.prev.next=r;else this.head=r;e.prev=r;this.length+=1};DLL.prototype.unshift=function(e){if(this.head)this.insertBefore(this.head,e);else setInitial(this,e)};DLL.prototype.push=function(e){if(this.tail)this.insertAfter(this.tail,e);else setInitial(this,e)};DLL.prototype.shift=function(){return this.head&&this.removeLink(this.head)};DLL.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)};DLL.prototype.toArray=function(){var e=Array(this.length);var r=this.head;for(var t=0;t<this.length;t++){e[t]=r.data;r=r.next}return e};DLL.prototype.remove=function(e){var r=this.head;while(!!r){var t=r.next;if(e(r)){this.removeLink(r)}r=t}return this};function queue(e,r,t){if(r==null){r=1}else if(r===0){throw new Error("Concurrency must not be zero")}var n=wrapAsync(e);var i=0;var o=[];var c=false;function _insert(e,r,t){if(t!=null&&typeof t!=="function"){throw new Error("task callback must be a function")}s.started=true;if(!I(e)){e=[e]}if(e.length===0&&s.idle()){return a((function(){s.drain()}))}for(var n=0,i=e.length;n<i;n++){var o={data:e[n],callback:t||noop};if(r){s._tasks.unshift(o)}else{s._tasks.push(o)}}if(!c){c=true;a((function(){c=false;s.process()}))}}function _next(e){return function(r){i-=1;for(var t=0,n=e.length;t<n;t++){var a=e[t];var c=baseIndexOf(o,a,0);if(c===0){o.shift()}else if(c>0){o.splice(c,1)}a.callback.apply(a,arguments);if(r!=null){s.error(r,a.data)}}if(i<=s.concurrency-s.buffer){s.unsaturated()}if(s.idle()){s.drain()}s.process()}}var u=false;var s={_tasks:new DLL,concurrency:r,payload:t,saturated:noop,unsaturated:noop,buffer:r/4,empty:noop,drain:noop,error:noop,started:false,paused:false,push:function(e,r){_insert(e,false,r)},kill:function(){s.drain=noop;s._tasks.empty()},unshift:function(e,r){_insert(e,true,r)},remove:function(e){s._tasks.remove(e)},process:function(){if(u){return}u=true;while(!s.paused&&i<s.concurrency&&s._tasks.length){var e=[],r=[];var t=s._tasks.length;if(s.payload)t=Math.min(t,s.payload);for(var a=0;a<t;a++){var c=s._tasks.shift();e.push(c);o.push(c);r.push(c.data)}i+=1;if(s._tasks.length===0){s.empty()}if(i===s.concurrency){s.saturated()}var l=onlyOnce(_next(e));n(r,l)}u=false},length:function(){return s._tasks.length},running:function(){return i},workersList:function(){return o},idle:function(){return s._tasks.length+i===0},pause:function(){s.paused=true},resume:function(){if(s.paused===false){return}s.paused=false;a(s.process)}};return s}function cargo(e,r){return queue(e,1,r)}var yr=doLimit(eachOfLimit,1);function reduce(e,r,t,n){n=once(n||noop);var i=wrapAsync(t);yr(e,(function(e,t,n){i(r,e,(function(e,t){r=t;n(e)}))}),(function(e){n(e,r)}))}function seq(){var e=arrayMap(arguments,wrapAsync);return function(){var r=slice(arguments);var t=this;var n=r[r.length-1];if(typeof n=="function"){r.pop()}else{n=noop}reduce(e,r,(function(e,r,n){r.apply(t,e.concat((function(e){var r=slice(arguments,1);n(e,r)})))}),(function(e,r){n.apply(t,[e].concat(r))}))}}var compose=function(){return seq.apply(null,slice(arguments).reverse())};var dr=Array.prototype.concat;var concatLimit=function(e,r,t,n){n=n||noop;var i=wrapAsync(t);xe(e,r,(function(e,r){i(e,(function(e){if(e)return r(e);return r(null,slice(arguments,1))}))}),(function(e,r){var t=[];for(var i=0;i<r.length;i++){if(r[i]){t=dr.apply(t,r[i])}}return n(e,t)}))};var mr=doLimit(concatLimit,Infinity);var br=doLimit(concatLimit,1);var constant=function(){var e=slice(arguments);var r=[null].concat(e);return function(){var e=arguments[arguments.length-1];return e.apply(this,r)}};function identity(e){return e}function _createTester(e,r){return function(t,n,i,a){a=a||noop;var o=false;var c;t(n,(function(t,n,a){i(t,(function(n,i){if(n){a(n)}else if(e(i)&&!c){o=true;c=r(true,t);a(null,O)}else{a()}}))}),(function(e){if(e){a(e)}else{a(null,o?c:r(false))}}))}}function _findGetResult(e,r){return r}var gr=doParallel(_createTester(identity,_findGetResult));var Lr=doParallelLimit(_createTester(identity,_findGetResult));var kr=doLimit(Lr,1);function consoleFunc(e){return function(r){var t=slice(arguments,1);t.push((function(r){var t=slice(arguments,1);if(typeof console==="object"){if(r){if(console.error){console.error(r)}}else if(console[e]){arrayEach(t,(function(r){console[e](r)}))}}}));wrapAsync(r).apply(null,t)}}var wr=consoleFunc("dir");function doDuring(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(e);var i=wrapAsync(r);function next(e){if(e)return t(e);var r=slice(arguments,1);r.push(check);i.apply(this,r)}function check(e,r){if(e)return t(e);if(!r)return t(null);n(next)}check(null,true)}function doWhilst(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(e);var next=function(e){if(e)return t(e);var i=slice(arguments,1);if(r.apply(this,i))return n(next);t.apply(null,[null].concat(i))};n(next)}function doUntil(e,r,t){doWhilst(e,(function(){return!r.apply(this,arguments)}),t)}function during(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(r);var i=wrapAsync(e);function next(e){if(e)return t(e);i(check)}function check(e,r){if(e)return t(e);if(!r)return t(null);n(next)}i(check)}function _withoutIndex(e){return function(r,t,n){return e(r,n)}}function eachLimit(e,r,t){eachOf(e,_withoutIndex(wrapAsync(r)),t)}function eachLimit$1(e,r,t,n){_eachOfLimit(r)(e,_withoutIndex(wrapAsync(t)),n)}var Ar=doLimit(eachLimit$1,1);function ensureAsync(e){if(isAsync(e))return e;return initialParams((function(r,t){var n=true;r.push((function(){var e=arguments;if(n){a((function(){t.apply(null,e)}))}else{t.apply(null,e)}}));e.apply(this,r);n=false}))}function notId(e){return!e}var jr=doParallel(_createTester(notId,notId));var Or=doParallelLimit(_createTester(notId,notId));var Sr=doLimit(Or,1);function baseProperty(e){return function(r){return r==null?undefined:r[e]}}function filterArray(e,r,t,n){var i=new Array(r.length);e(r,(function(e,r,n){t(e,(function(e,t){i[r]=!!t;n(e)}))}),(function(e){if(e)return n(e);var t=[];for(var a=0;a<r.length;a++){if(i[a])t.push(r[a])}n(null,t)}))}function filterGeneric(e,r,t,n){var i=[];e(r,(function(e,r,n){t(e,(function(t,a){if(t){n(t)}else{if(a){i.push({index:r,value:e})}n()}}))}),(function(e){if(e){n(e)}else{n(null,arrayMap(i.sort((function(e,r){return e.index-r.index})),baseProperty("value")))}}))}function _filter(e,r,t,n){var i=isArrayLike(r)?filterArray:filterGeneric;i(e,r,wrapAsync(t),n||noop)}var Pr=doParallel(_filter);var xr=doParallelLimit(_filter);var _r=doLimit(xr,1);function forever(e,r){var t=onlyOnce(r||noop);var n=wrapAsync(ensureAsync(e));function next(e){if(e)return t(e);n(next)}next()}var groupByLimit=function(e,r,t,n){n=n||noop;var i=wrapAsync(t);xe(e,r,(function(e,r){i(e,(function(t,n){if(t)return r(t);return r(null,{key:n,val:e})}))}),(function(e,r){var t={};var i=Object.prototype.hasOwnProperty;for(var a=0;a<r.length;a++){if(r[a]){var o=r[a].key;var c=r[a].val;if(i.call(t,o)){t[o].push(c)}else{t[o]=[c]}}}return n(e,t)}))};var Er=doLimit(groupByLimit,Infinity);var Tr=doLimit(groupByLimit,1);var Ir=consoleFunc("log");function mapValuesLimit(e,r,t,n){n=once(n||noop);var i={};var a=wrapAsync(t);eachOfLimit(e,r,(function(e,r,t){a(e,r,(function(e,n){if(e)return t(e);i[r]=n;t()}))}),(function(e){n(e,i)}))}var Fr=doLimit(mapValuesLimit,Infinity);var Dr=doLimit(mapValuesLimit,1);function has(e,r){return r in e}function memoize(e,r){var t=Object.create(null);var n=Object.create(null);r=r||identity;var i=wrapAsync(e);var o=initialParams((function memoized(e,o){var c=r.apply(null,e);if(has(t,c)){a((function(){o.apply(null,t[c])}))}else if(has(n,c)){n[c].push(o)}else{n[c]=[o];i.apply(null,e.concat((function(){var e=slice(arguments);t[c]=e;var r=n[c];delete n[c];for(var i=0,a=r.length;i<a;i++){r[i].apply(null,e)}})))}}));o.memo=t;o.unmemoized=e;return o}var qr;if(n){qr=process.nextTick}else if(t){qr=setImmediate}else{qr=fallback}var Nr=wrap(qr);function _parallel(e,r,t){t=t||noop;var n=isArrayLike(r)?[]:{};e(r,(function(e,r,t){wrapAsync(e)((function(e,i){if(arguments.length>2){i=slice(arguments,1)}n[r]=i;t(e)}))}),(function(e){t(e,n)}))}function parallelLimit(e,r){_parallel(eachOf,e,r)}function parallelLimit$1(e,r,t){_parallel(_eachOfLimit(r),e,t)}var queue$1=function(e,r){var t=wrapAsync(e);return queue((function(e,r){t(e[0],r)}),r,1)};var priorityQueue=function(e,r){var t=queue$1(e,r);t.push=function(e,r,n){if(n==null)n=noop;if(typeof n!=="function"){throw new Error("task callback must be a function")}t.started=true;if(!I(e)){e=[e]}if(e.length===0){return a((function(){t.drain()}))}r=r||0;var i=t._tasks.head;while(i&&r>=i.priority){i=i.next}for(var o=0,c=e.length;o<c;o++){var u={data:e[o],priority:r,callback:n};if(i){t._tasks.insertBefore(i,u)}else{t._tasks.push(u)}}a(t.process)};delete t.unshift;return t};function race(e,r){r=once(r||noop);if(!I(e))return r(new TypeError("First argument to race must be an array of functions"));if(!e.length)return r();for(var t=0,n=e.length;t<n;t++){wrapAsync(e[t])(r)}}function reduceRight(e,r,t,n){var i=slice(e).reverse();reduce(i,r,t,n)}function reflect(e){var r=wrapAsync(e);return initialParams((function reflectOn(e,t){e.push((function callback(e,r){if(e){t(null,{error:e})}else{var n;if(arguments.length<=2){n=r}else{n=slice(arguments,1)}t(null,{value:n})}}));return r.apply(this,e)}))}function reflectAll(e){var r;if(I(e)){r=arrayMap(e,reflect)}else{r={};baseForOwn(e,(function(e,t){r[t]=reflect.call(this,e)}))}return r}function reject$1(e,r,t,n){_filter(e,r,(function(e,r){t(e,(function(e,t){r(e,!t)}))}),n)}var $r=doParallel(reject$1);var Br=doParallelLimit(reject$1);var Rr=doLimit(Br,1);function constant$1(e){return function(){return e}}function retry(e,r,t){var n=5;var i=0;var a={times:n,intervalFunc:constant$1(i)};function parseTimes(e,r){if(typeof r==="object"){e.times=+r.times||n;e.intervalFunc=typeof r.interval==="function"?r.interval:constant$1(+r.interval||i);e.errorFilter=r.errorFilter}else if(typeof r==="number"||typeof r==="string"){e.times=+r||n}else{throw new Error("Invalid arguments for async.retry")}}if(arguments.length<3&&typeof e==="function"){t=r||noop;r=e}else{parseTimes(a,e);t=t||noop}if(typeof r!=="function"){throw new Error("Invalid arguments for async.retry")}var o=wrapAsync(r);var c=1;function retryAttempt(){o((function(e){if(e&&c++<a.times&&(typeof a.errorFilter!="function"||a.errorFilter(e))){setTimeout(retryAttempt,a.intervalFunc(c))}else{t.apply(null,arguments)}}))}retryAttempt()}var retryable=function(e,r){if(!r){r=e;e=null}var t=wrapAsync(r);return initialParams((function(r,n){function taskFn(e){t.apply(null,r.concat(e))}if(e)retry(e,taskFn,n);else retry(taskFn,n)}))};function series(e,r){_parallel(yr,e,r)}var Mr=doParallel(_createTester(Boolean,identity));var Cr=doParallelLimit(_createTester(Boolean,identity));var zr=doLimit(Cr,1);function sortBy(e,r,t){var n=wrapAsync(r);Se(e,(function(e,r){n(e,(function(t,n){if(t)return r(t);r(null,{value:e,criteria:n})}))}),(function(e,r){if(e)return t(e);t(null,arrayMap(r.sort(comparator),baseProperty("value")))}));function comparator(e,r){var t=e.criteria,n=r.criteria;return t<n?-1:t>n?1:0}}function timeout(e,r,t){var n=wrapAsync(e);return initialParams((function(i,a){var o=false;var c;function timeoutCallback(){var r=e.name||"anonymous";var n=new Error('Callback function "'+r+'" timed out.');n.code="ETIMEDOUT";if(t){n.info=t}o=true;a(n)}i.push((function(){if(!o){a.apply(null,arguments);clearTimeout(c)}}));c=setTimeout(timeoutCallback,r);n.apply(null,i)}))}var Ur=Math.ceil;var Vr=Math.max;function baseRange(e,r,t,n){var i=-1,a=Vr(Ur((r-e)/(t||1)),0),o=Array(a);while(a--){o[n?a:++i]=e;e+=t}return o}function timeLimit(e,r,t,n){var i=wrapAsync(t);xe(baseRange(0,e,1),r,i,n)}var Gr=doLimit(timeLimit,Infinity);var Hr=doLimit(timeLimit,1);function transform(e,r,t,n){if(arguments.length<=3){n=t;t=r;r=I(e)?[]:{}}n=once(n||noop);var i=wrapAsync(t);eachOf(e,(function(e,t,n){i(r,e,t,n)}),(function(e){n(e,r)}))}function tryEach(e,r){var t=null;var n;r=r||noop;Ar(e,(function(e,r){wrapAsync(e)((function(e,i){if(arguments.length>2){n=slice(arguments,1)}else{n=i}t=e;r(!e)}))}),(function(){r(t,n)}))}function unmemoize(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function whilst(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(r);if(!e())return t(null);var next=function(r){if(r)return t(r);if(e())return n(next);var i=slice(arguments,1);t.apply(null,[null].concat(i))};n(next)}function until(e,r,t){whilst((function(){return!e.apply(this,arguments)}),r,t)}var waterfall=function(e,r){r=once(r||noop);if(!I(e))return r(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return r();var t=0;function nextTask(r){var n=wrapAsync(e[t++]);r.push(onlyOnce(next));n.apply(null,r)}function next(n){if(n||t===e.length){return r.apply(null,arguments)}nextTask(slice(arguments,1))}nextTask([])};var Wr={apply:apply,applyEach:Pe,applyEachSeries:Ee,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo,compose:compose,concat:mr,concatLimit:concatLimit,concatSeries:br,constant:constant,detect:gr,detectLimit:Lr,detectSeries:kr,dir:wr,doDuring:doDuring,doUntil:doUntil,doWhilst:doWhilst,during:during,each:eachLimit,eachLimit:eachLimit$1,eachOf:eachOf,eachOfLimit:eachOfLimit,eachOfSeries:yr,eachSeries:Ar,ensureAsync:ensureAsync,every:jr,everyLimit:Or,everySeries:Sr,filter:Pr,filterLimit:xr,filterSeries:_r,forever:forever,groupBy:Er,groupByLimit:groupByLimit,groupBySeries:Tr,log:Ir,map:Se,mapLimit:xe,mapSeries:_e,mapValues:Fr,mapValuesLimit:mapValuesLimit,mapValuesSeries:Dr,memoize:memoize,nextTick:Nr,parallel:parallelLimit,parallelLimit:parallelLimit$1,priorityQueue:priorityQueue,queue:queue$1,race:race,reduce:reduce,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:$r,rejectLimit:Br,rejectSeries:Rr,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:a,some:Mr,someLimit:Cr,someSeries:zr,sortBy:sortBy,timeout:timeout,times:Gr,timesLimit:timeLimit,timesSeries:Hr,transform:transform,tryEach:tryEach,unmemoize:unmemoize,until:until,waterfall:waterfall,whilst:whilst,all:jr,allLimit:Or,allSeries:Sr,any:Mr,anyLimit:Cr,anySeries:zr,find:gr,findLimit:Lr,findSeries:kr,forEach:eachLimit,forEachSeries:Ar,forEachLimit:eachLimit$1,forEachOf:eachOf,forEachOfSeries:yr,forEachOfLimit:eachOfLimit,inject:reduce,foldl:reduce,foldr:reduceRight,select:Pr,selectLimit:xr,selectSeries:_r,wrapSync:asyncify};r["default"]=Wr;r.apply=apply;r.applyEach=Pe;r.applyEachSeries=Ee;r.asyncify=asyncify;r.auto=auto;r.autoInject=autoInject;r.cargo=cargo;r.compose=compose;r.concat=mr;r.concatLimit=concatLimit;r.concatSeries=br;r.constant=constant;r.detect=gr;r.detectLimit=Lr;r.detectSeries=kr;r.dir=wr;r.doDuring=doDuring;r.doUntil=doUntil;r.doWhilst=doWhilst;r.during=during;r.each=eachLimit;r.eachLimit=eachLimit$1;r.eachOf=eachOf;r.eachOfLimit=eachOfLimit;r.eachOfSeries=yr;r.eachSeries=Ar;r.ensureAsync=ensureAsync;r.every=jr;r.everyLimit=Or;r.everySeries=Sr;r.filter=Pr;r.filterLimit=xr;r.filterSeries=_r;r.forever=forever;r.groupBy=Er;r.groupByLimit=groupByLimit;r.groupBySeries=Tr;r.log=Ir;r.map=Se;r.mapLimit=xe;r.mapSeries=_e;r.mapValues=Fr;r.mapValuesLimit=mapValuesLimit;r.mapValuesSeries=Dr;r.memoize=memoize;r.nextTick=Nr;r.parallel=parallelLimit;r.parallelLimit=parallelLimit$1;r.priorityQueue=priorityQueue;r.queue=queue$1;r.race=race;r.reduce=reduce;r.reduceRight=reduceRight;r.reflect=reflect;r.reflectAll=reflectAll;r.reject=$r;r.rejectLimit=Br;r.rejectSeries=Rr;r.retry=retry;r.retryable=retryable;r.seq=seq;r.series=series;r.setImmediate=a;r.some=Mr;r.someLimit=Cr;r.someSeries=zr;r.sortBy=sortBy;r.timeout=timeout;r.times=Gr;r.timesLimit=timeLimit;r.timesSeries=Hr;r.transform=transform;r.tryEach=tryEach;r.unmemoize=unmemoize;r.until=until;r.waterfall=waterfall;r.whilst=whilst;r.all=jr;r.allLimit=Or;r.allSeries=Sr;r.any=Mr;r.anyLimit=Cr;r.anySeries=zr;r.find=gr;r.findLimit=Lr;r.findSeries=kr;r.forEach=eachLimit;r.forEachSeries=Ar;r.forEachLimit=eachLimit$1;r.forEachOf=eachOf;r.forEachOfSeries=yr;r.forEachOfLimit=eachOfLimit;r.inject=reduce;r.foldl=reduce;r.foldr=reduceRight;r.select=Pr;r.selectLimit=xr;r.selectSeries=_r;r.wrapSync=asyncify;Object.defineProperty(r,"__esModule",{value:true})}))},917:function(e,r,t){var n=t(622);var i=t(747);var a=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,r,t,o){if(typeof r==="function"){t=r;r={}}else if(!r||typeof r!=="object"){r={mode:r}}var c=r.mode;var u=r.fs||i;if(c===undefined){c=a}if(!o)o=null;var s=t||function(){};e=n.resolve(e);u.mkdir(e,c,(function(t){if(!t){o=o||e;return s(null,o)}switch(t.code){case"ENOENT":if(n.dirname(e)===e)return s(t);mkdirP(n.dirname(e),r,(function(t,n){if(t)s(t,n);else mkdirP(e,r,s,n)}));break;default:u.stat(e,(function(e,r){if(e||!r.isDirectory())s(t,o);else s(null,o)}));break}}))}mkdirP.sync=function sync(e,r,t){if(!r||typeof r!=="object"){r={mode:r}}var o=r.mode;var c=r.fs||i;if(o===undefined){o=a}if(!t)t=null;e=n.resolve(e);try{c.mkdirSync(e,o);t=t||e}catch(i){switch(i.code){case"ENOENT":t=sync(n.dirname(e),r,t);sync(e,r,t);break;default:var u;try{u=c.statSync(e)}catch(e){throw i}if(!u.isDirectory())throw i;break}}return t}},811:function(e,r,t){"use strict";var n=t(747),i=t(87),a=t(631),o=t(622),c=t(557),u=t(627),s=t(917).mkdirp;var l=u("portfinder:testPort"),f=u("portfinder:getPort"),p=u("portfinder:defaultHosts");var v={};v.testPort=function(e,t){if(!t){t=e;e={}}e.server=e.server||a.createServer((function(){}));l("entered testPort(): trying",e.host,"port",e.port);function onListen(){l("done w/ testPort(): OK",e.host,"port",e.port);e.server.removeListener("error",onError);e.server.close();t(null,e.port)}function onError(n){l("done w/ testPort(): failed",e.host,"w/ port",e.port,"with error",n.code);e.server.removeListener("listening",onListen);if(!(n.code=="EADDRINUSE"||n.code=="EACCES")){return t(n)}var i=r.nextPort(e.port);if(i>r.highestPort){return t(new Error("No open ports available"))}v.testPort({port:i,host:e.host,server:e.server},t)}e.server.once("error",onError);e.server.once("listening",onListen);if(e.host){e.server.listen(e.port,e.host)}else{e.server.listen(e.port)}};r.basePort=8e3;r.highestPort=65535;r.basePath="/tmp/portfinder";r.getPort=function(e,t){if(!t){t=e;e={}}e.port=Number(e.port)||Number(r.basePort);e.host=e.host||null;e.stopPort=Number(e.stopPort)||Number(r.highestPort);if(!e.startPort){e.startPort=Number(e.port);if(e.startPort<0){throw Error("Provided options.startPort("+e.startPort+") is less than 0, which are cannot be bound.")}if(e.stopPort<e.startPort){throw Error("Provided options.stopPort("+e.stopPort+"is less than options.startPort ("+e.startPort+")")}}if(e.host){var n;for(var i=0;i<r._defaultHosts.length;i++){if(r._defaultHosts[i]===e.host){n=true;break}}if(!n){r._defaultHosts.push(e.host)}}var a=[],o;return c.eachSeries(r._defaultHosts,(function(r,t){f("in eachSeries() iteration callback: host is",r);return v.testPort({host:r,port:e.port},(function(e,n){if(e){f("in eachSeries() iteration callback testPort() callback","with an err:",e.code);o=r;return t(e)}else{f("in eachSeries() iteration callback testPort() callback","with a success for port",n);a.push(n);return t()}}))}),(function(n){if(n){f("in eachSeries() result callback: err is",n);if(n.code==="EADDRNOTAVAIL"||n.code==="EINVAL"){if(e.host===o){var i="Provided host "+e.host+" could NOT be bound. Please provide a different host address or hostname";return t(Error(i))}else{var c=r._defaultHosts.indexOf(o);r._defaultHosts.splice(c,1);return r.getPort(e,t)}}else{return t(n)}}a.sort((function(e,r){return e-r}));f("in eachSeries() result callback: openPorts is",a);if(a[0]===a[a.length-1]){if(a[0]<=e.stopPort){return t(null,a[0])}else{var i="No open ports found in between "+e.startPort+" and "+e.stopPort;return t(Error(i))}}else{return r.getPort({port:a.pop(),host:e.host,startPort:e.startPort,stopPort:e.stopPort},t)}}))};r.getPortPromise=function(e){if(typeof Promise!=="function"){throw Error("Native promise support is not available in this version of node."+"Please install a polyfill and assign Promise to global.Promise before calling this method")}if(!e){e={}}return new Promise((function(t,n){r.getPort(e,(function(e,r){if(e){return n(e)}t(r)}))}))};r.getPorts=function(e,t,n){if(!n){n=t;t={}}var i=null;c.timesSeries(e,(function(e,n){if(i){t.port=r.nextPort(i)}r.getPort(t,(function(e,r){if(e){n(e)}else{i=r;n(null,r)}}))}),n)};r.getSocket=function(e,t){if(!t){t=e;e={}}e.mod=e.mod||parseInt(755,8);e.path=e.path||r.basePath+".sock";function testSocket(){n.stat(e.path,(function(n){if(n){if(n.code=="ENOENT"){t(null,e.path)}else{t(n)}}else{e.path=r.nextSocket(e.path);r.getSocket(e,t)}}))}function createAndTestSocket(r){s(r,e.mod,(function(r){if(r){return t(r)}e.exists=true;testSocket()}))}function checkAndTestSocket(){var r=o.dirname(e.path);n.stat(r,(function(t,n){if(t||!n.isDirectory()){return createAndTestSocket(r)}e.exists=true;testSocket()}))}return e.exists?testSocket():checkAndTestSocket()};r.nextPort=function(e){return e+1};r.nextSocket=function(e){var r=o.dirname(e),t=o.basename(e,".sock"),n=t.match(/^([a-zA-z]+)(\d*)$/i),i=parseInt(n[2]),a=n[1];if(isNaN(i)){i=0}i+=1;return o.join(r,a+i+".sock")};r._defaultHosts=function(){var e={};try{e=i.networkInterfaces()}catch(e){if(e.syscall==="uv_interface_addresses"){}else{throw e}}var r=Object.keys(e),t="0.0.0.0",n=[t];for(var a=0;a<r.length;a++){var o=e[r[a]];for(var c=0;c<o.length;c++){var u=o[c];n.push(u.address)}}n.push(null);p("exports._defaultHosts is: %o",n);return n}()},627:function(e){"use strict";e.exports=require("@umijs/utils/compiled/debug")},747:function(e){"use strict";e.exports=require("fs")},631:function(e){"use strict";e.exports=require("net")},87:function(e){"use strict";e.exports=require("os")},622:function(e){"use strict";e.exports=require("path")}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var i=r[t]={id:t,loaded:false,exports:{}};var a=true;try{e[t].call(i.exports,i,i.exports,__nccwpck_require__);a=false}finally{if(a)delete r[t]}i.loaded=true;return i.exports}!function(){__nccwpck_require__.nmd=function(e){e.paths=[];if(!e.children)e.children=[];return e}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(811);module.exports=t})();
|
|
1
|
+
(function(){var e={620:function(e,r,t){e=t.nmd(e);(function(e,t){true?t(r):0})(this,(function(r){"use strict";function slice(e,r){r=r|0;var t=Math.max(e.length-r,0);var n=Array(t);for(var i=0;i<t;i++){n[i]=e[r+i]}return n}var apply=function(e){var r=slice(arguments,1);return function(){var t=slice(arguments);return e.apply(null,r.concat(t))}};var initialParams=function(e){return function(){var r=slice(arguments);var t=r.pop();e.call(this,r,t)}};function isObject(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var t=typeof setImmediate==="function"&&setImmediate;var n=typeof process==="object"&&typeof process.nextTick==="function";function fallback(e){setTimeout(e,0)}function wrap(e){return function(r){var t=slice(arguments,1);e((function(){r.apply(null,t)}))}}var i;if(t){i=setImmediate}else if(n){i=process.nextTick}else{i=fallback}var a=wrap(i);function asyncify(e){return initialParams((function(r,t){var n;try{n=e.apply(this,r)}catch(e){return t(e)}if(isObject(n)&&typeof n.then==="function"){n.then((function(e){invokeCallback(t,null,e)}),(function(e){invokeCallback(t,e.message?e:new Error(e))}))}else{t(null,n)}}))}function invokeCallback(e,r,t){try{e(r,t)}catch(e){a(rethrow,e)}}function rethrow(e){throw e}var o=typeof Symbol==="function";function isAsync(e){return o&&e[Symbol.toStringTag]==="AsyncFunction"}function wrapAsync(e){return isAsync(e)?asyncify(e):e}function applyEach$1(e){return function(r){var t=slice(arguments,1);var n=initialParams((function(t,n){var i=this;return e(r,(function(e,r){wrapAsync(e).apply(i,t.concat(r))}),n)}));if(t.length){return n.apply(this,t)}else{return n}}}var c=typeof global=="object"&&global&&global.Object===Object&&global;var u=typeof self=="object"&&self&&self.Object===Object&&self;var s=c||u||Function("return this")();var l=s.Symbol;var f=Object.prototype;var p=f.hasOwnProperty;var v=f.toString;var h=l?l.toStringTag:undefined;function getRawTag(e){var r=p.call(e,h),t=e[h];try{e[h]=undefined;var n=true}catch(e){}var i=v.call(e);if(n){if(r){e[h]=t}else{delete e[h]}}return i}var y=Object.prototype;var d=y.toString;function objectToString(e){return d.call(e)}var m="[object Null]";var b="[object Undefined]";var g=l?l.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?b:m}return g&&g in Object(e)?getRawTag(e):objectToString(e)}var L="[object AsyncFunction]";var k="[object Function]";var w="[object GeneratorFunction]";var A="[object Proxy]";function isFunction(e){if(!isObject(e)){return false}var r=baseGetTag(e);return r==k||r==w||r==L||r==A}var j=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=j}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var O={};function noop(){}function once(e){return function(){if(e===null)return;var r=e;e=null;r.apply(this,arguments)}}var S=typeof Symbol==="function"&&Symbol.iterator;var getIterator=function(e){return S&&e[S]&&e[S]()};function baseTimes(e,r){var t=-1,n=Array(e);while(++t<e){n[t]=r(t)}return n}function isObjectLike(e){return e!=null&&typeof e=="object"}var P="[object Arguments]";function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==P}var x=Object.prototype;var _=x.hasOwnProperty;var E=x.propertyIsEnumerable;var T=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&_.call(e,"callee")&&!E.call(e,"callee")};var I=Array.isArray;function stubFalse(){return false}var F=typeof r=="object"&&r&&!r.nodeType&&r;var D=F&&"object"=="object"&&e&&!e.nodeType&&e;var q=D&&D.exports===F;var N=q?s.Buffer:undefined;var B=N?N.isBuffer:undefined;var $=B||stubFalse;var R=9007199254740991;var M=/^(?:0|[1-9]\d*)$/;function isIndex(e,r){var t=typeof e;r=r==null?R:r;return!!r&&(t=="number"||t!="symbol"&&M.test(e))&&(e>-1&&e%1==0&&e<r)}var C="[object Arguments]";var z="[object Array]";var U="[object Boolean]";var V="[object Date]";var G="[object Error]";var H="[object Function]";var W="[object Map]";var K="[object Number]";var Q="[object Object]";var J="[object RegExp]";var X="[object Set]";var Y="[object String]";var Z="[object WeakMap]";var ee="[object ArrayBuffer]";var re="[object DataView]";var te="[object Float32Array]";var ne="[object Float64Array]";var ie="[object Int8Array]";var ae="[object Int16Array]";var oe="[object Int32Array]";var ce="[object Uint8Array]";var ue="[object Uint8ClampedArray]";var se="[object Uint16Array]";var le="[object Uint32Array]";var fe={};fe[te]=fe[ne]=fe[ie]=fe[ae]=fe[oe]=fe[ce]=fe[ue]=fe[se]=fe[le]=true;fe[C]=fe[z]=fe[ee]=fe[U]=fe[re]=fe[V]=fe[G]=fe[H]=fe[W]=fe[K]=fe[Q]=fe[J]=fe[X]=fe[Y]=fe[Z]=false;function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!fe[baseGetTag(e)]}function baseUnary(e){return function(r){return e(r)}}var pe=typeof r=="object"&&r&&!r.nodeType&&r;var ve=pe&&"object"=="object"&&e&&!e.nodeType&&e;var he=ve&&ve.exports===pe;var ye=he&&c.process;var de=function(){try{var e=ve&&ve.require&&ve.require("util").types;if(e){return e}return ye&&ye.binding&&ye.binding("util")}catch(e){}}();var me=de&&de.isTypedArray;var be=me?baseUnary(me):baseIsTypedArray;var ge=Object.prototype;var Le=ge.hasOwnProperty;function arrayLikeKeys(e,r){var t=I(e),n=!t&&T(e),i=!t&&!n&&$(e),a=!t&&!n&&!i&&be(e),o=t||n||i||a,c=o?baseTimes(e.length,String):[],u=c.length;for(var s in e){if((r||Le.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||isIndex(s,u)))){c.push(s)}}return c}var ke=Object.prototype;function isPrototype(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||ke;return e===t}function overArg(e,r){return function(t){return e(r(t))}}var we=overArg(Object.keys,Object);var Ae=Object.prototype;var je=Ae.hasOwnProperty;function baseKeys(e){if(!isPrototype(e)){return we(e)}var r=[];for(var t in Object(e)){if(je.call(e,t)&&t!="constructor"){r.push(t)}}return r}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function createArrayIterator(e){var r=-1;var t=e.length;return function next(){return++r<t?{value:e[r],key:r}:null}}function createES2015Iterator(e){var r=-1;return function next(){var t=e.next();if(t.done)return null;r++;return{value:t.value,key:r}}}function createObjectIterator(e){var r=keys(e);var t=-1;var n=r.length;return function next(){var i=r[++t];if(i==="__proto__"){return next()}return t<n?{value:e[i],key:i}:null}}function iterator(e){if(isArrayLike(e)){return createArrayIterator(e)}var r=getIterator(e);return r?createES2015Iterator(r):createObjectIterator(e)}function onlyOnce(e){return function(){if(e===null)throw new Error("Callback was already called.");var r=e;e=null;r.apply(this,arguments)}}function _eachOfLimit(e){return function(r,t,n){n=once(n||noop);if(e<=0||!r){return n(null)}var i=iterator(r);var a=false;var o=0;var c=false;function iterateeCallback(e,r){o-=1;if(e){a=true;n(e)}else if(r===O||a&&o<=0){a=true;return n(null)}else if(!c){replenish()}}function replenish(){c=true;while(o<e&&!a){var r=i();if(r===null){a=true;if(o<=0){n(null)}return}o+=1;t(r.value,r.key,onlyOnce(iterateeCallback))}c=false}replenish()}}function eachOfLimit(e,r,t,n){_eachOfLimit(r)(e,wrapAsync(t),n)}function doLimit(e,r){return function(t,n,i){return e(t,r,n,i)}}function eachOfArrayLike(e,r,t){t=once(t||noop);var n=0,i=0,a=e.length;if(a===0){t(null)}function iteratorCallback(e,r){if(e){t(e)}else if(++i===a||r===O){t(null)}}for(;n<a;n++){r(e[n],n,onlyOnce(iteratorCallback))}}var Oe=doLimit(eachOfLimit,Infinity);var eachOf=function(e,r,t){var n=isArrayLike(e)?eachOfArrayLike:Oe;n(e,wrapAsync(r),t)};function doParallel(e){return function(r,t,n){return e(eachOf,r,wrapAsync(t),n)}}function _asyncMap(e,r,t,n){n=n||noop;r=r||[];var i=[];var a=0;var o=wrapAsync(t);e(r,(function(e,r,t){var n=a++;o(e,(function(e,r){i[n]=r;t(e)}))}),(function(e){n(e,i)}))}var Se=doParallel(_asyncMap);var Pe=applyEach$1(Se);function doParallelLimit(e){return function(r,t,n,i){return e(_eachOfLimit(t),r,wrapAsync(n),i)}}var xe=doParallelLimit(_asyncMap);var _e=doLimit(xe,1);var Ee=applyEach$1(_e);function arrayEach(e,r){var t=-1,n=e==null?0:e.length;while(++t<n){if(r(e[t],t,e)===false){break}}return e}function createBaseFor(e){return function(r,t,n){var i=-1,a=Object(r),o=n(r),c=o.length;while(c--){var u=o[e?c:++i];if(t(a[u],u,a)===false){break}}return r}}var Te=createBaseFor();function baseForOwn(e,r){return e&&Te(e,r,keys)}function baseFindIndex(e,r,t,n){var i=e.length,a=t+(n?1:-1);while(n?a--:++a<i){if(r(e[a],a,e)){return a}}return-1}function baseIsNaN(e){return e!==e}function strictIndexOf(e,r,t){var n=t-1,i=e.length;while(++n<i){if(e[n]===r){return n}}return-1}function baseIndexOf(e,r,t){return r===r?strictIndexOf(e,r,t):baseFindIndex(e,baseIsNaN,t)}var auto=function(e,r,t){if(typeof r==="function"){t=r;r=null}t=once(t||noop);var n=keys(e);var i=n.length;if(!i){return t(null)}if(!r){r=i}var a={};var o=0;var c=false;var u=Object.create(null);var s=[];var l=[];var f={};baseForOwn(e,(function(r,t){if(!I(r)){enqueueTask(t,[r]);l.push(t);return}var n=r.slice(0,r.length-1);var i=n.length;if(i===0){enqueueTask(t,r);l.push(t);return}f[t]=i;arrayEach(n,(function(a){if(!e[a]){throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+a+"` in "+n.join(", "))}addListener(a,(function(){i--;if(i===0){enqueueTask(t,r)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(e,r){s.push((function(){runTask(e,r)}))}function processQueue(){if(s.length===0&&o===0){return t(null,a)}while(s.length&&o<r){var e=s.shift();e()}}function addListener(e,r){var t=u[e];if(!t){t=u[e]=[]}t.push(r)}function taskComplete(e){var r=u[e]||[];arrayEach(r,(function(e){e()}));processQueue()}function runTask(e,r){if(c)return;var n=onlyOnce((function(r,n){o--;if(arguments.length>2){n=slice(arguments,1)}if(r){var i={};baseForOwn(a,(function(e,r){i[r]=e}));i[e]=n;c=true;u=Object.create(null);t(r,i)}else{a[e]=n;taskComplete(e)}}));o++;var i=wrapAsync(r[r.length-1]);if(r.length>1){i(a,n)}else{i(n)}}function checkForDeadlocks(){var e;var r=0;while(l.length){e=l.pop();r++;arrayEach(getDependents(e),(function(e){if(--f[e]===0){l.push(e)}}))}if(r!==i){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(r){var t=[];baseForOwn(e,(function(e,n){if(I(e)&&baseIndexOf(e,r,0)>=0){t.push(n)}}));return t}};function arrayMap(e,r){var t=-1,n=e==null?0:e.length,i=Array(n);while(++t<n){i[t]=r(e[t],t,e)}return i}var Ie="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==Ie}var Fe=1/0;var De=l?l.prototype:undefined;var qe=De?De.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(I(e)){return arrayMap(e,baseToString)+""}if(isSymbol(e)){return qe?qe.call(e):""}var r=e+"";return r=="0"&&1/e==-Fe?"-0":r}function baseSlice(e,r,t){var n=-1,i=e.length;if(r<0){r=-r>i?0:i+r}t=t>i?i:t;if(t<0){t+=i}i=r>t?0:t-r>>>0;r>>>=0;var a=Array(i);while(++n<i){a[n]=e[n+r]}return a}function castSlice(e,r,t){var n=e.length;t=t===undefined?n:t;return!r&&t>=n?e:baseSlice(e,r,t)}function charsEndIndex(e,r){var t=e.length;while(t--&&baseIndexOf(r,e[t],0)>-1){}return t}function charsStartIndex(e,r){var t=-1,n=e.length;while(++t<n&&baseIndexOf(r,e[t],0)>-1){}return t}function asciiToArray(e){return e.split("")}var Ne="\\ud800-\\udfff";var Be="\\u0300-\\u036f";var $e="\\ufe20-\\ufe2f";var Re="\\u20d0-\\u20ff";var Me=Be+$e+Re;var Ce="\\ufe0e\\ufe0f";var ze="\\u200d";var Ue=RegExp("["+ze+Ne+Me+Ce+"]");function hasUnicode(e){return Ue.test(e)}var Ve="\\ud800-\\udfff";var Ge="\\u0300-\\u036f";var He="\\ufe20-\\ufe2f";var We="\\u20d0-\\u20ff";var Ke=Ge+He+We;var Qe="\\ufe0e\\ufe0f";var Je="["+Ve+"]";var Xe="["+Ke+"]";var Ye="\\ud83c[\\udffb-\\udfff]";var Ze="(?:"+Xe+"|"+Ye+")";var er="[^"+Ve+"]";var rr="(?:\\ud83c[\\udde6-\\uddff]){2}";var tr="[\\ud800-\\udbff][\\udc00-\\udfff]";var nr="\\u200d";var ir=Ze+"?";var ar="["+Qe+"]?";var or="(?:"+nr+"(?:"+[er,rr,tr].join("|")+")"+ar+ir+")*";var cr=ar+ir+or;var ur="(?:"+[er+Xe+"?",Xe,rr,tr,Je].join("|")+")";var sr=RegExp(Ye+"(?="+Ye+")|"+ur+cr,"g");function unicodeToArray(e){return e.match(sr)||[]}function stringToArray(e){return hasUnicode(e)?unicodeToArray(e):asciiToArray(e)}function toString(e){return e==null?"":baseToString(e)}var lr=/^\s+|\s+$/g;function trim(e,r,t){e=toString(e);if(e&&(t||r===undefined)){return e.replace(lr,"")}if(!e||!(r=baseToString(r))){return e}var n=stringToArray(e),i=stringToArray(r),a=charsStartIndex(n,i),o=charsEndIndex(n,i)+1;return castSlice(n,a,o).join("")}var fr=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m;var pr=/,/;var vr=/(=.+)?(\s*)$/;var hr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function parseParams(e){e=e.toString().replace(hr,"");e=e.match(fr)[2].replace(" ","");e=e?e.split(pr):[];e=e.map((function(e){return trim(e.replace(vr,""))}));return e}function autoInject(e,r){var t={};baseForOwn(e,(function(e,r){var n;var i=isAsync(e);var a=!i&&e.length===1||i&&e.length===0;if(I(e)){n=e.slice(0,-1);e=e[e.length-1];t[r]=n.concat(n.length>0?newTask:e)}else if(a){t[r]=e}else{n=parseParams(e);if(e.length===0&&!i&&n.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!i)n.pop();t[r]=n.concat(newTask)}function newTask(r,t){var i=arrayMap(n,(function(e){return r[e]}));i.push(t);wrapAsync(e).apply(null,i)}}));auto(t,r)}function DLL(){this.head=this.tail=null;this.length=0}function setInitial(e,r){e.length=1;e.head=e.tail=r}DLL.prototype.removeLink=function(e){if(e.prev)e.prev.next=e.next;else this.head=e.next;if(e.next)e.next.prev=e.prev;else this.tail=e.prev;e.prev=e.next=null;this.length-=1;return e};DLL.prototype.empty=function(){while(this.head)this.shift();return this};DLL.prototype.insertAfter=function(e,r){r.prev=e;r.next=e.next;if(e.next)e.next.prev=r;else this.tail=r;e.next=r;this.length+=1};DLL.prototype.insertBefore=function(e,r){r.prev=e.prev;r.next=e;if(e.prev)e.prev.next=r;else this.head=r;e.prev=r;this.length+=1};DLL.prototype.unshift=function(e){if(this.head)this.insertBefore(this.head,e);else setInitial(this,e)};DLL.prototype.push=function(e){if(this.tail)this.insertAfter(this.tail,e);else setInitial(this,e)};DLL.prototype.shift=function(){return this.head&&this.removeLink(this.head)};DLL.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)};DLL.prototype.toArray=function(){var e=Array(this.length);var r=this.head;for(var t=0;t<this.length;t++){e[t]=r.data;r=r.next}return e};DLL.prototype.remove=function(e){var r=this.head;while(!!r){var t=r.next;if(e(r)){this.removeLink(r)}r=t}return this};function queue(e,r,t){if(r==null){r=1}else if(r===0){throw new Error("Concurrency must not be zero")}var n=wrapAsync(e);var i=0;var o=[];var c=false;function _insert(e,r,t){if(t!=null&&typeof t!=="function"){throw new Error("task callback must be a function")}s.started=true;if(!I(e)){e=[e]}if(e.length===0&&s.idle()){return a((function(){s.drain()}))}for(var n=0,i=e.length;n<i;n++){var o={data:e[n],callback:t||noop};if(r){s._tasks.unshift(o)}else{s._tasks.push(o)}}if(!c){c=true;a((function(){c=false;s.process()}))}}function _next(e){return function(r){i-=1;for(var t=0,n=e.length;t<n;t++){var a=e[t];var c=baseIndexOf(o,a,0);if(c===0){o.shift()}else if(c>0){o.splice(c,1)}a.callback.apply(a,arguments);if(r!=null){s.error(r,a.data)}}if(i<=s.concurrency-s.buffer){s.unsaturated()}if(s.idle()){s.drain()}s.process()}}var u=false;var s={_tasks:new DLL,concurrency:r,payload:t,saturated:noop,unsaturated:noop,buffer:r/4,empty:noop,drain:noop,error:noop,started:false,paused:false,push:function(e,r){_insert(e,false,r)},kill:function(){s.drain=noop;s._tasks.empty()},unshift:function(e,r){_insert(e,true,r)},remove:function(e){s._tasks.remove(e)},process:function(){if(u){return}u=true;while(!s.paused&&i<s.concurrency&&s._tasks.length){var e=[],r=[];var t=s._tasks.length;if(s.payload)t=Math.min(t,s.payload);for(var a=0;a<t;a++){var c=s._tasks.shift();e.push(c);o.push(c);r.push(c.data)}i+=1;if(s._tasks.length===0){s.empty()}if(i===s.concurrency){s.saturated()}var l=onlyOnce(_next(e));n(r,l)}u=false},length:function(){return s._tasks.length},running:function(){return i},workersList:function(){return o},idle:function(){return s._tasks.length+i===0},pause:function(){s.paused=true},resume:function(){if(s.paused===false){return}s.paused=false;a(s.process)}};return s}function cargo(e,r){return queue(e,1,r)}var yr=doLimit(eachOfLimit,1);function reduce(e,r,t,n){n=once(n||noop);var i=wrapAsync(t);yr(e,(function(e,t,n){i(r,e,(function(e,t){r=t;n(e)}))}),(function(e){n(e,r)}))}function seq(){var e=arrayMap(arguments,wrapAsync);return function(){var r=slice(arguments);var t=this;var n=r[r.length-1];if(typeof n=="function"){r.pop()}else{n=noop}reduce(e,r,(function(e,r,n){r.apply(t,e.concat((function(e){var r=slice(arguments,1);n(e,r)})))}),(function(e,r){n.apply(t,[e].concat(r))}))}}var compose=function(){return seq.apply(null,slice(arguments).reverse())};var dr=Array.prototype.concat;var concatLimit=function(e,r,t,n){n=n||noop;var i=wrapAsync(t);xe(e,r,(function(e,r){i(e,(function(e){if(e)return r(e);return r(null,slice(arguments,1))}))}),(function(e,r){var t=[];for(var i=0;i<r.length;i++){if(r[i]){t=dr.apply(t,r[i])}}return n(e,t)}))};var mr=doLimit(concatLimit,Infinity);var br=doLimit(concatLimit,1);var constant=function(){var e=slice(arguments);var r=[null].concat(e);return function(){var e=arguments[arguments.length-1];return e.apply(this,r)}};function identity(e){return e}function _createTester(e,r){return function(t,n,i,a){a=a||noop;var o=false;var c;t(n,(function(t,n,a){i(t,(function(n,i){if(n){a(n)}else if(e(i)&&!c){o=true;c=r(true,t);a(null,O)}else{a()}}))}),(function(e){if(e){a(e)}else{a(null,o?c:r(false))}}))}}function _findGetResult(e,r){return r}var gr=doParallel(_createTester(identity,_findGetResult));var Lr=doParallelLimit(_createTester(identity,_findGetResult));var kr=doLimit(Lr,1);function consoleFunc(e){return function(r){var t=slice(arguments,1);t.push((function(r){var t=slice(arguments,1);if(typeof console==="object"){if(r){if(console.error){console.error(r)}}else if(console[e]){arrayEach(t,(function(r){console[e](r)}))}}}));wrapAsync(r).apply(null,t)}}var wr=consoleFunc("dir");function doDuring(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(e);var i=wrapAsync(r);function next(e){if(e)return t(e);var r=slice(arguments,1);r.push(check);i.apply(this,r)}function check(e,r){if(e)return t(e);if(!r)return t(null);n(next)}check(null,true)}function doWhilst(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(e);var next=function(e){if(e)return t(e);var i=slice(arguments,1);if(r.apply(this,i))return n(next);t.apply(null,[null].concat(i))};n(next)}function doUntil(e,r,t){doWhilst(e,(function(){return!r.apply(this,arguments)}),t)}function during(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(r);var i=wrapAsync(e);function next(e){if(e)return t(e);i(check)}function check(e,r){if(e)return t(e);if(!r)return t(null);n(next)}i(check)}function _withoutIndex(e){return function(r,t,n){return e(r,n)}}function eachLimit(e,r,t){eachOf(e,_withoutIndex(wrapAsync(r)),t)}function eachLimit$1(e,r,t,n){_eachOfLimit(r)(e,_withoutIndex(wrapAsync(t)),n)}var Ar=doLimit(eachLimit$1,1);function ensureAsync(e){if(isAsync(e))return e;return initialParams((function(r,t){var n=true;r.push((function(){var e=arguments;if(n){a((function(){t.apply(null,e)}))}else{t.apply(null,e)}}));e.apply(this,r);n=false}))}function notId(e){return!e}var jr=doParallel(_createTester(notId,notId));var Or=doParallelLimit(_createTester(notId,notId));var Sr=doLimit(Or,1);function baseProperty(e){return function(r){return r==null?undefined:r[e]}}function filterArray(e,r,t,n){var i=new Array(r.length);e(r,(function(e,r,n){t(e,(function(e,t){i[r]=!!t;n(e)}))}),(function(e){if(e)return n(e);var t=[];for(var a=0;a<r.length;a++){if(i[a])t.push(r[a])}n(null,t)}))}function filterGeneric(e,r,t,n){var i=[];e(r,(function(e,r,n){t(e,(function(t,a){if(t){n(t)}else{if(a){i.push({index:r,value:e})}n()}}))}),(function(e){if(e){n(e)}else{n(null,arrayMap(i.sort((function(e,r){return e.index-r.index})),baseProperty("value")))}}))}function _filter(e,r,t,n){var i=isArrayLike(r)?filterArray:filterGeneric;i(e,r,wrapAsync(t),n||noop)}var Pr=doParallel(_filter);var xr=doParallelLimit(_filter);var _r=doLimit(xr,1);function forever(e,r){var t=onlyOnce(r||noop);var n=wrapAsync(ensureAsync(e));function next(e){if(e)return t(e);n(next)}next()}var groupByLimit=function(e,r,t,n){n=n||noop;var i=wrapAsync(t);xe(e,r,(function(e,r){i(e,(function(t,n){if(t)return r(t);return r(null,{key:n,val:e})}))}),(function(e,r){var t={};var i=Object.prototype.hasOwnProperty;for(var a=0;a<r.length;a++){if(r[a]){var o=r[a].key;var c=r[a].val;if(i.call(t,o)){t[o].push(c)}else{t[o]=[c]}}}return n(e,t)}))};var Er=doLimit(groupByLimit,Infinity);var Tr=doLimit(groupByLimit,1);var Ir=consoleFunc("log");function mapValuesLimit(e,r,t,n){n=once(n||noop);var i={};var a=wrapAsync(t);eachOfLimit(e,r,(function(e,r,t){a(e,r,(function(e,n){if(e)return t(e);i[r]=n;t()}))}),(function(e){n(e,i)}))}var Fr=doLimit(mapValuesLimit,Infinity);var Dr=doLimit(mapValuesLimit,1);function has(e,r){return r in e}function memoize(e,r){var t=Object.create(null);var n=Object.create(null);r=r||identity;var i=wrapAsync(e);var o=initialParams((function memoized(e,o){var c=r.apply(null,e);if(has(t,c)){a((function(){o.apply(null,t[c])}))}else if(has(n,c)){n[c].push(o)}else{n[c]=[o];i.apply(null,e.concat((function(){var e=slice(arguments);t[c]=e;var r=n[c];delete n[c];for(var i=0,a=r.length;i<a;i++){r[i].apply(null,e)}})))}}));o.memo=t;o.unmemoized=e;return o}var qr;if(n){qr=process.nextTick}else if(t){qr=setImmediate}else{qr=fallback}var Nr=wrap(qr);function _parallel(e,r,t){t=t||noop;var n=isArrayLike(r)?[]:{};e(r,(function(e,r,t){wrapAsync(e)((function(e,i){if(arguments.length>2){i=slice(arguments,1)}n[r]=i;t(e)}))}),(function(e){t(e,n)}))}function parallelLimit(e,r){_parallel(eachOf,e,r)}function parallelLimit$1(e,r,t){_parallel(_eachOfLimit(r),e,t)}var queue$1=function(e,r){var t=wrapAsync(e);return queue((function(e,r){t(e[0],r)}),r,1)};var priorityQueue=function(e,r){var t=queue$1(e,r);t.push=function(e,r,n){if(n==null)n=noop;if(typeof n!=="function"){throw new Error("task callback must be a function")}t.started=true;if(!I(e)){e=[e]}if(e.length===0){return a((function(){t.drain()}))}r=r||0;var i=t._tasks.head;while(i&&r>=i.priority){i=i.next}for(var o=0,c=e.length;o<c;o++){var u={data:e[o],priority:r,callback:n};if(i){t._tasks.insertBefore(i,u)}else{t._tasks.push(u)}}a(t.process)};delete t.unshift;return t};function race(e,r){r=once(r||noop);if(!I(e))return r(new TypeError("First argument to race must be an array of functions"));if(!e.length)return r();for(var t=0,n=e.length;t<n;t++){wrapAsync(e[t])(r)}}function reduceRight(e,r,t,n){var i=slice(e).reverse();reduce(i,r,t,n)}function reflect(e){var r=wrapAsync(e);return initialParams((function reflectOn(e,t){e.push((function callback(e,r){if(e){t(null,{error:e})}else{var n;if(arguments.length<=2){n=r}else{n=slice(arguments,1)}t(null,{value:n})}}));return r.apply(this,e)}))}function reflectAll(e){var r;if(I(e)){r=arrayMap(e,reflect)}else{r={};baseForOwn(e,(function(e,t){r[t]=reflect.call(this,e)}))}return r}function reject$1(e,r,t,n){_filter(e,r,(function(e,r){t(e,(function(e,t){r(e,!t)}))}),n)}var Br=doParallel(reject$1);var $r=doParallelLimit(reject$1);var Rr=doLimit($r,1);function constant$1(e){return function(){return e}}function retry(e,r,t){var n=5;var i=0;var a={times:n,intervalFunc:constant$1(i)};function parseTimes(e,r){if(typeof r==="object"){e.times=+r.times||n;e.intervalFunc=typeof r.interval==="function"?r.interval:constant$1(+r.interval||i);e.errorFilter=r.errorFilter}else if(typeof r==="number"||typeof r==="string"){e.times=+r||n}else{throw new Error("Invalid arguments for async.retry")}}if(arguments.length<3&&typeof e==="function"){t=r||noop;r=e}else{parseTimes(a,e);t=t||noop}if(typeof r!=="function"){throw new Error("Invalid arguments for async.retry")}var o=wrapAsync(r);var c=1;function retryAttempt(){o((function(e){if(e&&c++<a.times&&(typeof a.errorFilter!="function"||a.errorFilter(e))){setTimeout(retryAttempt,a.intervalFunc(c))}else{t.apply(null,arguments)}}))}retryAttempt()}var retryable=function(e,r){if(!r){r=e;e=null}var t=wrapAsync(r);return initialParams((function(r,n){function taskFn(e){t.apply(null,r.concat(e))}if(e)retry(e,taskFn,n);else retry(taskFn,n)}))};function series(e,r){_parallel(yr,e,r)}var Mr=doParallel(_createTester(Boolean,identity));var Cr=doParallelLimit(_createTester(Boolean,identity));var zr=doLimit(Cr,1);function sortBy(e,r,t){var n=wrapAsync(r);Se(e,(function(e,r){n(e,(function(t,n){if(t)return r(t);r(null,{value:e,criteria:n})}))}),(function(e,r){if(e)return t(e);t(null,arrayMap(r.sort(comparator),baseProperty("value")))}));function comparator(e,r){var t=e.criteria,n=r.criteria;return t<n?-1:t>n?1:0}}function timeout(e,r,t){var n=wrapAsync(e);return initialParams((function(i,a){var o=false;var c;function timeoutCallback(){var r=e.name||"anonymous";var n=new Error('Callback function "'+r+'" timed out.');n.code="ETIMEDOUT";if(t){n.info=t}o=true;a(n)}i.push((function(){if(!o){a.apply(null,arguments);clearTimeout(c)}}));c=setTimeout(timeoutCallback,r);n.apply(null,i)}))}var Ur=Math.ceil;var Vr=Math.max;function baseRange(e,r,t,n){var i=-1,a=Vr(Ur((r-e)/(t||1)),0),o=Array(a);while(a--){o[n?a:++i]=e;e+=t}return o}function timeLimit(e,r,t,n){var i=wrapAsync(t);xe(baseRange(0,e,1),r,i,n)}var Gr=doLimit(timeLimit,Infinity);var Hr=doLimit(timeLimit,1);function transform(e,r,t,n){if(arguments.length<=3){n=t;t=r;r=I(e)?[]:{}}n=once(n||noop);var i=wrapAsync(t);eachOf(e,(function(e,t,n){i(r,e,t,n)}),(function(e){n(e,r)}))}function tryEach(e,r){var t=null;var n;r=r||noop;Ar(e,(function(e,r){wrapAsync(e)((function(e,i){if(arguments.length>2){n=slice(arguments,1)}else{n=i}t=e;r(!e)}))}),(function(){r(t,n)}))}function unmemoize(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function whilst(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(r);if(!e())return t(null);var next=function(r){if(r)return t(r);if(e())return n(next);var i=slice(arguments,1);t.apply(null,[null].concat(i))};n(next)}function until(e,r,t){whilst((function(){return!e.apply(this,arguments)}),r,t)}var waterfall=function(e,r){r=once(r||noop);if(!I(e))return r(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return r();var t=0;function nextTask(r){var n=wrapAsync(e[t++]);r.push(onlyOnce(next));n.apply(null,r)}function next(n){if(n||t===e.length){return r.apply(null,arguments)}nextTask(slice(arguments,1))}nextTask([])};var Wr={apply:apply,applyEach:Pe,applyEachSeries:Ee,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo,compose:compose,concat:mr,concatLimit:concatLimit,concatSeries:br,constant:constant,detect:gr,detectLimit:Lr,detectSeries:kr,dir:wr,doDuring:doDuring,doUntil:doUntil,doWhilst:doWhilst,during:during,each:eachLimit,eachLimit:eachLimit$1,eachOf:eachOf,eachOfLimit:eachOfLimit,eachOfSeries:yr,eachSeries:Ar,ensureAsync:ensureAsync,every:jr,everyLimit:Or,everySeries:Sr,filter:Pr,filterLimit:xr,filterSeries:_r,forever:forever,groupBy:Er,groupByLimit:groupByLimit,groupBySeries:Tr,log:Ir,map:Se,mapLimit:xe,mapSeries:_e,mapValues:Fr,mapValuesLimit:mapValuesLimit,mapValuesSeries:Dr,memoize:memoize,nextTick:Nr,parallel:parallelLimit,parallelLimit:parallelLimit$1,priorityQueue:priorityQueue,queue:queue$1,race:race,reduce:reduce,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:Br,rejectLimit:$r,rejectSeries:Rr,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:a,some:Mr,someLimit:Cr,someSeries:zr,sortBy:sortBy,timeout:timeout,times:Gr,timesLimit:timeLimit,timesSeries:Hr,transform:transform,tryEach:tryEach,unmemoize:unmemoize,until:until,waterfall:waterfall,whilst:whilst,all:jr,allLimit:Or,allSeries:Sr,any:Mr,anyLimit:Cr,anySeries:zr,find:gr,findLimit:Lr,findSeries:kr,forEach:eachLimit,forEachSeries:Ar,forEachLimit:eachLimit$1,forEachOf:eachOf,forEachOfSeries:yr,forEachOfLimit:eachOfLimit,inject:reduce,foldl:reduce,foldr:reduceRight,select:Pr,selectLimit:xr,selectSeries:_r,wrapSync:asyncify};r["default"]=Wr;r.apply=apply;r.applyEach=Pe;r.applyEachSeries=Ee;r.asyncify=asyncify;r.auto=auto;r.autoInject=autoInject;r.cargo=cargo;r.compose=compose;r.concat=mr;r.concatLimit=concatLimit;r.concatSeries=br;r.constant=constant;r.detect=gr;r.detectLimit=Lr;r.detectSeries=kr;r.dir=wr;r.doDuring=doDuring;r.doUntil=doUntil;r.doWhilst=doWhilst;r.during=during;r.each=eachLimit;r.eachLimit=eachLimit$1;r.eachOf=eachOf;r.eachOfLimit=eachOfLimit;r.eachOfSeries=yr;r.eachSeries=Ar;r.ensureAsync=ensureAsync;r.every=jr;r.everyLimit=Or;r.everySeries=Sr;r.filter=Pr;r.filterLimit=xr;r.filterSeries=_r;r.forever=forever;r.groupBy=Er;r.groupByLimit=groupByLimit;r.groupBySeries=Tr;r.log=Ir;r.map=Se;r.mapLimit=xe;r.mapSeries=_e;r.mapValues=Fr;r.mapValuesLimit=mapValuesLimit;r.mapValuesSeries=Dr;r.memoize=memoize;r.nextTick=Nr;r.parallel=parallelLimit;r.parallelLimit=parallelLimit$1;r.priorityQueue=priorityQueue;r.queue=queue$1;r.race=race;r.reduce=reduce;r.reduceRight=reduceRight;r.reflect=reflect;r.reflectAll=reflectAll;r.reject=Br;r.rejectLimit=$r;r.rejectSeries=Rr;r.retry=retry;r.retryable=retryable;r.seq=seq;r.series=series;r.setImmediate=a;r.some=Mr;r.someLimit=Cr;r.someSeries=zr;r.sortBy=sortBy;r.timeout=timeout;r.times=Gr;r.timesLimit=timeLimit;r.timesSeries=Hr;r.transform=transform;r.tryEach=tryEach;r.unmemoize=unmemoize;r.until=until;r.waterfall=waterfall;r.whilst=whilst;r.all=jr;r.allLimit=Or;r.allSeries=Sr;r.any=Mr;r.anyLimit=Cr;r.anySeries=zr;r.find=gr;r.findLimit=Lr;r.findSeries=kr;r.forEach=eachLimit;r.forEachSeries=Ar;r.forEachLimit=eachLimit$1;r.forEachOf=eachOf;r.forEachOfSeries=yr;r.forEachOfLimit=eachOfLimit;r.inject=reduce;r.foldl=reduce;r.foldr=reduceRight;r.select=Pr;r.selectLimit=xr;r.selectSeries=_r;r.wrapSync=asyncify;Object.defineProperty(r,"__esModule",{value:true})}))},528:function(e,r,t){var n=t(17);var i=t(147);var a=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,r,t,o){if(typeof r==="function"){t=r;r={}}else if(!r||typeof r!=="object"){r={mode:r}}var c=r.mode;var u=r.fs||i;if(c===undefined){c=a}if(!o)o=null;var s=t||function(){};e=n.resolve(e);u.mkdir(e,c,(function(t){if(!t){o=o||e;return s(null,o)}switch(t.code){case"ENOENT":if(n.dirname(e)===e)return s(t);mkdirP(n.dirname(e),r,(function(t,n){if(t)s(t,n);else mkdirP(e,r,s,n)}));break;default:u.stat(e,(function(e,r){if(e||!r.isDirectory())s(t,o);else s(null,o)}));break}}))}mkdirP.sync=function sync(e,r,t){if(!r||typeof r!=="object"){r={mode:r}}var o=r.mode;var c=r.fs||i;if(o===undefined){o=a}if(!t)t=null;e=n.resolve(e);try{c.mkdirSync(e,o);t=t||e}catch(i){switch(i.code){case"ENOENT":t=sync(n.dirname(e),r,t);sync(e,r,t);break;default:var u;try{u=c.statSync(e)}catch(e){throw i}if(!u.isDirectory())throw i;break}}return t}},556:function(e,r,t){"use strict";var n=t(147),i=t(37),a=t(808),o=t(17),c=t(620),u=t(755),s=t(528).mkdirp;var l=u("portfinder:testPort"),f=u("portfinder:getPort"),p=u("portfinder:defaultHosts");var v={};v.testPort=function(e,t){if(!t){t=e;e={}}e.server=e.server||a.createServer((function(){}));l("entered testPort(): trying",e.host,"port",e.port);function onListen(){l("done w/ testPort(): OK",e.host,"port",e.port);e.server.removeListener("error",onError);e.server.close();t(null,e.port)}function onError(n){l("done w/ testPort(): failed",e.host,"w/ port",e.port,"with error",n.code);e.server.removeListener("listening",onListen);if(!(n.code=="EADDRINUSE"||n.code=="EACCES")){return t(n)}var i=r.nextPort(e.port);if(i>r.highestPort){return t(new Error("No open ports available"))}v.testPort({port:i,host:e.host,server:e.server},t)}e.server.once("error",onError);e.server.once("listening",onListen);if(e.host){e.server.listen(e.port,e.host)}else{e.server.listen(e.port)}};r.basePort=8e3;r.setBasePort=function(e){r.basePort=e};r.highestPort=65535;r.setHighestPort=function(e){r.highestPort=e};r.basePath="/tmp/portfinder";r.getPort=function(e,t){if(!t){t=e;e={}}e.port=Number(e.port)||Number(r.basePort);e.host=e.host||null;e.stopPort=Number(e.stopPort)||Number(r.highestPort);if(!e.startPort){e.startPort=Number(e.port);if(e.startPort<0){throw Error("Provided options.startPort("+e.startPort+") is less than 0, which are cannot be bound.")}if(e.stopPort<e.startPort){throw Error("Provided options.stopPort("+e.stopPort+"is less than options.startPort ("+e.startPort+")")}}if(e.host){if(r._defaultHosts.indexOf(e.host)!==-1){r._defaultHosts.push(e.host)}}var n=[],i;return c.eachSeries(r._defaultHosts,(function(r,t){f("in eachSeries() iteration callback: host is",r);return v.testPort({host:r,port:e.port},(function(e,a){if(e){f("in eachSeries() iteration callback testPort() callback","with an err:",e.code);i=r;return t(e)}else{f("in eachSeries() iteration callback testPort() callback","with a success for port",a);n.push(a);return t()}}))}),(function(a){if(a){f("in eachSeries() result callback: err is",a);if(a.code==="EADDRNOTAVAIL"||a.code==="EINVAL"){if(e.host===i){var o="Provided host "+e.host+" could NOT be bound. Please provide a different host address or hostname";return t(Error(o))}else{var c=r._defaultHosts.indexOf(i);r._defaultHosts.splice(c,1);return r.getPort(e,t)}}else{return t(a)}}n.sort((function(e,r){return e-r}));f("in eachSeries() result callback: openPorts is",n);if(n[0]===n[n.length-1]){if(n[0]<=e.stopPort){return t(null,n[0])}else{var o="No open ports found in between "+e.startPort+" and "+e.stopPort;return t(Error(o))}}else{return r.getPort({port:n.pop(),host:e.host,startPort:e.startPort,stopPort:e.stopPort},t)}}))};r.getPortPromise=function(e){if(typeof Promise!=="function"){throw Error("Native promise support is not available in this version of node."+"Please install a polyfill and assign Promise to global.Promise before calling this method")}if(!e){e={}}return new Promise((function(t,n){r.getPort(e,(function(e,r){if(e){return n(e)}t(r)}))}))};r.getPorts=function(e,t,n){if(!n){n=t;t={}}var i=null;c.timesSeries(e,(function(e,n){if(i){t.port=r.nextPort(i)}r.getPort(t,(function(e,r){if(e){n(e)}else{i=r;n(null,r)}}))}),n)};r.getSocket=function(e,t){if(!t){t=e;e={}}e.mod=e.mod||parseInt(755,8);e.path=e.path||r.basePath+".sock";function testSocket(){n.stat(e.path,(function(n){if(n){if(n.code=="ENOENT"){t(null,e.path)}else{t(n)}}else{e.path=r.nextSocket(e.path);r.getSocket(e,t)}}))}function createAndTestSocket(r){s(r,e.mod,(function(r){if(r){return t(r)}e.exists=true;testSocket()}))}function checkAndTestSocket(){var r=o.dirname(e.path);n.stat(r,(function(t,n){if(t||!n.isDirectory()){return createAndTestSocket(r)}e.exists=true;testSocket()}))}return e.exists?testSocket():checkAndTestSocket()};r.nextPort=function(e){return e+1};r.nextSocket=function(e){var r=o.dirname(e),t=o.basename(e,".sock"),n=t.match(/^([a-zA-z]+)(\d*)$/i),i=parseInt(n[2]),a=n[1];if(isNaN(i)){i=0}i+=1;return o.join(r,a+i+".sock")};r._defaultHosts=function(){var e={};try{e=i.networkInterfaces()}catch(e){if(e.syscall==="uv_interface_addresses"){}else{throw e}}var r=Object.keys(e),t="0.0.0.0",n=[t];for(var a=0;a<r.length;a++){var o=e[r[a]];for(var c=0;c<o.length;c++){var u=o[c];n.push(u.address)}}n.push(null);p("exports._defaultHosts is: %o",n);return n}()},755:function(e){"use strict";e.exports=require("@umijs/utils/compiled/debug")},147:function(e){"use strict";e.exports=require("fs")},808:function(e){"use strict";e.exports=require("net")},37:function(e){"use strict";e.exports=require("os")},17:function(e){"use strict";e.exports=require("path")}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var i=r[t]={id:t,loaded:false,exports:{}};var a=true;try{e[t].call(i.exports,i,i.exports,__nccwpck_require__);a=false}finally{if(a)delete r[t]}i.loaded=true;return i.exports}!function(){__nccwpck_require__.nmd=function(e){e.paths=[];if(!e.children)e.children=[];return e}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(556);module.exports=t})();
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
type PortfinderCallback = (err: Error, port: number) => void;
|
|
8
8
|
|
|
9
|
-
interface PortFinderOptions{
|
|
9
|
+
interface PortFinderOptions {
|
|
10
10
|
/**
|
|
11
11
|
* Host to find available port on.
|
|
12
12
|
*/
|
|
@@ -33,6 +33,21 @@ interface PortFinderOptions{
|
|
|
33
33
|
*/
|
|
34
34
|
export let basePort: number;
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Set the lowest port to begin any port search from.
|
|
38
|
+
*/
|
|
39
|
+
export function setBasePort(port: number): void;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The highest port to end any port search from.
|
|
43
|
+
*/
|
|
44
|
+
export let highestPort: number;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Set the higheset port to end any port search from.
|
|
48
|
+
*/
|
|
49
|
+
export function setHighestPort(port: number): void;
|
|
50
|
+
|
|
36
51
|
/**
|
|
37
52
|
* Responds with a unbound port on the current machine.
|
|
38
53
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"portfinder","author":"Charlie Robbins <charlie.robbins@gmail.com>","license":"MIT","types":"./lib/portfinder.d.ts"}
|
|
1
|
+
{"name":"portfinder","version":"1.0.32","author":"Charlie Robbins <charlie.robbins@gmail.com>","license":"MIT","types":"./lib/portfinder.d.ts"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){var e={46:function(e){"use strict";var r="Function.prototype.bind called on incompatible ";var t=Array.prototype.slice;var n=Object.prototype.toString;var o="[object Function]";e.exports=function bind(e){var a=this;if(typeof a!=="function"||n.call(a)!==o){throw new TypeError(r+a)}var i=t.call(arguments,1);var s;var binder=function(){if(this instanceof s){var r=a.apply(this,i.concat(t.call(arguments)));if(Object(r)===r){return r}return this}else{return a.apply(e,i.concat(t.call(arguments)))}};var u=Math.max(0,a.length-i.length);var l=[];for(var c=0;c<u;c++){l.push("$"+c)}s=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(binder);if(a.prototype){var f=function Empty(){};f.prototype=a.prototype;s.prototype=new f;f.prototype=null}return s}},766:function(e,r,t){"use strict";var n=t(46);e.exports=Function.prototype.bind||n},213:function(e,r,t){"use strict";var n=t(766);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},137:function(e,r,t){"use strict";var n=t(213);function specifierIncluded(e,r){var t=e.split(".");var n=r.split(" ");var o=n.length>1?n[0]:"=";var a=(n.length>1?n[1]:n[0]).split(".");for(var i=0;i<3;++i){var s=parseInt(t[i]||0,10);var u=parseInt(a[i]||0,10);if(s===u){continue}if(o==="<"){return s<u}if(o===">="){return s>=u}return false}return o===">="}function matchesRange(e,r){var t=r.split(/ ?&& ?/);if(t.length===0){return false}for(var n=0;n<t.length;++n){if(!specifierIncluded(e,t[n])){return false}}return true}function versionIncluded(e,r){if(typeof r==="boolean"){return r}var t=typeof e==="undefined"?process.versions&&process.versions.node:e;if(typeof t!=="string"){throw new TypeError(typeof e==="undefined"?"Unable to determine current node version":"If provided, a valid node version is required")}if(r&&typeof r==="object"){for(var n=0;n<r.length;++n){if(matchesRange(t,r[n])){return true}}return false}return matchesRange(t,r)}var o=t(290);e.exports=function isCore(e,r){return n(o,e)&&versionIncluded(r,o[e])}},85:function(e){"use strict";var r=process.platform==="win32";var t=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/;var n={};function win32SplitPath(e){return t.exec(e).slice(1)}n.parse=function(e){if(typeof e!=="string"){throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e)}var r=win32SplitPath(e);if(!r||r.length!==5){throw new TypeError("Invalid path '"+e+"'")}return{root:r[1],dir:r[0]===r[1]?r[0]:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}};var o=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/;var a={};function posixSplitPath(e){return o.exec(e).slice(1)}a.parse=function(e){if(typeof e!=="string"){throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e)}var r=posixSplitPath(e);if(!r||r.length!==5){throw new TypeError("Invalid path '"+e+"'")}return{root:r[1],dir:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}};if(r)e.exports=n.parse;else e.exports=a.parse;e.exports.posix=a.parse;e.exports.win32=n.parse},259:function(e,r,t){var n=t(780);n.core=t(921);n.isCore=t(969);n.sync=t(26);e.exports=n},780:function(e,r,t){var n=t(747);var o=t(622);var a=t(735);var i=t(850);var s=t(807);var u=t(137);var l=n.realpath&&typeof n.realpath.native==="function"?n.realpath.native:n.realpath;var c=function isFile(e,r){n.stat(e,(function(e,t){if(!e){return r(null,t.isFile()||t.isFIFO())}if(e.code==="ENOENT"||e.code==="ENOTDIR")return r(null,false);return r(e)}))};var f=function isDirectory(e,r){n.stat(e,(function(e,t){if(!e){return r(null,t.isDirectory())}if(e.code==="ENOENT"||e.code==="ENOTDIR")return r(null,false);return r(e)}))};var p=function realpath(e,r){l(e,(function(t,n){if(t&&t.code!=="ENOENT")r(t);else r(null,t?e:n)}))};var d=function maybeRealpath(e,r,t,n){if(t&&t.preserveSymlinks===false){e(r,n)}else{n(null,r)}};var v=function defaultReadPackage(e,r,t){e(r,(function(e,r){if(e)t(e);else{try{var n=JSON.parse(r);t(null,n)}catch(e){t(null)}}}))};var _=function getPackageCandidates(e,r,t){var n=i(r,t,e);for(var a=0;a<n.length;a++){n[a]=o.join(n[a],e)}return n};e.exports=function resolve(e,r,t){var i=t;var l=r;if(typeof r==="function"){i=l;l={}}if(typeof e!=="string"){var m=new TypeError("Path must be a string.");return process.nextTick((function(){i(m)}))}l=s(e,l);var h=l.isFile||c;var y=l.isDirectory||f;var g=l.readFile||n.readFile;var k=l.realpath||p;var w=l.readPackage||v;if(l.readFile&&l.readPackage){var b=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick((function(){i(b)}))}var x=l.packageIterator;var F=l.extensions||[".js"];var S=l.includeCoreModules!==false;var E=l.basedir||o.dirname(a());var N=l.filename||E;l.paths=l.paths||[];var A=o.resolve(E);d(k,A,l,(function(e,r){if(e)i(e);else init(r)}));var D;function init(r){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){D=o.resolve(r,e);if(e==="."||e===".."||e.slice(-1)==="/")D+="/";if(/\/$/.test(e)&&D===r){loadAsDirectory(D,l.package,onfile)}else loadAsFile(D,l.package,onfile)}else if(S&&u(e)){return i(null,e)}else loadNodeModules(e,r,(function(r,t,n){if(r)i(r);else if(t){return d(k,t,l,(function(e,r){if(e){i(e)}else{i(null,r,n)}}))}else{var o=new Error("Cannot find module '"+e+"' from '"+N+"'");o.code="MODULE_NOT_FOUND";i(o)}}))}function onfile(r,t,n){if(r)i(r);else if(t)i(null,t,n);else loadAsDirectory(D,(function(r,t,n){if(r)i(r);else if(t){d(k,t,l,(function(e,r){if(e){i(e)}else{i(null,r,n)}}))}else{var o=new Error("Cannot find module '"+e+"' from '"+N+"'");o.code="MODULE_NOT_FOUND";i(o)}}))}function loadAsFile(e,r,t){var n=r;var a=t;if(typeof n==="function"){a=n;n=undefined}var i=[""].concat(F);load(i,e,n);function load(e,r,t){if(e.length===0)return a(null,undefined,t);var n=r+e[0];var i=t;if(i)onpkg(null,i);else loadpkg(o.dirname(n),onpkg);function onpkg(t,s,u){i=s;if(t)return a(t);if(u&&i&&l.pathFilter){var c=o.relative(u,n);var f=c.slice(0,c.length-e[0].length);var p=l.pathFilter(i,r,f);if(p)return load([""].concat(F.slice()),o.resolve(u,p),i)}h(n,onex)}function onex(t,o){if(t)return a(t);if(o)return a(null,n,i);load(e.slice(1),r,i)}}}function loadpkg(e,r){if(e===""||e==="/")return r(null);if(process.platform==="win32"&&/^\w:[/\\]*$/.test(e)){return r(null)}if(/[/\\]node_modules[/\\]*$/.test(e))return r(null);d(k,e,l,(function(t,n){if(t)return loadpkg(o.dirname(e),r);var a=o.join(n,"package.json");h(a,(function(t,n){if(!n)return loadpkg(o.dirname(e),r);w(g,a,(function(t,n){if(t)r(t);var o=n;if(o&&l.packageFilter){o=l.packageFilter(o,a)}r(null,o,e)}))}))}))}function loadAsDirectory(e,r,t){var n=t;var a=r;if(typeof a==="function"){n=a;a=l.package}d(k,e,l,(function(r,t){if(r)return n(r);var i=o.join(t,"package.json");h(i,(function(r,t){if(r)return n(r);if(!t)return loadAsFile(o.join(e,"index"),a,n);w(g,i,(function(r,t){if(r)return n(r);var a=t;if(a&&l.packageFilter){a=l.packageFilter(a,i)}if(a&&a.main){if(typeof a.main!=="string"){var s=new TypeError("package “"+a.name+"” `main` must be a string");s.code="INVALID_PACKAGE_MAIN";return n(s)}if(a.main==="."||a.main==="./"){a.main="index"}loadAsFile(o.resolve(e,a.main),a,(function(r,t,a){if(r)return n(r);if(t)return n(null,t,a);if(!a)return loadAsFile(o.join(e,"index"),a,n);var i=o.resolve(e,a.main);loadAsDirectory(i,a,(function(r,t,a){if(r)return n(r);if(t)return n(null,t,a);loadAsFile(o.join(e,"index"),a,n)}))}));return}loadAsFile(o.join(e,"/index"),a,n)}))}))}))}function processDirs(e,r){if(r.length===0)return e(null,undefined);var t=r[0];y(o.dirname(t),isdir);function isdir(n,o){if(n)return e(n);if(!o)return processDirs(e,r.slice(1));loadAsFile(t,l.package,onfile)}function onfile(r,n,o){if(r)return e(r);if(n)return e(null,n,o);loadAsDirectory(t,l.package,ondir)}function ondir(t,n,o){if(t)return e(t);if(n)return e(null,n,o);processDirs(e,r.slice(1))}}function loadNodeModules(e,r,t){var thunk=function(){return _(e,r,l)};processDirs(t,x?x(e,r,thunk,l):thunk())}}},735:function(e){e.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(e,r){return r};var r=(new Error).stack;Error.prepareStackTrace=e;return r[2].getFileName()}},921:function(e,r,t){var n=process.versions&&process.versions.node&&process.versions.node.split(".")||[];function specifierIncluded(e){var r=e.split(" ");var t=r.length>1?r[0]:"=";var o=(r.length>1?r[1]:r[0]).split(".");for(var a=0;a<3;++a){var i=parseInt(n[a]||0,10);var s=parseInt(o[a]||0,10);if(i===s){continue}if(t==="<"){return i<s}else if(t===">="){return i>=s}else{return false}}return t===">="}function matchesRange(e){var r=e.split(/ ?&& ?/);if(r.length===0){return false}for(var t=0;t<r.length;++t){if(!specifierIncluded(r[t])){return false}}return true}function versionIncluded(e){if(typeof e==="boolean"){return e}if(e&&typeof e==="object"){for(var r=0;r<e.length;++r){if(matchesRange(e[r])){return true}}return false}return matchesRange(e)}var o=t(680);var a={};for(var i in o){if(Object.prototype.hasOwnProperty.call(o,i)){a[i]=versionIncluded(o[i])}}e.exports=a},969:function(e,r,t){var n=t(137);e.exports=function isCore(e){return n(e)}},850:function(e,r,t){var n=t(622);var o=n.parse||t(85);var a=function getNodeModulesDirs(e,r){var t="/";if(/^([A-Za-z]:)/.test(e)){t=""}else if(/^\\\\/.test(e)){t="\\\\"}var a=[e];var i=o(e);while(i.dir!==a[a.length-1]){a.push(i.dir);i=o(i.dir)}return a.reduce((function(e,o){return e.concat(r.map((function(e){return n.resolve(t,o,e)})))}),[])};e.exports=function nodeModulesPaths(e,r,t){var n=r&&r.moduleDirectory?[].concat(r.moduleDirectory):["node_modules"];if(r&&typeof r.paths==="function"){return r.paths(t,e,(function(){return a(e,n)}),r)}var o=a(e,n);return r&&r.paths?o.concat(r.paths):o}},807:function(e){e.exports=function(e,r){return r||{}}},26:function(e,r,t){var n=t(137);var o=t(747);var a=t(622);var i=t(735);var s=t(850);var u=t(807);var l=o.realpathSync&&typeof o.realpathSync.native==="function"?o.realpathSync.native:o.realpathSync;var c=function isFile(e){try{var r=o.statSync(e)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR"))return false;throw e}return r.isFile()||r.isFIFO()};var f=function isDirectory(e){try{var r=o.statSync(e)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR"))return false;throw e}return r.isDirectory()};var p=function realpathSync(e){try{return l(e)}catch(e){if(e.code!=="ENOENT"){throw e}}return e};var d=function maybeRealpathSync(e,r,t){if(t&&t.preserveSymlinks===false){return e(r)}return r};var v=function defaultReadPackageSync(e,r){var t=e(r);try{var n=JSON.parse(t);return n}catch(e){}};var _=function getPackageCandidates(e,r,t){var n=s(r,t,e);for(var o=0;o<n.length;o++){n[o]=a.join(n[o],e)}return n};e.exports=function resolveSync(e,r){if(typeof e!=="string"){throw new TypeError("Path must be a string.")}var t=u(e,r);var s=t.isFile||c;var l=t.readFileSync||o.readFileSync;var m=t.isDirectory||f;var h=t.realpathSync||p;var y=t.readPackageSync||v;if(t.readFileSync&&t.readPackageSync){throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.")}var g=t.packageIterator;var k=t.extensions||[".js"];var w=t.includeCoreModules!==false;var b=t.basedir||a.dirname(i());var x=t.filename||b;t.paths=t.paths||[];var F=d(h,a.resolve(b),t);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var S=a.resolve(F,e);if(e==="."||e===".."||e.slice(-1)==="/")S+="/";var E=loadAsFileSync(S)||loadAsDirectorySync(S);if(E)return d(h,E,t)}else if(w&&n(e)){return e}else{var N=loadNodeModulesSync(e,F);if(N)return d(h,N,t)}var A=new Error("Cannot find module '"+e+"' from '"+x+"'");A.code="MODULE_NOT_FOUND";throw A;function loadAsFileSync(e){var r=loadpkg(a.dirname(e));if(r&&r.dir&&r.pkg&&t.pathFilter){var n=a.relative(r.dir,e);var o=t.pathFilter(r.pkg,e,n);if(o){e=a.resolve(r.dir,o)}}if(s(e)){return e}for(var i=0;i<k.length;i++){var u=e+k[i];if(s(u)){return u}}}function loadpkg(e){if(e===""||e==="/")return;if(process.platform==="win32"&&/^\w:[/\\]*$/.test(e)){return}if(/[/\\]node_modules[/\\]*$/.test(e))return;var r=a.join(d(h,e,t),"package.json");if(!s(r)){return loadpkg(a.dirname(e))}var n=y(l,r);if(n&&t.packageFilter){n=t.packageFilter(n,e)}return{pkg:n,dir:e}}function loadAsDirectorySync(e){var r=a.join(d(h,e,t),"/package.json");if(s(r)){try{var n=y(l,r)}catch(e){}if(n&&t.packageFilter){n=t.packageFilter(n,e)}if(n&&n.main){if(typeof n.main!=="string"){var o=new TypeError("package “"+n.name+"” `main` must be a string");o.code="INVALID_PACKAGE_MAIN";throw o}if(n.main==="."||n.main==="./"){n.main="index"}try{var i=loadAsFileSync(a.resolve(e,n.main));if(i)return i;var u=loadAsDirectorySync(a.resolve(e,n.main));if(u)return u}catch(e){}}}return loadAsFileSync(a.join(e,"/index"))}function loadNodeModulesSync(e,r){var thunk=function(){return _(e,r,t)};var n=g?g(e,r,thunk,t):thunk();for(var o=0;o<n.length;o++){var i=n[o];if(m(a.dirname(i))){var s=loadAsFileSync(i);if(s)return s;var u=loadAsDirectorySync(i);if(u)return u}}}}},290:function(e){"use strict";e.exports=JSON.parse('{"assert":true,"node:assert":">= 16","assert/strict":">= 15","node:assert/strict":">= 16","async_hooks":">= 8","node:async_hooks":">= 16","buffer_ieee754":"< 0.9.7","buffer":true,"node:buffer":">= 16","child_process":true,"node:child_process":">= 16","cluster":true,"node:cluster":">= 16","console":true,"node:console":">= 16","constants":true,"node:constants":">= 16","crypto":true,"node:crypto":">= 16","_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"node:dgram":">= 16","diagnostics_channel":[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":">= 16","dns":true,"node:dns":">= 16","dns/promises":">= 15","node:dns/promises":">= 16","domain":">= 0.7.12","node:domain":">= 16","events":true,"node:events":">= 16","freelist":"< 6","fs":true,"node:fs":">= 16","fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":">= 16","_http_agent":">= 0.11.1","node:_http_agent":">= 16","_http_client":">= 0.11.1","node:_http_client":">= 16","_http_common":">= 0.11.1","node:_http_common":">= 16","_http_incoming":">= 0.11.1","node:_http_incoming":">= 16","_http_outgoing":">= 0.11.1","node:_http_outgoing":">= 16","_http_server":">= 0.11.1","node:_http_server":">= 16","http":true,"node:http":">= 16","http2":">= 8.8","node:http2":">= 16","https":true,"node:https":">= 16","inspector":">= 8","node:inspector":">= 16","_linklist":"< 8","module":true,"node:module":">= 16","net":true,"node:net":">= 16","node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12","os":true,"node:os":">= 16","path":true,"node:path":">= 16","path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16","perf_hooks":">= 8.5","node:perf_hooks":">= 16","process":">= 1","node:process":">= 16","punycode":true,"node:punycode":">= 16","querystring":true,"node:querystring":">= 16","readline":true,"node:readline":">= 16","repl":true,"node:repl":">= 16","smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","node:_stream_duplex":">= 16","_stream_transform":">= 0.9.4","node:_stream_transform":">= 16","_stream_wrap":">= 1.4.1","node:_stream_wrap":">= 16","_stream_passthrough":">= 0.9.4","node:_stream_passthrough":">= 16","_stream_readable":">= 0.9.4","node:_stream_readable":">= 16","_stream_writable":">= 0.9.4","node:_stream_writable":">= 16","stream":true,"node:stream":">= 16","stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5","string_decoder":true,"node:string_decoder":">= 16","sys":[">= 0.6 && < 0.7",">= 0.8"],"node:sys":">= 16","timers":true,"node:timers":">= 16","timers/promises":">= 15","node:timers/promises":">= 16","_tls_common":">= 0.11.13","node:_tls_common":">= 16","_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","node:_tls_wrap":">= 16","tls":true,"node:tls":">= 16","trace_events":">= 10","node:trace_events":">= 16","tty":true,"node:tty":">= 16","url":true,"node:url":">= 16","util":true,"node:util":">= 16","util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8":">= 1","node:v8":">= 16","vm":true,"node:vm":">= 16","wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","node:worker_threads":">= 16","zlib":true,"node:zlib":">= 16"}')},680:function(e){"use strict";e.exports=JSON.parse('{"assert":true,"assert/strict":">= 15","async_hooks":">= 8","buffer_ieee754":"< 0.9.7","buffer":true,"child_process":true,"cluster":true,"console":true,"constants":true,"crypto":true,"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"diagnostics_channel":">= 15.1","dns":true,"dns/promises":">= 15","domain":">= 0.7.12","events":true,"freelist":"< 6","fs":true,"fs/promises":[">= 10 && < 10.1",">= 14"],"_http_agent":">= 0.11.1","_http_client":">= 0.11.1","_http_common":">= 0.11.1","_http_incoming":">= 0.11.1","_http_outgoing":">= 0.11.1","_http_server":">= 0.11.1","http":true,"http2":">= 8.8","https":true,"inspector":">= 8.0.0","_linklist":"< 8","module":true,"net":true,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12","os":true,"path":true,"path/posix":">= 15.3","path/win32":">= 15.3","perf_hooks":">= 8.5","process":">= 1","punycode":true,"querystring":true,"readline":true,"repl":true,"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","_stream_transform":">= 0.9.4","_stream_wrap":">= 1.4.1","_stream_passthrough":">= 0.9.4","_stream_readable":">= 0.9.4","_stream_writable":">= 0.9.4","stream":true,"stream/promises":">= 15","string_decoder":true,"sys":[">= 0.6 && < 0.7",">= 0.8"],"timers":true,"timers/promises":">= 15","_tls_common":">= 0.11.13","_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","tls":true,"trace_events":">= 10","tty":true,"url":true,"util":true,"util/types":">= 15.3","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8":">= 1","vm":true,"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","zlib":true}')},747:function(e){"use strict";e.exports=require("fs")},622:function(e){"use strict";e.exports=require("path")}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var o=r[t]={exports:{}};var a=true;try{e[t](o,o.exports,__nccwpck_require__);a=false}finally{if(a)delete r[t]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(259);module.exports=t})();
|
|
1
|
+
(function(){var e={506:function(e){"use strict";var r="Function.prototype.bind called on incompatible ";var t=Array.prototype.slice;var n=Object.prototype.toString;var o="[object Function]";e.exports=function bind(e){var a=this;if(typeof a!=="function"||n.call(a)!==o){throw new TypeError(r+a)}var i=t.call(arguments,1);var s;var binder=function(){if(this instanceof s){var r=a.apply(this,i.concat(t.call(arguments)));if(Object(r)===r){return r}return this}else{return a.apply(e,i.concat(t.call(arguments)))}};var l=Math.max(0,a.length-i.length);var u=[];for(var c=0;c<l;c++){u.push("$"+c)}s=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(binder);if(a.prototype){var d=function Empty(){};d.prototype=a.prototype;s.prototype=new d;d.prototype=null}return s}},483:function(e,r,t){"use strict";var n=t(506);e.exports=Function.prototype.bind||n},209:function(e,r,t){"use strict";var n=t(483);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},895:function(e,r,t){"use strict";var n=t(209);function specifierIncluded(e,r){var t=e.split(".");var n=r.split(" ");var o=n.length>1?n[0]:"=";var a=(n.length>1?n[1]:n[0]).split(".");for(var i=0;i<3;++i){var s=parseInt(t[i]||0,10);var l=parseInt(a[i]||0,10);if(s===l){continue}if(o==="<"){return s<l}if(o===">="){return s>=l}return false}return o===">="}function matchesRange(e,r){var t=r.split(/ ?&& ?/);if(t.length===0){return false}for(var n=0;n<t.length;++n){if(!specifierIncluded(e,t[n])){return false}}return true}function versionIncluded(e,r){if(typeof r==="boolean"){return r}var t=typeof e==="undefined"?process.versions&&process.versions.node:e;if(typeof t!=="string"){throw new TypeError(typeof e==="undefined"?"Unable to determine current node version":"If provided, a valid node version is required")}if(r&&typeof r==="object"){for(var n=0;n<r.length;++n){if(matchesRange(t,r[n])){return true}}return false}return matchesRange(t,r)}var o=t(650);e.exports=function isCore(e,r){return n(o,e)&&versionIncluded(r,o[e])}},878:function(e){"use strict";var r=process.platform==="win32";var t=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/;var n={};function win32SplitPath(e){return t.exec(e).slice(1)}n.parse=function(e){if(typeof e!=="string"){throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e)}var r=win32SplitPath(e);if(!r||r.length!==5){throw new TypeError("Invalid path '"+e+"'")}return{root:r[1],dir:r[0]===r[1]?r[0]:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}};var o=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/;var a={};function posixSplitPath(e){return o.exec(e).slice(1)}a.parse=function(e){if(typeof e!=="string"){throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e)}var r=posixSplitPath(e);if(!r||r.length!==5){throw new TypeError("Invalid path '"+e+"'")}return{root:r[1],dir:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}};if(r)e.exports=n.parse;else e.exports=a.parse;e.exports.posix=a.parse;e.exports.win32=n.parse},344:function(e,r,t){var n=t(787);n.core=t(0);n.isCore=t(821);n.sync=t(332);e.exports=n},787:function(e,r,t){var n=t(147);var o=t(60);var a=t(17);var i=t(744);var s=t(865);var l=t(338);var u=t(895);var c=n.realpath&&typeof n.realpath.native==="function"?n.realpath.native:n.realpath;var d=o();var defaultPaths=function(){return[a.join(d,".node_modules"),a.join(d,".node_libraries")]};var p=function isFile(e,r){n.stat(e,(function(e,t){if(!e){return r(null,t.isFile()||t.isFIFO())}if(e.code==="ENOENT"||e.code==="ENOTDIR")return r(null,false);return r(e)}))};var f=function isDirectory(e,r){n.stat(e,(function(e,t){if(!e){return r(null,t.isDirectory())}if(e.code==="ENOENT"||e.code==="ENOTDIR")return r(null,false);return r(e)}))};var v=function realpath(e,r){c(e,(function(t,n){if(t&&t.code!=="ENOENT")r(t);else r(null,t?e:n)}))};var _=function maybeRealpath(e,r,t,n){if(t&&t.preserveSymlinks===false){e(r,n)}else{n(null,r)}};var m=function defaultReadPackage(e,r,t){e(r,(function(e,r){if(e)t(e);else{try{var n=JSON.parse(r);t(null,n)}catch(e){t(null)}}}))};var h=function getPackageCandidates(e,r,t){var n=s(r,t,e);for(var o=0;o<n.length;o++){n[o]=a.join(n[o],e)}return n};e.exports=function resolve(e,r,t){var o=t;var s=r;if(typeof r==="function"){o=s;s={}}if(typeof e!=="string"){var c=new TypeError("Path must be a string.");return process.nextTick((function(){o(c)}))}s=l(e,s);var d=s.isFile||p;var y=s.isDirectory||f;var g=s.readFile||n.readFile;var w=s.realpath||v;var k=s.readPackage||m;if(s.readFile&&s.readPackage){var b=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick((function(){o(b)}))}var x=s.packageIterator;var E=s.extensions||[".js"];var F=s.includeCoreModules!==false;var S=s.basedir||a.dirname(i());var N=s.filename||S;s.paths=s.paths||defaultPaths();var A=a.resolve(S);_(w,A,s,(function(e,r){if(e)o(e);else init(r)}));var O;function init(r){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){O=a.resolve(r,e);if(e==="."||e===".."||e.slice(-1)==="/")O+="/";if(/\/$/.test(e)&&O===r){loadAsDirectory(O,s.package,onfile)}else loadAsFile(O,s.package,onfile)}else if(F&&u(e)){return o(null,e)}else loadNodeModules(e,r,(function(r,t,n){if(r)o(r);else if(t){return _(w,t,s,(function(e,r){if(e){o(e)}else{o(null,r,n)}}))}else{var a=new Error("Cannot find module '"+e+"' from '"+N+"'");a.code="MODULE_NOT_FOUND";o(a)}}))}function onfile(r,t,n){if(r)o(r);else if(t)o(null,t,n);else loadAsDirectory(O,(function(r,t,n){if(r)o(r);else if(t){_(w,t,s,(function(e,r){if(e){o(e)}else{o(null,r,n)}}))}else{var a=new Error("Cannot find module '"+e+"' from '"+N+"'");a.code="MODULE_NOT_FOUND";o(a)}}))}function loadAsFile(e,r,t){var n=r;var o=t;if(typeof n==="function"){o=n;n=undefined}var i=[""].concat(E);load(i,e,n);function load(e,r,t){if(e.length===0)return o(null,undefined,t);var n=r+e[0];var i=t;if(i)onpkg(null,i);else loadpkg(a.dirname(n),onpkg);function onpkg(t,l,u){i=l;if(t)return o(t);if(u&&i&&s.pathFilter){var c=a.relative(u,n);var p=c.slice(0,c.length-e[0].length);var f=s.pathFilter(i,r,p);if(f)return load([""].concat(E.slice()),a.resolve(u,f),i)}d(n,onex)}function onex(t,a){if(t)return o(t);if(a)return o(null,n,i);load(e.slice(1),r,i)}}}function loadpkg(e,r){if(e===""||e==="/")return r(null);if(process.platform==="win32"&&/^\w:[/\\]*$/.test(e)){return r(null)}if(/[/\\]node_modules[/\\]*$/.test(e))return r(null);_(w,e,s,(function(t,n){if(t)return loadpkg(a.dirname(e),r);var o=a.join(n,"package.json");d(o,(function(t,n){if(!n)return loadpkg(a.dirname(e),r);k(g,o,(function(t,n){if(t)r(t);var a=n;if(a&&s.packageFilter){a=s.packageFilter(a,o)}r(null,a,e)}))}))}))}function loadAsDirectory(e,r,t){var n=t;var o=r;if(typeof o==="function"){n=o;o=s.package}_(w,e,s,(function(r,t){if(r)return n(r);var i=a.join(t,"package.json");d(i,(function(r,t){if(r)return n(r);if(!t)return loadAsFile(a.join(e,"index"),o,n);k(g,i,(function(r,t){if(r)return n(r);var o=t;if(o&&s.packageFilter){o=s.packageFilter(o,i)}if(o&&o.main){if(typeof o.main!=="string"){var l=new TypeError("package “"+o.name+"” `main` must be a string");l.code="INVALID_PACKAGE_MAIN";return n(l)}if(o.main==="."||o.main==="./"){o.main="index"}loadAsFile(a.resolve(e,o.main),o,(function(r,t,o){if(r)return n(r);if(t)return n(null,t,o);if(!o)return loadAsFile(a.join(e,"index"),o,n);var i=a.resolve(e,o.main);loadAsDirectory(i,o,(function(r,t,o){if(r)return n(r);if(t)return n(null,t,o);loadAsFile(a.join(e,"index"),o,n)}))}));return}loadAsFile(a.join(e,"/index"),o,n)}))}))}))}function processDirs(e,r){if(r.length===0)return e(null,undefined);var t=r[0];y(a.dirname(t),isdir);function isdir(n,o){if(n)return e(n);if(!o)return processDirs(e,r.slice(1));loadAsFile(t,s.package,onfile)}function onfile(r,n,o){if(r)return e(r);if(n)return e(null,n,o);loadAsDirectory(t,s.package,ondir)}function ondir(t,n,o){if(t)return e(t);if(n)return e(null,n,o);processDirs(e,r.slice(1))}}function loadNodeModules(e,r,t){var thunk=function(){return h(e,r,s)};processDirs(t,x?x(e,r,thunk,s):thunk())}}},744:function(e){e.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(e,r){return r};var r=(new Error).stack;Error.prepareStackTrace=e;return r[2].getFileName()}},0:function(e,r,t){var n=process.versions&&process.versions.node&&process.versions.node.split(".")||[];function specifierIncluded(e){var r=e.split(" ");var t=r.length>1?r[0]:"=";var o=(r.length>1?r[1]:r[0]).split(".");for(var a=0;a<3;++a){var i=parseInt(n[a]||0,10);var s=parseInt(o[a]||0,10);if(i===s){continue}if(t==="<"){return i<s}else if(t===">="){return i>=s}return false}return t===">="}function matchesRange(e){var r=e.split(/ ?&& ?/);if(r.length===0){return false}for(var t=0;t<r.length;++t){if(!specifierIncluded(r[t])){return false}}return true}function versionIncluded(e){if(typeof e==="boolean"){return e}if(e&&typeof e==="object"){for(var r=0;r<e.length;++r){if(matchesRange(e[r])){return true}}return false}return matchesRange(e)}var o=t(665);var a={};for(var i in o){if(Object.prototype.hasOwnProperty.call(o,i)){a[i]=versionIncluded(o[i])}}e.exports=a},60:function(e,r,t){"use strict";var n=t(37);e.exports=n.homedir||function homedir(){var e=process.env.HOME;var r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(process.platform==="win32"){return process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||e||null}if(process.platform==="darwin"){return e||(r?"/Users/"+r:null)}if(process.platform==="linux"){return e||(process.getuid()===0?"/root":r?"/home/"+r:null)}return e||null}},821:function(e,r,t){var n=t(895);e.exports=function isCore(e){return n(e)}},865:function(e,r,t){var n=t(17);var o=n.parse||t(878);var a=function getNodeModulesDirs(e,r){var t="/";if(/^([A-Za-z]:)/.test(e)){t=""}else if(/^\\\\/.test(e)){t="\\\\"}var a=[e];var i=o(e);while(i.dir!==a[a.length-1]){a.push(i.dir);i=o(i.dir)}return a.reduce((function(e,o){return e.concat(r.map((function(e){return n.resolve(t,o,e)})))}),[])};e.exports=function nodeModulesPaths(e,r,t){var n=r&&r.moduleDirectory?[].concat(r.moduleDirectory):["node_modules"];if(r&&typeof r.paths==="function"){return r.paths(t,e,(function(){return a(e,n)}),r)}var o=a(e,n);return r&&r.paths?o.concat(r.paths):o}},338:function(e){e.exports=function(e,r){return r||{}}},332:function(e,r,t){var n=t(895);var o=t(147);var a=t(17);var i=t(60);var s=t(744);var l=t(865);var u=t(338);var c=o.realpathSync&&typeof o.realpathSync.native==="function"?o.realpathSync.native:o.realpathSync;var d=i();var defaultPaths=function(){return[a.join(d,".node_modules"),a.join(d,".node_libraries")]};var p=function isFile(e){try{var r=o.statSync(e,{throwIfNoEntry:false})}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR"))return false;throw e}return!!r&&(r.isFile()||r.isFIFO())};var f=function isDirectory(e){try{var r=o.statSync(e,{throwIfNoEntry:false})}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR"))return false;throw e}return!!r&&r.isDirectory()};var v=function realpathSync(e){try{return c(e)}catch(e){if(e.code!=="ENOENT"){throw e}}return e};var _=function maybeRealpathSync(e,r,t){if(t&&t.preserveSymlinks===false){return e(r)}return r};var m=function defaultReadPackageSync(e,r){var t=e(r);try{var n=JSON.parse(t);return n}catch(e){}};var h=function getPackageCandidates(e,r,t){var n=l(r,t,e);for(var o=0;o<n.length;o++){n[o]=a.join(n[o],e)}return n};e.exports=function resolveSync(e,r){if(typeof e!=="string"){throw new TypeError("Path must be a string.")}var t=u(e,r);var i=t.isFile||p;var l=t.readFileSync||o.readFileSync;var c=t.isDirectory||f;var d=t.realpathSync||v;var y=t.readPackageSync||m;if(t.readFileSync&&t.readPackageSync){throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.")}var g=t.packageIterator;var w=t.extensions||[".js"];var k=t.includeCoreModules!==false;var b=t.basedir||a.dirname(s());var x=t.filename||b;t.paths=t.paths||defaultPaths();var E=_(d,a.resolve(b),t);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var F=a.resolve(E,e);if(e==="."||e===".."||e.slice(-1)==="/")F+="/";var S=loadAsFileSync(F)||loadAsDirectorySync(F);if(S)return _(d,S,t)}else if(k&&n(e)){return e}else{var N=loadNodeModulesSync(e,E);if(N)return _(d,N,t)}var A=new Error("Cannot find module '"+e+"' from '"+x+"'");A.code="MODULE_NOT_FOUND";throw A;function loadAsFileSync(e){var r=loadpkg(a.dirname(e));if(r&&r.dir&&r.pkg&&t.pathFilter){var n=a.relative(r.dir,e);var o=t.pathFilter(r.pkg,e,n);if(o){e=a.resolve(r.dir,o)}}if(i(e)){return e}for(var s=0;s<w.length;s++){var l=e+w[s];if(i(l)){return l}}}function loadpkg(e){if(e===""||e==="/")return;if(process.platform==="win32"&&/^\w:[/\\]*$/.test(e)){return}if(/[/\\]node_modules[/\\]*$/.test(e))return;var r=a.join(_(d,e,t),"package.json");if(!i(r)){return loadpkg(a.dirname(e))}var n=y(l,r);if(n&&t.packageFilter){n=t.packageFilter(n,e)}return{pkg:n,dir:e}}function loadAsDirectorySync(e){var r=a.join(_(d,e,t),"/package.json");if(i(r)){try{var n=y(l,r)}catch(e){}if(n&&t.packageFilter){n=t.packageFilter(n,e)}if(n&&n.main){if(typeof n.main!=="string"){var o=new TypeError("package “"+n.name+"” `main` must be a string");o.code="INVALID_PACKAGE_MAIN";throw o}if(n.main==="."||n.main==="./"){n.main="index"}try{var s=loadAsFileSync(a.resolve(e,n.main));if(s)return s;var u=loadAsDirectorySync(a.resolve(e,n.main));if(u)return u}catch(e){}}}return loadAsFileSync(a.join(e,"/index"))}function loadNodeModulesSync(e,r){var thunk=function(){return h(e,r,t)};var n=g?g(e,r,thunk,t):thunk();for(var o=0;o<n.length;o++){var i=n[o];if(c(a.dirname(i))){var s=loadAsFileSync(i);if(s)return s;var l=loadAsDirectorySync(i);if(l)return l}}}}},147:function(e){"use strict";e.exports=require("fs")},37:function(e){"use strict";e.exports=require("os")},17:function(e){"use strict";e.exports=require("path")},650:function(e){"use strict";e.exports=JSON.parse('{"assert":true,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16","async_hooks":">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],"buffer_ieee754":">= 0.5 && < 0.9.7","buffer":true,"node:buffer":[">= 14.18 && < 15",">= 16"],"child_process":true,"node:child_process":[">= 14.18 && < 15",">= 16"],"cluster":">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],"console":true,"node:console":[">= 14.18 && < 15",">= 16"],"constants":true,"node:constants":[">= 14.18 && < 15",">= 16"],"crypto":true,"node:crypto":[">= 14.18 && < 15",">= 16"],"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"node:dgram":[">= 14.18 && < 15",">= 16"],"diagnostics_channel":[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],"dns":true,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16","domain":">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],"events":true,"node:events":[">= 14.18 && < 15",">= 16"],"freelist":"< 6","fs":true,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],"_http_agent":">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],"_http_client":">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],"_http_common":">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],"_http_incoming":">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],"_http_outgoing":">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],"_http_server":">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],"http":true,"node:http":[">= 14.18 && < 15",">= 16"],"http2":">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],"https":true,"node:https":[">= 14.18 && < 15",">= 16"],"inspector":">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"_linklist":"< 8","module":true,"node:module":[">= 14.18 && < 15",">= 16"],"net":true,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12","os":true,"node:os":[">= 14.18 && < 15",">= 16"],"path":true,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16","perf_hooks":">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],"process":">= 1","node:process":[">= 14.18 && < 15",">= 16"],"punycode":">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],"querystring":true,"node:querystring":[">= 14.18 && < 15",">= 16"],"readline":true,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17","repl":true,"node:repl":[">= 14.18 && < 15",">= 16"],"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],"_stream_transform":">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],"_stream_wrap":">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],"_stream_passthrough":">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],"_stream_readable":">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],"_stream_writable":">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],"stream":true,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5","string_decoder":true,"node:string_decoder":[">= 14.18 && < 15",">= 16"],"sys":[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"timers":true,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16","_tls_common":">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],"_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],"tls":true,"node:tls":[">= 14.18 && < 15",">= 16"],"trace_events":">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],"tty":true,"node:tty":[">= 14.18 && < 15",">= 16"],"url":true,"node:url":[">= 14.18 && < 15",">= 16"],"util":true,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8":">= 1","node:v8":[">= 14.18 && < 15",">= 16"],"vm":true,"node:vm":[">= 14.18 && < 15",">= 16"],"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],"zlib":">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}')},665:function(e){"use strict";e.exports=JSON.parse('{"assert":true,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16","async_hooks":">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],"buffer_ieee754":">= 0.5 && < 0.9.7","buffer":true,"node:buffer":[">= 14.18 && < 15",">= 16"],"child_process":true,"node:child_process":[">= 14.18 && < 15",">= 16"],"cluster":">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],"console":true,"node:console":[">= 14.18 && < 15",">= 16"],"constants":true,"node:constants":[">= 14.18 && < 15",">= 16"],"crypto":true,"node:crypto":[">= 14.18 && < 15",">= 16"],"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"node:dgram":[">= 14.18 && < 15",">= 16"],"diagnostics_channel":[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],"dns":true,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16","domain":">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],"events":true,"node:events":[">= 14.18 && < 15",">= 16"],"freelist":"< 6","fs":true,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],"_http_agent":">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],"_http_client":">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],"_http_common":">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],"_http_incoming":">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],"_http_outgoing":">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],"_http_server":">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],"http":true,"node:http":[">= 14.18 && < 15",">= 16"],"http2":">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],"https":true,"node:https":[">= 14.18 && < 15",">= 16"],"inspector":">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"_linklist":"< 8","module":true,"node:module":[">= 14.18 && < 15",">= 16"],"net":true,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12","os":true,"node:os":[">= 14.18 && < 15",">= 16"],"path":true,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16","perf_hooks":">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],"process":">= 1","node:process":[">= 14.18 && < 15",">= 16"],"punycode":">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],"querystring":true,"node:querystring":[">= 14.18 && < 15",">= 16"],"readline":true,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17","repl":true,"node:repl":[">= 14.18 && < 15",">= 16"],"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],"_stream_transform":">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],"_stream_wrap":">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],"_stream_passthrough":">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],"_stream_readable":">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],"_stream_writable":">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],"stream":true,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5","string_decoder":true,"node:string_decoder":[">= 14.18 && < 15",">= 16"],"sys":[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"timers":true,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16","_tls_common":">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],"_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],"tls":true,"node:tls":[">= 14.18 && < 15",">= 16"],"trace_events":">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],"tty":true,"node:tty":[">= 14.18 && < 15",">= 16"],"url":true,"node:url":[">= 14.18 && < 15",">= 16"],"util":true,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8":">= 1","node:v8":[">= 14.18 && < 15",">= 16"],"vm":true,"node:vm":[">= 14.18 && < 15",">= 16"],"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],"zlib":">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}')}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var o=r[t]={exports:{}};var a=true;try{e[t](o,o.exports,__nccwpck_require__);a=false}finally{if(a)delete r[t]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(344);module.exports=t})();
|
|
@@ -3,7 +3,7 @@ import Comparator = require('./comparator');
|
|
|
3
3
|
import SemVer = require('./semver');
|
|
4
4
|
|
|
5
5
|
declare class Range {
|
|
6
|
-
constructor(range: string | Range, optionsOrLoose?: boolean | semver.
|
|
6
|
+
constructor(range: string | Range, optionsOrLoose?: boolean | semver.RangeOptions);
|
|
7
7
|
|
|
8
8
|
range: string;
|
|
9
9
|
raw: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import semver = require('../index');
|
|
2
2
|
|
|
3
3
|
declare class SemVer {
|
|
4
|
-
constructor(version: string | SemVer, optionsOrLoose?: boolean | semver.
|
|
4
|
+
constructor(version: string | SemVer, optionsOrLoose?: boolean | semver.RangeOptions);
|
|
5
5
|
|
|
6
6
|
raw: string;
|
|
7
7
|
loose: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import semver = require('../index');
|
|
1
2
|
import SemVer = require('../classes/semver');
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -12,5 +13,9 @@ import SemVer = require('../classes/semver');
|
|
|
12
13
|
*
|
|
13
14
|
* @since 6.1.0
|
|
14
15
|
*/
|
|
15
|
-
declare function compareBuild(
|
|
16
|
+
declare function compareBuild(
|
|
17
|
+
a: string | SemVer,
|
|
18
|
+
b: string | SemVer,
|
|
19
|
+
optionsOrLoose?: boolean | semver.Options,
|
|
20
|
+
): 1 | 0 | -1;
|
|
16
21
|
export = compareBuild;
|
|
@@ -4,10 +4,6 @@ import SemVer = require('../classes/semver');
|
|
|
4
4
|
/**
|
|
5
5
|
* Returns difference between two versions by the release type (major, premajor, minor, preminor, patch, prepatch, or prerelease), or null if the versions are the same.
|
|
6
6
|
*/
|
|
7
|
-
declare function diff(
|
|
8
|
-
v1: string | SemVer,
|
|
9
|
-
v2: string | SemVer,
|
|
10
|
-
optionsOrLoose?: boolean | semver.Options,
|
|
11
|
-
): semver.ReleaseType | null;
|
|
7
|
+
declare function diff(v1: string | SemVer, v2: string | SemVer): semver.ReleaseType | null;
|
|
12
8
|
|
|
13
9
|
export = diff;
|
|
@@ -113,6 +113,9 @@ export type ReleaseType = 'major' | 'premajor' | 'minor' | 'preminor' | 'patch'
|
|
|
113
113
|
|
|
114
114
|
export interface Options {
|
|
115
115
|
loose?: boolean | undefined;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface RangeOptions extends Options {
|
|
116
119
|
includePrerelease?: boolean | undefined;
|
|
117
120
|
}
|
|
118
121
|
export interface CoerceOptions extends Options {
|