@rindo/core 4.20.0 → 4.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/lib.es2023.array.d.ts +5 -5
- package/compiler/package.json +1 -1
- package/compiler/rindo.js +3534 -273
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/index.cjs +1 -1
- package/internal/app-data/index.js +1 -1
- package/internal/app-data/package.json +1 -1
- package/internal/client/index.js +25 -13
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +27 -19
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.d.ts +10 -4
- package/internal/hydrate/runner.js +389 -239
- package/internal/package.json +1 -1
- package/internal/rindo-public-compiler.d.ts +43 -4
- package/internal/rindo-public-runtime.d.ts +4 -0
- package/internal/testing/index.js +24 -12
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +32 -1
- package/mock-doc/index.d.ts +8 -0
- package/mock-doc/index.js +32 -1
- package/mock-doc/package.json +1 -1
- package/package.json +9 -7
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +47 -45
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +2 -2
- package/testing/index.js +39 -1
- package/testing/package.json +1 -1
package/compiler/rindo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Rindo Compiler v4.
|
|
2
|
+
Rindo Compiler v4.22.0 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
var __create = Object.create;
|
|
@@ -45,6 +45,14 @@ var __privateGet = (obj, member2, getter) => (__accessCheck(obj, member2, "read
|
|
|
45
45
|
var __privateAdd = (obj, member2, value) => member2.has(obj) ? __typeError("Cannot add the same private member more than once") : member2 instanceof WeakSet ? member2.add(obj) : member2.set(obj, value);
|
|
46
46
|
var __privateSet = (obj, member2, value, setter) => (__accessCheck(obj, member2, "write to private field"), setter ? setter.call(obj, value) : member2.set(obj, value), value);
|
|
47
47
|
var __privateMethod = (obj, member2, method) => (__accessCheck(obj, member2, "access private method"), method);
|
|
48
|
+
var __privateWrapper = (obj, member2, setter, getter) => ({
|
|
49
|
+
set _(value) {
|
|
50
|
+
__privateSet(obj, member2, value, setter);
|
|
51
|
+
},
|
|
52
|
+
get _() {
|
|
53
|
+
return __privateGet(obj, member2, getter);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
48
56
|
|
|
49
57
|
// node_modules/source-map/lib/base64.js
|
|
50
58
|
var require_base64 = __commonJS({
|
|
@@ -2312,9 +2320,9 @@ var require_source_map_support = __commonJS({
|
|
|
2312
2320
|
}
|
|
2313
2321
|
});
|
|
2314
2322
|
|
|
2315
|
-
// scripts/build/typescript-
|
|
2316
|
-
var
|
|
2317
|
-
"scripts/build/typescript-
|
|
2323
|
+
// scripts/build/typescript-5_5_4-bundle-cache.min.js
|
|
2324
|
+
var require_typescript_5_5_4_bundle_cache_min = __commonJS({
|
|
2325
|
+
"scripts/build/typescript-5_5_4-bundle-cache.min.js"(exports2, module2) {
|
|
2318
2326
|
"use strict";
|
|
2319
2327
|
/*! *****************************************************************************
|
|
2320
2328
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4571,6 +4579,7 @@ var require_typescript_5_5_3_bundle_cache_min = __commonJS({
|
|
|
4571
4579
|
trace: () => trace,
|
|
4572
4580
|
tracing: () => tracing,
|
|
4573
4581
|
tracingEnabled: () => tracingEnabled,
|
|
4582
|
+
transferSourceFileChildren: () => transferSourceFileChildren,
|
|
4574
4583
|
transform: () => transform2,
|
|
4575
4584
|
transformClassFields: () => transformClassFields,
|
|
4576
4585
|
transformDeclarations: () => transformDeclarations,
|
|
@@ -4681,7 +4690,7 @@ var require_typescript_5_5_3_bundle_cache_min = __commonJS({
|
|
|
4681
4690
|
});
|
|
4682
4691
|
module3.exports = __toCommonJS2(typescript_exports);
|
|
4683
4692
|
var versionMajorMinor = "5.5";
|
|
4684
|
-
var version3 = "5.5.
|
|
4693
|
+
var version3 = "5.5.4";
|
|
4685
4694
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
4686
4695
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
4687
4696
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -7555,10 +7564,12 @@ ${lanes.join("\n")}
|
|
|
7555
7564
|
if (isNodeLikeSystem()) {
|
|
7556
7565
|
try {
|
|
7557
7566
|
const { performance: performance2 } = require("perf_hooks");
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7567
|
+
if (performance2) {
|
|
7568
|
+
return {
|
|
7569
|
+
shouldWriteNativeEvents: false,
|
|
7570
|
+
performance: performance2
|
|
7571
|
+
};
|
|
7572
|
+
}
|
|
7562
7573
|
} catch {
|
|
7563
7574
|
}
|
|
7564
7575
|
}
|
|
@@ -8706,6 +8717,7 @@ ${lanes.join("\n")}
|
|
|
8706
8717
|
var EmitOnly = /* @__PURE__ */ ((EmitOnly4) => {
|
|
8707
8718
|
EmitOnly4[EmitOnly4["Js"] = 0] = "Js";
|
|
8708
8719
|
EmitOnly4[EmitOnly4["Dts"] = 1] = "Dts";
|
|
8720
|
+
EmitOnly4[EmitOnly4["BuilderSignature"] = 2] = "BuilderSignature";
|
|
8709
8721
|
return EmitOnly4;
|
|
8710
8722
|
})(EmitOnly || {});
|
|
8711
8723
|
var StructureIsReused = /* @__PURE__ */ ((StructureIsReused2) => {
|
|
@@ -14892,6 +14904,7 @@ ${lanes.join("\n")}
|
|
|
14892
14904
|
var tokenFlags;
|
|
14893
14905
|
var commentDirectives;
|
|
14894
14906
|
var skipJsDocLeadingAsterisks = 0;
|
|
14907
|
+
var asteriskSeen = false;
|
|
14895
14908
|
var scriptKind = 0;
|
|
14896
14909
|
var jsDocParsingMode = 0;
|
|
14897
14910
|
setText(text, start, length22);
|
|
@@ -14943,6 +14956,7 @@ ${lanes.join("\n")}
|
|
|
14943
14956
|
resetTokenState,
|
|
14944
14957
|
setTextPos: resetTokenState,
|
|
14945
14958
|
setSkipJsDocLeadingAsterisks,
|
|
14959
|
+
hasLeadingAsterisks,
|
|
14946
14960
|
tryScan,
|
|
14947
14961
|
lookAhead,
|
|
14948
14962
|
scanRange
|
|
@@ -15552,7 +15566,7 @@ ${lanes.join("\n")}
|
|
|
15552
15566
|
function scan() {
|
|
15553
15567
|
fullStartPos = pos;
|
|
15554
15568
|
tokenFlags = 0;
|
|
15555
|
-
|
|
15569
|
+
asteriskSeen = false;
|
|
15556
15570
|
while (true) {
|
|
15557
15571
|
tokenStart = pos;
|
|
15558
15572
|
if (pos >= end) {
|
|
@@ -17427,6 +17441,9 @@ ${lanes.join("\n")}
|
|
|
17427
17441
|
function setSkipJsDocLeadingAsterisks(skip) {
|
|
17428
17442
|
skipJsDocLeadingAsterisks += skip ? 1 : -1;
|
|
17429
17443
|
}
|
|
17444
|
+
function hasLeadingAsterisks() {
|
|
17445
|
+
return asteriskSeen;
|
|
17446
|
+
}
|
|
17430
17447
|
}
|
|
17431
17448
|
function codePointAt(s, i) {
|
|
17432
17449
|
return s.codePointAt(i);
|
|
@@ -19391,7 +19408,7 @@ ${lanes.join("\n")}
|
|
|
19391
19408
|
}
|
|
19392
19409
|
if (isJSDocNode(node) || node.kind === 12) {
|
|
19393
19410
|
return skipTrivia(
|
|
19394
|
-
(sourceFile
|
|
19411
|
+
(sourceFile != null ? sourceFile : getSourceFileOfNode(node)).text,
|
|
19395
19412
|
node.pos,
|
|
19396
19413
|
/*stopAfterLineBreak*/
|
|
19397
19414
|
false,
|
|
@@ -19403,13 +19420,14 @@ ${lanes.join("\n")}
|
|
|
19403
19420
|
return getTokenPosOfNode(node.jsDoc[0], sourceFile);
|
|
19404
19421
|
}
|
|
19405
19422
|
if (node.kind === 352) {
|
|
19406
|
-
|
|
19423
|
+
sourceFile != null ? sourceFile : sourceFile = getSourceFileOfNode(node);
|
|
19424
|
+
const first2 = firstOrUndefined(getNodeChildren(node, sourceFile));
|
|
19407
19425
|
if (first2) {
|
|
19408
19426
|
return getTokenPosOfNode(first2, sourceFile, includeJsDoc);
|
|
19409
19427
|
}
|
|
19410
19428
|
}
|
|
19411
19429
|
return skipTrivia(
|
|
19412
|
-
(sourceFile
|
|
19430
|
+
(sourceFile != null ? sourceFile : getSourceFileOfNode(node)).text,
|
|
19413
19431
|
node.pos,
|
|
19414
19432
|
/*stopAfterLineBreak*/
|
|
19415
19433
|
false,
|
|
@@ -23013,11 +23031,11 @@ ${lanes.join("\n")}
|
|
|
23013
23031
|
return emitOutputFilePathWithoutExtension + extension;
|
|
23014
23032
|
}
|
|
23015
23033
|
function getDeclarationEmitOutputFilePath(fileName, host) {
|
|
23016
|
-
return getDeclarationEmitOutputFilePathWorker(fileName, host.getCompilerOptions(), host
|
|
23034
|
+
return getDeclarationEmitOutputFilePathWorker(fileName, host.getCompilerOptions(), host);
|
|
23017
23035
|
}
|
|
23018
|
-
function getDeclarationEmitOutputFilePathWorker(fileName, options,
|
|
23036
|
+
function getDeclarationEmitOutputFilePathWorker(fileName, options, host) {
|
|
23019
23037
|
const outputDir = options.declarationDir || options.outDir;
|
|
23020
|
-
const path6 = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir,
|
|
23038
|
+
const path6 = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f)) : fileName;
|
|
23021
23039
|
const declarationExtension = getDeclarationEmitExtensionForPath(path6);
|
|
23022
23040
|
return removeFileExtension(path6) + declarationExtension;
|
|
23023
23041
|
}
|
|
@@ -31606,7 +31624,7 @@ ${lanes.join("\n")}
|
|
|
31606
31624
|
352
|
|
31607
31625
|
/* SyntaxList */
|
|
31608
31626
|
);
|
|
31609
|
-
|
|
31627
|
+
node._children = children;
|
|
31610
31628
|
return node;
|
|
31611
31629
|
}
|
|
31612
31630
|
function createNotEmittedStatement(original) {
|
|
@@ -34550,17 +34568,43 @@ ${lanes.join("\n")}
|
|
|
34550
34568
|
function isSyntaxList(n3) {
|
|
34551
34569
|
return n3.kind === 352;
|
|
34552
34570
|
}
|
|
34553
|
-
var
|
|
34554
|
-
function getNodeChildren(node) {
|
|
34555
|
-
|
|
34556
|
-
|
|
34571
|
+
var sourceFileToNodeChildren = /* @__PURE__ */ new WeakMap();
|
|
34572
|
+
function getNodeChildren(node, sourceFile) {
|
|
34573
|
+
var _a2;
|
|
34574
|
+
const kind = node.kind;
|
|
34575
|
+
if (!isNodeKind(kind)) {
|
|
34576
|
+
return emptyArray;
|
|
34577
|
+
}
|
|
34578
|
+
if (kind === 352) {
|
|
34579
|
+
return node._children;
|
|
34580
|
+
}
|
|
34581
|
+
return (_a2 = sourceFileToNodeChildren.get(sourceFile)) == null ? void 0 : _a2.get(node);
|
|
34557
34582
|
}
|
|
34558
|
-
function setNodeChildren(node, children) {
|
|
34559
|
-
|
|
34583
|
+
function setNodeChildren(node, sourceFile, children) {
|
|
34584
|
+
if (node.kind === 352) {
|
|
34585
|
+
Debug.fail("Should not need to re-set the children of a SyntaxList.");
|
|
34586
|
+
}
|
|
34587
|
+
let map22 = sourceFileToNodeChildren.get(sourceFile);
|
|
34588
|
+
if (map22 === void 0) {
|
|
34589
|
+
map22 = /* @__PURE__ */ new WeakMap();
|
|
34590
|
+
sourceFileToNodeChildren.set(sourceFile, map22);
|
|
34591
|
+
}
|
|
34592
|
+
map22.set(node, children);
|
|
34560
34593
|
return children;
|
|
34561
34594
|
}
|
|
34562
|
-
function unsetNodeChildren(node) {
|
|
34563
|
-
|
|
34595
|
+
function unsetNodeChildren(node, origSourceFile) {
|
|
34596
|
+
var _a2;
|
|
34597
|
+
if (node.kind === 352) {
|
|
34598
|
+
Debug.fail("Did not expect to unset the children of a SyntaxList.");
|
|
34599
|
+
}
|
|
34600
|
+
(_a2 = sourceFileToNodeChildren.get(origSourceFile)) == null ? void 0 : _a2.delete(node);
|
|
34601
|
+
}
|
|
34602
|
+
function transferSourceFileChildren(sourceFile, targetSourceFile) {
|
|
34603
|
+
const map22 = sourceFileToNodeChildren.get(sourceFile);
|
|
34604
|
+
if (map22 !== void 0) {
|
|
34605
|
+
sourceFileToNodeChildren.delete(sourceFile);
|
|
34606
|
+
sourceFileToNodeChildren.set(targetSourceFile, map22);
|
|
34607
|
+
}
|
|
34564
34608
|
}
|
|
34565
34609
|
function createEmptyExports(factory2) {
|
|
34566
34610
|
return factory2.createExportDeclaration(
|
|
@@ -37869,7 +37913,7 @@ ${lanes.join("\n")}
|
|
|
37869
37913
|
function createIdentifier(isIdentifier3, diagnosticMessage, privateIdentifierDiagnosticMessage) {
|
|
37870
37914
|
if (isIdentifier3) {
|
|
37871
37915
|
identifierCount++;
|
|
37872
|
-
const pos = getNodePos();
|
|
37916
|
+
const pos = scanner2.hasLeadingAsterisks() ? scanner2.getTokenStart() : getNodePos();
|
|
37873
37917
|
const originalKeywordKind = token();
|
|
37874
37918
|
const text = internIdentifier(scanner2.getTokenValue());
|
|
37875
37919
|
const hasExtendedUnicodeEscape = scanner2.hasExtendedUnicodeEscape();
|
|
@@ -44711,6 +44755,7 @@ ${lanes.join("\n")}
|
|
|
44711
44755
|
aggressiveChecks
|
|
44712
44756
|
);
|
|
44713
44757
|
result2.impliedNodeFormat = sourceFile.impliedNodeFormat;
|
|
44758
|
+
transferSourceFileChildren(sourceFile, result2);
|
|
44714
44759
|
return result2;
|
|
44715
44760
|
}
|
|
44716
44761
|
IncrementalParser2.updateSourceFile = updateSourceFile2;
|
|
@@ -44746,7 +44791,7 @@ ${lanes.join("\n")}
|
|
|
44746
44791
|
}
|
|
44747
44792
|
}
|
|
44748
44793
|
}
|
|
44749
|
-
function moveElementEntirelyPastChangeRange(element, isArray22, delta, oldText, newText, aggressiveChecks) {
|
|
44794
|
+
function moveElementEntirelyPastChangeRange(element, origSourceFile, isArray22, delta, oldText, newText, aggressiveChecks) {
|
|
44750
44795
|
if (isArray22) {
|
|
44751
44796
|
visitArray2(element);
|
|
44752
44797
|
} else {
|
|
@@ -44758,7 +44803,7 @@ ${lanes.join("\n")}
|
|
|
44758
44803
|
if (aggressiveChecks && shouldCheckNode(node)) {
|
|
44759
44804
|
text = oldText.substring(node.pos, node.end);
|
|
44760
44805
|
}
|
|
44761
|
-
unsetNodeChildren(node);
|
|
44806
|
+
unsetNodeChildren(node, origSourceFile);
|
|
44762
44807
|
setTextRangePosEnd(node, node.pos + delta, node.end + delta);
|
|
44763
44808
|
if (aggressiveChecks && shouldCheckNode(node)) {
|
|
44764
44809
|
Debug.assert(text === newText.substring(node.pos, node.end));
|
|
@@ -44832,6 +44877,7 @@ ${lanes.join("\n")}
|
|
|
44832
44877
|
if (child.pos > changeRangeOldEnd) {
|
|
44833
44878
|
moveElementEntirelyPastChangeRange(
|
|
44834
44879
|
child,
|
|
44880
|
+
sourceFile,
|
|
44835
44881
|
/*isArray*/
|
|
44836
44882
|
false,
|
|
44837
44883
|
delta,
|
|
@@ -44844,7 +44890,7 @@ ${lanes.join("\n")}
|
|
|
44844
44890
|
const fullEnd = child.end;
|
|
44845
44891
|
if (fullEnd >= changeStart) {
|
|
44846
44892
|
markAsIntersectingIncrementalChange(child);
|
|
44847
|
-
unsetNodeChildren(child);
|
|
44893
|
+
unsetNodeChildren(child, sourceFile);
|
|
44848
44894
|
adjustIntersectingElement(child, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta);
|
|
44849
44895
|
forEachChild(child, visitNode3, visitArray2);
|
|
44850
44896
|
if (hasJSDocNodes(child)) {
|
|
@@ -44862,6 +44908,7 @@ ${lanes.join("\n")}
|
|
|
44862
44908
|
if (array.pos > changeRangeOldEnd) {
|
|
44863
44909
|
moveElementEntirelyPastChangeRange(
|
|
44864
44910
|
array,
|
|
44911
|
+
sourceFile,
|
|
44865
44912
|
/*isArray*/
|
|
44866
44913
|
true,
|
|
44867
44914
|
delta,
|
|
@@ -45574,7 +45621,6 @@ ${lanes.join("\n")}
|
|
|
45574
45621
|
affectsBuildInfo: true,
|
|
45575
45622
|
showInSimplifiedHelpView: true,
|
|
45576
45623
|
category: Diagnostics.Emit,
|
|
45577
|
-
transpileOptionValue: void 0,
|
|
45578
45624
|
defaultValueDescription: false,
|
|
45579
45625
|
description: Diagnostics.Create_sourcemaps_for_d_ts_files
|
|
45580
45626
|
},
|
|
@@ -45903,6 +45949,7 @@ ${lanes.join("\n")}
|
|
|
45903
45949
|
type: "boolean",
|
|
45904
45950
|
affectsEmit: true,
|
|
45905
45951
|
affectsBuildInfo: true,
|
|
45952
|
+
affectsSourceFile: true,
|
|
45906
45953
|
category: Diagnostics.Emit,
|
|
45907
45954
|
description: Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,
|
|
45908
45955
|
defaultValueDescription: false
|
|
@@ -46370,6 +46417,7 @@ ${lanes.join("\n")}
|
|
|
46370
46417
|
affectsEmit: true,
|
|
46371
46418
|
affectsBuildInfo: true,
|
|
46372
46419
|
affectsModuleResolution: true,
|
|
46420
|
+
affectsSourceFile: true,
|
|
46373
46421
|
category: Diagnostics.Language_and_Environment,
|
|
46374
46422
|
description: Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,
|
|
46375
46423
|
defaultValueDescription: "react"
|
|
@@ -56009,7 +56057,8 @@ ${lanes.join("\n")}
|
|
|
56009
56057
|
isUndefinedIdentifierExpression(node) {
|
|
56010
56058
|
Debug.assert(isExpressionNode(node));
|
|
56011
56059
|
return getSymbolAtLocation(node) === undefinedSymbol;
|
|
56012
|
-
}
|
|
56060
|
+
},
|
|
56061
|
+
isDefinitelyReferenceToGlobalSymbolObject
|
|
56013
56062
|
});
|
|
56014
56063
|
var evaluate = createEvaluator({
|
|
56015
56064
|
evaluateElementAccessExpression,
|
|
@@ -56874,6 +56923,7 @@ ${lanes.join("\n")}
|
|
|
56874
56923
|
};
|
|
56875
56924
|
var amalgamatedDuplicates;
|
|
56876
56925
|
var reverseMappedCache = /* @__PURE__ */ new Map();
|
|
56926
|
+
var reverseHomomorphicMappedCache = /* @__PURE__ */ new Map();
|
|
56877
56927
|
var ambientModulesCache;
|
|
56878
56928
|
var patternAmbientModules;
|
|
56879
56929
|
var patternAmbientModuleAugmentations;
|
|
@@ -57001,6 +57051,21 @@ ${lanes.join("\n")}
|
|
|
57001
57051
|
];
|
|
57002
57052
|
initializeTypeChecker();
|
|
57003
57053
|
return checker;
|
|
57054
|
+
function isDefinitelyReferenceToGlobalSymbolObject(node) {
|
|
57055
|
+
if (!isPropertyAccessExpression(node)) return false;
|
|
57056
|
+
if (!isIdentifier(node.name)) return false;
|
|
57057
|
+
if (!isPropertyAccessExpression(node.expression) && !isIdentifier(node.expression)) return false;
|
|
57058
|
+
if (isIdentifier(node.expression)) {
|
|
57059
|
+
return idText(node.expression) === "Symbol" && getResolvedSymbol(node.expression) === (getGlobalSymbol(
|
|
57060
|
+
"Symbol",
|
|
57061
|
+
111551 | 1048576,
|
|
57062
|
+
/*diagnostic*/
|
|
57063
|
+
void 0
|
|
57064
|
+
) || unknownSymbol);
|
|
57065
|
+
}
|
|
57066
|
+
if (!isIdentifier(node.expression.expression)) return false;
|
|
57067
|
+
return idText(node.expression.name) === "Symbol" && idText(node.expression.expression) === "globalThis" && getResolvedSymbol(node.expression.expression) === globalThisSymbol;
|
|
57068
|
+
}
|
|
57004
57069
|
function getCachedType(key) {
|
|
57005
57070
|
return key ? cachedTypes.get(key) : void 0;
|
|
57006
57071
|
}
|
|
@@ -60392,11 +60457,11 @@ ${lanes.join("\n")}
|
|
|
60392
60457
|
function tryReuseExistingTypeNode(context, typeNode, type, host2, addUndefined) {
|
|
60393
60458
|
const originalType = type;
|
|
60394
60459
|
if (addUndefined) {
|
|
60395
|
-
type = getOptionalType(type);
|
|
60460
|
+
type = getOptionalType(type, !isParameter(host2));
|
|
60396
60461
|
}
|
|
60397
60462
|
const clone22 = tryReuseExistingNonParameterTypeNode(context, typeNode, type, host2);
|
|
60398
60463
|
if (clone22) {
|
|
60399
|
-
if (addUndefined && !someType(getTypeFromTypeNode2(context, typeNode), (t) => !!(t.flags & 32768))) {
|
|
60464
|
+
if (addUndefined && containsNonMissingUndefinedType(type) && !someType(getTypeFromTypeNode2(context, typeNode), (t) => !!(t.flags & 32768))) {
|
|
60400
60465
|
return factory.createUnionTypeNode([clone22, factory.createKeywordTypeNode(
|
|
60401
60466
|
157
|
|
60402
60467
|
/* UndefinedKeyword */
|
|
@@ -61382,7 +61447,22 @@ ${lanes.join("\n")}
|
|
|
61382
61447
|
}
|
|
61383
61448
|
function shouldUsePlaceholderForProperty(propertySymbol, context) {
|
|
61384
61449
|
var _a2;
|
|
61385
|
-
|
|
61450
|
+
const depth = 3;
|
|
61451
|
+
return !!(getCheckFlags(propertySymbol) & 8192) && (contains2(context.reverseMappedStack, propertySymbol) || ((_a2 = context.reverseMappedStack) == null ? void 0 : _a2[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16) || isDeeplyNestedReverseMappedTypeProperty());
|
|
61452
|
+
function isDeeplyNestedReverseMappedTypeProperty() {
|
|
61453
|
+
var _a3;
|
|
61454
|
+
var _a22;
|
|
61455
|
+
if (((_a3 = (_a22 = context.reverseMappedStack) == null ? void 0 : _a22.length) != null ? _a3 : 0) < depth) {
|
|
61456
|
+
return false;
|
|
61457
|
+
}
|
|
61458
|
+
for (let i = 0; i < depth; i++) {
|
|
61459
|
+
const prop = context.reverseMappedStack[context.reverseMappedStack.length - 1 - i];
|
|
61460
|
+
if (prop.links.mappedType.symbol !== propertySymbol.links.mappedType.symbol) {
|
|
61461
|
+
return false;
|
|
61462
|
+
}
|
|
61463
|
+
}
|
|
61464
|
+
return true;
|
|
61465
|
+
}
|
|
61386
61466
|
}
|
|
61387
61467
|
function addPropertyToElementList(propertySymbol, context, typeElements) {
|
|
61388
61468
|
var _a2;
|
|
@@ -62590,8 +62670,8 @@ ${lanes.join("\n")}
|
|
|
62590
62670
|
}
|
|
62591
62671
|
function serializeTypeForDeclaration(context, declaration, type, symbol) {
|
|
62592
62672
|
var _a3;
|
|
62593
|
-
var _a2;
|
|
62594
|
-
const
|
|
62673
|
+
var _a2, _b;
|
|
62674
|
+
const addUndefinedForParameter = declaration && (isParameter(declaration) || isJSDocParameterTag(declaration)) && requiresAddingImplicitUndefined(declaration);
|
|
62595
62675
|
const enclosingDeclaration = context.enclosingDeclaration;
|
|
62596
62676
|
const oldFlags = context.flags;
|
|
62597
62677
|
if (declaration && hasInferredType(declaration) && !(context.flags & -2147483648)) {
|
|
@@ -62602,6 +62682,7 @@ ${lanes.join("\n")}
|
|
|
62602
62682
|
const declWithExistingAnnotation = declaration && getNonlocalEffectiveTypeAnnotationNode(declaration) ? declaration : getDeclarationWithTypeAnnotation(symbol);
|
|
62603
62683
|
if (declWithExistingAnnotation && !isFunctionLikeDeclaration(declWithExistingAnnotation) && !isGetAccessorDeclaration(declWithExistingAnnotation)) {
|
|
62604
62684
|
const existing = getNonlocalEffectiveTypeAnnotationNode(declWithExistingAnnotation);
|
|
62685
|
+
const addUndefined = addUndefinedForParameter || !!(symbol.flags & 4 && symbol.flags & 16777216 && isOptionalDeclaration(declWithExistingAnnotation) && ((_a2 = symbol.links) == null ? void 0 : _a2.mappedType) && containsNonMissingUndefinedType(type));
|
|
62605
62686
|
const result22 = !isTypePredicateNode(existing) && tryReuseExistingTypeNode(context, existing, type, declWithExistingAnnotation, addUndefined);
|
|
62606
62687
|
if (result22) {
|
|
62607
62688
|
context.flags = oldFlags;
|
|
@@ -62612,9 +62693,9 @@ ${lanes.join("\n")}
|
|
|
62612
62693
|
if (type.flags & 8192 && type.symbol === symbol && (!context.enclosingDeclaration || some(symbol.declarations, (d) => getSourceFileOfNode(d) === getSourceFileOfNode(context.enclosingDeclaration)))) {
|
|
62613
62694
|
context.flags |= 1048576;
|
|
62614
62695
|
}
|
|
62615
|
-
const decl = (_a3 = declaration != null ? declaration : symbol.valueDeclaration) != null ? _a3 : (
|
|
62696
|
+
const decl = (_a3 = declaration != null ? declaration : symbol.valueDeclaration) != null ? _a3 : (_b = symbol.declarations) == null ? void 0 : _b[0];
|
|
62616
62697
|
const expr = decl && isDeclarationWithPossibleInnerTypeNodeReuse(decl) ? getPossibleTypeNodeReuseExpression(decl) : void 0;
|
|
62617
|
-
const result2 = expressionOrTypeToTypeNode(context, expr, type,
|
|
62698
|
+
const result2 = expressionOrTypeToTypeNode(context, expr, type, addUndefinedForParameter);
|
|
62618
62699
|
context.flags = oldFlags;
|
|
62619
62700
|
return result2;
|
|
62620
62701
|
}
|
|
@@ -62656,9 +62737,9 @@ ${lanes.join("\n")}
|
|
|
62656
62737
|
const typePredicate = getTypePredicateOfSignature(signature);
|
|
62657
62738
|
const type = getReturnTypeOfSignature(signature);
|
|
62658
62739
|
if (context.enclosingDeclaration && (!isErrorType(type) || context.flags & 1) && signature.declaration && !nodeIsSynthesized(signature.declaration)) {
|
|
62659
|
-
const annotation =
|
|
62660
|
-
if (annotation
|
|
62661
|
-
const result2 =
|
|
62740
|
+
const annotation = getNonlocalEffectiveReturnTypeAnnotationNode(signature.declaration);
|
|
62741
|
+
if (annotation) {
|
|
62742
|
+
const result2 = tryReuseExistingTypeNode(context, annotation, type, context.enclosingDeclaration);
|
|
62662
62743
|
if (result2) {
|
|
62663
62744
|
return result2;
|
|
62664
62745
|
}
|
|
@@ -63185,7 +63266,10 @@ ${lanes.join("\n")}
|
|
|
63185
63266
|
);
|
|
63186
63267
|
}
|
|
63187
63268
|
if (isNamedDeclaration(node) && node.name.kind === 167 && !isLateBindableName(node.name)) {
|
|
63188
|
-
if (!
|
|
63269
|
+
if (!hasDynamicName(node)) {
|
|
63270
|
+
return visitEachChild2(node, visitExistingNodeTreeSymbols);
|
|
63271
|
+
}
|
|
63272
|
+
if (!(context.flags & 1 && isEntityNameExpression(node.name.expression) && checkComputedPropertyName(node.name).flags & 1)) {
|
|
63189
63273
|
return void 0;
|
|
63190
63274
|
}
|
|
63191
63275
|
}
|
|
@@ -63318,7 +63402,7 @@ ${lanes.join("\n")}
|
|
|
63318
63402
|
if (result2) {
|
|
63319
63403
|
if (result2.pos !== -1 || result2.end !== -1) {
|
|
63320
63404
|
if (result2 === nodes) {
|
|
63321
|
-
result2 = factory.createNodeArray(nodes, nodes.hasTrailingComma);
|
|
63405
|
+
result2 = factory.createNodeArray(nodes.slice(), nodes.hasTrailingComma);
|
|
63322
63406
|
}
|
|
63323
63407
|
setTextRangePosEnd(result2, -1, -1);
|
|
63324
63408
|
}
|
|
@@ -69753,7 +69837,7 @@ ${lanes.join("\n")}
|
|
|
69753
69837
|
);
|
|
69754
69838
|
}
|
|
69755
69839
|
function createSignatureTypeMapper(signature, typeArguments) {
|
|
69756
|
-
return createTypeMapper(signature.typeParameters, typeArguments);
|
|
69840
|
+
return createTypeMapper(sameMap(signature.typeParameters, (tp) => tp.mapper ? instantiateType(tp, tp.mapper) : tp), typeArguments);
|
|
69757
69841
|
}
|
|
69758
69842
|
function getErasedSignature(signature) {
|
|
69759
69843
|
return signature.typeParameters ? signature.erasedSignatureCache || (signature.erasedSignatureCache = createErasedSignature(signature)) : signature;
|
|
@@ -74602,6 +74686,10 @@ ${lanes.join("\n")}
|
|
|
74602
74686
|
function containsUndefinedType(type) {
|
|
74603
74687
|
return !!((type.flags & 1048576 ? type.types[0] : type).flags & 32768);
|
|
74604
74688
|
}
|
|
74689
|
+
function containsNonMissingUndefinedType(type) {
|
|
74690
|
+
const candidate = type.flags & 1048576 ? type.types[0] : type;
|
|
74691
|
+
return !!(candidate.flags & 32768) && candidate !== missingType;
|
|
74692
|
+
}
|
|
74605
74693
|
function isStringIndexSignatureOnlyType(type) {
|
|
74606
74694
|
return type.flags & 524288 && !isGenericMappedType(type) && getPropertiesOfType(type).length === 0 && getIndexInfosOfType(type).length === 1 && !!getIndexInfoOfType(type, stringType) || type.flags & 3145728 && every(type.types, isStringIndexSignatureOnlyType) || false;
|
|
74607
74695
|
}
|
|
@@ -78482,11 +78570,11 @@ ${lanes.join("\n")}
|
|
|
78482
78570
|
}
|
|
78483
78571
|
function inferTypeForHomomorphicMappedType(source, target, constraint) {
|
|
78484
78572
|
const cacheKey = source.id + "," + target.id + "," + constraint.id;
|
|
78485
|
-
if (
|
|
78486
|
-
return
|
|
78573
|
+
if (reverseHomomorphicMappedCache.has(cacheKey)) {
|
|
78574
|
+
return reverseHomomorphicMappedCache.get(cacheKey);
|
|
78487
78575
|
}
|
|
78488
78576
|
const type = createReverseMappedType(source, target, constraint);
|
|
78489
|
-
|
|
78577
|
+
reverseHomomorphicMappedCache.set(cacheKey, type);
|
|
78490
78578
|
return type;
|
|
78491
78579
|
}
|
|
78492
78580
|
function isPartiallyInferableType(type) {
|
|
@@ -82041,7 +82129,7 @@ ${lanes.join("\n")}
|
|
|
82041
82129
|
if (!canCollectSymbolAliasAccessabilityData) {
|
|
82042
82130
|
return;
|
|
82043
82131
|
}
|
|
82044
|
-
if (location.flags & 33554432) {
|
|
82132
|
+
if (location.flags & 33554432 && !isPropertySignature(location) && !isPropertyDeclaration(location)) {
|
|
82045
82133
|
return;
|
|
82046
82134
|
}
|
|
82047
82135
|
switch (hint) {
|
|
@@ -85238,11 +85326,7 @@ ${lanes.join("\n")}
|
|
|
85238
85326
|
checkGrammarJsxElement(node);
|
|
85239
85327
|
}
|
|
85240
85328
|
checkJsxPreconditions(node);
|
|
85241
|
-
|
|
85242
|
-
node,
|
|
85243
|
-
4
|
|
85244
|
-
/* Jsx */
|
|
85245
|
-
);
|
|
85329
|
+
markJsxAliasReferenced(node);
|
|
85246
85330
|
if (isNodeOpeningLikeElement) {
|
|
85247
85331
|
const jsxOpeningLikeNode = node;
|
|
85248
85332
|
const sig = getResolvedSignature(jsxOpeningLikeNode);
|
|
@@ -99025,15 +99109,15 @@ ${lanes.join("\n")}
|
|
|
99025
99109
|
function checkChildIdentifiers(node2) {
|
|
99026
99110
|
forEachNodeRecursively(node2, checkIdentifiers);
|
|
99027
99111
|
}
|
|
99112
|
+
function isExpressionNodeOrShorthandPropertyAssignmentName(node2) {
|
|
99113
|
+
var _a2;
|
|
99114
|
+
return isExpressionNode(node2) || isShorthandPropertyAssignment(node2.parent) && ((_a2 = node2.parent.objectAssignmentInitializer) != null ? _a2 : node2.parent.name) === node2;
|
|
99115
|
+
}
|
|
99028
99116
|
function checkSingleIdentifier(node2) {
|
|
99029
99117
|
const nodeLinks2 = getNodeLinks(node2);
|
|
99030
99118
|
nodeLinks2.calculatedFlags |= 536870912 | 16384 | 32768;
|
|
99031
|
-
if (isIdentifier(node2) &&
|
|
99032
|
-
const s =
|
|
99033
|
-
node2,
|
|
99034
|
-
/*ignoreErrors*/
|
|
99035
|
-
true
|
|
99036
|
-
);
|
|
99119
|
+
if (isIdentifier(node2) && isExpressionNodeOrShorthandPropertyAssignmentName(node2) && !(isPropertyAccessExpression(node2.parent) && node2.parent.name === node2)) {
|
|
99120
|
+
const s = getResolvedSymbol(node2);
|
|
99037
99121
|
if (s && s !== unknownSymbol) {
|
|
99038
99122
|
checkIdentifierCalculateNodeCheckFlags(node2, s);
|
|
99039
99123
|
}
|
|
@@ -99551,7 +99635,8 @@ ${lanes.join("\n")}
|
|
|
99551
99635
|
resolveExternalModuleSymbol(sym);
|
|
99552
99636
|
return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, tracker);
|
|
99553
99637
|
},
|
|
99554
|
-
isImportRequiredByAugmentation
|
|
99638
|
+
isImportRequiredByAugmentation,
|
|
99639
|
+
isDefinitelyReferenceToGlobalSymbolObject
|
|
99555
99640
|
};
|
|
99556
99641
|
function isImportRequiredByAugmentation(node) {
|
|
99557
99642
|
const file = getSourceFileOfNode(node);
|
|
@@ -126862,6 +126947,7 @@ ${lanes.join("\n")}
|
|
|
126862
126947
|
}
|
|
126863
126948
|
function reportInferenceFallback(node) {
|
|
126864
126949
|
if (!isolatedDeclarations || isSourceFileJS(currentSourceFile)) return;
|
|
126950
|
+
if (getSourceFileOfNode(node) !== currentSourceFile) return;
|
|
126865
126951
|
if (isVariableDeclaration(node) && resolver.isExpandoFunctionDeclaration(node)) {
|
|
126866
126952
|
reportExpandoFunctionErrors(node);
|
|
126867
126953
|
} else {
|
|
@@ -127521,15 +127607,17 @@ ${lanes.join("\n")}
|
|
|
127521
127607
|
if (isDeclarationAndNotVisible(input)) return;
|
|
127522
127608
|
if (hasDynamicName(input)) {
|
|
127523
127609
|
if (isolatedDeclarations) {
|
|
127524
|
-
if (
|
|
127525
|
-
|
|
127526
|
-
|
|
127527
|
-
|
|
127528
|
-
|
|
127529
|
-
|
|
127530
|
-
|
|
127531
|
-
|
|
127532
|
-
|
|
127610
|
+
if (!resolver.isDefinitelyReferenceToGlobalSymbolObject(input.name.expression)) {
|
|
127611
|
+
if (isClassDeclaration(input.parent) || isObjectLiteralExpression(input.parent)) {
|
|
127612
|
+
context.addDiagnostic(createDiagnosticForNode(input, Diagnostics.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));
|
|
127613
|
+
return;
|
|
127614
|
+
} else if (
|
|
127615
|
+
// Type declarations just need to double-check that the input computed name is an entity name expression
|
|
127616
|
+
(isInterfaceDeclaration(input.parent) || isTypeLiteralNode(input.parent)) && !isEntityNameExpression(input.name.expression)
|
|
127617
|
+
) {
|
|
127618
|
+
context.addDiagnostic(createDiagnosticForNode(input, Diagnostics.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));
|
|
127619
|
+
return;
|
|
127620
|
+
}
|
|
127533
127621
|
}
|
|
127534
127622
|
} else if (!resolver.isLateBound(getParseTreeNode(input)) || !isEntityNameExpression(input.name.expression)) {
|
|
127535
127623
|
return;
|
|
@@ -129409,7 +129497,7 @@ ${lanes.join("\n")}
|
|
|
129409
129497
|
noEmitHelpers: true,
|
|
129410
129498
|
module: compilerOptions.module,
|
|
129411
129499
|
target: compilerOptions.target,
|
|
129412
|
-
sourceMap:
|
|
129500
|
+
sourceMap: emitOnly !== 2 && compilerOptions.declarationMap,
|
|
129413
129501
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
129414
129502
|
extendedDiagnostics: compilerOptions.extendedDiagnostics,
|
|
129415
129503
|
onlyPrintJsDocStyle: true,
|
|
@@ -129636,7 +129724,8 @@ ${lanes.join("\n")}
|
|
|
129636
129724
|
getJsxFragmentFactoryEntity: notImplemented,
|
|
129637
129725
|
isBindingCapturedByNode: notImplemented,
|
|
129638
129726
|
getDeclarationStatementsForSourceFile: notImplemented,
|
|
129639
|
-
isImportRequiredByAugmentation: notImplemented
|
|
129727
|
+
isImportRequiredByAugmentation: notImplemented,
|
|
129728
|
+
isDefinitelyReferenceToGlobalSymbolObject: notImplemented
|
|
129640
129729
|
};
|
|
129641
129730
|
var createPrinterWithDefaults = /* @__PURE__ */ memoize(() => createPrinter({}));
|
|
129642
129731
|
var createPrinterWithRemoveComments = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true }));
|
|
@@ -138034,7 +138123,8 @@ ${lanes.join("\n")}
|
|
|
138034
138123
|
if (options.outDir || // there is --outDir specified
|
|
138035
138124
|
options.rootDir || // there is --rootDir specified
|
|
138036
138125
|
options.sourceRoot || // there is --sourceRoot specified
|
|
138037
|
-
options.mapRoot
|
|
138126
|
+
options.mapRoot || // there is --mapRoot specified
|
|
138127
|
+
getEmitDeclarations(options) && options.declarationDir) {
|
|
138038
138128
|
const dir = getCommonSourceDirectory2();
|
|
138039
138129
|
if (options.outDir && dir === "" && files.some((file) => getRootLength2(file.fileName) > 1)) {
|
|
138040
138130
|
createDiagnosticForOptionName(Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, "outDir");
|
|
@@ -139142,8 +139232,7 @@ ${lanes.join("\n")}
|
|
|
139142
139232
|
);
|
|
139143
139233
|
},
|
|
139144
139234
|
cancellationToken,
|
|
139145
|
-
|
|
139146
|
-
true,
|
|
139235
|
+
2,
|
|
139147
139236
|
/*customTransformers*/
|
|
139148
139237
|
void 0,
|
|
139149
139238
|
/*forceDtsEmit*/
|
|
@@ -146602,7 +146691,7 @@ ${lanes.join("\n")}
|
|
|
146602
146691
|
expression,
|
|
146603
146692
|
/*includeBigInt*/
|
|
146604
146693
|
false
|
|
146605
|
-
)) {
|
|
146694
|
+
) && !resolver.isDefinitelyReferenceToGlobalSymbolObject(expression)) {
|
|
146606
146695
|
context.tracker.reportInferenceFallback(prop.name);
|
|
146607
146696
|
result2 = false;
|
|
146608
146697
|
}
|
|
@@ -150720,6 +150809,7 @@ ${lanes.join("\n")}
|
|
|
150720
150809
|
function forEachNameOfDefaultExport(defaultExport, checker, compilerOptions, preferCapitalizedNames, cb) {
|
|
150721
150810
|
let chain;
|
|
150722
150811
|
let current2 = defaultExport;
|
|
150812
|
+
const seen = /* @__PURE__ */ new Map();
|
|
150723
150813
|
while (current2) {
|
|
150724
150814
|
const fromDeclaration = getDefaultLikeExportNameFromDeclaration(current2);
|
|
150725
150815
|
if (fromDeclaration) {
|
|
@@ -150731,6 +150821,7 @@ ${lanes.join("\n")}
|
|
|
150731
150821
|
if (final) return final;
|
|
150732
150822
|
}
|
|
150733
150823
|
chain = append4(chain, current2);
|
|
150824
|
+
if (!addToSeen(seen, current2)) break;
|
|
150734
150825
|
current2 = current2.flags & 2097152 ? checker.getImmediateAliasedSymbol(current2) : void 0;
|
|
150735
150826
|
}
|
|
150736
150827
|
for (const symbol of chain != null ? chain : emptyArray) {
|
|
@@ -153342,7 +153433,7 @@ ${lanes.join("\n")}
|
|
|
153342
153433
|
}
|
|
153343
153434
|
const options = program.getCompilerOptions();
|
|
153344
153435
|
const outPath = options.outFile;
|
|
153345
|
-
const declarationPath = outPath ? removeFileExtension(outPath) + ".d.ts" : getDeclarationEmitOutputFilePathWorker(info.fileName, program.getCompilerOptions(),
|
|
153436
|
+
const declarationPath = outPath ? removeFileExtension(outPath) + ".d.ts" : getDeclarationEmitOutputFilePathWorker(info.fileName, program.getCompilerOptions(), program);
|
|
153346
153437
|
if (declarationPath === void 0) return void 0;
|
|
153347
153438
|
const newLoc = getDocumentPositionMapper2(declarationPath, info.fileName).getGeneratedPosition(info);
|
|
153348
153439
|
return newLoc === info ? void 0 : newLoc;
|
|
@@ -160437,10 +160528,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
160437
160528
|
getChildAt(index2, sourceFile) {
|
|
160438
160529
|
return this.getChildren(sourceFile)[index2];
|
|
160439
160530
|
}
|
|
160440
|
-
getChildren(sourceFile) {
|
|
160531
|
+
getChildren(sourceFile = getSourceFileOfNode(this)) {
|
|
160441
160532
|
var _a2;
|
|
160442
160533
|
this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine");
|
|
160443
|
-
return (_a2 = getNodeChildren(this)) != null ? _a2 : setNodeChildren(this, createChildren(this, sourceFile));
|
|
160534
|
+
return (_a2 = getNodeChildren(this, sourceFile)) != null ? _a2 : setNodeChildren(this, sourceFile, createChildren(this, sourceFile));
|
|
160444
160535
|
}
|
|
160445
160536
|
getFirstToken(sourceFile) {
|
|
160446
160537
|
this.assertHasRealPosition();
|
|
@@ -160525,7 +160616,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
160525
160616
|
pos = node.end;
|
|
160526
160617
|
}
|
|
160527
160618
|
addSyntheticNodes(children, pos, nodes.end, parent2);
|
|
160528
|
-
|
|
160619
|
+
list._children = children;
|
|
160529
160620
|
return list;
|
|
160530
160621
|
}
|
|
160531
160622
|
var TokenOrIdentifierObject = class {
|
|
@@ -174128,6 +174219,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
174128
174219
|
function visit2(node) {
|
|
174129
174220
|
if (isLiteralImportTypeNode(node) && node.qualifier) {
|
|
174130
174221
|
const firstIdentifier = getFirstIdentifier(node.qualifier);
|
|
174222
|
+
if (!firstIdentifier.symbol) {
|
|
174223
|
+
return visitEachChild(
|
|
174224
|
+
node,
|
|
174225
|
+
visit2,
|
|
174226
|
+
/*context*/
|
|
174227
|
+
void 0
|
|
174228
|
+
);
|
|
174229
|
+
}
|
|
174131
174230
|
const name = getNameForExportedSymbol(firstIdentifier.symbol, scriptTarget);
|
|
174132
174231
|
const qualifier = name !== firstIdentifier.text ? replaceFirstIdentifierOfEntityName(node.qualifier, factory.createIdentifier(name)) : node.qualifier;
|
|
174133
174232
|
symbols = append4(symbols, firstIdentifier.symbol);
|
|
@@ -180714,7 +180813,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
180714
180813
|
return checker.getMergedSymbol(getSourceFileLikeForImportDeclaration(importer).symbol);
|
|
180715
180814
|
}
|
|
180716
180815
|
function getSourceFileLikeForImportDeclaration(node) {
|
|
180717
|
-
if (node.kind === 213) {
|
|
180816
|
+
if (node.kind === 213 || node.kind === 351) {
|
|
180718
180817
|
return node.getSourceFile();
|
|
180719
180818
|
}
|
|
180720
180819
|
const { parent: parent2 } = node;
|
|
@@ -195116,6 +195215,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
195116
195215
|
trace: () => trace,
|
|
195117
195216
|
tracing: () => tracing,
|
|
195118
195217
|
tracingEnabled: () => tracingEnabled,
|
|
195218
|
+
transferSourceFileChildren: () => transferSourceFileChildren,
|
|
195119
195219
|
transform: () => transform2,
|
|
195120
195220
|
transformClassFields: () => transformClassFields,
|
|
195121
195221
|
transformDeclarations: () => transformDeclarations,
|
|
@@ -197930,7 +198030,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
197930
198030
|
this.generatedFilesMap.forEach((watcher, source) => {
|
|
197931
198031
|
const sourceFile = this.program.getSourceFileByPath(source);
|
|
197932
198032
|
if (!sourceFile || sourceFile.resolvedPath !== source || !this.isValidGeneratedFileWatcher(
|
|
197933
|
-
getDeclarationEmitOutputFilePathWorker(sourceFile.fileName, this.compilerOptions, this.
|
|
198033
|
+
getDeclarationEmitOutputFilePathWorker(sourceFile.fileName, this.compilerOptions, this.program),
|
|
197934
198034
|
watcher
|
|
197935
198035
|
)) {
|
|
197936
198036
|
closeFileWatcherOf(watcher);
|
|
@@ -209891,6 +209991,3085 @@ var require_commondir = __commonJS({
|
|
|
209891
209991
|
}
|
|
209892
209992
|
});
|
|
209893
209993
|
|
|
209994
|
+
// sys/node/glob.js
|
|
209995
|
+
var require_glob = __commonJS({
|
|
209996
|
+
"sys/node/glob.js"(exports2) {
|
|
209997
|
+
"use strict";
|
|
209998
|
+
(() => {
|
|
209999
|
+
var t = { 505: (t2) => {
|
|
210000
|
+
"use strict";
|
|
210001
|
+
function e2(t3, e3, r2) {
|
|
210002
|
+
t3 instanceof RegExp && (t3 = s2(t3, r2)), e3 instanceof RegExp && (e3 = s2(e3, r2));
|
|
210003
|
+
var n3 = i2(t3, e3, r2);
|
|
210004
|
+
return n3 && { start: n3[0], end: n3[1], pre: r2.slice(0, n3[0]), body: r2.slice(n3[0] + t3.length, n3[1]), post: r2.slice(n3[1] + e3.length) };
|
|
210005
|
+
}
|
|
210006
|
+
function s2(t3, e3) {
|
|
210007
|
+
var s3 = e3.match(t3);
|
|
210008
|
+
return s3 ? s3[0] : null;
|
|
210009
|
+
}
|
|
210010
|
+
function i2(t3, e3, s3) {
|
|
210011
|
+
var i3, r2, n3, o, h, a = s3.indexOf(t3), l = s3.indexOf(e3, a + 1), c = a;
|
|
210012
|
+
if (a >= 0 && l > 0) {
|
|
210013
|
+
if (t3 === e3) return [a, l];
|
|
210014
|
+
for (i3 = [], n3 = s3.length; c >= 0 && !h; ) c == a ? (i3.push(c), a = s3.indexOf(t3, c + 1)) : 1 == i3.length ? h = [i3.pop(), l] : ((r2 = i3.pop()) < n3 && (n3 = r2, o = l), l = s3.indexOf(e3, c + 1)), c = a < l && a >= 0 ? a : l;
|
|
210015
|
+
i3.length && (h = [n3, o]);
|
|
210016
|
+
}
|
|
210017
|
+
return h;
|
|
210018
|
+
}
|
|
210019
|
+
t2.exports = e2, e2.range = i2;
|
|
210020
|
+
}, 928: (t2, e2, s2) => {
|
|
210021
|
+
var i2 = s2(505);
|
|
210022
|
+
t2.exports = function(t3) {
|
|
210023
|
+
if (!t3) return [];
|
|
210024
|
+
"{}" === t3.substr(0, 2) && (t3 = "\\{\\}" + t3.substr(2));
|
|
210025
|
+
return m(function(t4) {
|
|
210026
|
+
return t4.split("\\\\").join(r2).split("\\{").join(n3).split("\\}").join(o).split("\\,").join(h).split("\\.").join(a);
|
|
210027
|
+
}(t3), true).map(c);
|
|
210028
|
+
};
|
|
210029
|
+
var r2 = "\0SLASH" + Math.random() + "\0", n3 = "\0OPEN" + Math.random() + "\0", o = "\0CLOSE" + Math.random() + "\0", h = "\0COMMA" + Math.random() + "\0", a = "\0PERIOD" + Math.random() + "\0";
|
|
210030
|
+
function l(t3) {
|
|
210031
|
+
return parseInt(t3, 10) == t3 ? parseInt(t3, 10) : t3.charCodeAt(0);
|
|
210032
|
+
}
|
|
210033
|
+
function c(t3) {
|
|
210034
|
+
return t3.split(r2).join("\\").split(n3).join("{").split(o).join("}").split(h).join(",").split(a).join(".");
|
|
210035
|
+
}
|
|
210036
|
+
function p(t3) {
|
|
210037
|
+
if (!t3) return [""];
|
|
210038
|
+
var e3 = [], s3 = i2("{", "}", t3);
|
|
210039
|
+
if (!s3) return t3.split(",");
|
|
210040
|
+
var r3 = s3.pre, n4 = s3.body, o2 = s3.post, h2 = r3.split(",");
|
|
210041
|
+
h2[h2.length - 1] += "{" + n4 + "}";
|
|
210042
|
+
var a2 = p(o2);
|
|
210043
|
+
return o2.length && (h2[h2.length - 1] += a2.shift(), h2.push.apply(h2, a2)), e3.push.apply(e3, h2), e3;
|
|
210044
|
+
}
|
|
210045
|
+
function d(t3) {
|
|
210046
|
+
return "{" + t3 + "}";
|
|
210047
|
+
}
|
|
210048
|
+
function u(t3) {
|
|
210049
|
+
return /^-?0\d/.test(t3);
|
|
210050
|
+
}
|
|
210051
|
+
function f(t3, e3) {
|
|
210052
|
+
return t3 <= e3;
|
|
210053
|
+
}
|
|
210054
|
+
function g(t3, e3) {
|
|
210055
|
+
return t3 >= e3;
|
|
210056
|
+
}
|
|
210057
|
+
function m(t3, e3) {
|
|
210058
|
+
var s3 = [], r3 = i2("{", "}", t3);
|
|
210059
|
+
if (!r3) return [t3];
|
|
210060
|
+
var n4 = r3.pre, h2 = r3.post.length ? m(r3.post, false) : [""];
|
|
210061
|
+
if (/\$$/.test(r3.pre)) for (var a2 = 0; a2 < h2.length; a2++) {
|
|
210062
|
+
var c2 = n4 + "{" + r3.body + "}" + h2[a2];
|
|
210063
|
+
s3.push(c2);
|
|
210064
|
+
}
|
|
210065
|
+
else {
|
|
210066
|
+
var y, w, b = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r3.body), v = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r3.body), S = b || v, k = r3.body.indexOf(",") >= 0;
|
|
210067
|
+
if (!S && !k) return r3.post.match(/,.*\}/) ? m(t3 = r3.pre + "{" + r3.body + o + r3.post) : [t3];
|
|
210068
|
+
if (S) y = r3.body.split(/\.\./);
|
|
210069
|
+
else if (1 === (y = p(r3.body)).length && 1 === (y = m(y[0], false).map(d)).length) return h2.map(function(t4) {
|
|
210070
|
+
return r3.pre + y[0] + t4;
|
|
210071
|
+
});
|
|
210072
|
+
if (S) {
|
|
210073
|
+
var x = l(y[0]), E = l(y[1]), L = Math.max(y[0].length, y[1].length), T = 3 == y.length ? Math.abs(l(y[2])) : 1, C2 = f;
|
|
210074
|
+
E < x && (T *= -1, C2 = g);
|
|
210075
|
+
var M = y.some(u);
|
|
210076
|
+
w = [];
|
|
210077
|
+
for (var A = x; C2(A, E); A += T) {
|
|
210078
|
+
var O2;
|
|
210079
|
+
if (v) "\\" === (O2 = String.fromCharCode(A)) && (O2 = "");
|
|
210080
|
+
else if (O2 = String(A), M) {
|
|
210081
|
+
var P = L - O2.length;
|
|
210082
|
+
if (P > 0) {
|
|
210083
|
+
var R = new Array(P + 1).join("0");
|
|
210084
|
+
O2 = A < 0 ? "-" + R + O2.slice(1) : R + O2;
|
|
210085
|
+
}
|
|
210086
|
+
}
|
|
210087
|
+
w.push(O2);
|
|
210088
|
+
}
|
|
210089
|
+
} else {
|
|
210090
|
+
w = [];
|
|
210091
|
+
for (var F = 0; F < y.length; F++) w.push.apply(w, m(y[F], false));
|
|
210092
|
+
}
|
|
210093
|
+
for (F = 0; F < w.length; F++) for (a2 = 0; a2 < h2.length; a2++) {
|
|
210094
|
+
c2 = n4 + w[F] + h2[a2];
|
|
210095
|
+
(!e3 || S || c2) && s3.push(c2);
|
|
210096
|
+
}
|
|
210097
|
+
}
|
|
210098
|
+
return s3;
|
|
210099
|
+
}
|
|
210100
|
+
}, 207: (t2, e2, s2) => {
|
|
210101
|
+
t2.exports = s2(756);
|
|
210102
|
+
}, 896: (t2) => {
|
|
210103
|
+
"use strict";
|
|
210104
|
+
t2.exports = require("fs");
|
|
210105
|
+
}, 474: (t2) => {
|
|
210106
|
+
"use strict";
|
|
210107
|
+
t2.exports = require("events");
|
|
210108
|
+
}, 24: (t2) => {
|
|
210109
|
+
"use strict";
|
|
210110
|
+
t2.exports = require("fs");
|
|
210111
|
+
}, 455: (t2) => {
|
|
210112
|
+
"use strict";
|
|
210113
|
+
t2.exports = require("fs/promises");
|
|
210114
|
+
}, 760: (t2) => {
|
|
210115
|
+
"use strict";
|
|
210116
|
+
t2.exports = require("path");
|
|
210117
|
+
}, 75: (t2) => {
|
|
210118
|
+
"use strict";
|
|
210119
|
+
t2.exports = require("stream");
|
|
210120
|
+
}, 193: (t2) => {
|
|
210121
|
+
"use strict";
|
|
210122
|
+
t2.exports = require("string_decoder");
|
|
210123
|
+
}, 136: (t2) => {
|
|
210124
|
+
"use strict";
|
|
210125
|
+
t2.exports = require("url");
|
|
210126
|
+
}, 876: (t2, e2, s2) => {
|
|
210127
|
+
"use strict";
|
|
210128
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.Glob = void 0;
|
|
210129
|
+
const i2 = s2(722), r2 = s2(136), n3 = s2(576), o = s2(478), h = s2(984), a = "object" == typeof process && process && "string" == typeof process.platform ? process.platform : "linux";
|
|
210130
|
+
class l {
|
|
210131
|
+
absolute;
|
|
210132
|
+
cwd;
|
|
210133
|
+
root;
|
|
210134
|
+
dot;
|
|
210135
|
+
dotRelative;
|
|
210136
|
+
follow;
|
|
210137
|
+
ignore;
|
|
210138
|
+
magicalBraces;
|
|
210139
|
+
mark;
|
|
210140
|
+
matchBase;
|
|
210141
|
+
maxDepth;
|
|
210142
|
+
nobrace;
|
|
210143
|
+
nocase;
|
|
210144
|
+
nodir;
|
|
210145
|
+
noext;
|
|
210146
|
+
noglobstar;
|
|
210147
|
+
pattern;
|
|
210148
|
+
platform;
|
|
210149
|
+
realpath;
|
|
210150
|
+
scurry;
|
|
210151
|
+
stat;
|
|
210152
|
+
signal;
|
|
210153
|
+
windowsPathsNoEscape;
|
|
210154
|
+
withFileTypes;
|
|
210155
|
+
includeChildMatches;
|
|
210156
|
+
opts;
|
|
210157
|
+
patterns;
|
|
210158
|
+
constructor(t3, e3) {
|
|
210159
|
+
if (!e3) throw new TypeError("glob options required");
|
|
210160
|
+
if (this.withFileTypes = !!e3.withFileTypes, this.signal = e3.signal, this.follow = !!e3.follow, this.dot = !!e3.dot, this.dotRelative = !!e3.dotRelative, this.nodir = !!e3.nodir, this.mark = !!e3.mark, e3.cwd ? (e3.cwd instanceof URL || e3.cwd.startsWith("file://")) && (e3.cwd = (0, r2.fileURLToPath)(e3.cwd)) : this.cwd = "", this.cwd = e3.cwd || "", this.root = e3.root, this.magicalBraces = !!e3.magicalBraces, this.nobrace = !!e3.nobrace, this.noext = !!e3.noext, this.realpath = !!e3.realpath, this.absolute = e3.absolute, this.includeChildMatches = false !== e3.includeChildMatches, this.noglobstar = !!e3.noglobstar, this.matchBase = !!e3.matchBase, this.maxDepth = "number" == typeof e3.maxDepth ? e3.maxDepth : 1 / 0, this.stat = !!e3.stat, this.ignore = e3.ignore, this.withFileTypes && void 0 !== this.absolute) throw new Error("cannot set absolute and withFileTypes:true");
|
|
210161
|
+
if ("string" == typeof t3 && (t3 = [t3]), this.windowsPathsNoEscape = !!e3.windowsPathsNoEscape || false === e3.allowWindowsEscape, this.windowsPathsNoEscape && (t3 = t3.map((t4) => t4.replace(/\\/g, "/"))), this.matchBase) {
|
|
210162
|
+
if (e3.noglobstar) throw new TypeError("base matching requires globstar");
|
|
210163
|
+
t3 = t3.map((t4) => t4.includes("/") ? t4 : `./**/${t4}`);
|
|
210164
|
+
}
|
|
210165
|
+
if (this.pattern = t3, this.platform = e3.platform || a, this.opts = { ...e3, platform: this.platform }, e3.scurry) {
|
|
210166
|
+
if (this.scurry = e3.scurry, void 0 !== e3.nocase && e3.nocase !== e3.scurry.nocase) throw new Error("nocase option contradicts provided scurry option");
|
|
210167
|
+
} else {
|
|
210168
|
+
const t4 = "win32" === e3.platform ? n3.PathScurryWin32 : "darwin" === e3.platform ? n3.PathScurryDarwin : e3.platform ? n3.PathScurryPosix : n3.PathScurry;
|
|
210169
|
+
this.scurry = new t4(this.cwd, { nocase: e3.nocase, fs: e3.fs });
|
|
210170
|
+
}
|
|
210171
|
+
this.nocase = this.scurry.nocase;
|
|
210172
|
+
const s3 = "darwin" === this.platform || "win32" === this.platform, h2 = { ...e3, dot: this.dot, matchBase: this.matchBase, nobrace: this.nobrace, nocase: this.nocase, nocaseMagicOnly: s3, nocomment: true, noext: this.noext, nonegate: true, optimizationLevel: 2, platform: this.platform, windowsPathsNoEscape: this.windowsPathsNoEscape, debug: !!this.opts.debug }, l2 = this.pattern.map((t4) => new i2.Minimatch(t4, h2)), [c, p] = l2.reduce((t4, e4) => (t4[0].push(...e4.set), t4[1].push(...e4.globParts), t4), [[], []]);
|
|
210173
|
+
this.patterns = c.map((t4, e4) => {
|
|
210174
|
+
const s4 = p[e4];
|
|
210175
|
+
if (!s4) throw new Error("invalid pattern object");
|
|
210176
|
+
return new o.Pattern(t4, s4, 0, this.platform);
|
|
210177
|
+
});
|
|
210178
|
+
}
|
|
210179
|
+
async walk() {
|
|
210180
|
+
return [...await new h.GlobWalker(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).walk()];
|
|
210181
|
+
}
|
|
210182
|
+
walkSync() {
|
|
210183
|
+
return [...new h.GlobWalker(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).walkSync()];
|
|
210184
|
+
}
|
|
210185
|
+
stream() {
|
|
210186
|
+
return new h.GlobStream(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).stream();
|
|
210187
|
+
}
|
|
210188
|
+
streamSync() {
|
|
210189
|
+
return new h.GlobStream(this.patterns, this.scurry.cwd, { ...this.opts, maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0, platform: this.platform, nocase: this.nocase, includeChildMatches: this.includeChildMatches }).streamSync();
|
|
210190
|
+
}
|
|
210191
|
+
iterateSync() {
|
|
210192
|
+
return this.streamSync()[Symbol.iterator]();
|
|
210193
|
+
}
|
|
210194
|
+
[Symbol.iterator]() {
|
|
210195
|
+
return this.iterateSync();
|
|
210196
|
+
}
|
|
210197
|
+
iterate() {
|
|
210198
|
+
return this.stream()[Symbol.asyncIterator]();
|
|
210199
|
+
}
|
|
210200
|
+
[Symbol.asyncIterator]() {
|
|
210201
|
+
return this.iterate();
|
|
210202
|
+
}
|
|
210203
|
+
}
|
|
210204
|
+
e2.Glob = l;
|
|
210205
|
+
}, 46: (t2, e2, s2) => {
|
|
210206
|
+
"use strict";
|
|
210207
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.hasMagic = void 0;
|
|
210208
|
+
const i2 = s2(722);
|
|
210209
|
+
e2.hasMagic = (t3, e3 = {}) => {
|
|
210210
|
+
Array.isArray(t3) || (t3 = [t3]);
|
|
210211
|
+
for (const s3 of t3) if (new i2.Minimatch(s3, e3).hasMagic()) return true;
|
|
210212
|
+
return false;
|
|
210213
|
+
};
|
|
210214
|
+
}, 972: (t2, e2, s2) => {
|
|
210215
|
+
"use strict";
|
|
210216
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.Ignore = void 0;
|
|
210217
|
+
const i2 = s2(722), r2 = s2(478), n3 = "object" == typeof process && process && "string" == typeof process.platform ? process.platform : "linux";
|
|
210218
|
+
e2.Ignore = class {
|
|
210219
|
+
relative;
|
|
210220
|
+
relativeChildren;
|
|
210221
|
+
absolute;
|
|
210222
|
+
absoluteChildren;
|
|
210223
|
+
platform;
|
|
210224
|
+
mmopts;
|
|
210225
|
+
constructor(t3, { nobrace: e3, nocase: s3, noext: i3, noglobstar: r3, platform: o = n3 }) {
|
|
210226
|
+
this.relative = [], this.absolute = [], this.relativeChildren = [], this.absoluteChildren = [], this.platform = o, this.mmopts = { dot: true, nobrace: e3, nocase: s3, noext: i3, noglobstar: r3, optimizationLevel: 2, platform: o, nocomment: true, nonegate: true };
|
|
210227
|
+
for (const e4 of t3) this.add(e4);
|
|
210228
|
+
}
|
|
210229
|
+
add(t3) {
|
|
210230
|
+
const e3 = new i2.Minimatch(t3, this.mmopts);
|
|
210231
|
+
for (let t4 = 0; t4 < e3.set.length; t4++) {
|
|
210232
|
+
const s3 = e3.set[t4], n4 = e3.globParts[t4];
|
|
210233
|
+
if (!s3 || !n4) throw new Error("invalid pattern object");
|
|
210234
|
+
for (; "." === s3[0] && "." === n4[0]; ) s3.shift(), n4.shift();
|
|
210235
|
+
const o = new r2.Pattern(s3, n4, 0, this.platform), h = new i2.Minimatch(o.globString(), this.mmopts), a = "**" === n4[n4.length - 1], l = o.isAbsolute();
|
|
210236
|
+
l ? this.absolute.push(h) : this.relative.push(h), a && (l ? this.absoluteChildren.push(h) : this.relativeChildren.push(h));
|
|
210237
|
+
}
|
|
210238
|
+
}
|
|
210239
|
+
ignored(t3) {
|
|
210240
|
+
const e3 = t3.fullpath(), s3 = `${e3}/`, i3 = t3.relative() || ".", r3 = `${i3}/`;
|
|
210241
|
+
for (const t4 of this.relative) if (t4.match(i3) || t4.match(r3)) return true;
|
|
210242
|
+
for (const t4 of this.absolute) if (t4.match(e3) || t4.match(s3)) return true;
|
|
210243
|
+
return false;
|
|
210244
|
+
}
|
|
210245
|
+
childrenIgnored(t3) {
|
|
210246
|
+
const e3 = t3.fullpath() + "/", s3 = (t3.relative() || ".") + "/";
|
|
210247
|
+
for (const t4 of this.relativeChildren) if (t4.match(s3)) return true;
|
|
210248
|
+
for (const t4 of this.absoluteChildren) if (t4.match(e3)) return true;
|
|
210249
|
+
return false;
|
|
210250
|
+
}
|
|
210251
|
+
};
|
|
210252
|
+
}, 756: (t2, e2, s2) => {
|
|
210253
|
+
"use strict";
|
|
210254
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.glob = e2.sync = e2.iterate = e2.iterateSync = e2.stream = e2.streamSync = e2.globIterate = e2.globIterateSync = e2.globSync = e2.globStream = e2.globStreamSync = e2.Ignore = e2.hasMagic = e2.Glob = e2.unescape = e2.escape = void 0;
|
|
210255
|
+
const i2 = s2(722), r2 = s2(876), n3 = s2(46);
|
|
210256
|
+
var o = s2(722);
|
|
210257
|
+
Object.defineProperty(e2, "escape", { enumerable: true, get: function() {
|
|
210258
|
+
return o.escape;
|
|
210259
|
+
} }), Object.defineProperty(e2, "unescape", { enumerable: true, get: function() {
|
|
210260
|
+
return o.unescape;
|
|
210261
|
+
} });
|
|
210262
|
+
var h = s2(876);
|
|
210263
|
+
Object.defineProperty(e2, "Glob", { enumerable: true, get: function() {
|
|
210264
|
+
return h.Glob;
|
|
210265
|
+
} });
|
|
210266
|
+
var a = s2(46);
|
|
210267
|
+
Object.defineProperty(e2, "hasMagic", { enumerable: true, get: function() {
|
|
210268
|
+
return a.hasMagic;
|
|
210269
|
+
} });
|
|
210270
|
+
var l = s2(972);
|
|
210271
|
+
function c(t3, e3 = {}) {
|
|
210272
|
+
return new r2.Glob(t3, e3).streamSync();
|
|
210273
|
+
}
|
|
210274
|
+
function p(t3, e3 = {}) {
|
|
210275
|
+
return new r2.Glob(t3, e3).stream();
|
|
210276
|
+
}
|
|
210277
|
+
function d(t3, e3 = {}) {
|
|
210278
|
+
return new r2.Glob(t3, e3).walkSync();
|
|
210279
|
+
}
|
|
210280
|
+
async function u(t3, e3 = {}) {
|
|
210281
|
+
return new r2.Glob(t3, e3).walk();
|
|
210282
|
+
}
|
|
210283
|
+
function f(t3, e3 = {}) {
|
|
210284
|
+
return new r2.Glob(t3, e3).iterateSync();
|
|
210285
|
+
}
|
|
210286
|
+
function g(t3, e3 = {}) {
|
|
210287
|
+
return new r2.Glob(t3, e3).iterate();
|
|
210288
|
+
}
|
|
210289
|
+
Object.defineProperty(e2, "Ignore", { enumerable: true, get: function() {
|
|
210290
|
+
return l.Ignore;
|
|
210291
|
+
} }), e2.globStreamSync = c, e2.globStream = p, e2.globSync = d, e2.globIterateSync = f, e2.globIterate = g, e2.streamSync = c, e2.stream = Object.assign(p, { sync: c }), e2.iterateSync = f, e2.iterate = Object.assign(g, { sync: f }), e2.sync = Object.assign(d, { stream: c, iterate: f }), e2.glob = Object.assign(u, { glob: u, globSync: d, sync: e2.sync, globStream: p, stream: e2.stream, globStreamSync: c, streamSync: e2.streamSync, globIterate: g, iterate: e2.iterate, globIterateSync: f, iterateSync: e2.iterateSync, Glob: r2.Glob, hasMagic: n3.hasMagic, escape: i2.escape, unescape: i2.unescape }), e2.glob.glob = e2.glob;
|
|
210292
|
+
}, 478: (t2, e2, s2) => {
|
|
210293
|
+
"use strict";
|
|
210294
|
+
var _t, _e, _s, _i, _r, _n, _o, _h, _a, _l;
|
|
210295
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.Pattern = void 0;
|
|
210296
|
+
const i2 = s2(722);
|
|
210297
|
+
const _r2 = class _r2 {
|
|
210298
|
+
constructor(t3, e3, s3, i3) {
|
|
210299
|
+
__privateAdd(this, _t);
|
|
210300
|
+
__privateAdd(this, _e);
|
|
210301
|
+
__privateAdd(this, _s);
|
|
210302
|
+
__publicField(this, "length");
|
|
210303
|
+
__privateAdd(this, _i);
|
|
210304
|
+
__privateAdd(this, _r);
|
|
210305
|
+
__privateAdd(this, _n);
|
|
210306
|
+
__privateAdd(this, _o);
|
|
210307
|
+
__privateAdd(this, _h);
|
|
210308
|
+
__privateAdd(this, _a);
|
|
210309
|
+
__privateAdd(this, _l, true);
|
|
210310
|
+
if (!(t3.length >= 1)) throw new TypeError("empty pattern list");
|
|
210311
|
+
if (!(e3.length >= 1)) throw new TypeError("empty glob list");
|
|
210312
|
+
if (e3.length !== t3.length) throw new TypeError("mismatched pattern list and glob list lengths");
|
|
210313
|
+
if (this.length = t3.length, s3 < 0 || s3 >= this.length) throw new TypeError("index out of range");
|
|
210314
|
+
if (__privateSet(this, _t, t3), __privateSet(this, _e, e3), __privateSet(this, _s, s3), __privateSet(this, _i, i3), 0 === __privateGet(this, _s)) {
|
|
210315
|
+
if (this.isUNC()) {
|
|
210316
|
+
const [t4, e4, s4, i4, ...r3] = __privateGet(this, _t), [n3, o, h, a, ...l] = __privateGet(this, _e);
|
|
210317
|
+
"" === r3[0] && (r3.shift(), l.shift());
|
|
210318
|
+
const c = [t4, e4, s4, i4, ""].join("/"), p = [n3, o, h, a, ""].join("/");
|
|
210319
|
+
__privateSet(this, _t, [c, ...r3]), __privateSet(this, _e, [p, ...l]), this.length = __privateGet(this, _t).length;
|
|
210320
|
+
} else if (this.isDrive() || this.isAbsolute()) {
|
|
210321
|
+
const [t4, ...e4] = __privateGet(this, _t), [s4, ...i4] = __privateGet(this, _e);
|
|
210322
|
+
"" === e4[0] && (e4.shift(), i4.shift());
|
|
210323
|
+
const r3 = t4 + "/", n3 = s4 + "/";
|
|
210324
|
+
__privateSet(this, _t, [r3, ...e4]), __privateSet(this, _e, [n3, ...i4]), this.length = __privateGet(this, _t).length;
|
|
210325
|
+
}
|
|
210326
|
+
}
|
|
210327
|
+
}
|
|
210328
|
+
pattern() {
|
|
210329
|
+
return __privateGet(this, _t)[__privateGet(this, _s)];
|
|
210330
|
+
}
|
|
210331
|
+
isString() {
|
|
210332
|
+
return "string" == typeof __privateGet(this, _t)[__privateGet(this, _s)];
|
|
210333
|
+
}
|
|
210334
|
+
isGlobstar() {
|
|
210335
|
+
return __privateGet(this, _t)[__privateGet(this, _s)] === i2.GLOBSTAR;
|
|
210336
|
+
}
|
|
210337
|
+
isRegExp() {
|
|
210338
|
+
return __privateGet(this, _t)[__privateGet(this, _s)] instanceof RegExp;
|
|
210339
|
+
}
|
|
210340
|
+
globString() {
|
|
210341
|
+
return __privateSet(this, _n, __privateGet(this, _n) || (0 === __privateGet(this, _s) ? this.isAbsolute() ? __privateGet(this, _e)[0] + __privateGet(this, _e).slice(1).join("/") : __privateGet(this, _e).join("/") : __privateGet(this, _e).slice(__privateGet(this, _s)).join("/")));
|
|
210342
|
+
}
|
|
210343
|
+
hasMore() {
|
|
210344
|
+
return this.length > __privateGet(this, _s) + 1;
|
|
210345
|
+
}
|
|
210346
|
+
rest() {
|
|
210347
|
+
return void 0 !== __privateGet(this, _r) ? __privateGet(this, _r) : this.hasMore() ? (__privateSet(this, _r, new _r2(__privateGet(this, _t), __privateGet(this, _e), __privateGet(this, _s) + 1, __privateGet(this, _i))), __privateSet(__privateGet(this, _r), _a, __privateGet(this, _a)), __privateSet(__privateGet(this, _r), _h, __privateGet(this, _h)), __privateSet(__privateGet(this, _r), _o, __privateGet(this, _o)), __privateGet(this, _r)) : __privateSet(this, _r, null);
|
|
210348
|
+
}
|
|
210349
|
+
isUNC() {
|
|
210350
|
+
const t3 = __privateGet(this, _t);
|
|
210351
|
+
return void 0 !== __privateGet(this, _h) ? __privateGet(this, _h) : __privateSet(this, _h, "win32" === __privateGet(this, _i) && 0 === __privateGet(this, _s) && "" === t3[0] && "" === t3[1] && "string" == typeof t3[2] && !!t3[2] && "string" == typeof t3[3] && !!t3[3]);
|
|
210352
|
+
}
|
|
210353
|
+
isDrive() {
|
|
210354
|
+
const t3 = __privateGet(this, _t);
|
|
210355
|
+
return void 0 !== __privateGet(this, _o) ? __privateGet(this, _o) : __privateSet(this, _o, "win32" === __privateGet(this, _i) && 0 === __privateGet(this, _s) && this.length > 1 && "string" == typeof t3[0] && /^[a-z]:$/i.test(t3[0]));
|
|
210356
|
+
}
|
|
210357
|
+
isAbsolute() {
|
|
210358
|
+
const t3 = __privateGet(this, _t);
|
|
210359
|
+
return void 0 !== __privateGet(this, _a) ? __privateGet(this, _a) : __privateSet(this, _a, "" === t3[0] && t3.length > 1 || this.isDrive() || this.isUNC());
|
|
210360
|
+
}
|
|
210361
|
+
root() {
|
|
210362
|
+
const t3 = __privateGet(this, _t)[0];
|
|
210363
|
+
return "string" == typeof t3 && this.isAbsolute() && 0 === __privateGet(this, _s) ? t3 : "";
|
|
210364
|
+
}
|
|
210365
|
+
checkFollowGlobstar() {
|
|
210366
|
+
return !(0 === __privateGet(this, _s) || !this.isGlobstar() || !__privateGet(this, _l));
|
|
210367
|
+
}
|
|
210368
|
+
markFollowGlobstar() {
|
|
210369
|
+
return !(0 === __privateGet(this, _s) || !this.isGlobstar() || !__privateGet(this, _l)) && (__privateSet(this, _l, false), true);
|
|
210370
|
+
}
|
|
210371
|
+
};
|
|
210372
|
+
_t = new WeakMap();
|
|
210373
|
+
_e = new WeakMap();
|
|
210374
|
+
_s = new WeakMap();
|
|
210375
|
+
_i = new WeakMap();
|
|
210376
|
+
_r = new WeakMap();
|
|
210377
|
+
_n = new WeakMap();
|
|
210378
|
+
_o = new WeakMap();
|
|
210379
|
+
_h = new WeakMap();
|
|
210380
|
+
_a = new WeakMap();
|
|
210381
|
+
_l = new WeakMap();
|
|
210382
|
+
let r2 = _r2;
|
|
210383
|
+
e2.Pattern = r2;
|
|
210384
|
+
}, 800: (t2, e2, s2) => {
|
|
210385
|
+
"use strict";
|
|
210386
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.Processor = e2.SubWalks = e2.MatchRecord = e2.HasWalkedCache = void 0;
|
|
210387
|
+
const i2 = s2(722);
|
|
210388
|
+
class r2 {
|
|
210389
|
+
store;
|
|
210390
|
+
constructor(t3 = /* @__PURE__ */ new Map()) {
|
|
210391
|
+
this.store = t3;
|
|
210392
|
+
}
|
|
210393
|
+
copy() {
|
|
210394
|
+
return new r2(new Map(this.store));
|
|
210395
|
+
}
|
|
210396
|
+
hasWalked(t3, e3) {
|
|
210397
|
+
var _a;
|
|
210398
|
+
return (_a = this.store.get(t3.fullpath())) == null ? void 0 : _a.has(e3.globString());
|
|
210399
|
+
}
|
|
210400
|
+
storeWalked(t3, e3) {
|
|
210401
|
+
const s3 = t3.fullpath(), i3 = this.store.get(s3);
|
|
210402
|
+
i3 ? i3.add(e3.globString()) : this.store.set(s3, /* @__PURE__ */ new Set([e3.globString()]));
|
|
210403
|
+
}
|
|
210404
|
+
}
|
|
210405
|
+
e2.HasWalkedCache = r2;
|
|
210406
|
+
class n3 {
|
|
210407
|
+
store = /* @__PURE__ */ new Map();
|
|
210408
|
+
add(t3, e3, s3) {
|
|
210409
|
+
const i3 = (e3 ? 2 : 0) | (s3 ? 1 : 0), r3 = this.store.get(t3);
|
|
210410
|
+
this.store.set(t3, void 0 === r3 ? i3 : i3 & r3);
|
|
210411
|
+
}
|
|
210412
|
+
entries() {
|
|
210413
|
+
return [...this.store.entries()].map(([t3, e3]) => [t3, !!(2 & e3), !!(1 & e3)]);
|
|
210414
|
+
}
|
|
210415
|
+
}
|
|
210416
|
+
e2.MatchRecord = n3;
|
|
210417
|
+
class o {
|
|
210418
|
+
store = /* @__PURE__ */ new Map();
|
|
210419
|
+
add(t3, e3) {
|
|
210420
|
+
if (!t3.canReaddir()) return;
|
|
210421
|
+
const s3 = this.store.get(t3);
|
|
210422
|
+
s3 ? s3.find((t4) => t4.globString() === e3.globString()) || s3.push(e3) : this.store.set(t3, [e3]);
|
|
210423
|
+
}
|
|
210424
|
+
get(t3) {
|
|
210425
|
+
const e3 = this.store.get(t3);
|
|
210426
|
+
if (!e3) throw new Error("attempting to walk unknown path");
|
|
210427
|
+
return e3;
|
|
210428
|
+
}
|
|
210429
|
+
entries() {
|
|
210430
|
+
return this.keys().map((t3) => [t3, this.store.get(t3)]);
|
|
210431
|
+
}
|
|
210432
|
+
keys() {
|
|
210433
|
+
return [...this.store.keys()].filter((t3) => t3.canReaddir());
|
|
210434
|
+
}
|
|
210435
|
+
}
|
|
210436
|
+
e2.SubWalks = o;
|
|
210437
|
+
class h {
|
|
210438
|
+
hasWalkedCache;
|
|
210439
|
+
matches = new n3();
|
|
210440
|
+
subwalks = new o();
|
|
210441
|
+
patterns;
|
|
210442
|
+
follow;
|
|
210443
|
+
dot;
|
|
210444
|
+
opts;
|
|
210445
|
+
constructor(t3, e3) {
|
|
210446
|
+
this.opts = t3, this.follow = !!t3.follow, this.dot = !!t3.dot, this.hasWalkedCache = e3 ? e3.copy() : new r2();
|
|
210447
|
+
}
|
|
210448
|
+
processPatterns(t3, e3) {
|
|
210449
|
+
this.patterns = e3;
|
|
210450
|
+
const s3 = e3.map((e4) => [t3, e4]);
|
|
210451
|
+
for (let [t4, e4] of s3) {
|
|
210452
|
+
this.hasWalkedCache.storeWalked(t4, e4);
|
|
210453
|
+
const s4 = e4.root(), r3 = e4.isAbsolute() && false !== this.opts.absolute;
|
|
210454
|
+
if (s4) {
|
|
210455
|
+
t4 = t4.resolve("/" === s4 && void 0 !== this.opts.root ? this.opts.root : s4);
|
|
210456
|
+
const i3 = e4.rest();
|
|
210457
|
+
if (!i3) {
|
|
210458
|
+
this.matches.add(t4, true, false);
|
|
210459
|
+
continue;
|
|
210460
|
+
}
|
|
210461
|
+
e4 = i3;
|
|
210462
|
+
}
|
|
210463
|
+
if (t4.isENOENT()) continue;
|
|
210464
|
+
let n4, o2, h2 = false;
|
|
210465
|
+
for (; "string" == typeof (n4 = e4.pattern()) && (o2 = e4.rest()); ) {
|
|
210466
|
+
const s5 = t4.resolve(n4);
|
|
210467
|
+
t4 = s5, e4 = o2, h2 = true;
|
|
210468
|
+
}
|
|
210469
|
+
if (n4 = e4.pattern(), o2 = e4.rest(), h2) {
|
|
210470
|
+
if (this.hasWalkedCache.hasWalked(t4, e4)) continue;
|
|
210471
|
+
this.hasWalkedCache.storeWalked(t4, e4);
|
|
210472
|
+
}
|
|
210473
|
+
if ("string" != typeof n4) if (n4 === i2.GLOBSTAR) {
|
|
210474
|
+
(!t4.isSymbolicLink() || this.follow || e4.checkFollowGlobstar()) && this.subwalks.add(t4, e4);
|
|
210475
|
+
const s5 = o2 == null ? void 0 : o2.pattern(), i3 = o2 == null ? void 0 : o2.rest();
|
|
210476
|
+
if (o2 && ("" !== s5 && "." !== s5 || i3)) {
|
|
210477
|
+
if (".." === s5) {
|
|
210478
|
+
const e5 = t4.parent || t4;
|
|
210479
|
+
i3 ? this.hasWalkedCache.hasWalked(e5, i3) || this.subwalks.add(e5, i3) : this.matches.add(e5, r3, true);
|
|
210480
|
+
}
|
|
210481
|
+
} else this.matches.add(t4, r3, "" === s5 || "." === s5);
|
|
210482
|
+
} else n4 instanceof RegExp && this.subwalks.add(t4, e4);
|
|
210483
|
+
else {
|
|
210484
|
+
const e5 = ".." === n4 || "" === n4 || "." === n4;
|
|
210485
|
+
this.matches.add(t4.resolve(n4), r3, e5);
|
|
210486
|
+
}
|
|
210487
|
+
}
|
|
210488
|
+
return this;
|
|
210489
|
+
}
|
|
210490
|
+
subwalkTargets() {
|
|
210491
|
+
return this.subwalks.keys();
|
|
210492
|
+
}
|
|
210493
|
+
child() {
|
|
210494
|
+
return new h(this.opts, this.hasWalkedCache);
|
|
210495
|
+
}
|
|
210496
|
+
filterEntries(t3, e3) {
|
|
210497
|
+
const s3 = this.subwalks.get(t3), r3 = this.child();
|
|
210498
|
+
for (const t4 of e3) for (const e4 of s3) {
|
|
210499
|
+
const s4 = e4.isAbsolute(), n4 = e4.pattern(), o2 = e4.rest();
|
|
210500
|
+
n4 === i2.GLOBSTAR ? r3.testGlobstar(t4, e4, o2, s4) : n4 instanceof RegExp ? r3.testRegExp(t4, n4, o2, s4) : r3.testString(t4, n4, o2, s4);
|
|
210501
|
+
}
|
|
210502
|
+
return r3;
|
|
210503
|
+
}
|
|
210504
|
+
testGlobstar(t3, e3, s3, i3) {
|
|
210505
|
+
if (!this.dot && t3.name.startsWith(".") || (e3.hasMore() || this.matches.add(t3, i3, false), t3.canReaddir() && (this.follow || !t3.isSymbolicLink() ? this.subwalks.add(t3, e3) : t3.isSymbolicLink() && (s3 && e3.checkFollowGlobstar() ? this.subwalks.add(t3, s3) : e3.markFollowGlobstar() && this.subwalks.add(t3, e3)))), s3) {
|
|
210506
|
+
const e4 = s3.pattern();
|
|
210507
|
+
if ("string" == typeof e4 && ".." !== e4 && "" !== e4 && "." !== e4) this.testString(t3, e4, s3.rest(), i3);
|
|
210508
|
+
else if (".." === e4) {
|
|
210509
|
+
const e5 = t3.parent || t3;
|
|
210510
|
+
this.subwalks.add(e5, s3);
|
|
210511
|
+
} else e4 instanceof RegExp && this.testRegExp(t3, e4, s3.rest(), i3);
|
|
210512
|
+
}
|
|
210513
|
+
}
|
|
210514
|
+
testRegExp(t3, e3, s3, i3) {
|
|
210515
|
+
e3.test(t3.name) && (s3 ? this.subwalks.add(t3, s3) : this.matches.add(t3, i3, false));
|
|
210516
|
+
}
|
|
210517
|
+
testString(t3, e3, s3, i3) {
|
|
210518
|
+
t3.isNamed(e3) && (s3 ? this.subwalks.add(t3, s3) : this.matches.add(t3, i3, false));
|
|
210519
|
+
}
|
|
210520
|
+
}
|
|
210521
|
+
e2.Processor = h;
|
|
210522
|
+
}, 984: (t2, e2, s2) => {
|
|
210523
|
+
"use strict";
|
|
210524
|
+
var _c, _p, _d, _o_instances, u_fn, f_fn;
|
|
210525
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.GlobStream = e2.GlobWalker = e2.GlobUtil = void 0;
|
|
210526
|
+
const i2 = s2(420), r2 = s2(972), n3 = s2(800);
|
|
210527
|
+
class o {
|
|
210528
|
+
constructor(t3, e3, s3) {
|
|
210529
|
+
__privateAdd(this, _o_instances);
|
|
210530
|
+
__publicField(this, "path");
|
|
210531
|
+
__publicField(this, "patterns");
|
|
210532
|
+
__publicField(this, "opts");
|
|
210533
|
+
__publicField(this, "seen", /* @__PURE__ */ new Set());
|
|
210534
|
+
__publicField(this, "paused", false);
|
|
210535
|
+
__publicField(this, "aborted", false);
|
|
210536
|
+
__privateAdd(this, _c, []);
|
|
210537
|
+
__privateAdd(this, _p);
|
|
210538
|
+
__privateAdd(this, _d);
|
|
210539
|
+
__publicField(this, "signal");
|
|
210540
|
+
__publicField(this, "maxDepth");
|
|
210541
|
+
__publicField(this, "includeChildMatches");
|
|
210542
|
+
var _a;
|
|
210543
|
+
if (this.patterns = t3, this.path = e3, this.opts = s3, __privateSet(this, _d, s3.posix || "win32" !== s3.platform ? "/" : "\\"), this.includeChildMatches = false !== s3.includeChildMatches, (s3.ignore || !this.includeChildMatches) && (__privateSet(this, _p, ((t4, e4) => "string" == typeof t4 ? new r2.Ignore([t4], e4) : Array.isArray(t4) ? new r2.Ignore(t4, e4) : t4)((_a = s3.ignore) != null ? _a : [], s3)), !this.includeChildMatches && "function" != typeof __privateGet(this, _p).add)) {
|
|
210544
|
+
throw new Error("cannot ignore child matches, ignore lacks add() method.");
|
|
210545
|
+
}
|
|
210546
|
+
this.maxDepth = s3.maxDepth || 1 / 0, s3.signal && (this.signal = s3.signal, this.signal.addEventListener("abort", () => {
|
|
210547
|
+
__privateGet(this, _c).length = 0;
|
|
210548
|
+
}));
|
|
210549
|
+
}
|
|
210550
|
+
pause() {
|
|
210551
|
+
this.paused = true;
|
|
210552
|
+
}
|
|
210553
|
+
resume() {
|
|
210554
|
+
var _a;
|
|
210555
|
+
if ((_a = this.signal) == null ? void 0 : _a.aborted) return;
|
|
210556
|
+
let t3;
|
|
210557
|
+
for (this.paused = false; !this.paused && (t3 = __privateGet(this, _c).shift()); ) t3();
|
|
210558
|
+
}
|
|
210559
|
+
onResume(t3) {
|
|
210560
|
+
var _a;
|
|
210561
|
+
((_a = this.signal) == null ? void 0 : _a.aborted) || (this.paused ? __privateGet(this, _c).push(t3) : t3());
|
|
210562
|
+
}
|
|
210563
|
+
async matchCheck(t3, e3) {
|
|
210564
|
+
if (e3 && this.opts.nodir) return;
|
|
210565
|
+
let s3;
|
|
210566
|
+
if (this.opts.realpath) {
|
|
210567
|
+
if (s3 = t3.realpathCached() || await t3.realpath(), !s3) return;
|
|
210568
|
+
t3 = s3;
|
|
210569
|
+
}
|
|
210570
|
+
const i3 = t3.isUnknown() || this.opts.stat ? await t3.lstat() : t3;
|
|
210571
|
+
if (this.opts.follow && this.opts.nodir && (i3 == null ? void 0 : i3.isSymbolicLink())) {
|
|
210572
|
+
const t4 = await i3.realpath();
|
|
210573
|
+
t4 && (t4.isUnknown() || this.opts.stat) && await t4.lstat();
|
|
210574
|
+
}
|
|
210575
|
+
return this.matchCheckTest(i3, e3);
|
|
210576
|
+
}
|
|
210577
|
+
matchCheckTest(t3, e3) {
|
|
210578
|
+
var _a;
|
|
210579
|
+
return !t3 || !(this.maxDepth === 1 / 0 || t3.depth() <= this.maxDepth) || e3 && !t3.canReaddir() || this.opts.nodir && t3.isDirectory() || this.opts.nodir && this.opts.follow && t3.isSymbolicLink() && ((_a = t3.realpathCached()) == null ? void 0 : _a.isDirectory()) || __privateMethod(this, _o_instances, u_fn).call(this, t3) ? void 0 : t3;
|
|
210580
|
+
}
|
|
210581
|
+
matchCheckSync(t3, e3) {
|
|
210582
|
+
if (e3 && this.opts.nodir) return;
|
|
210583
|
+
let s3;
|
|
210584
|
+
if (this.opts.realpath) {
|
|
210585
|
+
if (s3 = t3.realpathCached() || t3.realpathSync(), !s3) return;
|
|
210586
|
+
t3 = s3;
|
|
210587
|
+
}
|
|
210588
|
+
const i3 = t3.isUnknown() || this.opts.stat ? t3.lstatSync() : t3;
|
|
210589
|
+
if (this.opts.follow && this.opts.nodir && (i3 == null ? void 0 : i3.isSymbolicLink())) {
|
|
210590
|
+
const t4 = i3.realpathSync();
|
|
210591
|
+
t4 && ((t4 == null ? void 0 : t4.isUnknown()) || this.opts.stat) && t4.lstatSync();
|
|
210592
|
+
}
|
|
210593
|
+
return this.matchCheckTest(i3, e3);
|
|
210594
|
+
}
|
|
210595
|
+
matchFinish(t3, e3) {
|
|
210596
|
+
var _a;
|
|
210597
|
+
if (__privateMethod(this, _o_instances, u_fn).call(this, t3)) return;
|
|
210598
|
+
if (!this.includeChildMatches && ((_a = __privateGet(this, _p)) == null ? void 0 : _a.add)) {
|
|
210599
|
+
const e4 = `${t3.relativePosix()}/**`;
|
|
210600
|
+
__privateGet(this, _p).add(e4);
|
|
210601
|
+
}
|
|
210602
|
+
const s3 = void 0 === this.opts.absolute ? e3 : this.opts.absolute;
|
|
210603
|
+
this.seen.add(t3);
|
|
210604
|
+
const i3 = this.opts.mark && t3.isDirectory() ? __privateGet(this, _d) : "";
|
|
210605
|
+
if (this.opts.withFileTypes) this.matchEmit(t3);
|
|
210606
|
+
else if (s3) {
|
|
210607
|
+
const e4 = this.opts.posix ? t3.fullpathPosix() : t3.fullpath();
|
|
210608
|
+
this.matchEmit(e4 + i3);
|
|
210609
|
+
} else {
|
|
210610
|
+
const e4 = this.opts.posix ? t3.relativePosix() : t3.relative(), s4 = this.opts.dotRelative && !e4.startsWith(".." + __privateGet(this, _d)) ? "." + __privateGet(this, _d) : "";
|
|
210611
|
+
this.matchEmit(e4 ? s4 + e4 + i3 : "." + i3);
|
|
210612
|
+
}
|
|
210613
|
+
}
|
|
210614
|
+
async match(t3, e3, s3) {
|
|
210615
|
+
const i3 = await this.matchCheck(t3, s3);
|
|
210616
|
+
i3 && this.matchFinish(i3, e3);
|
|
210617
|
+
}
|
|
210618
|
+
matchSync(t3, e3, s3) {
|
|
210619
|
+
const i3 = this.matchCheckSync(t3, s3);
|
|
210620
|
+
i3 && this.matchFinish(i3, e3);
|
|
210621
|
+
}
|
|
210622
|
+
walkCB(t3, e3, s3) {
|
|
210623
|
+
var _a;
|
|
210624
|
+
((_a = this.signal) == null ? void 0 : _a.aborted) && s3(), this.walkCB2(t3, e3, new n3.Processor(this.opts), s3);
|
|
210625
|
+
}
|
|
210626
|
+
walkCB2(t3, e3, s3, i3) {
|
|
210627
|
+
var _a;
|
|
210628
|
+
if (__privateMethod(this, _o_instances, f_fn).call(this, t3)) return i3();
|
|
210629
|
+
if (((_a = this.signal) == null ? void 0 : _a.aborted) && i3(), this.paused) return void this.onResume(() => this.walkCB2(t3, e3, s3, i3));
|
|
210630
|
+
s3.processPatterns(t3, e3);
|
|
210631
|
+
let r3 = 1;
|
|
210632
|
+
const n4 = () => {
|
|
210633
|
+
0 == --r3 && i3();
|
|
210634
|
+
};
|
|
210635
|
+
for (const [t4, e4, i4] of s3.matches.entries()) __privateMethod(this, _o_instances, u_fn).call(this, t4) || (r3++, this.match(t4, e4, i4).then(() => n4()));
|
|
210636
|
+
for (const t4 of s3.subwalkTargets()) {
|
|
210637
|
+
if (this.maxDepth !== 1 / 0 && t4.depth() >= this.maxDepth) continue;
|
|
210638
|
+
r3++;
|
|
210639
|
+
const e4 = t4.readdirCached();
|
|
210640
|
+
t4.calledReaddir() ? this.walkCB3(t4, e4, s3, n4) : t4.readdirCB((e5, i4) => this.walkCB3(t4, i4, s3, n4), true);
|
|
210641
|
+
}
|
|
210642
|
+
n4();
|
|
210643
|
+
}
|
|
210644
|
+
walkCB3(t3, e3, s3, i3) {
|
|
210645
|
+
s3 = s3.filterEntries(t3, e3);
|
|
210646
|
+
let r3 = 1;
|
|
210647
|
+
const n4 = () => {
|
|
210648
|
+
0 == --r3 && i3();
|
|
210649
|
+
};
|
|
210650
|
+
for (const [t4, e4, i4] of s3.matches.entries()) __privateMethod(this, _o_instances, u_fn).call(this, t4) || (r3++, this.match(t4, e4, i4).then(() => n4()));
|
|
210651
|
+
for (const [t4, e4] of s3.subwalks.entries()) r3++, this.walkCB2(t4, e4, s3.child(), n4);
|
|
210652
|
+
n4();
|
|
210653
|
+
}
|
|
210654
|
+
walkCBSync(t3, e3, s3) {
|
|
210655
|
+
var _a;
|
|
210656
|
+
((_a = this.signal) == null ? void 0 : _a.aborted) && s3(), this.walkCB2Sync(t3, e3, new n3.Processor(this.opts), s3);
|
|
210657
|
+
}
|
|
210658
|
+
walkCB2Sync(t3, e3, s3, i3) {
|
|
210659
|
+
var _a;
|
|
210660
|
+
if (__privateMethod(this, _o_instances, f_fn).call(this, t3)) return i3();
|
|
210661
|
+
if (((_a = this.signal) == null ? void 0 : _a.aborted) && i3(), this.paused) return void this.onResume(() => this.walkCB2Sync(t3, e3, s3, i3));
|
|
210662
|
+
s3.processPatterns(t3, e3);
|
|
210663
|
+
let r3 = 1;
|
|
210664
|
+
const n4 = () => {
|
|
210665
|
+
0 == --r3 && i3();
|
|
210666
|
+
};
|
|
210667
|
+
for (const [t4, e4, i4] of s3.matches.entries()) __privateMethod(this, _o_instances, u_fn).call(this, t4) || this.matchSync(t4, e4, i4);
|
|
210668
|
+
for (const t4 of s3.subwalkTargets()) {
|
|
210669
|
+
if (this.maxDepth !== 1 / 0 && t4.depth() >= this.maxDepth) continue;
|
|
210670
|
+
r3++;
|
|
210671
|
+
const e4 = t4.readdirSync();
|
|
210672
|
+
this.walkCB3Sync(t4, e4, s3, n4);
|
|
210673
|
+
}
|
|
210674
|
+
n4();
|
|
210675
|
+
}
|
|
210676
|
+
walkCB3Sync(t3, e3, s3, i3) {
|
|
210677
|
+
s3 = s3.filterEntries(t3, e3);
|
|
210678
|
+
let r3 = 1;
|
|
210679
|
+
const n4 = () => {
|
|
210680
|
+
0 == --r3 && i3();
|
|
210681
|
+
};
|
|
210682
|
+
for (const [t4, e4, i4] of s3.matches.entries()) __privateMethod(this, _o_instances, u_fn).call(this, t4) || this.matchSync(t4, e4, i4);
|
|
210683
|
+
for (const [t4, e4] of s3.subwalks.entries()) r3++, this.walkCB2Sync(t4, e4, s3.child(), n4);
|
|
210684
|
+
n4();
|
|
210685
|
+
}
|
|
210686
|
+
}
|
|
210687
|
+
_c = new WeakMap();
|
|
210688
|
+
_p = new WeakMap();
|
|
210689
|
+
_d = new WeakMap();
|
|
210690
|
+
_o_instances = new WeakSet();
|
|
210691
|
+
u_fn = function(t3) {
|
|
210692
|
+
var _a, _b;
|
|
210693
|
+
return this.seen.has(t3) || !!((_b = (_a = __privateGet(this, _p)) == null ? void 0 : _a.ignored) == null ? void 0 : _b.call(_a, t3));
|
|
210694
|
+
};
|
|
210695
|
+
f_fn = function(t3) {
|
|
210696
|
+
var _a, _b;
|
|
210697
|
+
return !!((_b = (_a = __privateGet(this, _p)) == null ? void 0 : _a.childrenIgnored) == null ? void 0 : _b.call(_a, t3));
|
|
210698
|
+
};
|
|
210699
|
+
e2.GlobUtil = o;
|
|
210700
|
+
e2.GlobWalker = class extends o {
|
|
210701
|
+
matches = /* @__PURE__ */ new Set();
|
|
210702
|
+
constructor(t3, e3, s3) {
|
|
210703
|
+
super(t3, e3, s3);
|
|
210704
|
+
}
|
|
210705
|
+
matchEmit(t3) {
|
|
210706
|
+
this.matches.add(t3);
|
|
210707
|
+
}
|
|
210708
|
+
async walk() {
|
|
210709
|
+
var _a;
|
|
210710
|
+
if ((_a = this.signal) == null ? void 0 : _a.aborted) throw this.signal.reason;
|
|
210711
|
+
return this.path.isUnknown() && await this.path.lstat(), await new Promise((t3, e3) => {
|
|
210712
|
+
this.walkCB(this.path, this.patterns, () => {
|
|
210713
|
+
var _a2;
|
|
210714
|
+
((_a2 = this.signal) == null ? void 0 : _a2.aborted) ? e3(this.signal.reason) : t3(this.matches);
|
|
210715
|
+
});
|
|
210716
|
+
}), this.matches;
|
|
210717
|
+
}
|
|
210718
|
+
walkSync() {
|
|
210719
|
+
var _a;
|
|
210720
|
+
if ((_a = this.signal) == null ? void 0 : _a.aborted) throw this.signal.reason;
|
|
210721
|
+
return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => {
|
|
210722
|
+
var _a2;
|
|
210723
|
+
if ((_a2 = this.signal) == null ? void 0 : _a2.aborted) throw this.signal.reason;
|
|
210724
|
+
}), this.matches;
|
|
210725
|
+
}
|
|
210726
|
+
};
|
|
210727
|
+
e2.GlobStream = class extends o {
|
|
210728
|
+
results;
|
|
210729
|
+
constructor(t3, e3, s3) {
|
|
210730
|
+
super(t3, e3, s3), this.results = new i2.Minipass({ signal: this.signal, objectMode: true }), this.results.on("drain", () => this.resume()), this.results.on("resume", () => this.resume());
|
|
210731
|
+
}
|
|
210732
|
+
matchEmit(t3) {
|
|
210733
|
+
this.results.write(t3), this.results.flowing || this.pause();
|
|
210734
|
+
}
|
|
210735
|
+
stream() {
|
|
210736
|
+
const t3 = this.path;
|
|
210737
|
+
return t3.isUnknown() ? t3.lstat().then(() => {
|
|
210738
|
+
this.walkCB(t3, this.patterns, () => this.results.end());
|
|
210739
|
+
}) : this.walkCB(t3, this.patterns, () => this.results.end()), this.results;
|
|
210740
|
+
}
|
|
210741
|
+
streamSync() {
|
|
210742
|
+
return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => this.results.end()), this.results;
|
|
210743
|
+
}
|
|
210744
|
+
};
|
|
210745
|
+
}, 96: (t2, e2) => {
|
|
210746
|
+
"use strict";
|
|
210747
|
+
var _a, _g, _b, _c, _m, _y, _w, _b2, _v, _S, _k, _x, _E, _L, _T, _C, _M, _A, _O, _P, _R, _F, __, _z, _D, _j, _d_instances, q_fn, _V, _Z, _H, _U, $_fn, _J, _Y, _K, I_fn, G_fn, Q_fn, X_fn, N_fn, B_fn, tt_fn, W_fn;
|
|
210748
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.LRUCache = void 0;
|
|
210749
|
+
const s2 = "object" == typeof performance && performance && "function" == typeof performance.now ? performance : Date, i2 = /* @__PURE__ */ new Set(), r2 = "object" == typeof process && process ? process : {}, n3 = (t3, e3, s3, i3) => {
|
|
210750
|
+
"function" == typeof r2.emitWarning ? r2.emitWarning(t3, e3, s3, i3) : console.error(`[${s3}] ${e3}: ${t3}`);
|
|
210751
|
+
};
|
|
210752
|
+
let o = globalThis.AbortController, h = globalThis.AbortSignal;
|
|
210753
|
+
if (void 0 === o) {
|
|
210754
|
+
h = class {
|
|
210755
|
+
onabort;
|
|
210756
|
+
_onabort = [];
|
|
210757
|
+
reason;
|
|
210758
|
+
aborted = false;
|
|
210759
|
+
addEventListener(t4, e4) {
|
|
210760
|
+
this._onabort.push(e4);
|
|
210761
|
+
}
|
|
210762
|
+
}, o = class {
|
|
210763
|
+
constructor() {
|
|
210764
|
+
e3();
|
|
210765
|
+
}
|
|
210766
|
+
signal = new h();
|
|
210767
|
+
abort(t4) {
|
|
210768
|
+
var _a2, _b3;
|
|
210769
|
+
if (!this.signal.aborted) {
|
|
210770
|
+
this.signal.reason = t4, this.signal.aborted = true;
|
|
210771
|
+
for (const e4 of this.signal._onabort) e4(t4);
|
|
210772
|
+
(_b3 = (_a2 = this.signal).onabort) == null ? void 0 : _b3.call(_a2, t4);
|
|
210773
|
+
}
|
|
210774
|
+
}
|
|
210775
|
+
};
|
|
210776
|
+
let t3 = "1" !== ((_a = r2.env) == null ? void 0 : _a.LRU_CACHE_IGNORE_AC_WARNING);
|
|
210777
|
+
const e3 = () => {
|
|
210778
|
+
t3 && (t3 = false, n3("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", e3));
|
|
210779
|
+
};
|
|
210780
|
+
}
|
|
210781
|
+
Symbol("type");
|
|
210782
|
+
const a = (t3) => t3 && t3 === Math.floor(t3) && t3 > 0 && isFinite(t3), l = (t3) => a(t3) ? t3 <= Math.pow(2, 8) ? Uint8Array : t3 <= Math.pow(2, 16) ? Uint16Array : t3 <= Math.pow(2, 32) ? Uint32Array : t3 <= Number.MAX_SAFE_INTEGER ? c : null : null;
|
|
210783
|
+
class c extends Array {
|
|
210784
|
+
constructor(t3) {
|
|
210785
|
+
super(t3), this.fill(0);
|
|
210786
|
+
}
|
|
210787
|
+
}
|
|
210788
|
+
const _p = class _p {
|
|
210789
|
+
heap;
|
|
210790
|
+
length;
|
|
210791
|
+
static create(t3) {
|
|
210792
|
+
const e3 = l(t3);
|
|
210793
|
+
if (!e3) return [];
|
|
210794
|
+
__privateSet(_p, _g, true);
|
|
210795
|
+
const s3 = new _p(t3, e3);
|
|
210796
|
+
return __privateSet(_p, _g, false), s3;
|
|
210797
|
+
}
|
|
210798
|
+
constructor(t3, e3) {
|
|
210799
|
+
if (!__privateGet(_p, _g)) throw new TypeError("instantiate Stack using Stack.create(n)");
|
|
210800
|
+
this.heap = new e3(t3), this.length = 0;
|
|
210801
|
+
}
|
|
210802
|
+
push(t3) {
|
|
210803
|
+
this.heap[this.length++] = t3;
|
|
210804
|
+
}
|
|
210805
|
+
pop() {
|
|
210806
|
+
return this.heap[--this.length];
|
|
210807
|
+
}
|
|
210808
|
+
};
|
|
210809
|
+
_g = new WeakMap();
|
|
210810
|
+
__privateAdd(_p, _g, false);
|
|
210811
|
+
let p = _p;
|
|
210812
|
+
const _d = class _d {
|
|
210813
|
+
constructor(t3) {
|
|
210814
|
+
__privateAdd(this, _d_instances);
|
|
210815
|
+
__privateAdd(this, _m);
|
|
210816
|
+
__privateAdd(this, _y);
|
|
210817
|
+
__privateAdd(this, _w);
|
|
210818
|
+
__privateAdd(this, _b2);
|
|
210819
|
+
__privateAdd(this, _v);
|
|
210820
|
+
__publicField(this, "ttl");
|
|
210821
|
+
__publicField(this, "ttlResolution");
|
|
210822
|
+
__publicField(this, "ttlAutopurge");
|
|
210823
|
+
__publicField(this, "updateAgeOnGet");
|
|
210824
|
+
__publicField(this, "updateAgeOnHas");
|
|
210825
|
+
__publicField(this, "allowStale");
|
|
210826
|
+
__publicField(this, "noDisposeOnSet");
|
|
210827
|
+
__publicField(this, "noUpdateTTL");
|
|
210828
|
+
__publicField(this, "maxEntrySize");
|
|
210829
|
+
__publicField(this, "sizeCalculation");
|
|
210830
|
+
__publicField(this, "noDeleteOnFetchRejection");
|
|
210831
|
+
__publicField(this, "noDeleteOnStaleGet");
|
|
210832
|
+
__publicField(this, "allowStaleOnFetchAbort");
|
|
210833
|
+
__publicField(this, "allowStaleOnFetchRejection");
|
|
210834
|
+
__publicField(this, "ignoreFetchAbort");
|
|
210835
|
+
__privateAdd(this, _S);
|
|
210836
|
+
__privateAdd(this, _k);
|
|
210837
|
+
__privateAdd(this, _x);
|
|
210838
|
+
__privateAdd(this, _E);
|
|
210839
|
+
__privateAdd(this, _L);
|
|
210840
|
+
__privateAdd(this, _T);
|
|
210841
|
+
__privateAdd(this, _C);
|
|
210842
|
+
__privateAdd(this, _M);
|
|
210843
|
+
__privateAdd(this, _A);
|
|
210844
|
+
__privateAdd(this, _O);
|
|
210845
|
+
__privateAdd(this, _P);
|
|
210846
|
+
__privateAdd(this, _R);
|
|
210847
|
+
__privateAdd(this, _F);
|
|
210848
|
+
__privateAdd(this, __);
|
|
210849
|
+
__privateAdd(this, _z);
|
|
210850
|
+
__privateAdd(this, _D);
|
|
210851
|
+
__privateAdd(this, _j);
|
|
210852
|
+
__privateAdd(this, _V, () => {
|
|
210853
|
+
});
|
|
210854
|
+
__privateAdd(this, _Z, () => {
|
|
210855
|
+
});
|
|
210856
|
+
__privateAdd(this, _H, () => {
|
|
210857
|
+
});
|
|
210858
|
+
__privateAdd(this, _U, () => false);
|
|
210859
|
+
__privateAdd(this, _J, (t3) => {
|
|
210860
|
+
});
|
|
210861
|
+
__privateAdd(this, _Y, (t3, e3, s3) => {
|
|
210862
|
+
});
|
|
210863
|
+
__privateAdd(this, _K, (t3, e3, s3, i3) => {
|
|
210864
|
+
if (s3 || i3) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
210865
|
+
return 0;
|
|
210866
|
+
});
|
|
210867
|
+
__publicField(this, _b, "LRUCache");
|
|
210868
|
+
const { max: e3 = 0, ttl: s3, ttlResolution: r3 = 1, ttlAutopurge: o2, updateAgeOnGet: h2, updateAgeOnHas: c2, allowStale: u, dispose: f, disposeAfter: g, noDisposeOnSet: m, noUpdateTTL: y, maxSize: w = 0, maxEntrySize: b = 0, sizeCalculation: v, fetchMethod: S, noDeleteOnFetchRejection: k, noDeleteOnStaleGet: x, allowStaleOnFetchRejection: E, allowStaleOnFetchAbort: L, ignoreFetchAbort: T } = t3;
|
|
210869
|
+
if (0 !== e3 && !a(e3)) throw new TypeError("max option must be a nonnegative integer");
|
|
210870
|
+
const C2 = e3 ? l(e3) : Array;
|
|
210871
|
+
if (!C2) throw new Error("invalid max value: " + e3);
|
|
210872
|
+
if (__privateSet(this, _m, e3), __privateSet(this, _y, w), this.maxEntrySize = b || __privateGet(this, _y), this.sizeCalculation = v, this.sizeCalculation) {
|
|
210873
|
+
if (!__privateGet(this, _y) && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
210874
|
+
if ("function" != typeof this.sizeCalculation) throw new TypeError("sizeCalculation set to non-function");
|
|
210875
|
+
}
|
|
210876
|
+
if (void 0 !== S && "function" != typeof S) throw new TypeError("fetchMethod must be a function if specified");
|
|
210877
|
+
if (__privateSet(this, _v, S), __privateSet(this, _D, !!S), __privateSet(this, _x, /* @__PURE__ */ new Map()), __privateSet(this, _E, new Array(e3).fill(void 0)), __privateSet(this, _L, new Array(e3).fill(void 0)), __privateSet(this, _T, new C2(e3)), __privateSet(this, _C, new C2(e3)), __privateSet(this, _M, 0), __privateSet(this, _A, 0), __privateSet(this, _O, p.create(e3)), __privateSet(this, _S, 0), __privateSet(this, _k, 0), "function" == typeof f && __privateSet(this, _w, f), "function" == typeof g ? (__privateSet(this, _b2, g), __privateSet(this, _P, [])) : (__privateSet(this, _b2, void 0), __privateSet(this, _P, void 0)), __privateSet(this, _z, !!__privateGet(this, _w)), __privateSet(this, _j, !!__privateGet(this, _b2)), this.noDisposeOnSet = !!m, this.noUpdateTTL = !!y, this.noDeleteOnFetchRejection = !!k, this.allowStaleOnFetchRejection = !!E, this.allowStaleOnFetchAbort = !!L, this.ignoreFetchAbort = !!T, 0 !== this.maxEntrySize) {
|
|
210878
|
+
if (0 !== __privateGet(this, _y) && !a(__privateGet(this, _y))) throw new TypeError("maxSize must be a positive integer if specified");
|
|
210879
|
+
if (!a(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
210880
|
+
__privateMethod(this, _d_instances, $_fn).call(this);
|
|
210881
|
+
}
|
|
210882
|
+
if (this.allowStale = !!u, this.noDeleteOnStaleGet = !!x, this.updateAgeOnGet = !!h2, this.updateAgeOnHas = !!c2, this.ttlResolution = a(r3) || 0 === r3 ? r3 : 1, this.ttlAutopurge = !!o2, this.ttl = s3 || 0, this.ttl) {
|
|
210883
|
+
if (!a(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
|
|
210884
|
+
__privateMethod(this, _d_instances, q_fn).call(this);
|
|
210885
|
+
}
|
|
210886
|
+
if (0 === __privateGet(this, _m) && 0 === this.ttl && 0 === __privateGet(this, _y)) throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
210887
|
+
if (!this.ttlAutopurge && !__privateGet(this, _m) && !__privateGet(this, _y)) {
|
|
210888
|
+
const t4 = "LRU_CACHE_UNBOUNDED";
|
|
210889
|
+
if (((t5) => !i2.has(t5))(t4)) {
|
|
210890
|
+
i2.add(t4);
|
|
210891
|
+
n3("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", t4, _d);
|
|
210892
|
+
}
|
|
210893
|
+
}
|
|
210894
|
+
}
|
|
210895
|
+
static unsafeExposeInternals(t3) {
|
|
210896
|
+
return { starts: __privateGet(t3, _F), ttls: __privateGet(t3, __), sizes: __privateGet(t3, _R), keyMap: __privateGet(t3, _x), keyList: __privateGet(t3, _E), valList: __privateGet(t3, _L), next: __privateGet(t3, _T), prev: __privateGet(t3, _C), get head() {
|
|
210897
|
+
return __privateGet(t3, _M);
|
|
210898
|
+
}, get tail() {
|
|
210899
|
+
return __privateGet(t3, _A);
|
|
210900
|
+
}, free: __privateGet(t3, _O), isBackgroundFetch: (e3) => {
|
|
210901
|
+
var _a2;
|
|
210902
|
+
return __privateMethod(_a2 = t3, _d_instances, B_fn).call(_a2, e3);
|
|
210903
|
+
}, backgroundFetch: (e3, s3, i3, r3) => {
|
|
210904
|
+
var _a2;
|
|
210905
|
+
return __privateMethod(_a2 = t3, _d_instances, N_fn).call(_a2, e3, s3, i3, r3);
|
|
210906
|
+
}, moveToTail: (e3) => {
|
|
210907
|
+
var _a2;
|
|
210908
|
+
return __privateMethod(_a2 = t3, _d_instances, W_fn).call(_a2, e3);
|
|
210909
|
+
}, indexes: (e3) => {
|
|
210910
|
+
var _a2;
|
|
210911
|
+
return __privateMethod(_a2 = t3, _d_instances, I_fn).call(_a2, e3);
|
|
210912
|
+
}, rindexes: (e3) => {
|
|
210913
|
+
var _a2;
|
|
210914
|
+
return __privateMethod(_a2 = t3, _d_instances, G_fn).call(_a2, e3);
|
|
210915
|
+
}, isStale: (e3) => {
|
|
210916
|
+
var _a2;
|
|
210917
|
+
return __privateGet(_a2 = t3, _U).call(_a2, e3);
|
|
210918
|
+
} };
|
|
210919
|
+
}
|
|
210920
|
+
get max() {
|
|
210921
|
+
return __privateGet(this, _m);
|
|
210922
|
+
}
|
|
210923
|
+
get maxSize() {
|
|
210924
|
+
return __privateGet(this, _y);
|
|
210925
|
+
}
|
|
210926
|
+
get calculatedSize() {
|
|
210927
|
+
return __privateGet(this, _k);
|
|
210928
|
+
}
|
|
210929
|
+
get size() {
|
|
210930
|
+
return __privateGet(this, _S);
|
|
210931
|
+
}
|
|
210932
|
+
get fetchMethod() {
|
|
210933
|
+
return __privateGet(this, _v);
|
|
210934
|
+
}
|
|
210935
|
+
get dispose() {
|
|
210936
|
+
return __privateGet(this, _w);
|
|
210937
|
+
}
|
|
210938
|
+
get disposeAfter() {
|
|
210939
|
+
return __privateGet(this, _b2);
|
|
210940
|
+
}
|
|
210941
|
+
getRemainingTTL(t3) {
|
|
210942
|
+
return __privateGet(this, _x).has(t3) ? 1 / 0 : 0;
|
|
210943
|
+
}
|
|
210944
|
+
*entries() {
|
|
210945
|
+
for (const t3 of __privateMethod(this, _d_instances, I_fn).call(this)) void 0 === __privateGet(this, _L)[t3] || void 0 === __privateGet(this, _E)[t3] || __privateMethod(this, _d_instances, B_fn).call(this, __privateGet(this, _L)[t3]) || (yield [__privateGet(this, _E)[t3], __privateGet(this, _L)[t3]]);
|
|
210946
|
+
}
|
|
210947
|
+
*rentries() {
|
|
210948
|
+
for (const t3 of __privateMethod(this, _d_instances, G_fn).call(this)) void 0 === __privateGet(this, _L)[t3] || void 0 === __privateGet(this, _E)[t3] || __privateMethod(this, _d_instances, B_fn).call(this, __privateGet(this, _L)[t3]) || (yield [__privateGet(this, _E)[t3], __privateGet(this, _L)[t3]]);
|
|
210949
|
+
}
|
|
210950
|
+
*keys() {
|
|
210951
|
+
for (const t3 of __privateMethod(this, _d_instances, I_fn).call(this)) {
|
|
210952
|
+
const e3 = __privateGet(this, _E)[t3];
|
|
210953
|
+
void 0 === e3 || __privateMethod(this, _d_instances, B_fn).call(this, __privateGet(this, _L)[t3]) || (yield e3);
|
|
210954
|
+
}
|
|
210955
|
+
}
|
|
210956
|
+
*rkeys() {
|
|
210957
|
+
for (const t3 of __privateMethod(this, _d_instances, G_fn).call(this)) {
|
|
210958
|
+
const e3 = __privateGet(this, _E)[t3];
|
|
210959
|
+
void 0 === e3 || __privateMethod(this, _d_instances, B_fn).call(this, __privateGet(this, _L)[t3]) || (yield e3);
|
|
210960
|
+
}
|
|
210961
|
+
}
|
|
210962
|
+
*values() {
|
|
210963
|
+
for (const t3 of __privateMethod(this, _d_instances, I_fn).call(this)) {
|
|
210964
|
+
void 0 === __privateGet(this, _L)[t3] || __privateMethod(this, _d_instances, B_fn).call(this, __privateGet(this, _L)[t3]) || (yield __privateGet(this, _L)[t3]);
|
|
210965
|
+
}
|
|
210966
|
+
}
|
|
210967
|
+
*rvalues() {
|
|
210968
|
+
for (const t3 of __privateMethod(this, _d_instances, G_fn).call(this)) {
|
|
210969
|
+
void 0 === __privateGet(this, _L)[t3] || __privateMethod(this, _d_instances, B_fn).call(this, __privateGet(this, _L)[t3]) || (yield __privateGet(this, _L)[t3]);
|
|
210970
|
+
}
|
|
210971
|
+
}
|
|
210972
|
+
[(_c = Symbol.iterator, _b = Symbol.toStringTag, _c)]() {
|
|
210973
|
+
return this.entries();
|
|
210974
|
+
}
|
|
210975
|
+
find(t3, e3 = {}) {
|
|
210976
|
+
for (const s3 of __privateMethod(this, _d_instances, I_fn).call(this)) {
|
|
210977
|
+
const i3 = __privateGet(this, _L)[s3], r3 = __privateMethod(this, _d_instances, B_fn).call(this, i3) ? i3.__staleWhileFetching : i3;
|
|
210978
|
+
if (void 0 !== r3 && t3(r3, __privateGet(this, _E)[s3], this)) return this.get(__privateGet(this, _E)[s3], e3);
|
|
210979
|
+
}
|
|
210980
|
+
}
|
|
210981
|
+
forEach(t3, e3 = this) {
|
|
210982
|
+
for (const s3 of __privateMethod(this, _d_instances, I_fn).call(this)) {
|
|
210983
|
+
const i3 = __privateGet(this, _L)[s3], r3 = __privateMethod(this, _d_instances, B_fn).call(this, i3) ? i3.__staleWhileFetching : i3;
|
|
210984
|
+
void 0 !== r3 && t3.call(e3, r3, __privateGet(this, _E)[s3], this);
|
|
210985
|
+
}
|
|
210986
|
+
}
|
|
210987
|
+
rforEach(t3, e3 = this) {
|
|
210988
|
+
for (const s3 of __privateMethod(this, _d_instances, G_fn).call(this)) {
|
|
210989
|
+
const i3 = __privateGet(this, _L)[s3], r3 = __privateMethod(this, _d_instances, B_fn).call(this, i3) ? i3.__staleWhileFetching : i3;
|
|
210990
|
+
void 0 !== r3 && t3.call(e3, r3, __privateGet(this, _E)[s3], this);
|
|
210991
|
+
}
|
|
210992
|
+
}
|
|
210993
|
+
purgeStale() {
|
|
210994
|
+
let t3 = false;
|
|
210995
|
+
for (const e3 of __privateMethod(this, _d_instances, G_fn).call(this, { allowStale: true })) __privateGet(this, _U).call(this, e3) && (this.delete(__privateGet(this, _E)[e3]), t3 = true);
|
|
210996
|
+
return t3;
|
|
210997
|
+
}
|
|
210998
|
+
info(t3) {
|
|
210999
|
+
const e3 = __privateGet(this, _x).get(t3);
|
|
211000
|
+
if (void 0 === e3) return;
|
|
211001
|
+
const i3 = __privateGet(this, _L)[e3], r3 = __privateMethod(this, _d_instances, B_fn).call(this, i3) ? i3.__staleWhileFetching : i3;
|
|
211002
|
+
if (void 0 === r3) return;
|
|
211003
|
+
const n4 = { value: r3 };
|
|
211004
|
+
if (__privateGet(this, __) && __privateGet(this, _F)) {
|
|
211005
|
+
const t4 = __privateGet(this, __)[e3], i4 = __privateGet(this, _F)[e3];
|
|
211006
|
+
if (t4 && i4) {
|
|
211007
|
+
const e4 = t4 - (s2.now() - i4);
|
|
211008
|
+
n4.ttl = e4, n4.start = Date.now();
|
|
211009
|
+
}
|
|
211010
|
+
}
|
|
211011
|
+
return __privateGet(this, _R) && (n4.size = __privateGet(this, _R)[e3]), n4;
|
|
211012
|
+
}
|
|
211013
|
+
dump() {
|
|
211014
|
+
const t3 = [];
|
|
211015
|
+
for (const e3 of __privateMethod(this, _d_instances, I_fn).call(this, { allowStale: true })) {
|
|
211016
|
+
const i3 = __privateGet(this, _E)[e3], r3 = __privateGet(this, _L)[e3], n4 = __privateMethod(this, _d_instances, B_fn).call(this, r3) ? r3.__staleWhileFetching : r3;
|
|
211017
|
+
if (void 0 === n4 || void 0 === i3) continue;
|
|
211018
|
+
const o2 = { value: n4 };
|
|
211019
|
+
if (__privateGet(this, __) && __privateGet(this, _F)) {
|
|
211020
|
+
o2.ttl = __privateGet(this, __)[e3];
|
|
211021
|
+
const t4 = s2.now() - __privateGet(this, _F)[e3];
|
|
211022
|
+
o2.start = Math.floor(Date.now() - t4);
|
|
211023
|
+
}
|
|
211024
|
+
__privateGet(this, _R) && (o2.size = __privateGet(this, _R)[e3]), t3.unshift([i3, o2]);
|
|
211025
|
+
}
|
|
211026
|
+
return t3;
|
|
211027
|
+
}
|
|
211028
|
+
load(t3) {
|
|
211029
|
+
this.clear();
|
|
211030
|
+
for (const [e3, i3] of t3) {
|
|
211031
|
+
if (i3.start) {
|
|
211032
|
+
const t4 = Date.now() - i3.start;
|
|
211033
|
+
i3.start = s2.now() - t4;
|
|
211034
|
+
}
|
|
211035
|
+
this.set(e3, i3.value, i3);
|
|
211036
|
+
}
|
|
211037
|
+
}
|
|
211038
|
+
set(t3, e3, s3 = {}) {
|
|
211039
|
+
var _a2, _b3, _c2, _d2, _e;
|
|
211040
|
+
if (void 0 === e3) return this.delete(t3), this;
|
|
211041
|
+
const { ttl: i3 = this.ttl, start: r3, noDisposeOnSet: n4 = this.noDisposeOnSet, sizeCalculation: o2 = this.sizeCalculation, status: h2 } = s3;
|
|
211042
|
+
let { noUpdateTTL: a2 = this.noUpdateTTL } = s3;
|
|
211043
|
+
const l2 = __privateGet(this, _K).call(this, t3, e3, s3.size || 0, o2);
|
|
211044
|
+
if (this.maxEntrySize && l2 > this.maxEntrySize) return h2 && (h2.set = "miss", h2.maxEntrySizeExceeded = true), this.delete(t3), this;
|
|
211045
|
+
let c2 = 0 === __privateGet(this, _S) ? void 0 : __privateGet(this, _x).get(t3);
|
|
211046
|
+
if (void 0 === c2) c2 = 0 === __privateGet(this, _S) ? __privateGet(this, _A) : 0 !== __privateGet(this, _O).length ? __privateGet(this, _O).pop() : __privateGet(this, _S) === __privateGet(this, _m) ? __privateMethod(this, _d_instances, X_fn).call(this, false) : __privateGet(this, _S), __privateGet(this, _E)[c2] = t3, __privateGet(this, _L)[c2] = e3, __privateGet(this, _x).set(t3, c2), __privateGet(this, _T)[__privateGet(this, _A)] = c2, __privateGet(this, _C)[c2] = __privateGet(this, _A), __privateSet(this, _A, c2), __privateWrapper(this, _S)._++, __privateGet(this, _Y).call(this, c2, l2, h2), h2 && (h2.set = "add"), a2 = false;
|
|
211047
|
+
else {
|
|
211048
|
+
__privateMethod(this, _d_instances, W_fn).call(this, c2);
|
|
211049
|
+
const s4 = __privateGet(this, _L)[c2];
|
|
211050
|
+
if (e3 !== s4) {
|
|
211051
|
+
if (__privateGet(this, _D) && __privateMethod(this, _d_instances, B_fn).call(this, s4)) {
|
|
211052
|
+
s4.__abortController.abort(new Error("replaced"));
|
|
211053
|
+
const { __staleWhileFetching: e4 } = s4;
|
|
211054
|
+
void 0 === e4 || n4 || (__privateGet(this, _z) && ((_a2 = __privateGet(this, _w)) == null ? void 0 : _a2.call(this, e4, t3, "set")), __privateGet(this, _j) && ((_b3 = __privateGet(this, _P)) == null ? void 0 : _b3.push([e4, t3, "set"])));
|
|
211055
|
+
} else n4 || (__privateGet(this, _z) && ((_c2 = __privateGet(this, _w)) == null ? void 0 : _c2.call(this, s4, t3, "set")), __privateGet(this, _j) && ((_d2 = __privateGet(this, _P)) == null ? void 0 : _d2.push([s4, t3, "set"])));
|
|
211056
|
+
if (__privateGet(this, _J).call(this, c2), __privateGet(this, _Y).call(this, c2, l2, h2), __privateGet(this, _L)[c2] = e3, h2) {
|
|
211057
|
+
h2.set = "replace";
|
|
211058
|
+
const t4 = s4 && __privateMethod(this, _d_instances, B_fn).call(this, s4) ? s4.__staleWhileFetching : s4;
|
|
211059
|
+
void 0 !== t4 && (h2.oldValue = t4);
|
|
211060
|
+
}
|
|
211061
|
+
} else h2 && (h2.set = "update");
|
|
211062
|
+
}
|
|
211063
|
+
if (0 === i3 || __privateGet(this, __) || __privateMethod(this, _d_instances, q_fn).call(this), __privateGet(this, __) && (a2 || __privateGet(this, _H).call(this, c2, i3, r3), h2 && __privateGet(this, _Z).call(this, h2, c2)), !n4 && __privateGet(this, _j) && __privateGet(this, _P)) {
|
|
211064
|
+
const t4 = __privateGet(this, _P);
|
|
211065
|
+
let e4;
|
|
211066
|
+
for (; e4 = t4 == null ? void 0 : t4.shift(); ) (_e = __privateGet(this, _b2)) == null ? void 0 : _e.call(this, ...e4);
|
|
211067
|
+
}
|
|
211068
|
+
return this;
|
|
211069
|
+
}
|
|
211070
|
+
pop() {
|
|
211071
|
+
var _a2;
|
|
211072
|
+
try {
|
|
211073
|
+
for (; __privateGet(this, _S); ) {
|
|
211074
|
+
const t3 = __privateGet(this, _L)[__privateGet(this, _M)];
|
|
211075
|
+
if (__privateMethod(this, _d_instances, X_fn).call(this, true), __privateMethod(this, _d_instances, B_fn).call(this, t3)) {
|
|
211076
|
+
if (t3.__staleWhileFetching) return t3.__staleWhileFetching;
|
|
211077
|
+
} else if (void 0 !== t3) return t3;
|
|
211078
|
+
}
|
|
211079
|
+
} finally {
|
|
211080
|
+
if (__privateGet(this, _j) && __privateGet(this, _P)) {
|
|
211081
|
+
const t3 = __privateGet(this, _P);
|
|
211082
|
+
let e3;
|
|
211083
|
+
for (; e3 = t3 == null ? void 0 : t3.shift(); ) (_a2 = __privateGet(this, _b2)) == null ? void 0 : _a2.call(this, ...e3);
|
|
211084
|
+
}
|
|
211085
|
+
}
|
|
211086
|
+
}
|
|
211087
|
+
has(t3, e3 = {}) {
|
|
211088
|
+
const { updateAgeOnHas: s3 = this.updateAgeOnHas, status: i3 } = e3, r3 = __privateGet(this, _x).get(t3);
|
|
211089
|
+
if (void 0 !== r3) {
|
|
211090
|
+
const t4 = __privateGet(this, _L)[r3];
|
|
211091
|
+
if (__privateMethod(this, _d_instances, B_fn).call(this, t4) && void 0 === t4.__staleWhileFetching) return false;
|
|
211092
|
+
if (!__privateGet(this, _U).call(this, r3)) return s3 && __privateGet(this, _V).call(this, r3), i3 && (i3.has = "hit", __privateGet(this, _Z).call(this, i3, r3)), true;
|
|
211093
|
+
i3 && (i3.has = "stale", __privateGet(this, _Z).call(this, i3, r3));
|
|
211094
|
+
} else i3 && (i3.has = "miss");
|
|
211095
|
+
return false;
|
|
211096
|
+
}
|
|
211097
|
+
peek(t3, e3 = {}) {
|
|
211098
|
+
const { allowStale: s3 = this.allowStale } = e3, i3 = __privateGet(this, _x).get(t3);
|
|
211099
|
+
if (void 0 === i3 || !s3 && __privateGet(this, _U).call(this, i3)) return;
|
|
211100
|
+
const r3 = __privateGet(this, _L)[i3];
|
|
211101
|
+
return __privateMethod(this, _d_instances, B_fn).call(this, r3) ? r3.__staleWhileFetching : r3;
|
|
211102
|
+
}
|
|
211103
|
+
async fetch(t3, e3 = {}) {
|
|
211104
|
+
const { allowStale: s3 = this.allowStale, updateAgeOnGet: i3 = this.updateAgeOnGet, noDeleteOnStaleGet: r3 = this.noDeleteOnStaleGet, ttl: n4 = this.ttl, noDisposeOnSet: o2 = this.noDisposeOnSet, size: h2 = 0, sizeCalculation: a2 = this.sizeCalculation, noUpdateTTL: l2 = this.noUpdateTTL, noDeleteOnFetchRejection: c2 = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: p2 = this.allowStaleOnFetchRejection, ignoreFetchAbort: d2 = this.ignoreFetchAbort, allowStaleOnFetchAbort: u = this.allowStaleOnFetchAbort, context: f, forceRefresh: g = false, status: m, signal: y } = e3;
|
|
211105
|
+
if (!__privateGet(this, _D)) return m && (m.fetch = "get"), this.get(t3, { allowStale: s3, updateAgeOnGet: i3, noDeleteOnStaleGet: r3, status: m });
|
|
211106
|
+
const w = { allowStale: s3, updateAgeOnGet: i3, noDeleteOnStaleGet: r3, ttl: n4, noDisposeOnSet: o2, size: h2, sizeCalculation: a2, noUpdateTTL: l2, noDeleteOnFetchRejection: c2, allowStaleOnFetchRejection: p2, allowStaleOnFetchAbort: u, ignoreFetchAbort: d2, status: m, signal: y };
|
|
211107
|
+
let b = __privateGet(this, _x).get(t3);
|
|
211108
|
+
if (void 0 === b) {
|
|
211109
|
+
m && (m.fetch = "miss");
|
|
211110
|
+
const e4 = __privateMethod(this, _d_instances, N_fn).call(this, t3, b, w, f);
|
|
211111
|
+
return e4.__returned = e4;
|
|
211112
|
+
}
|
|
211113
|
+
{
|
|
211114
|
+
const e4 = __privateGet(this, _L)[b];
|
|
211115
|
+
if (__privateMethod(this, _d_instances, B_fn).call(this, e4)) {
|
|
211116
|
+
const t4 = s3 && void 0 !== e4.__staleWhileFetching;
|
|
211117
|
+
return m && (m.fetch = "inflight", t4 && (m.returnedStale = true)), t4 ? e4.__staleWhileFetching : e4.__returned = e4;
|
|
211118
|
+
}
|
|
211119
|
+
const r4 = __privateGet(this, _U).call(this, b);
|
|
211120
|
+
if (!g && !r4) return m && (m.fetch = "hit"), __privateMethod(this, _d_instances, W_fn).call(this, b), i3 && __privateGet(this, _V).call(this, b), m && __privateGet(this, _Z).call(this, m, b), e4;
|
|
211121
|
+
const n5 = __privateMethod(this, _d_instances, N_fn).call(this, t3, b, w, f), o3 = void 0 !== n5.__staleWhileFetching && s3;
|
|
211122
|
+
return m && (m.fetch = r4 ? "stale" : "refresh", o3 && r4 && (m.returnedStale = true)), o3 ? n5.__staleWhileFetching : n5.__returned = n5;
|
|
211123
|
+
}
|
|
211124
|
+
}
|
|
211125
|
+
get(t3, e3 = {}) {
|
|
211126
|
+
const { allowStale: s3 = this.allowStale, updateAgeOnGet: i3 = this.updateAgeOnGet, noDeleteOnStaleGet: r3 = this.noDeleteOnStaleGet, status: n4 } = e3, o2 = __privateGet(this, _x).get(t3);
|
|
211127
|
+
if (void 0 !== o2) {
|
|
211128
|
+
const e4 = __privateGet(this, _L)[o2], h2 = __privateMethod(this, _d_instances, B_fn).call(this, e4);
|
|
211129
|
+
return n4 && __privateGet(this, _Z).call(this, n4, o2), __privateGet(this, _U).call(this, o2) ? (n4 && (n4.get = "stale"), h2 ? (n4 && s3 && void 0 !== e4.__staleWhileFetching && (n4.returnedStale = true), s3 ? e4.__staleWhileFetching : void 0) : (r3 || this.delete(t3), n4 && s3 && (n4.returnedStale = true), s3 ? e4 : void 0)) : (n4 && (n4.get = "hit"), h2 ? e4.__staleWhileFetching : (__privateMethod(this, _d_instances, W_fn).call(this, o2), i3 && __privateGet(this, _V).call(this, o2), e4));
|
|
211130
|
+
}
|
|
211131
|
+
n4 && (n4.get = "miss");
|
|
211132
|
+
}
|
|
211133
|
+
delete(t3) {
|
|
211134
|
+
var _a2, _b3, _c2, _d2;
|
|
211135
|
+
let e3 = false;
|
|
211136
|
+
if (0 !== __privateGet(this, _S)) {
|
|
211137
|
+
const s3 = __privateGet(this, _x).get(t3);
|
|
211138
|
+
if (void 0 !== s3) if (e3 = true, 1 === __privateGet(this, _S)) this.clear();
|
|
211139
|
+
else {
|
|
211140
|
+
__privateGet(this, _J).call(this, s3);
|
|
211141
|
+
const e4 = __privateGet(this, _L)[s3];
|
|
211142
|
+
if (__privateMethod(this, _d_instances, B_fn).call(this, e4) ? e4.__abortController.abort(new Error("deleted")) : (__privateGet(this, _z) || __privateGet(this, _j)) && (__privateGet(this, _z) && ((_a2 = __privateGet(this, _w)) == null ? void 0 : _a2.call(this, e4, t3, "delete")), __privateGet(this, _j) && ((_b3 = __privateGet(this, _P)) == null ? void 0 : _b3.push([e4, t3, "delete"]))), __privateGet(this, _x).delete(t3), __privateGet(this, _E)[s3] = void 0, __privateGet(this, _L)[s3] = void 0, s3 === __privateGet(this, _A)) __privateSet(this, _A, __privateGet(this, _C)[s3]);
|
|
211143
|
+
else if (s3 === __privateGet(this, _M)) __privateSet(this, _M, __privateGet(this, _T)[s3]);
|
|
211144
|
+
else {
|
|
211145
|
+
const t4 = __privateGet(this, _C)[s3];
|
|
211146
|
+
__privateGet(this, _T)[t4] = __privateGet(this, _T)[s3];
|
|
211147
|
+
const e5 = __privateGet(this, _T)[s3];
|
|
211148
|
+
__privateGet(this, _C)[e5] = __privateGet(this, _C)[s3];
|
|
211149
|
+
}
|
|
211150
|
+
__privateWrapper(this, _S)._--, __privateGet(this, _O).push(s3);
|
|
211151
|
+
}
|
|
211152
|
+
}
|
|
211153
|
+
if (__privateGet(this, _j) && ((_c2 = __privateGet(this, _P)) == null ? void 0 : _c2.length)) {
|
|
211154
|
+
const t4 = __privateGet(this, _P);
|
|
211155
|
+
let e4;
|
|
211156
|
+
for (; e4 = t4 == null ? void 0 : t4.shift(); ) (_d2 = __privateGet(this, _b2)) == null ? void 0 : _d2.call(this, ...e4);
|
|
211157
|
+
}
|
|
211158
|
+
return e3;
|
|
211159
|
+
}
|
|
211160
|
+
clear() {
|
|
211161
|
+
var _a2, _b3, _c2;
|
|
211162
|
+
for (const t3 of __privateMethod(this, _d_instances, G_fn).call(this, { allowStale: true })) {
|
|
211163
|
+
const e3 = __privateGet(this, _L)[t3];
|
|
211164
|
+
if (__privateMethod(this, _d_instances, B_fn).call(this, e3)) e3.__abortController.abort(new Error("deleted"));
|
|
211165
|
+
else {
|
|
211166
|
+
const s3 = __privateGet(this, _E)[t3];
|
|
211167
|
+
__privateGet(this, _z) && ((_a2 = __privateGet(this, _w)) == null ? void 0 : _a2.call(this, e3, s3, "delete")), __privateGet(this, _j) && ((_b3 = __privateGet(this, _P)) == null ? void 0 : _b3.push([e3, s3, "delete"]));
|
|
211168
|
+
}
|
|
211169
|
+
}
|
|
211170
|
+
if (__privateGet(this, _x).clear(), __privateGet(this, _L).fill(void 0), __privateGet(this, _E).fill(void 0), __privateGet(this, __) && __privateGet(this, _F) && (__privateGet(this, __).fill(0), __privateGet(this, _F).fill(0)), __privateGet(this, _R) && __privateGet(this, _R).fill(0), __privateSet(this, _M, 0), __privateSet(this, _A, 0), __privateGet(this, _O).length = 0, __privateSet(this, _k, 0), __privateSet(this, _S, 0), __privateGet(this, _j) && __privateGet(this, _P)) {
|
|
211171
|
+
const t3 = __privateGet(this, _P);
|
|
211172
|
+
let e3;
|
|
211173
|
+
for (; e3 = t3 == null ? void 0 : t3.shift(); ) (_c2 = __privateGet(this, _b2)) == null ? void 0 : _c2.call(this, ...e3);
|
|
211174
|
+
}
|
|
211175
|
+
}
|
|
211176
|
+
};
|
|
211177
|
+
_m = new WeakMap();
|
|
211178
|
+
_y = new WeakMap();
|
|
211179
|
+
_w = new WeakMap();
|
|
211180
|
+
_b2 = new WeakMap();
|
|
211181
|
+
_v = new WeakMap();
|
|
211182
|
+
_S = new WeakMap();
|
|
211183
|
+
_k = new WeakMap();
|
|
211184
|
+
_x = new WeakMap();
|
|
211185
|
+
_E = new WeakMap();
|
|
211186
|
+
_L = new WeakMap();
|
|
211187
|
+
_T = new WeakMap();
|
|
211188
|
+
_C = new WeakMap();
|
|
211189
|
+
_M = new WeakMap();
|
|
211190
|
+
_A = new WeakMap();
|
|
211191
|
+
_O = new WeakMap();
|
|
211192
|
+
_P = new WeakMap();
|
|
211193
|
+
_R = new WeakMap();
|
|
211194
|
+
_F = new WeakMap();
|
|
211195
|
+
__ = new WeakMap();
|
|
211196
|
+
_z = new WeakMap();
|
|
211197
|
+
_D = new WeakMap();
|
|
211198
|
+
_j = new WeakMap();
|
|
211199
|
+
_d_instances = new WeakSet();
|
|
211200
|
+
q_fn = function() {
|
|
211201
|
+
const t3 = new c(__privateGet(this, _m)), e3 = new c(__privateGet(this, _m));
|
|
211202
|
+
__privateSet(this, __, t3), __privateSet(this, _F, e3), __privateSet(this, _H, (i4, r4, n4 = s2.now()) => {
|
|
211203
|
+
if (e3[i4] = 0 !== r4 ? n4 : 0, t3[i4] = r4, 0 !== r4 && this.ttlAutopurge) {
|
|
211204
|
+
const t4 = setTimeout(() => {
|
|
211205
|
+
__privateGet(this, _U).call(this, i4) && this.delete(__privateGet(this, _E)[i4]);
|
|
211206
|
+
}, r4 + 1);
|
|
211207
|
+
t4.unref && t4.unref();
|
|
211208
|
+
}
|
|
211209
|
+
}), __privateSet(this, _V, (i4) => {
|
|
211210
|
+
e3[i4] = 0 !== t3[i4] ? s2.now() : 0;
|
|
211211
|
+
}), __privateSet(this, _Z, (s3, n4) => {
|
|
211212
|
+
if (t3[n4]) {
|
|
211213
|
+
const o2 = t3[n4], h2 = e3[n4];
|
|
211214
|
+
if (!o2 || !h2) return;
|
|
211215
|
+
s3.ttl = o2, s3.start = h2, s3.now = i3 || r3();
|
|
211216
|
+
const a2 = s3.now - h2;
|
|
211217
|
+
s3.remainingTTL = o2 - a2;
|
|
211218
|
+
}
|
|
211219
|
+
});
|
|
211220
|
+
let i3 = 0;
|
|
211221
|
+
const r3 = () => {
|
|
211222
|
+
const t4 = s2.now();
|
|
211223
|
+
if (this.ttlResolution > 0) {
|
|
211224
|
+
i3 = t4;
|
|
211225
|
+
const e4 = setTimeout(() => i3 = 0, this.ttlResolution);
|
|
211226
|
+
e4.unref && e4.unref();
|
|
211227
|
+
}
|
|
211228
|
+
return t4;
|
|
211229
|
+
};
|
|
211230
|
+
this.getRemainingTTL = (s3) => {
|
|
211231
|
+
const n4 = __privateGet(this, _x).get(s3);
|
|
211232
|
+
if (void 0 === n4) return 0;
|
|
211233
|
+
const o2 = t3[n4], h2 = e3[n4];
|
|
211234
|
+
if (!o2 || !h2) return 1 / 0;
|
|
211235
|
+
return o2 - ((i3 || r3()) - h2);
|
|
211236
|
+
}, __privateSet(this, _U, (s3) => {
|
|
211237
|
+
const n4 = e3[s3], o2 = t3[s3];
|
|
211238
|
+
return !!o2 && !!n4 && (i3 || r3()) - n4 > o2;
|
|
211239
|
+
});
|
|
211240
|
+
};
|
|
211241
|
+
_V = new WeakMap();
|
|
211242
|
+
_Z = new WeakMap();
|
|
211243
|
+
_H = new WeakMap();
|
|
211244
|
+
_U = new WeakMap();
|
|
211245
|
+
$_fn = function() {
|
|
211246
|
+
const t3 = new c(__privateGet(this, _m));
|
|
211247
|
+
__privateSet(this, _k, 0), __privateSet(this, _R, t3), __privateSet(this, _J, (e3) => {
|
|
211248
|
+
__privateSet(this, _k, __privateGet(this, _k) - t3[e3]), t3[e3] = 0;
|
|
211249
|
+
}), __privateSet(this, _K, (t4, e3, s3, i3) => {
|
|
211250
|
+
if (__privateMethod(this, _d_instances, B_fn).call(this, e3)) return 0;
|
|
211251
|
+
if (!a(s3)) {
|
|
211252
|
+
if (!i3) throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
211253
|
+
if ("function" != typeof i3) throw new TypeError("sizeCalculation must be a function");
|
|
211254
|
+
if (s3 = i3(e3, t4), !a(s3)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
211255
|
+
}
|
|
211256
|
+
return s3;
|
|
211257
|
+
}), __privateSet(this, _Y, (e3, s3, i3) => {
|
|
211258
|
+
if (t3[e3] = s3, __privateGet(this, _y)) {
|
|
211259
|
+
const s4 = __privateGet(this, _y) - t3[e3];
|
|
211260
|
+
for (; __privateGet(this, _k) > s4; ) __privateMethod(this, _d_instances, X_fn).call(this, true);
|
|
211261
|
+
}
|
|
211262
|
+
__privateSet(this, _k, __privateGet(this, _k) + t3[e3]), i3 && (i3.entrySize = s3, i3.totalCalculatedSize = __privateGet(this, _k));
|
|
211263
|
+
});
|
|
211264
|
+
};
|
|
211265
|
+
_J = new WeakMap();
|
|
211266
|
+
_Y = new WeakMap();
|
|
211267
|
+
_K = new WeakMap();
|
|
211268
|
+
I_fn = function* ({ allowStale: t3 = this.allowStale } = {}) {
|
|
211269
|
+
if (__privateGet(this, _S)) for (let e3 = __privateGet(this, _A); __privateMethod(this, _d_instances, Q_fn).call(this, e3) && (!t3 && __privateGet(this, _U).call(this, e3) || (yield e3), e3 !== __privateGet(this, _M)); ) e3 = __privateGet(this, _C)[e3];
|
|
211270
|
+
};
|
|
211271
|
+
G_fn = function* ({ allowStale: t3 = this.allowStale } = {}) {
|
|
211272
|
+
if (__privateGet(this, _S)) for (let e3 = __privateGet(this, _M); __privateMethod(this, _d_instances, Q_fn).call(this, e3) && (!t3 && __privateGet(this, _U).call(this, e3) || (yield e3), e3 !== __privateGet(this, _A)); ) e3 = __privateGet(this, _T)[e3];
|
|
211273
|
+
};
|
|
211274
|
+
Q_fn = function(t3) {
|
|
211275
|
+
return void 0 !== t3 && __privateGet(this, _x).get(__privateGet(this, _E)[t3]) === t3;
|
|
211276
|
+
};
|
|
211277
|
+
X_fn = function(t3) {
|
|
211278
|
+
var _a2, _b3;
|
|
211279
|
+
const e3 = __privateGet(this, _M), s3 = __privateGet(this, _E)[e3], i3 = __privateGet(this, _L)[e3];
|
|
211280
|
+
return __privateGet(this, _D) && __privateMethod(this, _d_instances, B_fn).call(this, i3) ? i3.__abortController.abort(new Error("evicted")) : (__privateGet(this, _z) || __privateGet(this, _j)) && (__privateGet(this, _z) && ((_a2 = __privateGet(this, _w)) == null ? void 0 : _a2.call(this, i3, s3, "evict")), __privateGet(this, _j) && ((_b3 = __privateGet(this, _P)) == null ? void 0 : _b3.push([i3, s3, "evict"]))), __privateGet(this, _J).call(this, e3), t3 && (__privateGet(this, _E)[e3] = void 0, __privateGet(this, _L)[e3] = void 0, __privateGet(this, _O).push(e3)), 1 === __privateGet(this, _S) ? (__privateSet(this, _M, __privateSet(this, _A, 0)), __privateGet(this, _O).length = 0) : __privateSet(this, _M, __privateGet(this, _T)[e3]), __privateGet(this, _x).delete(s3), __privateWrapper(this, _S)._--, e3;
|
|
211281
|
+
};
|
|
211282
|
+
N_fn = function(t3, e3, s3, i3) {
|
|
211283
|
+
const r3 = void 0 === e3 ? void 0 : __privateGet(this, _L)[e3];
|
|
211284
|
+
if (__privateMethod(this, _d_instances, B_fn).call(this, r3)) return r3;
|
|
211285
|
+
const n4 = new o(), { signal: h2 } = s3;
|
|
211286
|
+
h2 == null ? void 0 : h2.addEventListener("abort", () => n4.abort(h2.reason), { signal: n4.signal });
|
|
211287
|
+
const a2 = { signal: n4.signal, options: s3, context: i3 }, l2 = (i4, r4 = false) => {
|
|
211288
|
+
const { aborted: o2 } = n4.signal, h3 = s3.ignoreFetchAbort && void 0 !== i4;
|
|
211289
|
+
if (s3.status && (o2 && !r4 ? (s3.status.fetchAborted = true, s3.status.fetchError = n4.signal.reason, h3 && (s3.status.fetchAbortIgnored = true)) : s3.status.fetchResolved = true), o2 && !h3 && !r4) return c2(n4.signal.reason);
|
|
211290
|
+
const l3 = p2;
|
|
211291
|
+
return __privateGet(this, _L)[e3] === p2 && (void 0 === i4 ? l3.__staleWhileFetching ? __privateGet(this, _L)[e3] = l3.__staleWhileFetching : this.delete(t3) : (s3.status && (s3.status.fetchUpdated = true), this.set(t3, i4, a2.options))), i4;
|
|
211292
|
+
}, c2 = (i4) => {
|
|
211293
|
+
const { aborted: r4 } = n4.signal, o2 = r4 && s3.allowStaleOnFetchAbort, h3 = o2 || s3.allowStaleOnFetchRejection, a3 = h3 || s3.noDeleteOnFetchRejection, l3 = p2;
|
|
211294
|
+
if (__privateGet(this, _L)[e3] === p2) {
|
|
211295
|
+
!a3 || void 0 === l3.__staleWhileFetching ? this.delete(t3) : o2 || (__privateGet(this, _L)[e3] = l3.__staleWhileFetching);
|
|
211296
|
+
}
|
|
211297
|
+
if (h3) return s3.status && void 0 !== l3.__staleWhileFetching && (s3.status.returnedStale = true), l3.__staleWhileFetching;
|
|
211298
|
+
if (l3.__returned === l3) throw i4;
|
|
211299
|
+
};
|
|
211300
|
+
s3.status && (s3.status.fetchDispatched = true);
|
|
211301
|
+
const p2 = new Promise((e4, i4) => {
|
|
211302
|
+
var _a2;
|
|
211303
|
+
const o2 = (_a2 = __privateGet(this, _v)) == null ? void 0 : _a2.call(this, t3, r3, a2);
|
|
211304
|
+
o2 && o2 instanceof Promise && o2.then((t4) => e4(void 0 === t4 ? void 0 : t4), i4), n4.signal.addEventListener("abort", () => {
|
|
211305
|
+
s3.ignoreFetchAbort && !s3.allowStaleOnFetchAbort || (e4(void 0), s3.allowStaleOnFetchAbort && (e4 = (t4) => l2(t4, true)));
|
|
211306
|
+
});
|
|
211307
|
+
}).then(l2, (t4) => (s3.status && (s3.status.fetchRejected = true, s3.status.fetchError = t4), c2(t4))), d2 = Object.assign(p2, { __abortController: n4, __staleWhileFetching: r3, __returned: void 0 });
|
|
211308
|
+
return void 0 === e3 ? (this.set(t3, d2, { ...a2.options, status: void 0 }), e3 = __privateGet(this, _x).get(t3)) : __privateGet(this, _L)[e3] = d2, d2;
|
|
211309
|
+
};
|
|
211310
|
+
B_fn = function(t3) {
|
|
211311
|
+
if (!__privateGet(this, _D)) return false;
|
|
211312
|
+
const e3 = t3;
|
|
211313
|
+
return !!e3 && e3 instanceof Promise && e3.hasOwnProperty("__staleWhileFetching") && e3.__abortController instanceof o;
|
|
211314
|
+
};
|
|
211315
|
+
tt_fn = function(t3, e3) {
|
|
211316
|
+
__privateGet(this, _C)[e3] = t3, __privateGet(this, _T)[t3] = e3;
|
|
211317
|
+
};
|
|
211318
|
+
W_fn = function(t3) {
|
|
211319
|
+
t3 !== __privateGet(this, _A) && (t3 === __privateGet(this, _M) ? __privateSet(this, _M, __privateGet(this, _T)[t3]) : __privateMethod(this, _d_instances, tt_fn).call(this, __privateGet(this, _C)[t3], __privateGet(this, _T)[t3]), __privateMethod(this, _d_instances, tt_fn).call(this, __privateGet(this, _A), t3), __privateSet(this, _A, t3));
|
|
211320
|
+
};
|
|
211321
|
+
let d = _d;
|
|
211322
|
+
e2.LRUCache = d;
|
|
211323
|
+
}, 274: (t2, e2) => {
|
|
211324
|
+
"use strict";
|
|
211325
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.assertValidPattern = void 0;
|
|
211326
|
+
e2.assertValidPattern = (t3) => {
|
|
211327
|
+
if ("string" != typeof t3) throw new TypeError("invalid pattern");
|
|
211328
|
+
if (t3.length > 65536) throw new TypeError("pattern is too long");
|
|
211329
|
+
};
|
|
211330
|
+
}, 674: (t2, e2, s2) => {
|
|
211331
|
+
"use strict";
|
|
211332
|
+
var _et, _st, _it, _rt, _nt, _ot, _ht, _at, _lt, _ct, _pt, _f_instances, dt_fn, _f_static, ut_fn, gt_fn, ft_fn;
|
|
211333
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.AST = void 0;
|
|
211334
|
+
const i2 = s2(843), r2 = s2(116), n3 = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), o = (t3) => n3.has(t3), h = "(?!\\.)", a = /* @__PURE__ */ new Set(["[", "."]), l = /* @__PURE__ */ new Set(["..", "."]), c = new Set("().*{}+?[]^$\\!"), p = "[^/]", d = p + "*?", u = p + "+?";
|
|
211335
|
+
const _f = class _f {
|
|
211336
|
+
constructor(t3, e3, s3 = {}) {
|
|
211337
|
+
__privateAdd(this, _f_instances);
|
|
211338
|
+
__publicField(this, "type");
|
|
211339
|
+
__privateAdd(this, _et);
|
|
211340
|
+
__privateAdd(this, _st);
|
|
211341
|
+
__privateAdd(this, _it, false);
|
|
211342
|
+
__privateAdd(this, _rt, []);
|
|
211343
|
+
__privateAdd(this, _nt);
|
|
211344
|
+
__privateAdd(this, _ot);
|
|
211345
|
+
__privateAdd(this, _ht);
|
|
211346
|
+
__privateAdd(this, _at, false);
|
|
211347
|
+
__privateAdd(this, _lt);
|
|
211348
|
+
__privateAdd(this, _ct);
|
|
211349
|
+
__privateAdd(this, _pt, false);
|
|
211350
|
+
this.type = t3, t3 && __privateSet(this, _st, true), __privateSet(this, _nt, e3), __privateSet(this, _et, __privateGet(this, _nt) ? __privateGet(__privateGet(this, _nt), _et) : this), __privateSet(this, _lt, __privateGet(this, _et) === this ? s3 : __privateGet(__privateGet(this, _et), _lt)), __privateSet(this, _ht, __privateGet(this, _et) === this ? [] : __privateGet(__privateGet(this, _et), _ht)), "!" !== t3 || __privateGet(__privateGet(this, _et), _at) || __privateGet(this, _ht).push(this), __privateSet(this, _ot, __privateGet(this, _nt) ? __privateGet(__privateGet(this, _nt), _rt).length : 0);
|
|
211351
|
+
}
|
|
211352
|
+
get hasMagic() {
|
|
211353
|
+
if (void 0 !== __privateGet(this, _st)) return __privateGet(this, _st);
|
|
211354
|
+
for (const t3 of __privateGet(this, _rt)) if ("string" != typeof t3 && (t3.type || t3.hasMagic)) return __privateSet(this, _st, true);
|
|
211355
|
+
return __privateGet(this, _st);
|
|
211356
|
+
}
|
|
211357
|
+
toString() {
|
|
211358
|
+
return void 0 !== __privateGet(this, _ct) ? __privateGet(this, _ct) : this.type ? __privateSet(this, _ct, this.type + "(" + __privateGet(this, _rt).map((t3) => String(t3)).join("|") + ")") : __privateSet(this, _ct, __privateGet(this, _rt).map((t3) => String(t3)).join(""));
|
|
211359
|
+
}
|
|
211360
|
+
push(...t3) {
|
|
211361
|
+
for (const e3 of t3) if ("" !== e3) {
|
|
211362
|
+
if ("string" != typeof e3 && !(e3 instanceof _f && __privateGet(e3, _nt) === this)) throw new Error("invalid part: " + e3);
|
|
211363
|
+
__privateGet(this, _rt).push(e3);
|
|
211364
|
+
}
|
|
211365
|
+
}
|
|
211366
|
+
toJSON() {
|
|
211367
|
+
var _a;
|
|
211368
|
+
const t3 = null === this.type ? __privateGet(this, _rt).slice().map((t4) => "string" == typeof t4 ? t4 : t4.toJSON()) : [this.type, ...__privateGet(this, _rt).map((t4) => t4.toJSON())];
|
|
211369
|
+
return this.isStart() && !this.type && t3.unshift([]), this.isEnd() && (this === __privateGet(this, _et) || __privateGet(__privateGet(this, _et), _at) && "!" === ((_a = __privateGet(this, _nt)) == null ? void 0 : _a.type)) && t3.push({}), t3;
|
|
211370
|
+
}
|
|
211371
|
+
isStart() {
|
|
211372
|
+
var _a;
|
|
211373
|
+
if (__privateGet(this, _et) === this) return true;
|
|
211374
|
+
if (!((_a = __privateGet(this, _nt)) == null ? void 0 : _a.isStart())) return false;
|
|
211375
|
+
if (0 === __privateGet(this, _ot)) return true;
|
|
211376
|
+
const t3 = __privateGet(this, _nt);
|
|
211377
|
+
for (let e3 = 0; e3 < __privateGet(this, _ot); e3++) {
|
|
211378
|
+
const s3 = __privateGet(t3, _rt)[e3];
|
|
211379
|
+
if (!(s3 instanceof _f && "!" === s3.type)) return false;
|
|
211380
|
+
}
|
|
211381
|
+
return true;
|
|
211382
|
+
}
|
|
211383
|
+
isEnd() {
|
|
211384
|
+
var _a, _b, _c;
|
|
211385
|
+
if (__privateGet(this, _et) === this) return true;
|
|
211386
|
+
if ("!" === ((_a = __privateGet(this, _nt)) == null ? void 0 : _a.type)) return true;
|
|
211387
|
+
if (!((_b = __privateGet(this, _nt)) == null ? void 0 : _b.isEnd())) return false;
|
|
211388
|
+
if (!this.type) return (_c = __privateGet(this, _nt)) == null ? void 0 : _c.isEnd();
|
|
211389
|
+
const t3 = __privateGet(this, _nt) ? __privateGet(__privateGet(this, _nt), _rt).length : 0;
|
|
211390
|
+
return __privateGet(this, _ot) === t3 - 1;
|
|
211391
|
+
}
|
|
211392
|
+
copyIn(t3) {
|
|
211393
|
+
"string" == typeof t3 ? this.push(t3) : this.push(t3.clone(this));
|
|
211394
|
+
}
|
|
211395
|
+
clone(t3) {
|
|
211396
|
+
const e3 = new _f(this.type, t3);
|
|
211397
|
+
for (const t4 of __privateGet(this, _rt)) e3.copyIn(t4);
|
|
211398
|
+
return e3;
|
|
211399
|
+
}
|
|
211400
|
+
static fromGlob(t3, e3 = {}) {
|
|
211401
|
+
var _a;
|
|
211402
|
+
const s3 = new _f(null, void 0, e3);
|
|
211403
|
+
return __privateMethod(_a = _f, _f_static, ut_fn).call(_a, t3, s3, 0, e3), s3;
|
|
211404
|
+
}
|
|
211405
|
+
toMMPattern() {
|
|
211406
|
+
if (this !== __privateGet(this, _et)) return __privateGet(this, _et).toMMPattern();
|
|
211407
|
+
const t3 = this.toString(), [e3, s3, i3, r3] = this.toRegExpSource();
|
|
211408
|
+
if (!(i3 || __privateGet(this, _st) || __privateGet(this, _lt).nocase && !__privateGet(this, _lt).nocaseMagicOnly && t3.toUpperCase() !== t3.toLowerCase())) return s3;
|
|
211409
|
+
const n4 = (__privateGet(this, _lt).nocase ? "i" : "") + (r3 ? "u" : "");
|
|
211410
|
+
return Object.assign(new RegExp(`^${e3}$`, n4), { _src: e3, _glob: t3 });
|
|
211411
|
+
}
|
|
211412
|
+
get options() {
|
|
211413
|
+
return __privateGet(this, _lt);
|
|
211414
|
+
}
|
|
211415
|
+
toRegExpSource(t3) {
|
|
211416
|
+
var _a;
|
|
211417
|
+
const e3 = t3 != null ? t3 : !!__privateGet(this, _lt).dot;
|
|
211418
|
+
if (__privateGet(this, _et) === this && __privateMethod(this, _f_instances, dt_fn).call(this), !this.type) {
|
|
211419
|
+
const s4 = this.isStart() && this.isEnd(), i4 = __privateGet(this, _rt).map((e4) => {
|
|
211420
|
+
var _a2;
|
|
211421
|
+
const [i5, r3, n6, o4] = "string" == typeof e4 ? __privateMethod(_a2 = _f, _f_static, ft_fn).call(_a2, e4, __privateGet(this, _st), s4) : e4.toRegExpSource(t3);
|
|
211422
|
+
return __privateSet(this, _st, __privateGet(this, _st) || n6), __privateSet(this, _it, __privateGet(this, _it) || o4), i5;
|
|
211423
|
+
}).join("");
|
|
211424
|
+
let n5 = "";
|
|
211425
|
+
if (this.isStart() && "string" == typeof __privateGet(this, _rt)[0]) {
|
|
211426
|
+
if (!(1 === __privateGet(this, _rt).length && l.has(__privateGet(this, _rt)[0]))) {
|
|
211427
|
+
const s5 = a, r3 = e3 && s5.has(i4.charAt(0)) || i4.startsWith("\\.") && s5.has(i4.charAt(2)) || i4.startsWith("\\.\\.") && s5.has(i4.charAt(4)), o4 = !e3 && !t3 && s5.has(i4.charAt(0));
|
|
211428
|
+
n5 = r3 ? "(?!(?:^|/)\\.\\.?(?:$|/))" : o4 ? h : "";
|
|
211429
|
+
}
|
|
211430
|
+
}
|
|
211431
|
+
let o3 = "";
|
|
211432
|
+
this.isEnd() && __privateGet(__privateGet(this, _et), _at) && "!" === ((_a = __privateGet(this, _nt)) == null ? void 0 : _a.type) && (o3 = "(?:$|\\/)");
|
|
211433
|
+
return [n5 + i4 + o3, (0, r2.unescape)(i4), __privateSet(this, _st, !!__privateGet(this, _st)), __privateGet(this, _it)];
|
|
211434
|
+
}
|
|
211435
|
+
const s3 = "*" === this.type || "+" === this.type, i3 = "!" === this.type ? "(?:(?!(?:" : "(?:";
|
|
211436
|
+
let n4 = __privateMethod(this, _f_instances, gt_fn).call(this, e3);
|
|
211437
|
+
if (this.isStart() && this.isEnd() && !n4 && "!" !== this.type) {
|
|
211438
|
+
const t4 = this.toString();
|
|
211439
|
+
return __privateSet(this, _rt, [t4]), this.type = null, __privateSet(this, _st, void 0), [t4, (0, r2.unescape)(this.toString()), false, false];
|
|
211440
|
+
}
|
|
211441
|
+
let o2 = !s3 || t3 || e3 ? "" : __privateMethod(this, _f_instances, gt_fn).call(this, true);
|
|
211442
|
+
o2 === n4 && (o2 = ""), o2 && (n4 = `(?:${n4})(?:${o2})*?`);
|
|
211443
|
+
let c2 = "";
|
|
211444
|
+
if ("!" === this.type && __privateGet(this, _pt)) c2 = (this.isStart() && !e3 ? h : "") + u;
|
|
211445
|
+
else {
|
|
211446
|
+
c2 = i3 + n4 + ("!" === this.type ? "))" + (!this.isStart() || e3 || t3 ? "" : h) + d + ")" : "@" === this.type ? ")" : "?" === this.type ? ")?" : "+" === this.type && o2 ? ")" : "*" === this.type && o2 ? ")?" : `)${this.type}`);
|
|
211447
|
+
}
|
|
211448
|
+
return [c2, (0, r2.unescape)(n4), __privateSet(this, _st, !!__privateGet(this, _st)), __privateGet(this, _it)];
|
|
211449
|
+
}
|
|
211450
|
+
};
|
|
211451
|
+
_et = new WeakMap();
|
|
211452
|
+
_st = new WeakMap();
|
|
211453
|
+
_it = new WeakMap();
|
|
211454
|
+
_rt = new WeakMap();
|
|
211455
|
+
_nt = new WeakMap();
|
|
211456
|
+
_ot = new WeakMap();
|
|
211457
|
+
_ht = new WeakMap();
|
|
211458
|
+
_at = new WeakMap();
|
|
211459
|
+
_lt = new WeakMap();
|
|
211460
|
+
_ct = new WeakMap();
|
|
211461
|
+
_pt = new WeakMap();
|
|
211462
|
+
_f_instances = new WeakSet();
|
|
211463
|
+
dt_fn = function() {
|
|
211464
|
+
if (this !== __privateGet(this, _et)) throw new Error("should only call on root");
|
|
211465
|
+
if (__privateGet(this, _at)) return this;
|
|
211466
|
+
let t3;
|
|
211467
|
+
for (this.toString(), __privateSet(this, _at, true); t3 = __privateGet(this, _ht).pop(); ) {
|
|
211468
|
+
if ("!" !== t3.type) continue;
|
|
211469
|
+
let e3 = t3, s3 = __privateGet(e3, _nt);
|
|
211470
|
+
for (; s3; ) {
|
|
211471
|
+
for (let i3 = __privateGet(e3, _ot) + 1; !s3.type && i3 < __privateGet(s3, _rt).length; i3++) for (const e4 of __privateGet(t3, _rt)) {
|
|
211472
|
+
if ("string" == typeof e4) throw new Error("string part in extglob AST??");
|
|
211473
|
+
e4.copyIn(__privateGet(s3, _rt)[i3]);
|
|
211474
|
+
}
|
|
211475
|
+
e3 = s3, s3 = __privateGet(e3, _nt);
|
|
211476
|
+
}
|
|
211477
|
+
}
|
|
211478
|
+
return this;
|
|
211479
|
+
};
|
|
211480
|
+
_f_static = new WeakSet();
|
|
211481
|
+
ut_fn = function(t3, e3, s3, i3) {
|
|
211482
|
+
var _a, _b;
|
|
211483
|
+
let r3 = false, n4 = false, h2 = -1, a2 = false;
|
|
211484
|
+
if (null === e3.type) {
|
|
211485
|
+
let l3 = s3, c3 = "";
|
|
211486
|
+
for (; l3 < t3.length; ) {
|
|
211487
|
+
const s4 = t3.charAt(l3++);
|
|
211488
|
+
if (r3 || "\\" === s4) r3 = !r3, c3 += s4;
|
|
211489
|
+
else if (n4) l3 === h2 + 1 ? "^" !== s4 && "!" !== s4 || (a2 = true) : "]" !== s4 || l3 === h2 + 2 && a2 || (n4 = false), c3 += s4;
|
|
211490
|
+
else if ("[" !== s4) if (i3.noext || !o(s4) || "(" !== t3.charAt(l3)) c3 += s4;
|
|
211491
|
+
else {
|
|
211492
|
+
e3.push(c3), c3 = "";
|
|
211493
|
+
const r4 = new _f(s4, e3);
|
|
211494
|
+
l3 = __privateMethod(_a = _f, _f_static, ut_fn).call(_a, t3, r4, l3, i3), e3.push(r4);
|
|
211495
|
+
}
|
|
211496
|
+
else n4 = true, h2 = l3, a2 = false, c3 += s4;
|
|
211497
|
+
}
|
|
211498
|
+
return e3.push(c3), l3;
|
|
211499
|
+
}
|
|
211500
|
+
let l2 = s3 + 1, c2 = new _f(null, e3);
|
|
211501
|
+
const p2 = [];
|
|
211502
|
+
let d2 = "";
|
|
211503
|
+
for (; l2 < t3.length; ) {
|
|
211504
|
+
const s4 = t3.charAt(l2++);
|
|
211505
|
+
if (r3 || "\\" === s4) r3 = !r3, d2 += s4;
|
|
211506
|
+
else if (n4) l2 === h2 + 1 ? "^" !== s4 && "!" !== s4 || (a2 = true) : "]" !== s4 || l2 === h2 + 2 && a2 || (n4 = false), d2 += s4;
|
|
211507
|
+
else if ("[" !== s4) if (o(s4) && "(" === t3.charAt(l2)) {
|
|
211508
|
+
c2.push(d2), d2 = "";
|
|
211509
|
+
const e4 = new _f(s4, c2);
|
|
211510
|
+
c2.push(e4), l2 = __privateMethod(_b = _f, _f_static, ut_fn).call(_b, t3, e4, l2, i3);
|
|
211511
|
+
} else if ("|" !== s4) {
|
|
211512
|
+
if (")" === s4) return "" === d2 && 0 === __privateGet(e3, _rt).length && __privateSet(e3, _pt, true), c2.push(d2), d2 = "", e3.push(...p2, c2), l2;
|
|
211513
|
+
d2 += s4;
|
|
211514
|
+
} else c2.push(d2), d2 = "", p2.push(c2), c2 = new _f(null, e3);
|
|
211515
|
+
else n4 = true, h2 = l2, a2 = false, d2 += s4;
|
|
211516
|
+
}
|
|
211517
|
+
return e3.type = null, __privateSet(e3, _st, void 0), __privateSet(e3, _rt, [t3.substring(s3 - 1)]), l2;
|
|
211518
|
+
};
|
|
211519
|
+
gt_fn = function(t3) {
|
|
211520
|
+
return __privateGet(this, _rt).map((e3) => {
|
|
211521
|
+
if ("string" == typeof e3) throw new Error("string type in extglob ast??");
|
|
211522
|
+
const [s3, i3, r3, n4] = e3.toRegExpSource(t3);
|
|
211523
|
+
return __privateSet(this, _it, __privateGet(this, _it) || n4), s3;
|
|
211524
|
+
}).filter((t4) => !(this.isStart() && this.isEnd() && !t4)).join("|");
|
|
211525
|
+
};
|
|
211526
|
+
ft_fn = function(t3, e3, s3 = false) {
|
|
211527
|
+
let n4 = false, o2 = "", h2 = false;
|
|
211528
|
+
for (let r3 = 0; r3 < t3.length; r3++) {
|
|
211529
|
+
const a2 = t3.charAt(r3);
|
|
211530
|
+
if (n4) n4 = false, o2 += (c.has(a2) ? "\\" : "") + a2;
|
|
211531
|
+
else if ("\\" !== a2) {
|
|
211532
|
+
if ("[" === a2) {
|
|
211533
|
+
const [s4, n5, a3, l2] = (0, i2.parseClass)(t3, r3);
|
|
211534
|
+
if (a3) {
|
|
211535
|
+
o2 += s4, h2 = h2 || n5, r3 += a3 - 1, e3 = e3 || l2;
|
|
211536
|
+
continue;
|
|
211537
|
+
}
|
|
211538
|
+
}
|
|
211539
|
+
"*" !== a2 ? "?" !== a2 ? o2 += a2.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : (o2 += p, e3 = true) : (o2 += s3 && "*" === t3 ? u : d, e3 = true);
|
|
211540
|
+
} else r3 === t3.length - 1 ? o2 += "\\\\" : n4 = true;
|
|
211541
|
+
}
|
|
211542
|
+
return [o2, (0, r2.unescape)(t3), !!e3, h2];
|
|
211543
|
+
};
|
|
211544
|
+
__privateAdd(_f, _f_static);
|
|
211545
|
+
let f = _f;
|
|
211546
|
+
e2.AST = f;
|
|
211547
|
+
}, 843: (t2, e2) => {
|
|
211548
|
+
"use strict";
|
|
211549
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.parseClass = void 0;
|
|
211550
|
+
const s2 = { "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true], "[:alpha:]": ["\\p{L}\\p{Nl}", true], "[:ascii:]": ["\\x00-\\x7f", false], "[:blank:]": ["\\p{Zs}\\t", true], "[:cntrl:]": ["\\p{Cc}", true], "[:digit:]": ["\\p{Nd}", true], "[:graph:]": ["\\p{Z}\\p{C}", true, true], "[:lower:]": ["\\p{Ll}", true], "[:print:]": ["\\p{C}", true], "[:punct:]": ["\\p{P}", true], "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true], "[:upper:]": ["\\p{Lu}", true], "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true], "[:xdigit:]": ["A-Fa-f0-9", false] }, i2 = (t3) => t3.replace(/[[\]\\-]/g, "\\$&"), r2 = (t3) => t3.join("");
|
|
211551
|
+
e2.parseClass = (t3, e3) => {
|
|
211552
|
+
const n3 = e3;
|
|
211553
|
+
if ("[" !== t3.charAt(n3)) throw new Error("not in a brace expression");
|
|
211554
|
+
const o = [], h = [];
|
|
211555
|
+
let a = n3 + 1, l = false, c = false, p = false, d = false, u = n3, f = "";
|
|
211556
|
+
t: for (; a < t3.length; ) {
|
|
211557
|
+
const e4 = t3.charAt(a);
|
|
211558
|
+
if ("!" !== e4 && "^" !== e4 || a !== n3 + 1) {
|
|
211559
|
+
if ("]" === e4 && l && !p) {
|
|
211560
|
+
u = a + 1;
|
|
211561
|
+
break;
|
|
211562
|
+
}
|
|
211563
|
+
if (l = true, "\\" !== e4 || p) {
|
|
211564
|
+
if ("[" === e4 && !p) {
|
|
211565
|
+
for (const [e5, [i3, r3, l2]] of Object.entries(s2)) if (t3.startsWith(e5, a)) {
|
|
211566
|
+
if (f) return ["$.", false, t3.length - n3, true];
|
|
211567
|
+
a += e5.length, l2 ? h.push(i3) : o.push(i3), c = c || r3;
|
|
211568
|
+
continue t;
|
|
211569
|
+
}
|
|
211570
|
+
}
|
|
211571
|
+
p = false, f ? (e4 > f ? o.push(i2(f) + "-" + i2(e4)) : e4 === f && o.push(i2(e4)), f = "", a++) : t3.startsWith("-]", a + 1) ? (o.push(i2(e4 + "-")), a += 2) : t3.startsWith("-", a + 1) ? (f = e4, a += 2) : (o.push(i2(e4)), a++);
|
|
211572
|
+
} else p = true, a++;
|
|
211573
|
+
} else d = true, a++;
|
|
211574
|
+
}
|
|
211575
|
+
if (u < a) return ["", false, 0, false];
|
|
211576
|
+
if (!o.length && !h.length) return ["$.", false, t3.length - n3, true];
|
|
211577
|
+
if (0 === h.length && 1 === o.length && /^\\?.$/.test(o[0]) && !d) {
|
|
211578
|
+
const t4 = 2 === o[0].length ? o[0].slice(-1) : o[0];
|
|
211579
|
+
return [(g = t4, g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")), false, u - n3, false];
|
|
211580
|
+
}
|
|
211581
|
+
var g;
|
|
211582
|
+
const m = "[" + (d ? "^" : "") + r2(o) + "]", y = "[" + (d ? "" : "^") + r2(h) + "]";
|
|
211583
|
+
return [o.length && h.length ? "(" + m + "|" + y + ")" : o.length ? m : y, c, u - n3, true];
|
|
211584
|
+
};
|
|
211585
|
+
}, 363: (t2, e2) => {
|
|
211586
|
+
"use strict";
|
|
211587
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.escape = void 0;
|
|
211588
|
+
e2.escape = (t3, { windowsPathsNoEscape: e3 = false } = {}) => e3 ? t3.replace(/[?*()[\]]/g, "[$&]") : t3.replace(/[?*()[\]\\]/g, "\\$&");
|
|
211589
|
+
}, 722: function(t2, e2, s2) {
|
|
211590
|
+
"use strict";
|
|
211591
|
+
var i2 = this && this.__importDefault || function(t3) {
|
|
211592
|
+
return t3 && t3.__esModule ? t3 : { default: t3 };
|
|
211593
|
+
};
|
|
211594
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.unescape = e2.escape = e2.AST = e2.Minimatch = e2.match = e2.makeRe = e2.braceExpand = e2.defaults = e2.filter = e2.GLOBSTAR = e2.sep = e2.minimatch = void 0;
|
|
211595
|
+
const r2 = i2(s2(928)), n3 = s2(274), o = s2(674), h = s2(363), a = s2(116);
|
|
211596
|
+
e2.minimatch = (t3, e3, s3 = {}) => ((0, n3.assertValidPattern)(e3), !(!s3.nocomment && "#" === e3.charAt(0)) && new _(e3, s3).match(t3));
|
|
211597
|
+
const l = /^\*+([^+@!?\*\[\(]*)$/, c = (t3) => (e3) => !e3.startsWith(".") && e3.endsWith(t3), p = (t3) => (e3) => e3.endsWith(t3), d = (t3) => (t3 = t3.toLowerCase(), (e3) => !e3.startsWith(".") && e3.toLowerCase().endsWith(t3)), u = (t3) => (t3 = t3.toLowerCase(), (e3) => e3.toLowerCase().endsWith(t3)), f = /^\*+\.\*+$/, g = (t3) => !t3.startsWith(".") && t3.includes("."), m = (t3) => "." !== t3 && ".." !== t3 && t3.includes("."), y = /^\.\*+$/, w = (t3) => "." !== t3 && ".." !== t3 && t3.startsWith("."), b = /^\*+$/, v = (t3) => 0 !== t3.length && !t3.startsWith("."), S = (t3) => 0 !== t3.length && "." !== t3 && ".." !== t3, k = /^\?+([^+@!?\*\[\(]*)?$/, x = ([t3, e3 = ""]) => {
|
|
211598
|
+
const s3 = C2([t3]);
|
|
211599
|
+
return e3 ? (e3 = e3.toLowerCase(), (t4) => s3(t4) && t4.toLowerCase().endsWith(e3)) : s3;
|
|
211600
|
+
}, E = ([t3, e3 = ""]) => {
|
|
211601
|
+
const s3 = M([t3]);
|
|
211602
|
+
return e3 ? (e3 = e3.toLowerCase(), (t4) => s3(t4) && t4.toLowerCase().endsWith(e3)) : s3;
|
|
211603
|
+
}, L = ([t3, e3 = ""]) => {
|
|
211604
|
+
const s3 = M([t3]);
|
|
211605
|
+
return e3 ? (t4) => s3(t4) && t4.endsWith(e3) : s3;
|
|
211606
|
+
}, T = ([t3, e3 = ""]) => {
|
|
211607
|
+
const s3 = C2([t3]);
|
|
211608
|
+
return e3 ? (t4) => s3(t4) && t4.endsWith(e3) : s3;
|
|
211609
|
+
}, C2 = ([t3]) => {
|
|
211610
|
+
const e3 = t3.length;
|
|
211611
|
+
return (t4) => t4.length === e3 && !t4.startsWith(".");
|
|
211612
|
+
}, M = ([t3]) => {
|
|
211613
|
+
const e3 = t3.length;
|
|
211614
|
+
return (t4) => t4.length === e3 && "." !== t4 && ".." !== t4;
|
|
211615
|
+
}, A = "object" == typeof process && process ? "object" == typeof process.env && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix", O2 = { sep: "\\" }, P = { sep: "/" };
|
|
211616
|
+
e2.sep = "win32" === A ? O2.sep : P.sep, e2.minimatch.sep = e2.sep, e2.GLOBSTAR = Symbol("globstar **"), e2.minimatch.GLOBSTAR = e2.GLOBSTAR;
|
|
211617
|
+
e2.filter = (t3, s3 = {}) => (i3) => (0, e2.minimatch)(i3, t3, s3), e2.minimatch.filter = e2.filter;
|
|
211618
|
+
const R = (t3, e3 = {}) => Object.assign({}, t3, e3);
|
|
211619
|
+
e2.defaults = (t3) => {
|
|
211620
|
+
if (!t3 || "object" != typeof t3 || !Object.keys(t3).length) return e2.minimatch;
|
|
211621
|
+
const s3 = e2.minimatch;
|
|
211622
|
+
return Object.assign((e3, i3, r3 = {}) => s3(e3, i3, R(t3, r3)), { Minimatch: class extends s3.Minimatch {
|
|
211623
|
+
constructor(e3, s4 = {}) {
|
|
211624
|
+
super(e3, R(t3, s4));
|
|
211625
|
+
}
|
|
211626
|
+
static defaults(e3) {
|
|
211627
|
+
return s3.defaults(R(t3, e3)).Minimatch;
|
|
211628
|
+
}
|
|
211629
|
+
}, AST: class extends s3.AST {
|
|
211630
|
+
constructor(e3, s4, i3 = {}) {
|
|
211631
|
+
super(e3, s4, R(t3, i3));
|
|
211632
|
+
}
|
|
211633
|
+
static fromGlob(e3, i3 = {}) {
|
|
211634
|
+
return s3.AST.fromGlob(e3, R(t3, i3));
|
|
211635
|
+
}
|
|
211636
|
+
}, unescape: (e3, i3 = {}) => s3.unescape(e3, R(t3, i3)), escape: (e3, i3 = {}) => s3.escape(e3, R(t3, i3)), filter: (e3, i3 = {}) => s3.filter(e3, R(t3, i3)), defaults: (e3) => s3.defaults(R(t3, e3)), makeRe: (e3, i3 = {}) => s3.makeRe(e3, R(t3, i3)), braceExpand: (e3, i3 = {}) => s3.braceExpand(e3, R(t3, i3)), match: (e3, i3, r3 = {}) => s3.match(e3, i3, R(t3, r3)), sep: s3.sep, GLOBSTAR: e2.GLOBSTAR });
|
|
211637
|
+
}, e2.minimatch.defaults = e2.defaults;
|
|
211638
|
+
e2.braceExpand = (t3, e3 = {}) => ((0, n3.assertValidPattern)(t3), e3.nobrace || !/\{(?:(?!\{).)*\}/.test(t3) ? [t3] : (0, r2.default)(t3)), e2.minimatch.braceExpand = e2.braceExpand;
|
|
211639
|
+
e2.makeRe = (t3, e3 = {}) => new _(t3, e3).makeRe(), e2.minimatch.makeRe = e2.makeRe;
|
|
211640
|
+
e2.match = (t3, e3, s3 = {}) => {
|
|
211641
|
+
const i3 = new _(e3, s3);
|
|
211642
|
+
return t3 = t3.filter((t4) => i3.match(t4)), i3.options.nonull && !t3.length && t3.push(e3), t3;
|
|
211643
|
+
}, e2.minimatch.match = e2.match;
|
|
211644
|
+
const F = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
211645
|
+
class _ {
|
|
211646
|
+
options;
|
|
211647
|
+
set;
|
|
211648
|
+
pattern;
|
|
211649
|
+
windowsPathsNoEscape;
|
|
211650
|
+
nonegate;
|
|
211651
|
+
negate;
|
|
211652
|
+
comment;
|
|
211653
|
+
empty;
|
|
211654
|
+
preserveMultipleSlashes;
|
|
211655
|
+
partial;
|
|
211656
|
+
globSet;
|
|
211657
|
+
globParts;
|
|
211658
|
+
nocase;
|
|
211659
|
+
isWindows;
|
|
211660
|
+
platform;
|
|
211661
|
+
windowsNoMagicRoot;
|
|
211662
|
+
regexp;
|
|
211663
|
+
constructor(t3, e3 = {}) {
|
|
211664
|
+
(0, n3.assertValidPattern)(t3), e3 = e3 || {}, this.options = e3, this.pattern = t3, this.platform = e3.platform || A, this.isWindows = "win32" === this.platform, this.windowsPathsNoEscape = !!e3.windowsPathsNoEscape || false === e3.allowWindowsEscape, this.windowsPathsNoEscape && (this.pattern = this.pattern.replace(/\\/g, "/")), this.preserveMultipleSlashes = !!e3.preserveMultipleSlashes, this.regexp = null, this.negate = false, this.nonegate = !!e3.nonegate, this.comment = false, this.empty = false, this.partial = !!e3.partial, this.nocase = !!this.options.nocase, this.windowsNoMagicRoot = void 0 !== e3.windowsNoMagicRoot ? e3.windowsNoMagicRoot : !(!this.isWindows || !this.nocase), this.globSet = [], this.globParts = [], this.set = [], this.make();
|
|
211665
|
+
}
|
|
211666
|
+
hasMagic() {
|
|
211667
|
+
if (this.options.magicalBraces && this.set.length > 1) return true;
|
|
211668
|
+
for (const t3 of this.set) for (const e3 of t3) if ("string" != typeof e3) return true;
|
|
211669
|
+
return false;
|
|
211670
|
+
}
|
|
211671
|
+
debug(...t3) {
|
|
211672
|
+
}
|
|
211673
|
+
make() {
|
|
211674
|
+
const t3 = this.pattern, e3 = this.options;
|
|
211675
|
+
if (!e3.nocomment && "#" === t3.charAt(0)) return void (this.comment = true);
|
|
211676
|
+
if (!t3) return void (this.empty = true);
|
|
211677
|
+
this.parseNegate(), this.globSet = [...new Set(this.braceExpand())], e3.debug && (this.debug = (...t4) => console.error(...t4)), this.debug(this.pattern, this.globSet);
|
|
211678
|
+
const s3 = this.globSet.map((t4) => this.slashSplit(t4));
|
|
211679
|
+
this.globParts = this.preprocess(s3), this.debug(this.pattern, this.globParts);
|
|
211680
|
+
let i3 = this.globParts.map((t4, e4, s4) => {
|
|
211681
|
+
if (this.isWindows && this.windowsNoMagicRoot) {
|
|
211682
|
+
const e5 = !("" !== t4[0] || "" !== t4[1] || "?" !== t4[2] && F.test(t4[2]) || F.test(t4[3])), s5 = /^[a-z]:/i.test(t4[0]);
|
|
211683
|
+
if (e5) return [...t4.slice(0, 4), ...t4.slice(4).map((t5) => this.parse(t5))];
|
|
211684
|
+
if (s5) return [t4[0], ...t4.slice(1).map((t5) => this.parse(t5))];
|
|
211685
|
+
}
|
|
211686
|
+
return t4.map((t5) => this.parse(t5));
|
|
211687
|
+
});
|
|
211688
|
+
if (this.debug(this.pattern, i3), this.set = i3.filter((t4) => -1 === t4.indexOf(false)), this.isWindows) for (let t4 = 0; t4 < this.set.length; t4++) {
|
|
211689
|
+
const e4 = this.set[t4];
|
|
211690
|
+
"" === e4[0] && "" === e4[1] && "?" === this.globParts[t4][2] && "string" == typeof e4[3] && /^[a-z]:$/i.test(e4[3]) && (e4[2] = "?");
|
|
211691
|
+
}
|
|
211692
|
+
this.debug(this.pattern, this.set);
|
|
211693
|
+
}
|
|
211694
|
+
preprocess(t3) {
|
|
211695
|
+
if (this.options.noglobstar) for (let e4 = 0; e4 < t3.length; e4++) for (let s3 = 0; s3 < t3[e4].length; s3++) "**" === t3[e4][s3] && (t3[e4][s3] = "*");
|
|
211696
|
+
const { optimizationLevel: e3 = 1 } = this.options;
|
|
211697
|
+
return e3 >= 2 ? (t3 = this.firstPhasePreProcess(t3), t3 = this.secondPhasePreProcess(t3)) : t3 = e3 >= 1 ? this.levelOneOptimize(t3) : this.adjascentGlobstarOptimize(t3), t3;
|
|
211698
|
+
}
|
|
211699
|
+
adjascentGlobstarOptimize(t3) {
|
|
211700
|
+
return t3.map((t4) => {
|
|
211701
|
+
let e3 = -1;
|
|
211702
|
+
for (; -1 !== (e3 = t4.indexOf("**", e3 + 1)); ) {
|
|
211703
|
+
let s3 = e3;
|
|
211704
|
+
for (; "**" === t4[s3 + 1]; ) s3++;
|
|
211705
|
+
s3 !== e3 && t4.splice(e3, s3 - e3);
|
|
211706
|
+
}
|
|
211707
|
+
return t4;
|
|
211708
|
+
});
|
|
211709
|
+
}
|
|
211710
|
+
levelOneOptimize(t3) {
|
|
211711
|
+
return t3.map((t4) => 0 === (t4 = t4.reduce((t5, e3) => {
|
|
211712
|
+
const s3 = t5[t5.length - 1];
|
|
211713
|
+
return "**" === e3 && "**" === s3 ? t5 : ".." === e3 && s3 && ".." !== s3 && "." !== s3 && "**" !== s3 ? (t5.pop(), t5) : (t5.push(e3), t5);
|
|
211714
|
+
}, [])).length ? [""] : t4);
|
|
211715
|
+
}
|
|
211716
|
+
levelTwoFileOptimize(t3) {
|
|
211717
|
+
Array.isArray(t3) || (t3 = this.slashSplit(t3));
|
|
211718
|
+
let e3 = false;
|
|
211719
|
+
do {
|
|
211720
|
+
if (e3 = false, !this.preserveMultipleSlashes) {
|
|
211721
|
+
for (let s4 = 1; s4 < t3.length - 1; s4++) {
|
|
211722
|
+
const i3 = t3[s4];
|
|
211723
|
+
1 === s4 && "" === i3 && "" === t3[0] || ("." !== i3 && "" !== i3 || (e3 = true, t3.splice(s4, 1), s4--));
|
|
211724
|
+
}
|
|
211725
|
+
"." !== t3[0] || 2 !== t3.length || "." !== t3[1] && "" !== t3[1] || (e3 = true, t3.pop());
|
|
211726
|
+
}
|
|
211727
|
+
let s3 = 0;
|
|
211728
|
+
for (; -1 !== (s3 = t3.indexOf("..", s3 + 1)); ) {
|
|
211729
|
+
const i3 = t3[s3 - 1];
|
|
211730
|
+
i3 && "." !== i3 && ".." !== i3 && "**" !== i3 && (e3 = true, t3.splice(s3 - 1, 2), s3 -= 2);
|
|
211731
|
+
}
|
|
211732
|
+
} while (e3);
|
|
211733
|
+
return 0 === t3.length ? [""] : t3;
|
|
211734
|
+
}
|
|
211735
|
+
firstPhasePreProcess(t3) {
|
|
211736
|
+
let e3 = false;
|
|
211737
|
+
do {
|
|
211738
|
+
e3 = false;
|
|
211739
|
+
for (let s3 of t3) {
|
|
211740
|
+
let i3 = -1;
|
|
211741
|
+
for (; -1 !== (i3 = s3.indexOf("**", i3 + 1)); ) {
|
|
211742
|
+
let r4 = i3;
|
|
211743
|
+
for (; "**" === s3[r4 + 1]; ) r4++;
|
|
211744
|
+
r4 > i3 && s3.splice(i3 + 1, r4 - i3);
|
|
211745
|
+
let n4 = s3[i3 + 1];
|
|
211746
|
+
const o2 = s3[i3 + 2], h2 = s3[i3 + 3];
|
|
211747
|
+
if (".." !== n4) continue;
|
|
211748
|
+
if (!o2 || "." === o2 || ".." === o2 || !h2 || "." === h2 || ".." === h2) continue;
|
|
211749
|
+
e3 = true, s3.splice(i3, 1);
|
|
211750
|
+
const a2 = s3.slice(0);
|
|
211751
|
+
a2[i3] = "**", t3.push(a2), i3--;
|
|
211752
|
+
}
|
|
211753
|
+
if (!this.preserveMultipleSlashes) {
|
|
211754
|
+
for (let t4 = 1; t4 < s3.length - 1; t4++) {
|
|
211755
|
+
const i4 = s3[t4];
|
|
211756
|
+
1 === t4 && "" === i4 && "" === s3[0] || ("." !== i4 && "" !== i4 || (e3 = true, s3.splice(t4, 1), t4--));
|
|
211757
|
+
}
|
|
211758
|
+
"." !== s3[0] || 2 !== s3.length || "." !== s3[1] && "" !== s3[1] || (e3 = true, s3.pop());
|
|
211759
|
+
}
|
|
211760
|
+
let r3 = 0;
|
|
211761
|
+
for (; -1 !== (r3 = s3.indexOf("..", r3 + 1)); ) {
|
|
211762
|
+
const t4 = s3[r3 - 1];
|
|
211763
|
+
if (t4 && "." !== t4 && ".." !== t4 && "**" !== t4) {
|
|
211764
|
+
e3 = true;
|
|
211765
|
+
const t5 = 1 === r3 && "**" === s3[r3 + 1] ? ["."] : [];
|
|
211766
|
+
s3.splice(r3 - 1, 2, ...t5), 0 === s3.length && s3.push(""), r3 -= 2;
|
|
211767
|
+
}
|
|
211768
|
+
}
|
|
211769
|
+
}
|
|
211770
|
+
} while (e3);
|
|
211771
|
+
return t3;
|
|
211772
|
+
}
|
|
211773
|
+
secondPhasePreProcess(t3) {
|
|
211774
|
+
for (let e3 = 0; e3 < t3.length - 1; e3++) for (let s3 = e3 + 1; s3 < t3.length; s3++) {
|
|
211775
|
+
const i3 = this.partsMatch(t3[e3], t3[s3], !this.preserveMultipleSlashes);
|
|
211776
|
+
i3 && (t3[e3] = i3, t3[s3] = []);
|
|
211777
|
+
}
|
|
211778
|
+
return t3.filter((t4) => t4.length);
|
|
211779
|
+
}
|
|
211780
|
+
partsMatch(t3, e3, s3 = false) {
|
|
211781
|
+
let i3 = 0, r3 = 0, n4 = [], o2 = "";
|
|
211782
|
+
for (; i3 < t3.length && r3 < e3.length; ) if (t3[i3] === e3[r3]) n4.push("b" === o2 ? e3[r3] : t3[i3]), i3++, r3++;
|
|
211783
|
+
else if (s3 && "**" === t3[i3] && e3[r3] === t3[i3 + 1]) n4.push(t3[i3]), i3++;
|
|
211784
|
+
else if (s3 && "**" === e3[r3] && t3[i3] === e3[r3 + 1]) n4.push(e3[r3]), r3++;
|
|
211785
|
+
else if ("*" !== t3[i3] || !e3[r3] || !this.options.dot && e3[r3].startsWith(".") || "**" === e3[r3]) {
|
|
211786
|
+
if ("*" !== e3[r3] || !t3[i3] || !this.options.dot && t3[i3].startsWith(".") || "**" === t3[i3]) return false;
|
|
211787
|
+
if ("a" === o2) return false;
|
|
211788
|
+
o2 = "b", n4.push(e3[r3]), i3++, r3++;
|
|
211789
|
+
} else {
|
|
211790
|
+
if ("b" === o2) return false;
|
|
211791
|
+
o2 = "a", n4.push(t3[i3]), i3++, r3++;
|
|
211792
|
+
}
|
|
211793
|
+
return t3.length === e3.length && n4;
|
|
211794
|
+
}
|
|
211795
|
+
parseNegate() {
|
|
211796
|
+
if (this.nonegate) return;
|
|
211797
|
+
const t3 = this.pattern;
|
|
211798
|
+
let e3 = false, s3 = 0;
|
|
211799
|
+
for (let i3 = 0; i3 < t3.length && "!" === t3.charAt(i3); i3++) e3 = !e3, s3++;
|
|
211800
|
+
s3 && (this.pattern = t3.slice(s3)), this.negate = e3;
|
|
211801
|
+
}
|
|
211802
|
+
matchOne(t3, s3, i3 = false) {
|
|
211803
|
+
const r3 = this.options;
|
|
211804
|
+
if (this.isWindows) {
|
|
211805
|
+
const e3 = "string" == typeof t3[0] && /^[a-z]:$/i.test(t3[0]), i4 = !e3 && "" === t3[0] && "" === t3[1] && "?" === t3[2] && /^[a-z]:$/i.test(t3[3]), r4 = "string" == typeof s3[0] && /^[a-z]:$/i.test(s3[0]), n5 = i4 ? 3 : e3 ? 0 : void 0, o3 = !r4 && "" === s3[0] && "" === s3[1] && "?" === s3[2] && "string" == typeof s3[3] && /^[a-z]:$/i.test(s3[3]) ? 3 : r4 ? 0 : void 0;
|
|
211806
|
+
if ("number" == typeof n5 && "number" == typeof o3) {
|
|
211807
|
+
const [e4, i5] = [t3[n5], s3[o3]];
|
|
211808
|
+
e4.toLowerCase() === i5.toLowerCase() && (s3[o3] = e4, o3 > n5 ? s3 = s3.slice(o3) : n5 > o3 && (t3 = t3.slice(n5)));
|
|
211809
|
+
}
|
|
211810
|
+
}
|
|
211811
|
+
const { optimizationLevel: n4 = 1 } = this.options;
|
|
211812
|
+
n4 >= 2 && (t3 = this.levelTwoFileOptimize(t3)), this.debug("matchOne", this, { file: t3, pattern: s3 }), this.debug("matchOne", t3.length, s3.length);
|
|
211813
|
+
for (var o2 = 0, h2 = 0, a2 = t3.length, l2 = s3.length; o2 < a2 && h2 < l2; o2++, h2++) {
|
|
211814
|
+
this.debug("matchOne loop");
|
|
211815
|
+
var c2 = s3[h2], p2 = t3[o2];
|
|
211816
|
+
if (this.debug(s3, c2, p2), false === c2) return false;
|
|
211817
|
+
if (c2 === e2.GLOBSTAR) {
|
|
211818
|
+
this.debug("GLOBSTAR", [s3, c2, p2]);
|
|
211819
|
+
var d2 = o2, u2 = h2 + 1;
|
|
211820
|
+
if (u2 === l2) {
|
|
211821
|
+
for (this.debug("** at the end"); o2 < a2; o2++) if ("." === t3[o2] || ".." === t3[o2] || !r3.dot && "." === t3[o2].charAt(0)) return false;
|
|
211822
|
+
return true;
|
|
211823
|
+
}
|
|
211824
|
+
for (; d2 < a2; ) {
|
|
211825
|
+
var f2 = t3[d2];
|
|
211826
|
+
if (this.debug("\nglobstar while", t3, d2, s3, u2, f2), this.matchOne(t3.slice(d2), s3.slice(u2), i3)) return this.debug("globstar found match!", d2, a2, f2), true;
|
|
211827
|
+
if ("." === f2 || ".." === f2 || !r3.dot && "." === f2.charAt(0)) {
|
|
211828
|
+
this.debug("dot detected!", t3, d2, s3, u2);
|
|
211829
|
+
break;
|
|
211830
|
+
}
|
|
211831
|
+
this.debug("globstar swallow a segment, and continue"), d2++;
|
|
211832
|
+
}
|
|
211833
|
+
return !(!i3 || (this.debug("\n>>> no match, partial?", t3, d2, s3, u2), d2 !== a2));
|
|
211834
|
+
}
|
|
211835
|
+
let n5;
|
|
211836
|
+
if ("string" == typeof c2 ? (n5 = p2 === c2, this.debug("string match", c2, p2, n5)) : (n5 = c2.test(p2), this.debug("pattern match", c2, p2, n5)), !n5) return false;
|
|
211837
|
+
}
|
|
211838
|
+
if (o2 === a2 && h2 === l2) return true;
|
|
211839
|
+
if (o2 === a2) return i3;
|
|
211840
|
+
if (h2 === l2) return o2 === a2 - 1 && "" === t3[o2];
|
|
211841
|
+
throw new Error("wtf?");
|
|
211842
|
+
}
|
|
211843
|
+
braceExpand() {
|
|
211844
|
+
return (0, e2.braceExpand)(this.pattern, this.options);
|
|
211845
|
+
}
|
|
211846
|
+
parse(t3) {
|
|
211847
|
+
(0, n3.assertValidPattern)(t3);
|
|
211848
|
+
const s3 = this.options;
|
|
211849
|
+
if ("**" === t3) return e2.GLOBSTAR;
|
|
211850
|
+
if ("" === t3) return "";
|
|
211851
|
+
let i3, r3 = null;
|
|
211852
|
+
(i3 = t3.match(b)) ? r3 = s3.dot ? S : v : (i3 = t3.match(l)) ? r3 = (s3.nocase ? s3.dot ? u : d : s3.dot ? p : c)(i3[1]) : (i3 = t3.match(k)) ? r3 = (s3.nocase ? s3.dot ? E : x : s3.dot ? L : T)(i3) : (i3 = t3.match(f)) ? r3 = s3.dot ? m : g : (i3 = t3.match(y)) && (r3 = w);
|
|
211853
|
+
const h2 = o.AST.fromGlob(t3, this.options).toMMPattern();
|
|
211854
|
+
return r3 && "object" == typeof h2 && Reflect.defineProperty(h2, "test", { value: r3 }), h2;
|
|
211855
|
+
}
|
|
211856
|
+
makeRe() {
|
|
211857
|
+
if (this.regexp || false === this.regexp) return this.regexp;
|
|
211858
|
+
const t3 = this.set;
|
|
211859
|
+
if (!t3.length) return this.regexp = false, this.regexp;
|
|
211860
|
+
const s3 = this.options, i3 = s3.noglobstar ? "[^/]*?" : s3.dot ? "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?" : "(?:(?!(?:\\/|^)\\.).)*?", r3 = new Set(s3.nocase ? ["i"] : []);
|
|
211861
|
+
let n4 = t3.map((t4) => {
|
|
211862
|
+
const s4 = t4.map((t5) => {
|
|
211863
|
+
if (t5 instanceof RegExp) for (const e3 of t5.flags.split("")) r3.add(e3);
|
|
211864
|
+
return "string" == typeof t5 ? t5.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : t5 === e2.GLOBSTAR ? e2.GLOBSTAR : t5._src;
|
|
211865
|
+
});
|
|
211866
|
+
return s4.forEach((t5, r4) => {
|
|
211867
|
+
const n5 = s4[r4 + 1], o3 = s4[r4 - 1];
|
|
211868
|
+
t5 === e2.GLOBSTAR && o3 !== e2.GLOBSTAR && (void 0 === o3 ? void 0 !== n5 && n5 !== e2.GLOBSTAR ? s4[r4 + 1] = "(?:\\/|" + i3 + "\\/)?" + n5 : s4[r4] = i3 : void 0 === n5 ? s4[r4 - 1] = o3 + "(?:\\/|" + i3 + ")?" : n5 !== e2.GLOBSTAR && (s4[r4 - 1] = o3 + "(?:\\/|\\/" + i3 + "\\/)" + n5, s4[r4 + 1] = e2.GLOBSTAR));
|
|
211869
|
+
}), s4.filter((t5) => t5 !== e2.GLOBSTAR).join("/");
|
|
211870
|
+
}).join("|");
|
|
211871
|
+
const [o2, h2] = t3.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
211872
|
+
n4 = "^" + o2 + n4 + h2 + "$", this.negate && (n4 = "^(?!" + n4 + ").+$");
|
|
211873
|
+
try {
|
|
211874
|
+
this.regexp = new RegExp(n4, [...r3].join(""));
|
|
211875
|
+
} catch (t4) {
|
|
211876
|
+
this.regexp = false;
|
|
211877
|
+
}
|
|
211878
|
+
return this.regexp;
|
|
211879
|
+
}
|
|
211880
|
+
slashSplit(t3) {
|
|
211881
|
+
return this.preserveMultipleSlashes ? t3.split("/") : this.isWindows && /^\/\/[^\/]+/.test(t3) ? ["", ...t3.split(/\/+/)] : t3.split(/\/+/);
|
|
211882
|
+
}
|
|
211883
|
+
match(t3, e3 = this.partial) {
|
|
211884
|
+
if (this.debug("match", t3, this.pattern), this.comment) return false;
|
|
211885
|
+
if (this.empty) return "" === t3;
|
|
211886
|
+
if ("/" === t3 && e3) return true;
|
|
211887
|
+
const s3 = this.options;
|
|
211888
|
+
this.isWindows && (t3 = t3.split("\\").join("/"));
|
|
211889
|
+
const i3 = this.slashSplit(t3);
|
|
211890
|
+
this.debug(this.pattern, "split", i3);
|
|
211891
|
+
const r3 = this.set;
|
|
211892
|
+
this.debug(this.pattern, "set", r3);
|
|
211893
|
+
let n4 = i3[i3.length - 1];
|
|
211894
|
+
if (!n4) for (let t4 = i3.length - 2; !n4 && t4 >= 0; t4--) n4 = i3[t4];
|
|
211895
|
+
for (let t4 = 0; t4 < r3.length; t4++) {
|
|
211896
|
+
const o2 = r3[t4];
|
|
211897
|
+
let h2 = i3;
|
|
211898
|
+
s3.matchBase && 1 === o2.length && (h2 = [n4]);
|
|
211899
|
+
if (this.matchOne(h2, o2, e3)) return !!s3.flipNegate || !this.negate;
|
|
211900
|
+
}
|
|
211901
|
+
return !s3.flipNegate && this.negate;
|
|
211902
|
+
}
|
|
211903
|
+
static defaults(t3) {
|
|
211904
|
+
return e2.minimatch.defaults(t3).Minimatch;
|
|
211905
|
+
}
|
|
211906
|
+
}
|
|
211907
|
+
e2.Minimatch = _;
|
|
211908
|
+
var z = s2(674);
|
|
211909
|
+
Object.defineProperty(e2, "AST", { enumerable: true, get: function() {
|
|
211910
|
+
return z.AST;
|
|
211911
|
+
} });
|
|
211912
|
+
var D = s2(363);
|
|
211913
|
+
Object.defineProperty(e2, "escape", { enumerable: true, get: function() {
|
|
211914
|
+
return D.escape;
|
|
211915
|
+
} });
|
|
211916
|
+
var j = s2(116);
|
|
211917
|
+
Object.defineProperty(e2, "unescape", { enumerable: true, get: function() {
|
|
211918
|
+
return j.unescape;
|
|
211919
|
+
} }), e2.minimatch.AST = o.AST, e2.minimatch.Minimatch = _, e2.minimatch.escape = h.escape, e2.minimatch.unescape = a.unescape;
|
|
211920
|
+
}, 116: (t2, e2) => {
|
|
211921
|
+
"use strict";
|
|
211922
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.unescape = void 0;
|
|
211923
|
+
e2.unescape = (t3, { windowsPathsNoEscape: e3 = false } = {}) => e3 ? t3.replace(/\[([^\/\\])\]/g, "$1") : t3.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
211924
|
+
}, 420: function(t2, e2, s2) {
|
|
211925
|
+
"use strict";
|
|
211926
|
+
var i2 = this && this.__importDefault || function(t3) {
|
|
211927
|
+
return t3 && t3.__esModule ? t3 : { default: t3 };
|
|
211928
|
+
};
|
|
211929
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.Minipass = e2.isWritable = e2.isReadable = e2.isStream = void 0;
|
|
211930
|
+
const r2 = "object" == typeof process && process ? process : { stdout: null, stderr: null }, n3 = s2(474), o = i2(s2(75)), h = s2(193);
|
|
211931
|
+
e2.isStream = (t3) => !!t3 && "object" == typeof t3 && (t3 instanceof U || t3 instanceof o.default || (0, e2.isReadable)(t3) || (0, e2.isWritable)(t3));
|
|
211932
|
+
e2.isReadable = (t3) => !!t3 && "object" == typeof t3 && t3 instanceof n3.EventEmitter && "function" == typeof t3.pipe && t3.pipe !== o.default.Writable.prototype.pipe;
|
|
211933
|
+
e2.isWritable = (t3) => !!t3 && "object" == typeof t3 && t3 instanceof n3.EventEmitter && "function" == typeof t3.write && "function" == typeof t3.end;
|
|
211934
|
+
const a = Symbol("EOF"), l = Symbol("maybeEmitEnd"), c = Symbol("emittedEnd"), p = Symbol("emittingEnd"), d = Symbol("emittedError"), u = Symbol("closed"), f = Symbol("read"), g = Symbol("flush"), m = Symbol("flushChunk"), y = Symbol("encoding"), w = Symbol("decoder"), b = Symbol("flowing"), v = Symbol("paused"), S = Symbol("resume"), k = Symbol("buffer"), x = Symbol("pipes"), E = Symbol("bufferLength"), L = Symbol("bufferPush"), T = Symbol("bufferShift"), C2 = Symbol("objectMode"), M = Symbol("destroyed"), A = Symbol("error"), O2 = Symbol("emitData"), P = Symbol("emitEnd"), R = Symbol("emitEnd2"), F = Symbol("async"), _ = Symbol("abort"), z = Symbol("aborted"), D = Symbol("signal"), j = Symbol("dataListeners"), B = Symbol("discarded"), N = (t3) => Promise.resolve().then(t3), W = (t3) => t3();
|
|
211935
|
+
class I {
|
|
211936
|
+
src;
|
|
211937
|
+
dest;
|
|
211938
|
+
opts;
|
|
211939
|
+
ondrain;
|
|
211940
|
+
constructor(t3, e3, s3) {
|
|
211941
|
+
this.src = t3, this.dest = e3, this.opts = s3, this.ondrain = () => t3[S](), this.dest.on("drain", this.ondrain);
|
|
211942
|
+
}
|
|
211943
|
+
unpipe() {
|
|
211944
|
+
this.dest.removeListener("drain", this.ondrain);
|
|
211945
|
+
}
|
|
211946
|
+
proxyErrors(t3) {
|
|
211947
|
+
}
|
|
211948
|
+
end() {
|
|
211949
|
+
this.unpipe(), this.opts.end && this.dest.end();
|
|
211950
|
+
}
|
|
211951
|
+
}
|
|
211952
|
+
class G extends I {
|
|
211953
|
+
unpipe() {
|
|
211954
|
+
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
211955
|
+
}
|
|
211956
|
+
constructor(t3, e3, s3) {
|
|
211957
|
+
super(t3, e3, s3), this.proxyErrors = (t4) => e3.emit("error", t4), t3.on("error", this.proxyErrors);
|
|
211958
|
+
}
|
|
211959
|
+
}
|
|
211960
|
+
class U extends n3.EventEmitter {
|
|
211961
|
+
[b] = false;
|
|
211962
|
+
[v] = false;
|
|
211963
|
+
[x] = [];
|
|
211964
|
+
[k] = [];
|
|
211965
|
+
[C2];
|
|
211966
|
+
[y];
|
|
211967
|
+
[F];
|
|
211968
|
+
[w];
|
|
211969
|
+
[a] = false;
|
|
211970
|
+
[c] = false;
|
|
211971
|
+
[p] = false;
|
|
211972
|
+
[u] = false;
|
|
211973
|
+
[d] = null;
|
|
211974
|
+
[E] = 0;
|
|
211975
|
+
[M] = false;
|
|
211976
|
+
[D];
|
|
211977
|
+
[z] = false;
|
|
211978
|
+
[j] = 0;
|
|
211979
|
+
[B] = false;
|
|
211980
|
+
writable = true;
|
|
211981
|
+
readable = true;
|
|
211982
|
+
constructor(...t3) {
|
|
211983
|
+
const e3 = t3[0] || {};
|
|
211984
|
+
if (super(), e3.objectMode && "string" == typeof e3.encoding) throw new TypeError("Encoding and objectMode may not be used together");
|
|
211985
|
+
e3.objectMode ? (this[C2] = true, this[y] = null) : ((t4) => !t4.objectMode && !!t4.encoding && "buffer" !== t4.encoding)(e3) ? (this[y] = e3.encoding, this[C2] = false) : (this[C2] = false, this[y] = null), this[F] = !!e3.async, this[w] = this[y] ? new h.StringDecoder(this[y]) : null, e3 && true === e3.debugExposeBuffer && Object.defineProperty(this, "buffer", { get: () => this[k] }), e3 && true === e3.debugExposePipes && Object.defineProperty(this, "pipes", { get: () => this[x] });
|
|
211986
|
+
const { signal: s3 } = e3;
|
|
211987
|
+
s3 && (this[D] = s3, s3.aborted ? this[_]() : s3.addEventListener("abort", () => this[_]()));
|
|
211988
|
+
}
|
|
211989
|
+
get bufferLength() {
|
|
211990
|
+
return this[E];
|
|
211991
|
+
}
|
|
211992
|
+
get encoding() {
|
|
211993
|
+
return this[y];
|
|
211994
|
+
}
|
|
211995
|
+
set encoding(t3) {
|
|
211996
|
+
throw new Error("Encoding must be set at instantiation time");
|
|
211997
|
+
}
|
|
211998
|
+
setEncoding(t3) {
|
|
211999
|
+
throw new Error("Encoding must be set at instantiation time");
|
|
212000
|
+
}
|
|
212001
|
+
get objectMode() {
|
|
212002
|
+
return this[C2];
|
|
212003
|
+
}
|
|
212004
|
+
set objectMode(t3) {
|
|
212005
|
+
throw new Error("objectMode must be set at instantiation time");
|
|
212006
|
+
}
|
|
212007
|
+
get async() {
|
|
212008
|
+
return this[F];
|
|
212009
|
+
}
|
|
212010
|
+
set async(t3) {
|
|
212011
|
+
this[F] = this[F] || !!t3;
|
|
212012
|
+
}
|
|
212013
|
+
[_]() {
|
|
212014
|
+
var _a, _b;
|
|
212015
|
+
this[z] = true, this.emit("abort", (_a = this[D]) == null ? void 0 : _a.reason), this.destroy((_b = this[D]) == null ? void 0 : _b.reason);
|
|
212016
|
+
}
|
|
212017
|
+
get aborted() {
|
|
212018
|
+
return this[z];
|
|
212019
|
+
}
|
|
212020
|
+
set aborted(t3) {
|
|
212021
|
+
}
|
|
212022
|
+
write(t3, e3, s3) {
|
|
212023
|
+
var _a;
|
|
212024
|
+
if (this[z]) return false;
|
|
212025
|
+
if (this[a]) throw new Error("write after end");
|
|
212026
|
+
if (this[M]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
|
|
212027
|
+
"function" == typeof e3 && (s3 = e3, e3 = "utf8"), e3 || (e3 = "utf8");
|
|
212028
|
+
const i3 = this[F] ? N : W;
|
|
212029
|
+
if (!this[C2] && !Buffer.isBuffer(t3)) {
|
|
212030
|
+
if (r3 = t3, !Buffer.isBuffer(r3) && ArrayBuffer.isView(r3)) t3 = Buffer.from(t3.buffer, t3.byteOffset, t3.byteLength);
|
|
212031
|
+
else if (((t4) => t4 instanceof ArrayBuffer || !!t4 && "object" == typeof t4 && t4.constructor && "ArrayBuffer" === t4.constructor.name && t4.byteLength >= 0)(t3)) t3 = Buffer.from(t3);
|
|
212032
|
+
else if ("string" != typeof t3) throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
212033
|
+
}
|
|
212034
|
+
var r3;
|
|
212035
|
+
return this[C2] ? (this[b] && 0 !== this[E] && this[g](true), this[b] ? this.emit("data", t3) : this[L](t3), 0 !== this[E] && this.emit("readable"), s3 && i3(s3), this[b]) : t3.length ? ("string" != typeof t3 || e3 === this[y] && !((_a = this[w]) == null ? void 0 : _a.lastNeed) || (t3 = Buffer.from(t3, e3)), Buffer.isBuffer(t3) && this[y] && (t3 = this[w].write(t3)), this[b] && 0 !== this[E] && this[g](true), this[b] ? this.emit("data", t3) : this[L](t3), 0 !== this[E] && this.emit("readable"), s3 && i3(s3), this[b]) : (0 !== this[E] && this.emit("readable"), s3 && i3(s3), this[b]);
|
|
212036
|
+
}
|
|
212037
|
+
read(t3) {
|
|
212038
|
+
if (this[M]) return null;
|
|
212039
|
+
if (this[B] = false, 0 === this[E] || 0 === t3 || t3 && t3 > this[E]) return this[l](), null;
|
|
212040
|
+
this[C2] && (t3 = null), this[k].length > 1 && !this[C2] && (this[k] = [this[y] ? this[k].join("") : Buffer.concat(this[k], this[E])]);
|
|
212041
|
+
const e3 = this[f](t3 || null, this[k][0]);
|
|
212042
|
+
return this[l](), e3;
|
|
212043
|
+
}
|
|
212044
|
+
[f](t3, e3) {
|
|
212045
|
+
if (this[C2]) this[T]();
|
|
212046
|
+
else {
|
|
212047
|
+
const s3 = e3;
|
|
212048
|
+
t3 === s3.length || null === t3 ? this[T]() : "string" == typeof s3 ? (this[k][0] = s3.slice(t3), e3 = s3.slice(0, t3), this[E] -= t3) : (this[k][0] = s3.subarray(t3), e3 = s3.subarray(0, t3), this[E] -= t3);
|
|
212049
|
+
}
|
|
212050
|
+
return this.emit("data", e3), this[k].length || this[a] || this.emit("drain"), e3;
|
|
212051
|
+
}
|
|
212052
|
+
end(t3, e3, s3) {
|
|
212053
|
+
return "function" == typeof t3 && (s3 = t3, t3 = void 0), "function" == typeof e3 && (s3 = e3, e3 = "utf8"), void 0 !== t3 && this.write(t3, e3), s3 && this.once("end", s3), this[a] = true, this.writable = false, !this[b] && this[v] || this[l](), this;
|
|
212054
|
+
}
|
|
212055
|
+
[S]() {
|
|
212056
|
+
this[M] || (this[j] || this[x].length || (this[B] = true), this[v] = false, this[b] = true, this.emit("resume"), this[k].length ? this[g]() : this[a] ? this[l]() : this.emit("drain"));
|
|
212057
|
+
}
|
|
212058
|
+
resume() {
|
|
212059
|
+
return this[S]();
|
|
212060
|
+
}
|
|
212061
|
+
pause() {
|
|
212062
|
+
this[b] = false, this[v] = true, this[B] = false;
|
|
212063
|
+
}
|
|
212064
|
+
get destroyed() {
|
|
212065
|
+
return this[M];
|
|
212066
|
+
}
|
|
212067
|
+
get flowing() {
|
|
212068
|
+
return this[b];
|
|
212069
|
+
}
|
|
212070
|
+
get paused() {
|
|
212071
|
+
return this[v];
|
|
212072
|
+
}
|
|
212073
|
+
[L](t3) {
|
|
212074
|
+
this[C2] ? this[E] += 1 : this[E] += t3.length, this[k].push(t3);
|
|
212075
|
+
}
|
|
212076
|
+
[T]() {
|
|
212077
|
+
return this[C2] ? this[E] -= 1 : this[E] -= this[k][0].length, this[k].shift();
|
|
212078
|
+
}
|
|
212079
|
+
[g](t3 = false) {
|
|
212080
|
+
do {
|
|
212081
|
+
} while (this[m](this[T]()) && this[k].length);
|
|
212082
|
+
t3 || this[k].length || this[a] || this.emit("drain");
|
|
212083
|
+
}
|
|
212084
|
+
[m](t3) {
|
|
212085
|
+
return this.emit("data", t3), this[b];
|
|
212086
|
+
}
|
|
212087
|
+
pipe(t3, e3) {
|
|
212088
|
+
if (this[M]) return t3;
|
|
212089
|
+
this[B] = false;
|
|
212090
|
+
const s3 = this[c];
|
|
212091
|
+
return e3 = e3 || {}, t3 === r2.stdout || t3 === r2.stderr ? e3.end = false : e3.end = false !== e3.end, e3.proxyErrors = !!e3.proxyErrors, s3 ? e3.end && t3.end() : (this[x].push(e3.proxyErrors ? new G(this, t3, e3) : new I(this, t3, e3)), this[F] ? N(() => this[S]()) : this[S]()), t3;
|
|
212092
|
+
}
|
|
212093
|
+
unpipe(t3) {
|
|
212094
|
+
const e3 = this[x].find((e4) => e4.dest === t3);
|
|
212095
|
+
e3 && (1 === this[x].length ? (this[b] && 0 === this[j] && (this[b] = false), this[x] = []) : this[x].splice(this[x].indexOf(e3), 1), e3.unpipe());
|
|
212096
|
+
}
|
|
212097
|
+
addListener(t3, e3) {
|
|
212098
|
+
return this.on(t3, e3);
|
|
212099
|
+
}
|
|
212100
|
+
on(t3, e3) {
|
|
212101
|
+
const s3 = super.on(t3, e3);
|
|
212102
|
+
if ("data" === t3) this[B] = false, this[j]++, this[x].length || this[b] || this[S]();
|
|
212103
|
+
else if ("readable" === t3 && 0 !== this[E]) super.emit("readable");
|
|
212104
|
+
else if (/* @__PURE__ */ ((t4) => "end" === t4 || "finish" === t4 || "prefinish" === t4)(t3) && this[c]) super.emit(t3), this.removeAllListeners(t3);
|
|
212105
|
+
else if ("error" === t3 && this[d]) {
|
|
212106
|
+
const t4 = e3;
|
|
212107
|
+
this[F] ? N(() => t4.call(this, this[d])) : t4.call(this, this[d]);
|
|
212108
|
+
}
|
|
212109
|
+
return s3;
|
|
212110
|
+
}
|
|
212111
|
+
removeListener(t3, e3) {
|
|
212112
|
+
return this.off(t3, e3);
|
|
212113
|
+
}
|
|
212114
|
+
off(t3, e3) {
|
|
212115
|
+
const s3 = super.off(t3, e3);
|
|
212116
|
+
return "data" === t3 && (this[j] = this.listeners("data").length, 0 !== this[j] || this[B] || this[x].length || (this[b] = false)), s3;
|
|
212117
|
+
}
|
|
212118
|
+
removeAllListeners(t3) {
|
|
212119
|
+
const e3 = super.removeAllListeners(t3);
|
|
212120
|
+
return "data" !== t3 && void 0 !== t3 || (this[j] = 0, this[B] || this[x].length || (this[b] = false)), e3;
|
|
212121
|
+
}
|
|
212122
|
+
get emittedEnd() {
|
|
212123
|
+
return this[c];
|
|
212124
|
+
}
|
|
212125
|
+
[l]() {
|
|
212126
|
+
this[p] || this[c] || this[M] || 0 !== this[k].length || !this[a] || (this[p] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[u] && this.emit("close"), this[p] = false);
|
|
212127
|
+
}
|
|
212128
|
+
emit(t3, ...e3) {
|
|
212129
|
+
const s3 = e3[0];
|
|
212130
|
+
if ("error" !== t3 && "close" !== t3 && t3 !== M && this[M]) return false;
|
|
212131
|
+
if ("data" === t3) return !(!this[C2] && !s3) && (this[F] ? (N(() => this[O2](s3)), true) : this[O2](s3));
|
|
212132
|
+
if ("end" === t3) return this[P]();
|
|
212133
|
+
if ("close" === t3) {
|
|
212134
|
+
if (this[u] = true, !this[c] && !this[M]) return false;
|
|
212135
|
+
const t4 = super.emit("close");
|
|
212136
|
+
return this.removeAllListeners("close"), t4;
|
|
212137
|
+
}
|
|
212138
|
+
if ("error" === t3) {
|
|
212139
|
+
this[d] = s3, super.emit(A, s3);
|
|
212140
|
+
const t4 = !(this[D] && !this.listeners("error").length) && super.emit("error", s3);
|
|
212141
|
+
return this[l](), t4;
|
|
212142
|
+
}
|
|
212143
|
+
if ("resume" === t3) {
|
|
212144
|
+
const t4 = super.emit("resume");
|
|
212145
|
+
return this[l](), t4;
|
|
212146
|
+
}
|
|
212147
|
+
if ("finish" === t3 || "prefinish" === t3) {
|
|
212148
|
+
const e4 = super.emit(t3);
|
|
212149
|
+
return this.removeAllListeners(t3), e4;
|
|
212150
|
+
}
|
|
212151
|
+
const i3 = super.emit(t3, ...e3);
|
|
212152
|
+
return this[l](), i3;
|
|
212153
|
+
}
|
|
212154
|
+
[O2](t3) {
|
|
212155
|
+
for (const e4 of this[x]) false === e4.dest.write(t3) && this.pause();
|
|
212156
|
+
const e3 = !this[B] && super.emit("data", t3);
|
|
212157
|
+
return this[l](), e3;
|
|
212158
|
+
}
|
|
212159
|
+
[P]() {
|
|
212160
|
+
return !this[c] && (this[c] = true, this.readable = false, this[F] ? (N(() => this[R]()), true) : this[R]());
|
|
212161
|
+
}
|
|
212162
|
+
[R]() {
|
|
212163
|
+
if (this[w]) {
|
|
212164
|
+
const t4 = this[w].end();
|
|
212165
|
+
if (t4) {
|
|
212166
|
+
for (const e3 of this[x]) e3.dest.write(t4);
|
|
212167
|
+
this[B] || super.emit("data", t4);
|
|
212168
|
+
}
|
|
212169
|
+
}
|
|
212170
|
+
for (const t4 of this[x]) t4.end();
|
|
212171
|
+
const t3 = super.emit("end");
|
|
212172
|
+
return this.removeAllListeners("end"), t3;
|
|
212173
|
+
}
|
|
212174
|
+
async collect() {
|
|
212175
|
+
const t3 = Object.assign([], { dataLength: 0 });
|
|
212176
|
+
this[C2] || (t3.dataLength = 0);
|
|
212177
|
+
const e3 = this.promise();
|
|
212178
|
+
return this.on("data", (e4) => {
|
|
212179
|
+
t3.push(e4), this[C2] || (t3.dataLength += e4.length);
|
|
212180
|
+
}), await e3, t3;
|
|
212181
|
+
}
|
|
212182
|
+
async concat() {
|
|
212183
|
+
if (this[C2]) throw new Error("cannot concat in objectMode");
|
|
212184
|
+
const t3 = await this.collect();
|
|
212185
|
+
return this[y] ? t3.join("") : Buffer.concat(t3, t3.dataLength);
|
|
212186
|
+
}
|
|
212187
|
+
async promise() {
|
|
212188
|
+
return new Promise((t3, e3) => {
|
|
212189
|
+
this.on(M, () => e3(new Error("stream destroyed"))), this.on("error", (t4) => e3(t4)), this.on("end", () => t3());
|
|
212190
|
+
});
|
|
212191
|
+
}
|
|
212192
|
+
[Symbol.asyncIterator]() {
|
|
212193
|
+
this[B] = false;
|
|
212194
|
+
let t3 = false;
|
|
212195
|
+
const e3 = async () => (this.pause(), t3 = true, { value: void 0, done: true });
|
|
212196
|
+
return { next: () => {
|
|
212197
|
+
if (t3) return e3();
|
|
212198
|
+
const s3 = this.read();
|
|
212199
|
+
if (null !== s3) return Promise.resolve({ done: false, value: s3 });
|
|
212200
|
+
if (this[a]) return e3();
|
|
212201
|
+
let i3, r3;
|
|
212202
|
+
const n4 = (t4) => {
|
|
212203
|
+
this.off("data", o2), this.off("end", h2), this.off(M, l2), e3(), r3(t4);
|
|
212204
|
+
}, o2 = (t4) => {
|
|
212205
|
+
this.off("error", n4), this.off("end", h2), this.off(M, l2), this.pause(), i3({ value: t4, done: !!this[a] });
|
|
212206
|
+
}, h2 = () => {
|
|
212207
|
+
this.off("error", n4), this.off("data", o2), this.off(M, l2), e3(), i3({ done: true, value: void 0 });
|
|
212208
|
+
}, l2 = () => n4(new Error("stream destroyed"));
|
|
212209
|
+
return new Promise((t4, e4) => {
|
|
212210
|
+
r3 = e4, i3 = t4, this.once(M, l2), this.once("error", n4), this.once("end", h2), this.once("data", o2);
|
|
212211
|
+
});
|
|
212212
|
+
}, throw: e3, return: e3, [Symbol.asyncIterator]() {
|
|
212213
|
+
return this;
|
|
212214
|
+
} };
|
|
212215
|
+
}
|
|
212216
|
+
[Symbol.iterator]() {
|
|
212217
|
+
this[B] = false;
|
|
212218
|
+
let t3 = false;
|
|
212219
|
+
const e3 = () => (this.pause(), this.off(A, e3), this.off(M, e3), this.off("end", e3), t3 = true, { done: true, value: void 0 });
|
|
212220
|
+
return this.once("end", e3), this.once(A, e3), this.once(M, e3), { next: () => {
|
|
212221
|
+
if (t3) return e3();
|
|
212222
|
+
const s3 = this.read();
|
|
212223
|
+
return null === s3 ? e3() : { done: false, value: s3 };
|
|
212224
|
+
}, throw: e3, return: e3, [Symbol.iterator]() {
|
|
212225
|
+
return this;
|
|
212226
|
+
} };
|
|
212227
|
+
}
|
|
212228
|
+
destroy(t3) {
|
|
212229
|
+
if (this[M]) return t3 ? this.emit("error", t3) : this.emit(M), this;
|
|
212230
|
+
this[M] = true, this[B] = true, this[k].length = 0, this[E] = 0;
|
|
212231
|
+
return "function" != typeof this.close || this[u] || this.close(), t3 ? this.emit("error", t3) : this.emit(M), this;
|
|
212232
|
+
}
|
|
212233
|
+
static get isStream() {
|
|
212234
|
+
return e2.isStream;
|
|
212235
|
+
}
|
|
212236
|
+
}
|
|
212237
|
+
e2.Minipass = U;
|
|
212238
|
+
}, 576: function(t2, e2, s2) {
|
|
212239
|
+
"use strict";
|
|
212240
|
+
var _mt, _yt, _wt, _bt, _vt, _St, _kt, _xt, _Et, _S, _Lt, _Tt, _Ct, _Mt, _At, _Ot, _Pt, _Rt, _Ft, __t, _zt, _Dt, _jt, _Bt, _Nt, _Wt, _It, _Gt, _Ut, _R_instances, $t_fn, Ht_fn, Vt_fn, Zt_fn, Jt_fn, Kt_fn, Yt_fn, Xt_fn, qt_fn, Qt_fn, ee_fn, te_fn, se_fn, ie_fn, _re, _ne, oe_fn, _he, _ae, _le, _It2, _mt2;
|
|
212241
|
+
var i2 = this && this.__createBinding || (Object.create ? function(t3, e3, s3, i3) {
|
|
212242
|
+
void 0 === i3 && (i3 = s3);
|
|
212243
|
+
var r3 = Object.getOwnPropertyDescriptor(e3, s3);
|
|
212244
|
+
r3 && !("get" in r3 ? !e3.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() {
|
|
212245
|
+
return e3[s3];
|
|
212246
|
+
} }), Object.defineProperty(t3, i3, r3);
|
|
212247
|
+
} : function(t3, e3, s3, i3) {
|
|
212248
|
+
void 0 === i3 && (i3 = s3), t3[i3] = e3[s3];
|
|
212249
|
+
}), r2 = this && this.__setModuleDefault || (Object.create ? function(t3, e3) {
|
|
212250
|
+
Object.defineProperty(t3, "default", { enumerable: true, value: e3 });
|
|
212251
|
+
} : function(t3, e3) {
|
|
212252
|
+
t3.default = e3;
|
|
212253
|
+
}), n3 = this && this.__importStar || function(t3) {
|
|
212254
|
+
if (t3 && t3.__esModule) return t3;
|
|
212255
|
+
var e3 = {};
|
|
212256
|
+
if (null != t3) for (var s3 in t3) "default" !== s3 && Object.prototype.hasOwnProperty.call(t3, s3) && i2(e3, t3, s3);
|
|
212257
|
+
return r2(e3, t3), e3;
|
|
212258
|
+
};
|
|
212259
|
+
Object.defineProperty(e2, "__esModule", { value: true }), e2.PathScurry = e2.Path = e2.PathScurryDarwin = e2.PathScurryPosix = e2.PathScurryWin32 = e2.PathScurryBase = e2.PathPosix = e2.PathWin32 = e2.PathBase = e2.ChildrenCache = e2.ResolveCache = void 0;
|
|
212260
|
+
const o = s2(96), h = s2(760), a = s2(136), l = s2(896), c = n3(s2(24)), p = l.realpathSync.native, d = s2(455), u = s2(420), f = { lstatSync: l.lstatSync, readdir: l.readdir, readdirSync: l.readdirSync, readlinkSync: l.readlinkSync, realpathSync: p, promises: { lstat: d.lstat, readdir: d.readdir, readlink: d.readlink, realpath: d.realpath } }, g = (t3) => t3 && t3 !== f && t3 !== c ? { ...f, ...t3, promises: { ...f.promises, ...t3.promises || {} } } : f, m = /^\\\\\?\\([a-z]:)\\?$/i, y = /[\\\/]/, w = 10, b = 15, v = -16, S = 128, k = 256, x = 512, E = (t3) => t3.isFile() ? 8 : t3.isDirectory() ? 4 : t3.isSymbolicLink() ? w : t3.isCharacterDevice() ? 2 : t3.isBlockDevice() ? 6 : t3.isSocket() ? 12 : t3.isFIFO() ? 1 : 0, L = /* @__PURE__ */ new Map(), T = (t3) => {
|
|
212261
|
+
const e3 = L.get(t3);
|
|
212262
|
+
if (e3) return e3;
|
|
212263
|
+
const s3 = t3.normalize("NFKD");
|
|
212264
|
+
return L.set(t3, s3), s3;
|
|
212265
|
+
}, C2 = /* @__PURE__ */ new Map(), M = (t3) => {
|
|
212266
|
+
const e3 = C2.get(t3);
|
|
212267
|
+
if (e3) return e3;
|
|
212268
|
+
const s3 = T(t3.toLowerCase());
|
|
212269
|
+
return C2.set(t3, s3), s3;
|
|
212270
|
+
};
|
|
212271
|
+
class A extends o.LRUCache {
|
|
212272
|
+
constructor() {
|
|
212273
|
+
super({ max: 256 });
|
|
212274
|
+
}
|
|
212275
|
+
}
|
|
212276
|
+
e2.ResolveCache = A;
|
|
212277
|
+
class O2 extends o.LRUCache {
|
|
212278
|
+
constructor(t3 = 16384) {
|
|
212279
|
+
super({ maxSize: t3, sizeCalculation: (t4) => t4.length + 1 });
|
|
212280
|
+
}
|
|
212281
|
+
}
|
|
212282
|
+
e2.ChildrenCache = O2;
|
|
212283
|
+
const P = Symbol("PathScurry setAsCwd");
|
|
212284
|
+
class R {
|
|
212285
|
+
constructor(t3, e3 = 0, s3, i3, r3, n4, o2) {
|
|
212286
|
+
__privateAdd(this, _R_instances);
|
|
212287
|
+
__publicField(this, "name");
|
|
212288
|
+
__publicField(this, "root");
|
|
212289
|
+
__publicField(this, "roots");
|
|
212290
|
+
__publicField(this, "parent");
|
|
212291
|
+
__publicField(this, "nocase");
|
|
212292
|
+
__publicField(this, "isCWD", false);
|
|
212293
|
+
__privateAdd(this, _mt);
|
|
212294
|
+
__privateAdd(this, _yt);
|
|
212295
|
+
__privateAdd(this, _wt);
|
|
212296
|
+
__privateAdd(this, _bt);
|
|
212297
|
+
__privateAdd(this, _vt);
|
|
212298
|
+
__privateAdd(this, _St);
|
|
212299
|
+
__privateAdd(this, _kt);
|
|
212300
|
+
__privateAdd(this, _xt);
|
|
212301
|
+
__privateAdd(this, _Et);
|
|
212302
|
+
__privateAdd(this, _S);
|
|
212303
|
+
__privateAdd(this, _Lt);
|
|
212304
|
+
__privateAdd(this, _Tt);
|
|
212305
|
+
__privateAdd(this, _Ct);
|
|
212306
|
+
__privateAdd(this, _Mt);
|
|
212307
|
+
__privateAdd(this, _At);
|
|
212308
|
+
__privateAdd(this, _Ot);
|
|
212309
|
+
__privateAdd(this, _Pt);
|
|
212310
|
+
__privateAdd(this, _Rt);
|
|
212311
|
+
__privateAdd(this, _Ft);
|
|
212312
|
+
__privateAdd(this, __t);
|
|
212313
|
+
__privateAdd(this, _zt);
|
|
212314
|
+
__privateAdd(this, _Dt);
|
|
212315
|
+
__privateAdd(this, _jt);
|
|
212316
|
+
__privateAdd(this, _Bt);
|
|
212317
|
+
__privateAdd(this, _Nt);
|
|
212318
|
+
__privateAdd(this, _Wt);
|
|
212319
|
+
__privateAdd(this, _It);
|
|
212320
|
+
__privateAdd(this, _Gt);
|
|
212321
|
+
__privateAdd(this, _Ut);
|
|
212322
|
+
__privateAdd(this, _re, []);
|
|
212323
|
+
__privateAdd(this, _ne, false);
|
|
212324
|
+
__privateAdd(this, _he);
|
|
212325
|
+
this.name = t3, __privateSet(this, __t, r3 ? M(t3) : T(t3)), __privateSet(this, _Wt, 1023 & e3), this.nocase = r3, this.roots = i3, this.root = s3 || this, __privateSet(this, _It, n4), __privateSet(this, _Dt, o2.fullpath), __privateSet(this, _Bt, o2.relative), __privateSet(this, _Nt, o2.relativePosix), this.parent = o2.parent, this.parent ? __privateSet(this, _mt, __privateGet(this.parent, _mt)) : __privateSet(this, _mt, g(o2.fs));
|
|
212326
|
+
}
|
|
212327
|
+
get dev() {
|
|
212328
|
+
return __privateGet(this, _yt);
|
|
212329
|
+
}
|
|
212330
|
+
get mode() {
|
|
212331
|
+
return __privateGet(this, _wt);
|
|
212332
|
+
}
|
|
212333
|
+
get nlink() {
|
|
212334
|
+
return __privateGet(this, _bt);
|
|
212335
|
+
}
|
|
212336
|
+
get uid() {
|
|
212337
|
+
return __privateGet(this, _vt);
|
|
212338
|
+
}
|
|
212339
|
+
get gid() {
|
|
212340
|
+
return __privateGet(this, _St);
|
|
212341
|
+
}
|
|
212342
|
+
get rdev() {
|
|
212343
|
+
return __privateGet(this, _kt);
|
|
212344
|
+
}
|
|
212345
|
+
get blksize() {
|
|
212346
|
+
return __privateGet(this, _xt);
|
|
212347
|
+
}
|
|
212348
|
+
get ino() {
|
|
212349
|
+
return __privateGet(this, _Et);
|
|
212350
|
+
}
|
|
212351
|
+
get size() {
|
|
212352
|
+
return __privateGet(this, _S);
|
|
212353
|
+
}
|
|
212354
|
+
get blocks() {
|
|
212355
|
+
return __privateGet(this, _Lt);
|
|
212356
|
+
}
|
|
212357
|
+
get atimeMs() {
|
|
212358
|
+
return __privateGet(this, _Tt);
|
|
212359
|
+
}
|
|
212360
|
+
get mtimeMs() {
|
|
212361
|
+
return __privateGet(this, _Ct);
|
|
212362
|
+
}
|
|
212363
|
+
get ctimeMs() {
|
|
212364
|
+
return __privateGet(this, _Mt);
|
|
212365
|
+
}
|
|
212366
|
+
get birthtimeMs() {
|
|
212367
|
+
return __privateGet(this, _At);
|
|
212368
|
+
}
|
|
212369
|
+
get atime() {
|
|
212370
|
+
return __privateGet(this, _Ot);
|
|
212371
|
+
}
|
|
212372
|
+
get mtime() {
|
|
212373
|
+
return __privateGet(this, _Pt);
|
|
212374
|
+
}
|
|
212375
|
+
get ctime() {
|
|
212376
|
+
return __privateGet(this, _Rt);
|
|
212377
|
+
}
|
|
212378
|
+
get birthtime() {
|
|
212379
|
+
return __privateGet(this, _Ft);
|
|
212380
|
+
}
|
|
212381
|
+
get parentPath() {
|
|
212382
|
+
return (this.parent || this).fullpath();
|
|
212383
|
+
}
|
|
212384
|
+
get path() {
|
|
212385
|
+
return this.parentPath;
|
|
212386
|
+
}
|
|
212387
|
+
depth() {
|
|
212388
|
+
return void 0 !== __privateGet(this, _zt) ? __privateGet(this, _zt) : this.parent ? __privateSet(this, _zt, this.parent.depth() + 1) : __privateSet(this, _zt, 0);
|
|
212389
|
+
}
|
|
212390
|
+
childrenCache() {
|
|
212391
|
+
return __privateGet(this, _It);
|
|
212392
|
+
}
|
|
212393
|
+
resolve(t3) {
|
|
212394
|
+
var _a;
|
|
212395
|
+
if (!t3) return this;
|
|
212396
|
+
const e3 = this.getRootString(t3), s3 = t3.substring(e3.length).split(this.splitSep);
|
|
212397
|
+
return e3 ? __privateMethod(_a = this.getRoot(e3), _R_instances, $t_fn).call(_a, s3) : __privateMethod(this, _R_instances, $t_fn).call(this, s3);
|
|
212398
|
+
}
|
|
212399
|
+
children() {
|
|
212400
|
+
const t3 = __privateGet(this, _It).get(this);
|
|
212401
|
+
if (t3) return t3;
|
|
212402
|
+
const e3 = Object.assign([], { provisional: 0 });
|
|
212403
|
+
return __privateGet(this, _It).set(this, e3), __privateSet(this, _Wt, __privateGet(this, _Wt) & -17), e3;
|
|
212404
|
+
}
|
|
212405
|
+
child(t3, e3) {
|
|
212406
|
+
if ("" === t3 || "." === t3) return this;
|
|
212407
|
+
if (".." === t3) return this.parent || this;
|
|
212408
|
+
const s3 = this.children(), i3 = this.nocase ? M(t3) : T(t3);
|
|
212409
|
+
for (const t4 of s3) if (__privateGet(t4, __t) === i3) return t4;
|
|
212410
|
+
const r3 = this.parent ? this.sep : "", n4 = __privateGet(this, _Dt) ? __privateGet(this, _Dt) + r3 + t3 : void 0, o2 = this.newChild(t3, 0, { ...e3, parent: this, fullpath: n4 });
|
|
212411
|
+
return this.canReaddir() || __privateSet(o2, _Wt, __privateGet(o2, _Wt) | S), s3.push(o2), o2;
|
|
212412
|
+
}
|
|
212413
|
+
relative() {
|
|
212414
|
+
if (this.isCWD) return "";
|
|
212415
|
+
if (void 0 !== __privateGet(this, _Bt)) return __privateGet(this, _Bt);
|
|
212416
|
+
const t3 = this.name, e3 = this.parent;
|
|
212417
|
+
if (!e3) return __privateSet(this, _Bt, this.name);
|
|
212418
|
+
const s3 = e3.relative();
|
|
212419
|
+
return s3 + (s3 && e3.parent ? this.sep : "") + t3;
|
|
212420
|
+
}
|
|
212421
|
+
relativePosix() {
|
|
212422
|
+
if ("/" === this.sep) return this.relative();
|
|
212423
|
+
if (this.isCWD) return "";
|
|
212424
|
+
if (void 0 !== __privateGet(this, _Nt)) return __privateGet(this, _Nt);
|
|
212425
|
+
const t3 = this.name, e3 = this.parent;
|
|
212426
|
+
if (!e3) return __privateSet(this, _Nt, this.fullpathPosix());
|
|
212427
|
+
const s3 = e3.relativePosix();
|
|
212428
|
+
return s3 + (s3 && e3.parent ? "/" : "") + t3;
|
|
212429
|
+
}
|
|
212430
|
+
fullpath() {
|
|
212431
|
+
if (void 0 !== __privateGet(this, _Dt)) return __privateGet(this, _Dt);
|
|
212432
|
+
const t3 = this.name, e3 = this.parent;
|
|
212433
|
+
if (!e3) return __privateSet(this, _Dt, this.name);
|
|
212434
|
+
const s3 = e3.fullpath() + (e3.parent ? this.sep : "") + t3;
|
|
212435
|
+
return __privateSet(this, _Dt, s3);
|
|
212436
|
+
}
|
|
212437
|
+
fullpathPosix() {
|
|
212438
|
+
if (void 0 !== __privateGet(this, _jt)) return __privateGet(this, _jt);
|
|
212439
|
+
if ("/" === this.sep) return __privateSet(this, _jt, this.fullpath());
|
|
212440
|
+
if (!this.parent) {
|
|
212441
|
+
const t4 = this.fullpath().replace(/\\/g, "/");
|
|
212442
|
+
return /^[a-z]:\//i.test(t4) ? __privateSet(this, _jt, `//?/${t4}`) : __privateSet(this, _jt, t4);
|
|
212443
|
+
}
|
|
212444
|
+
const t3 = this.parent, e3 = t3.fullpathPosix(), s3 = e3 + (e3 && t3.parent ? "/" : "") + this.name;
|
|
212445
|
+
return __privateSet(this, _jt, s3);
|
|
212446
|
+
}
|
|
212447
|
+
isUnknown() {
|
|
212448
|
+
return !(__privateGet(this, _Wt) & b);
|
|
212449
|
+
}
|
|
212450
|
+
isType(t3) {
|
|
212451
|
+
return this[`is${t3}`]();
|
|
212452
|
+
}
|
|
212453
|
+
getType() {
|
|
212454
|
+
return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : this.isSocket() ? "Socket" : "Unknown";
|
|
212455
|
+
}
|
|
212456
|
+
isFile() {
|
|
212457
|
+
return 8 == (__privateGet(this, _Wt) & b);
|
|
212458
|
+
}
|
|
212459
|
+
isDirectory() {
|
|
212460
|
+
return 4 == (__privateGet(this, _Wt) & b);
|
|
212461
|
+
}
|
|
212462
|
+
isCharacterDevice() {
|
|
212463
|
+
return 2 == (__privateGet(this, _Wt) & b);
|
|
212464
|
+
}
|
|
212465
|
+
isBlockDevice() {
|
|
212466
|
+
return 6 == (__privateGet(this, _Wt) & b);
|
|
212467
|
+
}
|
|
212468
|
+
isFIFO() {
|
|
212469
|
+
return 1 == (__privateGet(this, _Wt) & b);
|
|
212470
|
+
}
|
|
212471
|
+
isSocket() {
|
|
212472
|
+
return 12 == (__privateGet(this, _Wt) & b);
|
|
212473
|
+
}
|
|
212474
|
+
isSymbolicLink() {
|
|
212475
|
+
return (__privateGet(this, _Wt) & w) === w;
|
|
212476
|
+
}
|
|
212477
|
+
lstatCached() {
|
|
212478
|
+
return 32 & __privateGet(this, _Wt) ? this : void 0;
|
|
212479
|
+
}
|
|
212480
|
+
readlinkCached() {
|
|
212481
|
+
return __privateGet(this, _Gt);
|
|
212482
|
+
}
|
|
212483
|
+
realpathCached() {
|
|
212484
|
+
return __privateGet(this, _Ut);
|
|
212485
|
+
}
|
|
212486
|
+
readdirCached() {
|
|
212487
|
+
const t3 = this.children();
|
|
212488
|
+
return t3.slice(0, t3.provisional);
|
|
212489
|
+
}
|
|
212490
|
+
canReadlink() {
|
|
212491
|
+
if (__privateGet(this, _Gt)) return true;
|
|
212492
|
+
if (!this.parent) return false;
|
|
212493
|
+
const t3 = __privateGet(this, _Wt) & b;
|
|
212494
|
+
return !(0 !== t3 && t3 !== w || __privateGet(this, _Wt) & k || __privateGet(this, _Wt) & S);
|
|
212495
|
+
}
|
|
212496
|
+
calledReaddir() {
|
|
212497
|
+
return !!(16 & __privateGet(this, _Wt));
|
|
212498
|
+
}
|
|
212499
|
+
isENOENT() {
|
|
212500
|
+
return !!(__privateGet(this, _Wt) & S);
|
|
212501
|
+
}
|
|
212502
|
+
isNamed(t3) {
|
|
212503
|
+
return this.nocase ? __privateGet(this, __t) === M(t3) : __privateGet(this, __t) === T(t3);
|
|
212504
|
+
}
|
|
212505
|
+
async readlink() {
|
|
212506
|
+
var _a;
|
|
212507
|
+
const t3 = __privateGet(this, _Gt);
|
|
212508
|
+
if (t3) return t3;
|
|
212509
|
+
if (this.canReadlink() && this.parent) try {
|
|
212510
|
+
const t4 = await __privateGet(this, _mt).promises.readlink(this.fullpath()), e3 = (_a = await this.parent.realpath()) == null ? void 0 : _a.resolve(t4);
|
|
212511
|
+
if (e3) return __privateSet(this, _Gt, e3);
|
|
212512
|
+
} catch (t4) {
|
|
212513
|
+
return void __privateMethod(this, _R_instances, qt_fn).call(this, t4.code);
|
|
212514
|
+
}
|
|
212515
|
+
}
|
|
212516
|
+
readlinkSync() {
|
|
212517
|
+
var _a;
|
|
212518
|
+
const t3 = __privateGet(this, _Gt);
|
|
212519
|
+
if (t3) return t3;
|
|
212520
|
+
if (this.canReadlink() && this.parent) try {
|
|
212521
|
+
const t4 = __privateGet(this, _mt).readlinkSync(this.fullpath()), e3 = (_a = this.parent.realpathSync()) == null ? void 0 : _a.resolve(t4);
|
|
212522
|
+
if (e3) return __privateSet(this, _Gt, e3);
|
|
212523
|
+
} catch (t4) {
|
|
212524
|
+
return void __privateMethod(this, _R_instances, qt_fn).call(this, t4.code);
|
|
212525
|
+
}
|
|
212526
|
+
}
|
|
212527
|
+
async lstat() {
|
|
212528
|
+
if (!(__privateGet(this, _Wt) & S)) try {
|
|
212529
|
+
return __privateMethod(this, _R_instances, ie_fn).call(this, await __privateGet(this, _mt).promises.lstat(this.fullpath())), this;
|
|
212530
|
+
} catch (t3) {
|
|
212531
|
+
__privateMethod(this, _R_instances, Xt_fn).call(this, t3.code);
|
|
212532
|
+
}
|
|
212533
|
+
}
|
|
212534
|
+
lstatSync() {
|
|
212535
|
+
if (!(__privateGet(this, _Wt) & S)) try {
|
|
212536
|
+
return __privateMethod(this, _R_instances, ie_fn).call(this, __privateGet(this, _mt).lstatSync(this.fullpath())), this;
|
|
212537
|
+
} catch (t3) {
|
|
212538
|
+
__privateMethod(this, _R_instances, Xt_fn).call(this, t3.code);
|
|
212539
|
+
}
|
|
212540
|
+
}
|
|
212541
|
+
readdirCB(t3, e3 = false) {
|
|
212542
|
+
if (!this.canReaddir()) return void (e3 ? t3(null, []) : queueMicrotask(() => t3(null, [])));
|
|
212543
|
+
const s3 = this.children();
|
|
212544
|
+
if (this.calledReaddir()) {
|
|
212545
|
+
const i4 = s3.slice(0, s3.provisional);
|
|
212546
|
+
return void (e3 ? t3(null, i4) : queueMicrotask(() => t3(null, i4)));
|
|
212547
|
+
}
|
|
212548
|
+
if (__privateGet(this, _re).push(t3), __privateGet(this, _ne)) return;
|
|
212549
|
+
__privateSet(this, _ne, true);
|
|
212550
|
+
const i3 = this.fullpath();
|
|
212551
|
+
__privateGet(this, _mt).readdir(i3, { withFileTypes: true }, (t4, e4) => {
|
|
212552
|
+
if (t4) __privateMethod(this, _R_instances, Yt_fn).call(this, t4.code), s3.provisional = 0;
|
|
212553
|
+
else {
|
|
212554
|
+
for (const t5 of e4) __privateMethod(this, _R_instances, Qt_fn).call(this, t5, s3);
|
|
212555
|
+
__privateMethod(this, _R_instances, Ht_fn).call(this, s3);
|
|
212556
|
+
}
|
|
212557
|
+
__privateMethod(this, _R_instances, oe_fn).call(this, s3.slice(0, s3.provisional));
|
|
212558
|
+
});
|
|
212559
|
+
}
|
|
212560
|
+
async readdir() {
|
|
212561
|
+
if (!this.canReaddir()) return [];
|
|
212562
|
+
const t3 = this.children();
|
|
212563
|
+
if (this.calledReaddir()) return t3.slice(0, t3.provisional);
|
|
212564
|
+
const e3 = this.fullpath();
|
|
212565
|
+
if (__privateGet(this, _he)) await __privateGet(this, _he);
|
|
212566
|
+
else {
|
|
212567
|
+
let s3 = () => {
|
|
212568
|
+
};
|
|
212569
|
+
__privateSet(this, _he, new Promise((t4) => s3 = t4));
|
|
212570
|
+
try {
|
|
212571
|
+
for (const s4 of await __privateGet(this, _mt).promises.readdir(e3, { withFileTypes: true })) __privateMethod(this, _R_instances, Qt_fn).call(this, s4, t3);
|
|
212572
|
+
__privateMethod(this, _R_instances, Ht_fn).call(this, t3);
|
|
212573
|
+
} catch (e4) {
|
|
212574
|
+
__privateMethod(this, _R_instances, Yt_fn).call(this, e4.code), t3.provisional = 0;
|
|
212575
|
+
}
|
|
212576
|
+
__privateSet(this, _he, void 0), s3();
|
|
212577
|
+
}
|
|
212578
|
+
return t3.slice(0, t3.provisional);
|
|
212579
|
+
}
|
|
212580
|
+
readdirSync() {
|
|
212581
|
+
if (!this.canReaddir()) return [];
|
|
212582
|
+
const t3 = this.children();
|
|
212583
|
+
if (this.calledReaddir()) return t3.slice(0, t3.provisional);
|
|
212584
|
+
const e3 = this.fullpath();
|
|
212585
|
+
try {
|
|
212586
|
+
for (const s3 of __privateGet(this, _mt).readdirSync(e3, { withFileTypes: true })) __privateMethod(this, _R_instances, Qt_fn).call(this, s3, t3);
|
|
212587
|
+
__privateMethod(this, _R_instances, Ht_fn).call(this, t3);
|
|
212588
|
+
} catch (e4) {
|
|
212589
|
+
__privateMethod(this, _R_instances, Yt_fn).call(this, e4.code), t3.provisional = 0;
|
|
212590
|
+
}
|
|
212591
|
+
return t3.slice(0, t3.provisional);
|
|
212592
|
+
}
|
|
212593
|
+
canReaddir() {
|
|
212594
|
+
if (704 & __privateGet(this, _Wt)) return false;
|
|
212595
|
+
const t3 = b & __privateGet(this, _Wt);
|
|
212596
|
+
return 0 === t3 || 4 === t3 || t3 === w;
|
|
212597
|
+
}
|
|
212598
|
+
shouldWalk(t3, e3) {
|
|
212599
|
+
return !(4 & ~__privateGet(this, _Wt)) && !(704 & __privateGet(this, _Wt)) && !t3.has(this) && (!e3 || e3(this));
|
|
212600
|
+
}
|
|
212601
|
+
async realpath() {
|
|
212602
|
+
if (__privateGet(this, _Ut)) return __privateGet(this, _Ut);
|
|
212603
|
+
if (!(896 & __privateGet(this, _Wt))) try {
|
|
212604
|
+
const t3 = await __privateGet(this, _mt).promises.realpath(this.fullpath());
|
|
212605
|
+
return __privateSet(this, _Ut, this.resolve(t3));
|
|
212606
|
+
} catch (t3) {
|
|
212607
|
+
__privateMethod(this, _R_instances, Jt_fn).call(this);
|
|
212608
|
+
}
|
|
212609
|
+
}
|
|
212610
|
+
realpathSync() {
|
|
212611
|
+
if (__privateGet(this, _Ut)) return __privateGet(this, _Ut);
|
|
212612
|
+
if (!(896 & __privateGet(this, _Wt))) try {
|
|
212613
|
+
const t3 = __privateGet(this, _mt).realpathSync(this.fullpath());
|
|
212614
|
+
return __privateSet(this, _Ut, this.resolve(t3));
|
|
212615
|
+
} catch (t3) {
|
|
212616
|
+
__privateMethod(this, _R_instances, Jt_fn).call(this);
|
|
212617
|
+
}
|
|
212618
|
+
}
|
|
212619
|
+
[P](t3) {
|
|
212620
|
+
if (t3 === this) return;
|
|
212621
|
+
t3.isCWD = false, this.isCWD = true;
|
|
212622
|
+
const e3 = /* @__PURE__ */ new Set([]);
|
|
212623
|
+
let s3 = [], i3 = this;
|
|
212624
|
+
for (; i3 && i3.parent; ) e3.add(i3), __privateSet(i3, _Bt, s3.join(this.sep)), __privateSet(i3, _Nt, s3.join("/")), i3 = i3.parent, s3.push("..");
|
|
212625
|
+
for (i3 = t3; i3 && i3.parent && !e3.has(i3); ) __privateSet(i3, _Bt, void 0), __privateSet(i3, _Nt, void 0), i3 = i3.parent;
|
|
212626
|
+
}
|
|
212627
|
+
}
|
|
212628
|
+
_mt = new WeakMap();
|
|
212629
|
+
_yt = new WeakMap();
|
|
212630
|
+
_wt = new WeakMap();
|
|
212631
|
+
_bt = new WeakMap();
|
|
212632
|
+
_vt = new WeakMap();
|
|
212633
|
+
_St = new WeakMap();
|
|
212634
|
+
_kt = new WeakMap();
|
|
212635
|
+
_xt = new WeakMap();
|
|
212636
|
+
_Et = new WeakMap();
|
|
212637
|
+
_S = new WeakMap();
|
|
212638
|
+
_Lt = new WeakMap();
|
|
212639
|
+
_Tt = new WeakMap();
|
|
212640
|
+
_Ct = new WeakMap();
|
|
212641
|
+
_Mt = new WeakMap();
|
|
212642
|
+
_At = new WeakMap();
|
|
212643
|
+
_Ot = new WeakMap();
|
|
212644
|
+
_Pt = new WeakMap();
|
|
212645
|
+
_Rt = new WeakMap();
|
|
212646
|
+
_Ft = new WeakMap();
|
|
212647
|
+
__t = new WeakMap();
|
|
212648
|
+
_zt = new WeakMap();
|
|
212649
|
+
_Dt = new WeakMap();
|
|
212650
|
+
_jt = new WeakMap();
|
|
212651
|
+
_Bt = new WeakMap();
|
|
212652
|
+
_Nt = new WeakMap();
|
|
212653
|
+
_Wt = new WeakMap();
|
|
212654
|
+
_It = new WeakMap();
|
|
212655
|
+
_Gt = new WeakMap();
|
|
212656
|
+
_Ut = new WeakMap();
|
|
212657
|
+
_R_instances = new WeakSet();
|
|
212658
|
+
$t_fn = function(t3) {
|
|
212659
|
+
let e3 = this;
|
|
212660
|
+
for (const s3 of t3) e3 = e3.child(s3);
|
|
212661
|
+
return e3;
|
|
212662
|
+
};
|
|
212663
|
+
Ht_fn = function(t3) {
|
|
212664
|
+
var _a;
|
|
212665
|
+
__privateSet(this, _Wt, __privateGet(this, _Wt) | 16);
|
|
212666
|
+
for (let e3 = t3.provisional; e3 < t3.length; e3++) {
|
|
212667
|
+
const s3 = t3[e3];
|
|
212668
|
+
s3 && __privateMethod(_a = s3, _R_instances, Vt_fn).call(_a);
|
|
212669
|
+
}
|
|
212670
|
+
};
|
|
212671
|
+
Vt_fn = function() {
|
|
212672
|
+
__privateGet(this, _Wt) & S || (__privateSet(this, _Wt, (__privateGet(this, _Wt) | S) & v), __privateMethod(this, _R_instances, Zt_fn).call(this));
|
|
212673
|
+
};
|
|
212674
|
+
Zt_fn = function() {
|
|
212675
|
+
var _a;
|
|
212676
|
+
const t3 = this.children();
|
|
212677
|
+
t3.provisional = 0;
|
|
212678
|
+
for (const e3 of t3) __privateMethod(_a = e3, _R_instances, Vt_fn).call(_a);
|
|
212679
|
+
};
|
|
212680
|
+
Jt_fn = function() {
|
|
212681
|
+
__privateSet(this, _Wt, __privateGet(this, _Wt) | x), __privateMethod(this, _R_instances, Kt_fn).call(this);
|
|
212682
|
+
};
|
|
212683
|
+
Kt_fn = function() {
|
|
212684
|
+
if (64 & __privateGet(this, _Wt)) return;
|
|
212685
|
+
let t3 = __privateGet(this, _Wt);
|
|
212686
|
+
4 == (t3 & b) && (t3 &= v), __privateSet(this, _Wt, 64 | t3), __privateMethod(this, _R_instances, Zt_fn).call(this);
|
|
212687
|
+
};
|
|
212688
|
+
Yt_fn = function(t3 = "") {
|
|
212689
|
+
"ENOTDIR" === t3 || "EPERM" === t3 ? __privateMethod(this, _R_instances, Kt_fn).call(this) : "ENOENT" === t3 ? __privateMethod(this, _R_instances, Vt_fn).call(this) : this.children().provisional = 0;
|
|
212690
|
+
};
|
|
212691
|
+
Xt_fn = function(t3 = "") {
|
|
212692
|
+
var _a;
|
|
212693
|
+
if ("ENOTDIR" === t3) {
|
|
212694
|
+
__privateMethod(_a = this.parent, _R_instances, Kt_fn).call(_a);
|
|
212695
|
+
} else "ENOENT" === t3 && __privateMethod(this, _R_instances, Vt_fn).call(this);
|
|
212696
|
+
};
|
|
212697
|
+
qt_fn = function(t3 = "") {
|
|
212698
|
+
var _a;
|
|
212699
|
+
let e3 = __privateGet(this, _Wt);
|
|
212700
|
+
e3 |= k, "ENOENT" === t3 && (e3 |= S), "EINVAL" !== t3 && "UNKNOWN" !== t3 || (e3 &= v), __privateSet(this, _Wt, e3), "ENOTDIR" === t3 && this.parent && __privateMethod(_a = this.parent, _R_instances, Kt_fn).call(_a);
|
|
212701
|
+
};
|
|
212702
|
+
Qt_fn = function(t3, e3) {
|
|
212703
|
+
return __privateMethod(this, _R_instances, te_fn).call(this, t3, e3) || __privateMethod(this, _R_instances, ee_fn).call(this, t3, e3);
|
|
212704
|
+
};
|
|
212705
|
+
ee_fn = function(t3, e3) {
|
|
212706
|
+
const s3 = E(t3), i3 = this.newChild(t3.name, s3, { parent: this }), r3 = __privateGet(i3, _Wt) & b;
|
|
212707
|
+
return 4 !== r3 && r3 !== w && 0 !== r3 && __privateSet(i3, _Wt, __privateGet(i3, _Wt) | 64), e3.unshift(i3), e3.provisional++, i3;
|
|
212708
|
+
};
|
|
212709
|
+
te_fn = function(t3, e3) {
|
|
212710
|
+
for (let s3 = e3.provisional; s3 < e3.length; s3++) {
|
|
212711
|
+
const i3 = e3[s3];
|
|
212712
|
+
if ((this.nocase ? M(t3.name) : T(t3.name)) === __privateGet(i3, __t)) return __privateMethod(this, _R_instances, se_fn).call(this, t3, i3, s3, e3);
|
|
212713
|
+
}
|
|
212714
|
+
};
|
|
212715
|
+
se_fn = function(t3, e3, s3, i3) {
|
|
212716
|
+
const r3 = e3.name;
|
|
212717
|
+
return __privateSet(e3, _Wt, __privateGet(e3, _Wt) & v | E(t3)), r3 !== t3.name && (e3.name = t3.name), s3 !== i3.provisional && (s3 === i3.length - 1 ? i3.pop() : i3.splice(s3, 1), i3.unshift(e3)), i3.provisional++, e3;
|
|
212718
|
+
};
|
|
212719
|
+
ie_fn = function(t3) {
|
|
212720
|
+
const { atime: e3, atimeMs: s3, birthtime: i3, birthtimeMs: r3, blksize: n4, blocks: o2, ctime: h2, ctimeMs: a2, dev: l2, gid: c2, ino: p2, mode: d2, mtime: u2, mtimeMs: f2, nlink: g2, rdev: m2, size: y2, uid: b2 } = t3;
|
|
212721
|
+
__privateSet(this, _Ot, e3), __privateSet(this, _Tt, s3), __privateSet(this, _Ft, i3), __privateSet(this, _At, r3), __privateSet(this, _xt, n4), __privateSet(this, _Lt, o2), __privateSet(this, _Rt, h2), __privateSet(this, _Mt, a2), __privateSet(this, _yt, l2), __privateSet(this, _St, c2), __privateSet(this, _Et, p2), __privateSet(this, _wt, d2), __privateSet(this, _Pt, u2), __privateSet(this, _Ct, f2), __privateSet(this, _bt, g2), __privateSet(this, _kt, m2), __privateSet(this, _S, y2), __privateSet(this, _vt, b2);
|
|
212722
|
+
const S2 = E(t3);
|
|
212723
|
+
__privateSet(this, _Wt, __privateGet(this, _Wt) & v | S2 | 32), 0 !== S2 && 4 !== S2 && S2 !== w && __privateSet(this, _Wt, __privateGet(this, _Wt) | 64);
|
|
212724
|
+
};
|
|
212725
|
+
_re = new WeakMap();
|
|
212726
|
+
_ne = new WeakMap();
|
|
212727
|
+
oe_fn = function(t3) {
|
|
212728
|
+
__privateSet(this, _ne, false);
|
|
212729
|
+
const e3 = __privateGet(this, _re).slice();
|
|
212730
|
+
__privateGet(this, _re).length = 0, e3.forEach((e4) => e4(null, t3));
|
|
212731
|
+
};
|
|
212732
|
+
_he = new WeakMap();
|
|
212733
|
+
e2.PathBase = R;
|
|
212734
|
+
class F extends R {
|
|
212735
|
+
sep = "\\";
|
|
212736
|
+
splitSep = y;
|
|
212737
|
+
constructor(t3, e3 = 0, s3, i3, r3, n4, o2) {
|
|
212738
|
+
super(t3, e3, s3, i3, r3, n4, o2);
|
|
212739
|
+
}
|
|
212740
|
+
newChild(t3, e3 = 0, s3 = {}) {
|
|
212741
|
+
return new F(t3, e3, this.root, this.roots, this.nocase, this.childrenCache(), s3);
|
|
212742
|
+
}
|
|
212743
|
+
getRootString(t3) {
|
|
212744
|
+
return h.win32.parse(t3).root;
|
|
212745
|
+
}
|
|
212746
|
+
getRoot(t3) {
|
|
212747
|
+
if ((t3 = ((t4) => t4.replace(/\//g, "\\").replace(m, "$1\\"))(t3.toUpperCase())) === this.root.name) return this.root;
|
|
212748
|
+
for (const [e3, s3] of Object.entries(this.roots)) if (this.sameRoot(t3, e3)) return this.roots[t3] = s3;
|
|
212749
|
+
return this.roots[t3] = new D(t3, this).root;
|
|
212750
|
+
}
|
|
212751
|
+
sameRoot(t3, e3 = this.root.name) {
|
|
212752
|
+
return (t3 = t3.toUpperCase().replace(/\//g, "\\").replace(m, "$1\\")) === e3;
|
|
212753
|
+
}
|
|
212754
|
+
}
|
|
212755
|
+
e2.PathWin32 = F;
|
|
212756
|
+
class _ extends R {
|
|
212757
|
+
splitSep = "/";
|
|
212758
|
+
sep = "/";
|
|
212759
|
+
constructor(t3, e3 = 0, s3, i3, r3, n4, o2) {
|
|
212760
|
+
super(t3, e3, s3, i3, r3, n4, o2);
|
|
212761
|
+
}
|
|
212762
|
+
getRootString(t3) {
|
|
212763
|
+
return t3.startsWith("/") ? "/" : "";
|
|
212764
|
+
}
|
|
212765
|
+
getRoot(t3) {
|
|
212766
|
+
return this.root;
|
|
212767
|
+
}
|
|
212768
|
+
newChild(t3, e3 = 0, s3 = {}) {
|
|
212769
|
+
return new _(t3, e3, this.root, this.roots, this.nocase, this.childrenCache(), s3);
|
|
212770
|
+
}
|
|
212771
|
+
}
|
|
212772
|
+
e2.PathPosix = _;
|
|
212773
|
+
class z {
|
|
212774
|
+
constructor(t3 = process.cwd(), e3, s3, { nocase: i3, childrenCacheSize: r3 = 16384, fs: n4 = f } = {}) {
|
|
212775
|
+
__publicField(this, "root");
|
|
212776
|
+
__publicField(this, "rootPath");
|
|
212777
|
+
__publicField(this, "roots");
|
|
212778
|
+
__publicField(this, "cwd");
|
|
212779
|
+
__privateAdd(this, _ae);
|
|
212780
|
+
__privateAdd(this, _le);
|
|
212781
|
+
__privateAdd(this, _It2);
|
|
212782
|
+
__publicField(this, "nocase");
|
|
212783
|
+
__privateAdd(this, _mt2);
|
|
212784
|
+
__privateSet(this, _mt2, g(n4)), (t3 instanceof URL || t3.startsWith("file://")) && (t3 = (0, a.fileURLToPath)(t3));
|
|
212785
|
+
const o2 = e3.resolve(t3);
|
|
212786
|
+
this.roots = /* @__PURE__ */ Object.create(null), this.rootPath = this.parseRootPath(o2), __privateSet(this, _ae, new A()), __privateSet(this, _le, new A()), __privateSet(this, _It2, new O2(r3));
|
|
212787
|
+
const h2 = o2.substring(this.rootPath.length).split(s3);
|
|
212788
|
+
if (1 !== h2.length || h2[0] || h2.pop(), void 0 === i3) throw new TypeError("must provide nocase setting to PathScurryBase ctor");
|
|
212789
|
+
this.nocase = i3, this.root = this.newRoot(__privateGet(this, _mt2)), this.roots[this.rootPath] = this.root;
|
|
212790
|
+
let l2 = this.root, c2 = h2.length - 1;
|
|
212791
|
+
const p2 = e3.sep;
|
|
212792
|
+
let d2 = this.rootPath, u2 = false;
|
|
212793
|
+
for (const t4 of h2) {
|
|
212794
|
+
const e4 = c2--;
|
|
212795
|
+
l2 = l2.child(t4, { relative: new Array(e4).fill("..").join(p2), relativePosix: new Array(e4).fill("..").join("/"), fullpath: d2 += (u2 ? "" : p2) + t4 }), u2 = true;
|
|
212796
|
+
}
|
|
212797
|
+
this.cwd = l2;
|
|
212798
|
+
}
|
|
212799
|
+
depth(t3 = this.cwd) {
|
|
212800
|
+
return "string" == typeof t3 && (t3 = this.cwd.resolve(t3)), t3.depth();
|
|
212801
|
+
}
|
|
212802
|
+
childrenCache() {
|
|
212803
|
+
return __privateGet(this, _It2);
|
|
212804
|
+
}
|
|
212805
|
+
resolve(...t3) {
|
|
212806
|
+
let e3 = "";
|
|
212807
|
+
for (let s4 = t3.length - 1; s4 >= 0; s4--) {
|
|
212808
|
+
const i4 = t3[s4];
|
|
212809
|
+
if (i4 && "." !== i4 && (e3 = e3 ? `${i4}/${e3}` : i4, this.isAbsolute(i4))) break;
|
|
212810
|
+
}
|
|
212811
|
+
const s3 = __privateGet(this, _ae).get(e3);
|
|
212812
|
+
if (void 0 !== s3) return s3;
|
|
212813
|
+
const i3 = this.cwd.resolve(e3).fullpath();
|
|
212814
|
+
return __privateGet(this, _ae).set(e3, i3), i3;
|
|
212815
|
+
}
|
|
212816
|
+
resolvePosix(...t3) {
|
|
212817
|
+
let e3 = "";
|
|
212818
|
+
for (let s4 = t3.length - 1; s4 >= 0; s4--) {
|
|
212819
|
+
const i4 = t3[s4];
|
|
212820
|
+
if (i4 && "." !== i4 && (e3 = e3 ? `${i4}/${e3}` : i4, this.isAbsolute(i4))) break;
|
|
212821
|
+
}
|
|
212822
|
+
const s3 = __privateGet(this, _le).get(e3);
|
|
212823
|
+
if (void 0 !== s3) return s3;
|
|
212824
|
+
const i3 = this.cwd.resolve(e3).fullpathPosix();
|
|
212825
|
+
return __privateGet(this, _le).set(e3, i3), i3;
|
|
212826
|
+
}
|
|
212827
|
+
relative(t3 = this.cwd) {
|
|
212828
|
+
return "string" == typeof t3 && (t3 = this.cwd.resolve(t3)), t3.relative();
|
|
212829
|
+
}
|
|
212830
|
+
relativePosix(t3 = this.cwd) {
|
|
212831
|
+
return "string" == typeof t3 && (t3 = this.cwd.resolve(t3)), t3.relativePosix();
|
|
212832
|
+
}
|
|
212833
|
+
basename(t3 = this.cwd) {
|
|
212834
|
+
return "string" == typeof t3 && (t3 = this.cwd.resolve(t3)), t3.name;
|
|
212835
|
+
}
|
|
212836
|
+
dirname(t3 = this.cwd) {
|
|
212837
|
+
return "string" == typeof t3 && (t3 = this.cwd.resolve(t3)), (t3.parent || t3).fullpath();
|
|
212838
|
+
}
|
|
212839
|
+
async readdir(t3 = this.cwd, e3 = { withFileTypes: true }) {
|
|
212840
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd);
|
|
212841
|
+
const { withFileTypes: s3 } = e3;
|
|
212842
|
+
if (t3.canReaddir()) {
|
|
212843
|
+
const e4 = await t3.readdir();
|
|
212844
|
+
return s3 ? e4 : e4.map((t4) => t4.name);
|
|
212845
|
+
}
|
|
212846
|
+
return [];
|
|
212847
|
+
}
|
|
212848
|
+
readdirSync(t3 = this.cwd, e3 = { withFileTypes: true }) {
|
|
212849
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd);
|
|
212850
|
+
const { withFileTypes: s3 = true } = e3;
|
|
212851
|
+
return t3.canReaddir() ? s3 ? t3.readdirSync() : t3.readdirSync().map((t4) => t4.name) : [];
|
|
212852
|
+
}
|
|
212853
|
+
async lstat(t3 = this.cwd) {
|
|
212854
|
+
return "string" == typeof t3 && (t3 = this.cwd.resolve(t3)), t3.lstat();
|
|
212855
|
+
}
|
|
212856
|
+
lstatSync(t3 = this.cwd) {
|
|
212857
|
+
return "string" == typeof t3 && (t3 = this.cwd.resolve(t3)), t3.lstatSync();
|
|
212858
|
+
}
|
|
212859
|
+
async readlink(t3 = this.cwd, { withFileTypes: e3 } = { withFileTypes: false }) {
|
|
212860
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3.withFileTypes, t3 = this.cwd);
|
|
212861
|
+
const s3 = await t3.readlink();
|
|
212862
|
+
return e3 ? s3 : s3 == null ? void 0 : s3.fullpath();
|
|
212863
|
+
}
|
|
212864
|
+
readlinkSync(t3 = this.cwd, { withFileTypes: e3 } = { withFileTypes: false }) {
|
|
212865
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3.withFileTypes, t3 = this.cwd);
|
|
212866
|
+
const s3 = t3.readlinkSync();
|
|
212867
|
+
return e3 ? s3 : s3 == null ? void 0 : s3.fullpath();
|
|
212868
|
+
}
|
|
212869
|
+
async realpath(t3 = this.cwd, { withFileTypes: e3 } = { withFileTypes: false }) {
|
|
212870
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3.withFileTypes, t3 = this.cwd);
|
|
212871
|
+
const s3 = await t3.realpath();
|
|
212872
|
+
return e3 ? s3 : s3 == null ? void 0 : s3.fullpath();
|
|
212873
|
+
}
|
|
212874
|
+
realpathSync(t3 = this.cwd, { withFileTypes: e3 } = { withFileTypes: false }) {
|
|
212875
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3.withFileTypes, t3 = this.cwd);
|
|
212876
|
+
const s3 = t3.realpathSync();
|
|
212877
|
+
return e3 ? s3 : s3 == null ? void 0 : s3.fullpath();
|
|
212878
|
+
}
|
|
212879
|
+
async walk(t3 = this.cwd, e3 = {}) {
|
|
212880
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd);
|
|
212881
|
+
const { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: n4 } = e3, o2 = [];
|
|
212882
|
+
r3 && !r3(t3) || o2.push(s3 ? t3 : t3.fullpath());
|
|
212883
|
+
const h2 = /* @__PURE__ */ new Set(), a2 = (t4, e4) => {
|
|
212884
|
+
h2.add(t4), t4.readdirCB((t5, l3) => {
|
|
212885
|
+
if (t5) return e4(t5);
|
|
212886
|
+
let c2 = l3.length;
|
|
212887
|
+
if (!c2) return e4();
|
|
212888
|
+
const p2 = () => {
|
|
212889
|
+
0 == --c2 && e4();
|
|
212890
|
+
};
|
|
212891
|
+
for (const t6 of l3) r3 && !r3(t6) || o2.push(s3 ? t6 : t6.fullpath()), i3 && t6.isSymbolicLink() ? t6.realpath().then((t7) => (t7 == null ? void 0 : t7.isUnknown()) ? t7.lstat() : t7).then((t7) => (t7 == null ? void 0 : t7.shouldWalk(h2, n4)) ? a2(t7, p2) : p2()) : t6.shouldWalk(h2, n4) ? a2(t6, p2) : p2();
|
|
212892
|
+
}, true);
|
|
212893
|
+
}, l2 = t3;
|
|
212894
|
+
return new Promise((t4, e4) => {
|
|
212895
|
+
a2(l2, (s4) => {
|
|
212896
|
+
if (s4) return e4(s4);
|
|
212897
|
+
t4(o2);
|
|
212898
|
+
});
|
|
212899
|
+
});
|
|
212900
|
+
}
|
|
212901
|
+
walkSync(t3 = this.cwd, e3 = {}) {
|
|
212902
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd);
|
|
212903
|
+
const { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: n4 } = e3, o2 = [];
|
|
212904
|
+
r3 && !r3(t3) || o2.push(s3 ? t3 : t3.fullpath());
|
|
212905
|
+
const h2 = /* @__PURE__ */ new Set([t3]);
|
|
212906
|
+
for (const t4 of h2) {
|
|
212907
|
+
const e4 = t4.readdirSync();
|
|
212908
|
+
for (const t5 of e4) {
|
|
212909
|
+
r3 && !r3(t5) || o2.push(s3 ? t5 : t5.fullpath());
|
|
212910
|
+
let e5 = t5;
|
|
212911
|
+
if (t5.isSymbolicLink()) {
|
|
212912
|
+
if (!i3 || !(e5 = t5.realpathSync())) continue;
|
|
212913
|
+
e5.isUnknown() && e5.lstatSync();
|
|
212914
|
+
}
|
|
212915
|
+
e5.shouldWalk(h2, n4) && h2.add(e5);
|
|
212916
|
+
}
|
|
212917
|
+
}
|
|
212918
|
+
return o2;
|
|
212919
|
+
}
|
|
212920
|
+
[Symbol.asyncIterator]() {
|
|
212921
|
+
return this.iterate();
|
|
212922
|
+
}
|
|
212923
|
+
iterate(t3 = this.cwd, e3 = {}) {
|
|
212924
|
+
return "string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd), this.stream(t3, e3)[Symbol.asyncIterator]();
|
|
212925
|
+
}
|
|
212926
|
+
[Symbol.iterator]() {
|
|
212927
|
+
return this.iterateSync();
|
|
212928
|
+
}
|
|
212929
|
+
*iterateSync(t3 = this.cwd, e3 = {}) {
|
|
212930
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd);
|
|
212931
|
+
const { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: n4 } = e3;
|
|
212932
|
+
r3 && !r3(t3) || (yield s3 ? t3 : t3.fullpath());
|
|
212933
|
+
const o2 = /* @__PURE__ */ new Set([t3]);
|
|
212934
|
+
for (const t4 of o2) {
|
|
212935
|
+
const e4 = t4.readdirSync();
|
|
212936
|
+
for (const t5 of e4) {
|
|
212937
|
+
r3 && !r3(t5) || (yield s3 ? t5 : t5.fullpath());
|
|
212938
|
+
let e5 = t5;
|
|
212939
|
+
if (t5.isSymbolicLink()) {
|
|
212940
|
+
if (!i3 || !(e5 = t5.realpathSync())) continue;
|
|
212941
|
+
e5.isUnknown() && e5.lstatSync();
|
|
212942
|
+
}
|
|
212943
|
+
e5.shouldWalk(o2, n4) && o2.add(e5);
|
|
212944
|
+
}
|
|
212945
|
+
}
|
|
212946
|
+
}
|
|
212947
|
+
stream(t3 = this.cwd, e3 = {}) {
|
|
212948
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd);
|
|
212949
|
+
const { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: n4 } = e3, o2 = new u.Minipass({ objectMode: true });
|
|
212950
|
+
r3 && !r3(t3) || o2.write(s3 ? t3 : t3.fullpath());
|
|
212951
|
+
const h2 = /* @__PURE__ */ new Set(), a2 = [t3];
|
|
212952
|
+
let l2 = 0;
|
|
212953
|
+
const c2 = () => {
|
|
212954
|
+
let t4 = false;
|
|
212955
|
+
for (; !t4; ) {
|
|
212956
|
+
const e4 = a2.shift();
|
|
212957
|
+
if (!e4) return void (0 === l2 && o2.end());
|
|
212958
|
+
l2++, h2.add(e4);
|
|
212959
|
+
const p2 = (e5, u2, f2 = false) => {
|
|
212960
|
+
if (e5) return o2.emit("error", e5);
|
|
212961
|
+
if (i3 && !f2) {
|
|
212962
|
+
const t5 = [];
|
|
212963
|
+
for (const e6 of u2) e6.isSymbolicLink() && t5.push(e6.realpath().then((t6) => (t6 == null ? void 0 : t6.isUnknown()) ? t6.lstat() : t6));
|
|
212964
|
+
if (t5.length) return void Promise.all(t5).then(() => p2(null, u2, true));
|
|
212965
|
+
}
|
|
212966
|
+
for (const e6 of u2) !e6 || r3 && !r3(e6) || o2.write(s3 ? e6 : e6.fullpath()) || (t4 = true);
|
|
212967
|
+
l2--;
|
|
212968
|
+
for (const t5 of u2) {
|
|
212969
|
+
const e6 = t5.realpathCached() || t5;
|
|
212970
|
+
e6.shouldWalk(h2, n4) && a2.push(e6);
|
|
212971
|
+
}
|
|
212972
|
+
t4 && !o2.flowing ? o2.once("drain", c2) : d2 || c2();
|
|
212973
|
+
};
|
|
212974
|
+
let d2 = true;
|
|
212975
|
+
e4.readdirCB(p2, true), d2 = false;
|
|
212976
|
+
}
|
|
212977
|
+
};
|
|
212978
|
+
return c2(), o2;
|
|
212979
|
+
}
|
|
212980
|
+
streamSync(t3 = this.cwd, e3 = {}) {
|
|
212981
|
+
"string" == typeof t3 ? t3 = this.cwd.resolve(t3) : t3 instanceof R || (e3 = t3, t3 = this.cwd);
|
|
212982
|
+
const { withFileTypes: s3 = true, follow: i3 = false, filter: r3, walkFilter: n4 } = e3, o2 = new u.Minipass({ objectMode: true }), h2 = /* @__PURE__ */ new Set();
|
|
212983
|
+
r3 && !r3(t3) || o2.write(s3 ? t3 : t3.fullpath());
|
|
212984
|
+
const a2 = [t3];
|
|
212985
|
+
let l2 = 0;
|
|
212986
|
+
const c2 = () => {
|
|
212987
|
+
let t4 = false;
|
|
212988
|
+
for (; !t4; ) {
|
|
212989
|
+
const e4 = a2.shift();
|
|
212990
|
+
if (!e4) return void (0 === l2 && o2.end());
|
|
212991
|
+
l2++, h2.add(e4);
|
|
212992
|
+
const c3 = e4.readdirSync();
|
|
212993
|
+
for (const e5 of c3) r3 && !r3(e5) || o2.write(s3 ? e5 : e5.fullpath()) || (t4 = true);
|
|
212994
|
+
l2--;
|
|
212995
|
+
for (const t5 of c3) {
|
|
212996
|
+
let e5 = t5;
|
|
212997
|
+
if (t5.isSymbolicLink()) {
|
|
212998
|
+
if (!i3 || !(e5 = t5.realpathSync())) continue;
|
|
212999
|
+
e5.isUnknown() && e5.lstatSync();
|
|
213000
|
+
}
|
|
213001
|
+
e5.shouldWalk(h2, n4) && a2.push(e5);
|
|
213002
|
+
}
|
|
213003
|
+
}
|
|
213004
|
+
t4 && !o2.flowing && o2.once("drain", c2);
|
|
213005
|
+
};
|
|
213006
|
+
return c2(), o2;
|
|
213007
|
+
}
|
|
213008
|
+
chdir(t3 = this.cwd) {
|
|
213009
|
+
const e3 = this.cwd;
|
|
213010
|
+
this.cwd = "string" == typeof t3 ? this.cwd.resolve(t3) : t3, this.cwd[P](e3);
|
|
213011
|
+
}
|
|
213012
|
+
}
|
|
213013
|
+
_ae = new WeakMap();
|
|
213014
|
+
_le = new WeakMap();
|
|
213015
|
+
_It2 = new WeakMap();
|
|
213016
|
+
_mt2 = new WeakMap();
|
|
213017
|
+
e2.PathScurryBase = z;
|
|
213018
|
+
class D extends z {
|
|
213019
|
+
sep = "\\";
|
|
213020
|
+
constructor(t3 = process.cwd(), e3 = {}) {
|
|
213021
|
+
const { nocase: s3 = true } = e3;
|
|
213022
|
+
super(t3, h.win32, "\\", { ...e3, nocase: s3 }), this.nocase = s3;
|
|
213023
|
+
for (let t4 = this.cwd; t4; t4 = t4.parent) t4.nocase = this.nocase;
|
|
213024
|
+
}
|
|
213025
|
+
parseRootPath(t3) {
|
|
213026
|
+
return h.win32.parse(t3).root.toUpperCase();
|
|
213027
|
+
}
|
|
213028
|
+
newRoot(t3) {
|
|
213029
|
+
return new F(this.rootPath, 4, void 0, this.roots, this.nocase, this.childrenCache(), { fs: t3 });
|
|
213030
|
+
}
|
|
213031
|
+
isAbsolute(t3) {
|
|
213032
|
+
return t3.startsWith("/") || t3.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(t3);
|
|
213033
|
+
}
|
|
213034
|
+
}
|
|
213035
|
+
e2.PathScurryWin32 = D;
|
|
213036
|
+
class j extends z {
|
|
213037
|
+
sep = "/";
|
|
213038
|
+
constructor(t3 = process.cwd(), e3 = {}) {
|
|
213039
|
+
const { nocase: s3 = false } = e3;
|
|
213040
|
+
super(t3, h.posix, "/", { ...e3, nocase: s3 }), this.nocase = s3;
|
|
213041
|
+
}
|
|
213042
|
+
parseRootPath(t3) {
|
|
213043
|
+
return "/";
|
|
213044
|
+
}
|
|
213045
|
+
newRoot(t3) {
|
|
213046
|
+
return new _(this.rootPath, 4, void 0, this.roots, this.nocase, this.childrenCache(), { fs: t3 });
|
|
213047
|
+
}
|
|
213048
|
+
isAbsolute(t3) {
|
|
213049
|
+
return t3.startsWith("/");
|
|
213050
|
+
}
|
|
213051
|
+
}
|
|
213052
|
+
e2.PathScurryPosix = j;
|
|
213053
|
+
class B extends j {
|
|
213054
|
+
constructor(t3 = process.cwd(), e3 = {}) {
|
|
213055
|
+
const { nocase: s3 = true } = e3;
|
|
213056
|
+
super(t3, { ...e3, nocase: s3 });
|
|
213057
|
+
}
|
|
213058
|
+
}
|
|
213059
|
+
e2.PathScurryDarwin = B, e2.Path = "win32" === process.platform ? F : _, e2.PathScurry = "win32" === process.platform ? D : "darwin" === process.platform ? B : j;
|
|
213060
|
+
} }, e = {};
|
|
213061
|
+
var s = function s2(i2) {
|
|
213062
|
+
var r2 = e[i2];
|
|
213063
|
+
if (void 0 !== r2) return r2.exports;
|
|
213064
|
+
var n3 = e[i2] = { exports: {} };
|
|
213065
|
+
return t[i2].call(n3.exports, n3, n3.exports, s2), n3.exports;
|
|
213066
|
+
}(207), i = exports2;
|
|
213067
|
+
for (var r in s) i[r] = s[r];
|
|
213068
|
+
s.__esModule && Object.defineProperty(i, "__esModule", { value: true });
|
|
213069
|
+
})();
|
|
213070
|
+
}
|
|
213071
|
+
});
|
|
213072
|
+
|
|
209894
213073
|
// node_modules/estree-walker/dist/umd/estree-walker.js
|
|
209895
213074
|
var require_estree_walker = __commonJS({
|
|
209896
213075
|
"node_modules/estree-walker/dist/umd/estree-walker.js"(exports2, module2) {
|
|
@@ -212598,7 +215777,7 @@ var require_dist = __commonJS({
|
|
|
212598
215777
|
var pluginutils = require_cjs();
|
|
212599
215778
|
var getCommonDir = require_commondir();
|
|
212600
215779
|
var fs3 = require("fs");
|
|
212601
|
-
var glob =
|
|
215780
|
+
var glob = require_glob();
|
|
212602
215781
|
var estreeWalker = require_estree_walker();
|
|
212603
215782
|
var MagicString4 = require_magic_string_cjs();
|
|
212604
215783
|
var isReference = require_is_reference();
|
|
@@ -233455,19 +236634,19 @@ __export(compiler_exports, {
|
|
|
233455
236634
|
versions: () => versions
|
|
233456
236635
|
});
|
|
233457
236636
|
module.exports = __toCommonJS(compiler_exports);
|
|
233458
|
-
var import_typescript69 = __toESM(
|
|
236637
|
+
var import_typescript69 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
233459
236638
|
|
|
233460
236639
|
// src/version.ts
|
|
233461
|
-
var buildId = "
|
|
236640
|
+
var buildId = "1738248734";
|
|
233462
236641
|
var minfyJsId = "terser5.31.1_7";
|
|
233463
236642
|
var optimizeCssId = "autoprefixer10.4.19_postcss8.4.38_7";
|
|
233464
236643
|
var parse5Version = "7.1.2";
|
|
233465
236644
|
var rollupVersion = "2.56.3";
|
|
233466
236645
|
var jqueryVersion = "4.0.0-pre";
|
|
233467
236646
|
var terserVersion = "5.31.1";
|
|
233468
|
-
var typescriptVersion = "5.5.
|
|
233469
|
-
var vermoji = "\
|
|
233470
|
-
var version = "4.
|
|
236647
|
+
var typescriptVersion = "5.5.4";
|
|
236648
|
+
var vermoji = "\u2600\uFE0F";
|
|
236649
|
+
var version = "4.22.0";
|
|
233471
236650
|
var versions = {
|
|
233472
236651
|
rindo: version,
|
|
233473
236652
|
parse5: parse5Version,
|
|
@@ -234705,7 +237884,7 @@ var validateComponentTag = (tag) => {
|
|
|
234705
237884
|
};
|
|
234706
237885
|
|
|
234707
237886
|
// src/compiler/compiler.ts
|
|
234708
|
-
var import_typescript65 = __toESM(
|
|
237887
|
+
var import_typescript65 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
234709
237888
|
|
|
234710
237889
|
// src/compiler/build/compiler-ctx.ts
|
|
234711
237890
|
var import_path4 = require("path");
|
|
@@ -234894,10 +238073,10 @@ var resetModuleLegacy = (moduleFile) => {
|
|
|
234894
238073
|
};
|
|
234895
238074
|
|
|
234896
238075
|
// src/compiler/transpile/create-build-program.ts
|
|
234897
|
-
var import_typescript2 = __toESM(
|
|
238076
|
+
var import_typescript2 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
234898
238077
|
|
|
234899
238078
|
// src/compiler/transpile/ts-config.ts
|
|
234900
|
-
var import_typescript = __toESM(
|
|
238079
|
+
var import_typescript = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
234901
238080
|
var getTsOptionsToExtend = (config) => {
|
|
234902
238081
|
const tsOptions = {
|
|
234903
238082
|
experimentalDecorators: true,
|
|
@@ -236358,6 +239537,7 @@ var getComponentAssetsCopyTasks = (config, buildCtx, dest, collectionsPath) => {
|
|
|
236358
239537
|
src: assetsMeta.absolutePath,
|
|
236359
239538
|
dest: join(dest, assetsMeta.cmpRelativePath),
|
|
236360
239539
|
warn: false,
|
|
239540
|
+
ignore: void 0,
|
|
236361
239541
|
keepDirStructure: false
|
|
236362
239542
|
});
|
|
236363
239543
|
});
|
|
@@ -236368,6 +239548,7 @@ var getComponentAssetsCopyTasks = (config, buildCtx, dest, collectionsPath) => {
|
|
|
236368
239548
|
src: assetsMeta.absolutePath,
|
|
236369
239549
|
dest: collectionDirDestination,
|
|
236370
239550
|
warn: false,
|
|
239551
|
+
ignore: void 0,
|
|
236371
239552
|
keepDirStructure: false
|
|
236372
239553
|
});
|
|
236373
239554
|
});
|
|
@@ -236423,6 +239604,16 @@ var getDestAbsPath = (src, destAbsPath, destRelPath) => {
|
|
|
236423
239604
|
};
|
|
236424
239605
|
|
|
236425
239606
|
// src/compiler/output-targets/copy/output-copy.ts
|
|
239607
|
+
var DEFAULT_IGNORE = [
|
|
239608
|
+
"**/__mocks__/**",
|
|
239609
|
+
"**/__fixtures__/**",
|
|
239610
|
+
"**/dist/**",
|
|
239611
|
+
"**/.{idea,git,cache,output,temp}/**",
|
|
239612
|
+
"**/.ds_store",
|
|
239613
|
+
"**/.gitignore",
|
|
239614
|
+
"**/desktop.ini",
|
|
239615
|
+
"**/thumbs.db"
|
|
239616
|
+
];
|
|
236426
239617
|
var outputCopy = async (config, compilerCtx, buildCtx) => {
|
|
236427
239618
|
const outputTargets = config.outputTargets.filter(isOutputTargetCopy);
|
|
236428
239619
|
if (outputTargets.length === 0) {
|
|
@@ -236488,23 +239679,24 @@ var transformToAbs = (copyTask, dest) => {
|
|
|
236488
239679
|
return {
|
|
236489
239680
|
src: copyTask.src,
|
|
236490
239681
|
dest: getDestAbsPath(copyTask.src, dest, copyTask.dest),
|
|
239682
|
+
ignore: copyTask.ignore || DEFAULT_IGNORE,
|
|
236491
239683
|
keepDirStructure: typeof copyTask.keepDirStructure === "boolean" ? copyTask.keepDirStructure : copyTask.dest == null,
|
|
236492
239684
|
warn: copyTask.warn !== false
|
|
236493
239685
|
};
|
|
236494
239686
|
};
|
|
236495
239687
|
|
|
236496
239688
|
// src/compiler/output-targets/dist-collection/index.ts
|
|
236497
|
-
var import_typescript6 = __toESM(
|
|
239689
|
+
var import_typescript6 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
236498
239690
|
|
|
236499
239691
|
// src/compiler/transformers/map-imports-to-path-aliases.ts
|
|
236500
239692
|
var import_path7 = require("path");
|
|
236501
|
-
var import_typescript5 = __toESM(
|
|
239693
|
+
var import_typescript5 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
236502
239694
|
|
|
236503
239695
|
// src/compiler/transformers/transform-utils.ts
|
|
236504
|
-
var import_typescript4 = __toESM(
|
|
239696
|
+
var import_typescript4 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
236505
239697
|
|
|
236506
239698
|
// src/compiler/transformers/type-library.ts
|
|
236507
|
-
var import_typescript3 = __toESM(
|
|
239699
|
+
var import_typescript3 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
236508
239700
|
var TYPE_LIBRARY = {};
|
|
236509
239701
|
function addToLibrary(type, typeName, checker, pathToTypeModule) {
|
|
236510
239702
|
pathToTypeModule = relative(process.cwd(), pathToTypeModule);
|
|
@@ -239690,10 +242882,10 @@ var createCustomResolverAsync = (sys, inMemoryFs, exts) => {
|
|
|
239690
242882
|
|
|
239691
242883
|
// src/compiler/bundle/app-data-plugin.ts
|
|
239692
242884
|
var import_path13 = require("path");
|
|
239693
|
-
var import_typescript8 = __toESM(
|
|
242885
|
+
var import_typescript8 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
239694
242886
|
|
|
239695
242887
|
// src/compiler/transformers/remove-collection-imports.ts
|
|
239696
|
-
var import_typescript7 = __toESM(
|
|
242888
|
+
var import_typescript7 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
239697
242889
|
var removeCollectionImports = (compilerCtx) => {
|
|
239698
242890
|
return () => {
|
|
239699
242891
|
return (tsSourceFile) => {
|
|
@@ -241087,15 +244279,15 @@ var serverPlugin = (config, platform) => {
|
|
|
241087
244279
|
|
|
241088
244280
|
// src/compiler/bundle/typescript-plugin.ts
|
|
241089
244281
|
var import_path24 = require("path");
|
|
241090
|
-
var import_typescript11 = __toESM(
|
|
244282
|
+
var import_typescript11 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
241091
244283
|
|
|
241092
244284
|
// src/compiler/sys/typescript/typescript-resolve-module.ts
|
|
241093
244285
|
var import_path23 = require("path");
|
|
241094
|
-
var import_typescript10 = __toESM(
|
|
244286
|
+
var import_typescript10 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
241095
244287
|
|
|
241096
244288
|
// src/compiler/sys/typescript/typescript-sys.ts
|
|
241097
244289
|
var import_path22 = require("path");
|
|
241098
|
-
var import_typescript9 = __toESM(
|
|
244290
|
+
var import_typescript9 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
241099
244291
|
|
|
241100
244292
|
// src/compiler/sys/environment.ts
|
|
241101
244293
|
var IS_WINDOWS_ENV = process.platform === "win32";
|
|
@@ -241438,7 +244630,7 @@ var userIndexPlugin = (config, compilerCtx) => {
|
|
|
241438
244630
|
|
|
241439
244631
|
// src/compiler/optimize/optimize-module.ts
|
|
241440
244632
|
var import_merge_source_map = __toESM(require_merge_source_map());
|
|
241441
|
-
var import_typescript12 = __toESM(
|
|
244633
|
+
var import_typescript12 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
241442
244634
|
|
|
241443
244635
|
// node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs
|
|
241444
244636
|
var schemeRegex = /^[\w+.-]+:\/\//;
|
|
@@ -250600,7 +253792,7 @@ var getTreeshakeOption = (config, bundleOpts) => {
|
|
|
250600
253792
|
};
|
|
250601
253793
|
|
|
250602
253794
|
// src/compiler/transformers/component-native/add-define-custom-element-function.ts
|
|
250603
|
-
var import_typescript13 = __toESM(
|
|
253795
|
+
var import_typescript13 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
250604
253796
|
var addDefineCustomElementFunctions = (compilerCtx, components, outputTarget) => {
|
|
250605
253797
|
return () => {
|
|
250606
253798
|
return (tsSourceFile) => {
|
|
@@ -250739,10 +253931,10 @@ function createAutoDefinitionExpression(componentName) {
|
|
|
250739
253931
|
}
|
|
250740
253932
|
|
|
250741
253933
|
// src/compiler/transformers/component-native/proxy-custom-element-function.ts
|
|
250742
|
-
var import_typescript16 = __toESM(
|
|
253934
|
+
var import_typescript16 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
250743
253935
|
|
|
250744
253936
|
// src/compiler/transformers/add-component-meta-proxy.ts
|
|
250745
|
-
var import_typescript14 = __toESM(
|
|
253937
|
+
var import_typescript14 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
250746
253938
|
|
|
250747
253939
|
// src/compiler/transformers/core-runtime-apis.ts
|
|
250748
253940
|
var CREATE_EVENT = "__rindo_createEvent";
|
|
@@ -250809,7 +254001,7 @@ var createClassMetadataProxy = (compilerMeta, clazz) => {
|
|
|
250809
254001
|
};
|
|
250810
254002
|
|
|
250811
254003
|
// src/compiler/transformers/add-imports.ts
|
|
250812
|
-
var import_typescript15 = __toESM(
|
|
254004
|
+
var import_typescript15 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
250813
254005
|
var addImports = (transformOpts, tsSourceFile, importFnNames, importPath) => {
|
|
250814
254006
|
if (importFnNames.length === 0) {
|
|
250815
254007
|
return tsSourceFile;
|
|
@@ -250892,10 +254084,10 @@ var proxyCustomElement = (compilerCtx, transformOpts) => {
|
|
|
250892
254084
|
};
|
|
250893
254085
|
|
|
250894
254086
|
// src/compiler/transformers/component-native/tranform-to-native-component.ts
|
|
250895
|
-
var import_typescript30 = __toESM(
|
|
254087
|
+
var import_typescript30 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
250896
254088
|
|
|
250897
254089
|
// src/compiler/transformers/define-custom-element.ts
|
|
250898
|
-
var import_typescript17 = __toESM(
|
|
254090
|
+
var import_typescript17 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
250899
254091
|
var defineCustomElement = (tsSourceFile, moduleFile, transformOpts) => {
|
|
250900
254092
|
let statements = tsSourceFile.statements.slice();
|
|
250901
254093
|
statements.push(
|
|
@@ -250961,7 +254153,7 @@ var removeComponentCjsExport = (statements, moduleFile) => {
|
|
|
250961
254153
|
};
|
|
250962
254154
|
|
|
250963
254155
|
// src/compiler/transformers/style-imports.ts
|
|
250964
|
-
var import_typescript18 = __toESM(
|
|
254156
|
+
var import_typescript18 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
250965
254157
|
var updateStyleImports = (transformOpts, tsSourceFile, moduleFile) => {
|
|
250966
254158
|
if (transformOpts.module === "cjs") {
|
|
250967
254159
|
return updateCjsStyleRequires(transformOpts, tsSourceFile, moduleFile);
|
|
@@ -251083,10 +254275,10 @@ var getStyleImportPath = (transformOpts, tsSourceFile, cmp, style, importPath) =
|
|
|
251083
254275
|
};
|
|
251084
254276
|
|
|
251085
254277
|
// src/compiler/transformers/component-native/native-component.ts
|
|
251086
|
-
var import_typescript29 = __toESM(
|
|
254278
|
+
var import_typescript29 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251087
254279
|
|
|
251088
254280
|
// src/compiler/transformers/host-data-transform.ts
|
|
251089
|
-
var import_typescript19 = __toESM(
|
|
254281
|
+
var import_typescript19 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251090
254282
|
var transformHostData = (classElements, moduleFile) => {
|
|
251091
254283
|
const hasHostData = classElements.some(
|
|
251092
254284
|
(e) => import_typescript19.default.isMethodDeclaration(e) && e.name.escapedText === "hostData"
|
|
@@ -251153,7 +254345,7 @@ var syntheticRender = (moduleFile, hasRender) => {
|
|
|
251153
254345
|
var INTERNAL_RENDER = "__rindo_render";
|
|
251154
254346
|
|
|
251155
254347
|
// src/compiler/transformers/remove-static-meta-properties.ts
|
|
251156
|
-
var import_typescript20 = __toESM(
|
|
254348
|
+
var import_typescript20 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251157
254349
|
var removeStaticMetaProperties = (classNode) => {
|
|
251158
254350
|
if (classNode.members == null) {
|
|
251159
254351
|
return [];
|
|
@@ -251193,7 +254385,7 @@ var STATIC_GETTERS_TO_REMOVE = [
|
|
|
251193
254385
|
];
|
|
251194
254386
|
|
|
251195
254387
|
// src/compiler/transformers/update-component-class.ts
|
|
251196
|
-
var import_typescript21 = __toESM(
|
|
254388
|
+
var import_typescript21 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251197
254389
|
var updateComponentClass = (transformOpts, classNode, heritageClauses, members) => {
|
|
251198
254390
|
var _a, _b, _c;
|
|
251199
254391
|
let classModifiers = (_b = (_a = retrieveTsModifiers(classNode)) == null ? void 0 : _a.slice()) != null ? _b : [];
|
|
@@ -251261,7 +254453,7 @@ var addWatchers = (classMembers, cmp) => {
|
|
|
251261
254453
|
};
|
|
251262
254454
|
|
|
251263
254455
|
// src/compiler/transformers/component-native/native-connected-callback.ts
|
|
251264
|
-
var import_typescript22 = __toESM(
|
|
254456
|
+
var import_typescript22 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251265
254457
|
var addNativeConnectedCallback = (classMembers, cmp) => {
|
|
251266
254458
|
if (cmp.isPlain && cmp.hasRenderFn) {
|
|
251267
254459
|
const fnCall = import_typescript22.default.factory.createExpressionStatement(
|
|
@@ -251308,10 +254500,10 @@ var addNativeConnectedCallback = (classMembers, cmp) => {
|
|
|
251308
254500
|
var CONNECTED_CALLBACK = "connectedCallback";
|
|
251309
254501
|
|
|
251310
254502
|
// src/compiler/transformers/component-native/native-constructor.ts
|
|
251311
|
-
var import_typescript25 = __toESM(
|
|
254503
|
+
var import_typescript25 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251312
254504
|
|
|
251313
254505
|
// src/compiler/transformers/create-event.ts
|
|
251314
|
-
var import_typescript23 = __toESM(
|
|
254506
|
+
var import_typescript23 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251315
254507
|
var addCreateEvents = (moduleFile, cmp) => {
|
|
251316
254508
|
return cmp.events.map((ev) => {
|
|
251317
254509
|
addCoreRuntimeApi(moduleFile, RUNTIME_APIS.createEvent);
|
|
@@ -251342,7 +254534,7 @@ var computeFlags = (eventMeta) => {
|
|
|
251342
254534
|
};
|
|
251343
254535
|
|
|
251344
254536
|
// src/compiler/transformers/component-native/attach-internals.ts
|
|
251345
|
-
var import_typescript24 = __toESM(
|
|
254537
|
+
var import_typescript24 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251346
254538
|
function createNativeAttachInternalsBinding(cmp) {
|
|
251347
254539
|
if (cmp.formAssociated && cmp.attachInternalsMemberName) {
|
|
251348
254540
|
return [
|
|
@@ -251409,7 +254601,7 @@ var nativeAttachShadowStatement = () => {
|
|
|
251409
254601
|
};
|
|
251410
254602
|
|
|
251411
254603
|
// src/compiler/transformers/component-native/native-element-getter.ts
|
|
251412
|
-
var import_typescript26 = __toESM(
|
|
254604
|
+
var import_typescript26 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251413
254605
|
var addNativeElementGetter = (classMembers, cmp) => {
|
|
251414
254606
|
if (cmp.elementRef) {
|
|
251415
254607
|
const getter = import_typescript26.default.factory.createGetAccessorDeclaration(
|
|
@@ -251766,10 +254958,10 @@ var scopeCss = (cssText, scopeId) => {
|
|
|
251766
254958
|
};
|
|
251767
254959
|
|
|
251768
254960
|
// src/compiler/transformers/component-native/native-static-style.ts
|
|
251769
|
-
var import_typescript28 = __toESM(
|
|
254961
|
+
var import_typescript28 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251770
254962
|
|
|
251771
254963
|
// src/compiler/transformers/add-static-style.ts
|
|
251772
|
-
var import_typescript27 = __toESM(
|
|
254964
|
+
var import_typescript27 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251773
254965
|
var addStaticStyleGetterWithinClass = (classMembers, cmp) => {
|
|
251774
254966
|
const styleLiteral = getStyleLiteral(cmp);
|
|
251775
254967
|
if (styleLiteral) {
|
|
@@ -251987,7 +255179,7 @@ var nativeComponentTransform = (compilerCtx, transformOpts) => {
|
|
|
251987
255179
|
|
|
251988
255180
|
// src/compiler/transformers/rewrite-aliased-paths.ts
|
|
251989
255181
|
var import_path25 = require("path");
|
|
251990
|
-
var import_typescript31 = __toESM(
|
|
255182
|
+
var import_typescript31 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
251991
255183
|
function rewriteAliasedDTSImportPaths(transformCtx) {
|
|
251992
255184
|
const compilerHost = import_typescript31.default.createCompilerHost(transformCtx.getCompilerOptions());
|
|
251993
255185
|
return (tsBundleOrSourceFile) => {
|
|
@@ -252074,7 +255266,7 @@ function rewriteAliasedImport(compilerHost, transformCtx, sourceFilePath, node)
|
|
|
252074
255266
|
}
|
|
252075
255267
|
|
|
252076
255268
|
// src/compiler/transformers/update-rindo-core-import.ts
|
|
252077
|
-
var import_typescript32 = __toESM(
|
|
255269
|
+
var import_typescript32 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
252078
255270
|
var updateRindoCoreImports = (updatedCoreImportPath) => {
|
|
252079
255271
|
return () => {
|
|
252080
255272
|
return (tsSourceFile) => {
|
|
@@ -252494,16 +255686,16 @@ var getCustomBeforeTransformers = (config, compilerCtx, components, outputTarget
|
|
|
252494
255686
|
};
|
|
252495
255687
|
|
|
252496
255688
|
// src/compiler/transformers/component-hydrate/tranform-to-hydrate-component.ts
|
|
252497
|
-
var import_typescript37 = __toESM(
|
|
255689
|
+
var import_typescript37 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
252498
255690
|
|
|
252499
255691
|
// src/compiler/transformers/component-hydrate/hydrate-component.ts
|
|
252500
|
-
var import_typescript36 = __toESM(
|
|
255692
|
+
var import_typescript36 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
252501
255693
|
|
|
252502
255694
|
// src/compiler/transformers/component-lazy/lazy-constructor.ts
|
|
252503
|
-
var import_typescript34 = __toESM(
|
|
255695
|
+
var import_typescript34 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
252504
255696
|
|
|
252505
255697
|
// src/compiler/transformers/component-lazy/attach-internals.ts
|
|
252506
|
-
var import_typescript33 = __toESM(
|
|
255698
|
+
var import_typescript33 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
252507
255699
|
|
|
252508
255700
|
// src/compiler/transformers/component-lazy/constants.ts
|
|
252509
255701
|
var HOST_REF_ARG = "hostRef";
|
|
@@ -252627,7 +255819,7 @@ var registerInstanceStatement = (moduleFile) => {
|
|
|
252627
255819
|
};
|
|
252628
255820
|
|
|
252629
255821
|
// src/compiler/transformers/component-lazy/lazy-element-getter.ts
|
|
252630
|
-
var import_typescript35 = __toESM(
|
|
255822
|
+
var import_typescript35 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
252631
255823
|
var addLazyElementGetter = (classMembers, moduleFile, cmp) => {
|
|
252632
255824
|
if (cmp.elementRef) {
|
|
252633
255825
|
addCoreRuntimeApi(moduleFile, RUNTIME_APIS.getElement);
|
|
@@ -252815,7 +256007,10 @@ var getCustomBeforeTransformers2 = (config, compilerCtx) => {
|
|
|
252815
256007
|
|
|
252816
256008
|
// src/compiler/output-targets/dist-hydrate-script/hydrate-factory-closure.ts
|
|
252817
256009
|
var HYDRATE_APP_CLOSURE_START = `/*hydrateAppClosure start*/`;
|
|
256010
|
+
var MODE_RESOLUTION_CHAIN_DECLARATION = `modeResolutionChain = [];`;
|
|
252818
256011
|
var HYDRATE_FACTORY_INTRO = `
|
|
256012
|
+
// const ${MODE_RESOLUTION_CHAIN_DECLARATION}
|
|
256013
|
+
|
|
252819
256014
|
export function hydrateFactory($rindoWindow, $rindoHydrateOpts, $rindoHydrateResults, $rindoAfterHydrate, $rindoHydrateResolve) {
|
|
252820
256015
|
var globalThis = $rindoWindow;
|
|
252821
256016
|
var self = $rindoWindow;
|
|
@@ -252867,6 +256062,7 @@ export function hydrateFactory($rindoWindow, $rindoHydrateOpts, $rindoHydrateRes
|
|
|
252867
256062
|
var HTMLTemplateElement = $rindoWindow.HTMLTemplateElement;
|
|
252868
256063
|
var HTMLTitleElement = $rindoWindow.HTMLTitleElement;
|
|
252869
256064
|
var IntersectionObserver = $rindoWindow.IntersectionObserver;
|
|
256065
|
+
var ResizeObserver = $rindoWindow.ResizeObserver;
|
|
252870
256066
|
var KeyboardEvent = $rindoWindow.KeyboardEvent;
|
|
252871
256067
|
var MouseEvent = $rindoWindow.MouseEvent;
|
|
252872
256068
|
var Node = $rindoWindow.Node;
|
|
@@ -253019,6 +256215,10 @@ var writeHydrateOutput = async (config, compilerCtx, buildCtx, outputTarget, rol
|
|
|
253019
256215
|
rollupOutput.output.map(async (output) => {
|
|
253020
256216
|
if (output.type === "chunk") {
|
|
253021
256217
|
output.code = relocateHydrateContextConst(config, compilerCtx, output.code);
|
|
256218
|
+
output.code = output.code.replace(
|
|
256219
|
+
`// const ${MODE_RESOLUTION_CHAIN_DECLARATION}`,
|
|
256220
|
+
`const ${MODE_RESOLUTION_CHAIN_DECLARATION}`
|
|
256221
|
+
);
|
|
253022
256222
|
const filePath = join(hydrateAppDirPath, output.fileName);
|
|
253023
256223
|
await compilerCtx.fs.writeFile(filePath, output.code, { immediateWrite: true });
|
|
253024
256224
|
}
|
|
@@ -253074,6 +256274,7 @@ var generateHydrateApp = async (config, compilerCtx, buildCtx, outputTargets) =>
|
|
|
253074
256274
|
const packageDir = join(config.sys.getCompilerExecutingPath(), "..", "..");
|
|
253075
256275
|
const input = join(packageDir, "internal", "hydrate", "runner.js");
|
|
253076
256276
|
const mockDoc = join(packageDir, "mock-doc", "index.js");
|
|
256277
|
+
const appData = join(packageDir, "internal", "app-data", "index.js");
|
|
253077
256278
|
const rollupOptions = {
|
|
253078
256279
|
...config.rollupConfig.inputOptions,
|
|
253079
256280
|
external: ["stream"],
|
|
@@ -253089,6 +256290,9 @@ var generateHydrateApp = async (config, compilerCtx, buildCtx, outputTargets) =>
|
|
|
253089
256290
|
if (id === RINDO_MOCK_DOC_ID) {
|
|
253090
256291
|
return mockDoc;
|
|
253091
256292
|
}
|
|
256293
|
+
if (id === RINDO_APP_DATA_ID) {
|
|
256294
|
+
return appData;
|
|
256295
|
+
}
|
|
253092
256296
|
return null;
|
|
253093
256297
|
},
|
|
253094
256298
|
load(id) {
|
|
@@ -253096,6 +256300,9 @@ var generateHydrateApp = async (config, compilerCtx, buildCtx, outputTargets) =>
|
|
|
253096
256300
|
return generateHydrateFactory(config, compilerCtx, buildCtx);
|
|
253097
256301
|
}
|
|
253098
256302
|
return null;
|
|
256303
|
+
},
|
|
256304
|
+
transform(code) {
|
|
256305
|
+
return code.replace(`var ${MODE_RESOLUTION_CHAIN_DECLARATION}`, "");
|
|
253099
256306
|
}
|
|
253100
256307
|
}
|
|
253101
256308
|
],
|
|
@@ -253342,7 +256549,7 @@ var generateModuleGraph = (cmps, bundleModules) => {
|
|
|
253342
256549
|
};
|
|
253343
256550
|
|
|
253344
256551
|
// src/compiler/transformers/component-lazy/transform-lazy-component.ts
|
|
253345
|
-
var import_typescript38 = __toESM(
|
|
256552
|
+
var import_typescript38 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
253346
256553
|
|
|
253347
256554
|
// src/compiler/transformers/component-lazy/lazy-component.ts
|
|
253348
256555
|
var updateLazyComponentClass = (transformOpts, styleStatements, classNode, moduleFile, cmp) => {
|
|
@@ -254198,6 +257405,10 @@ var DEFAULT_HASHED_FILENAME_LENGTH = 8;
|
|
|
254198
257405
|
var MIN_HASHED_FILENAME_LENGTH = 4;
|
|
254199
257406
|
var MAX_HASHED_FILENAME_LENGTH = 32;
|
|
254200
257407
|
var DEFAULT_NAMESPACE = "App";
|
|
257408
|
+
var DEFAULT_TARGET_COMPONENT_STYLES = {
|
|
257409
|
+
background: "#f9f",
|
|
257410
|
+
textColor: "#333"
|
|
257411
|
+
};
|
|
254201
257412
|
|
|
254202
257413
|
// src/compiler/config/outputs/validate-collection.ts
|
|
254203
257414
|
var validateCollection = (config, userOutputs) => {
|
|
@@ -254929,6 +258140,148 @@ var validateDevServer = (config, diagnostics) => {
|
|
|
254929
258140
|
return devServer;
|
|
254930
258141
|
};
|
|
254931
258142
|
|
|
258143
|
+
// src/compiler/docs/readme/docs-util.ts
|
|
258144
|
+
var MarkdownTable = class {
|
|
258145
|
+
constructor() {
|
|
258146
|
+
this.rows = [];
|
|
258147
|
+
}
|
|
258148
|
+
addHeader(data2) {
|
|
258149
|
+
this.addRow(data2, true);
|
|
258150
|
+
}
|
|
258151
|
+
addRow(data2, isHeader = false) {
|
|
258152
|
+
const colData = [];
|
|
258153
|
+
data2.forEach((text) => {
|
|
258154
|
+
const col = {
|
|
258155
|
+
text: escapeMarkdownTableColumn(text),
|
|
258156
|
+
width: text.length
|
|
258157
|
+
};
|
|
258158
|
+
colData.push(col);
|
|
258159
|
+
});
|
|
258160
|
+
this.rows.push({
|
|
258161
|
+
columns: colData,
|
|
258162
|
+
isHeader
|
|
258163
|
+
});
|
|
258164
|
+
}
|
|
258165
|
+
toMarkdown() {
|
|
258166
|
+
return createTable(this.rows);
|
|
258167
|
+
}
|
|
258168
|
+
};
|
|
258169
|
+
var escapeMarkdownTableColumn = (text) => {
|
|
258170
|
+
text = text.replace(/\r?\n/g, " ");
|
|
258171
|
+
text = text.replace(/\|/g, "\\|");
|
|
258172
|
+
return text;
|
|
258173
|
+
};
|
|
258174
|
+
var createTable = (rows) => {
|
|
258175
|
+
const content = [];
|
|
258176
|
+
if (rows.length === 0) {
|
|
258177
|
+
return content;
|
|
258178
|
+
}
|
|
258179
|
+
normalizeColumCount(rows);
|
|
258180
|
+
normalizeColumnWidth(rows);
|
|
258181
|
+
const th = rows.find((r) => r.isHeader);
|
|
258182
|
+
if (th) {
|
|
258183
|
+
const headerRow = createRow(th);
|
|
258184
|
+
content.push(headerRow);
|
|
258185
|
+
content.push(createBorder(th));
|
|
258186
|
+
}
|
|
258187
|
+
const tds = rows.filter((r) => !r.isHeader);
|
|
258188
|
+
tds.forEach((td2) => {
|
|
258189
|
+
content.push(createRow(td2));
|
|
258190
|
+
});
|
|
258191
|
+
return content;
|
|
258192
|
+
};
|
|
258193
|
+
var createBorder = (th) => {
|
|
258194
|
+
const border = {
|
|
258195
|
+
columns: [],
|
|
258196
|
+
isHeader: false
|
|
258197
|
+
};
|
|
258198
|
+
th.columns.forEach((c) => {
|
|
258199
|
+
const borderCol = {
|
|
258200
|
+
text: "",
|
|
258201
|
+
width: c.width
|
|
258202
|
+
};
|
|
258203
|
+
while (borderCol.text.length < borderCol.width) {
|
|
258204
|
+
borderCol.text += "-";
|
|
258205
|
+
}
|
|
258206
|
+
border.columns.push(borderCol);
|
|
258207
|
+
});
|
|
258208
|
+
return createRow(border);
|
|
258209
|
+
};
|
|
258210
|
+
var createRow = (row) => {
|
|
258211
|
+
const content = ["| "];
|
|
258212
|
+
row.columns.forEach((c) => {
|
|
258213
|
+
content.push(c.text);
|
|
258214
|
+
content.push(" | ");
|
|
258215
|
+
});
|
|
258216
|
+
return content.join("").trim();
|
|
258217
|
+
};
|
|
258218
|
+
var normalizeColumCount = (rows) => {
|
|
258219
|
+
let columnCount = 0;
|
|
258220
|
+
rows.forEach((r) => {
|
|
258221
|
+
if (r.columns.length > columnCount) {
|
|
258222
|
+
columnCount = r.columns.length;
|
|
258223
|
+
}
|
|
258224
|
+
});
|
|
258225
|
+
rows.forEach((r) => {
|
|
258226
|
+
while (r.columns.length < columnCount) {
|
|
258227
|
+
r.columns.push({
|
|
258228
|
+
text: ``,
|
|
258229
|
+
width: 0
|
|
258230
|
+
});
|
|
258231
|
+
}
|
|
258232
|
+
});
|
|
258233
|
+
};
|
|
258234
|
+
var normalizeColumnWidth = (rows) => {
|
|
258235
|
+
const columnCount = rows[0].columns.length;
|
|
258236
|
+
for (let columnIndex = 0; columnIndex < columnCount; columnIndex++) {
|
|
258237
|
+
let longestText = 0;
|
|
258238
|
+
rows.forEach((r) => {
|
|
258239
|
+
const col = r.columns[columnIndex];
|
|
258240
|
+
if (col.text.length > longestText) {
|
|
258241
|
+
longestText = col.text.length;
|
|
258242
|
+
}
|
|
258243
|
+
});
|
|
258244
|
+
rows.forEach((r) => {
|
|
258245
|
+
const col = r.columns[columnIndex];
|
|
258246
|
+
col.width = longestText;
|
|
258247
|
+
while (col.text.length < longestText) {
|
|
258248
|
+
col.text += " ";
|
|
258249
|
+
}
|
|
258250
|
+
});
|
|
258251
|
+
}
|
|
258252
|
+
};
|
|
258253
|
+
var isHexColor = (str) => {
|
|
258254
|
+
const hexColorRegex = /^#([0-9A-Fa-f]{3}){1,2}$/;
|
|
258255
|
+
return hexColorRegex.test(str);
|
|
258256
|
+
};
|
|
258257
|
+
|
|
258258
|
+
// src/compiler/config/validate-docs.ts
|
|
258259
|
+
var validateDocs2 = (config, logger) => {
|
|
258260
|
+
var _a, _b, _c;
|
|
258261
|
+
const { background: defaultBackground, textColor: defaultTextColor } = DEFAULT_TARGET_COMPONENT_STYLES;
|
|
258262
|
+
let { background = defaultBackground, textColor = defaultTextColor } = (_c = (_b = (_a = config.docs) == null ? void 0 : _a.markdown) == null ? void 0 : _b.targetComponent) != null ? _c : DEFAULT_TARGET_COMPONENT_STYLES;
|
|
258263
|
+
if (!isHexColor(background)) {
|
|
258264
|
+
logger.warn(
|
|
258265
|
+
`'${background}' is not a valid hex color. The default value for diagram backgrounds ('${defaultBackground}') will be used.`
|
|
258266
|
+
);
|
|
258267
|
+
background = defaultBackground;
|
|
258268
|
+
}
|
|
258269
|
+
if (!isHexColor(textColor)) {
|
|
258270
|
+
logger.warn(
|
|
258271
|
+
`'${textColor}' is not a valid hex color. The default value for diagram text ('${defaultTextColor}') will be used.`
|
|
258272
|
+
);
|
|
258273
|
+
textColor = defaultTextColor;
|
|
258274
|
+
}
|
|
258275
|
+
return {
|
|
258276
|
+
markdown: {
|
|
258277
|
+
targetComponent: {
|
|
258278
|
+
background,
|
|
258279
|
+
textColor
|
|
258280
|
+
}
|
|
258281
|
+
}
|
|
258282
|
+
};
|
|
258283
|
+
};
|
|
258284
|
+
|
|
254932
258285
|
// src/compiler/config/validate-hydrated.ts
|
|
254933
258286
|
var validateHydrated = (config) => {
|
|
254934
258287
|
var _a;
|
|
@@ -255330,6 +258683,7 @@ var validateConfig = (userConfig = {}, bootstrapConfig) => {
|
|
|
255330
258683
|
rollupConfig: validateRollupConfig(config),
|
|
255331
258684
|
sys: (_h = (_g = config.sys) != null ? _g : bootstrapConfig.sys) != null ? _h : (0, import_sys_api_node.createNodeSys)({ logger }),
|
|
255332
258685
|
testing: (_i = config.testing) != null ? _i : {},
|
|
258686
|
+
docs: validateDocs2(config, logger),
|
|
255333
258687
|
transformAliasedImportPaths: isBoolean(userConfig.transformAliasedImportPaths) ? userConfig.transformAliasedImportPaths : true,
|
|
255334
258688
|
validatePrimaryPackageOutputTarget: (_j = userConfig.validatePrimaryPackageOutputTarget) != null ? _j : false,
|
|
255335
258689
|
...validateNamespace(config.namespace, config.fsNamespace, diagnostics),
|
|
@@ -255933,6 +259287,9 @@ var generateUsages = async (compilerCtx, usagesDir) => {
|
|
|
255933
259287
|
|
|
255934
259288
|
// src/compiler/output-targets/output-custom.ts
|
|
255935
259289
|
var outputCustom = async (config, compilerCtx, buildCtx) => {
|
|
259290
|
+
if (config._isTesting) {
|
|
259291
|
+
return;
|
|
259292
|
+
}
|
|
255936
259293
|
const task = config.watch ? "always" : "onBuildOnly";
|
|
255937
259294
|
const customOutputTargets = config.outputTargets.filter(isOutputTargetCustom).filter((o) => o.taskShouldRun === void 0 ? true : o.taskShouldRun === task);
|
|
255938
259295
|
if (customOutputTargets.length === 0) {
|
|
@@ -256024,117 +259381,6 @@ var writeDocsOutput = async (compilerCtx, jsonOutput, jsonContent, typesContent)
|
|
|
256024
259381
|
]);
|
|
256025
259382
|
};
|
|
256026
259383
|
|
|
256027
|
-
// src/compiler/docs/readme/docs-util.ts
|
|
256028
|
-
var MarkdownTable = class {
|
|
256029
|
-
constructor() {
|
|
256030
|
-
this.rows = [];
|
|
256031
|
-
}
|
|
256032
|
-
addHeader(data2) {
|
|
256033
|
-
this.addRow(data2, true);
|
|
256034
|
-
}
|
|
256035
|
-
addRow(data2, isHeader = false) {
|
|
256036
|
-
const colData = [];
|
|
256037
|
-
data2.forEach((text) => {
|
|
256038
|
-
const col = {
|
|
256039
|
-
text: escapeMarkdownTableColumn(text),
|
|
256040
|
-
width: text.length
|
|
256041
|
-
};
|
|
256042
|
-
colData.push(col);
|
|
256043
|
-
});
|
|
256044
|
-
this.rows.push({
|
|
256045
|
-
columns: colData,
|
|
256046
|
-
isHeader
|
|
256047
|
-
});
|
|
256048
|
-
}
|
|
256049
|
-
toMarkdown() {
|
|
256050
|
-
return createTable(this.rows);
|
|
256051
|
-
}
|
|
256052
|
-
};
|
|
256053
|
-
var escapeMarkdownTableColumn = (text) => {
|
|
256054
|
-
text = text.replace(/\r?\n/g, " ");
|
|
256055
|
-
text = text.replace(/\|/g, "\\|");
|
|
256056
|
-
return text;
|
|
256057
|
-
};
|
|
256058
|
-
var createTable = (rows) => {
|
|
256059
|
-
const content = [];
|
|
256060
|
-
if (rows.length === 0) {
|
|
256061
|
-
return content;
|
|
256062
|
-
}
|
|
256063
|
-
normalizeColumCount(rows);
|
|
256064
|
-
normalizeColumnWidth(rows);
|
|
256065
|
-
const th = rows.find((r) => r.isHeader);
|
|
256066
|
-
if (th) {
|
|
256067
|
-
const headerRow = createRow(th);
|
|
256068
|
-
content.push(headerRow);
|
|
256069
|
-
content.push(createBorder(th));
|
|
256070
|
-
}
|
|
256071
|
-
const tds = rows.filter((r) => !r.isHeader);
|
|
256072
|
-
tds.forEach((td2) => {
|
|
256073
|
-
content.push(createRow(td2));
|
|
256074
|
-
});
|
|
256075
|
-
return content;
|
|
256076
|
-
};
|
|
256077
|
-
var createBorder = (th) => {
|
|
256078
|
-
const border = {
|
|
256079
|
-
columns: [],
|
|
256080
|
-
isHeader: false
|
|
256081
|
-
};
|
|
256082
|
-
th.columns.forEach((c) => {
|
|
256083
|
-
const borderCol = {
|
|
256084
|
-
text: "",
|
|
256085
|
-
width: c.width
|
|
256086
|
-
};
|
|
256087
|
-
while (borderCol.text.length < borderCol.width) {
|
|
256088
|
-
borderCol.text += "-";
|
|
256089
|
-
}
|
|
256090
|
-
border.columns.push(borderCol);
|
|
256091
|
-
});
|
|
256092
|
-
return createRow(border);
|
|
256093
|
-
};
|
|
256094
|
-
var createRow = (row) => {
|
|
256095
|
-
const content = ["| "];
|
|
256096
|
-
row.columns.forEach((c) => {
|
|
256097
|
-
content.push(c.text);
|
|
256098
|
-
content.push(" | ");
|
|
256099
|
-
});
|
|
256100
|
-
return content.join("").trim();
|
|
256101
|
-
};
|
|
256102
|
-
var normalizeColumCount = (rows) => {
|
|
256103
|
-
let columnCount = 0;
|
|
256104
|
-
rows.forEach((r) => {
|
|
256105
|
-
if (r.columns.length > columnCount) {
|
|
256106
|
-
columnCount = r.columns.length;
|
|
256107
|
-
}
|
|
256108
|
-
});
|
|
256109
|
-
rows.forEach((r) => {
|
|
256110
|
-
while (r.columns.length < columnCount) {
|
|
256111
|
-
r.columns.push({
|
|
256112
|
-
text: ``,
|
|
256113
|
-
width: 0
|
|
256114
|
-
});
|
|
256115
|
-
}
|
|
256116
|
-
});
|
|
256117
|
-
};
|
|
256118
|
-
var normalizeColumnWidth = (rows) => {
|
|
256119
|
-
const columnCount = rows[0].columns.length;
|
|
256120
|
-
for (let columnIndex = 0; columnIndex < columnCount; columnIndex++) {
|
|
256121
|
-
let longestText = 0;
|
|
256122
|
-
rows.forEach((r) => {
|
|
256123
|
-
const col = r.columns[columnIndex];
|
|
256124
|
-
if (col.text.length > longestText) {
|
|
256125
|
-
longestText = col.text.length;
|
|
256126
|
-
}
|
|
256127
|
-
});
|
|
256128
|
-
rows.forEach((r) => {
|
|
256129
|
-
const col = r.columns[columnIndex];
|
|
256130
|
-
col.width = longestText;
|
|
256131
|
-
while (col.text.length < longestText) {
|
|
256132
|
-
col.text += " ";
|
|
256133
|
-
}
|
|
256134
|
-
});
|
|
256135
|
-
}
|
|
256136
|
-
};
|
|
256137
|
-
|
|
256138
259384
|
// src/compiler/docs/readme/markdown-css-props.ts
|
|
256139
259385
|
var stylesToMarkdown = (styles) => {
|
|
256140
259386
|
const content = [];
|
|
@@ -256155,7 +259401,7 @@ var stylesToMarkdown = (styles) => {
|
|
|
256155
259401
|
};
|
|
256156
259402
|
|
|
256157
259403
|
// src/compiler/docs/readme/markdown-dependencies.ts
|
|
256158
|
-
var depsToMarkdown = (cmp, cmps) => {
|
|
259404
|
+
var depsToMarkdown = (cmp, cmps, config) => {
|
|
256159
259405
|
const content = [];
|
|
256160
259406
|
const deps = Object.entries(cmp.dependencyGraph);
|
|
256161
259407
|
if (deps.length === 0) {
|
|
@@ -256185,7 +259431,8 @@ var depsToMarkdown = (cmp, cmps) => {
|
|
|
256185
259431
|
content.push(` ${key} --> ${dep}`);
|
|
256186
259432
|
});
|
|
256187
259433
|
});
|
|
256188
|
-
|
|
259434
|
+
const { background, textColor } = config.docs.markdown.targetComponent;
|
|
259435
|
+
content.push(` style ${cmp.tag} fill:${background},stroke:${textColor},stroke-width:4px`);
|
|
256189
259436
|
content.push("```");
|
|
256190
259437
|
content.push(``);
|
|
256191
259438
|
return content;
|
|
@@ -256398,7 +259645,7 @@ var generateReadme = async (config, compilerCtx, readmeOutputs, docsData, cmps)
|
|
|
256398
259645
|
// generated content from that file and preserve that.
|
|
256399
259646
|
await getUserReadmeContent(compilerCtx, readmeOutputPath)
|
|
256400
259647
|
) : userContent;
|
|
256401
|
-
const readmeContent = generateMarkdown(currentReadmeContent, docsData, cmps, readmeOutput);
|
|
259648
|
+
const readmeContent = generateMarkdown(currentReadmeContent, docsData, cmps, readmeOutput, config);
|
|
256402
259649
|
const results = await compilerCtx.fs.writeFile(readmeOutputPath, readmeContent);
|
|
256403
259650
|
if (results.changedContent) {
|
|
256404
259651
|
if (isUpdate) {
|
|
@@ -256411,8 +259658,8 @@ var generateReadme = async (config, compilerCtx, readmeOutputs, docsData, cmps)
|
|
|
256411
259658
|
})
|
|
256412
259659
|
);
|
|
256413
259660
|
};
|
|
256414
|
-
var generateMarkdown = (userContent, cmp, cmps, readmeOutput) => {
|
|
256415
|
-
const dependencies = readmeOutput.dependencies !== false ? depsToMarkdown(cmp, cmps) : [];
|
|
259661
|
+
var generateMarkdown = (userContent, cmp, cmps, readmeOutput, config) => {
|
|
259662
|
+
const dependencies = readmeOutput.dependencies !== false ? depsToMarkdown(cmp, cmps, config) : [];
|
|
256416
259663
|
return [
|
|
256417
259664
|
userContent || "",
|
|
256418
259665
|
AUTO_GENERATE_COMMENT,
|
|
@@ -257084,7 +260331,7 @@ var sortImportNames = (a, b) => {
|
|
|
257084
260331
|
|
|
257085
260332
|
// src/compiler/types/update-import-refs.ts
|
|
257086
260333
|
var import_path41 = require("path");
|
|
257087
|
-
var import_typescript39 = __toESM(
|
|
260334
|
+
var import_typescript39 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
257088
260335
|
var updateReferenceTypeImports = (importDataObj, typeCounts, cmp, filePath, config) => {
|
|
257089
260336
|
const updateImportReferences = updateImportReferenceFactory(typeCounts, filePath, config);
|
|
257090
260337
|
return [...cmp.properties, ...cmp.events, ...cmp.methods].filter(
|
|
@@ -257189,7 +260436,9 @@ var generateComponentTypesFile = (config, buildCtx, areTypesInternal) => {
|
|
|
257189
260436
|
importFilePath = normalizePath("./" + relative(config.srcDir, filePath)).replace(/\.(tsx|ts)$/, "");
|
|
257190
260437
|
}
|
|
257191
260438
|
return `{ ${typeData.sort(sortImportNames).map((td2) => {
|
|
257192
|
-
if (td2.originalName ===
|
|
260439
|
+
if (td2.originalName === "") {
|
|
260440
|
+
return `${td2.localName}`;
|
|
260441
|
+
} else if (td2.originalName === td2.importName) {
|
|
257193
260442
|
return `${td2.originalName}`;
|
|
257194
260443
|
} else {
|
|
257195
260444
|
return `${td2.originalName} as ${td2.importName}`;
|
|
@@ -257631,7 +260880,7 @@ var getRegisterSwScript = (doc, buildCtx, swUrl) => {
|
|
|
257631
260880
|
};
|
|
257632
260881
|
|
|
257633
260882
|
// src/compiler/html/inline-esm-import.ts
|
|
257634
|
-
var import_typescript40 = __toESM(
|
|
260883
|
+
var import_typescript40 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
257635
260884
|
|
|
257636
260885
|
// src/compiler/output-targets/copy/hashed-copy.ts
|
|
257637
260886
|
var import_path44 = require("path");
|
|
@@ -258096,7 +261345,7 @@ function resolveTransitiveDependents(cmp, cmps) {
|
|
|
258096
261345
|
}
|
|
258097
261346
|
|
|
258098
261347
|
// src/compiler/transformers/automatic-key-insertion/index.ts
|
|
258099
|
-
var import_typescript41 = __toESM(
|
|
261348
|
+
var import_typescript41 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258100
261349
|
|
|
258101
261350
|
// src/compiler/transformers/automatic-key-insertion/utils.ts
|
|
258102
261351
|
var import_crypto2 = require("crypto");
|
|
@@ -258213,13 +261462,13 @@ function attrNameToString(attr) {
|
|
|
258213
261462
|
}
|
|
258214
261463
|
|
|
258215
261464
|
// src/compiler/transformers/decorators-to-static/convert-decorators.ts
|
|
258216
|
-
var import_typescript54 = __toESM(
|
|
261465
|
+
var import_typescript54 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258217
261466
|
|
|
258218
261467
|
// src/compiler/transformers/decorators-to-static/attach-internals.ts
|
|
258219
|
-
var import_typescript43 = __toESM(
|
|
261468
|
+
var import_typescript43 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258220
261469
|
|
|
258221
261470
|
// src/compiler/transformers/decorators-to-static/decorator-utils.ts
|
|
258222
|
-
var import_typescript42 = __toESM(
|
|
261471
|
+
var import_typescript42 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258223
261472
|
var getDecoratorParameters = (decorator, typeChecker) => {
|
|
258224
261473
|
if (!import_typescript42.default.isCallExpression(decorator.expression)) {
|
|
258225
261474
|
return [];
|
|
@@ -258265,11 +261514,11 @@ var attachInternalsDecoratorsToStatic = (diagnostics, decoratedMembers, newMembe
|
|
|
258265
261514
|
};
|
|
258266
261515
|
|
|
258267
261516
|
// src/compiler/transformers/decorators-to-static/component-decorator.ts
|
|
258268
|
-
var import_typescript45 = __toESM(
|
|
261517
|
+
var import_typescript45 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258269
261518
|
|
|
258270
261519
|
// src/compiler/transformers/decorators-to-static/style-to-static.ts
|
|
258271
261520
|
var import_path45 = require("path");
|
|
258272
|
-
var import_typescript44 = __toESM(
|
|
261521
|
+
var import_typescript44 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258273
261522
|
var styleToStatic = (newMembers, componentOptions) => {
|
|
258274
261523
|
const defaultModeStyles = [];
|
|
258275
261524
|
if (componentOptions.styleUrls) {
|
|
@@ -258477,7 +261726,7 @@ var MEMBER_DECORATORS_TO_REMOVE = [
|
|
|
258477
261726
|
var CONSTRUCTOR_DEFINED_MEMBER_DECORATORS = ["State", "Prop"];
|
|
258478
261727
|
|
|
258479
261728
|
// src/compiler/transformers/decorators-to-static/element-decorator.ts
|
|
258480
|
-
var import_typescript46 = __toESM(
|
|
261729
|
+
var import_typescript46 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258481
261730
|
var elementDecoratorsToStatic = (diagnostics, decoratedMembers, newMembers, decoratorName) => {
|
|
258482
261731
|
const elementRefs = decoratedMembers.filter(import_typescript46.default.isPropertyDeclaration).map((prop) => parseElementDecorator(prop, decoratorName)).filter((element) => !!element);
|
|
258483
261732
|
if (elementRefs.length > 0) {
|
|
@@ -258498,7 +261747,7 @@ var parseElementDecorator = (prop, decoratorName) => {
|
|
|
258498
261747
|
};
|
|
258499
261748
|
|
|
258500
261749
|
// src/compiler/transformers/decorators-to-static/event-decorator.ts
|
|
258501
|
-
var import_typescript47 = __toESM(
|
|
261750
|
+
var import_typescript47 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258502
261751
|
var eventDecoratorsToStatic = (diagnostics, decoratedProps, typeChecker, program, newMembers, decoratorName) => {
|
|
258503
261752
|
const events = decoratedProps.filter(import_typescript47.default.isPropertyDeclaration).map((prop) => parseEventDecorator(diagnostics, typeChecker, program, prop, decoratorName)).filter((ev) => !!ev);
|
|
258504
261753
|
if (events.length > 0) {
|
|
@@ -258841,7 +262090,7 @@ var DOM_EVENT_NAMES = new Set(
|
|
|
258841
262090
|
);
|
|
258842
262091
|
|
|
258843
262092
|
// src/compiler/transformers/decorators-to-static/import-alias-map.ts
|
|
258844
|
-
var import_typescript48 = __toESM(
|
|
262093
|
+
var import_typescript48 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258845
262094
|
var ImportAliasMap = class extends Map {
|
|
258846
262095
|
constructor(sourceFile) {
|
|
258847
262096
|
super();
|
|
@@ -258878,7 +262127,7 @@ var ImportAliasMap = class extends Map {
|
|
|
258878
262127
|
};
|
|
258879
262128
|
|
|
258880
262129
|
// src/compiler/transformers/decorators-to-static/listen-decorator.ts
|
|
258881
|
-
var import_typescript49 = __toESM(
|
|
262130
|
+
var import_typescript49 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258882
262131
|
var listenDecoratorsToStatic = (diagnostics, typeChecker, decoratedMembers, newMembers, decoratorName) => {
|
|
258883
262132
|
const listeners = decoratedMembers.filter(import_typescript49.default.isMethodDeclaration).map((method) => parseListenDecorators(diagnostics, typeChecker, method, decoratorName));
|
|
258884
262133
|
const flatListeners = flatOne(listeners);
|
|
@@ -258960,7 +262209,7 @@ var PASSIVE_TRUE_DEFAULTS = /* @__PURE__ */ new Set([
|
|
|
258960
262209
|
]);
|
|
258961
262210
|
|
|
258962
262211
|
// src/compiler/transformers/decorators-to-static/method-decorator.ts
|
|
258963
|
-
var import_typescript50 = __toESM(
|
|
262212
|
+
var import_typescript50 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
258964
262213
|
|
|
258965
262214
|
// src/compiler/transformers/reserved-public-members.ts
|
|
258966
262215
|
var validatePublicName = (diagnostics, memberName, decorator, memberType, node) => {
|
|
@@ -258977,6 +262226,7 @@ var validatePublicName = (diagnostics, memberName, decorator, memberType, node)
|
|
|
258977
262226
|
}
|
|
258978
262227
|
};
|
|
258979
262228
|
var HTML_ELEMENT_KEYS = [
|
|
262229
|
+
"popover",
|
|
258980
262230
|
"title",
|
|
258981
262231
|
"lang",
|
|
258982
262232
|
"translate",
|
|
@@ -259317,7 +262567,7 @@ var validateMethods = (diagnostics, members) => {
|
|
|
259317
262567
|
};
|
|
259318
262568
|
|
|
259319
262569
|
// src/compiler/transformers/decorators-to-static/prop-decorator.ts
|
|
259320
|
-
var import_typescript51 = __toESM(
|
|
262570
|
+
var import_typescript51 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259321
262571
|
var propDecoratorsToStatic = (diagnostics, decoratedProps, typeChecker, program, newMembers, decoratorName) => {
|
|
259322
262572
|
const properties = decoratedProps.filter(import_typescript51.default.isPropertyDeclaration).map((prop) => parsePropDecorator(diagnostics, typeChecker, program, prop, decoratorName)).filter((prop) => prop != null);
|
|
259323
262573
|
if (properties.length > 0) {
|
|
@@ -259471,7 +262721,7 @@ var isAny = (t) => {
|
|
|
259471
262721
|
};
|
|
259472
262722
|
|
|
259473
262723
|
// src/compiler/transformers/decorators-to-static/state-decorator.ts
|
|
259474
|
-
var import_typescript52 = __toESM(
|
|
262724
|
+
var import_typescript52 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259475
262725
|
var stateDecoratorsToStatic = (decoratedProps, newMembers, typeChecker, decoratorName) => {
|
|
259476
262726
|
const states = decoratedProps.filter(import_typescript52.default.isPropertyDeclaration).map((prop) => stateDecoratorToStatic(prop, typeChecker, decoratorName)).filter((state) => !!state);
|
|
259477
262727
|
if (states.length > 0) {
|
|
@@ -259492,7 +262742,7 @@ var stateDecoratorToStatic = (prop, typeChecker, decoratorName) => {
|
|
|
259492
262742
|
};
|
|
259493
262743
|
|
|
259494
262744
|
// src/compiler/transformers/decorators-to-static/watch-decorator.ts
|
|
259495
|
-
var import_typescript53 = __toESM(
|
|
262745
|
+
var import_typescript53 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259496
262746
|
var watchDecoratorsToStatic = (typeChecker, decoratedProps, newMembers, decoratorName) => {
|
|
259497
262747
|
const watchers = decoratedProps.filter(import_typescript53.default.isMethodDeclaration).map((method) => parseWatchDecorator(typeChecker, method, decoratorName));
|
|
259498
262748
|
const flatWatchers = flatOne(watchers);
|
|
@@ -259706,13 +262956,13 @@ var shouldInitializeInConstructor = (member2, importAliasMap) => {
|
|
|
259706
262956
|
|
|
259707
262957
|
// src/compiler/transformers/static-to-meta/parse-static.ts
|
|
259708
262958
|
var import_path51 = require("path");
|
|
259709
|
-
var import_typescript62 = __toESM(
|
|
262959
|
+
var import_typescript62 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259710
262960
|
|
|
259711
262961
|
// src/compiler/transformers/static-to-meta/call-expression.ts
|
|
259712
|
-
var import_typescript56 = __toESM(
|
|
262962
|
+
var import_typescript56 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259713
262963
|
|
|
259714
262964
|
// src/compiler/transformers/static-to-meta/vdom.ts
|
|
259715
|
-
var import_typescript55 = __toESM(
|
|
262965
|
+
var import_typescript55 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259716
262966
|
var gatherVdomMeta = (m, args) => {
|
|
259717
262967
|
m.hasVdomRender = true;
|
|
259718
262968
|
const hTag = args[0];
|
|
@@ -259827,10 +263077,10 @@ var visitCallExpressionArg = (m, arg) => {
|
|
|
259827
263077
|
|
|
259828
263078
|
// src/compiler/transformers/static-to-meta/component.ts
|
|
259829
263079
|
var import_path47 = require("path");
|
|
259830
|
-
var import_typescript59 = __toESM(
|
|
263080
|
+
var import_typescript59 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259831
263081
|
|
|
259832
263082
|
// src/compiler/transformers/add-component-meta-static.ts
|
|
259833
|
-
var import_typescript57 = __toESM(
|
|
263083
|
+
var import_typescript57 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259834
263084
|
var addComponentMetaStatic = (cmpNode, cmpMeta) => {
|
|
259835
263085
|
const publicCompilerMeta = getPublicCompilerMeta(cmpMeta);
|
|
259836
263086
|
const cmpMetaStaticProp = createStaticGetter("COMPILER_META", convertValueToLiteral(publicCompilerMeta));
|
|
@@ -259910,7 +263160,7 @@ var parseAttachInternals = (staticMembers) => {
|
|
|
259910
263160
|
};
|
|
259911
263161
|
|
|
259912
263162
|
// src/compiler/transformers/static-to-meta/class-methods.ts
|
|
259913
|
-
var import_typescript58 = __toESM(
|
|
263163
|
+
var import_typescript58 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
259914
263164
|
var parseClassMethods = (cmpNode, cmpMeta) => {
|
|
259915
263165
|
const classMembers = cmpNode.members;
|
|
259916
263166
|
if (!classMembers || classMembers.length === 0) {
|
|
@@ -260341,7 +263591,7 @@ var validateComponentMembers = (node) => {
|
|
|
260341
263591
|
import_typescript59.default.isGetAccessorDeclaration(node) && import_typescript59.default.isIdentifier(node.name) && typeof node.name.escapedText === "string" && BLACKLISTED_COMPONENT_METHODS.includes(node.name.escapedText) && /**
|
|
260342
263592
|
* the parent node is a class declaration
|
|
260343
263593
|
*/
|
|
260344
|
-
import_typescript59.default.isClassDeclaration(node.parent)
|
|
263594
|
+
node.parent && import_typescript59.default.isClassDeclaration(node.parent)
|
|
260345
263595
|
) {
|
|
260346
263596
|
const propName = node.name.escapedText;
|
|
260347
263597
|
const decorator = import_typescript59.default.getDecorators(node.parent)[0];
|
|
@@ -260392,7 +263642,7 @@ var parseAssetsDirs = (staticMembers, componentFilePath) => {
|
|
|
260392
263642
|
|
|
260393
263643
|
// src/compiler/transformers/static-to-meta/import.ts
|
|
260394
263644
|
var import_path50 = require("path");
|
|
260395
|
-
var import_typescript61 = __toESM(
|
|
263645
|
+
var import_typescript61 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
260396
263646
|
|
|
260397
263647
|
// src/compiler/transformers/collections/add-external-import.ts
|
|
260398
263648
|
var import_path49 = require("path");
|
|
@@ -260401,7 +263651,7 @@ var import_path49 = require("path");
|
|
|
260401
263651
|
var import_path48 = require("path");
|
|
260402
263652
|
|
|
260403
263653
|
// src/compiler/transformers/collections/parse-collection-components.ts
|
|
260404
|
-
var import_typescript60 = __toESM(
|
|
263654
|
+
var import_typescript60 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
260405
263655
|
var parseCollectionComponents = (config, compilerCtx, buildCtx, collectionDir, collectionManifest, collection) => {
|
|
260406
263656
|
if (collectionManifest.entries) {
|
|
260407
263657
|
collectionManifest.entries.forEach((entryPath) => {
|
|
@@ -261875,7 +265125,7 @@ var isWatchIgnorePath = (config, path6) => {
|
|
|
261875
265125
|
};
|
|
261876
265126
|
|
|
261877
265127
|
// src/compiler/transpile/create-watch-program.ts
|
|
261878
|
-
var import_typescript63 = __toESM(
|
|
265128
|
+
var import_typescript63 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
261879
265129
|
var createTsWatchProgram = async (config, buildCallback) => {
|
|
261880
265130
|
let isRunning = false;
|
|
261881
265131
|
let lastTsBuilder;
|
|
@@ -261996,6 +265246,17 @@ var createWatchBuild = async (config, compilerCtx) => {
|
|
|
261996
265246
|
`WATCH_BUILD::watchBuild::onBuild filesWritten: ${formatFilesForDebug(buildCtx.filesWritten)}`
|
|
261997
265247
|
);
|
|
261998
265248
|
}
|
|
265249
|
+
Array.from(compilerCtx.moduleMap.keys()).forEach((key) => {
|
|
265250
|
+
if (filesUpdated.has(key) || filesDeleted.has(key)) {
|
|
265251
|
+
const fileExists = compilerCtx.fs.accessSync(key);
|
|
265252
|
+
if (!fileExists) {
|
|
265253
|
+
compilerCtx.moduleMap.delete(key);
|
|
265254
|
+
}
|
|
265255
|
+
}
|
|
265256
|
+
});
|
|
265257
|
+
(/* @__PURE__ */ new Set([...filesUpdated, ...filesAdded])).forEach((filePath) => {
|
|
265258
|
+
compilerCtx.addWatchFile(filePath);
|
|
265259
|
+
});
|
|
261999
265260
|
dirsAdded.clear();
|
|
262000
265261
|
dirsDeleted.clear();
|
|
262001
265262
|
filesAdded.clear();
|
|
@@ -263979,7 +267240,7 @@ var extname8 = (str) => {
|
|
|
263979
267240
|
var SKIP_EXT = /* @__PURE__ */ new Set(["zip", "rar", "tar", "gz", "bz2", "png", "jpeg", "jpg", "gif", "pdf", "tiff", "psd"]);
|
|
263980
267241
|
|
|
263981
267242
|
// src/compiler/sys/node-require.ts
|
|
263982
|
-
var import_typescript64 = __toESM(
|
|
267243
|
+
var import_typescript64 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
263983
267244
|
var nodeRequire = (id) => {
|
|
263984
267245
|
const results = {
|
|
263985
267246
|
module: void 0,
|
|
@@ -264836,7 +268097,7 @@ var import_path63 = require("path");
|
|
|
264836
268097
|
|
|
264837
268098
|
// src/compiler/sys/typescript/typescript-config.ts
|
|
264838
268099
|
var import_path62 = require("path");
|
|
264839
|
-
var import_typescript66 = __toESM(
|
|
268100
|
+
var import_typescript66 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
264840
268101
|
var validateTsConfig = async (config, sys, init) => {
|
|
264841
268102
|
var _a;
|
|
264842
268103
|
const tsconfig = {
|
|
@@ -266315,11 +269576,11 @@ var VALID_TARGET = /* @__PURE__ */ new Set(["latest", "esnext", "es2020", "es201
|
|
|
266315
269576
|
|
|
266316
269577
|
// src/compiler/transpile/transpile-module.ts
|
|
266317
269578
|
var import_sys_api_node5 = require("../sys/node/index.js");
|
|
266318
|
-
var import_typescript68 = __toESM(
|
|
269579
|
+
var import_typescript68 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
266319
269580
|
|
|
266320
269581
|
// src/compiler/transformers/static-to-meta/visitor.ts
|
|
266321
269582
|
var import_path67 = require("path");
|
|
266322
|
-
var import_typescript67 = __toESM(
|
|
269583
|
+
var import_typescript67 = __toESM(require_typescript_5_5_4_bundle_cache_min());
|
|
266323
269584
|
var convertStaticToMeta = (config, compilerCtx, buildCtx, typeChecker, collection, transformOpts) => {
|
|
266324
269585
|
return (transformCtx) => {
|
|
266325
269586
|
let dirPath;
|