@umijs/utils 4.0.0-canary.20230224.1 → 4.0.0-canary.20230302.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +70 -0
- package/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
- package/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/types.d.ts +35 -0
- package/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
- package/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +74 -0
- package/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/types.d.ts +92 -0
- package/compiled/@ampproject/remapping/LICENSE +202 -0
- package/compiled/@ampproject/remapping/dist/types/remapping.d.ts +19 -0
- package/compiled/@ampproject/remapping/dist/types/source-map.d.ts +17 -0
- package/compiled/@ampproject/remapping/dist/types/types.d.ts +14 -0
- package/compiled/@ampproject/remapping/index.js +1 -0
- package/compiled/@ampproject/remapping/package.json +1 -0
- package/compiled/tsconfig-paths/LICENSE +21 -0
- package/compiled/tsconfig-paths/index.js +1 -0
- package/compiled/tsconfig-paths/lib/index.d.ts +5 -0
- package/compiled/tsconfig-paths/package.json +1 -0
- package/dist/BaseGenerator/BaseGenerator.js +0 -4
- package/dist/Generator/Generator.js +0 -4
- package/dist/index.d.ts +4 -1
- package/dist/index.js +7 -0
- package/dist/logger.js +8 -3
- package/dist/npmClient.js +0 -4
- package/dist/readDirFiles.d.ts +9 -0
- package/dist/readDirFiles.js +62 -0
- package/dist/register.js +0 -2
- package/dist/updatePackageJSON.js +7 -4
- package/package.json +9 -4
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { DecodedSourceMap, EncodedSourceMap, Pos, Mapping } from './types';
|
|
2
|
+
export type { DecodedSourceMap, EncodedSourceMap, Mapping };
|
|
3
|
+
export declare type Options = {
|
|
4
|
+
file?: string | null;
|
|
5
|
+
sourceRoot?: string | null;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* A low-level API to associate a generated position with an original source position. Line and
|
|
9
|
+
* column here are 0-based, unlike `addMapping`.
|
|
10
|
+
*/
|
|
11
|
+
export declare let addSegment: {
|
|
12
|
+
(map: GenMapping, genLine: number, genColumn: number, source?: null, sourceLine?: null, sourceColumn?: null, name?: null): void;
|
|
13
|
+
(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name?: null): void;
|
|
14
|
+
(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name: string): void;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* A high-level API to associate a generated position with an original source position. Line is
|
|
18
|
+
* 1-based, but column is 0-based, due to legacy behavior in `source-map` library.
|
|
19
|
+
*/
|
|
20
|
+
export declare let addMapping: {
|
|
21
|
+
(map: GenMapping, mapping: {
|
|
22
|
+
generated: Pos;
|
|
23
|
+
source?: null;
|
|
24
|
+
original?: null;
|
|
25
|
+
name?: null;
|
|
26
|
+
}): void;
|
|
27
|
+
(map: GenMapping, mapping: {
|
|
28
|
+
generated: Pos;
|
|
29
|
+
source: string;
|
|
30
|
+
original: Pos;
|
|
31
|
+
name?: null;
|
|
32
|
+
}): void;
|
|
33
|
+
(map: GenMapping, mapping: {
|
|
34
|
+
generated: Pos;
|
|
35
|
+
source: string;
|
|
36
|
+
original: Pos;
|
|
37
|
+
name: string;
|
|
38
|
+
}): void;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Adds/removes the content of the source file to the source map.
|
|
42
|
+
*/
|
|
43
|
+
export declare let setSourceContent: (map: GenMapping, source: string, content: string | null) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects
|
|
46
|
+
* a sourcemap, or to JSON.stringify.
|
|
47
|
+
*/
|
|
48
|
+
export declare let decodedMap: (map: GenMapping) => DecodedSourceMap;
|
|
49
|
+
/**
|
|
50
|
+
* Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects
|
|
51
|
+
* a sourcemap, or to JSON.stringify.
|
|
52
|
+
*/
|
|
53
|
+
export declare let encodedMap: (map: GenMapping) => EncodedSourceMap;
|
|
54
|
+
/**
|
|
55
|
+
* Returns an array of high-level mapping objects for every recorded segment, which could then be
|
|
56
|
+
* passed to the `source-map` library.
|
|
57
|
+
*/
|
|
58
|
+
export declare let allMappings: (map: GenMapping) => Mapping[];
|
|
59
|
+
/**
|
|
60
|
+
* Provides the state to generate a sourcemap.
|
|
61
|
+
*/
|
|
62
|
+
export declare class GenMapping {
|
|
63
|
+
private _names;
|
|
64
|
+
private _sources;
|
|
65
|
+
private _sourcesContent;
|
|
66
|
+
private _mappings;
|
|
67
|
+
file: string | null | undefined;
|
|
68
|
+
sourceRoot: string | null | undefined;
|
|
69
|
+
constructor({ file, sourceRoot }?: Options);
|
|
70
|
+
}
|
package/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare type GeneratedColumn = number;
|
|
2
|
+
declare type SourcesIndex = number;
|
|
3
|
+
declare type SourceLine = number;
|
|
4
|
+
declare type SourceColumn = number;
|
|
5
|
+
declare type NamesIndex = number;
|
|
6
|
+
export declare type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
|
|
7
|
+
export declare const COLUMN = 0;
|
|
8
|
+
export declare const SOURCES_INDEX = 1;
|
|
9
|
+
export declare const SOURCE_LINE = 2;
|
|
10
|
+
export declare const SOURCE_COLUMN = 3;
|
|
11
|
+
export declare const NAMES_INDEX = 4;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { SourceMapSegment } from './sourcemap-segment';
|
|
2
|
+
export interface SourceMapV3 {
|
|
3
|
+
file?: string | null;
|
|
4
|
+
names: readonly string[];
|
|
5
|
+
sourceRoot?: string;
|
|
6
|
+
sources: readonly (string | null)[];
|
|
7
|
+
sourcesContent?: readonly (string | null)[];
|
|
8
|
+
version: 3;
|
|
9
|
+
}
|
|
10
|
+
export interface EncodedSourceMap extends SourceMapV3 {
|
|
11
|
+
mappings: string;
|
|
12
|
+
}
|
|
13
|
+
export interface DecodedSourceMap extends SourceMapV3 {
|
|
14
|
+
mappings: readonly SourceMapSegment[][];
|
|
15
|
+
}
|
|
16
|
+
export interface Pos {
|
|
17
|
+
line: number;
|
|
18
|
+
column: number;
|
|
19
|
+
}
|
|
20
|
+
export declare type Mapping = {
|
|
21
|
+
generated: Pos;
|
|
22
|
+
source: undefined;
|
|
23
|
+
original: undefined;
|
|
24
|
+
name: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
generated: Pos;
|
|
27
|
+
source: string;
|
|
28
|
+
original: Pos;
|
|
29
|
+
name: string;
|
|
30
|
+
} | {
|
|
31
|
+
generated: Pos;
|
|
32
|
+
source: string;
|
|
33
|
+
original: Pos;
|
|
34
|
+
name: undefined;
|
|
35
|
+
};
|
package/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare type GeneratedColumn = number;
|
|
2
|
+
declare type SourcesIndex = number;
|
|
3
|
+
declare type SourceLine = number;
|
|
4
|
+
declare type SourceColumn = number;
|
|
5
|
+
declare type NamesIndex = number;
|
|
6
|
+
declare type GeneratedLine = number;
|
|
7
|
+
export declare type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
|
|
8
|
+
export declare type ReverseSegment = [SourceColumn, GeneratedLine, GeneratedColumn];
|
|
9
|
+
export declare const COLUMN = 0;
|
|
10
|
+
export declare const SOURCES_INDEX = 1;
|
|
11
|
+
export declare const SOURCE_LINE = 2;
|
|
12
|
+
export declare const SOURCE_COLUMN = 3;
|
|
13
|
+
export declare const NAMES_INDEX = 4;
|
|
14
|
+
export declare const REV_GENERATED_LINE = 1;
|
|
15
|
+
export declare const REV_GENERATED_COLUMN = 2;
|
|
16
|
+
export {};
|
package/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { SourceMapSegment } from './sourcemap-segment';
|
|
2
|
+
import type { SourceMapV3, DecodedSourceMap, EncodedSourceMap, InvalidOriginalMapping, OriginalMapping, InvalidGeneratedMapping, GeneratedMapping, SourceMapInput, Needle, SourceNeedle, SourceMap, EachMapping } from './types';
|
|
3
|
+
export type { SourceMapSegment } from './sourcemap-segment';
|
|
4
|
+
export type { SourceMapInput, SectionedSourceMapInput, DecodedSourceMap, EncodedSourceMap, SectionedSourceMap, InvalidOriginalMapping, OriginalMapping as Mapping, OriginalMapping, InvalidGeneratedMapping, GeneratedMapping, EachMapping, } from './types';
|
|
5
|
+
export declare const LEAST_UPPER_BOUND = -1;
|
|
6
|
+
export declare const GREATEST_LOWER_BOUND = 1;
|
|
7
|
+
/**
|
|
8
|
+
* Returns the encoded (VLQ string) form of the SourceMap's mappings field.
|
|
9
|
+
*/
|
|
10
|
+
export declare let encodedMappings: (map: TraceMap) => EncodedSourceMap['mappings'];
|
|
11
|
+
/**
|
|
12
|
+
* Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.
|
|
13
|
+
*/
|
|
14
|
+
export declare let decodedMappings: (map: TraceMap) => Readonly<DecodedSourceMap['mappings']>;
|
|
15
|
+
/**
|
|
16
|
+
* A low-level API to find the segment associated with a generated line/column (think, from a
|
|
17
|
+
* stack trace). Line and column here are 0-based, unlike `originalPositionFor`.
|
|
18
|
+
*/
|
|
19
|
+
export declare let traceSegment: (map: TraceMap, line: number, column: number) => Readonly<SourceMapSegment> | null;
|
|
20
|
+
/**
|
|
21
|
+
* A higher-level API to find the source/line/column associated with a generated line/column
|
|
22
|
+
* (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in
|
|
23
|
+
* `source-map` library.
|
|
24
|
+
*/
|
|
25
|
+
export declare let originalPositionFor: (map: TraceMap, needle: Needle) => OriginalMapping | InvalidOriginalMapping;
|
|
26
|
+
/**
|
|
27
|
+
* Finds the generated line/column position of the provided source/line/column source position.
|
|
28
|
+
*/
|
|
29
|
+
export declare let generatedPositionFor: (map: TraceMap, needle: SourceNeedle) => GeneratedMapping | InvalidGeneratedMapping;
|
|
30
|
+
/**
|
|
31
|
+
* Finds all generated line/column positions of the provided source/line/column source position.
|
|
32
|
+
*/
|
|
33
|
+
export declare let allGeneratedPositionsFor: (map: TraceMap, needle: SourceNeedle) => GeneratedMapping[];
|
|
34
|
+
/**
|
|
35
|
+
* Iterates each mapping in generated position order.
|
|
36
|
+
*/
|
|
37
|
+
export declare let eachMapping: (map: TraceMap, cb: (mapping: EachMapping) => void) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Retrieves the source content for a particular source, if its found. Returns null if not.
|
|
40
|
+
*/
|
|
41
|
+
export declare let sourceContentFor: (map: TraceMap, source: string) => string | null;
|
|
42
|
+
/**
|
|
43
|
+
* A helper that skips sorting of the input map's mappings array, which can be expensive for larger
|
|
44
|
+
* maps.
|
|
45
|
+
*/
|
|
46
|
+
export declare let presortedDecodedMap: (map: DecodedSourceMap, mapUrl?: string) => TraceMap;
|
|
47
|
+
/**
|
|
48
|
+
* Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects
|
|
49
|
+
* a sourcemap, or to JSON.stringify.
|
|
50
|
+
*/
|
|
51
|
+
export declare let decodedMap: (map: TraceMap) => Omit<DecodedSourceMap, 'mappings'> & {
|
|
52
|
+
mappings: readonly SourceMapSegment[][];
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects
|
|
56
|
+
* a sourcemap, or to JSON.stringify.
|
|
57
|
+
*/
|
|
58
|
+
export declare let encodedMap: (map: TraceMap) => EncodedSourceMap;
|
|
59
|
+
export { AnyMap } from './any-map';
|
|
60
|
+
export declare class TraceMap implements SourceMap {
|
|
61
|
+
version: SourceMapV3['version'];
|
|
62
|
+
file: SourceMapV3['file'];
|
|
63
|
+
names: SourceMapV3['names'];
|
|
64
|
+
sourceRoot: SourceMapV3['sourceRoot'];
|
|
65
|
+
sources: SourceMapV3['sources'];
|
|
66
|
+
sourcesContent: SourceMapV3['sourcesContent'];
|
|
67
|
+
resolvedSources: string[];
|
|
68
|
+
private _encoded;
|
|
69
|
+
private _decoded;
|
|
70
|
+
private _decodedMemo;
|
|
71
|
+
private _bySources;
|
|
72
|
+
private _bySourceMemos;
|
|
73
|
+
constructor(map: SourceMapInput, mapUrl?: string | null);
|
|
74
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { SourceMapSegment } from './sourcemap-segment';
|
|
2
|
+
import type { GREATEST_LOWER_BOUND, LEAST_UPPER_BOUND, TraceMap } from './trace-mapping';
|
|
3
|
+
export interface SourceMapV3 {
|
|
4
|
+
file?: string | null;
|
|
5
|
+
names: string[];
|
|
6
|
+
sourceRoot?: string;
|
|
7
|
+
sources: (string | null)[];
|
|
8
|
+
sourcesContent?: (string | null)[];
|
|
9
|
+
version: 3;
|
|
10
|
+
}
|
|
11
|
+
export interface EncodedSourceMap extends SourceMapV3 {
|
|
12
|
+
mappings: string;
|
|
13
|
+
}
|
|
14
|
+
export interface DecodedSourceMap extends SourceMapV3 {
|
|
15
|
+
mappings: SourceMapSegment[][];
|
|
16
|
+
}
|
|
17
|
+
export interface Section {
|
|
18
|
+
offset: {
|
|
19
|
+
line: number;
|
|
20
|
+
column: number;
|
|
21
|
+
};
|
|
22
|
+
map: EncodedSourceMap | DecodedSourceMap | SectionedSourceMap;
|
|
23
|
+
}
|
|
24
|
+
export interface SectionedSourceMap {
|
|
25
|
+
file?: string | null;
|
|
26
|
+
sections: Section[];
|
|
27
|
+
version: 3;
|
|
28
|
+
}
|
|
29
|
+
export declare type OriginalMapping = {
|
|
30
|
+
source: string | null;
|
|
31
|
+
line: number;
|
|
32
|
+
column: number;
|
|
33
|
+
name: string | null;
|
|
34
|
+
};
|
|
35
|
+
export declare type InvalidOriginalMapping = {
|
|
36
|
+
source: null;
|
|
37
|
+
line: null;
|
|
38
|
+
column: null;
|
|
39
|
+
name: null;
|
|
40
|
+
};
|
|
41
|
+
export declare type GeneratedMapping = {
|
|
42
|
+
line: number;
|
|
43
|
+
column: number;
|
|
44
|
+
};
|
|
45
|
+
export declare type InvalidGeneratedMapping = {
|
|
46
|
+
line: null;
|
|
47
|
+
column: null;
|
|
48
|
+
};
|
|
49
|
+
export declare type Bias = typeof GREATEST_LOWER_BOUND | typeof LEAST_UPPER_BOUND;
|
|
50
|
+
export declare type SourceMapInput = string | Ro<EncodedSourceMap> | Ro<DecodedSourceMap> | TraceMap;
|
|
51
|
+
export declare type SectionedSourceMapInput = SourceMapInput | Ro<SectionedSourceMap>;
|
|
52
|
+
export declare type Needle = {
|
|
53
|
+
line: number;
|
|
54
|
+
column: number;
|
|
55
|
+
bias?: Bias;
|
|
56
|
+
};
|
|
57
|
+
export declare type SourceNeedle = {
|
|
58
|
+
source: string;
|
|
59
|
+
line: number;
|
|
60
|
+
column: number;
|
|
61
|
+
bias?: Bias;
|
|
62
|
+
};
|
|
63
|
+
export declare type EachMapping = {
|
|
64
|
+
generatedLine: number;
|
|
65
|
+
generatedColumn: number;
|
|
66
|
+
source: null;
|
|
67
|
+
originalLine: null;
|
|
68
|
+
originalColumn: null;
|
|
69
|
+
name: null;
|
|
70
|
+
} | {
|
|
71
|
+
generatedLine: number;
|
|
72
|
+
generatedColumn: number;
|
|
73
|
+
source: string | null;
|
|
74
|
+
originalLine: number;
|
|
75
|
+
originalColumn: number;
|
|
76
|
+
name: string | null;
|
|
77
|
+
};
|
|
78
|
+
export declare abstract class SourceMap {
|
|
79
|
+
version: SourceMapV3['version'];
|
|
80
|
+
file: SourceMapV3['file'];
|
|
81
|
+
names: SourceMapV3['names'];
|
|
82
|
+
sourceRoot: SourceMapV3['sourceRoot'];
|
|
83
|
+
sources: SourceMapV3['sources'];
|
|
84
|
+
sourcesContent: SourceMapV3['sourcesContent'];
|
|
85
|
+
resolvedSources: SourceMapV3['sources'];
|
|
86
|
+
}
|
|
87
|
+
export declare type Ro<T> = T extends Array<infer V> ? V[] | Readonly<V[]> | RoArray<V> | Readonly<RoArray<V>> : T extends object ? T | Readonly<T> | RoObject<T> | Readonly<RoObject<T>> : T;
|
|
88
|
+
declare type RoArray<T> = Ro<T>[];
|
|
89
|
+
declare type RoObject<T> = {
|
|
90
|
+
[K in keyof T]: T[K] | Ro<T[K]>;
|
|
91
|
+
};
|
|
92
|
+
export {};
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2019 Google LLC
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import SourceMap from './source-map';
|
|
2
|
+
import type { SourceMapInput, SourceMapLoader, Options } from './types';
|
|
3
|
+
export type { SourceMapSegment, EncodedSourceMap, EncodedSourceMap as RawSourceMap, DecodedSourceMap, SourceMapInput, SourceMapLoader, LoaderContext, Options, } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Traces through all the mappings in the root sourcemap, through the sources
|
|
6
|
+
* (and their sourcemaps), all the way back to the original source location.
|
|
7
|
+
*
|
|
8
|
+
* `loader` will be called every time we encounter a source file. If it returns
|
|
9
|
+
* a sourcemap, we will recurse into that sourcemap to continue the trace. If
|
|
10
|
+
* it returns a falsey value, that source file is treated as an original,
|
|
11
|
+
* unmodified source file.
|
|
12
|
+
*
|
|
13
|
+
* Pass `excludeContent` to exclude any self-containing source file content
|
|
14
|
+
* from the output sourcemap.
|
|
15
|
+
*
|
|
16
|
+
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of
|
|
17
|
+
* VLQ encoded) mappings.
|
|
18
|
+
*/
|
|
19
|
+
export default function remapping(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader, options?: boolean | Options): SourceMap;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { GenMapping } from '../../@jridgewell/gen-mapping';
|
|
2
|
+
import type { DecodedSourceMap, EncodedSourceMap, Options } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* A SourceMap v3 compatible sourcemap, which only includes fields that were
|
|
5
|
+
* provided to it.
|
|
6
|
+
*/
|
|
7
|
+
export default class SourceMap {
|
|
8
|
+
file?: string | null;
|
|
9
|
+
mappings: EncodedSourceMap['mappings'] | DecodedSourceMap['mappings'];
|
|
10
|
+
sourceRoot?: string;
|
|
11
|
+
names: string[];
|
|
12
|
+
sources: (string | null)[];
|
|
13
|
+
sourcesContent?: (string | null)[];
|
|
14
|
+
version: 3;
|
|
15
|
+
constructor(map: GenMapping, options: Options);
|
|
16
|
+
toString(): string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SourceMapInput } from '../../@jridgewell/trace-mapping';
|
|
2
|
+
export type { SourceMapSegment, DecodedSourceMap, EncodedSourceMap, } from '@jridgewell/trace-mapping';
|
|
3
|
+
export type { SourceMapInput };
|
|
4
|
+
export declare type LoaderContext = {
|
|
5
|
+
readonly importer: string;
|
|
6
|
+
readonly depth: number;
|
|
7
|
+
source: string;
|
|
8
|
+
content: string | null | undefined;
|
|
9
|
+
};
|
|
10
|
+
export declare type SourceMapLoader = (file: string, ctx: LoaderContext) => SourceMapInput | null | undefined | void;
|
|
11
|
+
export declare type Options = {
|
|
12
|
+
excludeContent?: boolean;
|
|
13
|
+
decodedMappings?: boolean;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){var e={514:function(e,n,t){(function(n,o){true?e.exports=o(t(974),t(721)):0})(this,(function(e,n){"use strict";const t={source:null,column:null,line:null,name:null,content:null};const o=[];function Source(e,n,t,o){return{map:e,sources:n,source:t,content:o}}function MapSource(e,n){return Source(e,n,"",null)}function OriginalSource(e,n){return Source(null,o,e,n)}function traceMappings(o){const r=new n.GenMapping({file:o.map.file});const{sources:s,map:i}=o;const c=i.names;const u=e.decodedMappings(i);for(let e=0;e<u.length;e++){const o=u[e];let i=null;let l=null;let a=null;for(let u=0;u<o.length;u++){const d=o[u];const f=d[0];let p=t;if(d.length!==1){const e=s[d[1]];p=originalPositionFor(e,d[2],d[3],d.length===5?c[d[4]]:"");if(p==null)continue}const{column:h,line:g,name:m,content:_,source:y}=p;if(g===l&&h===a&&y===i){continue}l=g;a=h;i=y;n.addSegment(r,e,f,y,g,h,m);if(_!=null)n.setSourceContent(r,y,_)}}return r}function originalPositionFor(n,o,r,s){if(!n.map){return{column:r,line:o,name:s,source:n.source,content:n.content}}const i=e.traceSegment(n.map,o,r);if(i==null)return null;if(i.length===1)return t;return originalPositionFor(n.sources[i[1]],i[2],i[3],i.length===5?n.map.names[i[4]]:s)}function asArray(e){if(Array.isArray(e))return e;return[e]}function buildSourceMapTree(n,t){const o=asArray(n).map((n=>new e.TraceMap(n,"")));const r=o.pop();for(let e=0;e<o.length;e++){if(o[e].sources.length>1){throw new Error(`Transformation map ${e} must have exactly one source file.\n`+"Did you specify these with the most recent transformation maps first?")}}let s=build(r,t,"",0);for(let e=o.length-1;e>=0;e--){s=MapSource(o[e],[s])}return s}function build(n,t,o,r){const{resolvedSources:s,sourcesContent:i}=n;const c=r+1;const u=s.map(((n,r)=>{const s={importer:o,depth:c,source:n||"",content:undefined};const u=t(s.source,s);const{source:l,content:a}=s;if(u)return build(new e.TraceMap(u,l),t,l,c);const d=a!==undefined?a:i?i[r]:null;return OriginalSource(l,d)}));return MapSource(n,u)}class SourceMap{constructor(e,t){const o=t.decodedMappings?n.decodedMap(e):n.encodedMap(e);this.version=o.version;this.file=o.file;this.mappings=o.mappings;this.names=o.names;this.sourceRoot=o.sourceRoot;this.sources=o.sources;if(!t.excludeContent){this.sourcesContent=o.sourcesContent}}toString(){return JSON.stringify(this)}}function remapping(e,n,t){const o=typeof t==="object"?t:{excludeContent:!!t,decodedMappings:false};const r=buildSourceMapTree(e,n);return new SourceMap(traceMappings(r),o)}return remapping}))},721:function(e,n,t){(function(e,o){true?o(n,t(465),t(248)):0})(this,(function(e,n,t){"use strict";e.addSegment=void 0;e.addMapping=void 0;e.setSourceContent=void 0;e.decodedMap=void 0;e.encodedMap=void 0;e.allMappings=void 0;class GenMapping{constructor({file:e,sourceRoot:t}={}){this._names=new n.SetArray;this._sources=new n.SetArray;this._sourcesContent=[];this._mappings=[];this.file=e;this.sourceRoot=t}}(()=>{e.addSegment=(e,t,o,r,s,i,c)=>{const{_mappings:u,_sources:l,_sourcesContent:a,_names:d}=e;const f=getLine(u,t);if(r==null){const e=[o];const n=getColumnIndex(f,o,e);return insert(f,n,e)}const p=n.put(l,r);const h=c?[o,p,s,i,n.put(d,c)]:[o,p,s,i];const g=getColumnIndex(f,o,h);if(p===a.length)a[p]=null;insert(f,g,h)};e.addMapping=(n,t)=>{const{generated:o,source:r,original:s,name:i}=t;return e.addSegment(n,o.line-1,o.column,r,s==null?undefined:s.line-1,s===null||s===void 0?void 0:s.column,i)};e.setSourceContent=(e,t,o)=>{const{_sources:r,_sourcesContent:s}=e;s[n.put(r,t)]=o};e.decodedMap=e=>{const{file:n,sourceRoot:t,_mappings:o,_sources:r,_sourcesContent:s,_names:i}=e;return{version:3,file:n,names:i.array,sourceRoot:t||undefined,sources:r.array,sourcesContent:s,mappings:o}};e.encodedMap=n=>{const o=e.decodedMap(n);return Object.assign(Object.assign({},o),{mappings:t.encode(o.mappings)})};e.allMappings=e=>{const n=[];const{_mappings:t,_sources:o,_names:r}=e;for(let e=0;e<t.length;e++){const s=t[e];for(let t=0;t<s.length;t++){const i=s[t];const c={line:e+1,column:i[0]};let u=undefined;let l=undefined;let a=undefined;if(i.length!==1){u=o.array[i[1]];l={line:i[2]+1,column:i[3]};if(i.length===5)a=r.array[i[4]]}n.push({generated:c,source:u,original:l,name:a})}}return n}})();function getLine(e,n){for(let t=e.length;t<=n;t++){e[t]=[]}return e[n]}function getColumnIndex(e,n,t){let o=e.length;for(let r=o-1;r>=0;r--,o--){const s=e[r];const i=s[0];if(i>n)continue;if(i<n)break;const c=compare(s,t);if(c===0)return o;if(c<0)break}return o}function compare(e,n){let t=compareNum(e.length,n.length);if(t!==0)return t;if(e.length===1)return 0;t=compareNum(e[1],n[1]);if(t!==0)return t;t=compareNum(e[2],n[2]);if(t!==0)return t;t=compareNum(e[3],n[3]);if(t!==0)return t;if(e.length===4)return 0;return compareNum(e[4],n[4])}function compareNum(e,n){return e-n}function insert(e,n,t){if(n===-1)return;for(let t=e.length;t>n;t--){e[t]=e[t-1]}e[n]=t}e.GenMapping=GenMapping;Object.defineProperty(e,"__esModule",{value:true})}))},413:function(e){(function(n,t){true?e.exports=t():0})(this,(function(){"use strict";const e=/^[\w+.-]+:\/\//;const n=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;const t=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var o;(function(e){e[e["Empty"]=1]="Empty";e[e["Hash"]=2]="Hash";e[e["Query"]=3]="Query";e[e["RelativePath"]=4]="RelativePath";e[e["AbsolutePath"]=5]="AbsolutePath";e[e["SchemeRelative"]=6]="SchemeRelative";e[e["Absolute"]=7]="Absolute"})(o||(o={}));function isAbsoluteUrl(n){return e.test(n)}function isSchemeRelativeUrl(e){return e.startsWith("//")}function isAbsolutePath(e){return e.startsWith("/")}function isFileUrl(e){return e.startsWith("file:")}function isRelative(e){return/^[.?#]/.test(e)}function parseAbsoluteUrl(e){const t=n.exec(e);return makeUrl(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function parseFileUrl(e){const n=t.exec(e);const o=n[2];return makeUrl("file:","",n[1]||"","",isAbsolutePath(o)?o:"/"+o,n[3]||"",n[4]||"")}function makeUrl(e,n,t,r,s,i,c){return{scheme:e,user:n,host:t,port:r,path:s,query:i,hash:c,type:o.Absolute}}function parseUrl(e){if(isSchemeRelativeUrl(e)){const n=parseAbsoluteUrl("http:"+e);n.scheme="";n.type=o.SchemeRelative;return n}if(isAbsolutePath(e)){const n=parseAbsoluteUrl("http://foo.com"+e);n.scheme="";n.host="";n.type=o.AbsolutePath;return n}if(isFileUrl(e))return parseFileUrl(e);if(isAbsoluteUrl(e))return parseAbsoluteUrl(e);const n=parseAbsoluteUrl("http://foo.com/"+e);n.scheme="";n.host="";n.type=e?e.startsWith("?")?o.Query:e.startsWith("#")?o.Hash:o.RelativePath:o.Empty;return n}function stripPathFilename(e){if(e.endsWith("/.."))return e;const n=e.lastIndexOf("/");return e.slice(0,n+1)}function mergePaths(e,n){normalizePath(n,n.type);if(e.path==="/"){e.path=n.path}else{e.path=stripPathFilename(n.path)+e.path}}function normalizePath(e,n){const t=n<=o.RelativePath;const r=e.path.split("/");let s=1;let i=0;let c=false;for(let e=1;e<r.length;e++){const n=r[e];if(!n){c=true;continue}c=false;if(n===".")continue;if(n===".."){if(i){c=true;i--;s--}else if(t){r[s++]=n}continue}r[s++]=n;i++}let u="";for(let e=1;e<s;e++){u+="/"+r[e]}if(!u||c&&!u.endsWith("/..")){u+="/"}e.path=u}function resolve(e,n){if(!e&&!n)return"";const t=parseUrl(e);let r=t.type;if(n&&r!==o.Absolute){const e=parseUrl(n);const s=e.type;switch(r){case o.Empty:t.hash=e.hash;case o.Hash:t.query=e.query;case o.Query:case o.RelativePath:mergePaths(t,e);case o.AbsolutePath:t.user=e.user;t.host=e.host;t.port=e.port;case o.SchemeRelative:t.scheme=e.scheme}if(s>r)r=s}normalizePath(t,r);const s=t.query+t.hash;switch(r){case o.Hash:case o.Query:return s;case o.RelativePath:{const o=t.path.slice(1);if(!o)return s||".";if(isRelative(n||e)&&!isRelative(o)){return"./"+o+s}return o+s}case o.AbsolutePath:return t.path+s;default:return t.scheme+"//"+t.user+t.host+t.port+t.path+s}}return resolve}))},465:function(e,n){(function(e,t){true?t(n):0})(this,(function(e){"use strict";e.get=void 0;e.put=void 0;e.pop=void 0;class SetArray{constructor(){this._indexes={__proto__:null};this.array=[]}}(()=>{e.get=(e,n)=>e._indexes[n];e.put=(n,t)=>{const o=e.get(n,t);if(o!==undefined)return o;const{array:r,_indexes:s}=n;return s[t]=r.push(t)-1};e.pop=e=>{const{array:n,_indexes:t}=e;if(n.length===0)return;const o=n.pop();t[o]=undefined}})();e.SetArray=SetArray;Object.defineProperty(e,"__esModule",{value:true})}))},248:function(e,n){(function(e,t){true?t(n):0})(this,(function(e){"use strict";const n=",".charCodeAt(0);const t=";".charCodeAt(0);const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const r=new Uint8Array(64);const s=new Uint8Array(128);for(let e=0;e<o.length;e++){const n=o.charCodeAt(e);r[e]=n;s[n]=e}const i=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(e){const n=Buffer.from(e.buffer,e.byteOffset,e.byteLength);return n.toString()}}:{decode(e){let n="";for(let t=0;t<e.length;t++){n+=String.fromCharCode(e[t])}return n}};function decode(e){const n=new Int32Array(5);const t=[];let o=0;do{const r=indexOf(e,o);const s=[];let i=true;let c=0;n[0]=0;for(let t=o;t<r;t++){let o;t=decodeInteger(e,t,n,0);const u=n[0];if(u<c)i=false;c=u;if(hasMoreVlq(e,t,r)){t=decodeInteger(e,t,n,1);t=decodeInteger(e,t,n,2);t=decodeInteger(e,t,n,3);if(hasMoreVlq(e,t,r)){t=decodeInteger(e,t,n,4);o=[u,n[1],n[2],n[3],n[4]]}else{o=[u,n[1],n[2],n[3]]}}else{o=[u]}s.push(o)}if(!i)sort(s);t.push(s);o=r+1}while(o<=e.length);return t}function indexOf(e,n){const t=e.indexOf(";",n);return t===-1?e.length:t}function decodeInteger(e,n,t,o){let r=0;let i=0;let c=0;do{const t=e.charCodeAt(n++);c=s[t];r|=(c&31)<<i;i+=5}while(c&32);const u=r&1;r>>>=1;if(u){r=-2147483648|-r}t[o]+=r;return n}function hasMoreVlq(e,t,o){if(t>=o)return false;return e.charCodeAt(t)!==n}function sort(e){e.sort(sortComparator)}function sortComparator(e,n){return e[0]-n[0]}function encode(e){const o=new Int32Array(5);const r=1024*16;const s=r-36;const c=new Uint8Array(r);const u=c.subarray(0,s);let l=0;let a="";for(let d=0;d<e.length;d++){const f=e[d];if(d>0){if(l===r){a+=i.decode(c);l=0}c[l++]=t}if(f.length===0)continue;o[0]=0;for(let e=0;e<f.length;e++){const t=f[e];if(l>s){a+=i.decode(u);c.copyWithin(0,s,l);l-=s}if(e>0)c[l++]=n;l=encodeInteger(c,l,o,t,0);if(t.length===1)continue;l=encodeInteger(c,l,o,t,1);l=encodeInteger(c,l,o,t,2);l=encodeInteger(c,l,o,t,3);if(t.length===4)continue;l=encodeInteger(c,l,o,t,4)}}return a+i.decode(c.subarray(0,l))}function encodeInteger(e,n,t,o,s){const i=o[s];let c=i-t[s];t[s]=i;c=c<0?-c<<1|1:c<<1;do{let t=c&31;c>>>=5;if(c>0)t|=32;e[n++]=r[t]}while(c>0);return n}e.decode=decode;e.encode=encode;Object.defineProperty(e,"__esModule",{value:true})}))},974:function(e,n,t){(function(e,o){true?o(n,t(248),t(413)):0})(this,(function(e,n,t){"use strict";function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var o=_interopDefaultLegacy(t);function resolve(e,n){if(n&&!n.endsWith("/"))n+="/";return o["default"](e,n)}function stripFilename(e){if(!e)return"";const n=e.lastIndexOf("/");return e.slice(0,n+1)}const r=0;const s=1;const i=2;const c=3;const u=4;const l=1;const a=2;function maybeSort(e,n){const t=nextUnsortedSegmentLine(e,0);if(t===e.length)return e;if(!n)e=e.slice();for(let o=t;o<e.length;o=nextUnsortedSegmentLine(e,o+1)){e[o]=sortSegments(e[o],n)}return e}function nextUnsortedSegmentLine(e,n){for(let t=n;t<e.length;t++){if(!isSorted(e[t]))return t}return e.length}function isSorted(e){for(let n=1;n<e.length;n++){if(e[n][r]<e[n-1][r]){return false}}return true}function sortSegments(e,n){if(!n)e=e.slice();return e.sort(sortComparator)}function sortComparator(e,n){return e[r]-n[r]}let d=false;function binarySearch(e,n,t,o){while(t<=o){const s=t+(o-t>>1);const i=e[s][r]-n;if(i===0){d=true;return s}if(i<0){t=s+1}else{o=s-1}}d=false;return t-1}function upperBound(e,n,t){for(let o=t+1;o<e.length;t=o++){if(e[o][r]!==n)break}return t}function lowerBound(e,n,t){for(let o=t-1;o>=0;t=o--){if(e[o][r]!==n)break}return t}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(e,n,t,o){const{lastKey:s,lastNeedle:i,lastIndex:c}=t;let u=0;let l=e.length-1;if(o===s){if(n===i){d=c!==-1&&e[c][r]===n;return c}if(n>=i){u=c===-1?0:c}else{l=c}}t.lastKey=o;t.lastNeedle=n;return t.lastIndex=binarySearch(e,n,u,l)}function buildBySources(e,n){const t=n.map(buildNullArray);for(let o=0;o<e.length;o++){const u=e[o];for(let e=0;e<u.length;e++){const l=u[e];if(l.length===1)continue;const a=l[s];const d=l[i];const f=l[c];const p=t[a];const h=p[d]||(p[d]=[]);const g=n[a];const m=upperBound(h,f,memoizedBinarySearch(h,f,g,d));insert(h,g.lastIndex=m+1,[f,o,l[r]])}}return t}function insert(e,n,t){for(let t=e.length;t>n;t--){e[t]=e[t-1]}e[n]=t}function buildNullArray(){return{__proto__:null}}const AnyMap=function(n,t){const o=typeof n==="string"?JSON.parse(n):n;if(!("sections"in o))return new TraceMap(o,t);const r=[];const s=[];const i=[];const c=[];recurse(o,t,r,s,i,c,0,0,Infinity,Infinity);const u={version:3,file:o.file,names:c,sources:s,sourcesContent:i,mappings:r};return e.presortedDecodedMap(u)};function recurse(e,n,t,o,r,s,i,c,u,l){const{sections:a}=e;for(let e=0;e<a.length;e++){const{map:d,offset:f}=a[e];let p=u;let h=l;if(e+1<a.length){const n=a[e+1].offset;p=Math.min(u,i+n.line);if(p===u){h=Math.min(l,c+n.column)}else if(p<u){h=c+n.column}}addSection(d,n,t,o,r,s,i+f.line,c+f.column,p,h)}}function addSection(n,t,o,l,a,d,f,p,h,g){if("sections"in n)return recurse(...arguments);const m=new TraceMap(n,t);const _=l.length;const y=d.length;const M=e.decodedMappings(m);const{resolvedSources:S,sourcesContent:v}=m;append(l,S);append(d,m.names);if(v)append(a,v);else for(let e=0;e<S.length;e++)a.push(null);for(let e=0;e<M.length;e++){const n=f+e;if(n>h)return;const t=getLine(o,n);const l=e===0?p:0;const a=M[e];for(let e=0;e<a.length;e++){const o=a[e];const d=l+o[r];if(n===h&&d>=g)return;if(o.length===1){t.push([d]);continue}const f=_+o[s];const p=o[i];const m=o[c];t.push(o.length===4?[d,f,p,m]:[d,f,p,m,y+o[u]])}}}function append(e,n){for(let t=0;t<n.length;t++)e.push(n[t])}function getLine(e,n){for(let t=e.length;t<=n;t++)e[t]=[];return e[n]}const f="`line` must be greater than 0 (lines start at line 1)";const p="`column` must be greater than or equal to 0 (columns start at column 0)";const h=-1;const g=1;e.encodedMappings=void 0;e.decodedMappings=void 0;e.traceSegment=void 0;e.originalPositionFor=void 0;e.generatedPositionFor=void 0;e.allGeneratedPositionsFor=void 0;e.eachMapping=void 0;e.sourceContentFor=void 0;e.presortedDecodedMap=void 0;e.decodedMap=void 0;e.encodedMap=void 0;class TraceMap{constructor(e,n){const t=typeof e==="string";if(!t&&e._decodedMemo)return e;const o=t?JSON.parse(e):e;const{version:r,file:s,names:i,sourceRoot:c,sources:u,sourcesContent:l}=o;this.version=r;this.file=s;this.names=i;this.sourceRoot=c;this.sources=u;this.sourcesContent=l;const a=resolve(c||"",stripFilename(n));this.resolvedSources=u.map((e=>resolve(e||"",a)));const{mappings:d}=o;if(typeof d==="string"){this._encoded=d;this._decoded=undefined}else{this._encoded=undefined;this._decoded=maybeSort(d,t)}this._decodedMemo=memoizedState();this._bySources=undefined;this._bySourceMemos=undefined}}(()=>{e.encodedMappings=e=>{var t;return(t=e._encoded)!==null&&t!==void 0?t:e._encoded=n.encode(e._decoded)};e.decodedMappings=e=>e._decoded||(e._decoded=n.decode(e._encoded));e.traceSegment=(n,t,o)=>{const r=e.decodedMappings(n);if(t>=r.length)return null;const s=r[t];const i=traceSegmentInternal(s,n._decodedMemo,t,o,g);return i===-1?null:s[i]};e.originalPositionFor=(n,{line:t,column:o,bias:r})=>{t--;if(t<0)throw new Error(f);if(o<0)throw new Error(p);const l=e.decodedMappings(n);if(t>=l.length)return OMapping(null,null,null,null);const a=l[t];const d=traceSegmentInternal(a,n._decodedMemo,t,o,r||g);if(d===-1)return OMapping(null,null,null,null);const h=a[d];if(h.length===1)return OMapping(null,null,null,null);const{names:m,resolvedSources:_}=n;return OMapping(_[h[s]],h[i]+1,h[c],h.length===5?m[h[u]]:null)};e.allGeneratedPositionsFor=(e,{source:n,line:t,column:o,bias:r})=>generatedPosition(e,n,t,o,r||h,true);e.generatedPositionFor=(e,{source:n,line:t,column:o,bias:r})=>generatedPosition(e,n,t,o,r||g,false);e.eachMapping=(n,t)=>{const o=e.decodedMappings(n);const{names:r,resolvedSources:s}=n;for(let e=0;e<o.length;e++){const n=o[e];for(let o=0;o<n.length;o++){const i=n[o];const c=e+1;const u=i[0];let l=null;let a=null;let d=null;let f=null;if(i.length!==1){l=s[i[1]];a=i[2]+1;d=i[3]}if(i.length===5)f=r[i[4]];t({generatedLine:c,generatedColumn:u,source:l,originalLine:a,originalColumn:d,name:f})}}};e.sourceContentFor=(e,n)=>{const{sources:t,resolvedSources:o,sourcesContent:r}=e;if(r==null)return null;let s=t.indexOf(n);if(s===-1)s=o.indexOf(n);return s===-1?null:r[s]};e.presortedDecodedMap=(e,n)=>{const t=new TraceMap(clone(e,[]),n);t._decoded=e.mappings;return t};e.decodedMap=n=>clone(n,e.decodedMappings(n));e.encodedMap=n=>clone(n,e.encodedMappings(n));function generatedPosition(n,t,o,r,s,i){o--;if(o<0)throw new Error(f);if(r<0)throw new Error(p);const{sources:c,resolvedSources:u}=n;let d=c.indexOf(t);if(d===-1)d=u.indexOf(t);if(d===-1)return i?[]:GMapping(null,null);const h=n._bySources||(n._bySources=buildBySources(e.decodedMappings(n),n._bySourceMemos=c.map(memoizedState)));const g=h[d][o];if(g==null)return i?[]:GMapping(null,null);const m=n._bySourceMemos[d];if(i)return sliceGeneratedPositions(g,m,o,r,s);const _=traceSegmentInternal(g,m,o,r,s);if(_===-1)return GMapping(null,null);const y=g[_];return GMapping(y[l]+1,y[a])}})();function clone(e,n){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:n}}function OMapping(e,n,t,o){return{source:e,line:n,column:t,name:o}}function GMapping(e,n){return{line:e,column:n}}function traceSegmentInternal(e,n,t,o,r){let s=memoizedBinarySearch(e,o,n,t);if(d){s=(r===h?upperBound:lowerBound)(e,o,s)}else if(r===h)s++;if(s===-1||s===e.length)return-1;return s}function sliceGeneratedPositions(e,n,t,o,s){let i=traceSegmentInternal(e,n,t,o,g);if(!d&&s===h)i++;if(i===-1||i===e.length)return[];const c=d?o:e[i][r];if(!d)i=lowerBound(e,c,i);const u=upperBound(e,c,i);const f=[];for(;i<=u;i++){const n=e[i];f.push(GMapping(n[l]+1,n[a]))}return f}e.AnyMap=AnyMap;e.GREATEST_LOWER_BOUND=g;e.LEAST_UPPER_BOUND=h;e.TraceMap=TraceMap;Object.defineProperty(e,"__esModule",{value:true})}))}};var n={};function __nccwpck_require__(t){var o=n[t];if(o!==undefined){return o.exports}var r=n[t]={exports:{}};var s=true;try{e[t].call(r.exports,r,r.exports,__nccwpck_require__);s=false}finally{if(s)delete n[t]}return r.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(514);module.exports=t})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"@ampproject/remapping","version":"2.2.0","author":"Justin Ridgewell <jridgewell@google.com>","license":"Apache-2.0","typings":"dist/types/remapping.d.ts"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 Jonas Kello
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){var u={361:function(u,e,r){const t=r(108);const D=r(440);const n={parse:t,stringify:D};u.exports=n},108:function(u,e,r){const t=r(812);let D;let n;let i;let a;let s;let o;let F;let C;let c;u.exports=function parse(u,e){D=String(u);n="start";i=[];a=0;s=1;o=0;F=undefined;C=undefined;c=undefined;do{F=lex();p[n]()}while(F.type!=="eof");if(typeof e==="function"){return internalize({"":c},"",e)}return c};function internalize(u,e,r){const t=u[e];if(t!=null&&typeof t==="object"){if(Array.isArray(t)){for(let u=0;u<t.length;u++){const e=String(u);const D=internalize(t,e,r);if(D===undefined){delete t[e]}else{Object.defineProperty(t,e,{value:D,writable:true,enumerable:true,configurable:true})}}}else{for(const u in t){const e=internalize(t,u,r);if(e===undefined){delete t[u]}else{Object.defineProperty(t,u,{value:e,writable:true,enumerable:true,configurable:true})}}}}return r.call(u,e,t)}let A;let f;let E;let l;let d;function lex(){A="default";f="";E=false;l=1;for(;;){d=peek();const u=B[A]();if(u){return u}}}function peek(){if(D[a]){return String.fromCodePoint(D.codePointAt(a))}}function read(){const u=peek();if(u==="\n"){s++;o=0}else if(u){o+=u.length}else{o++}if(u){a+=u.length}return u}const B={default(){switch(d){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":read();return;case"/":read();A="comment";return;case undefined:read();return newToken("eof")}if(t.isSpaceSeparator(d)){read();return}return B[n]()},comment(){switch(d){case"*":read();A="multiLineComment";return;case"/":read();A="singleLineComment";return}throw invalidChar(read())},multiLineComment(){switch(d){case"*":read();A="multiLineCommentAsterisk";return;case undefined:throw invalidChar(read())}read()},multiLineCommentAsterisk(){switch(d){case"*":read();return;case"/":read();A="default";return;case undefined:throw invalidChar(read())}read();A="multiLineComment"},singleLineComment(){switch(d){case"\n":case"\r":case"\u2028":case"\u2029":read();A="default";return;case undefined:read();return newToken("eof")}read()},value(){switch(d){case"{":case"[":return newToken("punctuator",read());case"n":read();literal("ull");return newToken("null",null);case"t":read();literal("rue");return newToken("boolean",true);case"f":read();literal("alse");return newToken("boolean",false);case"-":case"+":if(read()==="-"){l=-1}A="sign";return;case".":f=read();A="decimalPointLeading";return;case"0":f=read();A="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":f=read();A="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",Infinity);case"N":read();literal("aN");return newToken("numeric",NaN);case'"':case"'":E=read()==='"';f="";A="string";return}throw invalidChar(read())},identifierNameStartEscape(){if(d!=="u"){throw invalidChar(read())}read();const u=unicodeEscape();switch(u){case"$":case"_":break;default:if(!t.isIdStartChar(u)){throw invalidIdentifier()}break}f+=u;A="identifierName"},identifierName(){switch(d){case"$":case"_":case"":case"":f+=read();return;case"\\":read();A="identifierNameEscape";return}if(t.isIdContinueChar(d)){f+=read();return}return newToken("identifier",f)},identifierNameEscape(){if(d!=="u"){throw invalidChar(read())}read();const u=unicodeEscape();switch(u){case"$":case"_":case"":case"":break;default:if(!t.isIdContinueChar(u)){throw invalidIdentifier()}break}f+=u;A="identifierName"},sign(){switch(d){case".":f=read();A="decimalPointLeading";return;case"0":f=read();A="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":f=read();A="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",l*Infinity);case"N":read();literal("aN");return newToken("numeric",NaN)}throw invalidChar(read())},zero(){switch(d){case".":f+=read();A="decimalPoint";return;case"e":case"E":f+=read();A="decimalExponent";return;case"x":case"X":f+=read();A="hexadecimal";return}return newToken("numeric",l*0)},decimalInteger(){switch(d){case".":f+=read();A="decimalPoint";return;case"e":case"E":f+=read();A="decimalExponent";return}if(t.isDigit(d)){f+=read();return}return newToken("numeric",l*Number(f))},decimalPointLeading(){if(t.isDigit(d)){f+=read();A="decimalFraction";return}throw invalidChar(read())},decimalPoint(){switch(d){case"e":case"E":f+=read();A="decimalExponent";return}if(t.isDigit(d)){f+=read();A="decimalFraction";return}return newToken("numeric",l*Number(f))},decimalFraction(){switch(d){case"e":case"E":f+=read();A="decimalExponent";return}if(t.isDigit(d)){f+=read();return}return newToken("numeric",l*Number(f))},decimalExponent(){switch(d){case"+":case"-":f+=read();A="decimalExponentSign";return}if(t.isDigit(d)){f+=read();A="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentSign(){if(t.isDigit(d)){f+=read();A="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentInteger(){if(t.isDigit(d)){f+=read();return}return newToken("numeric",l*Number(f))},hexadecimal(){if(t.isHexDigit(d)){f+=read();A="hexadecimalInteger";return}throw invalidChar(read())},hexadecimalInteger(){if(t.isHexDigit(d)){f+=read();return}return newToken("numeric",l*Number(f))},string(){switch(d){case"\\":read();f+=escape();return;case'"':if(E){read();return newToken("string",f)}f+=read();return;case"'":if(!E){read();return newToken("string",f)}f+=read();return;case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":separatorChar(d);break;case undefined:throw invalidChar(read())}f+=read()},start(){switch(d){case"{":case"[":return newToken("punctuator",read())}A="value"},beforePropertyName(){switch(d){case"$":case"_":f=read();A="identifierName";return;case"\\":read();A="identifierNameStartEscape";return;case"}":return newToken("punctuator",read());case'"':case"'":E=read()==='"';A="string";return}if(t.isIdStartChar(d)){f+=read();A="identifierName";return}throw invalidChar(read())},afterPropertyName(){if(d===":"){return newToken("punctuator",read())}throw invalidChar(read())},beforePropertyValue(){A="value"},afterPropertyValue(){switch(d){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue(){if(d==="]"){return newToken("punctuator",read())}A="value"},afterArrayValue(){switch(d){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end(){throw invalidChar(read())}};function newToken(u,e){return{type:u,value:e,line:s,column:o}}function literal(u){for(const e of u){const u=peek();if(u!==e){throw invalidChar(read())}read()}}function escape(){const u=peek();switch(u){case"b":read();return"\b";case"f":read();return"\f";case"n":read();return"\n";case"r":read();return"\r";case"t":read();return"\t";case"v":read();return"\v";case"0":read();if(t.isDigit(peek())){throw invalidChar(read())}return"\0";case"x":read();return hexEscape();case"u":read();return unicodeEscape();case"\n":case"\u2028":case"\u2029":read();return"";case"\r":read();if(peek()==="\n"){read()}return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw invalidChar(read());case undefined:throw invalidChar(read())}return read()}function hexEscape(){let u="";let e=peek();if(!t.isHexDigit(e)){throw invalidChar(read())}u+=read();e=peek();if(!t.isHexDigit(e)){throw invalidChar(read())}u+=read();return String.fromCodePoint(parseInt(u,16))}function unicodeEscape(){let u="";let e=4;while(e-- >0){const e=peek();if(!t.isHexDigit(e)){throw invalidChar(read())}u+=read()}return String.fromCodePoint(parseInt(u,16))}const p={start(){if(F.type==="eof"){throw invalidEOF()}push()},beforePropertyName(){switch(F.type){case"identifier":case"string":C=F.value;n="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName(){if(F.type==="eof"){throw invalidEOF()}n="beforePropertyValue"},beforePropertyValue(){if(F.type==="eof"){throw invalidEOF()}push()},beforeArrayValue(){if(F.type==="eof"){throw invalidEOF()}if(F.type==="punctuator"&&F.value==="]"){pop();return}push()},afterPropertyValue(){if(F.type==="eof"){throw invalidEOF()}switch(F.value){case",":n="beforePropertyName";return;case"}":pop()}},afterArrayValue(){if(F.type==="eof"){throw invalidEOF()}switch(F.value){case",":n="beforeArrayValue";return;case"]":pop()}},end(){}};function push(){let u;switch(F.type){case"punctuator":switch(F.value){case"{":u={};break;case"[":u=[];break}break;case"null":case"boolean":case"numeric":case"string":u=F.value;break}if(c===undefined){c=u}else{const e=i[i.length-1];if(Array.isArray(e)){e.push(u)}else{Object.defineProperty(e,C,{value:u,writable:true,enumerable:true,configurable:true})}}if(u!==null&&typeof u==="object"){i.push(u);if(Array.isArray(u)){n="beforeArrayValue"}else{n="beforePropertyName"}}else{const u=i[i.length-1];if(u==null){n="end"}else if(Array.isArray(u)){n="afterArrayValue"}else{n="afterPropertyValue"}}}function pop(){i.pop();const u=i[i.length-1];if(u==null){n="end"}else if(Array.isArray(u)){n="afterArrayValue"}else{n="afterPropertyValue"}}function invalidChar(u){if(u===undefined){return syntaxError(`JSON5: invalid end of input at ${s}:${o}`)}return syntaxError(`JSON5: invalid character '${formatChar(u)}' at ${s}:${o}`)}function invalidEOF(){return syntaxError(`JSON5: invalid end of input at ${s}:${o}`)}function invalidIdentifier(){o-=5;return syntaxError(`JSON5: invalid identifier character at ${s}:${o}`)}function separatorChar(u){console.warn(`JSON5: '${formatChar(u)}' in strings is not valid ECMAScript; consider escaping`)}function formatChar(u){const e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[u]){return e[u]}if(u<" "){const e=u.charCodeAt(0).toString(16);return"\\x"+("00"+e).substring(e.length)}return u}function syntaxError(u){const e=new SyntaxError(u);e.lineNumber=s;e.columnNumber=o;return e}},440:function(u,e,r){const t=r(812);u.exports=function stringify(u,e,r){const D=[];let n="";let i;let a;let s="";let o;if(e!=null&&typeof e==="object"&&!Array.isArray(e)){r=e.space;o=e.quote;e=e.replacer}if(typeof e==="function"){a=e}else if(Array.isArray(e)){i=[];for(const u of e){let e;if(typeof u==="string"){e=u}else if(typeof u==="number"||u instanceof String||u instanceof Number){e=String(u)}if(e!==undefined&&i.indexOf(e)<0){i.push(e)}}}if(r instanceof Number){r=Number(r)}else if(r instanceof String){r=String(r)}if(typeof r==="number"){if(r>0){r=Math.min(10,Math.floor(r));s=" ".substr(0,r)}}else if(typeof r==="string"){s=r.substr(0,10)}return serializeProperty("",{"":u});function serializeProperty(u,e){let r=e[u];if(r!=null){if(typeof r.toJSON5==="function"){r=r.toJSON5(u)}else if(typeof r.toJSON==="function"){r=r.toJSON(u)}}if(a){r=a.call(e,u,r)}if(r instanceof Number){r=Number(r)}else if(r instanceof String){r=String(r)}else if(r instanceof Boolean){r=r.valueOf()}switch(r){case null:return"null";case true:return"true";case false:return"false"}if(typeof r==="string"){return quoteString(r,false)}if(typeof r==="number"){return String(r)}if(typeof r==="object"){return Array.isArray(r)?serializeArray(r):serializeObject(r)}return undefined}function quoteString(u){const e={"'":.1,'"':.2};const r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let D="";for(let n=0;n<u.length;n++){const i=u[n];switch(i){case"'":case'"':e[i]++;D+=i;continue;case"\0":if(t.isDigit(u[n+1])){D+="\\x00";continue}}if(r[i]){D+=r[i];continue}if(i<" "){let u=i.charCodeAt(0).toString(16);D+="\\x"+("00"+u).substring(u.length);continue}D+=i}const n=o||Object.keys(e).reduce(((u,r)=>e[u]<e[r]?u:r));D=D.replace(new RegExp(n,"g"),r[n]);return n+D+n}function serializeObject(u){if(D.indexOf(u)>=0){throw TypeError("Converting circular structure to JSON5")}D.push(u);let e=n;n=n+s;let r=i||Object.keys(u);let t=[];for(const e of r){const r=serializeProperty(e,u);if(r!==undefined){let u=serializeKey(e)+":";if(s!==""){u+=" "}u+=r;t.push(u)}}let a;if(t.length===0){a="{}"}else{let u;if(s===""){u=t.join(",");a="{"+u+"}"}else{let r=",\n"+n;u=t.join(r);a="{\n"+n+u+",\n"+e+"}"}}D.pop();n=e;return a}function serializeKey(u){if(u.length===0){return quoteString(u,true)}const e=String.fromCodePoint(u.codePointAt(0));if(!t.isIdStartChar(e)){return quoteString(u,true)}for(let r=e.length;r<u.length;r++){if(!t.isIdContinueChar(String.fromCodePoint(u.codePointAt(r)))){return quoteString(u,true)}}return u}function serializeArray(u){if(D.indexOf(u)>=0){throw TypeError("Converting circular structure to JSON5")}D.push(u);let e=n;n=n+s;let r=[];for(let e=0;e<u.length;e++){const t=serializeProperty(String(e),u);r.push(t!==undefined?t:"null")}let t;if(r.length===0){t="[]"}else{if(s===""){let u=r.join(",");t="["+u+"]"}else{let u=",\n"+n;let D=r.join(u);t="[\n"+n+D+",\n"+e+"]"}}D.pop();n=e;return t}}},271:function(u){u.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;u.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;u.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},812:function(u,e,r){const t=r(271);u.exports={isSpaceSeparator(u){return typeof u==="string"&&t.Space_Separator.test(u)},isIdStartChar(u){return typeof u==="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u==="$"||u==="_"||t.ID_Start.test(u))},isIdContinueChar(u){return typeof u==="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u>="0"&&u<="9"||u==="$"||u==="_"||u===""||u===""||t.ID_Continue.test(u))},isDigit(u){return typeof u==="string"&&/[0-9]/.test(u)},isHexDigit(u){return typeof u==="string"&&/[0-9A-Fa-f]/.test(u)}}},319:function(u){u.exports=function(u,e){if(!e)e={};var r={bools:{},strings:{},unknownFn:null};if(typeof e["unknown"]==="function"){r.unknownFn=e["unknown"]}if(typeof e["boolean"]==="boolean"&&e["boolean"]){r.allBools=true}else{[].concat(e["boolean"]).filter(Boolean).forEach((function(u){r.bools[u]=true}))}var t={};Object.keys(e.alias||{}).forEach((function(u){t[u]=[].concat(e.alias[u]);t[u].forEach((function(e){t[e]=[u].concat(t[u].filter((function(u){return e!==u})))}))}));[].concat(e.string).filter(Boolean).forEach((function(u){r.strings[u]=true;if(t[u]){r.strings[t[u]]=true}}));var D=e["default"]||{};var n={_:[]};Object.keys(r.bools).forEach((function(u){setArg(u,D[u]===undefined?false:D[u])}));var i=[];if(u.indexOf("--")!==-1){i=u.slice(u.indexOf("--")+1);u=u.slice(0,u.indexOf("--"))}function argDefined(u,e){return r.allBools&&/^--[^=]+$/.test(e)||r.strings[u]||r.bools[u]||t[u]}function setArg(u,e,D){if(D&&r.unknownFn&&!argDefined(u,D)){if(r.unknownFn(D)===false)return}var i=!r.strings[u]&&isNumber(e)?Number(e):e;setKey(n,u.split("."),i);(t[u]||[]).forEach((function(u){setKey(n,u.split("."),i)}))}function setKey(u,e,t){var D=u;for(var n=0;n<e.length-1;n++){var i=e[n];if(isConstructorOrProto(D,i))return;if(D[i]===undefined)D[i]={};if(D[i]===Object.prototype||D[i]===Number.prototype||D[i]===String.prototype)D[i]={};if(D[i]===Array.prototype)D[i]=[];D=D[i]}var i=e[e.length-1];if(isConstructorOrProto(D,i))return;if(D===Object.prototype||D===Number.prototype||D===String.prototype)D={};if(D===Array.prototype)D=[];if(D[i]===undefined||r.bools[i]||typeof D[i]==="boolean"){D[i]=t}else if(Array.isArray(D[i])){D[i].push(t)}else{D[i]=[D[i],t]}}function aliasIsBoolean(u){return t[u].some((function(u){return r.bools[u]}))}for(var a=0;a<u.length;a++){var s=u[a];if(/^--.+=/.test(s)){var o=s.match(/^--([^=]+)=([\s\S]*)$/);var F=o[1];var C=o[2];if(r.bools[F]){C=C!=="false"}setArg(F,C,s)}else if(/^--no-.+/.test(s)){var F=s.match(/^--no-(.+)/)[1];setArg(F,false,s)}else if(/^--.+/.test(s)){var F=s.match(/^--(.+)/)[1];var c=u[a+1];if(c!==undefined&&!/^-/.test(c)&&!r.bools[F]&&!r.allBools&&(t[F]?!aliasIsBoolean(F):true)){setArg(F,c,s);a++}else if(/^(true|false)$/.test(c)){setArg(F,c==="true",s);a++}else{setArg(F,r.strings[F]?"":true,s)}}else if(/^-[^-]+/.test(s)){var A=s.slice(1,-1).split("");var f=false;for(var E=0;E<A.length;E++){var c=s.slice(E+2);if(c==="-"){setArg(A[E],c,s);continue}if(/[A-Za-z]/.test(A[E])&&/=/.test(c)){setArg(A[E],c.split("=")[1],s);f=true;break}if(/[A-Za-z]/.test(A[E])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(c)){setArg(A[E],c,s);f=true;break}if(A[E+1]&&A[E+1].match(/\W/)){setArg(A[E],s.slice(E+2),s);f=true;break}else{setArg(A[E],r.strings[A[E]]?"":true,s)}}var F=s.slice(-1)[0];if(!f&&F!=="-"){if(u[a+1]&&!/^(-|--)[^-]/.test(u[a+1])&&!r.bools[F]&&(t[F]?!aliasIsBoolean(F):true)){setArg(F,u[a+1],s);a++}else if(u[a+1]&&/^(true|false)$/.test(u[a+1])){setArg(F,u[a+1]==="true",s);a++}else{setArg(F,r.strings[F]?"":true,s)}}}else{if(!r.unknownFn||r.unknownFn(s)!==false){n._.push(r.strings["_"]||!isNumber(s)?s:Number(s))}if(e.stopEarly){n._.push.apply(n._,u.slice(a+1));break}}}Object.keys(D).forEach((function(u){if(!hasKey(n,u.split("."))){setKey(n,u.split("."),D[u]);(t[u]||[]).forEach((function(e){setKey(n,e.split("."),D[u])}))}}));if(e["--"]){n["--"]=new Array;i.forEach((function(u){n["--"].push(u)}))}else{i.forEach((function(u){n._.push(u)}))}return n};function hasKey(u,e){var r=u;e.slice(0,-1).forEach((function(u){r=r[u]||{}}));var t=e[e.length-1];return t in r}function isNumber(u){if(typeof u==="number")return true;if(/^0x[0-9a-f]+$/i.test(u))return true;return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(u)}function isConstructorOrProto(u,e){return e==="constructor"&&typeof u[e]==="function"||e==="__proto__"}},308:function(u){"use strict";u.exports=u=>{if(typeof u!=="string"){throw new TypeError("Expected a string, got "+typeof u)}if(u.charCodeAt(0)===65279){return u.slice(1)}return u}},674:function(u,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:true});e.configLoader=e.loadConfig=void 0;var t=r(81);var D=r(17);function loadConfig(u){if(u===void 0){u=process.cwd()}return configLoader({cwd:u})}e.loadConfig=loadConfig;function configLoader(u){var e=u.cwd,r=u.explicitParams,n=u.tsConfigLoader,i=n===void 0?t.tsConfigLoader:n;if(r){var a=D.isAbsolute(r.baseUrl)?r.baseUrl:D.join(e,r.baseUrl);return{resultType:"success",configFileAbsolutePath:"",baseUrl:r.baseUrl,absoluteBaseUrl:a,paths:r.paths,mainFields:r.mainFields,addMatchAll:r.addMatchAll}}var s=i({cwd:e,getEnv:function(u){return process.env[u]}});if(!s.tsConfigPath){return{resultType:"failed",message:"Couldn't find tsconfig.json"}}return{resultType:"success",configFileAbsolutePath:s.tsConfigPath,baseUrl:s.baseUrl,absoluteBaseUrl:D.resolve(D.dirname(s.tsConfigPath),s.baseUrl||""),paths:s.paths||{},addMatchAll:s.baseUrl!==undefined}}e.configLoader=configLoader},465:function(u,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:true});e.removeExtension=e.fileExistsAsync=e.readJsonFromDiskAsync=e.readJsonFromDiskSync=e.fileExistsSync=void 0;var t=r(147);function fileExistsSync(u){if(!t.existsSync(u)){return false}try{var e=t.statSync(u);return e.isFile()}catch(u){return false}}e.fileExistsSync=fileExistsSync;function readJsonFromDiskSync(u){if(!t.existsSync(u)){return undefined}return require(u)}e.readJsonFromDiskSync=readJsonFromDiskSync;function readJsonFromDiskAsync(u,e){t.readFile(u,"utf8",(function(u,r){if(u||!r){return e()}var t=JSON.parse(r);return e(undefined,t)}))}e.readJsonFromDiskAsync=readJsonFromDiskAsync;function fileExistsAsync(u,e){t.stat(u,(function(u,r){if(u){return e(undefined,false)}e(undefined,r?r.isFile():false)}))}e.fileExistsAsync=fileExistsAsync;function removeExtension(u){return u.substring(0,u.lastIndexOf("."))||u}e.removeExtension=removeExtension},566:function(u,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:true});e.getAbsoluteMappingEntries=void 0;var t=r(17);function getAbsoluteMappingEntries(u,e,r){var D=sortByLongestPrefix(Object.keys(e));var n=[];for(var i=0,a=D;i<a.length;i++){var s=a[i];n.push({pattern:s,paths:e[s].map((function(e){return t.resolve(u,e)}))})}if(!e["*"]&&r){n.push({pattern:"*",paths:["".concat(u.replace(/\/$/,""),"/*")]})}return n}e.getAbsoluteMappingEntries=getAbsoluteMappingEntries;function sortByLongestPrefix(u){return u.concat().sort((function(u,e){return getPrefixLength(e)-getPrefixLength(u)}))}function getPrefixLength(u){var e=u.indexOf("*");return u.substr(0,e).length}},883:function(u,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:true});e.matchFromAbsolutePathsAsync=e.createMatchPathAsync=void 0;var t=r(17);var D=r(237);var n=r(566);var i=r(465);function createMatchPathAsync(u,e,r,t){if(r===void 0){r=["main"]}if(t===void 0){t=true}var D=n.getAbsoluteMappingEntries(u,e,t);return function(u,e,t,n,i){return matchFromAbsolutePathsAsync(D,u,e,t,n,i,r)}}e.createMatchPathAsync=createMatchPathAsync;function matchFromAbsolutePathsAsync(u,e,r,t,n,a,s){if(r===void 0){r=i.readJsonFromDiskAsync}if(t===void 0){t=i.fileExistsAsync}if(n===void 0){n=Object.keys(require.extensions)}if(s===void 0){s=["main"]}var o=D.getPathsToTry(n,u,e);if(!o){return a()}findFirstExistingPath(o,r,t,a,0,s)}e.matchFromAbsolutePathsAsync=matchFromAbsolutePathsAsync;function findFirstExistingMainFieldMappedFile(u,e,r,D,n,i){if(i===void 0){i=0}if(i>=e.length){return n(undefined,undefined)}var tryNext=function(){return findFirstExistingMainFieldMappedFile(u,e,r,D,n,i+1)};var a=e[i];var s=typeof a==="string"?u[a]:a.reduce((function(u,e){return u[e]}),u);if(typeof s!=="string"){return tryNext()}var o=t.join(t.dirname(r),s);D(o,(function(u,e){if(u){return n(u)}if(e){return n(undefined,o)}return tryNext()}))}function findFirstExistingPath(u,e,r,t,n,i){if(n===void 0){n=0}if(i===void 0){i=["main"]}var a=u[n];if(a.type==="file"||a.type==="extension"||a.type==="index"){r(a.path,(function(s,o){if(s){return t(s)}if(o){return t(undefined,D.getStrippedPath(a))}if(n===u.length-1){return t()}return findFirstExistingPath(u,e,r,t,n+1,i)}))}else if(a.type==="package"){e(a.path,(function(D,s){if(D){return t(D)}if(s){return findFirstExistingMainFieldMappedFile(s,i,a.path,r,(function(D,a){if(D){return t(D)}if(a){return t(undefined,a)}return findFirstExistingPath(u,e,r,t,n+1,i)}))}return findFirstExistingPath(u,e,r,t,n+1,i)}))}else{D.exhaustiveTypeException(a.type)}}},961:function(u,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:true});e.matchFromAbsolutePaths=e.createMatchPath=void 0;var t=r(17);var D=r(465);var n=r(566);var i=r(237);function createMatchPath(u,e,r,t){if(r===void 0){r=["main"]}if(t===void 0){t=true}var D=n.getAbsoluteMappingEntries(u,e,t);return function(u,e,t,n){return matchFromAbsolutePaths(D,u,e,t,n,r)}}e.createMatchPath=createMatchPath;function matchFromAbsolutePaths(u,e,r,t,n,a){if(r===void 0){r=D.readJsonFromDiskSync}if(t===void 0){t=D.fileExistsSync}if(n===void 0){n=Object.keys(require.extensions)}if(a===void 0){a=["main"]}var s=i.getPathsToTry(n,u,e);if(!s){return undefined}return findFirstExistingPath(s,r,t,a)}e.matchFromAbsolutePaths=matchFromAbsolutePaths;function findFirstExistingMainFieldMappedFile(u,e,r,D){for(var n=0;n<e.length;n++){var i=e[n];var a=typeof i==="string"?u[i]:i.reduce((function(u,e){return u[e]}),u);if(a&&typeof a==="string"){var s=t.join(t.dirname(r),a);if(D(s)){return s}}}return undefined}function findFirstExistingPath(u,e,r,t){if(e===void 0){e=D.readJsonFromDiskSync}if(t===void 0){t=["main"]}for(var n=0,a=u;n<a.length;n++){var s=a[n];if(s.type==="file"||s.type==="extension"||s.type==="index"){if(r(s.path)){return i.getStrippedPath(s)}}else if(s.type==="package"){var o=e(s.path);if(o){var F=findFirstExistingMainFieldMappedFile(o,t,s.path,r);if(F){return F}}}else{i.exhaustiveTypeException(s.type)}}return undefined}},135:function(u,e,r){"use strict";var t=this&&this.__spreadArray||function(u,e,r){if(r||arguments.length===2)for(var t=0,D=e.length,n;t<D;t++){if(n||!(t in e)){if(!n)n=Array.prototype.slice.call(e,0,t);n[t]=e[t]}}return u.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:true});e.register=void 0;var D=r(961);var n=r(674);var noOp=function(){return void 0};function getCoreModules(u){u=u||["assert","buffer","child_process","cluster","crypto","dgram","dns","domain","events","fs","http","https","net","os","path","punycode","querystring","readline","stream","string_decoder","tls","tty","url","util","v8","vm","zlib"];var e={};for(var r=0,t=u;r<t.length;r++){var D=t[r];e[D]=true}return e}function register(u){var e;var i;if(u){e=u.cwd;if(u.baseUrl||u.paths){i=u}}else{var a=r(319);var s=a(process.argv.slice(2),{string:["project"],alias:{project:["P"]}});e=s.project}var o=(0,n.configLoader)({cwd:e!==null&&e!==void 0?e:process.cwd(),explicitParams:i});if(o.resultType==="failed"){console.warn("".concat(o.message,". tsconfig-paths will be skipped"));return noOp}var F=(0,D.createMatchPath)(o.absoluteBaseUrl,o.paths,o.mainFields,o.addMatchAll);var C=r(188);var c=C._resolveFilename;var A=getCoreModules(C.builtinModules);C._resolveFilename=function(u,e){var r=A.hasOwnProperty(u);if(!r){var D=F(u);if(D){var n=t([D],[].slice.call(arguments,1),true);return c.apply(this,n)}}return c.apply(this,arguments)};return function(){C._resolveFilename=c}}e.register=register},237:function(u,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:true});e.exhaustiveTypeException=e.getStrippedPath=e.getPathsToTry=void 0;var t=r(17);var D=r(17);var n=r(465);function getPathsToTry(u,e,r){if(!e||!r||r[0]==="."){return undefined}var D=[];for(var n=0,i=e;n<i.length;n++){var a=i[n];var s=a.pattern===r?"":matchStar(a.pattern,r);if(s!==undefined){var _loop_1=function(e){var r=e.replace("*",s);D.push({type:"file",path:r});D.push.apply(D,u.map((function(u){return{type:"extension",path:r+u}})));D.push({type:"package",path:t.join(r,"/package.json")});var n=t.join(r,"/index");D.push.apply(D,u.map((function(u){return{type:"index",path:n+u}})))};for(var o=0,F=a.paths;o<F.length;o++){var C=F[o];_loop_1(C)}}}return D.length===0?undefined:D}e.getPathsToTry=getPathsToTry;function getStrippedPath(u){return u.type==="index"?(0,D.dirname)(u.path):u.type==="file"?u.path:u.type==="extension"?(0,n.removeExtension)(u.path):u.type==="package"?u.path:exhaustiveTypeException(u.type)}e.getStrippedPath=getStrippedPath;function exhaustiveTypeException(u){throw new Error("Unknown type ".concat(u))}e.exhaustiveTypeException=exhaustiveTypeException;function matchStar(u,e){if(e.length<u.length){return undefined}if(u==="*"){return e}var r=u.indexOf("*");if(r===-1){return undefined}var t=u.substring(0,r);var D=u.substring(r+1);if(e.substr(0,r)!==t){return undefined}if(e.substr(e.length-D.length)!==D){return undefined}return e.substr(r,e.length-D.length)}},81:function(u,e,r){"use strict";var t=this&&this.__assign||function(){t=Object.assign||function(u){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var D in e)if(Object.prototype.hasOwnProperty.call(e,D))u[D]=e[D]}return u};return t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:true});e.loadTsconfig=e.walkForTsConfig=e.tsConfigLoader=void 0;var D=r(17);var n=r(147);var i=r(361);var a=r(308);function tsConfigLoader(u){var e=u.getEnv,r=u.cwd,t=u.loadSync,D=t===void 0?loadSyncDefault:t;var n=e("TS_NODE_PROJECT");var i=e("TS_NODE_BASEURL");var a=D(r,n,i);return a}e.tsConfigLoader=tsConfigLoader;function loadSyncDefault(u,e,r){var t=resolveConfigPath(u,e);if(!t){return{tsConfigPath:undefined,baseUrl:undefined,paths:undefined}}var D=loadTsconfig(t);return{tsConfigPath:t,baseUrl:r||D&&D.compilerOptions&&D.compilerOptions.baseUrl,paths:D&&D.compilerOptions&&D.compilerOptions.paths}}function resolveConfigPath(u,e){if(e){var r=n.lstatSync(e).isDirectory()?D.resolve(e,"./tsconfig.json"):D.resolve(u,e);return r}if(n.statSync(u).isFile()){return D.resolve(u)}var t=walkForTsConfig(u);return t?D.resolve(t):undefined}function walkForTsConfig(u,e){if(e===void 0){e=n.readdirSync}var r=e(u);var t=["tsconfig.json","jsconfig.json"];for(var i=0,a=t;i<a.length;i++){var s=a[i];if(r.indexOf(s)!==-1){return D.join(u,s)}}var o=D.dirname(u);if(u===o){return undefined}return walkForTsConfig(o,e)}e.walkForTsConfig=walkForTsConfig;function loadTsconfig(u,e,r){if(e===void 0){e=n.existsSync}if(r===void 0){r=function(u){return n.readFileSync(u,"utf8")}}if(!e(u)){return undefined}var s=r(u);var o=a(s);var F;try{F=i.parse(o)}catch(e){throw new Error("".concat(u," is malformed ").concat(e.message))}var C=F.extends;if(C){if(typeof C==="string"&&C.indexOf(".json")===-1){C+=".json"}var c=D.dirname(u);var A=D.join(c,C);if(C.indexOf("/")!==-1&&C.indexOf(".")!==-1&&!e(A)){A=D.join(c,"node_modules",C)}var f=loadTsconfig(A,e,r)||{};if(f.compilerOptions&&f.compilerOptions.baseUrl){var E=D.dirname(C);f.compilerOptions.baseUrl=D.join(E,f.compilerOptions.baseUrl)}return t(t(t({},f),F),{compilerOptions:t(t({},f.compilerOptions),F.compilerOptions)})}return F}e.loadTsconfig=loadTsconfig},147:function(u){"use strict";u.exports=require("fs")},188:function(u){"use strict";u.exports=require("module")},17:function(u){"use strict";u.exports=require("path")}};var e={};function __nccwpck_require__(r){var t=e[r];if(t!==undefined){return t.exports}var D=e[r]={exports:{}};var n=true;try{u[r].call(D.exports,D,D.exports,__nccwpck_require__);n=false}finally{if(n)delete e[r]}return D.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r={};!function(){"use strict";var u=r;Object.defineProperty(u,"__esModule",{value:true});u.loadConfig=u.register=u.matchFromAbsolutePathsAsync=u.createMatchPathAsync=u.matchFromAbsolutePaths=u.createMatchPath=void 0;var e=__nccwpck_require__(961);Object.defineProperty(u,"createMatchPath",{enumerable:true,get:function(){return e.createMatchPath}});Object.defineProperty(u,"matchFromAbsolutePaths",{enumerable:true,get:function(){return e.matchFromAbsolutePaths}});var t=__nccwpck_require__(883);Object.defineProperty(u,"createMatchPathAsync",{enumerable:true,get:function(){return t.createMatchPathAsync}});Object.defineProperty(u,"matchFromAbsolutePathsAsync",{enumerable:true,get:function(){return t.matchFromAbsolutePathsAsync}});var D=__nccwpck_require__(135);Object.defineProperty(u,"register",{enumerable:true,get:function(){return D.register}});var n=__nccwpck_require__(674);Object.defineProperty(u,"loadConfig",{enumerable:true,get:function(){return n.loadConfig}})}();module.exports=r})();
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { createMatchPath, matchFromAbsolutePaths, MatchPath, } from "./match-path-sync";
|
|
2
|
+
export { createMatchPathAsync, matchFromAbsolutePathsAsync, MatchPathAsync, } from "./match-path-async";
|
|
3
|
+
export { register } from "./register";
|
|
4
|
+
export { loadConfig, ConfigLoaderResult, ConfigLoaderSuccessResult, ConfigLoaderFailResult, } from "./config-loader";
|
|
5
|
+
export { ReadJsonSync, ReadJsonAsync, FileExistsSync, FileExistsAsync, } from "./filesystem";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"tsconfig-paths","version":"4.1.2","author":"Jonas Kello","license":"MIT","types":"lib/index.d.ts"}
|
|
@@ -17,10 +17,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
20
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
21
|
mod
|
|
26
22
|
));
|
|
@@ -17,10 +17,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
20
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
21
|
mod
|
|
26
22
|
));
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import deepmerge from '../compiled/deepmerge';
|
|
|
10
10
|
import * as execa from '../compiled/execa';
|
|
11
11
|
import fsExtra from '../compiled/fs-extra';
|
|
12
12
|
import glob from '../compiled/glob';
|
|
13
|
+
import remapping from '../compiled/@ampproject/remapping';
|
|
13
14
|
import * as fastestLevenshtein from '../compiled/fastest-levenshtein';
|
|
14
15
|
import * as filesize from '../compiled/filesize';
|
|
15
16
|
import * as gzipSize from '../compiled/gzip-size';
|
|
@@ -23,6 +24,7 @@ import resolve from '../compiled/resolve';
|
|
|
23
24
|
import rimraf from '../compiled/rimraf';
|
|
24
25
|
import semver from '../compiled/semver';
|
|
25
26
|
import stripAnsi from '../compiled/strip-ansi';
|
|
27
|
+
import * as tsconfigPaths from '../compiled/tsconfig-paths';
|
|
26
28
|
import yParser from '../compiled/yargs-parser';
|
|
27
29
|
import BaseGenerator from './BaseGenerator/BaseGenerator';
|
|
28
30
|
import generateFile from './BaseGenerator/generateFile';
|
|
@@ -41,8 +43,9 @@ export * from './isMonorepo';
|
|
|
41
43
|
export * from './isStyleFile';
|
|
42
44
|
export * from './npmClient';
|
|
43
45
|
export * from './randomColor/randomColor';
|
|
46
|
+
export * from './readDirFiles';
|
|
44
47
|
export * as register from './register';
|
|
45
48
|
export * from './setNoDeprecation';
|
|
46
49
|
export * from './tryPaths';
|
|
47
50
|
export * from './winPath';
|
|
48
|
-
export { address, axios, chalk, cheerio, chokidar, crossSpawn, debug, deepmerge, execa, fsExtra, glob, Generator, BaseGenerator, generateFile, installDeps, lodash, logger, Mustache, pkgUp, portfinder, prompts, resolve, rimraf, semver, stripAnsi, updatePackageJSON, yParser, getGitInfo, printHelp, filesize, gzipSize, fastestLevenshtein, clackPrompts, MagicString, };
|
|
51
|
+
export { address, axios, chalk, cheerio, chokidar, crossSpawn, debug, deepmerge, execa, fsExtra, glob, Generator, BaseGenerator, generateFile, installDeps, lodash, logger, Mustache, pkgUp, portfinder, prompts, resolve, rimraf, semver, stripAnsi, updatePackageJSON, yParser, getGitInfo, printHelp, filesize, gzipSize, fastestLevenshtein, clackPrompts, MagicString, remapping, tsconfigPaths, };
|
package/dist/index.js
CHANGED
|
@@ -60,10 +60,12 @@ __export(src_exports, {
|
|
|
60
60
|
printHelp: () => printHelp,
|
|
61
61
|
prompts: () => import_prompts.default,
|
|
62
62
|
register: () => register,
|
|
63
|
+
remapping: () => import_remapping.default,
|
|
63
64
|
resolve: () => import_resolve.default,
|
|
64
65
|
rimraf: () => import_rimraf.default,
|
|
65
66
|
semver: () => import_semver.default,
|
|
66
67
|
stripAnsi: () => import_strip_ansi.default,
|
|
68
|
+
tsconfigPaths: () => tsconfigPaths,
|
|
67
69
|
updatePackageJSON: () => import_updatePackageJSON.default,
|
|
68
70
|
yParser: () => import_yargs_parser.default
|
|
69
71
|
});
|
|
@@ -80,6 +82,7 @@ var import_deepmerge = __toESM(require("../compiled/deepmerge"));
|
|
|
80
82
|
var execa = __toESM(require("../compiled/execa"));
|
|
81
83
|
var import_fs_extra = __toESM(require("../compiled/fs-extra"));
|
|
82
84
|
var import_glob = __toESM(require("../compiled/glob"));
|
|
85
|
+
var import_remapping = __toESM(require("../compiled/@ampproject/remapping"));
|
|
83
86
|
var fastestLevenshtein = __toESM(require("../compiled/fastest-levenshtein"));
|
|
84
87
|
var filesize = __toESM(require("../compiled/filesize"));
|
|
85
88
|
var gzipSize = __toESM(require("../compiled/gzip-size"));
|
|
@@ -93,6 +96,7 @@ var import_resolve = __toESM(require("../compiled/resolve"));
|
|
|
93
96
|
var import_rimraf = __toESM(require("../compiled/rimraf"));
|
|
94
97
|
var import_semver = __toESM(require("../compiled/semver"));
|
|
95
98
|
var import_strip_ansi = __toESM(require("../compiled/strip-ansi"));
|
|
99
|
+
var tsconfigPaths = __toESM(require("../compiled/tsconfig-paths"));
|
|
96
100
|
var import_yargs_parser = __toESM(require("../compiled/yargs-parser"));
|
|
97
101
|
var import_BaseGenerator = __toESM(require("./BaseGenerator/BaseGenerator"));
|
|
98
102
|
var import_generateFile = __toESM(require("./BaseGenerator/generateFile"));
|
|
@@ -111,6 +115,7 @@ __reExport(src_exports, require("./isMonorepo"), module.exports);
|
|
|
111
115
|
__reExport(src_exports, require("./isStyleFile"), module.exports);
|
|
112
116
|
__reExport(src_exports, require("./npmClient"), module.exports);
|
|
113
117
|
__reExport(src_exports, require("./randomColor/randomColor"), module.exports);
|
|
118
|
+
__reExport(src_exports, require("./readDirFiles"), module.exports);
|
|
114
119
|
var register = __toESM(require("./register"));
|
|
115
120
|
__reExport(src_exports, require("./setNoDeprecation"), module.exports);
|
|
116
121
|
__reExport(src_exports, require("./tryPaths"), module.exports);
|
|
@@ -147,10 +152,12 @@ __reExport(src_exports, require("./winPath"), module.exports);
|
|
|
147
152
|
printHelp,
|
|
148
153
|
prompts,
|
|
149
154
|
register,
|
|
155
|
+
remapping,
|
|
150
156
|
resolve,
|
|
151
157
|
rimraf,
|
|
152
158
|
semver,
|
|
153
159
|
stripAnsi,
|
|
160
|
+
tsconfigPaths,
|
|
154
161
|
updatePackageJSON,
|
|
155
162
|
yParser
|
|
156
163
|
});
|
package/dist/logger.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
|
@@ -58,16 +62,17 @@ var prefixes = {
|
|
|
58
62
|
debug: import_chalk.default.gray("debug") + " -",
|
|
59
63
|
profile: import_chalk.default.blue("profile") + " -"
|
|
60
64
|
};
|
|
65
|
+
var pinoModule = (0, import_importLazy.importLazy)(require.resolve("pino"));
|
|
61
66
|
var logger;
|
|
62
67
|
if (enableFSLogger) {
|
|
63
|
-
const
|
|
64
|
-
require.resolve("pino")
|
|
65
|
-
);
|
|
68
|
+
const pino = pinoModule.default;
|
|
66
69
|
import_fs_extra.default.mkdirpSync(loggerDir);
|
|
67
70
|
const customLevels = {
|
|
68
71
|
ready: 31,
|
|
69
72
|
event: 32,
|
|
70
73
|
wait: 55,
|
|
74
|
+
// 虽然这里设置了 debug 为 30,但日志中还是 20,符合预期
|
|
75
|
+
// 这里不加会不生成到 umi.log,transport 的 level 配置没有生效,原因不明
|
|
71
76
|
debug: 30
|
|
72
77
|
};
|
|
73
78
|
logger = pino(
|
package/dist/npmClient.js
CHANGED
|
@@ -17,10 +17,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
20
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
21
|
mod
|
|
26
22
|
));
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/readDirFiles.ts
|
|
20
|
+
var readDirFiles_exports = {};
|
|
21
|
+
__export(readDirFiles_exports, {
|
|
22
|
+
readDirFiles: () => readDirFiles
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(readDirFiles_exports);
|
|
25
|
+
var import_path = require("path");
|
|
26
|
+
var import_fs_extra = require("../compiled/fs-extra");
|
|
27
|
+
var readDirFiles = (opts) => {
|
|
28
|
+
const { dir, exclude = [] } = opts;
|
|
29
|
+
const list = [];
|
|
30
|
+
const recursiveReadFiles = (p) => {
|
|
31
|
+
if (!(0, import_fs_extra.existsSync)(p)) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const isFile = (0, import_fs_extra.statSync)(p).isFile();
|
|
35
|
+
if (isFile) {
|
|
36
|
+
const name = (0, import_path.basename)(p);
|
|
37
|
+
list.push({
|
|
38
|
+
filePath: p,
|
|
39
|
+
name
|
|
40
|
+
});
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const files = (0, import_fs_extra.readdirSync)(p).filter((name) => {
|
|
44
|
+
return name !== ".DS_Store";
|
|
45
|
+
}).map((file) => {
|
|
46
|
+
const absolutePath = (0, import_path.join)(p, file);
|
|
47
|
+
return absolutePath;
|
|
48
|
+
}).filter((file) => {
|
|
49
|
+
const isExclude = exclude.some((reg) => reg.test(file));
|
|
50
|
+
return !isExclude;
|
|
51
|
+
});
|
|
52
|
+
files.forEach((file) => {
|
|
53
|
+
recursiveReadFiles(file);
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
recursiveReadFiles(dir);
|
|
57
|
+
return list;
|
|
58
|
+
};
|
|
59
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
60
|
+
0 && (module.exports = {
|
|
61
|
+
readDirFiles
|
|
62
|
+
});
|
package/dist/register.js
CHANGED
|
@@ -42,8 +42,6 @@ function transform(opts) {
|
|
|
42
42
|
return implementor.transformSync(code, {
|
|
43
43
|
sourcefile: filename,
|
|
44
44
|
loader: ext.slice(1),
|
|
45
|
-
// consistent with `tsconfig.base.json`
|
|
46
|
-
// https://github.com/umijs/umi-next/pull/729
|
|
47
45
|
target: "es2019",
|
|
48
46
|
format: "cjs",
|
|
49
47
|
logLevel: "error"
|
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
|
@@ -31,7 +35,6 @@ module.exports = __toCommonJS(updatePackageJSON_exports);
|
|
|
31
35
|
var import_fs = require("fs");
|
|
32
36
|
var import_path = require("path");
|
|
33
37
|
var import_deepmerge = __toESM(require("../compiled/deepmerge"));
|
|
34
|
-
var import_prettier = __toESM(require("../compiled/prettier"));
|
|
35
38
|
function updatePackageJSON({
|
|
36
39
|
opts,
|
|
37
40
|
cwd = process.cwd()
|
|
@@ -41,9 +44,9 @@ function updatePackageJSON({
|
|
|
41
44
|
const projectPkg = (0, import_deepmerge.default)(pkg, opts);
|
|
42
45
|
(0, import_fs.writeFileSync)(
|
|
43
46
|
packageJsonPath,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
`${JSON.stringify(projectPkg, null, 2)}
|
|
48
|
+
`,
|
|
49
|
+
"utf-8"
|
|
47
50
|
);
|
|
48
51
|
}
|
|
49
52
|
var updatePackageJSON_default = updatePackageJSON;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/utils",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.20230302.1",
|
|
4
4
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/utils#readme",
|
|
5
5
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
6
6
|
"repository": {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"pino": "7.11.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
+
"@ampproject/remapping": "2.2.0",
|
|
28
29
|
"@clack/prompts": "0.2.2",
|
|
29
30
|
"@hapi/joi": "17.1.1",
|
|
30
31
|
"@types/color": "3.0.3",
|
|
@@ -59,12 +60,13 @@
|
|
|
59
60
|
"pirates": "4.0.5",
|
|
60
61
|
"pkg-up": "4.0.0",
|
|
61
62
|
"portfinder": "1.0.32",
|
|
62
|
-
"prettier": "2.8.
|
|
63
|
+
"prettier": "2.8.4",
|
|
63
64
|
"prompts": "2.4.2",
|
|
64
65
|
"resolve": "1.22.0",
|
|
65
66
|
"rimraf": "3.0.2",
|
|
66
67
|
"semver": "7.3.8",
|
|
67
68
|
"strip-ansi": "7.0.1",
|
|
69
|
+
"tsconfig-paths": "4.1.2",
|
|
68
70
|
"yargs-parser": "21.1.1"
|
|
69
71
|
},
|
|
70
72
|
"publishConfig": {
|
|
@@ -101,7 +103,9 @@
|
|
|
101
103
|
"pirates",
|
|
102
104
|
"@hapi/joi",
|
|
103
105
|
"@clack/prompts",
|
|
104
|
-
"magic-string"
|
|
106
|
+
"magic-string",
|
|
107
|
+
"@ampproject/remapping",
|
|
108
|
+
"tsconfig-paths"
|
|
105
109
|
],
|
|
106
110
|
"externals": {
|
|
107
111
|
"address": "$$LOCAL",
|
|
@@ -123,7 +127,8 @@
|
|
|
123
127
|
"strip-ansi": "$$LOCAL",
|
|
124
128
|
"yargs-parser": "$$LOCAL",
|
|
125
129
|
"pirates": "$$LOCAL",
|
|
126
|
-
"@hapi/joi": "$$LOCAL"
|
|
130
|
+
"@hapi/joi": "$$LOCAL",
|
|
131
|
+
"tsconfig-paths": "$$LOCAL"
|
|
127
132
|
}
|
|
128
133
|
}
|
|
129
134
|
}
|