🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@midwayjs/ncc

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@midwayjs/ncc - npm Package Compare versions

Comparing version
0.22.0
to
0.22.1
+629
dist/ncc/loaders/typescript/lib/lib.es2020.bigint.d.ts
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface BigInt {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings.
*/
toString(radix?: number): string;
/** Returns a string representation appropriate to the host environment's current locale. */
toLocaleString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): bigint;
readonly [Symbol.toStringTag]: "BigInt";
}
interface BigIntConstructor {
(value?: any): bigint;
readonly prototype: BigInt;
/**
* Interprets the low bits of a BigInt as a 2's-complement signed integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asIntN(bits: number, int: bigint): bigint;
/**
* Interprets the low bits of a BigInt as an unsigned integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asUintN(bits: number, int: bigint): bigint;
}
declare var BigInt: BigIntConstructor;
/**
* A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigInt64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
/** The length in bytes of the array. */
readonly byteLength: number;
/** The offset in bytes of the array. */
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
entries(): IterableIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param callbackfn A function that accepts up to three arguments. The every method calls
* the callbackfn function for each element in the array until the callbackfn returns false,
* or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(callbackfn: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
/**
* Returns the this object after filling the section identified by start and end with value
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: bigint, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param callbackfn A function that accepts up to three arguments. The filter method calls
* the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(callbackfn: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: bigint, fromIndex?: number): boolean;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: bigint, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/** Yields each index in the array. */
keys(): IterableIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: bigint, fromIndex?: number): number;
/** The length of the array. */
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
/** Reverses the elements in the array. */
reverse(): this;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<bigint>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): BigInt64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param callbackfn A function that accepts up to three arguments. The some method calls the
* callbackfn function for each element in the array until the callbackfn returns true, or until
* the end of the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(callbackfn: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
/**
* Sorts the array.
* @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
*/
sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
/**
* Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): BigInt64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
/** Returns a string representation of the array. */
toString(): string;
/** Yields each value in the array. */
values(): IterableIterator<bigint>;
[Symbol.iterator](): IterableIterator<bigint>;
readonly [Symbol.toStringTag]: "BigInt64Array";
[index: number]: bigint;
}
interface BigInt64ArrayConstructor {
readonly prototype: BigInt64Array;
new(length?: number): BigInt64Array;
new(array: Iterable<bigint>): BigInt64Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: bigint[]): BigInt64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike<bigint>): BigInt64Array;
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
}
declare var BigInt64Array: BigInt64ArrayConstructor;
/**
* A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigUint64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
/** The length in bytes of the array. */
readonly byteLength: number;
/** The offset in bytes of the array. */
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
entries(): IterableIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param callbackfn A function that accepts up to three arguments. The every method calls
* the callbackfn function for each element in the array until the callbackfn returns false,
* or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(callbackfn: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
/**
* Returns the this object after filling the section identified by start and end with value
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: bigint, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param callbackfn A function that accepts up to three arguments. The filter method calls
* the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(callbackfn: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: bigint, fromIndex?: number): boolean;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: bigint, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/** Yields each index in the array. */
keys(): IterableIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: bigint, fromIndex?: number): number;
/** The length of the array. */
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
/** Reverses the elements in the array. */
reverse(): this;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<bigint>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): BigUint64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param callbackfn A function that accepts up to three arguments. The some method calls the
* callbackfn function for each element in the array until the callbackfn returns true, or until
* the end of the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(callbackfn: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
/**
* Sorts the array.
* @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
*/
sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
/**
* Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): BigUint64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
/** Returns a string representation of the array. */
toString(): string;
/** Yields each value in the array. */
values(): IterableIterator<bigint>;
[Symbol.iterator](): IterableIterator<bigint>;
readonly [Symbol.toStringTag]: "BigUint64Array";
[index: number]: bigint;
}
interface BigUint64ArrayConstructor {
readonly prototype: BigUint64Array;
new(length?: number): BigUint64Array;
new(array: Iterable<bigint>): BigUint64Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: bigint[]): BigUint64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike<bigint>): BigUint64Array;
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
}
declare var BigUint64Array: BigUint64ArrayConstructor;
interface DataView {
/**
* Gets the BigInt64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;
/**
* Gets the BigUint64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;
/**
* Stores a BigInt64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
/**
* Stores a BigUint64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface PromiseFulfilledResult<T> {
status: "fulfilled";
value: T;
}
interface PromiseRejectedResult {
status: "rejected";
reason: any;
}
type PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;
interface PromiseConstructor {
/**
* Creates a Promise that is resolved with an array of results when all
* of the provided Promises resolve or reject.
* @param values An array of Promises.
* @returns A new Promise.
*/
allSettled<T extends readonly unknown[] | readonly [unknown]>(values: T):
Promise<{ -readonly [P in keyof T]: PromiseSettledResult<T[P] extends PromiseLike<infer U> ? U : T[P]> }>;
/**
* Creates a Promise that is resolved with an array of results when all
* of the provided Promises resolve or reject.
* @param values An array of Promises.
* @returns A new Promise.
*/
allSettled<T>(values: Iterable<T>): Promise<PromiseSettledResult<T extends PromiseLike<infer U> ? U : T>[]>;
}
+1
-1

@@ -1,1 +0,1 @@

__non_webpack_require__('UNKNOWN');
module.exports = __non_webpack_require__('UNKNOWN');

@@ -1,1 +0,1 @@

module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var n=r[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(819)}return startup()}({8:function(e,t,r){e.exports=rimraf;rimraf.sync=rimrafSync;var n=r(357);var i=r(622);var a=r(747);var s=undefined;try{s=r(750)}catch(e){}var o=parseInt("666",8);var c={nosort:true,silent:true};var l=0;var u=process.platform==="win32";function defaults(e){var t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach(function(t){e[t]=e[t]||a[t];t=t+"Sync";e[t]=e[t]||a[t]});e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&s===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||c}function rimraf(e,t,r){if(typeof t==="function"){r=t;t={}}n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n.equal(typeof r,"function","rimraf: callback function required");n(t,"rimraf: invalid options argument provided");n.equal(typeof t,"object","rimraf: options should be object");defaults(t);var i=0;var a=null;var o=0;if(t.disableGlob||!s.hasMagic(e))return afterGlob(null,[e]);t.lstat(e,function(r,n){if(!r)return afterGlob(null,[e]);s(e,t.glob,afterGlob)});function next(e){a=a||e;if(--o===0)r(a)}function afterGlob(e,n){if(e)return r(e);o=n.length;if(o===0)return r();n.forEach(function(e){rimraf_(e,t,function CB(r){if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&i<t.maxBusyTries){i++;var n=i*100;return setTimeout(function(){rimraf_(e,t,CB)},n)}if(r.code==="EMFILE"&&l<t.emfileWait){return setTimeout(function(){rimraf_(e,t,CB)},l++)}if(r.code==="ENOENT")r=null}l=0;next(r)})})}}function rimraf_(e,t,r){n(e);n(t);n(typeof r==="function");t.lstat(e,function(n,i){if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&u)fixWinEPERM(e,t,n,r);if(i&&i.isDirectory())return rmdir(e,t,n,r);t.unlink(e,function(n){if(n){if(n.code==="ENOENT")return r(null);if(n.code==="EPERM")return u?fixWinEPERM(e,t,n,r):rmdir(e,t,n,r);if(n.code==="EISDIR")return rmdir(e,t,n,r)}return r(n)})})}function fixWinEPERM(e,t,r,i){n(e);n(t);n(typeof i==="function");if(r)n(r instanceof Error);t.chmod(e,o,function(n){if(n)i(n.code==="ENOENT"?null:r);else t.stat(e,function(n,a){if(n)i(n.code==="ENOENT"?null:r);else if(a.isDirectory())rmdir(e,t,r,i);else t.unlink(e,i)})})}function fixWinEPERMSync(e,t,r){n(e);n(t);if(r)n(r instanceof Error);try{t.chmodSync(e,o)}catch(e){if(e.code==="ENOENT")return;else throw r}try{var i=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(i.isDirectory())rmdirSync(e,t,r);else t.unlinkSync(e)}function rmdir(e,t,r,i){n(e);n(t);if(r)n(r instanceof Error);n(typeof i==="function");t.rmdir(e,function(n){if(n&&(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"))rmkids(e,t,i);else if(n&&n.code==="ENOTDIR")i(r);else i(n)})}function rmkids(e,t,r){n(e);n(t);n(typeof r==="function");t.readdir(e,function(n,a){if(n)return r(n);var s=a.length;if(s===0)return t.rmdir(e,r);var o;a.forEach(function(n){rimraf(i.join(e,n),t,function(n){if(o)return;if(n)return r(o=n);if(--s===0)t.rmdir(e,r)})})})}function rimrafSync(e,t){t=t||{};defaults(t);n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n(t,"rimraf: missing options");n.equal(typeof t,"object","rimraf: options should be object");var r;if(t.disableGlob||!s.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(n){r=s.sync(e,t.glob)}}if(!r.length)return;for(var i=0;i<r.length;i++){var e=r[i];try{var a=t.lstatSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM"&&u)fixWinEPERMSync(e,t,r)}try{if(a&&a.isDirectory())rmdirSync(e,t,null);else t.unlinkSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return u?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r);if(r.code!=="EISDIR")throw r;rmdirSync(e,t,r)}}}function rmdirSync(e,t,r){n(e);n(t);if(r)n(r instanceof Error);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")rmkidsSync(e,t)}}function rmkidsSync(e,t){n(e);n(t);t.readdirSync(e).forEach(function(r){rimrafSync(i.join(e,r),t)});var r=u?100:1;var a=0;do{var s=true;try{var o=t.rmdirSync(e,t);s=false;return o}finally{if(++a<r&&s)continue}}while(true)}},74:function(e,t,r){"use strict";const n=r(747);const i=r(622);const a=r(833);function readSizeRecursive(e,t,r,s){let o;let c;if(!s){o=r;c=null}else{o=s;c=r}n.lstat(t,function lstat(r,s){let l=!r?s.size||0:0;if(s){if(e.has(s.ino)){return o(null,0)}e.add(s.ino)}if(!r&&s.isDirectory()){n.readdir(t,(r,n)=>{if(r){return o(r)}a(n,5e3,(r,n)=>{readSizeRecursive(e,i.join(t,r),c,(e,t)=>{if(!e){l+=t}n(e)})},e=>{o(e,l)})})}else{if(c&&c.test(t)){l=0}o(r,l)}})}e.exports=((...e)=>{e.unshift(new Set);return readSizeRecursive(...e)})},87:function(e){e.exports=require("os")},129:function(e){e.exports=require("child_process")},215:function(e,t,r){var n=r(551);var i=r(835);e.exports=expandTop;var a="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(a).split("\\{").join(s).split("\\}").join(o).split("\\,").join(c).split("\\.").join(l)}function unescapeBraces(e){return e.split(a).join("\\").split(s).join("{").split(o).join("}").split(c).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var n=r.pre;var a=r.body;var s=r.post;var o=n.split(",");o[o.length-1]+="{"+a+"}";var c=parseCommaParts(s);if(s.length){o[o.length-1]+=c.shift();o.push.apply(o,c)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var a=i("{","}",e);if(!a||/\$$/.test(a.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var l=s||c;var u=a.body.indexOf(",")>=0;if(!l&&!u){if(a.post.match(/,.*\}/)){e=a.pre+"{"+a.body+o+a.post;return expand(e)}return[e]}var f;if(l){f=a.body.split(/\.\./)}else{f=parseCommaParts(a.body);if(f.length===1){f=expand(f[0],false).map(embrace);if(f.length===1){var h=a.post.length?expand(a.post,false):[""];return h.map(function(e){return a.pre+f[0]+e})}}}var p=a.pre;var h=a.post.length?expand(a.post,false):[""];var d;if(l){var m=numeric(f[0]);var v=numeric(f[1]);var g=Math.max(f[0].length,f[1].length);var b=f.length==3?Math.abs(numeric(f[2])):1;var y=lte;var _=v<m;if(_){b*=-1;y=gte}var w=f.some(isPadded);d=[];for(var k=m;y(k,v);k+=b){var E;if(c){E=String.fromCharCode(k);if(E==="\\")E=""}else{E=String(k);if(w){var S=g-E.length;if(S>0){var x=new Array(S+1).join("0");if(k<0)E="-"+x+E.slice(1);else E=x+E}}}d.push(E)}}else{d=n(f,function(e){return expand(e,false)})}for(var O=0;O<d.length;O++){for(var j=0;j<h.length;j++){var A=p+d[O]+h[j];if(!t||l||A)r.push(A)}}return r}},309:function(e,t,r){try{var n=r(669);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(474)}},357:function(e){e.exports=require("assert")},381:function(e,t,r){e.exports=globSync;globSync.GlobSync=GlobSync;var n=r(747);var i=r(909);var a=r(642);var s=a.Minimatch;var o=r(750).Glob;var c=r(669);var l=r(622);var u=r(357);var f=r(963);var h=r(744);var p=h.alphasort;var d=h.alphasorti;var m=h.setopts;var v=h.ownProp;var g=h.childrenIgnored;var b=h.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);m(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++){this._process(this.minimatch.set[n],n,false)}this._finish()}GlobSync.prototype._finish=function(){u(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach(function(t,r){var n=e.matches[r]=Object.create(null);for(var a in t){try{a=e._makeAbs(a);var s=i.realpathSync(a,e.realpathCache);n[s]=true}catch(t){if(t.syscall==="stat")n[e._makeAbs(a)]=true;else throw t}}})}h.finish(this)};GlobSync.prototype._process=function(e,t,r){u(this instanceof GlobSync);var n=0;while(typeof e[n]==="string"){n++}var i;switch(n){case e.length:this._processSimple(e.join("/"),t);return;case 0:i=null;break;default:i=e.slice(0,n).join("/");break}var s=e.slice(n);var o;if(i===null)o=".";else if(f(i)||f(e.join("/"))){if(!i||!f(i))i="/"+i;o=i}else o=i;var c=this._makeAbs(o);if(g(this,o))return;var l=s[0]===a.GLOBSTAR;if(l)this._processGlobStar(i,o,c,s,t,r);else this._processReaddir(i,o,c,s,t,r)};GlobSync.prototype._processReaddir=function(e,t,r,n,i,a){var s=this._readdir(r,a);if(!s)return;var o=n[0];var c=!!this.minimatch.negate;var u=o._glob;var f=this.dot||u.charAt(0)===".";var h=[];for(var p=0;p<s.length;p++){var d=s[p];if(d.charAt(0)!=="."||f){var m;if(c&&!e){m=!d.match(o)}else{m=d.match(o)}if(m)h.push(d)}}var v=h.length;if(v===0)return;if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var p=0;p<v;p++){var d=h[p];if(e){if(e.slice(-1)!=="/")d=e+"/"+d;else d=e+d}if(d.charAt(0)==="/"&&!this.nomount){d=l.join(this.root,d)}this._emitMatch(i,d)}return}n.shift();for(var p=0;p<v;p++){var d=h[p];var g;if(e)g=[e,d];else g=[d];this._process(g.concat(n),i,a)}};GlobSync.prototype._emitMatch=function(e,t){if(b(this,t))return;var r=this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute){t=r}if(this.matches[e][t])return;if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=true;if(this.stat)this._stat(t)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var t;var r;var i;try{r=n.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var a=r&&r.isSymbolicLink();this.symlinks[e]=a;if(!a&&r&&!r.isDirectory())this.cache[e]="FILE";else t=this._readdir(e,false);return t};GlobSync.prototype._readdir=function(e,t){var r;if(t&&!v(this.symlinks,e))return this._readdirInGlobStar(e);if(v(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(e,n.readdirSync(e))}catch(t){this._readdirError(e,t);return null}};GlobSync.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat){for(var r=0;r<t.length;r++){var n=t[r];if(e==="/")n=e+n;else n=e+"/"+n;this.cache[n]=true}}this.cache[e]=t;return t};GlobSync.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);this.cache[r]="FILE";if(r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=t.code;throw n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw t;if(!this.silent)console.error("glob error",t);break}};GlobSync.prototype._processGlobStar=function(e,t,r,n,i,a){var s=this._readdir(r,a);if(!s)return;var o=n.slice(1);var c=e?[e]:[];var l=c.concat(o);this._process(l,i,false);var u=s.length;var f=this.symlinks[r];if(f&&a)return;for(var h=0;h<u;h++){var p=s[h];if(p.charAt(0)==="."&&!this.dot)continue;var d=c.concat(s[h],o);this._process(d,i,true);var m=c.concat(s[h],n);this._process(m,i,true)}};GlobSync.prototype._processSimple=function(e,t){var r=this._stat(e);if(!this.matches[t])this.matches[t]=Object.create(null);if(!r)return;if(e&&f(e)&&!this.nomount){var n=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=l.join(this.root,e)}else{e=l.resolve(this.root,e);if(n)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e)};GlobSync.prototype._stat=function(e){var t=this._makeAbs(e);var r=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&v(this.cache,t)){var i=this.cache[t];if(Array.isArray(i))i="DIR";if(!r||i==="DIR")return i;if(r&&i==="FILE")return false}var a;var s=this.statCache[t];if(!s){var o;try{o=n.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(o&&o.isSymbolicLink()){try{s=n.statSync(t)}catch(e){s=o}}else{s=o}}this.statCache[t]=s;var i=true;if(s)i=s.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||i;if(r&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(e){return h.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return h.makeAbs(this,e)}},407:function(e){e.exports={name:"@midwayjs/ncc",version:"0.22.0",repository:"midwayjs/ncc",license:"MIT",main:"./dist/ncc/index.js",bin:{ncc:"./dist/ncc/cli.js"},scripts:{build:"node scripts/build","build-test-binary":"cd test/binary && node-gyp rebuild && cp build/Release/hello.node ../integration/hello.node",codecov:"codecov",test:"npm run build-test-binary && npm run build && node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest","test-coverage":'node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest --coverage --globals "{\\"coverage\\":true}" && codecov',prepublish:"in-publish && npm test || not-in-publish"},devDependencies:{"@azure/cosmos":"^2.0.5","@bugsnag/js":"^5.0.1","@ffmpeg-installer/ffmpeg":"^1.0.17","@google-cloud/bigquery":"^2.0.1","@google-cloud/firestore":"^2.2.0","@sentry/node":"^4.3.0","@tensorflow/tfjs-node":"^0.3.0","@zeit/webpack-asset-relocator-loader":"0.6.2","analytics-node":"^3.3.0","apollo-server-express":"^2.2.2",arg:"^4.1.0",auth0:"^2.14.0","aws-sdk":"^2.356.0",axios:"^0.18.1","azure-storage":"^2.10.2","browserify-middleware":"^8.1.1",bytes:"^3.0.0",canvas:"^2.2.0",chromeless:"^1.5.2",codecov:"^3.1.0",consolidate:"^0.15.1",copy:"^0.3.2","core-js":"^2.5.7",cowsay:"^1.3.1",esm:"^3.2.22",express:"^4.16.4","fetch-h2":"^1.0.2",firebase:"^6.1.1","firebase-admin":"^6.3.0","fluent-ffmpeg":"^2.1.2",fontkit:"^1.7.7","get-folder-size":"^2.0.0",glob:"^7.1.3",got:"^9.3.2","graceful-fs":"^4.1.15",graphql:"^14.0.2",highlights:"^3.1.1","hot-shots":"^5.9.2","in-publish":"^2.0.0",ioredis:"^4.2.0","isomorphic-unfetch":"^3.0.0",jest:"^23.6.0",jimp:"^0.5.6",jugglingdb:"2.0.1",koa:"^2.6.2",leveldown:"^4.0.1",lighthouse:"^5.0.0",loopback:"^3.24.0",mailgun:"^0.5.0",mariadb:"^2.0.1-beta",memcached:"^2.2.2",mkdirp:"^0.5.1",mongoose:"^5.3.12",mysql:"^2.16.0","node-gyp":"^3.8.0",npm:"^6.9.0",oracledb:"^3.1.2",passport:"^0.4.0","passport-google-oauth":"^1.0.0","path-platform":"^0.11.15",pdf2json:"^1.1.8",pdfkit:"^0.8.3",pg:"^7.6.1",pug:"^2.0.3",react:"^16.6.3","react-dom":"^16.6.3",redis:"^2.8.0",request:"^2.88.0",rxjs:"^6.3.3",saslprep:"^1.0.2",sequelize:"^5.8.6",sharp:"^0.21.1","shebang-loader":"^0.0.1","socket.io":"^2.2.0","source-map-support":"^0.5.9",stripe:"^6.15.0",swig:"^1.4.2",terser:"^3.11.0","the-answer":"^1.0.0","tiny-json-http":"^7.0.2","ts-loader":"^5.3.1","tsconfig-paths":"^3.7.0","tsconfig-paths-webpack-plugin":"^3.2.0",twilio:"^3.23.2",typescript:"^3.2.2",vm2:"^3.6.6",vue:"^2.5.17","vue-server-renderer":"^2.5.17",webpack:"5.0.0-alpha.17",when:"^3.7.8","yoga-layout":"^1.9.3"}}},411:function(e,t,r){var n=r(622);var i=process.platform==="win32";var a=r(747);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(s){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var o=n.normalize;if(i){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(i){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,s={},o={};var u;var f;var h;var p;start();function start(){var t=l.exec(e);u=t[0].length;f=t[0];h=t[0];p="";if(i&&!o[h]){a.lstatSync(h);o[h]=true}}while(u<e.length){c.lastIndex=u;var d=c.exec(e);p=f;f+=d[0];h=p+d[1];u=c.lastIndex;if(o[h]||t&&t[h]===h){continue}var m;if(t&&Object.prototype.hasOwnProperty.call(t,h)){m=t[h]}else{var v=a.lstatSync(h);if(!v.isSymbolicLink()){o[h]=true;if(t)t[h]=h;continue}var g=null;if(!i){var b=v.dev.toString(32)+":"+v.ino.toString(32);if(s.hasOwnProperty(b)){g=s[b]}}if(g===null){a.statSync(h);g=a.readlinkSync(h)}m=n.resolve(p,g);if(t)t[h]=m;if(!i)s[b]=g}e=n.resolve(m,e.slice(u));start()}if(t)t[r]=e;return e};t.realpath=function realpath(e,t,r){if(typeof r!=="function"){r=maybeCallback(t);t=null}e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(r.bind(null,null,t[e]))}var s=e,o={},u={};var f;var h;var p;var d;start();function start(){var t=l.exec(e);f=t[0].length;h=t[0];p=t[0];d="";if(i&&!u[p]){a.lstat(p,function(e){if(e)return r(e);u[p]=true;LOOP()})}else{process.nextTick(LOOP)}}function LOOP(){if(f>=e.length){if(t)t[s]=e;return r(null,e)}c.lastIndex=f;var n=c.exec(e);d=h;h+=n[0];p=d+n[1];f=c.lastIndex;if(u[p]||t&&t[p]===p){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,p)){return gotResolvedLink(t[p])}return a.lstat(p,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){u[p]=true;if(t)t[p]=p;return process.nextTick(LOOP)}if(!i){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(o.hasOwnProperty(s)){return gotTarget(null,o[s],p)}}a.stat(p,function(e){if(e)return r(e);a.readlink(p,function(e,t){if(!i)o[s]=t;gotTarget(e,t)})})}function gotTarget(e,i,a){if(e)return r(e);var s=n.resolve(d,i);if(t)t[a]=s;gotResolvedLink(s)}function gotResolvedLink(t){e=n.resolve(t,e.slice(f));start()}}},417:function(e){e.exports=require("crypto")},474:function(e){if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype;e.prototype=new r;e.prototype.constructor=e}}}},481:function(e,t,r){var n=r(687);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}},485:function(e,t,r){var n=r(622);var i=r(747);var a=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,t,r,s){if(typeof t==="function"){r=t;t={}}else if(!t||typeof t!=="object"){t={mode:t}}var o=t.mode;var c=t.fs||i;if(o===undefined){o=a&~process.umask()}if(!s)s=null;var l=r||function(){};e=n.resolve(e);c.mkdir(e,o,function(r){if(!r){s=s||e;return l(null,s)}switch(r.code){case"ENOENT":mkdirP(n.dirname(e),t,function(r,n){if(r)l(r,n);else mkdirP(e,t,l,n)});break;default:c.stat(e,function(e,t){if(e||!t.isDirectory())l(r,s);else l(null,s)});break}})}mkdirP.sync=function sync(e,t,r){if(!t||typeof t!=="object"){t={mode:t}}var s=t.mode;var o=t.fs||i;if(s===undefined){s=a&~process.umask()}if(!r)r=null;e=n.resolve(e);try{o.mkdirSync(e,s);r=r||e}catch(i){switch(i.code){case"ENOENT":r=sync(n.dirname(e),t,r);sync(e,t,r);break;default:var c;try{c=o.statSync(e)}catch(e){throw i}if(!c.isDirectory())throw i;break}}return r}},551:function(e){e.exports=function(e,r){var n=[];for(var i=0;i<e.length;i++){var a=r(e[i],i);if(t(a))n.push.apply(n,a);else n.push(a)}return n};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},612:function(e){e.exports=require("./index.js")},614:function(e){e.exports=require("events")},622:function(e){e.exports=require("path")},642:function(e,t,r){e.exports=minimatch;minimatch.Minimatch=Minimatch;var n={sep:"/"};try{n=r(622)}catch(e){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var a=r(215);var s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var o="[^/]";var c=o+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var u="(?:(?!(?:\\/|^)\\.).)*?";var f=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce(function(e,t){e[t]=true;return e},{})}var h=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,n,i){return minimatch(r,e,t)}}function ext(e,t){e=e||{};t=t||{};var r={};Object.keys(t).forEach(function(e){r[e]=t[e]});Object.keys(e).forEach(function(t){r[t]=e[t]});return r}minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch;var r=function minimatch(r,n,i){return t.minimatch(r,n,ext(e,i))};r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))};return r};Minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return Minimatch;return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}if(t.trim()==="")return e==="";return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!t)t={};e=e.trim();if(n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=console.error;this.debug(this.pattern,r);r=this.globParts=r.map(function(e){return e.split(h)});this.debug(this.pattern,r);r=r.map(function(e,t,r){return e.map(this.parse,this)},this);this.debug(this.pattern,r);r=r.filter(function(e){return e.indexOf(false)===-1});this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var n=0;if(r.nonegate)return;for(var i=0,a=e.length;i<a&&e.charAt(i)==="!";i++){t=!t;n++}if(n)this.pattern=e.substr(n);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;if(typeof e==="undefined"){throw new TypeError("undefined pattern")}if(t.nobrace||!e.match(/\{.*\}/)){return[e]}return a(e)}Minimatch.prototype.parse=parse;var p={};function parse(e,t){if(e.length>1024*64){throw new TypeError("pattern is too long")}var r=this.options;if(!r.noglobstar&&e==="**")return i;if(e==="")return"";var n="";var a=!!r.nocase;var l=false;var u=[];var h=[];var d;var m=false;var v=-1;var g=-1;var b=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var y=this;function clearStateChar(){if(d){switch(d){case"*":n+=c;a=true;break;case"?":n+=o;a=true;break;default:n+="\\"+d;break}y.debug("clearStateChar %j %j",d,n);d=false}}for(var _=0,w=e.length,k;_<w&&(k=e.charAt(_));_++){this.debug("%s\t%s %s %j",e,_,n,k);if(l&&f[k]){n+="\\"+k;l=false;continue}switch(k){case"/":return false;case"\\":clearStateChar();l=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,_,n,k);if(m){this.debug(" in class");if(k==="!"&&_===g+1)k="^";n+=k;continue}y.debug("call clearStateChar %j",d);clearStateChar();d=k;if(r.noext)clearStateChar();continue;case"(":if(m){n+="(";continue}if(!d){n+="\\(";continue}u.push({type:d,start:_-1,reStart:n.length,open:s[d].open,close:s[d].close});n+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,n);d=false;continue;case")":if(m||!u.length){n+="\\)";continue}clearStateChar();a=true;var E=u.pop();n+=E.close;if(E.type==="!"){h.push(E)}E.reEnd=n.length;continue;case"|":if(m||!u.length||l){n+="\\|";l=false;continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(m){n+="\\"+k;continue}m=true;g=_;v=n.length;n+=k;continue;case"]":if(_===g+1||!m){n+="\\"+k;l=false;continue}if(m){var S=e.substring(g+1,_);try{RegExp("["+S+"]")}catch(e){var x=this.parse(S,p);n=n.substr(0,v)+"\\["+x[0]+"\\]";a=a||x[1];m=false;continue}}a=true;m=false;n+=k;continue;default:clearStateChar();if(l){l=false}else if(f[k]&&!(k==="^"&&m)){n+="\\"}n+=k}}if(m){S=e.substr(g+1);x=this.parse(S,p);n=n.substr(0,v)+"\\["+x[0];a=a||x[1]}for(E=u.pop();E;E=u.pop()){var O=n.slice(E.reStart+E.open.length);this.debug("setting tail",n,E);O=O.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,r){if(!r){r="\\"}return t+t+r+"|"});this.debug("tail=%j\n %s",O,O,E,n);var j=E.type==="*"?c:E.type==="?"?o:"\\"+E.type;a=true;n=n.slice(0,E.reStart)+j+"\\("+O}clearStateChar();if(l){n+="\\\\"}var A=false;switch(n.charAt(0)){case".":case"[":case"(":A=true}for(var G=h.length-1;G>-1;G--){var T=h[G];var M=n.slice(0,T.reStart);var N=n.slice(T.reStart,T.reEnd-8);var I=n.slice(T.reEnd-8,T.reEnd);var C=n.slice(T.reEnd);I+=C;var R=M.split("(").length-1;var D=C;for(_=0;_<R;_++){D=D.replace(/\)[+*?]?/,"")}C=D;var P="";if(C===""&&t!==p){P="$"}var q=M+N+C+P+I;n=q}if(n!==""&&a){n="(?=.)"+n}if(A){n=b+n}if(t===p){return[n,a]}if(!a){return globUnescape(e)}var L=r.nocase?"i":"";try{var $=new RegExp("^"+n+"$",L)}catch(e){return new RegExp("$.")}$._glob=e;$._src=n;return $}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?c:t.dot?l:u;var n=t.nocase?"i":"";var a=e.map(function(e){return e.map(function(e){return e===i?r:typeof e==="string"?regExpEscape(e):e._src}).join("\\/")}).join("|");a="^(?:"+a+")$";if(this.negate)a="^(?!"+a+").*$";try{this.regexp=new RegExp(a,n)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var n=new Minimatch(t,r);e=e.filter(function(e){return n.match(e)});if(n.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=match;function match(e,t){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(h);this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var a;var s;for(s=e.length-1;s>=0;s--){a=e[s];if(a)break}for(s=0;s<i.length;s++){var o=i[s];var c=e;if(r.matchBase&&o.length===1){c=[a]}var l=this.matchOne(c,o,t);if(l){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}Minimatch.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var a=0,s=0,o=e.length,c=t.length;a<o&&s<c;a++,s++){this.debug("matchOne loop");var l=t[s];var u=e[a];this.debug(t,l,u);if(l===false)return false;if(l===i){this.debug("GLOBSTAR",[t,l,u]);var f=a;var h=s+1;if(h===c){this.debug("** at the end");for(;a<o;a++){if(e[a]==="."||e[a]===".."||!n.dot&&e[a].charAt(0)===".")return false}return true}while(f<o){var p=e[f];this.debug("\nglobstar while",e,f,t,h,p);if(this.matchOne(e.slice(f),t.slice(h),r)){this.debug("globstar found match!",f,o,p);return true}else{if(p==="."||p===".."||!n.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,f,t,h);break}this.debug("globstar swallow a segment, and continue");f++}}if(r){this.debug("\n>>> no match, partial?",e,f,t,h);if(f===o)return true}return false}var d;if(typeof l==="string"){if(n.nocase){d=u.toLowerCase()===l.toLowerCase()}else{d=u===l}this.debug("string match",l,u,d)}else{d=u.match(l);this.debug("pattern match",l,u,d)}if(!d)return false}if(a===o&&s===c){return true}else if(a===o){return r}else if(s===c){var m=a===o-1&&e[a]==="";return m}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},669:function(e){e.exports=require("util")},681:function(e){e.exports=/^#![^\n\r]*[\r\n]/},687:function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var n=e.apply(this,t);var i=t[t.length-1];if(typeof n==="function"&&n!==i){Object.keys(i).forEach(function(e){n[e]=i[e]})}return n}}},744:function(e,t,r){t.alphasort=alphasort;t.alphasorti=alphasorti;t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var n=r(622);var i=r(642);var a=r(963);var s=i.Minimatch;function alphasorti(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function alphasort(e,t){return e.localeCompare(t)}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new s(r,{dot:true})}return{matcher:new s(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var i=process.cwd();if(!ownProp(r,"cwd"))e.cwd=i;else{e.cwd=n.resolve(r.cwd);e.changedCwd=e.cwd!==i}e.root=r.root||n.resolve(e.cwd,"/");e.root=n.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=a(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;e.minimatch=new s(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var n=0,i=e.matches.length;n<i;n++){var a=e.matches[n];if(!a||Object.keys(a).length===0){if(e.nonull){var s=e.minimatch.globSet[n];if(t)r.push(s);else r[s]=true}}else{var o=Object.keys(a);if(t)r.push.apply(r,o);else o.forEach(function(e){r[e]=true})}}if(!t)r=Object.keys(r);if(!e.nosort)r=r.sort(e.nocase?alphasorti:alphasort);if(e.mark){for(var n=0;n<r.length;n++){r[n]=e._mark(r[n])}if(e.nodir){r=r.filter(function(t){var r=!/\/$/.test(t);var n=e.cache[t]||e.cache[makeAbs(e,t)];if(r&&n)r=n!=="DIR"&&!Array.isArray(n);return r})}}if(e.ignore.length)r=r.filter(function(t){return!isIgnored(e,t)});e.found=r}function mark(e,t){var r=makeAbs(e,t);var n=e.cache[r];var i=t;if(n){var a=n==="DIR"||Array.isArray(n);var s=t.slice(-1)==="/";if(a&&!s)i+="/";else if(!a&&s)i=i.slice(0,-1);if(i!==t){var o=makeAbs(e,i);e.statCache[o]=e.statCache[r];e.cache[o]=e.cache[r]}}return i}function makeAbs(e,t){var r=t;if(t.charAt(0)==="/"){r=n.join(e.root,t)}else if(a(t)||t===""){r=t}else if(e.changedCwd){r=n.resolve(e.cwd,t)}else{r=n.resolve(t)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some(function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))})}function childrenIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some(function(e){return!!(e.gmatcher&&e.gmatcher.match(t))})}},747:function(e){e.exports=require("fs")},750:function(e,t,r){e.exports=glob;var n=r(747);var i=r(909);var a=r(642);var s=a.Minimatch;var o=r(309);var c=r(614).EventEmitter;var l=r(622);var u=r(357);var f=r(963);var h=r(381);var p=r(744);var d=p.alphasort;var m=p.alphasorti;var v=p.setopts;var g=p.ownProp;var b=r(753);var y=r(669);var _=p.childrenIgnored;var w=p.isIgnored;var k=r(481);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return h(e,t)}return new Glob(e,t,r)}glob.sync=h;var E=glob.GlobSync=h.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var n=r.length;while(n--){e[r[n]]=t[r[n]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var n=new Glob(e,r);var i=n.minimatch.set;if(!e)return false;if(i.length>1)return true;for(var a=0;a<i[0].length;a++){if(typeof i[0][a]!=="string")return true}return false};glob.Glob=Glob;o(Glob,c);function Glob(e,t,r){if(typeof t==="function"){r=t;t=null}if(t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new E(e,t)}if(!(this instanceof Glob))return new Glob(e,t,r);v(this,e,t);this._didRealPath=false;var n=this.minimatch.set.length;this.matches=new Array(n);if(typeof r==="function"){r=k(r);this.on("error",r);this.on("end",function(e){r(null,e)})}var i=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(n===0)return done();var a=true;for(var s=0;s<n;s++){this._process(this.minimatch.set[s],s,false,done)}a=false;function done(){--i._processing;if(i._processing<=0){if(a){process.nextTick(function(){i._finish()})}else{i._finish()}}}}Glob.prototype._finish=function(){u(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var t=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--e===0)t._finish()}};Glob.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r);var a=this;var s=n.length;if(s===0)return t();var o=this.matches[e]=Object.create(null);n.forEach(function(r,n){r=a._makeAbs(r);i.realpath(r,a.realpathCache,function(n,i){if(!n)o[i]=true;else if(n.syscall==="stat")o[r]=true;else a.emit("error",n);if(--s===0){a.matches[e]=o;t()}})})};Glob.prototype._mark=function(e){return p.mark(this,e)};Glob.prototype._makeAbs=function(e){return p.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<n.length;t++){var i=n[t];this._processing--;this._process(i[0],i[1],i[2],i[3])}}}};Glob.prototype._process=function(e,t,r,n){u(this instanceof Glob);u(typeof n==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,t,r,n]);return}var i=0;while(typeof e[i]==="string"){i++}var s;switch(i){case e.length:this._processSimple(e.join("/"),t,n);return;case 0:s=null;break;default:s=e.slice(0,i).join("/");break}var o=e.slice(i);var c;if(s===null)c=".";else if(f(s)||f(e.join("/"))){if(!s||!f(s))s="/"+s;c=s}else c=s;var l=this._makeAbs(c);if(_(this,c))return n();var h=o[0]===a.GLOBSTAR;if(h)this._processGlobStar(s,c,l,o,t,r,n);else this._processReaddir(s,c,l,o,t,r,n)};Glob.prototype._processReaddir=function(e,t,r,n,i,a,s){var o=this;this._readdir(r,a,function(c,l){return o._processReaddir2(e,t,r,n,i,a,l,s)})};Glob.prototype._processReaddir2=function(e,t,r,n,i,a,s,o){if(!s)return o();var c=n[0];var u=!!this.minimatch.negate;var f=c._glob;var h=this.dot||f.charAt(0)===".";var p=[];for(var d=0;d<s.length;d++){var m=s[d];if(m.charAt(0)!=="."||h){var v;if(u&&!e){v=!m.match(c)}else{v=m.match(c)}if(v)p.push(m)}}var g=p.length;if(g===0)return o();if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var d=0;d<g;d++){var m=p[d];if(e){if(e!=="/")m=e+"/"+m;else m=e+m}if(m.charAt(0)==="/"&&!this.nomount){m=l.join(this.root,m)}this._emitMatch(i,m)}return o()}n.shift();for(var d=0;d<g;d++){var m=p[d];var b;if(e){if(e!=="/")m=e+"/"+m;else m=e+m}this._process([m].concat(n),i,a,o)}o()};Glob.prototype._emitMatch=function(e,t){if(this.aborted)return;if(w(this,t))return;if(this.paused){this._emitQueue.push([e,t]);return}var r=f(t)?t:this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute)t=r;if(this.matches[e][t])return;if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=true;var i=this.statCache[r];if(i)this.emit("stat",t,i);this.emit("match",t)};Glob.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,false,t);var r="lstat\0"+e;var i=this;var a=b(r,lstatcb_);if(a)n.lstat(e,a);function lstatcb_(r,n){if(r&&r.code==="ENOENT")return t();var a=n&&n.isSymbolicLink();i.symlinks[e]=a;if(!a&&n&&!n.isDirectory()){i.cache[e]="FILE";t()}else i._readdir(e,false,t)}};Glob.prototype._readdir=function(e,t,r){if(this.aborted)return;r=b("readdir\0"+e+"\0"+t,r);if(!r)return;if(t&&!g(this.symlinks,e))return this._readdirInGlobStar(e,r);if(g(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var a=this;n.readdir(e,readdirCb(this,e,r))};function readdirCb(e,t,r){return function(n,i){if(n)e._readdirError(t,n,r);else e._readdirEntries(t,i,r)}}Glob.prototype._readdirEntries=function(e,t,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var n=0;n<t.length;n++){var i=t[n];if(e==="/")i=e+i;else i=e+"/"+i;this.cache[i]=true}}this.cache[e]=t;return r(null,t)};Glob.prototype._readdirError=function(e,t,r){if(this.aborted)return;switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);this.cache[n]="FILE";if(n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=t.code;this.emit("error",i);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",t);this.abort()}if(!this.silent)console.error("glob error",t);break}return r()};Glob.prototype._processGlobStar=function(e,t,r,n,i,a,s){var o=this;this._readdir(r,a,function(c,l){o._processGlobStar2(e,t,r,n,i,a,l,s)})};Glob.prototype._processGlobStar2=function(e,t,r,n,i,a,s,o){if(!s)return o();var c=n.slice(1);var l=e?[e]:[];var u=l.concat(c);this._process(u,i,false,o);var f=this.symlinks[r];var h=s.length;if(f&&a)return o();for(var p=0;p<h;p++){var d=s[p];if(d.charAt(0)==="."&&!this.dot)continue;var m=l.concat(s[p],c);this._process(m,i,true,o);var v=l.concat(s[p],n);this._process(v,i,true,o)}o()};Glob.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,function(i,a){n._processSimple2(e,t,i,a,r)})};Glob.prototype._processSimple2=function(e,t,r,n,i){if(!this.matches[t])this.matches[t]=Object.create(null);if(!n)return i();if(e&&f(e)&&!this.nomount){var a=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=l.join(this.root,e)}else{e=l.resolve(this.root,e);if(a)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e);i()};Glob.prototype._stat=function(e,t){var r=this._makeAbs(e);var i=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&g(this.cache,r)){var a=this.cache[r];if(Array.isArray(a))a="DIR";if(!i||a==="DIR")return t(null,a);if(i&&a==="FILE")return t()}var s;var o=this.statCache[r];if(o!==undefined){if(o===false)return t(null,o);else{var c=o.isDirectory()?"DIR":"FILE";if(i&&c==="FILE")return t();else return t(null,c,o)}}var l=this;var u=b("stat\0"+r,lstatcb_);if(u)n.lstat(r,u);function lstatcb_(i,a){if(a&&a.isSymbolicLink()){return n.stat(r,function(n,i){if(n)l._stat2(e,r,null,a,t);else l._stat2(e,r,n,i,t)})}else{l._stat2(e,r,i,a,t)}}};Glob.prototype._stat2=function(e,t,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return i()}var a=e.slice(-1)==="/";this.statCache[t]=n;if(t.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,false,n);var s=true;if(n)s=n.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||s;if(a&&s==="FILE")return i();return i(null,s,n)}},753:function(e,t,r){var n=r(687);var i=Object.create(null);var a=r(481);e.exports=n(inflight);function inflight(e,t){if(i[e]){i[e].push(t);return null}else{i[e]=[t];return makeres(e)}}function makeres(e){return a(function RES(){var t=i[e];var r=t.length;var n=slice(arguments);try{for(var a=0;a<r;a++){t[a].apply(null,n)}}finally{if(t.length>r){t.splice(0,r);process.nextTick(function(){RES.apply(null,n)})}else{delete i[e]}}})}function slice(e){var t=e.length;var r=[];for(var n=0;n<t;n++)r[n]=e[n];return r}},819:function(module,__unusedexports,__webpack_require__){const{resolve:resolve,relative:relative,dirname:dirname,sep:sep}=__webpack_require__(622);const glob=__webpack_require__(750);const shebangRegEx=__webpack_require__(681);const rimraf=__webpack_require__(8);const crypto=__webpack_require__(417);const{writeFileSync:writeFileSync,unlink:unlink,existsSync:existsSync,symlinkSync:symlinkSync}=__webpack_require__(747);const mkdirp=__webpack_require__(485);const{version:nccVersion}=__webpack_require__(407);const usage=`Usage: ncc <cmd> <opts>\n\nCommands:\n build <input-file> [opts]\n run <input-file> [opts]\n cache clean|dir|size\n help\n version\n\nOptions:\n -o, --out [file] Output directory for build (defaults to dist)\n -m, --minify Minify output\n -C, --no-cache Skip build cache population\n -s, --source-map Generate source map\n --no-source-map-register Skip source-map-register source map support\n -e, --external [mod] Skip bundling 'mod'. Can be used many times\n -q, --quiet Disable build summaries / non-error outputs\n -w, --watch Start a watched build\n -t, --transpile-only Use transpileOnly option with the ts-loader\n --v8-cache Emit a build using the v8 compile cache\n`;let api=false;if(require.main===require.cache[eval("__filename")]){runCmd(process.argv.slice(2),process.stdout,process.stderr).then(e=>{if(!e)process.exit()}).catch(e=>{if(!e.silent)console.error(e.nccError?e.message:e);process.exit(e.exitCode||1)})}else{module.exports=runCmd;api=true}function renderSummary(e,t,r,n,i){if(n&&!n.endsWith(sep))n+=sep;const a=Math.round(Buffer.byteLength(e,"utf8")/1024);const s=t?Math.round(Buffer.byteLength(t,"utf8")/1024):0;const o=Object.create(null);let c=a;let l=8+(t?4:0);for(const e of Object.keys(r)){const t=r[e].source;const n=Math.round((t.byteLength||Buffer.byteLength(t,"utf8"))/1024);o[e]=n;c+=n;if(e.length>l)l=e.length}const u=Object.keys(r).sort((e,t)=>o[e]>o[t]?1:-1);const f=c.toString().length;let h=`${a.toString().padStart(f," ")}kB ${n}${"index.js"}`;let p=t?`${s.toString().padStart(f," ")}kB ${n}${"index.js.map"}`:"";let d="",m=true;for(const e of u){if(m)m=false;else d+="\n";if(a<o[e]&&h){d+=h+"\n";h=null}if(s&&s<o[e]&&p){d+=p+"\n";p=null}d+=`${o[e].toString().padStart(f," ")}kB ${n}${e}`}if(h){d+=(m?"":"\n")+h;m=false}if(p)d+=(m?"":"\n")+p;d+=`\n${c}kB [${i}ms] - ncc ${nccVersion}`;return d}function nccError(e,t=1){const r=new Error(e);r.nccError=true;r.exitCode=t;throw r}async function runCmd(argv,stdout,stderr){let args;try{args=__webpack_require__(832)({"--debug":Boolean,"-d":"--debug","--external":[String],"-e":"--external","--out":String,"-o":"--out","--minify":Boolean,"-m":"--minify","--source-map":Boolean,"-s":"--source-map","--no-cache":Boolean,"-C":"--no-cache","--no-source-map-register":Boolean,"--quiet":Boolean,"-q":"--quiet","--watch":Boolean,"-w":"--watch","--v8-cache":Boolean,"--transpile-only":Boolean,"-t":"--transpile-only"},{permissive:false,argv:argv})}catch(e){if(e.message.indexOf("Unknown or unexpected option")===-1)throw e;nccError(e.message+`\n${usage}`,2)}if(args._.length===0)nccError(`Error: No command specified\n${usage}`,2);let run=false;let outDir=args["--out"];const quiet=args["--quiet"];switch(args._[0]){case"cache":if(args._.length>2)errTooManyArguments("cache");const flags=Object.keys(args).filter(e=>e.startsWith("--"));if(flags.length)errFlagNotCompatible(flags[0],"cache");const cacheDir=__webpack_require__(946);switch(args._[1]){case"clean":rimraf.sync(cacheDir);break;case"dir":stdout.write(cacheDir+"\n");break;case"size":__webpack_require__(74)(cacheDir,(e,t)=>{if(e){if(e.code==="ENOENT"){stdout.write("0MB\n");return}throw e}stdout.write(`${(t/1024/1024).toFixed(2)}MB\n`)});break;default:errInvalidCommand("cache "+args._[1])}break;case"run":if(args._.length>2)errTooManyArguments("run");if(args["--out"])errFlagNotCompatible("--out","run");if(args["--watch"])errFlagNotCompatible("--watch","run");outDir=resolve(__webpack_require__(87).tmpdir(),crypto.createHash("md5").update(resolve(args._[1]||".")).digest("hex"));if(existsSync(outDir))rimraf.sync(outDir);run=true;case"build":if(args._.length>2)errTooManyArguments("build");let startTime=Date.now();let ps;const buildFile=eval("require.resolve")(resolve(args._[1]||"."));const ncc=__webpack_require__(612)(buildFile,{debugLog:args["--debug"],minify:args["--minify"],externals:args["--external"],sourceMap:args["--source-map"]||run,sourceMapRegister:args["--no-source-map-register"]?false:undefined,cache:args["--no-cache"]?false:undefined,watch:args["--watch"],v8cache:args["--v8-cache"],transpileOnly:args["--transpile-only"],quiet:quiet});async function handler({err:e,code:t,map:r,assets:n,symlinks:i}){if(e){stderr.write(e+"\n");stdout.write("Watching for changes...\n");return}outDir=outDir||resolve("dist");mkdirp.sync(outDir);await Promise.all((await new Promise((e,t)=>glob(outDir+"/**/*.js",(r,n)=>r?t(r):e(n)))).map(e=>new Promise((t,r)=>unlink(e,e=>e?r(e):t()))));writeFileSync(outDir+"/index.js",t,{mode:t.match(shebangRegEx)?511:438});if(r)writeFileSync(outDir+"/index.js.map",r);for(const e of Object.keys(n)){const t=outDir+"/"+e;mkdirp.sync(dirname(t));writeFileSync(t,n[e].source,{mode:n[e].permissions})}for(const e of Object.keys(i)){const t=outDir+"/"+e;symlinkSync(i[e],t)}if(!quiet){stdout.write(renderSummary(t,r,n,run?"":relative(process.cwd(),outDir),Date.now()-startTime)+"\n");if(args["--watch"])stdout.write("Watching for changes...\n")}if(run){const e=resolve("/node_modules");let t=dirname(buildFile)+"/node_modules";do{if(t===e){t=undefined;break}if(existsSync(t))break}while(t=resolve(t,"../../node_modules"));if(t)symlinkSync(t,outDir+"/node_modules","junction");ps=__webpack_require__(129).fork(outDir+"/index.js",{stdio:api?"pipe":"inherit"});if(api){ps.stdout.pipe(stdout);ps.stderr.pipe(stderr)}return new Promise((e,t)=>{function exit(r){__webpack_require__(8).sync(outDir);if(r===0)e();else t({silent:true,exitCode:r});process.off("SIGTERM",exit);process.off("SIGINT",exit)}ps.on("exit",exit);process.on("SIGTERM",exit);process.on("SIGINT",exit)})}}if(args["--watch"]){ncc.handler(handler);ncc.rebuild(()=>{if(ps)ps.kill();startTime=Date.now();stdout.write("File change, rebuilding...\n")});return true}else{return ncc.then(handler)}break;case"help":nccError(usage,2);case"version":stdout.write(__webpack_require__(407).version+"\n");break;default:errInvalidCommand(args._[0],2)}function errTooManyArguments(e){nccError(`Error: Too many ${e} arguments provided\n${usage}`,2)}function errFlagNotCompatible(e,t){nccError(`Error: ${e} flag is not compatible with ncc ${t}\n${usage}`,2)}function errInvalidCommand(e){nccError(`Error: Invalid command "${e}"\n${usage}`,2)}process.on("unhandledRejection",e=>{throw e})}},832:function(e){const t=Symbol("arg flag");function arg(e,{argv:r=process.argv.slice(2),permissive:n=false,stopAtPositional:i=false}={}){if(!e){throw new Error("Argument specification object is required")}const a={_:[]};const s={};const o={};for(const r of Object.keys(e)){if(!r){throw new TypeError("Argument key cannot be an empty string")}if(r[0]!=="-"){throw new TypeError(`Argument key must start with '-' but found: '${r}'`)}if(r.length===1){throw new TypeError(`Argument key must have a name; singular '-' keys are not allowed: ${r}`)}if(typeof e[r]==="string"){s[r]=e[r];continue}let n=e[r];let i=false;if(Array.isArray(n)&&n.length===1&&typeof n[0]==="function"){const[e]=n;n=((t,r,n=[])=>{n.push(e(t,r,n[n.length-1]));return n});i=e===Boolean||e[t]===true}else if(typeof n==="function"){i=n===Boolean||n[t]===true}else{throw new TypeError(`Type missing or not a function or valid array type: ${r}`)}if(r[1]!=="-"&&r.length>2){throw new TypeError(`Short argument keys (with a single hyphen) must have only one character: ${r}`)}o[r]=[n,i]}for(let e=0,t=r.length;e<t;e++){const t=r[e];if(i&&a._.length>0){a._=a._.concat(r.slice(e));break}if(t==="--"){a._=a._.concat(r.slice(e+1));break}if(t.length>1&&t[0]==="-"){const i=t[1]==="-"||t.length===2?[t]:t.slice(1).split("").map(e=>`-${e}`);for(let t=0;t<i.length;t++){const c=i[t];const[l,u]=c[1]==="-"?c.split(/=(.*)/,2):[c,undefined];let f=l;while(f in s){f=s[f]}if(!(f in o)){if(n){a._.push(c);continue}else{const e=new Error(`Unknown or unexpected option: ${l}`);e.code="ARG_UNKNOWN_OPTION";throw e}}const[h,p]=o[f];if(!p&&t+1<i.length){throw new TypeError(`Option requires argument (but was followed by another short argument): ${l}`)}if(p){a[f]=h(true,f,a[f])}else if(u===undefined){if(r.length<e+2||r[e+1].length>1&&r[e+1][0]==="-"&&!(r[e+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(h===Number||typeof BigInt!=="undefined"&&h===BigInt))){const e=l===f?"":` (alias for ${f})`;throw new Error(`Option requires argument: ${l}${e}`)}a[f]=h(r[e+1],f,a[f]);++e}else{a[f]=h(u,f,a[f])}}}else{a._.push(t)}}return a}arg.flag=(e=>{e[t]=true;return e});arg.COUNT=arg.flag((e,t,r)=>(r||0)+1);e.exports=arg},833:function(e){"use strict";e.exports=function eachAsync(e,t,r,n){var i=0;var a=0;var s=e.length-1;var o=false;var c;var l;var u;if(typeof t==="number"){c=t;u=r;l=n||function noop(){}}else{u=t;l=r||function noop(){};c=e.length}if(!e.length){return l()}var f=u.length;var h=function shouldCallNextIterator(){return!o&&i<c&&a<s};var p=function iteratorCallback(e){if(o){return}i--;if(e||a===s&&!i){o=true;l(e)}else if(h()){d(++a)}};var d=function processIterator(){i++;var t=f===2?[e[a],p]:[e[a],a,p];u.apply(null,t);if(h()){processIterator(++a)}};d()}},835:function(e){"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,i,a,s,o;var c=r.indexOf(e);var l=r.indexOf(t,c+1);var u=c;if(c>=0&&l>0){n=[];a=r.length;while(u>=0&&!o){if(u==c){n.push(u);c=r.indexOf(e,u+1)}else if(n.length==1){o=[n.pop(),l]}else{i=n.pop();if(i<a){a=i;s=l}l=r.indexOf(t,u+1)}u=c<l&&c>=0?c:l}if(n.length){o=[a,s]}}return o}},909:function(e,t,r){e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=r(747);var i=n.realpath;var a=n.realpathSync;var s=process.version;var o=/^v[0-5]\./.test(s);var c=r(411);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(o){return i(e,t,r)}if(typeof t==="function"){r=t;t=null}i(e,t,function(n,i){if(newError(n)){c.realpath(e,t,r)}else{r(n,i)}})}function realpathSync(e,t){if(o){return a(e,t)}try{return a(e,t)}catch(r){if(newError(r)){return c.realpathSync(e,t)}else{throw r}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=i;n.realpathSync=a}},946:function(e,t,r){e.exports=r(87).tmpdir()+"/ncc-cache"},963:function(e){"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var i=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||i)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32}});
module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var i=r[t]={i:t,l:false,exports:{}};e[t].call(i.exports,i,i.exports,__webpack_require__);i.l=true;return i.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(819)}return startup()}({11:function(e){"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var i=range(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var i,n,a,s,o;var c=r.indexOf(e);var l=r.indexOf(t,c+1);var u=c;if(c>=0&&l>0){i=[];a=r.length;while(u>=0&&!o){if(u==c){i.push(u);c=r.indexOf(e,u+1)}else if(i.length==1){o=[i.pop(),l]}else{n=i.pop();if(n<a){a=n;s=l}l=r.indexOf(t,u+1)}u=c<l&&c>=0?c:l}if(i.length){o=[a,s]}}return o}},28:function(e){"use strict";e.exports=function eachAsync(e,t,r,i){var n=0;var a=0;var s=e.length-1;var o=false;var c;var l;var u;if(typeof t==="number"){c=t;u=r;l=i||function noop(){}}else{u=t;l=r||function noop(){};c=e.length}if(!e.length){return l()}var f=u.length;var h=function shouldCallNextIterator(){return!o&&n<c&&a<s};var p=function iteratorCallback(e){if(o){return}n--;if(e||a===s&&!n){o=true;l(e)}else if(h()){d(++a)}};var d=function processIterator(){n++;var t=f===2?[e[a],p]:[e[a],a,p];u.apply(null,t);if(h()){processIterator(++a)}};d()}},82:function(e,t,r){try{var i=r(669);if(typeof i.inherits!=="function")throw"";e.exports=i.inherits}catch(t){e.exports=r(901)}},87:function(e){e.exports=require("os")},129:function(e){e.exports=require("child_process")},152:function(e,t,r){e.exports=globSync;globSync.GlobSync=GlobSync;var i=r(747);var n=r(694);var a=r(461);var s=a.Minimatch;var o=r(202).Glob;var c=r(669);var l=r(622);var u=r(357);var f=r(792);var h=r(992);var p=h.alphasort;var d=h.alphasorti;var m=h.setopts;var v=h.ownProp;var g=h.childrenIgnored;var b=h.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);m(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++){this._process(this.minimatch.set[i],i,false)}this._finish()}GlobSync.prototype._finish=function(){u(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach(function(t,r){var i=e.matches[r]=Object.create(null);for(var a in t){try{a=e._makeAbs(a);var s=n.realpathSync(a,e.realpathCache);i[s]=true}catch(t){if(t.syscall==="stat")i[e._makeAbs(a)]=true;else throw t}}})}h.finish(this)};GlobSync.prototype._process=function(e,t,r){u(this instanceof GlobSync);var i=0;while(typeof e[i]==="string"){i++}var n;switch(i){case e.length:this._processSimple(e.join("/"),t);return;case 0:n=null;break;default:n=e.slice(0,i).join("/");break}var s=e.slice(i);var o;if(n===null)o=".";else if(f(n)||f(e.join("/"))){if(!n||!f(n))n="/"+n;o=n}else o=n;var c=this._makeAbs(o);if(g(this,o))return;var l=s[0]===a.GLOBSTAR;if(l)this._processGlobStar(n,o,c,s,t,r);else this._processReaddir(n,o,c,s,t,r)};GlobSync.prototype._processReaddir=function(e,t,r,i,n,a){var s=this._readdir(r,a);if(!s)return;var o=i[0];var c=!!this.minimatch.negate;var u=o._glob;var f=this.dot||u.charAt(0)===".";var h=[];for(var p=0;p<s.length;p++){var d=s[p];if(d.charAt(0)!=="."||f){var m;if(c&&!e){m=!d.match(o)}else{m=d.match(o)}if(m)h.push(d)}}var v=h.length;if(v===0)return;if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var p=0;p<v;p++){var d=h[p];if(e){if(e.slice(-1)!=="/")d=e+"/"+d;else d=e+d}if(d.charAt(0)==="/"&&!this.nomount){d=l.join(this.root,d)}this._emitMatch(n,d)}return}i.shift();for(var p=0;p<v;p++){var d=h[p];var g;if(e)g=[e,d];else g=[d];this._process(g.concat(i),n,a)}};GlobSync.prototype._emitMatch=function(e,t){if(b(this,t))return;var r=this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute){t=r}if(this.matches[e][t])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=true;if(this.stat)this._stat(t)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var t;var r;var n;try{r=i.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var a=r&&r.isSymbolicLink();this.symlinks[e]=a;if(!a&&r&&!r.isDirectory())this.cache[e]="FILE";else t=this._readdir(e,false);return t};GlobSync.prototype._readdir=function(e,t){var r;if(t&&!v(this.symlinks,e))return this._readdirInGlobStar(e);if(v(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,i.readdirSync(e))}catch(t){this._readdirError(e,t);return null}};GlobSync.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat){for(var r=0;r<t.length;r++){var i=t[r];if(e==="/")i=e+i;else i=e+"/"+i;this.cache[i]=true}}this.cache[e]=t;return t};GlobSync.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);this.cache[r]="FILE";if(r===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=t.code;throw i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw t;if(!this.silent)console.error("glob error",t);break}};GlobSync.prototype._processGlobStar=function(e,t,r,i,n,a){var s=this._readdir(r,a);if(!s)return;var o=i.slice(1);var c=e?[e]:[];var l=c.concat(o);this._process(l,n,false);var u=s.length;var f=this.symlinks[r];if(f&&a)return;for(var h=0;h<u;h++){var p=s[h];if(p.charAt(0)==="."&&!this.dot)continue;var d=c.concat(s[h],o);this._process(d,n,true);var m=c.concat(s[h],i);this._process(m,n,true)}};GlobSync.prototype._processSimple=function(e,t){var r=this._stat(e);if(!this.matches[t])this.matches[t]=Object.create(null);if(!r)return;if(e&&f(e)&&!this.nomount){var i=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=l.join(this.root,e)}else{e=l.resolve(this.root,e);if(i)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e)};GlobSync.prototype._stat=function(e){var t=this._makeAbs(e);var r=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&v(this.cache,t)){var n=this.cache[t];if(Array.isArray(n))n="DIR";if(!r||n==="DIR")return n;if(r&&n==="FILE")return false}var a;var s=this.statCache[t];if(!s){var o;try{o=i.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(o&&o.isSymbolicLink()){try{s=i.statSync(t)}catch(e){s=o}}else{s=o}}this.statCache[t]=s;var n=true;if(s)n=s.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||n;if(r&&n==="FILE")return false;return n};GlobSync.prototype._mark=function(e){return h.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return h.makeAbs(this,e)}},202:function(e,t,r){e.exports=glob;var i=r(747);var n=r(694);var a=r(461);var s=a.Minimatch;var o=r(82);var c=r(614).EventEmitter;var l=r(622);var u=r(357);var f=r(792);var h=r(152);var p=r(992);var d=p.alphasort;var m=p.alphasorti;var v=p.setopts;var g=p.ownProp;var b=r(875);var y=r(669);var _=p.childrenIgnored;var w=p.isIgnored;var k=r(798);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return h(e,t)}return new Glob(e,t,r)}glob.sync=h;var E=glob.GlobSync=h.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var i=r.length;while(i--){e[r[i]]=t[r[i]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var i=new Glob(e,r);var n=i.minimatch.set;if(!e)return false;if(n.length>1)return true;for(var a=0;a<n[0].length;a++){if(typeof n[0][a]!=="string")return true}return false};glob.Glob=Glob;o(Glob,c);function Glob(e,t,r){if(typeof t==="function"){r=t;t=null}if(t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new E(e,t)}if(!(this instanceof Glob))return new Glob(e,t,r);v(this,e,t);this._didRealPath=false;var i=this.minimatch.set.length;this.matches=new Array(i);if(typeof r==="function"){r=k(r);this.on("error",r);this.on("end",function(e){r(null,e)})}var n=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(i===0)return done();var a=true;for(var s=0;s<i;s++){this._process(this.minimatch.set[s],s,false,done)}a=false;function done(){--n._processing;if(n._processing<=0){if(a){process.nextTick(function(){n._finish()})}else{n._finish()}}}}Glob.prototype._finish=function(){u(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var t=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--e===0)t._finish()}};Glob.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var i=Object.keys(r);var a=this;var s=i.length;if(s===0)return t();var o=this.matches[e]=Object.create(null);i.forEach(function(r,i){r=a._makeAbs(r);n.realpath(r,a.realpathCache,function(i,n){if(!i)o[n]=true;else if(i.syscall==="stat")o[r]=true;else a.emit("error",i);if(--s===0){a.matches[e]=o;t()}})})};Glob.prototype._mark=function(e){return p.mark(this,e)};Glob.prototype._makeAbs=function(e){return p.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<i.length;t++){var n=i[t];this._processing--;this._process(n[0],n[1],n[2],n[3])}}}};Glob.prototype._process=function(e,t,r,i){u(this instanceof Glob);u(typeof i==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,t,r,i]);return}var n=0;while(typeof e[n]==="string"){n++}var s;switch(n){case e.length:this._processSimple(e.join("/"),t,i);return;case 0:s=null;break;default:s=e.slice(0,n).join("/");break}var o=e.slice(n);var c;if(s===null)c=".";else if(f(s)||f(e.join("/"))){if(!s||!f(s))s="/"+s;c=s}else c=s;var l=this._makeAbs(c);if(_(this,c))return i();var h=o[0]===a.GLOBSTAR;if(h)this._processGlobStar(s,c,l,o,t,r,i);else this._processReaddir(s,c,l,o,t,r,i)};Glob.prototype._processReaddir=function(e,t,r,i,n,a,s){var o=this;this._readdir(r,a,function(c,l){return o._processReaddir2(e,t,r,i,n,a,l,s)})};Glob.prototype._processReaddir2=function(e,t,r,i,n,a,s,o){if(!s)return o();var c=i[0];var u=!!this.minimatch.negate;var f=c._glob;var h=this.dot||f.charAt(0)===".";var p=[];for(var d=0;d<s.length;d++){var m=s[d];if(m.charAt(0)!=="."||h){var v;if(u&&!e){v=!m.match(c)}else{v=m.match(c)}if(v)p.push(m)}}var g=p.length;if(g===0)return o();if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var d=0;d<g;d++){var m=p[d];if(e){if(e!=="/")m=e+"/"+m;else m=e+m}if(m.charAt(0)==="/"&&!this.nomount){m=l.join(this.root,m)}this._emitMatch(n,m)}return o()}i.shift();for(var d=0;d<g;d++){var m=p[d];var b;if(e){if(e!=="/")m=e+"/"+m;else m=e+m}this._process([m].concat(i),n,a,o)}o()};Glob.prototype._emitMatch=function(e,t){if(this.aborted)return;if(w(this,t))return;if(this.paused){this._emitQueue.push([e,t]);return}var r=f(t)?t:this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute)t=r;if(this.matches[e][t])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=true;var n=this.statCache[r];if(n)this.emit("stat",t,n);this.emit("match",t)};Glob.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,false,t);var r="lstat\0"+e;var n=this;var a=b(r,lstatcb_);if(a)i.lstat(e,a);function lstatcb_(r,i){if(r&&r.code==="ENOENT")return t();var a=i&&i.isSymbolicLink();n.symlinks[e]=a;if(!a&&i&&!i.isDirectory()){n.cache[e]="FILE";t()}else n._readdir(e,false,t)}};Glob.prototype._readdir=function(e,t,r){if(this.aborted)return;r=b("readdir\0"+e+"\0"+t,r);if(!r)return;if(t&&!g(this.symlinks,e))return this._readdirInGlobStar(e,r);if(g(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var a=this;i.readdir(e,readdirCb(this,e,r))};function readdirCb(e,t,r){return function(i,n){if(i)e._readdirError(t,i,r);else e._readdirEntries(t,n,r)}}Glob.prototype._readdirEntries=function(e,t,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var i=0;i<t.length;i++){var n=t[i];if(e==="/")n=e+n;else n=e+"/"+n;this.cache[n]=true}}this.cache[e]=t;return r(null,t)};Glob.prototype._readdirError=function(e,t,r){if(this.aborted)return;switch(t.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(e);this.cache[i]="FILE";if(i===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=t.code;this.emit("error",n);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",t);this.abort()}if(!this.silent)console.error("glob error",t);break}return r()};Glob.prototype._processGlobStar=function(e,t,r,i,n,a,s){var o=this;this._readdir(r,a,function(c,l){o._processGlobStar2(e,t,r,i,n,a,l,s)})};Glob.prototype._processGlobStar2=function(e,t,r,i,n,a,s,o){if(!s)return o();var c=i.slice(1);var l=e?[e]:[];var u=l.concat(c);this._process(u,n,false,o);var f=this.symlinks[r];var h=s.length;if(f&&a)return o();for(var p=0;p<h;p++){var d=s[p];if(d.charAt(0)==="."&&!this.dot)continue;var m=l.concat(s[p],c);this._process(m,n,true,o);var v=l.concat(s[p],i);this._process(v,n,true,o)}o()};Glob.prototype._processSimple=function(e,t,r){var i=this;this._stat(e,function(n,a){i._processSimple2(e,t,n,a,r)})};Glob.prototype._processSimple2=function(e,t,r,i,n){if(!this.matches[t])this.matches[t]=Object.create(null);if(!i)return n();if(e&&f(e)&&!this.nomount){var a=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=l.join(this.root,e)}else{e=l.resolve(this.root,e);if(a)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e);n()};Glob.prototype._stat=function(e,t){var r=this._makeAbs(e);var n=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&g(this.cache,r)){var a=this.cache[r];if(Array.isArray(a))a="DIR";if(!n||a==="DIR")return t(null,a);if(n&&a==="FILE")return t()}var s;var o=this.statCache[r];if(o!==undefined){if(o===false)return t(null,o);else{var c=o.isDirectory()?"DIR":"FILE";if(n&&c==="FILE")return t();else return t(null,c,o)}}var l=this;var u=b("stat\0"+r,lstatcb_);if(u)i.lstat(r,u);function lstatcb_(n,a){if(a&&a.isSymbolicLink()){return i.stat(r,function(i,n){if(i)l._stat2(e,r,null,a,t);else l._stat2(e,r,i,n,t)})}else{l._stat2(e,r,n,a,t)}}};Glob.prototype._stat2=function(e,t,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return n()}var a=e.slice(-1)==="/";this.statCache[t]=i;if(t.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,false,i);var s=true;if(i)s=i.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||s;if(a&&s==="FILE")return n();return n(null,s,i)}},306:function(e){e.exports=function(e,r){var i=[];for(var n=0;n<e.length;n++){var a=r(e[n],n);if(t(a))i.push.apply(i,a);else i.push(a)}return i};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},357:function(e){e.exports=require("assert")},372:function(e,t,r){var i=r(306);var n=r(11);e.exports=expandTop;var a="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(a).split("\\{").join(s).split("\\}").join(o).split("\\,").join(c).split("\\.").join(l)}function unescapeBraces(e){return e.split(a).join("\\").split(s).join("{").split(o).join("}").split(c).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=n("{","}",e);if(!r)return e.split(",");var i=r.pre;var a=r.body;var s=r.post;var o=i.split(",");o[o.length-1]+="{"+a+"}";var c=parseCommaParts(s);if(s.length){o[o.length-1]+=c.shift();o.push.apply(o,c)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var a=n("{","}",e);if(!a||/\$$/.test(a.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var l=s||c;var u=a.body.indexOf(",")>=0;if(!l&&!u){if(a.post.match(/,.*\}/)){e=a.pre+"{"+a.body+o+a.post;return expand(e)}return[e]}var f;if(l){f=a.body.split(/\.\./)}else{f=parseCommaParts(a.body);if(f.length===1){f=expand(f[0],false).map(embrace);if(f.length===1){var h=a.post.length?expand(a.post,false):[""];return h.map(function(e){return a.pre+f[0]+e})}}}var p=a.pre;var h=a.post.length?expand(a.post,false):[""];var d;if(l){var m=numeric(f[0]);var v=numeric(f[1]);var g=Math.max(f[0].length,f[1].length);var b=f.length==3?Math.abs(numeric(f[2])):1;var y=lte;var _=v<m;if(_){b*=-1;y=gte}var w=f.some(isPadded);d=[];for(var k=m;y(k,v);k+=b){var E;if(c){E=String.fromCharCode(k);if(E==="\\")E=""}else{E=String(k);if(w){var S=g-E.length;if(S>0){var x=new Array(S+1).join("0");if(k<0)E="-"+x+E.slice(1);else E=x+E}}}d.push(E)}}else{d=i(f,function(e){return expand(e,false)})}for(var O=0;O<d.length;O++){for(var j=0;j<h.length;j++){var A=p+d[O]+h[j];if(!t||l||A)r.push(A)}}return r}},407:function(e){e.exports={name:"@midwayjs/ncc",version:"0.22.1",repository:"midwayjs/ncc",license:"MIT",main:"./dist/ncc/index.js",bin:{ncc:"./dist/ncc/cli.js"},scripts:{build:"node scripts/build","build-test-binary":"cd test/binary && node-gyp rebuild && cp build/Release/hello.node ../integration/hello.node",codecov:"codecov",test:"node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest","test-coverage":'node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest --coverage --globals "{\\"coverage\\":true}" && codecov',prepublish:"in-publish && npm test || not-in-publish"},devDependencies:{"@azure/cosmos":"^2.0.5","@bugsnag/js":"^5.0.1","@ffmpeg-installer/ffmpeg":"^1.0.17","@google-cloud/bigquery":"^2.0.1","@google-cloud/firestore":"^2.2.0","@sentry/node":"^4.3.0","@tensorflow/tfjs-node":"^0.3.0","@zeit/webpack-asset-relocator-loader":"0.6.2","analytics-node":"^3.3.0","apollo-server-express":"^2.2.2",arg:"^4.1.0",auth0:"^2.14.0","aws-sdk":"^2.356.0",axios:"^0.18.1","azure-storage":"^2.10.2","browserify-middleware":"^8.1.1",bytes:"^3.0.0",canvas:"^2.2.0",chromeless:"^1.5.2",codecov:"^3.6.5",consolidate:"^0.15.1",copy:"^0.3.2","core-js":"^2.5.7",cowsay:"^1.3.1",esm:"^3.2.22",express:"^4.16.4","fetch-h2":"^1.0.2",firebase:"^6.1.1","firebase-admin":"^6.3.0","fluent-ffmpeg":"^2.1.2",fontkit:"^1.7.7","get-folder-size":"^2.0.0",glob:"^7.1.3",got:"^9.3.2","graceful-fs":"^4.1.15",graphql:"^14.0.2",highlights:"^3.1.1","hot-shots":"^5.9.2","in-publish":"^2.0.0",ioredis:"^4.2.0","isomorphic-unfetch":"^3.0.0",jest:"^23.6.0",jimp:"^0.5.6",jugglingdb:"2.0.1",koa:"^2.6.2",leveldown:"^4.0.1",lighthouse:"^5.0.0",loopback:"^3.24.0",mailgun:"^0.5.0",mariadb:"^2.0.1-beta",memcached:"^2.2.2",mkdirp:"^0.5.1",mongoose:"^5.3.12",mysql:"^2.16.0","node-gyp":"^3.8.0",npm:"^6.13.4",oracledb:"^3.1.2",passport:"^0.4.0","passport-google-oauth":"^1.0.0","path-platform":"^0.11.15",pdf2json:"^1.1.8",pdfkit:"^0.8.3",pg:"^7.6.1",pug:"^2.0.3",react:"^16.6.3","react-dom":"^16.6.3",redis:"^2.8.0",request:"^2.88.0",rxjs:"^6.3.3",saslprep:"^1.0.2",sequelize:"^5.8.6",sharp:"^0.21.1","shebang-loader":"^0.0.1","socket.io":"^2.2.0","source-map-support":"^0.5.9",stripe:"^6.15.0",swig:"^1.4.2",terser:"^3.11.0","the-answer":"^1.0.0","tiny-json-http":"^7.0.2","ts-loader":"^5.3.1","tsconfig-paths":"^3.7.0","tsconfig-paths-webpack-plugin":"^3.2.0",twilio:"^3.23.2",typescript:"^3.2.2",vm2:"^3.6.6",vue:"^2.5.17","vue-server-renderer":"^2.5.17",webpack:"5.0.0-alpha.17",when:"^3.7.8","yoga-layout":"^1.9.3"}}},417:function(e){e.exports=require("crypto")},460:function(e,t,r){"use strict";const i=r(747);const n=r(622);const a=r(28);function readSizeRecursive(e,t,r,s){let o;let c;if(!s){o=r;c=null}else{o=s;c=r}i.lstat(t,function lstat(r,s){let l=!r?s.size||0:0;if(s){if(e.has(s.ino)){return o(null,0)}e.add(s.ino)}if(!r&&s.isDirectory()){i.readdir(t,(r,i)=>{if(r){return o(r)}a(i,5e3,(r,i)=>{readSizeRecursive(e,n.join(t,r),c,(e,t)=>{if(!e){l+=t}i(e)})},e=>{o(e,l)})})}else{if(c&&c.test(t)){l=0}o(r,l)}})}e.exports=((...e)=>{e.unshift(new Set);return readSizeRecursive(...e)})},461:function(e,t,r){e.exports=minimatch;minimatch.Minimatch=Minimatch;var i={sep:"/"};try{i=r(622)}catch(e){}var n=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var a=r(372);var s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var o="[^/]";var c=o+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var u="(?:(?!(?:\\/|^)\\.).)*?";var f=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce(function(e,t){e[t]=true;return e},{})}var h=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,i,n){return minimatch(r,e,t)}}function ext(e,t){e=e||{};t=t||{};var r={};Object.keys(t).forEach(function(e){r[e]=t[e]});Object.keys(e).forEach(function(t){r[t]=e[t]});return r}minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch;var r=function minimatch(r,i,n){return t.minimatch(r,i,ext(e,n))};r.Minimatch=function Minimatch(r,i){return new t.Minimatch(r,ext(e,i))};return r};Minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return Minimatch;return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}if(t.trim()==="")return e==="";return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!t)t={};e=e.trim();if(i.sep!=="/"){e=e.split(i.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=console.error;this.debug(this.pattern,r);r=this.globParts=r.map(function(e){return e.split(h)});this.debug(this.pattern,r);r=r.map(function(e,t,r){return e.map(this.parse,this)},this);this.debug(this.pattern,r);r=r.filter(function(e){return e.indexOf(false)===-1});this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var i=0;if(r.nonegate)return;for(var n=0,a=e.length;n<a&&e.charAt(n)==="!";n++){t=!t;i++}if(i)this.pattern=e.substr(i);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;if(typeof e==="undefined"){throw new TypeError("undefined pattern")}if(t.nobrace||!e.match(/\{.*\}/)){return[e]}return a(e)}Minimatch.prototype.parse=parse;var p={};function parse(e,t){if(e.length>1024*64){throw new TypeError("pattern is too long")}var r=this.options;if(!r.noglobstar&&e==="**")return n;if(e==="")return"";var i="";var a=!!r.nocase;var l=false;var u=[];var h=[];var d;var m=false;var v=-1;var g=-1;var b=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var y=this;function clearStateChar(){if(d){switch(d){case"*":i+=c;a=true;break;case"?":i+=o;a=true;break;default:i+="\\"+d;break}y.debug("clearStateChar %j %j",d,i);d=false}}for(var _=0,w=e.length,k;_<w&&(k=e.charAt(_));_++){this.debug("%s\t%s %s %j",e,_,i,k);if(l&&f[k]){i+="\\"+k;l=false;continue}switch(k){case"/":return false;case"\\":clearStateChar();l=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,_,i,k);if(m){this.debug(" in class");if(k==="!"&&_===g+1)k="^";i+=k;continue}y.debug("call clearStateChar %j",d);clearStateChar();d=k;if(r.noext)clearStateChar();continue;case"(":if(m){i+="(";continue}if(!d){i+="\\(";continue}u.push({type:d,start:_-1,reStart:i.length,open:s[d].open,close:s[d].close});i+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,i);d=false;continue;case")":if(m||!u.length){i+="\\)";continue}clearStateChar();a=true;var E=u.pop();i+=E.close;if(E.type==="!"){h.push(E)}E.reEnd=i.length;continue;case"|":if(m||!u.length||l){i+="\\|";l=false;continue}clearStateChar();i+="|";continue;case"[":clearStateChar();if(m){i+="\\"+k;continue}m=true;g=_;v=i.length;i+=k;continue;case"]":if(_===g+1||!m){i+="\\"+k;l=false;continue}if(m){var S=e.substring(g+1,_);try{RegExp("["+S+"]")}catch(e){var x=this.parse(S,p);i=i.substr(0,v)+"\\["+x[0]+"\\]";a=a||x[1];m=false;continue}}a=true;m=false;i+=k;continue;default:clearStateChar();if(l){l=false}else if(f[k]&&!(k==="^"&&m)){i+="\\"}i+=k}}if(m){S=e.substr(g+1);x=this.parse(S,p);i=i.substr(0,v)+"\\["+x[0];a=a||x[1]}for(E=u.pop();E;E=u.pop()){var O=i.slice(E.reStart+E.open.length);this.debug("setting tail",i,E);O=O.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,r){if(!r){r="\\"}return t+t+r+"|"});this.debug("tail=%j\n %s",O,O,E,i);var j=E.type==="*"?c:E.type==="?"?o:"\\"+E.type;a=true;i=i.slice(0,E.reStart)+j+"\\("+O}clearStateChar();if(l){i+="\\\\"}var A=false;switch(i.charAt(0)){case".":case"[":case"(":A=true}for(var G=h.length-1;G>-1;G--){var T=h[G];var M=i.slice(0,T.reStart);var N=i.slice(T.reStart,T.reEnd-8);var I=i.slice(T.reEnd-8,T.reEnd);var C=i.slice(T.reEnd);I+=C;var R=M.split("(").length-1;var D=C;for(_=0;_<R;_++){D=D.replace(/\)[+*?]?/,"")}C=D;var P="";if(C===""&&t!==p){P="$"}var q=M+N+C+P+I;i=q}if(i!==""&&a){i="(?=.)"+i}if(A){i=b+i}if(t===p){return[i,a]}if(!a){return globUnescape(e)}var $=r.nocase?"i":"";try{var L=new RegExp("^"+i+"$",$)}catch(e){return new RegExp("$.")}L._glob=e;L._src=i;return L}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?c:t.dot?l:u;var i=t.nocase?"i":"";var a=e.map(function(e){return e.map(function(e){return e===n?r:typeof e==="string"?regExpEscape(e):e._src}).join("\\/")}).join("|");a="^(?:"+a+")$";if(this.negate)a="^(?!"+a+").*$";try{this.regexp=new RegExp(a,i)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var i=new Minimatch(t,r);e=e.filter(function(e){return i.match(e)});if(i.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=match;function match(e,t){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(i.sep!=="/"){e=e.split(i.sep).join("/")}e=e.split(h);this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var a;var s;for(s=e.length-1;s>=0;s--){a=e[s];if(a)break}for(s=0;s<n.length;s++){var o=n[s];var c=e;if(r.matchBase&&o.length===1){c=[a]}var l=this.matchOne(c,o,t);if(l){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}Minimatch.prototype.matchOne=function(e,t,r){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var a=0,s=0,o=e.length,c=t.length;a<o&&s<c;a++,s++){this.debug("matchOne loop");var l=t[s];var u=e[a];this.debug(t,l,u);if(l===false)return false;if(l===n){this.debug("GLOBSTAR",[t,l,u]);var f=a;var h=s+1;if(h===c){this.debug("** at the end");for(;a<o;a++){if(e[a]==="."||e[a]===".."||!i.dot&&e[a].charAt(0)===".")return false}return true}while(f<o){var p=e[f];this.debug("\nglobstar while",e,f,t,h,p);if(this.matchOne(e.slice(f),t.slice(h),r)){this.debug("globstar found match!",f,o,p);return true}else{if(p==="."||p===".."||!i.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,f,t,h);break}this.debug("globstar swallow a segment, and continue");f++}}if(r){this.debug("\n>>> no match, partial?",e,f,t,h);if(f===o)return true}return false}var d;if(typeof l==="string"){if(i.nocase){d=u.toLowerCase()===l.toLowerCase()}else{d=u===l}this.debug("string match",l,u,d)}else{d=u.match(l);this.debug("pattern match",l,u,d)}if(!d)return false}if(a===o&&s===c){return true}else if(a===o){return r}else if(s===c){var m=a===o-1&&e[a]==="";return m}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},481:function(e,t,r){var i=r(622);var n=process.platform==="win32";var a=r(747);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(s){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var o=i.normalize;if(n){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(n){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=i.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,s={},o={};var u;var f;var h;var p;start();function start(){var t=l.exec(e);u=t[0].length;f=t[0];h=t[0];p="";if(n&&!o[h]){a.lstatSync(h);o[h]=true}}while(u<e.length){c.lastIndex=u;var d=c.exec(e);p=f;f+=d[0];h=p+d[1];u=c.lastIndex;if(o[h]||t&&t[h]===h){continue}var m;if(t&&Object.prototype.hasOwnProperty.call(t,h)){m=t[h]}else{var v=a.lstatSync(h);if(!v.isSymbolicLink()){o[h]=true;if(t)t[h]=h;continue}var g=null;if(!n){var b=v.dev.toString(32)+":"+v.ino.toString(32);if(s.hasOwnProperty(b)){g=s[b]}}if(g===null){a.statSync(h);g=a.readlinkSync(h)}m=i.resolve(p,g);if(t)t[h]=m;if(!n)s[b]=g}e=i.resolve(m,e.slice(u));start()}if(t)t[r]=e;return e};t.realpath=function realpath(e,t,r){if(typeof r!=="function"){r=maybeCallback(t);t=null}e=i.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(r.bind(null,null,t[e]))}var s=e,o={},u={};var f;var h;var p;var d;start();function start(){var t=l.exec(e);f=t[0].length;h=t[0];p=t[0];d="";if(n&&!u[p]){a.lstat(p,function(e){if(e)return r(e);u[p]=true;LOOP()})}else{process.nextTick(LOOP)}}function LOOP(){if(f>=e.length){if(t)t[s]=e;return r(null,e)}c.lastIndex=f;var i=c.exec(e);d=h;h+=i[0];p=d+i[1];f=c.lastIndex;if(u[p]||t&&t[p]===p){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,p)){return gotResolvedLink(t[p])}return a.lstat(p,gotStat)}function gotStat(e,i){if(e)return r(e);if(!i.isSymbolicLink()){u[p]=true;if(t)t[p]=p;return process.nextTick(LOOP)}if(!n){var s=i.dev.toString(32)+":"+i.ino.toString(32);if(o.hasOwnProperty(s)){return gotTarget(null,o[s],p)}}a.stat(p,function(e){if(e)return r(e);a.readlink(p,function(e,t){if(!n)o[s]=t;gotTarget(e,t)})})}function gotTarget(e,n,a){if(e)return r(e);var s=i.resolve(d,n);if(t)t[a]=s;gotResolvedLink(s)}function gotResolvedLink(t){e=i.resolve(t,e.slice(f));start()}}},512:function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var i=e.apply(this,t);var n=t[t.length-1];if(typeof i==="function"&&i!==n){Object.keys(n).forEach(function(e){i[e]=n[e]})}return i}}},612:function(e){e.exports=require("./index.js")},614:function(e){e.exports=require("events")},622:function(e){e.exports=require("path")},669:function(e){e.exports=require("util")},681:function(e){e.exports=/^#![^\n\r]*[\r\n]/},694:function(e,t,r){e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(747);var n=i.realpath;var a=i.realpathSync;var s=process.version;var o=/^v[0-5]\./.test(s);var c=r(481);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(o){return n(e,t,r)}if(typeof t==="function"){r=t;t=null}n(e,t,function(i,n){if(newError(i)){c.realpath(e,t,r)}else{r(i,n)}})}function realpathSync(e,t){if(o){return a(e,t)}try{return a(e,t)}catch(r){if(newError(r)){return c.realpathSync(e,t)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=n;i.realpathSync=a}},747:function(e){e.exports=require("fs")},768:function(e,t,r){var i=r(622);var n=r(747);var a=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,t,r,s){if(typeof t==="function"){r=t;t={}}else if(!t||typeof t!=="object"){t={mode:t}}var o=t.mode;var c=t.fs||n;if(o===undefined){o=a&~process.umask()}if(!s)s=null;var l=r||function(){};e=i.resolve(e);c.mkdir(e,o,function(r){if(!r){s=s||e;return l(null,s)}switch(r.code){case"ENOENT":mkdirP(i.dirname(e),t,function(r,i){if(r)l(r,i);else mkdirP(e,t,l,i)});break;default:c.stat(e,function(e,t){if(e||!t.isDirectory())l(r,s);else l(null,s)});break}})}mkdirP.sync=function sync(e,t,r){if(!t||typeof t!=="object"){t={mode:t}}var s=t.mode;var o=t.fs||n;if(s===undefined){s=a&~process.umask()}if(!r)r=null;e=i.resolve(e);try{o.mkdirSync(e,s);r=r||e}catch(n){switch(n.code){case"ENOENT":r=sync(i.dirname(e),t,r);sync(e,t,r);break;default:var c;try{c=o.statSync(e)}catch(e){throw n}if(!c.isDirectory())throw n;break}}return r}},792:function(e){"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var i=r[1]||"";var n=Boolean(i&&i.charAt(1)!==":");return Boolean(r[2]||n)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},798:function(e,t,r){var i=r(512);e.exports=i(once);e.exports.strict=i(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}},816:function(e,t,r){e.exports=rimraf;rimraf.sync=rimrafSync;var i=r(357);var n=r(622);var a=r(747);var s=undefined;try{s=r(202)}catch(e){}var o=parseInt("666",8);var c={nosort:true,silent:true};var l=0;var u=process.platform==="win32";function defaults(e){var t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach(function(t){e[t]=e[t]||a[t];t=t+"Sync";e[t]=e[t]||a[t]});e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&s===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||c}function rimraf(e,t,r){if(typeof t==="function"){r=t;t={}}i(e,"rimraf: missing path");i.equal(typeof e,"string","rimraf: path should be a string");i.equal(typeof r,"function","rimraf: callback function required");i(t,"rimraf: invalid options argument provided");i.equal(typeof t,"object","rimraf: options should be object");defaults(t);var n=0;var a=null;var o=0;if(t.disableGlob||!s.hasMagic(e))return afterGlob(null,[e]);t.lstat(e,function(r,i){if(!r)return afterGlob(null,[e]);s(e,t.glob,afterGlob)});function next(e){a=a||e;if(--o===0)r(a)}function afterGlob(e,i){if(e)return r(e);o=i.length;if(o===0)return r();i.forEach(function(e){rimraf_(e,t,function CB(r){if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&n<t.maxBusyTries){n++;var i=n*100;return setTimeout(function(){rimraf_(e,t,CB)},i)}if(r.code==="EMFILE"&&l<t.emfileWait){return setTimeout(function(){rimraf_(e,t,CB)},l++)}if(r.code==="ENOENT")r=null}l=0;next(r)})})}}function rimraf_(e,t,r){i(e);i(t);i(typeof r==="function");t.lstat(e,function(i,n){if(i&&i.code==="ENOENT")return r(null);if(i&&i.code==="EPERM"&&u)fixWinEPERM(e,t,i,r);if(n&&n.isDirectory())return rmdir(e,t,i,r);t.unlink(e,function(i){if(i){if(i.code==="ENOENT")return r(null);if(i.code==="EPERM")return u?fixWinEPERM(e,t,i,r):rmdir(e,t,i,r);if(i.code==="EISDIR")return rmdir(e,t,i,r)}return r(i)})})}function fixWinEPERM(e,t,r,n){i(e);i(t);i(typeof n==="function");if(r)i(r instanceof Error);t.chmod(e,o,function(i){if(i)n(i.code==="ENOENT"?null:r);else t.stat(e,function(i,a){if(i)n(i.code==="ENOENT"?null:r);else if(a.isDirectory())rmdir(e,t,r,n);else t.unlink(e,n)})})}function fixWinEPERMSync(e,t,r){i(e);i(t);if(r)i(r instanceof Error);try{t.chmodSync(e,o)}catch(e){if(e.code==="ENOENT")return;else throw r}try{var n=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(n.isDirectory())rmdirSync(e,t,r);else t.unlinkSync(e)}function rmdir(e,t,r,n){i(e);i(t);if(r)i(r instanceof Error);i(typeof n==="function");t.rmdir(e,function(i){if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM"))rmkids(e,t,n);else if(i&&i.code==="ENOTDIR")n(r);else n(i)})}function rmkids(e,t,r){i(e);i(t);i(typeof r==="function");t.readdir(e,function(i,a){if(i)return r(i);var s=a.length;if(s===0)return t.rmdir(e,r);var o;a.forEach(function(i){rimraf(n.join(e,i),t,function(i){if(o)return;if(i)return r(o=i);if(--s===0)t.rmdir(e,r)})})})}function rimrafSync(e,t){t=t||{};defaults(t);i(e,"rimraf: missing path");i.equal(typeof e,"string","rimraf: path should be a string");i(t,"rimraf: missing options");i.equal(typeof t,"object","rimraf: options should be object");var r;if(t.disableGlob||!s.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(i){r=s.sync(e,t.glob)}}if(!r.length)return;for(var n=0;n<r.length;n++){var e=r[n];try{var a=t.lstatSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM"&&u)fixWinEPERMSync(e,t,r)}try{if(a&&a.isDirectory())rmdirSync(e,t,null);else t.unlinkSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return u?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r);if(r.code!=="EISDIR")throw r;rmdirSync(e,t,r)}}}function rmdirSync(e,t,r){i(e);i(t);if(r)i(r instanceof Error);try{t.rmdirSync(e)}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR")throw r;if(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")rmkidsSync(e,t)}}function rmkidsSync(e,t){i(e);i(t);t.readdirSync(e).forEach(function(r){rimrafSync(n.join(e,r),t)});var r=u?100:1;var a=0;do{var s=true;try{var o=t.rmdirSync(e,t);s=false;return o}finally{if(++a<r&&s)continue}}while(true)}},819:function(module,__unusedexports,__webpack_require__){const{resolve:resolve,relative:relative,dirname:dirname,sep:sep,extname:extname}=__webpack_require__(622);const glob=__webpack_require__(202);const shebangRegEx=__webpack_require__(681);const rimraf=__webpack_require__(816);const crypto=__webpack_require__(417);const{writeFileSync:writeFileSync,unlink:unlink,existsSync:existsSync,symlinkSync:symlinkSync}=__webpack_require__(747);const mkdirp=__webpack_require__(768);const{version:nccVersion}=__webpack_require__(407);const usage=`Usage: ncc <cmd> <opts>\n\nCommands:\n build <input-file> [opts]\n run <input-file> [opts]\n cache clean|dir|size\n help\n version\n\nOptions:\n -o, --out [file] Output directory for build (defaults to dist)\n -m, --minify Minify output\n -C, --no-cache Skip build cache population\n -s, --source-map Generate source map\n --no-source-map-register Skip source-map-register source map support\n -e, --external [mod] Skip bundling 'mod'. Can be used many times\n -q, --quiet Disable build summaries / non-error outputs\n -w, --watch Start a watched build\n -t, --transpile-only Use transpileOnly option with the ts-loader\n --v8-cache Emit a build using the v8 compile cache\n --stats-out [file] Emit webpack stats as json to the specified output file\n`;let api=false;if(require.main===require.cache[eval("__filename")]){runCmd(process.argv.slice(2),process.stdout,process.stderr).then(e=>{if(!e)process.exit()}).catch(e=>{if(!e.silent)console.error(e.nccError?e.message:e);process.exit(e.exitCode||1)})}else{module.exports=runCmd;api=true}function renderSummary(e,t,r,i,n,a){if(n&&!n.endsWith(sep))n+=sep;const s=Math.round(Buffer.byteLength(e,"utf8")/1024);const o=t?Math.round(Buffer.byteLength(t,"utf8")/1024):0;const c=Object.create(null);let l=s;let u=8+(t?4:0);for(const e of Object.keys(r)){const t=r[e].source;const i=Math.round((t.byteLength||Buffer.byteLength(t,"utf8"))/1024);c[e]=i;l+=i;if(e.length>u)u=e.length}const f=Object.keys(r).sort((e,t)=>c[e]>c[t]?1:-1);const h=l.toString().length;let p=`${s.toString().padStart(h," ")}kB ${n}index${i}`;let d=t?`${o.toString().padStart(h," ")}kB ${n}index${i}.map`:"";let m="",v=true;for(const e of f){if(v)v=false;else m+="\n";if(s<c[e]&&p){m+=p+"\n";p=null}if(o&&o<c[e]&&d){m+=d+"\n";d=null}m+=`${c[e].toString().padStart(h," ")}kB ${n}${e}`}if(p){m+=(v?"":"\n")+p;v=false}if(d)m+=(v?"":"\n")+d;m+=`\n${l}kB [${a}ms] - ncc ${nccVersion}`;return m}function nccError(e,t=1){const r=new Error(e);r.nccError=true;r.exitCode=t;throw r}async function runCmd(argv,stdout,stderr){let args;try{args=__webpack_require__(847)({"--debug":Boolean,"-d":"--debug","--external":[String],"-e":"--external","--out":String,"-o":"--out","--minify":Boolean,"-m":"--minify","--source-map":Boolean,"-s":"--source-map","--no-cache":Boolean,"-C":"--no-cache","--no-source-map-register":Boolean,"--quiet":Boolean,"-q":"--quiet","--watch":Boolean,"-w":"--watch","--v8-cache":Boolean,"--transpile-only":Boolean,"-t":"--transpile-only","--stats-out":String},{permissive:false,argv:argv})}catch(e){if(e.message.indexOf("Unknown or unexpected option")===-1)throw e;nccError(e.message+`\n${usage}`,2)}if(args._.length===0)nccError(`Error: No command specified\n${usage}`,2);let run=false;let outDir=args["--out"];const quiet=args["--quiet"];const statsOutFile=args["--stats-out"];switch(args._[0]){case"cache":if(args._.length>2)errTooManyArguments("cache");const flags=Object.keys(args).filter(e=>e.startsWith("--"));if(flags.length)errFlagNotCompatible(flags[0],"cache");const cacheDir=__webpack_require__(946);switch(args._[1]){case"clean":rimraf.sync(cacheDir);break;case"dir":stdout.write(cacheDir+"\n");break;case"size":__webpack_require__(460)(cacheDir,(e,t)=>{if(e){if(e.code==="ENOENT"){stdout.write("0MB\n");return}throw e}stdout.write(`${(t/1024/1024).toFixed(2)}MB\n`)});break;default:errInvalidCommand("cache "+args._[1])}break;case"run":if(args._.length>2)errTooManyArguments("run");if(args["--out"])errFlagNotCompatible("--out","run");if(args["--watch"])errFlagNotCompatible("--watch","run");outDir=resolve(__webpack_require__(87).tmpdir(),crypto.createHash("md5").update(resolve(args._[1]||".")).digest("hex"));if(existsSync(outDir))rimraf.sync(outDir);run=true;case"build":if(args._.length>2)errTooManyArguments("build");let startTime=Date.now();let ps;const buildFile=eval("require.resolve")(resolve(args._[1]||"."));const ext=buildFile.endsWith(".cjs")?".cjs":".js";const ncc=__webpack_require__(612)(buildFile,{debugLog:args["--debug"],minify:args["--minify"],externals:args["--external"],sourceMap:args["--source-map"]||run,sourceMapRegister:args["--no-source-map-register"]?false:undefined,cache:args["--no-cache"]?false:undefined,watch:args["--watch"],v8cache:args["--v8-cache"],transpileOnly:args["--transpile-only"],quiet:quiet});async function handler({err:e,code:t,map:r,assets:i,symlinks:n,stats:a}){if(e){stderr.write(e+"\n");stdout.write("Watching for changes...\n");return}outDir=outDir||resolve("dist");mkdirp.sync(outDir);await Promise.all((await new Promise((e,t)=>glob(outDir+"/**/*.(js|cjs)",(r,i)=>r?t(r):e(i)))).map(e=>new Promise((t,r)=>unlink(e,e=>e?r(e):t()))));writeFileSync(`${outDir}/index${ext}`,t,{mode:t.match(shebangRegEx)?511:438});if(r)writeFileSync(`${outDir}/index${ext}.map`,r);for(const e of Object.keys(i)){const t=outDir+"/"+e;mkdirp.sync(dirname(t));writeFileSync(t,i[e].source,{mode:i[e].permissions})}for(const e of Object.keys(n)){const t=outDir+"/"+e;symlinkSync(n[e],t)}if(!quiet){stdout.write(renderSummary(t,r,i,ext,run?"":relative(process.cwd(),outDir),Date.now()-startTime)+"\n");if(args["--watch"])stdout.write("Watching for changes...\n")}if(statsOutFile)writeFileSync(statsOutFile,JSON.stringify(a.toJson()));if(run){const e=resolve("/node_modules");let t=dirname(buildFile)+"/node_modules";do{if(t===e){t=undefined;break}if(existsSync(t))break}while(t=resolve(t,"../../node_modules"));if(t)symlinkSync(t,outDir+"/node_modules","junction");ps=__webpack_require__(129).fork(`${outDir}/index${ext}`,{stdio:api?"pipe":"inherit"});if(api){ps.stdout.pipe(stdout);ps.stderr.pipe(stderr)}return new Promise((e,t)=>{function exit(r){__webpack_require__(816).sync(outDir);if(r===0)e();else t({silent:true,exitCode:r});process.off("SIGTERM",exit);process.off("SIGINT",exit)}ps.on("exit",exit);process.on("SIGTERM",exit);process.on("SIGINT",exit)})}}if(args["--watch"]){ncc.handler(handler);ncc.rebuild(()=>{if(ps)ps.kill();startTime=Date.now();stdout.write("File change, rebuilding...\n")});return true}else{return ncc.then(handler)}break;case"help":nccError(usage,2);case"version":stdout.write(__webpack_require__(407).version+"\n");break;default:errInvalidCommand(args._[0],2)}function errTooManyArguments(e){nccError(`Error: Too many ${e} arguments provided\n${usage}`,2)}function errFlagNotCompatible(e,t){nccError(`Error: ${e} flag is not compatible with ncc ${t}\n${usage}`,2)}function errInvalidCommand(e){nccError(`Error: Invalid command "${e}"\n${usage}`,2)}process.on("unhandledRejection",e=>{throw e})}},847:function(e){const t=Symbol("arg flag");function arg(e,{argv:r=process.argv.slice(2),permissive:i=false,stopAtPositional:n=false}={}){if(!e){throw new Error("Argument specification object is required")}const a={_:[]};const s={};const o={};for(const r of Object.keys(e)){if(!r){throw new TypeError("Argument key cannot be an empty string")}if(r[0]!=="-"){throw new TypeError(`Argument key must start with '-' but found: '${r}'`)}if(r.length===1){throw new TypeError(`Argument key must have a name; singular '-' keys are not allowed: ${r}`)}if(typeof e[r]==="string"){s[r]=e[r];continue}let i=e[r];let n=false;if(Array.isArray(i)&&i.length===1&&typeof i[0]==="function"){const[e]=i;i=((t,r,i=[])=>{i.push(e(t,r,i[i.length-1]));return i});n=e===Boolean||e[t]===true}else if(typeof i==="function"){n=i===Boolean||i[t]===true}else{throw new TypeError(`Type missing or not a function or valid array type: ${r}`)}if(r[1]!=="-"&&r.length>2){throw new TypeError(`Short argument keys (with a single hyphen) must have only one character: ${r}`)}o[r]=[i,n]}for(let e=0,t=r.length;e<t;e++){const t=r[e];if(n&&a._.length>0){a._=a._.concat(r.slice(e));break}if(t==="--"){a._=a._.concat(r.slice(e+1));break}if(t.length>1&&t[0]==="-"){const n=t[1]==="-"||t.length===2?[t]:t.slice(1).split("").map(e=>`-${e}`);for(let t=0;t<n.length;t++){const c=n[t];const[l,u]=c[1]==="-"?c.split(/=(.*)/,2):[c,undefined];let f=l;while(f in s){f=s[f]}if(!(f in o)){if(i){a._.push(c);continue}else{const e=new Error(`Unknown or unexpected option: ${l}`);e.code="ARG_UNKNOWN_OPTION";throw e}}const[h,p]=o[f];if(!p&&t+1<n.length){throw new TypeError(`Option requires argument (but was followed by another short argument): ${l}`)}if(p){a[f]=h(true,f,a[f])}else if(u===undefined){if(r.length<e+2||r[e+1].length>1&&r[e+1][0]==="-"&&!(r[e+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(h===Number||typeof BigInt!=="undefined"&&h===BigInt))){const e=l===f?"":` (alias for ${f})`;throw new Error(`Option requires argument: ${l}${e}`)}a[f]=h(r[e+1],f,a[f]);++e}else{a[f]=h(u,f,a[f])}}}else{a._.push(t)}}return a}arg.flag=(e=>{e[t]=true;return e});arg.COUNT=arg.flag((e,t,r)=>(r||0)+1);e.exports=arg},875:function(e,t,r){var i=r(512);var n=Object.create(null);var a=r(798);e.exports=i(inflight);function inflight(e,t){if(n[e]){n[e].push(t);return null}else{n[e]=[t];return makeres(e)}}function makeres(e){return a(function RES(){var t=n[e];var r=t.length;var i=slice(arguments);try{for(var a=0;a<r;a++){t[a].apply(null,i)}}finally{if(t.length>r){t.splice(0,r);process.nextTick(function(){RES.apply(null,i)})}else{delete n[e]}}})}function slice(e){var t=e.length;var r=[];for(var i=0;i<t;i++)r[i]=e[i];return r}},901:function(e){if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype;e.prototype=new r;e.prototype.constructor=e}}}},946:function(e,t,r){e.exports=r(87).tmpdir()+"/ncc-cache"},992:function(e,t,r){t.alphasort=alphasort;t.alphasorti=alphasorti;t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var i=r(622);var n=r(461);var a=r(792);var s=n.Minimatch;function alphasorti(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function alphasort(e,t){return e.localeCompare(t)}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new s(r,{dot:true})}return{matcher:new s(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var n=process.cwd();if(!ownProp(r,"cwd"))e.cwd=n;else{e.cwd=i.resolve(r.cwd);e.changedCwd=e.cwd!==n}e.root=r.root||i.resolve(e.cwd,"/");e.root=i.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=a(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;e.minimatch=new s(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var i=0,n=e.matches.length;i<n;i++){var a=e.matches[i];if(!a||Object.keys(a).length===0){if(e.nonull){var s=e.minimatch.globSet[i];if(t)r.push(s);else r[s]=true}}else{var o=Object.keys(a);if(t)r.push.apply(r,o);else o.forEach(function(e){r[e]=true})}}if(!t)r=Object.keys(r);if(!e.nosort)r=r.sort(e.nocase?alphasorti:alphasort);if(e.mark){for(var i=0;i<r.length;i++){r[i]=e._mark(r[i])}if(e.nodir){r=r.filter(function(t){var r=!/\/$/.test(t);var i=e.cache[t]||e.cache[makeAbs(e,t)];if(r&&i)r=i!=="DIR"&&!Array.isArray(i);return r})}}if(e.ignore.length)r=r.filter(function(t){return!isIgnored(e,t)});e.found=r}function mark(e,t){var r=makeAbs(e,t);var i=e.cache[r];var n=t;if(i){var a=i==="DIR"||Array.isArray(i);var s=t.slice(-1)==="/";if(a&&!s)n+="/";else if(!a&&s)n=n.slice(0,-1);if(n!==t){var o=makeAbs(e,n);e.statCache[o]=e.statCache[r];e.cache[o]=e.cache[r]}}return n}function makeAbs(e,t){var r=t;if(t.charAt(0)==="/"){r=i.join(e.root,t)}else if(a(t)||t===""){r=t}else if(e.changedCwd){r=i.resolve(e.cwd,t)}else{r=i.resolve(t)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some(function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))})}function childrenIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some(function(e){return!!(e.gmatcher&&e.gmatcher.match(t))})}}});

@@ -1,1 +0,1 @@

module.exports=function(e,r){"use strict";var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var _=t[r]={i:r,l:false,exports:{}};e[r].call(_.exports,_,_.exports,__webpack_require__);_.l=true;return _.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(431)}return startup()}({170:function(e){e.exports=function(e){this.cacheable&&this.cacheable();if(typeof e==="string"&&/^#!/.test(e)){e=e.replace(/^#![^\n\r]*[\r\n]/,"")}return e}},431:function(e,r,t){e.exports=t(170)}});
module.exports=function(e,r){"use strict";var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var _=t[r]={i:r,l:false,exports:{}};e[r].call(_.exports,_,_.exports,__webpack_require__);_.l=true;return _.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(431)}return startup()}({61:function(e){e.exports=function(e){this.cacheable&&this.cacheable();if(typeof e==="string"&&/^#!/.test(e)){e=e.replace(/^#![^\n\r]*[\r\n]/,"")}return e}},431:function(e,r,t){e.exports=t(61)}});

@@ -23,5 +23,5 @@ /*! *****************************************************************************

/**
* expose the [[Description]] internal slot of a symbol directly
* Expose the [[Description]] internal slot of a symbol directly.
*/
readonly description: string;
readonly description: string | undefined;
}

@@ -22,3 +22,5 @@ /*! *****************************************************************************

/// <reference lib="es2019" />
/// <reference lib="es2020.bigint" />
/// <reference lib="es2020.promise" />
/// <reference lib="es2020.string" />
/// <reference lib="es2020.symbol.wellknown" />

@@ -22,3 +22,2 @@ /*! *****************************************************************************

/// <reference lib="es2020" />
/// <reference lib="esnext.bigint" />
/// <reference lib="esnext.intl" />
{
"name": "@midwayjs/ncc",
"version": "0.22.0",
"version": "0.22.1",
"repository": "midwayjs/ncc",

@@ -14,3 +14,3 @@ "license": "MIT",

"codecov": "codecov",
"test": "npm run build-test-binary && npm run build && node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest",
"test": "node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest",
"test-coverage": "node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest --coverage --globals \"{\\\"coverage\\\":true}\" && codecov",

@@ -39,3 +39,3 @@ "prepublish": "in-publish && npm test || not-in-publish"

"chromeless": "^1.5.2",
"codecov": "^3.1.0",
"codecov": "^3.6.5",
"consolidate": "^0.15.1",

@@ -76,3 +76,3 @@ "copy": "^0.3.2",

"node-gyp": "^3.8.0",
"npm": "^6.9.0",
"npm": "^6.13.4",
"oracledb": "^3.1.2",

@@ -79,0 +79,0 @@ "passport": "^0.4.0",

# ncc
[![Build Status](https://circleci.com/gh/zeit/ncc.svg?&style=shield)](https://circleci.com/gh/zeit/workflows/ncc)
[![CI Status](https://github.com/zeit/ncc/workflows/CI/badge.svg)](https://github.com/zeit/ncc/actions?workflow=CI)
[![codecov](https://codecov.io/gh/zeit/ncc/branch/master/graph/badge.svg)](https://codecov.io/gh/zeit/ncc)

@@ -36,3 +36,3 @@

```
Eg:
Eg:
```bash

@@ -44,2 +44,5 @@ $ ncc build input.js -o dist

> Note: If the input file is using a `.cjs` extension, then so will the corresponding output file.
> This is useful for packages that want to use `.js` files as modules in native Node.js using
> a `"type": "module"` in the package.json file.

@@ -66,2 +69,3 @@ #### Commands:

--v8-cache Emit a build using the v8 compile cache
--stats-out [file] Emit webpack stats as json to the specified output file
```

@@ -68,0 +72,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display