jspm 3.3.3 → 3.3.5

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.
Files changed (4) hide show
  1. package/Readme.md +40 -0
  2. package/dist/cli.js +951 -665
  3. package/package.json +9 -6
  4. package/README.md +0 -26
package/dist/cli.js CHANGED
@@ -3,7 +3,7 @@ var __esm = (fn, res) => function __init() {
3
3
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
4
4
  };
5
5
 
6
- // node_modules/rollup/dist/es/shared/node-entry.js
6
+ // ../node_modules/rollup/dist/es/shared/node-entry.js
7
7
  import { resolve, basename, extname as extname2, dirname, relative as relative$1 } from "node:path";
8
8
  import require$$0$1, { win32, posix, isAbsolute as isAbsolute$1, resolve as resolve$1 } from "path";
9
9
  import process$1, { env as env$1 } from "node:process";
@@ -59,8 +59,8 @@ function decodeInteger(mappings, pos, state, j) {
59
59
  let shift = 0;
60
60
  let integer = 0;
61
61
  do {
62
- const c9 = mappings.charCodeAt(pos++);
63
- integer = charToInt[c9];
62
+ const c11 = mappings.charCodeAt(pos++);
63
+ integer = charToInt[c11];
64
64
  value |= (integer & 31) << shift;
65
65
  shift += 5;
66
66
  } while (integer & 32);
@@ -232,14 +232,14 @@ function escapeId(id) {
232
232
  return id;
233
233
  return id.replace(backSlashRegEx, "\\\\").replace(quoteNewlineRegEx, "\\$1");
234
234
  }
235
- function isAbsolute(path4) {
236
- return ABSOLUTE_PATH_REGEX.test(path4);
235
+ function isAbsolute(path5) {
236
+ return ABSOLUTE_PATH_REGEX.test(path5);
237
237
  }
238
- function isRelative(path4) {
239
- return RELATIVE_PATH_REGEX.test(path4);
238
+ function isRelative(path5) {
239
+ return RELATIVE_PATH_REGEX.test(path5);
240
240
  }
241
- function normalize(path4) {
242
- return path4.replace(BACKSLASH_REGEX, "/");
241
+ function normalize(path5) {
242
+ return path5.replace(BACKSLASH_REGEX, "/");
243
243
  }
244
244
  function getAliasName(id) {
245
245
  const base2 = basename(id);
@@ -1041,8 +1041,8 @@ function getMemberReturnExpressionWhenCalled(members, memberName) {
1041
1041
  return UNKNOWN_RETURN_EXPRESSION;
1042
1042
  return [members[memberName].returns, false];
1043
1043
  }
1044
- function skipThrough(node, st, c9) {
1045
- c9(node, st);
1044
+ function skipThrough(node, st, c11) {
1045
+ c11(node, st);
1046
1046
  }
1047
1047
  function ignore(_node, _st, _c) {
1048
1048
  }
@@ -1244,9 +1244,9 @@ function is_reference(node, parent) {
1244
1244
  }
1245
1245
  return false;
1246
1246
  }
1247
- function getGlobalAtPath(path4) {
1247
+ function getGlobalAtPath(path5) {
1248
1248
  let currentGlobal = knownGlobals;
1249
- for (const pathSegment of path4) {
1249
+ for (const pathSegment of path5) {
1250
1250
  if (typeof pathSegment !== "string") {
1251
1251
  return null;
1252
1252
  }
@@ -1477,29 +1477,29 @@ function getPathIfNotComputed(memberExpression) {
1477
1477
  }
1478
1478
  return null;
1479
1479
  }
1480
- function getStringFromPath(path4) {
1481
- let pathString = path4[0].key;
1482
- for (let index = 1; index < path4.length; index++) {
1483
- pathString += "." + path4[index].key;
1480
+ function getStringFromPath(path5) {
1481
+ let pathString = path5[0].key;
1482
+ for (let index = 1; index < path5.length; index++) {
1483
+ pathString += "." + path5[index].key;
1484
1484
  }
1485
1485
  return pathString;
1486
1486
  }
1487
- function resolveNamespaceVariables(baseVariable, path4, astContext) {
1488
- if (path4.length === 0)
1487
+ function resolveNamespaceVariables(baseVariable, path5, astContext) {
1488
+ if (path5.length === 0)
1489
1489
  return baseVariable;
1490
1490
  if (!baseVariable.isNamespace || baseVariable instanceof ExternalVariable)
1491
1491
  return null;
1492
- const exportName = path4[0].key;
1492
+ const exportName = path5[0].key;
1493
1493
  const variable = baseVariable.context.traceExport(exportName);
1494
1494
  if (!variable) {
1495
- if (path4.length === 1) {
1495
+ if (path5.length === 1) {
1496
1496
  const fileName = baseVariable.context.fileName;
1497
- astContext.log(LOGLEVEL_WARN, logMissingExport(exportName, astContext.module.id, fileName), path4[0].pos);
1497
+ astContext.log(LOGLEVEL_WARN, logMissingExport(exportName, astContext.module.id, fileName), path5[0].pos);
1498
1498
  return "undefined";
1499
1499
  }
1500
1500
  return null;
1501
1501
  }
1502
- return resolveNamespaceVariables(variable, path4.slice(1), astContext);
1502
+ return resolveNamespaceVariables(variable, path5.slice(1), astContext);
1503
1503
  }
1504
1504
  function hasLoopBodyEffects(context, body) {
1505
1505
  const { brokenFlow, hasBreak, hasContinue, ignore: ignore2 } = context;
@@ -3161,17 +3161,17 @@ function analyseModuleExecution(entryModules) {
3161
3161
  }
3162
3162
  function getCyclePath(module, parent, parents) {
3163
3163
  const cycleSymbol = Symbol(module.id);
3164
- const path4 = [module.id];
3164
+ const path5 = [module.id];
3165
3165
  let nextModule = parent;
3166
3166
  module.cycles.add(cycleSymbol);
3167
3167
  while (nextModule !== module) {
3168
3168
  nextModule.cycles.add(cycleSymbol);
3169
- path4.push(nextModule.id);
3169
+ path5.push(nextModule.id);
3170
3170
  nextModule = parents.get(nextModule);
3171
3171
  }
3172
- path4.push(path4[0]);
3173
- path4.reverse();
3174
- return path4;
3172
+ path5.push(path5[0]);
3173
+ path5.reverse();
3174
+ return path5;
3175
3175
  }
3176
3176
  function getGenerateCodeSnippets({ compact, generatedCode: { arrowFunctions, constBindings, objectShorthand, reservedNamesAsProps } }) {
3177
3177
  const { _, n: n2, s } = compact ? { _: "", n: "", s: "" } : { _: " ", n: "\n", s: ";" };
@@ -4824,9 +4824,9 @@ async function writeOutputFile(outputFile, outputOptions) {
4824
4824
  await mkdir(dirname(fileName), { recursive: true });
4825
4825
  return writeFile(fileName, outputFile.type === "asset" ? outputFile.source : outputFile.code);
4826
4826
  }
4827
- var version$1, comma, semicolon, chars$1, intToChar, charToInt, td, BitSet, Chunk$1, btoa, SourceMap, toString$1, wordRegex, Mappings, n, warned, MagicString, hasOwnProp, Bundle$1, ANY_SLASH_REGEX, needsEscapeRegEx, quoteNewlineRegEx, backSlashRegEx, ABSOLUTE_PATH_REGEX, RELATIVE_PATH_REGEX, BACKSLASH_REGEX, UPPER_DIR_REGEX, ExternalChunk, UnknownKey, UnknownNonAccessorKey, UnknownInteger, SymbolToStringTag, EMPTY_PATH, UNKNOWN_PATH, UNKNOWN_NON_ACCESSOR_PATH, UNKNOWN_INTEGER_PATH, EntitiesKey, PathTracker, SHARED_RECURSION_TRACKER, DiscriminatedPathTracker, UnknownValue, UnknownTruthyValue, ExpressionEntity, UNKNOWN_EXPRESSION, UNKNOWN_RETURN_EXPRESSION, deoptimizeInteraction, INTERACTION_ACCESSED, INTERACTION_ASSIGNED, INTERACTION_CALLED, NODE_INTERACTION_UNKNOWN_ACCESS, NODE_INTERACTION_UNKNOWN_ASSIGNMENT, NODE_INTERACTION_UNKNOWN_CALL, Variable, ExternalVariable, BLANK, EMPTY_OBJECT, EMPTY_ARRAY, EMPTY_SET, RESERVED_NAMES, RESERVED_NAMES$1, illegalCharacters, startsWithDigit, needsEscape, LOGLEVEL_SILENT, LOGLEVEL_ERROR, LOGLEVEL_WARN, LOGLEVEL_INFO, LOGLEVEL_DEBUG, logLevelPriority, LINE_TRUNCATE_LENGTH, MIN_CHARACTERS_SHOWN_AFTER_LOCATION, ELLIPSIS, URL_AVOIDING_EVAL, URL_NAME_IS_NOT_EXPORTED, URL_THIS_IS_UNDEFINED, URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY, URL_SOURCEMAP_IS_LIKELY_TO_BE_INCORRECT, URL_MAXPARALLELFILEOPS, URL_OUTPUT_AMD_ID, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_DIR, URL_OUTPUT_DYNAMICIMPORTFUNCTION, URL_OUTPUT_EXPORTS, URL_OUTPUT_EXTEND, URL_OUTPUT_FORMAT, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_EXPERIMENTALDEEPCHUNKOPTIMIZATION, URL_OUTPUT_GENERATEDCODE_CONSTBINDINGS, URL_OUTPUT_GENERATEDCODE_SYMBOLS, URL_OUTPUT_GLOBALS, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, URL_OUTPUT_NAME, URL_OUTPUT_PRESERVEMODULES, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_SOURCEMAPFILE, URL_PRESERVEENTRYSIGNATURES, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_RENDERDYNAMICIMPORT, URL_THIS_GETMODULEIDS, URL_THIS_GETMODULEINFO, ADDON_ERROR, ALREADY_CLOSED, AMBIGUOUS_EXTERNAL_NAMESPACES, ANONYMOUS_PLUGIN_CACHE, ASSET_NOT_FINALISED, ASSET_NOT_FOUND, ASSET_SOURCE_ALREADY_SET, ASSET_SOURCE_MISSING, BAD_LOADER, CANNOT_CALL_NAMESPACE, CANNOT_EMIT_FROM_OPTIONS_HOOK, CHUNK_NOT_GENERATED, CHUNK_INVALID, CIRCULAR_DEPENDENCY, CIRCULAR_REEXPORT, CYCLIC_CROSS_CHUNK_REEXPORT, DEPRECATED_FEATURE, DUPLICATE_PLUGIN_NAME, EMPTY_BUNDLE, EVAL, EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS, EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES, EXTERNAL_SYNTHETIC_EXPORTS, FILE_NAME_CONFLICT, FILE_NOT_FOUND, FIRST_SIDE_EFFECT, ILLEGAL_IDENTIFIER_AS_NAME, ILLEGAL_REASSIGNMENT, INCONSISTENT_IMPORT_ASSERTIONS, INPUT_HOOK_IN_OUTPUT_PLUGIN, INVALID_CHUNK, INVALID_EXPORT_OPTION, INVALID_EXTERNAL_ID, INVALID_LOG_POSITION, INVALID_OPTION, INVALID_PLUGIN_HOOK, INVALID_ROLLUP_PHASE, INVALID_SETASSETSOURCE, INVALID_TLA_FORMAT, MISSING_EXPORT, MISSING_GLOBAL_NAME, MISSING_IMPLICIT_DEPENDANT, MISSING_NAME_OPTION_FOR_IIFE_EXPORT, MISSING_NODE_BUILTINS, MISSING_OPTION, MIXED_EXPORTS, MODULE_LEVEL_DIRECTIVE, NAMESPACE_CONFLICT, NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE, OPTIMIZE_CHUNK_STATUS, PARSE_ERROR, PLUGIN_ERROR, SHIMMED_EXPORT, SOURCEMAP_BROKEN, SOURCEMAP_ERROR, SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT, THIS_IS_UNDEFINED, UNEXPECTED_NAMED_IMPORT, UNKNOWN_OPTION, UNRESOLVED_ENTRY, UNRESOLVED_IMPORT, UNUSED_EXTERNAL_IMPORT, VALIDATION_ERROR, formatAssertions, ExternalModule, utils$3, path$1, WIN_SLASH, WIN_NO_SLASH, DOT_LITERAL, PLUS_LITERAL, QMARK_LITERAL, SLASH_LITERAL, ONE_CHAR, QMARK, END_ANCHOR, START_ANCHOR, DOTS_SLASH, NO_DOT, NO_DOTS, NO_DOT_SLASH, NO_DOTS_SLASH, QMARK_NO_DOT, STAR, POSIX_CHARS, WINDOWS_CHARS, POSIX_REGEX_SOURCE$1, constants$2, utils$2, CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET, isPathSeparator, depth, scan$1, scan_1, constants$1, utils$1, MAX_LENGTH, POSIX_REGEX_SOURCE, REGEX_NON_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS, expandRange, syntaxError, parse$2, parse_1, path2, scan, parse$1, utils, constants, isObject, picomatch$1, extractors, extractAssignedNames, reservedWords$1, builtins, forbiddenIdentifiers, UNDEFINED_EXPRESSION, returnsUnknown, UNKNOWN_LITERAL_BOOLEAN, returnsBoolean, UNKNOWN_LITERAL_NUMBER, returnsNumber, UNKNOWN_LITERAL_STRING, returnsString, stringReplace, objectMembers, literalBooleanMembers, literalNumberMembers, literalRegExpMembers, literalStringMembers, base$1, ArrowFunctionExpression$1, BinaryExpression$1, BlockStatement$1, CallExpression$1, ChainExpression$1, ConditionalExpression$1, ExportDefaultDeclaration$1, ExportNamedDeclaration$1, ExpressionStatement$1, FunctionDeclaration$1, Identifier$1, LogicalExpression$1, NewExpression$1, Program$1, Property$1, ReturnStatement$1, SequenceExpression$1, VariableDeclarator$1, VariableDeclaration$1, SOURCEMAPPING_URL, whiteSpaceNoNewline, SOURCEMAPPING_URL_RE, ANNOTATION_KEY, INVALID_COMMENT_KEY, neitherWithespaceNorBrackets, noWhitespace, annotationsRegexes, keys, INCLUDE_PARAMETERS, NodeBase, SpreadElement, Method, METHOD_RETURNS_BOOLEAN, METHOD_RETURNS_STRING, METHOD_RETURNS_NUMBER, METHOD_RETURNS_UNKNOWN, INTEGER_REG_EXP, ObjectEntity, isInteger, OBJECT_PROTOTYPE_FALLBACK, OBJECT_PROTOTYPE, NEW_ARRAY_PROPERTIES, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_BOOLEAN, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NUMBER, METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY, METHOD_DEOPTS_SELF_RETURNS_NEW_ARRAY, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY, METHOD_MUTATES_SELF_RETURNS_NUMBER, METHOD_MUTATES_SELF_RETURNS_UNKNOWN, METHOD_DEOPTS_SELF_RETURNS_UNKNOWN, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN, METHOD_MUTATES_SELF_RETURNS_SELF, METHOD_CALLS_ARG_MUTATES_SELF_RETURNS_SELF, ARRAY_PROTOTYPE, ArrayExpression, ArrayPattern, LocalVariable, MAX_TRACKED_INTERACTIONS, NO_INTERACTIONS, UNKNOWN_DEOPTIMIZED_FIELD, EMPTY_PATH_TRACKER, UNKNOWN_DEOPTIMIZED_ENTITY, ParameterVariable, chars, base, Scope$1, ChildScope, ParameterScope, ReturnValueScope, PureFunctionKey, getPureFunctions, doNothing, ValueProperties, getTruthyLiteralValue, returnFalse, returnTrue, PURE, IMPURE, PURE_WITH_ARRAY, GETTER_ACCESS, O, PF, PF_NO_GETTER, MUTATES_ARG_WITHOUT_ACCESSOR, C, PC, PC_WITH_ARRAY, ARRAY_TYPE, INTL_MEMBER, knownGlobals, GlobalVariable, tdzVariableKinds, Identifier, NO_SEMICOLON, NON_WHITESPACE, BlockScope, ExpressionStatement, BlockStatement, RestElement, FunctionBase, ArrowFunctionExpression, ObjectPattern, AssignmentExpression, AssignmentPattern, ArgumentsVariable, ThisVariable, FunctionScope, FunctionNode, AwaitExpression, binaryOperators, BinaryExpression, BreakStatement, Literal, MAX_PATH_DEPTH, MemberExpression, CallExpressionBase, CallExpression, CatchScope, CatchClause, ChainExpression, ClassBodyScope, ClassBody, MethodBase, MethodDefinition, ObjectMember, ClassNode, ClassDeclaration, ClassExpression, MultiExpression, ConditionalExpression, ContinueStatement, DoWhileStatement, EmptyStatement, ExportAllDeclaration, FunctionDeclaration, ExportDefaultDeclaration, ExportNamedDeclaration, ExportSpecifier, ForInStatement, ForOfStatement, ForStatement, FunctionExpression, TrackingScope, unset, IfStatement, ImportAttribute, ImportDeclaration, ImportDefaultSpecifier, INTEROP_DEFAULT_VARIABLE, INTEROP_DEFAULT_COMPAT_VARIABLE, INTEROP_NAMESPACE_VARIABLE, INTEROP_NAMESPACE_COMPAT_VARIABLE, INTEROP_NAMESPACE_DEFAULT_VARIABLE, INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE, MERGE_NAMESPACES_VARIABLE, DOCUMENT_CURRENT_SCRIPT, defaultInteropHelpersByInteropType, isDefaultAProperty, namespaceInteropHelpersByInteropType, canDefaultBeTakenFromNamespace, getHelpersBlock, HELPER_GENERATORS, getDefaultLiveBinding, getDefaultStatic, getIsCompatNamespace, createNamespaceObject, loopOverKeys, loopOverNamespaces, copyNonDefaultOwnPropertyLiveBinding, copyOwnPropertyLiveBinding, copyPropertyLiveBinding, copyPropertyStatic, getFrozen, getWithToStringTag, HELPER_NAMES, VariableDeclarator, ImportExpression, accessedImportGlobals, ImportNamespaceSpecifier, ImportSpecifier, LabeledStatement, LogicalExpression, FILE_PREFIX, IMPORT, MetaProperty, formatsMaybeAccessDocumentCurrentScript, accessedMetaUrlGlobals, accessedFileUrlGlobals, getResolveUrl, getRelativeUrlFromDocument, getGenericImportMetaMechanism, getFileUrlFromFullPath, getFileUrlFromRelativePath, getUrlFromDocument, relativeUrlMechanisms, importMetaMechanisms, NewExpression, ObjectExpression, PrivateIdentifier, Program, Property, PropertyDefinition, ReturnStatement, SequenceExpression, StaticBlock, Super, SwitchCase, SwitchStatement, TaggedTemplateExpression, TemplateElement, TemplateLiteral, UndefinedVariable, ExportDefaultVariable, ModuleScope, ThisExpression, ThrowStatement, TryStatement, unaryOperators, UnaryExpression, UnknownNode, UpdateExpression, VariableDeclaration, WhileStatement, YieldExpression, nodeConstructors, MISSING_EXPORT_SHIM_VARIABLE, ExportShimVariable, NamespaceVariable, SyntheticNamedExportVariable, BuildPhase, sourceMapCache, getPropertyKey, timers, timeStart, timeEnd, TIMED_PLUGIN_HOOKS, MISSING_EXPORT_SHIM_DESCRIPTION, Module, copyNameToModulesMap, getDefineProperty, require$$0, _static, builtinModules, nodeBuiltins, keypath, getStarExcludes, getStarExcludesBlock, getImportBindingsBlock, getHoistedExportsBlock, getSyntheticExportsBlock, getMissingExportsBlock, finalisers, concatSeparator, concatDblSeparator, DECONFLICT_IMPORTED_VARIABLES_BY_FORMAT, hashPlaceholderLeft, hashPlaceholderRight, hashPlaceholderOverhead, maxHashSize, defaultHashSize, getHashPlaceholderGenerator, REPLACER_REGEX, replacePlaceholders, replaceSinglePlaceholder, replacePlaceholdersWithDefaultAndGetContainedPlaceholders, lowercaseBundleKeys, FILE_PLACEHOLDER, getOutputBundle, removeUnreferencedAssets, NON_ASSET_EXTENSIONS, Chunk2, QUERY_HASH_REGEX, resolveFileName, compareExecIndex, wrapIfNeeded, validPropertyName, Source, Link, createHash, Bundle2, astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars, nonASCIIidentifierStartChars, reservedWords, ecma5AndLessKeywords, keywords$1, keywordRelationalOperator, nonASCIIidentifierStart, nonASCIIidentifier, TokenType, beforeExpr, startsExpr, keywords, types$1, lineBreak, lineBreakG, nonASCIIwhitespace, skipWhiteSpace, ref, hasOwnProperty, toString, hasOwn, isArray, loneSurrogate, Position, SourceLocation, defaultOptions, warnedAboutEcmaVersion, SCOPE_TOP, SCOPE_FUNCTION, SCOPE_ASYNC, SCOPE_GENERATOR, SCOPE_ARROW, SCOPE_SIMPLE_CATCH, SCOPE_SUPER, SCOPE_DIRECT_SUPER, SCOPE_CLASS_STATIC_BLOCK, SCOPE_VAR, BIND_NONE, BIND_VAR, BIND_LEXICAL, BIND_FUNCTION, BIND_SIMPLE_CATCH, BIND_OUTSIDE, Parser, prototypeAccessors, pp$9, literal, DestructuringErrors, pp$8, loopLabel, switchLabel, empty$1, FUNC_STATEMENT$1, FUNC_HANGING_STATEMENT, FUNC_NULLABLE_ID$1, pp$7, TokContext, types, pp$6, pp$5, empty, pp$4, pp$3, Scope2, Node, pp$2, ecma9BinaryProperties, ecma10BinaryProperties, ecma11BinaryProperties, ecma12BinaryProperties, ecma13BinaryProperties, ecma14BinaryProperties, unicodeBinaryProperties, ecma14BinaryPropertiesOfStrings, unicodeBinaryPropertiesOfStrings, unicodeGeneralCategoryValues, ecma9ScriptValues, ecma10ScriptValues, ecma11ScriptValues, ecma12ScriptValues, ecma13ScriptValues, ecma14ScriptValues, unicodeScriptValues, data, ecmaVersion, i, list, pp$1, RegExpValidationState, CharSetNone, CharSetOk, CharSetString, Token, pp, INVALID_TEMPLATE_ESCAPE_ERROR, version2, _acorn, ANONYMOUS_PLUGIN_PREFIX, ANONYMOUS_OUTPUT_PLUGIN_PREFIX, NO_CACHE, getOnLog, getDefaultOnLog, addLogToString, normalizeLog, getExtendedLogMessage, defaultPrintLog, treeshakePresets, generatedCodePresets, objectifyOption, objectifyOptionWithPresets, getOptionWithPreset, normalizePluginOption, RESOLVE_DEPENDENCIES, ModuleLoader, GlobalScope, emittedFileTypes, FileEmitter, inputHookNames, inputHooks, PluginDriver, Queue, Graph, handleBeforeExit, rejectByPluginDriver, leftCurlyBrace, space, keyword, FUNC_STATEMENT, FUNC_NULLABLE_ID, getAcorn, getAcornInjectPlugins, getCache, getIdMatcher, getInlineDynamicImports$1, getInput2, getManualChunks$1, getMaxParallelFileOps, getModuleContext, getPreserveModules$1, getTreeshake, getHasModuleSideEffects, INVALID_CHAR_REGEX, DRIVE_LETTER_REGEX, getFile, getFormat, getInlineDynamicImports, getPreserveModules, getPreferConst, getPreserveModulesRoot, getAmd, getAddon, getDir, getDynamicImportFunction, getEntryFileNames, getGeneratedCode, getIndent, ALLOWED_INTEROP_TYPES, getInterop, validateInterop, getManualChunks, getMinifyInternalExports, getNamespaceToStringTag, getSourcemapFileNames, getSourcemapBaseUrl, SortingFileType, env, argv, platform, isDisabled, isForced, isWindows, isDumbTerminal, isCompatibleTerminal, isCI, isColorSupported, replaceClose, clearBleed, filterEmpty, init, colors, createColors, bold, cyan, dim, gray, green, red, underline, yellow;
4827
+ var version$1, comma, semicolon, chars$1, intToChar, charToInt, td, BitSet, Chunk$1, btoa, SourceMap, toString$1, wordRegex, Mappings, n, warned, MagicString, hasOwnProp, Bundle$1, ANY_SLASH_REGEX, needsEscapeRegEx, quoteNewlineRegEx, backSlashRegEx, ABSOLUTE_PATH_REGEX, RELATIVE_PATH_REGEX, BACKSLASH_REGEX, UPPER_DIR_REGEX, ExternalChunk, UnknownKey, UnknownNonAccessorKey, UnknownInteger, SymbolToStringTag, EMPTY_PATH, UNKNOWN_PATH, UNKNOWN_NON_ACCESSOR_PATH, UNKNOWN_INTEGER_PATH, EntitiesKey, PathTracker, SHARED_RECURSION_TRACKER, DiscriminatedPathTracker, UnknownValue, UnknownTruthyValue, ExpressionEntity, UNKNOWN_EXPRESSION, UNKNOWN_RETURN_EXPRESSION, deoptimizeInteraction, INTERACTION_ACCESSED, INTERACTION_ASSIGNED, INTERACTION_CALLED, NODE_INTERACTION_UNKNOWN_ACCESS, NODE_INTERACTION_UNKNOWN_ASSIGNMENT, NODE_INTERACTION_UNKNOWN_CALL, Variable, ExternalVariable, BLANK, EMPTY_OBJECT, EMPTY_ARRAY, EMPTY_SET, RESERVED_NAMES, RESERVED_NAMES$1, illegalCharacters, startsWithDigit, needsEscape, LOGLEVEL_SILENT, LOGLEVEL_ERROR, LOGLEVEL_WARN, LOGLEVEL_INFO, LOGLEVEL_DEBUG, logLevelPriority, LINE_TRUNCATE_LENGTH, MIN_CHARACTERS_SHOWN_AFTER_LOCATION, ELLIPSIS, URL_AVOIDING_EVAL, URL_NAME_IS_NOT_EXPORTED, URL_THIS_IS_UNDEFINED, URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY, URL_SOURCEMAP_IS_LIKELY_TO_BE_INCORRECT, URL_MAXPARALLELFILEOPS, URL_OUTPUT_AMD_ID, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_DIR, URL_OUTPUT_DYNAMICIMPORTFUNCTION, URL_OUTPUT_EXPORTS, URL_OUTPUT_EXTEND, URL_OUTPUT_FORMAT, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_EXPERIMENTALDEEPCHUNKOPTIMIZATION, URL_OUTPUT_GENERATEDCODE_CONSTBINDINGS, URL_OUTPUT_GENERATEDCODE_SYMBOLS, URL_OUTPUT_GLOBALS, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, URL_OUTPUT_NAME, URL_OUTPUT_PRESERVEMODULES, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_SOURCEMAPFILE, URL_PRESERVEENTRYSIGNATURES, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_RENDERDYNAMICIMPORT, URL_THIS_GETMODULEIDS, URL_THIS_GETMODULEINFO, ADDON_ERROR, ALREADY_CLOSED, AMBIGUOUS_EXTERNAL_NAMESPACES, ANONYMOUS_PLUGIN_CACHE, ASSET_NOT_FINALISED, ASSET_NOT_FOUND, ASSET_SOURCE_ALREADY_SET, ASSET_SOURCE_MISSING, BAD_LOADER, CANNOT_CALL_NAMESPACE, CANNOT_EMIT_FROM_OPTIONS_HOOK, CHUNK_NOT_GENERATED, CHUNK_INVALID, CIRCULAR_DEPENDENCY, CIRCULAR_REEXPORT, CYCLIC_CROSS_CHUNK_REEXPORT, DEPRECATED_FEATURE, DUPLICATE_PLUGIN_NAME, EMPTY_BUNDLE, EVAL, EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS, EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES, EXTERNAL_SYNTHETIC_EXPORTS, FILE_NAME_CONFLICT, FILE_NOT_FOUND, FIRST_SIDE_EFFECT, ILLEGAL_IDENTIFIER_AS_NAME, ILLEGAL_REASSIGNMENT, INCONSISTENT_IMPORT_ASSERTIONS, INPUT_HOOK_IN_OUTPUT_PLUGIN, INVALID_CHUNK, INVALID_EXPORT_OPTION, INVALID_EXTERNAL_ID, INVALID_LOG_POSITION, INVALID_OPTION, INVALID_PLUGIN_HOOK, INVALID_ROLLUP_PHASE, INVALID_SETASSETSOURCE, INVALID_TLA_FORMAT, MISSING_EXPORT, MISSING_GLOBAL_NAME, MISSING_IMPLICIT_DEPENDANT, MISSING_NAME_OPTION_FOR_IIFE_EXPORT, MISSING_NODE_BUILTINS, MISSING_OPTION, MIXED_EXPORTS, MODULE_LEVEL_DIRECTIVE, NAMESPACE_CONFLICT, NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE, OPTIMIZE_CHUNK_STATUS, PARSE_ERROR, PLUGIN_ERROR, SHIMMED_EXPORT, SOURCEMAP_BROKEN, SOURCEMAP_ERROR, SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT, THIS_IS_UNDEFINED, UNEXPECTED_NAMED_IMPORT, UNKNOWN_OPTION, UNRESOLVED_ENTRY, UNRESOLVED_IMPORT, UNUSED_EXTERNAL_IMPORT, VALIDATION_ERROR, formatAssertions, ExternalModule, utils$3, path$1, WIN_SLASH, WIN_NO_SLASH, DOT_LITERAL, PLUS_LITERAL, QMARK_LITERAL, SLASH_LITERAL, ONE_CHAR, QMARK, END_ANCHOR, START_ANCHOR, DOTS_SLASH, NO_DOT, NO_DOTS, NO_DOT_SLASH, NO_DOTS_SLASH, QMARK_NO_DOT, STAR, POSIX_CHARS, WINDOWS_CHARS, POSIX_REGEX_SOURCE$1, constants$2, utils$2, CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET, isPathSeparator, depth, scan$1, scan_1, constants$1, utils$1, MAX_LENGTH, POSIX_REGEX_SOURCE, REGEX_NON_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS, expandRange, syntaxError, parse$2, parse_1, path3, scan, parse$1, utils, constants, isObject, picomatch$1, extractors, extractAssignedNames, reservedWords$1, builtins, forbiddenIdentifiers, UNDEFINED_EXPRESSION, returnsUnknown, UNKNOWN_LITERAL_BOOLEAN, returnsBoolean, UNKNOWN_LITERAL_NUMBER, returnsNumber, UNKNOWN_LITERAL_STRING, returnsString, stringReplace, objectMembers, literalBooleanMembers, literalNumberMembers, literalRegExpMembers, literalStringMembers, base$1, ArrowFunctionExpression$1, BinaryExpression$1, BlockStatement$1, CallExpression$1, ChainExpression$1, ConditionalExpression$1, ExportDefaultDeclaration$1, ExportNamedDeclaration$1, ExpressionStatement$1, FunctionDeclaration$1, Identifier$1, LogicalExpression$1, NewExpression$1, Program$1, Property$1, ReturnStatement$1, SequenceExpression$1, VariableDeclarator$1, VariableDeclaration$1, SOURCEMAPPING_URL, whiteSpaceNoNewline, SOURCEMAPPING_URL_RE, ANNOTATION_KEY, INVALID_COMMENT_KEY, neitherWithespaceNorBrackets, noWhitespace, annotationsRegexes, keys, INCLUDE_PARAMETERS, NodeBase, SpreadElement, Method, METHOD_RETURNS_BOOLEAN, METHOD_RETURNS_STRING, METHOD_RETURNS_NUMBER, METHOD_RETURNS_UNKNOWN, INTEGER_REG_EXP, ObjectEntity, isInteger, OBJECT_PROTOTYPE_FALLBACK, OBJECT_PROTOTYPE, NEW_ARRAY_PROPERTIES, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_BOOLEAN, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NUMBER, METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY, METHOD_DEOPTS_SELF_RETURNS_NEW_ARRAY, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY, METHOD_MUTATES_SELF_RETURNS_NUMBER, METHOD_MUTATES_SELF_RETURNS_UNKNOWN, METHOD_DEOPTS_SELF_RETURNS_UNKNOWN, METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN, METHOD_MUTATES_SELF_RETURNS_SELF, METHOD_CALLS_ARG_MUTATES_SELF_RETURNS_SELF, ARRAY_PROTOTYPE, ArrayExpression, ArrayPattern, LocalVariable, MAX_TRACKED_INTERACTIONS, NO_INTERACTIONS, UNKNOWN_DEOPTIMIZED_FIELD, EMPTY_PATH_TRACKER, UNKNOWN_DEOPTIMIZED_ENTITY, ParameterVariable, chars, base, Scope$1, ChildScope, ParameterScope, ReturnValueScope, PureFunctionKey, getPureFunctions, doNothing, ValueProperties, getTruthyLiteralValue, returnFalse, returnTrue, PURE, IMPURE, PURE_WITH_ARRAY, GETTER_ACCESS, O, PF, PF_NO_GETTER, MUTATES_ARG_WITHOUT_ACCESSOR, C, PC, PC_WITH_ARRAY, ARRAY_TYPE, INTL_MEMBER, knownGlobals, GlobalVariable, tdzVariableKinds, Identifier, NO_SEMICOLON, NON_WHITESPACE, BlockScope, ExpressionStatement, BlockStatement, RestElement, FunctionBase, ArrowFunctionExpression, ObjectPattern, AssignmentExpression, AssignmentPattern, ArgumentsVariable, ThisVariable, FunctionScope, FunctionNode, AwaitExpression, binaryOperators, BinaryExpression, BreakStatement, Literal, MAX_PATH_DEPTH, MemberExpression, CallExpressionBase, CallExpression, CatchScope, CatchClause, ChainExpression, ClassBodyScope, ClassBody, MethodBase, MethodDefinition, ObjectMember, ClassNode, ClassDeclaration, ClassExpression, MultiExpression, ConditionalExpression, ContinueStatement, DoWhileStatement, EmptyStatement, ExportAllDeclaration, FunctionDeclaration, ExportDefaultDeclaration, ExportNamedDeclaration, ExportSpecifier, ForInStatement, ForOfStatement, ForStatement, FunctionExpression, TrackingScope, unset, IfStatement, ImportAttribute, ImportDeclaration, ImportDefaultSpecifier, INTEROP_DEFAULT_VARIABLE, INTEROP_DEFAULT_COMPAT_VARIABLE, INTEROP_NAMESPACE_VARIABLE, INTEROP_NAMESPACE_COMPAT_VARIABLE, INTEROP_NAMESPACE_DEFAULT_VARIABLE, INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE, MERGE_NAMESPACES_VARIABLE, DOCUMENT_CURRENT_SCRIPT, defaultInteropHelpersByInteropType, isDefaultAProperty, namespaceInteropHelpersByInteropType, canDefaultBeTakenFromNamespace, getHelpersBlock, HELPER_GENERATORS, getDefaultLiveBinding, getDefaultStatic, getIsCompatNamespace, createNamespaceObject, loopOverKeys, loopOverNamespaces, copyNonDefaultOwnPropertyLiveBinding, copyOwnPropertyLiveBinding, copyPropertyLiveBinding, copyPropertyStatic, getFrozen, getWithToStringTag, HELPER_NAMES, VariableDeclarator, ImportExpression, accessedImportGlobals, ImportNamespaceSpecifier, ImportSpecifier, LabeledStatement, LogicalExpression, FILE_PREFIX, IMPORT, MetaProperty, formatsMaybeAccessDocumentCurrentScript, accessedMetaUrlGlobals, accessedFileUrlGlobals, getResolveUrl, getRelativeUrlFromDocument, getGenericImportMetaMechanism, getFileUrlFromFullPath, getFileUrlFromRelativePath, getUrlFromDocument, relativeUrlMechanisms, importMetaMechanisms, NewExpression, ObjectExpression, PrivateIdentifier, Program, Property, PropertyDefinition, ReturnStatement, SequenceExpression, StaticBlock, Super, SwitchCase, SwitchStatement, TaggedTemplateExpression, TemplateElement, TemplateLiteral, UndefinedVariable, ExportDefaultVariable, ModuleScope, ThisExpression, ThrowStatement, TryStatement, unaryOperators, UnaryExpression, UnknownNode, UpdateExpression, VariableDeclaration, WhileStatement, YieldExpression, nodeConstructors, MISSING_EXPORT_SHIM_VARIABLE, ExportShimVariable, NamespaceVariable, SyntheticNamedExportVariable, BuildPhase, sourceMapCache, getPropertyKey, timers, timeStart, timeEnd, TIMED_PLUGIN_HOOKS, MISSING_EXPORT_SHIM_DESCRIPTION, Module, copyNameToModulesMap, getDefineProperty, require$$0, _static, builtinModules, nodeBuiltins, keypath, getStarExcludes, getStarExcludesBlock, getImportBindingsBlock, getHoistedExportsBlock, getSyntheticExportsBlock, getMissingExportsBlock, finalisers, concatSeparator, concatDblSeparator, DECONFLICT_IMPORTED_VARIABLES_BY_FORMAT, hashPlaceholderLeft, hashPlaceholderRight, hashPlaceholderOverhead, maxHashSize, defaultHashSize, getHashPlaceholderGenerator, REPLACER_REGEX, replacePlaceholders, replaceSinglePlaceholder, replacePlaceholdersWithDefaultAndGetContainedPlaceholders, lowercaseBundleKeys, FILE_PLACEHOLDER, getOutputBundle, removeUnreferencedAssets, NON_ASSET_EXTENSIONS, Chunk2, QUERY_HASH_REGEX, resolveFileName, compareExecIndex, wrapIfNeeded, validPropertyName, Source, Link, createHash, Bundle2, astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars, nonASCIIidentifierStartChars, reservedWords, ecma5AndLessKeywords, keywords$1, keywordRelationalOperator, nonASCIIidentifierStart, nonASCIIidentifier, TokenType, beforeExpr, startsExpr, keywords, types$1, lineBreak, lineBreakG, nonASCIIwhitespace, skipWhiteSpace, ref, hasOwnProperty, toString, hasOwn, isArray, loneSurrogate, Position, SourceLocation, defaultOptions, warnedAboutEcmaVersion, SCOPE_TOP, SCOPE_FUNCTION, SCOPE_ASYNC, SCOPE_GENERATOR, SCOPE_ARROW, SCOPE_SIMPLE_CATCH, SCOPE_SUPER, SCOPE_DIRECT_SUPER, SCOPE_CLASS_STATIC_BLOCK, SCOPE_VAR, BIND_NONE, BIND_VAR, BIND_LEXICAL, BIND_FUNCTION, BIND_SIMPLE_CATCH, BIND_OUTSIDE, Parser, prototypeAccessors, pp$9, literal, DestructuringErrors, pp$8, loopLabel, switchLabel, empty$1, FUNC_STATEMENT$1, FUNC_HANGING_STATEMENT, FUNC_NULLABLE_ID$1, pp$7, TokContext, types, pp$6, pp$5, empty, pp$4, pp$3, Scope2, Node, pp$2, ecma9BinaryProperties, ecma10BinaryProperties, ecma11BinaryProperties, ecma12BinaryProperties, ecma13BinaryProperties, ecma14BinaryProperties, unicodeBinaryProperties, ecma14BinaryPropertiesOfStrings, unicodeBinaryPropertiesOfStrings, unicodeGeneralCategoryValues, ecma9ScriptValues, ecma10ScriptValues, ecma11ScriptValues, ecma12ScriptValues, ecma13ScriptValues, ecma14ScriptValues, unicodeScriptValues, data, ecmaVersion, i, list, pp$1, RegExpValidationState, CharSetNone, CharSetOk, CharSetString, Token, pp, INVALID_TEMPLATE_ESCAPE_ERROR, version, _acorn, ANONYMOUS_PLUGIN_PREFIX, ANONYMOUS_OUTPUT_PLUGIN_PREFIX, NO_CACHE, getOnLog, getDefaultOnLog, addLogToString, normalizeLog, getExtendedLogMessage, defaultPrintLog, treeshakePresets, generatedCodePresets, objectifyOption, objectifyOptionWithPresets, getOptionWithPreset, normalizePluginOption, RESOLVE_DEPENDENCIES, ModuleLoader, GlobalScope, emittedFileTypes, FileEmitter, inputHookNames, inputHooks, PluginDriver, Queue, Graph, handleBeforeExit, rejectByPluginDriver, leftCurlyBrace, space, keyword, FUNC_STATEMENT, FUNC_NULLABLE_ID, getAcorn, getAcornInjectPlugins, getCache, getIdMatcher, getInlineDynamicImports$1, getInput2, getManualChunks$1, getMaxParallelFileOps, getModuleContext, getPreserveModules$1, getTreeshake, getHasModuleSideEffects, INVALID_CHAR_REGEX, DRIVE_LETTER_REGEX, getFile, getFormat, getInlineDynamicImports, getPreserveModules, getPreferConst, getPreserveModulesRoot, getAmd, getAddon, getDir, getDynamicImportFunction, getEntryFileNames, getGeneratedCode, getIndent, ALLOWED_INTEROP_TYPES, getInterop, validateInterop, getManualChunks, getMinifyInternalExports, getNamespaceToStringTag, getSourcemapFileNames, getSourcemapBaseUrl, SortingFileType, env, argv, platform, isDisabled, isForced, isWindows, isDumbTerminal, isCompatibleTerminal, isCI, isColorSupported, replaceClose, clearBleed, filterEmpty, init, colors, createColors, bold, cyan, dim, gray, green, red, underline, yellow;
4828
4828
  var init_node_entry = __esm({
4829
- "node_modules/rollup/dist/es/shared/node-entry.js"() {
4829
+ "../node_modules/rollup/dist/es/shared/node-entry.js"() {
4830
4830
  version$1 = "3.29.4";
4831
4831
  comma = ",".charCodeAt(0);
4832
4832
  semicolon = ";".charCodeAt(0);
@@ -4834,9 +4834,9 @@ var init_node_entry = __esm({
4834
4834
  intToChar = new Uint8Array(64);
4835
4835
  charToInt = new Uint8Array(128);
4836
4836
  for (let i = 0; i < chars$1.length; i++) {
4837
- const c9 = chars$1.charCodeAt(i);
4838
- intToChar[i] = c9;
4839
- charToInt[c9] = i;
4837
+ const c11 = chars$1.charCodeAt(i);
4838
+ intToChar[i] = c11;
4839
+ charToInt[c11] = i;
4840
4840
  }
4841
4841
  td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? {
4842
4842
  decode(buf) {
@@ -6036,15 +6036,15 @@ var init_node_entry = __esm({
6036
6036
  [EntitiesKey]: { value: /* @__PURE__ */ new Set() }
6037
6037
  });
6038
6038
  }
6039
- trackEntityAtPathAndGetIfTracked(path4, entity) {
6040
- const trackedEntities = this.getEntities(path4);
6039
+ trackEntityAtPathAndGetIfTracked(path5, entity) {
6040
+ const trackedEntities = this.getEntities(path5);
6041
6041
  if (trackedEntities.has(entity))
6042
6042
  return true;
6043
6043
  trackedEntities.add(entity);
6044
6044
  return false;
6045
6045
  }
6046
- withTrackedEntityAtPath(path4, entity, onUntracked, returnIfTracked) {
6047
- const trackedEntities = this.getEntities(path4);
6046
+ withTrackedEntityAtPath(path5, entity, onUntracked, returnIfTracked) {
6047
+ const trackedEntities = this.getEntities(path5);
6048
6048
  if (trackedEntities.has(entity))
6049
6049
  return returnIfTracked;
6050
6050
  trackedEntities.add(entity);
@@ -6052,9 +6052,9 @@ var init_node_entry = __esm({
6052
6052
  trackedEntities.delete(entity);
6053
6053
  return result;
6054
6054
  }
6055
- getEntities(path4) {
6055
+ getEntities(path5) {
6056
6056
  let currentPaths = this.entityPaths;
6057
- for (const pathSegment of path4) {
6057
+ for (const pathSegment of path5) {
6058
6058
  currentPaths = currentPaths[pathSegment] = currentPaths[pathSegment] || Object.create(null, { [EntitiesKey]: { value: /* @__PURE__ */ new Set() } });
6059
6059
  }
6060
6060
  return currentPaths[EntitiesKey];
@@ -6067,9 +6067,9 @@ var init_node_entry = __esm({
6067
6067
  [EntitiesKey]: { value: /* @__PURE__ */ new Map() }
6068
6068
  });
6069
6069
  }
6070
- trackEntityAtPathAndGetIfTracked(path4, discriminator, entity) {
6070
+ trackEntityAtPathAndGetIfTracked(path5, discriminator, entity) {
6071
6071
  let currentPaths = this.entityPaths;
6072
- for (const pathSegment of path4) {
6072
+ for (const pathSegment of path5) {
6073
6073
  currentPaths = currentPaths[pathSegment] = currentPaths[pathSegment] || Object.create(null, { [EntitiesKey]: { value: /* @__PURE__ */ new Map() } });
6074
6074
  }
6075
6075
  const trackedEntities = getOrCreate(currentPaths[EntitiesKey], discriminator, getNewSet);
@@ -6179,8 +6179,8 @@ var init_node_entry = __esm({
6179
6179
  const name = this.renderName || this.name;
6180
6180
  return this.renderBaseName ? `${this.renderBaseName}${getPropertyAccess(name)}` : name;
6181
6181
  }
6182
- hasEffectsOnInteractionAtPath(path4, { type }, _context) {
6183
- return type !== INTERACTION_ACCESSED || path4.length > 0;
6182
+ hasEffectsOnInteractionAtPath(path5, { type }, _context) {
6183
+ return type !== INTERACTION_ACCESSED || path5.length > 0;
6184
6184
  }
6185
6185
  /**
6186
6186
  * Marks this variable as being part of the bundle, which is usually the case when one of
@@ -6211,8 +6211,8 @@ var init_node_entry = __esm({
6211
6211
  this.module.suggestName(identifier.name);
6212
6212
  }
6213
6213
  }
6214
- hasEffectsOnInteractionAtPath(path4, { type }) {
6215
- return type !== INTERACTION_ACCESSED || path4.length > (this.isNamespace ? 1 : 0);
6214
+ hasEffectsOnInteractionAtPath(path5, { type }) {
6215
+ return type !== INTERACTION_ACCESSED || path5.length > (this.isNamespace ? 1 : 0);
6216
6216
  }
6217
6217
  include() {
6218
6218
  if (!this.included) {
@@ -6672,7 +6672,7 @@ var init_node_entry = __esm({
6672
6672
  }
6673
6673
  };
6674
6674
  (function(exports) {
6675
- const path4 = require$$0$1;
6675
+ const path5 = require$$0$1;
6676
6676
  const win322 = process.platform === "win32";
6677
6677
  const {
6678
6678
  REGEX_BACKSLASH,
@@ -6701,7 +6701,7 @@ var init_node_entry = __esm({
6701
6701
  if (options && typeof options.windows === "boolean") {
6702
6702
  return options.windows;
6703
6703
  }
6704
- return win322 === true || path4.sep === "\\";
6704
+ return win322 === true || path5.sep === "\\";
6705
6705
  };
6706
6706
  exports.escapeLast = (input, char, lastIdx) => {
6707
6707
  const idx = input.lastIndexOf(char, lastIdx);
@@ -7851,7 +7851,7 @@ var init_node_entry = __esm({
7851
7851
  return source;
7852
7852
  };
7853
7853
  parse_1 = parse$2;
7854
- path2 = require$$0$1;
7854
+ path3 = require$$0$1;
7855
7855
  scan = scan_1;
7856
7856
  parse$1 = parse_1;
7857
7857
  utils = utils$3;
@@ -7937,7 +7937,7 @@ var init_node_entry = __esm({
7937
7937
  };
7938
7938
  picomatch$1.matchBase = (input, glob, options, posix2 = utils.isWindows(options)) => {
7939
7939
  const regex = glob instanceof RegExp ? glob : picomatch$1.makeRe(glob, options);
7940
- return regex.test(path2.basename(input));
7940
+ return regex.test(path3.basename(input));
7941
7941
  };
7942
7942
  picomatch$1.isMatch = (str, patterns, options) => picomatch$1(patterns, options)(str);
7943
7943
  picomatch$1.parse = (pattern, options) => {
@@ -8036,18 +8036,18 @@ var init_node_entry = __esm({
8036
8036
  }
8037
8037
  };
8038
8038
  UNKNOWN_LITERAL_BOOLEAN = new class UnknownBoolean extends ExpressionEntity {
8039
- getReturnExpressionWhenCalledAtPath(path4) {
8040
- if (path4.length === 1) {
8041
- return getMemberReturnExpressionWhenCalled(literalBooleanMembers, path4[0]);
8039
+ getReturnExpressionWhenCalledAtPath(path5) {
8040
+ if (path5.length === 1) {
8041
+ return getMemberReturnExpressionWhenCalled(literalBooleanMembers, path5[0]);
8042
8042
  }
8043
8043
  return UNKNOWN_RETURN_EXPRESSION;
8044
8044
  }
8045
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
8045
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
8046
8046
  if (interaction.type === INTERACTION_ACCESSED) {
8047
- return path4.length > 1;
8047
+ return path5.length > 1;
8048
8048
  }
8049
- if (interaction.type === INTERACTION_CALLED && path4.length === 1) {
8050
- return hasMemberEffectWhenCalled(literalBooleanMembers, path4[0], interaction, context);
8049
+ if (interaction.type === INTERACTION_CALLED && path5.length === 1) {
8050
+ return hasMemberEffectWhenCalled(literalBooleanMembers, path5[0], interaction, context);
8051
8051
  }
8052
8052
  return true;
8053
8053
  }
@@ -8059,18 +8059,18 @@ var init_node_entry = __esm({
8059
8059
  }
8060
8060
  };
8061
8061
  UNKNOWN_LITERAL_NUMBER = new class UnknownNumber extends ExpressionEntity {
8062
- getReturnExpressionWhenCalledAtPath(path4) {
8063
- if (path4.length === 1) {
8064
- return getMemberReturnExpressionWhenCalled(literalNumberMembers, path4[0]);
8062
+ getReturnExpressionWhenCalledAtPath(path5) {
8063
+ if (path5.length === 1) {
8064
+ return getMemberReturnExpressionWhenCalled(literalNumberMembers, path5[0]);
8065
8065
  }
8066
8066
  return UNKNOWN_RETURN_EXPRESSION;
8067
8067
  }
8068
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
8068
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
8069
8069
  if (interaction.type === INTERACTION_ACCESSED) {
8070
- return path4.length > 1;
8070
+ return path5.length > 1;
8071
8071
  }
8072
- if (interaction.type === INTERACTION_CALLED && path4.length === 1) {
8073
- return hasMemberEffectWhenCalled(literalNumberMembers, path4[0], interaction, context);
8072
+ if (interaction.type === INTERACTION_CALLED && path5.length === 1) {
8073
+ return hasMemberEffectWhenCalled(literalNumberMembers, path5[0], interaction, context);
8074
8074
  }
8075
8075
  return true;
8076
8076
  }
@@ -8082,18 +8082,18 @@ var init_node_entry = __esm({
8082
8082
  }
8083
8083
  };
8084
8084
  UNKNOWN_LITERAL_STRING = new class UnknownString extends ExpressionEntity {
8085
- getReturnExpressionWhenCalledAtPath(path4) {
8086
- if (path4.length === 1) {
8087
- return getMemberReturnExpressionWhenCalled(literalStringMembers, path4[0]);
8085
+ getReturnExpressionWhenCalledAtPath(path5) {
8086
+ if (path5.length === 1) {
8087
+ return getMemberReturnExpressionWhenCalled(literalStringMembers, path5[0]);
8088
8088
  }
8089
8089
  return UNKNOWN_RETURN_EXPRESSION;
8090
8090
  }
8091
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
8091
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
8092
8092
  if (interaction.type === INTERACTION_ACCESSED) {
8093
- return path4.length > 1;
8093
+ return path5.length > 1;
8094
8094
  }
8095
- if (interaction.type === INTERACTION_CALLED && path4.length === 1) {
8096
- return hasMemberEffectWhenCalled(literalStringMembers, path4[0], interaction, context);
8095
+ if (interaction.type === INTERACTION_CALLED && path5.length === 1) {
8096
+ return hasMemberEffectWhenCalled(literalStringMembers, path5[0], interaction, context);
8097
8097
  }
8098
8098
  return true;
8099
8099
  }
@@ -8189,284 +8189,284 @@ var init_node_entry = __esm({
8189
8189
  valueOf: returnsString
8190
8190
  }, objectMembers);
8191
8191
  base$1 = {};
8192
- base$1.Program = base$1.BlockStatement = base$1.StaticBlock = function(node, st, c9) {
8192
+ base$1.Program = base$1.BlockStatement = base$1.StaticBlock = function(node, st, c11) {
8193
8193
  for (var i = 0, list = node.body; i < list.length; i += 1) {
8194
8194
  var stmt = list[i];
8195
- c9(stmt, st, "Statement");
8195
+ c11(stmt, st, "Statement");
8196
8196
  }
8197
8197
  };
8198
8198
  base$1.Statement = skipThrough;
8199
8199
  base$1.EmptyStatement = ignore;
8200
- base$1.ExpressionStatement = base$1.ParenthesizedExpression = base$1.ChainExpression = function(node, st, c9) {
8201
- return c9(node.expression, st, "Expression");
8200
+ base$1.ExpressionStatement = base$1.ParenthesizedExpression = base$1.ChainExpression = function(node, st, c11) {
8201
+ return c11(node.expression, st, "Expression");
8202
8202
  };
8203
- base$1.IfStatement = function(node, st, c9) {
8204
- c9(node.test, st, "Expression");
8205
- c9(node.consequent, st, "Statement");
8203
+ base$1.IfStatement = function(node, st, c11) {
8204
+ c11(node.test, st, "Expression");
8205
+ c11(node.consequent, st, "Statement");
8206
8206
  if (node.alternate) {
8207
- c9(node.alternate, st, "Statement");
8207
+ c11(node.alternate, st, "Statement");
8208
8208
  }
8209
8209
  };
8210
- base$1.LabeledStatement = function(node, st, c9) {
8211
- return c9(node.body, st, "Statement");
8210
+ base$1.LabeledStatement = function(node, st, c11) {
8211
+ return c11(node.body, st, "Statement");
8212
8212
  };
8213
8213
  base$1.BreakStatement = base$1.ContinueStatement = ignore;
8214
- base$1.WithStatement = function(node, st, c9) {
8215
- c9(node.object, st, "Expression");
8216
- c9(node.body, st, "Statement");
8214
+ base$1.WithStatement = function(node, st, c11) {
8215
+ c11(node.object, st, "Expression");
8216
+ c11(node.body, st, "Statement");
8217
8217
  };
8218
- base$1.SwitchStatement = function(node, st, c9) {
8219
- c9(node.discriminant, st, "Expression");
8218
+ base$1.SwitchStatement = function(node, st, c11) {
8219
+ c11(node.discriminant, st, "Expression");
8220
8220
  for (var i$1 = 0, list$1 = node.cases; i$1 < list$1.length; i$1 += 1) {
8221
8221
  var cs = list$1[i$1];
8222
8222
  if (cs.test) {
8223
- c9(cs.test, st, "Expression");
8223
+ c11(cs.test, st, "Expression");
8224
8224
  }
8225
8225
  for (var i = 0, list = cs.consequent; i < list.length; i += 1) {
8226
8226
  var cons = list[i];
8227
- c9(cons, st, "Statement");
8227
+ c11(cons, st, "Statement");
8228
8228
  }
8229
8229
  }
8230
8230
  };
8231
- base$1.SwitchCase = function(node, st, c9) {
8231
+ base$1.SwitchCase = function(node, st, c11) {
8232
8232
  if (node.test) {
8233
- c9(node.test, st, "Expression");
8233
+ c11(node.test, st, "Expression");
8234
8234
  }
8235
8235
  for (var i = 0, list = node.consequent; i < list.length; i += 1) {
8236
8236
  var cons = list[i];
8237
- c9(cons, st, "Statement");
8237
+ c11(cons, st, "Statement");
8238
8238
  }
8239
8239
  };
8240
- base$1.ReturnStatement = base$1.YieldExpression = base$1.AwaitExpression = function(node, st, c9) {
8240
+ base$1.ReturnStatement = base$1.YieldExpression = base$1.AwaitExpression = function(node, st, c11) {
8241
8241
  if (node.argument) {
8242
- c9(node.argument, st, "Expression");
8242
+ c11(node.argument, st, "Expression");
8243
8243
  }
8244
8244
  };
8245
- base$1.ThrowStatement = base$1.SpreadElement = function(node, st, c9) {
8246
- return c9(node.argument, st, "Expression");
8245
+ base$1.ThrowStatement = base$1.SpreadElement = function(node, st, c11) {
8246
+ return c11(node.argument, st, "Expression");
8247
8247
  };
8248
- base$1.TryStatement = function(node, st, c9) {
8249
- c9(node.block, st, "Statement");
8248
+ base$1.TryStatement = function(node, st, c11) {
8249
+ c11(node.block, st, "Statement");
8250
8250
  if (node.handler) {
8251
- c9(node.handler, st);
8251
+ c11(node.handler, st);
8252
8252
  }
8253
8253
  if (node.finalizer) {
8254
- c9(node.finalizer, st, "Statement");
8254
+ c11(node.finalizer, st, "Statement");
8255
8255
  }
8256
8256
  };
8257
- base$1.CatchClause = function(node, st, c9) {
8257
+ base$1.CatchClause = function(node, st, c11) {
8258
8258
  if (node.param) {
8259
- c9(node.param, st, "Pattern");
8259
+ c11(node.param, st, "Pattern");
8260
8260
  }
8261
- c9(node.body, st, "Statement");
8261
+ c11(node.body, st, "Statement");
8262
8262
  };
8263
- base$1.WhileStatement = base$1.DoWhileStatement = function(node, st, c9) {
8264
- c9(node.test, st, "Expression");
8265
- c9(node.body, st, "Statement");
8263
+ base$1.WhileStatement = base$1.DoWhileStatement = function(node, st, c11) {
8264
+ c11(node.test, st, "Expression");
8265
+ c11(node.body, st, "Statement");
8266
8266
  };
8267
- base$1.ForStatement = function(node, st, c9) {
8267
+ base$1.ForStatement = function(node, st, c11) {
8268
8268
  if (node.init) {
8269
- c9(node.init, st, "ForInit");
8269
+ c11(node.init, st, "ForInit");
8270
8270
  }
8271
8271
  if (node.test) {
8272
- c9(node.test, st, "Expression");
8272
+ c11(node.test, st, "Expression");
8273
8273
  }
8274
8274
  if (node.update) {
8275
- c9(node.update, st, "Expression");
8275
+ c11(node.update, st, "Expression");
8276
8276
  }
8277
- c9(node.body, st, "Statement");
8277
+ c11(node.body, st, "Statement");
8278
8278
  };
8279
- base$1.ForInStatement = base$1.ForOfStatement = function(node, st, c9) {
8280
- c9(node.left, st, "ForInit");
8281
- c9(node.right, st, "Expression");
8282
- c9(node.body, st, "Statement");
8279
+ base$1.ForInStatement = base$1.ForOfStatement = function(node, st, c11) {
8280
+ c11(node.left, st, "ForInit");
8281
+ c11(node.right, st, "Expression");
8282
+ c11(node.body, st, "Statement");
8283
8283
  };
8284
- base$1.ForInit = function(node, st, c9) {
8284
+ base$1.ForInit = function(node, st, c11) {
8285
8285
  if (node.type === "VariableDeclaration") {
8286
- c9(node, st);
8286
+ c11(node, st);
8287
8287
  } else {
8288
- c9(node, st, "Expression");
8288
+ c11(node, st, "Expression");
8289
8289
  }
8290
8290
  };
8291
8291
  base$1.DebuggerStatement = ignore;
8292
- base$1.FunctionDeclaration = function(node, st, c9) {
8293
- return c9(node, st, "Function");
8292
+ base$1.FunctionDeclaration = function(node, st, c11) {
8293
+ return c11(node, st, "Function");
8294
8294
  };
8295
- base$1.VariableDeclaration = function(node, st, c9) {
8295
+ base$1.VariableDeclaration = function(node, st, c11) {
8296
8296
  for (var i = 0, list = node.declarations; i < list.length; i += 1) {
8297
8297
  var decl = list[i];
8298
- c9(decl, st);
8298
+ c11(decl, st);
8299
8299
  }
8300
8300
  };
8301
- base$1.VariableDeclarator = function(node, st, c9) {
8302
- c9(node.id, st, "Pattern");
8301
+ base$1.VariableDeclarator = function(node, st, c11) {
8302
+ c11(node.id, st, "Pattern");
8303
8303
  if (node.init) {
8304
- c9(node.init, st, "Expression");
8304
+ c11(node.init, st, "Expression");
8305
8305
  }
8306
8306
  };
8307
- base$1.Function = function(node, st, c9) {
8307
+ base$1.Function = function(node, st, c11) {
8308
8308
  if (node.id) {
8309
- c9(node.id, st, "Pattern");
8309
+ c11(node.id, st, "Pattern");
8310
8310
  }
8311
8311
  for (var i = 0, list = node.params; i < list.length; i += 1) {
8312
8312
  var param = list[i];
8313
- c9(param, st, "Pattern");
8313
+ c11(param, st, "Pattern");
8314
8314
  }
8315
- c9(node.body, st, node.expression ? "Expression" : "Statement");
8315
+ c11(node.body, st, node.expression ? "Expression" : "Statement");
8316
8316
  };
8317
- base$1.Pattern = function(node, st, c9) {
8317
+ base$1.Pattern = function(node, st, c11) {
8318
8318
  if (node.type === "Identifier") {
8319
- c9(node, st, "VariablePattern");
8319
+ c11(node, st, "VariablePattern");
8320
8320
  } else if (node.type === "MemberExpression") {
8321
- c9(node, st, "MemberPattern");
8321
+ c11(node, st, "MemberPattern");
8322
8322
  } else {
8323
- c9(node, st);
8323
+ c11(node, st);
8324
8324
  }
8325
8325
  };
8326
8326
  base$1.VariablePattern = ignore;
8327
8327
  base$1.MemberPattern = skipThrough;
8328
- base$1.RestElement = function(node, st, c9) {
8329
- return c9(node.argument, st, "Pattern");
8328
+ base$1.RestElement = function(node, st, c11) {
8329
+ return c11(node.argument, st, "Pattern");
8330
8330
  };
8331
- base$1.ArrayPattern = function(node, st, c9) {
8331
+ base$1.ArrayPattern = function(node, st, c11) {
8332
8332
  for (var i = 0, list = node.elements; i < list.length; i += 1) {
8333
8333
  var elt = list[i];
8334
8334
  if (elt) {
8335
- c9(elt, st, "Pattern");
8335
+ c11(elt, st, "Pattern");
8336
8336
  }
8337
8337
  }
8338
8338
  };
8339
- base$1.ObjectPattern = function(node, st, c9) {
8339
+ base$1.ObjectPattern = function(node, st, c11) {
8340
8340
  for (var i = 0, list = node.properties; i < list.length; i += 1) {
8341
8341
  var prop = list[i];
8342
8342
  if (prop.type === "Property") {
8343
8343
  if (prop.computed) {
8344
- c9(prop.key, st, "Expression");
8344
+ c11(prop.key, st, "Expression");
8345
8345
  }
8346
- c9(prop.value, st, "Pattern");
8346
+ c11(prop.value, st, "Pattern");
8347
8347
  } else if (prop.type === "RestElement") {
8348
- c9(prop.argument, st, "Pattern");
8348
+ c11(prop.argument, st, "Pattern");
8349
8349
  }
8350
8350
  }
8351
8351
  };
8352
8352
  base$1.Expression = skipThrough;
8353
8353
  base$1.ThisExpression = base$1.Super = base$1.MetaProperty = ignore;
8354
- base$1.ArrayExpression = function(node, st, c9) {
8354
+ base$1.ArrayExpression = function(node, st, c11) {
8355
8355
  for (var i = 0, list = node.elements; i < list.length; i += 1) {
8356
8356
  var elt = list[i];
8357
8357
  if (elt) {
8358
- c9(elt, st, "Expression");
8358
+ c11(elt, st, "Expression");
8359
8359
  }
8360
8360
  }
8361
8361
  };
8362
- base$1.ObjectExpression = function(node, st, c9) {
8362
+ base$1.ObjectExpression = function(node, st, c11) {
8363
8363
  for (var i = 0, list = node.properties; i < list.length; i += 1) {
8364
8364
  var prop = list[i];
8365
- c9(prop, st);
8365
+ c11(prop, st);
8366
8366
  }
8367
8367
  };
8368
8368
  base$1.FunctionExpression = base$1.ArrowFunctionExpression = base$1.FunctionDeclaration;
8369
- base$1.SequenceExpression = function(node, st, c9) {
8369
+ base$1.SequenceExpression = function(node, st, c11) {
8370
8370
  for (var i = 0, list = node.expressions; i < list.length; i += 1) {
8371
8371
  var expr = list[i];
8372
- c9(expr, st, "Expression");
8372
+ c11(expr, st, "Expression");
8373
8373
  }
8374
8374
  };
8375
- base$1.TemplateLiteral = function(node, st, c9) {
8375
+ base$1.TemplateLiteral = function(node, st, c11) {
8376
8376
  for (var i = 0, list = node.quasis; i < list.length; i += 1) {
8377
8377
  var quasi = list[i];
8378
- c9(quasi, st);
8378
+ c11(quasi, st);
8379
8379
  }
8380
8380
  for (var i$1 = 0, list$1 = node.expressions; i$1 < list$1.length; i$1 += 1) {
8381
8381
  var expr = list$1[i$1];
8382
- c9(expr, st, "Expression");
8382
+ c11(expr, st, "Expression");
8383
8383
  }
8384
8384
  };
8385
8385
  base$1.TemplateElement = ignore;
8386
- base$1.UnaryExpression = base$1.UpdateExpression = function(node, st, c9) {
8387
- c9(node.argument, st, "Expression");
8386
+ base$1.UnaryExpression = base$1.UpdateExpression = function(node, st, c11) {
8387
+ c11(node.argument, st, "Expression");
8388
8388
  };
8389
- base$1.BinaryExpression = base$1.LogicalExpression = function(node, st, c9) {
8390
- c9(node.left, st, "Expression");
8391
- c9(node.right, st, "Expression");
8389
+ base$1.BinaryExpression = base$1.LogicalExpression = function(node, st, c11) {
8390
+ c11(node.left, st, "Expression");
8391
+ c11(node.right, st, "Expression");
8392
8392
  };
8393
- base$1.AssignmentExpression = base$1.AssignmentPattern = function(node, st, c9) {
8394
- c9(node.left, st, "Pattern");
8395
- c9(node.right, st, "Expression");
8393
+ base$1.AssignmentExpression = base$1.AssignmentPattern = function(node, st, c11) {
8394
+ c11(node.left, st, "Pattern");
8395
+ c11(node.right, st, "Expression");
8396
8396
  };
8397
- base$1.ConditionalExpression = function(node, st, c9) {
8398
- c9(node.test, st, "Expression");
8399
- c9(node.consequent, st, "Expression");
8400
- c9(node.alternate, st, "Expression");
8397
+ base$1.ConditionalExpression = function(node, st, c11) {
8398
+ c11(node.test, st, "Expression");
8399
+ c11(node.consequent, st, "Expression");
8400
+ c11(node.alternate, st, "Expression");
8401
8401
  };
8402
- base$1.NewExpression = base$1.CallExpression = function(node, st, c9) {
8403
- c9(node.callee, st, "Expression");
8402
+ base$1.NewExpression = base$1.CallExpression = function(node, st, c11) {
8403
+ c11(node.callee, st, "Expression");
8404
8404
  if (node.arguments) {
8405
8405
  for (var i = 0, list = node.arguments; i < list.length; i += 1) {
8406
8406
  var arg = list[i];
8407
- c9(arg, st, "Expression");
8407
+ c11(arg, st, "Expression");
8408
8408
  }
8409
8409
  }
8410
8410
  };
8411
- base$1.MemberExpression = function(node, st, c9) {
8412
- c9(node.object, st, "Expression");
8411
+ base$1.MemberExpression = function(node, st, c11) {
8412
+ c11(node.object, st, "Expression");
8413
8413
  if (node.computed) {
8414
- c9(node.property, st, "Expression");
8414
+ c11(node.property, st, "Expression");
8415
8415
  }
8416
8416
  };
8417
- base$1.ExportNamedDeclaration = base$1.ExportDefaultDeclaration = function(node, st, c9) {
8417
+ base$1.ExportNamedDeclaration = base$1.ExportDefaultDeclaration = function(node, st, c11) {
8418
8418
  if (node.declaration) {
8419
- c9(node.declaration, st, node.type === "ExportNamedDeclaration" || node.declaration.id ? "Statement" : "Expression");
8419
+ c11(node.declaration, st, node.type === "ExportNamedDeclaration" || node.declaration.id ? "Statement" : "Expression");
8420
8420
  }
8421
8421
  if (node.source) {
8422
- c9(node.source, st, "Expression");
8422
+ c11(node.source, st, "Expression");
8423
8423
  }
8424
8424
  };
8425
- base$1.ExportAllDeclaration = function(node, st, c9) {
8425
+ base$1.ExportAllDeclaration = function(node, st, c11) {
8426
8426
  if (node.exported) {
8427
- c9(node.exported, st);
8427
+ c11(node.exported, st);
8428
8428
  }
8429
- c9(node.source, st, "Expression");
8429
+ c11(node.source, st, "Expression");
8430
8430
  };
8431
- base$1.ImportDeclaration = function(node, st, c9) {
8431
+ base$1.ImportDeclaration = function(node, st, c11) {
8432
8432
  for (var i = 0, list = node.specifiers; i < list.length; i += 1) {
8433
8433
  var spec = list[i];
8434
- c9(spec, st);
8434
+ c11(spec, st);
8435
8435
  }
8436
- c9(node.source, st, "Expression");
8436
+ c11(node.source, st, "Expression");
8437
8437
  };
8438
- base$1.ImportExpression = function(node, st, c9) {
8439
- c9(node.source, st, "Expression");
8438
+ base$1.ImportExpression = function(node, st, c11) {
8439
+ c11(node.source, st, "Expression");
8440
8440
  };
8441
8441
  base$1.ImportSpecifier = base$1.ImportDefaultSpecifier = base$1.ImportNamespaceSpecifier = base$1.Identifier = base$1.PrivateIdentifier = base$1.Literal = ignore;
8442
- base$1.TaggedTemplateExpression = function(node, st, c9) {
8443
- c9(node.tag, st, "Expression");
8444
- c9(node.quasi, st, "Expression");
8442
+ base$1.TaggedTemplateExpression = function(node, st, c11) {
8443
+ c11(node.tag, st, "Expression");
8444
+ c11(node.quasi, st, "Expression");
8445
8445
  };
8446
- base$1.ClassDeclaration = base$1.ClassExpression = function(node, st, c9) {
8447
- return c9(node, st, "Class");
8446
+ base$1.ClassDeclaration = base$1.ClassExpression = function(node, st, c11) {
8447
+ return c11(node, st, "Class");
8448
8448
  };
8449
- base$1.Class = function(node, st, c9) {
8449
+ base$1.Class = function(node, st, c11) {
8450
8450
  if (node.id) {
8451
- c9(node.id, st, "Pattern");
8451
+ c11(node.id, st, "Pattern");
8452
8452
  }
8453
8453
  if (node.superClass) {
8454
- c9(node.superClass, st, "Expression");
8454
+ c11(node.superClass, st, "Expression");
8455
8455
  }
8456
- c9(node.body, st);
8456
+ c11(node.body, st);
8457
8457
  };
8458
- base$1.ClassBody = function(node, st, c9) {
8458
+ base$1.ClassBody = function(node, st, c11) {
8459
8459
  for (var i = 0, list = node.body; i < list.length; i += 1) {
8460
8460
  var elt = list[i];
8461
- c9(elt, st);
8461
+ c11(elt, st);
8462
8462
  }
8463
8463
  };
8464
- base$1.MethodDefinition = base$1.PropertyDefinition = base$1.Property = function(node, st, c9) {
8464
+ base$1.MethodDefinition = base$1.PropertyDefinition = base$1.Property = function(node, st, c11) {
8465
8465
  if (node.computed) {
8466
- c9(node.key, st, "Expression");
8466
+ c11(node.key, st, "Expression");
8467
8467
  }
8468
8468
  if (node.value) {
8469
- c9(node.value, st, "Expression");
8469
+ c11(node.value, st, "Expression");
8470
8470
  }
8471
8471
  };
8472
8472
  ArrowFunctionExpression$1 = "ArrowFunctionExpression";
@@ -8669,9 +8669,9 @@ var init_node_entry = __esm({
8669
8669
  }
8670
8670
  };
8671
8671
  SpreadElement = class extends NodeBase {
8672
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
8673
- if (path4.length > 0) {
8674
- this.argument.deoptimizeArgumentsOnInteractionAtPath(interaction, [UnknownKey, ...path4], recursionTracker);
8672
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
8673
+ if (path5.length > 0) {
8674
+ this.argument.deoptimizeArgumentsOnInteractionAtPath(interaction, [UnknownKey, ...path5], recursionTracker);
8675
8675
  }
8676
8676
  }
8677
8677
  hasEffects(context) {
@@ -8691,13 +8691,13 @@ var init_node_entry = __esm({
8691
8691
  super();
8692
8692
  this.description = description;
8693
8693
  }
8694
- deoptimizeArgumentsOnInteractionAtPath({ args, type }, path4) {
8695
- if (type === INTERACTION_CALLED && path4.length === 0 && this.description.mutatesSelfAsArray) {
8694
+ deoptimizeArgumentsOnInteractionAtPath({ args, type }, path5) {
8695
+ if (type === INTERACTION_CALLED && path5.length === 0 && this.description.mutatesSelfAsArray) {
8696
8696
  args[0]?.deoptimizePath(UNKNOWN_INTEGER_PATH);
8697
8697
  }
8698
8698
  }
8699
- getReturnExpressionWhenCalledAtPath(path4, { args }) {
8700
- if (path4.length > 0) {
8699
+ getReturnExpressionWhenCalledAtPath(path5, { args }) {
8700
+ if (path5.length > 0) {
8701
8701
  return UNKNOWN_RETURN_EXPRESSION;
8702
8702
  }
8703
8703
  return [
@@ -8705,9 +8705,9 @@ var init_node_entry = __esm({
8705
8705
  false
8706
8706
  ];
8707
8707
  }
8708
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
8708
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
8709
8709
  const { type } = interaction;
8710
- if (path4.length > (type === INTERACTION_ACCESSED ? 1 : 0)) {
8710
+ if (path5.length > (type === INTERACTION_ACCESSED ? 1 : 0)) {
8711
8711
  return true;
8712
8712
  }
8713
8713
  if (type === INTERACTION_CALLED) {
@@ -8811,15 +8811,15 @@ var init_node_entry = __esm({
8811
8811
  this.prototypeExpression?.deoptimizePath([UnknownKey, UnknownKey]);
8812
8812
  this.deoptimizeCachedEntities();
8813
8813
  }
8814
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
8815
- const [key, ...subPath] = path4;
8814
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
8815
+ const [key, ...subPath] = path5;
8816
8816
  const { args, type } = interaction;
8817
8817
  if (this.hasLostTrack || // single paths that are deoptimized will not become getters or setters
8818
- (type === INTERACTION_CALLED || path4.length > 1) && (this.hasUnknownDeoptimizedProperty || typeof key === "string" && this.deoptimizedPaths[key])) {
8818
+ (type === INTERACTION_CALLED || path5.length > 1) && (this.hasUnknownDeoptimizedProperty || typeof key === "string" && this.deoptimizedPaths[key])) {
8819
8819
  deoptimizeInteraction(interaction);
8820
8820
  return;
8821
8821
  }
8822
- const [propertiesForExactMatchByKey, relevantPropertiesByKey, relevantUnmatchableProperties] = type === INTERACTION_CALLED || path4.length > 1 ? [
8822
+ const [propertiesForExactMatchByKey, relevantPropertiesByKey, relevantUnmatchableProperties] = type === INTERACTION_CALLED || path5.length > 1 ? [
8823
8823
  this.propertiesAndGettersByKey,
8824
8824
  this.propertiesAndGettersByKey,
8825
8825
  this.unmatchablePropertiesAndGetters
@@ -8869,7 +8869,7 @@ var init_node_entry = __esm({
8869
8869
  }
8870
8870
  }
8871
8871
  }
8872
- this.prototypeExpression?.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
8872
+ this.prototypeExpression?.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
8873
8873
  }
8874
8874
  deoptimizeIntegerProperties() {
8875
8875
  if (this.hasLostTrack || this.hasUnknownDeoptimizedProperty || this.hasUnknownDeoptimizedInteger) {
@@ -8886,12 +8886,12 @@ var init_node_entry = __esm({
8886
8886
  this.deoptimizeCachedIntegerEntities();
8887
8887
  }
8888
8888
  // Assumption: If only a specific path is deoptimized, no accessors are created
8889
- deoptimizePath(path4) {
8889
+ deoptimizePath(path5) {
8890
8890
  if (this.hasLostTrack || this.immutable) {
8891
8891
  return;
8892
8892
  }
8893
- const key = path4[0];
8894
- if (path4.length === 1) {
8893
+ const key = path5[0];
8894
+ if (path5.length === 1) {
8895
8895
  if (typeof key !== "string") {
8896
8896
  if (key === UnknownInteger) {
8897
8897
  return this.deoptimizeIntegerProperties();
@@ -8908,55 +8908,55 @@ var init_node_entry = __esm({
8908
8908
  }
8909
8909
  }
8910
8910
  }
8911
- const subPath = path4.length === 1 ? UNKNOWN_PATH : path4.slice(1);
8911
+ const subPath = path5.length === 1 ? UNKNOWN_PATH : path5.slice(1);
8912
8912
  for (const property of typeof key === "string" ? [
8913
8913
  ...this.propertiesAndGettersByKey[key] || this.unmatchablePropertiesAndGetters,
8914
8914
  ...this.settersByKey[key] || this.unmatchableSetters
8915
8915
  ] : this.allProperties) {
8916
8916
  property.deoptimizePath(subPath);
8917
8917
  }
8918
- this.prototypeExpression?.deoptimizePath(path4.length === 1 ? [...path4, UnknownKey] : path4);
8918
+ this.prototypeExpression?.deoptimizePath(path5.length === 1 ? [...path5, UnknownKey] : path5);
8919
8919
  }
8920
- getLiteralValueAtPath(path4, recursionTracker, origin) {
8921
- if (path4.length === 0) {
8920
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
8921
+ if (path5.length === 0) {
8922
8922
  return UnknownTruthyValue;
8923
8923
  }
8924
- const key = path4[0];
8924
+ const key = path5[0];
8925
8925
  const expressionAtPath = this.getMemberExpressionAndTrackDeopt(key, origin);
8926
8926
  if (expressionAtPath) {
8927
- return expressionAtPath.getLiteralValueAtPath(path4.slice(1), recursionTracker, origin);
8927
+ return expressionAtPath.getLiteralValueAtPath(path5.slice(1), recursionTracker, origin);
8928
8928
  }
8929
8929
  if (this.prototypeExpression) {
8930
- return this.prototypeExpression.getLiteralValueAtPath(path4, recursionTracker, origin);
8930
+ return this.prototypeExpression.getLiteralValueAtPath(path5, recursionTracker, origin);
8931
8931
  }
8932
- if (path4.length === 1) {
8932
+ if (path5.length === 1) {
8933
8933
  return void 0;
8934
8934
  }
8935
8935
  return UnknownValue;
8936
8936
  }
8937
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
8938
- if (path4.length === 0) {
8937
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
8938
+ if (path5.length === 0) {
8939
8939
  return UNKNOWN_RETURN_EXPRESSION;
8940
8940
  }
8941
- const [key, ...subPath] = path4;
8941
+ const [key, ...subPath] = path5;
8942
8942
  const expressionAtPath = this.getMemberExpressionAndTrackDeopt(key, origin);
8943
8943
  if (expressionAtPath) {
8944
8944
  return expressionAtPath.getReturnExpressionWhenCalledAtPath(subPath, interaction, recursionTracker, origin);
8945
8945
  }
8946
8946
  if (this.prototypeExpression) {
8947
- return this.prototypeExpression.getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin);
8947
+ return this.prototypeExpression.getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin);
8948
8948
  }
8949
8949
  return UNKNOWN_RETURN_EXPRESSION;
8950
8950
  }
8951
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
8952
- const [key, ...subPath] = path4;
8951
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
8952
+ const [key, ...subPath] = path5;
8953
8953
  if (subPath.length > 0 || interaction.type === INTERACTION_CALLED) {
8954
8954
  const expressionAtPath = this.getMemberExpression(key);
8955
8955
  if (expressionAtPath) {
8956
8956
  return expressionAtPath.hasEffectsOnInteractionAtPath(subPath, interaction, context);
8957
8957
  }
8958
8958
  if (this.prototypeExpression) {
8959
- return this.prototypeExpression.hasEffectsOnInteractionAtPath(path4, interaction, context);
8959
+ return this.prototypeExpression.hasEffectsOnInteractionAtPath(path5, interaction, context);
8960
8960
  }
8961
8961
  return true;
8962
8962
  }
@@ -8990,7 +8990,7 @@ var init_node_entry = __esm({
8990
8990
  }
8991
8991
  }
8992
8992
  if (this.prototypeExpression) {
8993
- return this.prototypeExpression.hasEffectsOnInteractionAtPath(path4, interaction, context);
8993
+ return this.prototypeExpression.hasEffectsOnInteractionAtPath(path5, interaction, context);
8994
8994
  }
8995
8995
  return false;
8996
8996
  }
@@ -9084,16 +9084,16 @@ var init_node_entry = __esm({
9084
9084
  };
9085
9085
  isInteger = (property) => typeof property === "string" && /^\d+$/.test(property);
9086
9086
  OBJECT_PROTOTYPE_FALLBACK = new class ObjectPrototypeFallbackExpression extends ExpressionEntity {
9087
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4) {
9088
- if (interaction.type === INTERACTION_CALLED && path4.length === 1 && !isInteger(path4[0])) {
9087
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5) {
9088
+ if (interaction.type === INTERACTION_CALLED && path5.length === 1 && !isInteger(path5[0])) {
9089
9089
  deoptimizeInteraction(interaction);
9090
9090
  }
9091
9091
  }
9092
- getLiteralValueAtPath(path4) {
9093
- return path4.length === 1 && isInteger(path4[0]) ? void 0 : UnknownValue;
9092
+ getLiteralValueAtPath(path5) {
9093
+ return path5.length === 1 && isInteger(path5[0]) ? void 0 : UnknownValue;
9094
9094
  }
9095
- hasEffectsOnInteractionAtPath(path4, { type }) {
9096
- return path4.length > 1 || type === INTERACTION_CALLED;
9095
+ hasEffectsOnInteractionAtPath(path5, { type }) {
9096
+ return path5.length > 1 || type === INTERACTION_CALLED;
9097
9097
  }
9098
9098
  }();
9099
9099
  OBJECT_PROTOTYPE = new ObjectEntity({
@@ -9240,20 +9240,20 @@ var init_node_entry = __esm({
9240
9240
  super(...arguments);
9241
9241
  this.objectEntity = null;
9242
9242
  }
9243
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
9244
- this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
9243
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
9244
+ this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
9245
9245
  }
9246
- deoptimizePath(path4) {
9247
- this.getObjectEntity().deoptimizePath(path4);
9246
+ deoptimizePath(path5) {
9247
+ this.getObjectEntity().deoptimizePath(path5);
9248
9248
  }
9249
- getLiteralValueAtPath(path4, recursionTracker, origin) {
9250
- return this.getObjectEntity().getLiteralValueAtPath(path4, recursionTracker, origin);
9249
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
9250
+ return this.getObjectEntity().getLiteralValueAtPath(path5, recursionTracker, origin);
9251
9251
  }
9252
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
9253
- return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin);
9252
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
9253
+ return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin);
9254
9254
  }
9255
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
9256
- return this.getObjectEntity().hasEffectsOnInteractionAtPath(path4, interaction, context);
9255
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
9256
+ return this.getObjectEntity().hasEffectsOnInteractionAtPath(path5, interaction, context);
9257
9257
  }
9258
9258
  applyDeoptimizations() {
9259
9259
  this.deoptimized = true;
@@ -9349,18 +9349,18 @@ var init_node_entry = __esm({
9349
9349
  this.additionalInitializers = null;
9350
9350
  }
9351
9351
  }
9352
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
9352
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
9353
9353
  if (this.isReassigned) {
9354
9354
  deoptimizeInteraction(interaction);
9355
9355
  return;
9356
9356
  }
9357
- recursionTracker.withTrackedEntityAtPath(path4, this.init, () => this.init.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker), void 0);
9357
+ recursionTracker.withTrackedEntityAtPath(path5, this.init, () => this.init.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker), void 0);
9358
9358
  }
9359
- deoptimizePath(path4) {
9360
- if (this.isReassigned || this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(path4, this)) {
9359
+ deoptimizePath(path5) {
9360
+ if (this.isReassigned || this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(path5, this)) {
9361
9361
  return;
9362
9362
  }
9363
- if (path4.length === 0) {
9363
+ if (path5.length === 0) {
9364
9364
  if (!this.isReassigned) {
9365
9365
  this.isReassigned = true;
9366
9366
  const expressionsToBeDeoptimized = this.expressionsToBeDeoptimized;
@@ -9371,47 +9371,47 @@ var init_node_entry = __esm({
9371
9371
  this.init.deoptimizePath(UNKNOWN_PATH);
9372
9372
  }
9373
9373
  } else {
9374
- this.init.deoptimizePath(path4);
9374
+ this.init.deoptimizePath(path5);
9375
9375
  }
9376
9376
  }
9377
- getLiteralValueAtPath(path4, recursionTracker, origin) {
9377
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
9378
9378
  if (this.isReassigned) {
9379
9379
  return UnknownValue;
9380
9380
  }
9381
- return recursionTracker.withTrackedEntityAtPath(path4, this.init, () => {
9381
+ return recursionTracker.withTrackedEntityAtPath(path5, this.init, () => {
9382
9382
  this.expressionsToBeDeoptimized.push(origin);
9383
- return this.init.getLiteralValueAtPath(path4, recursionTracker, origin);
9383
+ return this.init.getLiteralValueAtPath(path5, recursionTracker, origin);
9384
9384
  }, UnknownValue);
9385
9385
  }
9386
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
9386
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
9387
9387
  if (this.isReassigned) {
9388
9388
  return UNKNOWN_RETURN_EXPRESSION;
9389
9389
  }
9390
- return recursionTracker.withTrackedEntityAtPath(path4, this.init, () => {
9390
+ return recursionTracker.withTrackedEntityAtPath(path5, this.init, () => {
9391
9391
  this.expressionsToBeDeoptimized.push(origin);
9392
- return this.init.getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin);
9392
+ return this.init.getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin);
9393
9393
  }, UNKNOWN_RETURN_EXPRESSION);
9394
9394
  }
9395
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
9395
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
9396
9396
  switch (interaction.type) {
9397
9397
  case INTERACTION_ACCESSED: {
9398
9398
  if (this.isReassigned)
9399
9399
  return true;
9400
- return !context.accessed.trackEntityAtPathAndGetIfTracked(path4, this) && this.init.hasEffectsOnInteractionAtPath(path4, interaction, context);
9400
+ return !context.accessed.trackEntityAtPathAndGetIfTracked(path5, this) && this.init.hasEffectsOnInteractionAtPath(path5, interaction, context);
9401
9401
  }
9402
9402
  case INTERACTION_ASSIGNED: {
9403
9403
  if (this.included)
9404
9404
  return true;
9405
- if (path4.length === 0)
9405
+ if (path5.length === 0)
9406
9406
  return false;
9407
9407
  if (this.isReassigned)
9408
9408
  return true;
9409
- return !context.assigned.trackEntityAtPathAndGetIfTracked(path4, this) && this.init.hasEffectsOnInteractionAtPath(path4, interaction, context);
9409
+ return !context.assigned.trackEntityAtPathAndGetIfTracked(path5, this) && this.init.hasEffectsOnInteractionAtPath(path5, interaction, context);
9410
9410
  }
9411
9411
  case INTERACTION_CALLED: {
9412
9412
  if (this.isReassigned)
9413
9413
  return true;
9414
- return !(interaction.withNew ? context.instantiated : context.called).trackEntityAtPathAndGetIfTracked(path4, interaction.args, this) && this.init.hasEffectsOnInteractionAtPath(path4, interaction, context);
9414
+ return !(interaction.withNew ? context.instantiated : context.called).trackEntityAtPathAndGetIfTracked(path5, interaction.args, this) && this.init.hasEffectsOnInteractionAtPath(path5, interaction, context);
9415
9415
  }
9416
9416
  }
9417
9417
  }
@@ -9496,33 +9496,33 @@ var init_node_entry = __esm({
9496
9496
  for (const field of this.deoptimizedFields) {
9497
9497
  entity.deoptimizePath([field]);
9498
9498
  }
9499
- for (const { interaction, path: path4 } of this.deoptimizationInteractions) {
9500
- entity.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, SHARED_RECURSION_TRACKER);
9499
+ for (const { interaction, path: path5 } of this.deoptimizationInteractions) {
9500
+ entity.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, SHARED_RECURSION_TRACKER);
9501
9501
  }
9502
9502
  }
9503
9503
  }
9504
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4) {
9505
- if (path4.length >= 2 || this.entitiesToBeDeoptimized.has(UNKNOWN_EXPRESSION) || this.deoptimizationInteractions.length >= MAX_TRACKED_INTERACTIONS || path4.length === 1 && (this.deoptimizedFields.has(UnknownKey) || interaction.type === INTERACTION_CALLED && this.deoptimizedFields.has(path4[0]))) {
9504
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5) {
9505
+ if (path5.length >= 2 || this.entitiesToBeDeoptimized.has(UNKNOWN_EXPRESSION) || this.deoptimizationInteractions.length >= MAX_TRACKED_INTERACTIONS || path5.length === 1 && (this.deoptimizedFields.has(UnknownKey) || interaction.type === INTERACTION_CALLED && this.deoptimizedFields.has(path5[0]))) {
9506
9506
  deoptimizeInteraction(interaction);
9507
9507
  return;
9508
9508
  }
9509
- if (!this.deoptimizations.trackEntityAtPathAndGetIfTracked(path4, interaction.args)) {
9509
+ if (!this.deoptimizations.trackEntityAtPathAndGetIfTracked(path5, interaction.args)) {
9510
9510
  for (const entity of this.entitiesToBeDeoptimized) {
9511
- entity.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, SHARED_RECURSION_TRACKER);
9511
+ entity.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, SHARED_RECURSION_TRACKER);
9512
9512
  }
9513
9513
  if (!this.entitiesToBeDeoptimized.has(UNKNOWN_EXPRESSION)) {
9514
9514
  this.deoptimizationInteractions.push({
9515
9515
  interaction,
9516
- path: path4
9516
+ path: path5
9517
9517
  });
9518
9518
  }
9519
9519
  }
9520
9520
  }
9521
- deoptimizePath(path4) {
9522
- if (path4.length === 0 || this.deoptimizedFields.has(UnknownKey)) {
9521
+ deoptimizePath(path5) {
9522
+ if (path5.length === 0 || this.deoptimizedFields.has(UnknownKey)) {
9523
9523
  return;
9524
9524
  }
9525
- const key = path4[0];
9525
+ const key = path5[0];
9526
9526
  if (this.deoptimizedFields.has(key)) {
9527
9527
  return;
9528
9528
  }
@@ -9537,11 +9537,11 @@ var init_node_entry = __esm({
9537
9537
  this.entitiesToBeDeoptimized = UNKNOWN_DEOPTIMIZED_ENTITY;
9538
9538
  }
9539
9539
  }
9540
- getReturnExpressionWhenCalledAtPath(path4) {
9541
- if (path4.length === 0) {
9540
+ getReturnExpressionWhenCalledAtPath(path5) {
9541
+ if (path5.length === 0) {
9542
9542
  this.deoptimizePath(UNKNOWN_PATH);
9543
- } else if (!this.deoptimizedFields.has(path4[0])) {
9544
- this.deoptimizePath([path4[0]]);
9543
+ } else if (!this.deoptimizedFields.has(path5[0])) {
9544
+ this.deoptimizePath([path5[0]]);
9545
9545
  }
9546
9546
  return UNKNOWN_RETURN_EXPRESSION;
9547
9547
  }
@@ -10692,43 +10692,43 @@ var init_node_entry = __esm({
10692
10692
  super(...arguments);
10693
10693
  this.isReassigned = true;
10694
10694
  }
10695
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
10695
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
10696
10696
  switch (interaction.type) {
10697
10697
  case INTERACTION_ACCESSED:
10698
10698
  case INTERACTION_ASSIGNED: {
10699
- if (!getGlobalAtPath([this.name, ...path4].slice(0, -1))) {
10700
- super.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
10699
+ if (!getGlobalAtPath([this.name, ...path5].slice(0, -1))) {
10700
+ super.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
10701
10701
  }
10702
10702
  return;
10703
10703
  }
10704
10704
  case INTERACTION_CALLED: {
10705
- const globalAtPath = getGlobalAtPath([this.name, ...path4]);
10705
+ const globalAtPath = getGlobalAtPath([this.name, ...path5]);
10706
10706
  if (globalAtPath) {
10707
10707
  globalAtPath.deoptimizeArgumentsOnCall(interaction);
10708
10708
  } else {
10709
- super.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
10709
+ super.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
10710
10710
  }
10711
10711
  return;
10712
10712
  }
10713
10713
  }
10714
10714
  }
10715
- getLiteralValueAtPath(path4, _recursionTracker, _origin) {
10716
- const globalAtPath = getGlobalAtPath([this.name, ...path4]);
10715
+ getLiteralValueAtPath(path5, _recursionTracker, _origin) {
10716
+ const globalAtPath = getGlobalAtPath([this.name, ...path5]);
10717
10717
  return globalAtPath ? globalAtPath.getLiteralValue() : UnknownValue;
10718
10718
  }
10719
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
10719
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
10720
10720
  switch (interaction.type) {
10721
10721
  case INTERACTION_ACCESSED: {
10722
- if (path4.length === 0) {
10722
+ if (path5.length === 0) {
10723
10723
  return this.name !== "undefined" && !getGlobalAtPath([this.name]);
10724
10724
  }
10725
- return !getGlobalAtPath([this.name, ...path4].slice(0, -1));
10725
+ return !getGlobalAtPath([this.name, ...path5].slice(0, -1));
10726
10726
  }
10727
10727
  case INTERACTION_ASSIGNED: {
10728
10728
  return true;
10729
10729
  }
10730
10730
  case INTERACTION_CALLED: {
10731
- const globalAtPath = getGlobalAtPath([this.name, ...path4]);
10731
+ const globalAtPath = getGlobalAtPath([this.name, ...path5]);
10732
10732
  return !globalAtPath || globalAtPath.hasEffectsWhenCalled(interaction, context);
10733
10733
  }
10734
10734
  }
@@ -10790,21 +10790,21 @@ var init_node_entry = __esm({
10790
10790
  variable.kind = kind;
10791
10791
  return [this.variable = variable];
10792
10792
  }
10793
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
10794
- this.variable.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
10793
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
10794
+ this.variable.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
10795
10795
  }
10796
- deoptimizePath(path4) {
10797
- if (path4.length === 0 && !this.scope.contains(this.name)) {
10796
+ deoptimizePath(path5) {
10797
+ if (path5.length === 0 && !this.scope.contains(this.name)) {
10798
10798
  this.disallowImportReassignment();
10799
10799
  }
10800
- this.variable?.deoptimizePath(path4);
10800
+ this.variable?.deoptimizePath(path5);
10801
10801
  }
10802
- getLiteralValueAtPath(path4, recursionTracker, origin) {
10803
- return this.getVariableRespectingTDZ().getLiteralValueAtPath(path4, recursionTracker, origin);
10802
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
10803
+ return this.getVariableRespectingTDZ().getLiteralValueAtPath(path5, recursionTracker, origin);
10804
10804
  }
10805
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
10806
- const [expression, isPure] = this.getVariableRespectingTDZ().getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin);
10807
- return [expression, isPure || this.isPureFunction(path4)];
10805
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
10806
+ const [expression, isPure] = this.getVariableRespectingTDZ().getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin);
10807
+ return [expression, isPure || this.isPureFunction(path5)];
10808
10808
  }
10809
10809
  hasEffects(context) {
10810
10810
  if (!this.deoptimized)
@@ -10814,16 +10814,16 @@ var init_node_entry = __esm({
10814
10814
  }
10815
10815
  return this.context.options.treeshake.unknownGlobalSideEffects && this.variable instanceof GlobalVariable && !this.isPureFunction(EMPTY_PATH) && this.variable.hasEffectsOnInteractionAtPath(EMPTY_PATH, NODE_INTERACTION_UNKNOWN_ACCESS, context);
10816
10816
  }
10817
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
10817
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
10818
10818
  switch (interaction.type) {
10819
10819
  case INTERACTION_ACCESSED: {
10820
- return this.variable !== null && !this.isPureFunction(path4) && this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(path4, interaction, context);
10820
+ return this.variable !== null && !this.isPureFunction(path5) && this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(path5, interaction, context);
10821
10821
  }
10822
10822
  case INTERACTION_ASSIGNED: {
10823
- return (path4.length > 0 ? this.getVariableRespectingTDZ() : this.variable).hasEffectsOnInteractionAtPath(path4, interaction, context);
10823
+ return (path5.length > 0 ? this.getVariableRespectingTDZ() : this.variable).hasEffectsOnInteractionAtPath(path5, interaction, context);
10824
10824
  }
10825
10825
  case INTERACTION_CALLED: {
10826
- return !this.isPureFunction(path4) && this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(path4, interaction, context);
10826
+ return !this.isPureFunction(path5) && this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(path5, interaction, context);
10827
10827
  }
10828
10828
  }
10829
10829
  }
@@ -10893,9 +10893,9 @@ var init_node_entry = __esm({
10893
10893
  }
10894
10894
  return this.variable;
10895
10895
  }
10896
- isPureFunction(path4) {
10896
+ isPureFunction(path5) {
10897
10897
  let currentPureFunction = this.context.manualPureFunctions[this.name];
10898
- for (const segment of path4) {
10898
+ for (const segment of path5) {
10899
10899
  if (currentPureFunction) {
10900
10900
  if (currentPureFunction[PureFunctionKey]) {
10901
10901
  return true;
@@ -11006,11 +11006,11 @@ var init_node_entry = __esm({
11006
11006
  this.declarationInit = init2;
11007
11007
  return this.argument.declare(kind, UNKNOWN_EXPRESSION);
11008
11008
  }
11009
- deoptimizePath(path4) {
11010
- path4.length === 0 && this.argument.deoptimizePath(EMPTY_PATH);
11009
+ deoptimizePath(path5) {
11010
+ path5.length === 0 && this.argument.deoptimizePath(EMPTY_PATH);
11011
11011
  }
11012
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
11013
- return path4.length > 0 || this.argument.hasEffectsOnInteractionAtPath(EMPTY_PATH, interaction, context);
11012
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
11013
+ return path5.length > 0 || this.argument.hasEffectsOnInteractionAtPath(EMPTY_PATH, interaction, context);
11014
11014
  }
11015
11015
  markDeclarationReached() {
11016
11016
  this.argument.markDeclarationReached();
@@ -11029,7 +11029,7 @@ var init_node_entry = __esm({
11029
11029
  this.objectEntity = null;
11030
11030
  this.deoptimizedReturn = false;
11031
11031
  }
11032
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
11032
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
11033
11033
  if (interaction.type === INTERACTION_CALLED) {
11034
11034
  const { parameters } = this.scope;
11035
11035
  const { args } = interaction;
@@ -11050,12 +11050,12 @@ var init_node_entry = __esm({
11050
11050
  }
11051
11051
  }
11052
11052
  } else {
11053
- this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
11053
+ this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
11054
11054
  }
11055
11055
  }
11056
- deoptimizePath(path4) {
11057
- this.getObjectEntity().deoptimizePath(path4);
11058
- if (path4.length === 1 && path4[0] === UnknownKey) {
11056
+ deoptimizePath(path5) {
11057
+ this.getObjectEntity().deoptimizePath(path5);
11058
+ if (path5.length === 1 && path5[0] === UnknownKey) {
11059
11059
  this.scope.getReturnExpression().deoptimizePath(UNKNOWN_PATH);
11060
11060
  for (const parameterList of this.scope.parameters) {
11061
11061
  for (const parameter of parameterList) {
@@ -11064,12 +11064,12 @@ var init_node_entry = __esm({
11064
11064
  }
11065
11065
  }
11066
11066
  }
11067
- getLiteralValueAtPath(path4, recursionTracker, origin) {
11068
- return this.getObjectEntity().getLiteralValueAtPath(path4, recursionTracker, origin);
11067
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
11068
+ return this.getObjectEntity().getLiteralValueAtPath(path5, recursionTracker, origin);
11069
11069
  }
11070
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
11071
- if (path4.length > 0) {
11072
- return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin);
11070
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
11071
+ if (path5.length > 0) {
11072
+ return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin);
11073
11073
  }
11074
11074
  if (this.async) {
11075
11075
  if (!this.deoptimizedReturn) {
@@ -11081,9 +11081,9 @@ var init_node_entry = __esm({
11081
11081
  }
11082
11082
  return [this.scope.getReturnExpression(), false];
11083
11083
  }
11084
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
11085
- if (path4.length > 0 || interaction.type !== INTERACTION_CALLED) {
11086
- return this.getObjectEntity().hasEffectsOnInteractionAtPath(path4, interaction, context);
11084
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
11085
+ if (path5.length > 0 || interaction.type !== INTERACTION_CALLED) {
11086
+ return this.getObjectEntity().hasEffectsOnInteractionAtPath(path5, interaction, context);
11087
11087
  }
11088
11088
  if (this.annotationNoSideEffects) {
11089
11089
  return false;
@@ -11146,8 +11146,8 @@ var init_node_entry = __esm({
11146
11146
  this.applyDeoptimizations();
11147
11147
  return false;
11148
11148
  }
11149
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
11150
- if (super.hasEffectsOnInteractionAtPath(path4, interaction, context)) {
11149
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
11150
+ if (super.hasEffectsOnInteractionAtPath(path5, interaction, context)) {
11151
11151
  return true;
11152
11152
  }
11153
11153
  if (this.annotationNoSideEffects) {
@@ -11201,10 +11201,10 @@ var init_node_entry = __esm({
11201
11201
  }
11202
11202
  return variables;
11203
11203
  }
11204
- deoptimizePath(path4) {
11205
- if (path4.length === 0) {
11204
+ deoptimizePath(path5) {
11205
+ if (path5.length === 0) {
11206
11206
  for (const property of this.properties) {
11207
- property.deoptimizePath(path4);
11207
+ property.deoptimizePath(path5);
11208
11208
  }
11209
11209
  }
11210
11210
  }
@@ -11228,8 +11228,8 @@ var init_node_entry = __esm({
11228
11228
  this.applyDeoptimizations();
11229
11229
  return right.hasEffects(context) || left.hasEffectsAsAssignmentTarget(context, operator !== "=");
11230
11230
  }
11231
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
11232
- return this.right.hasEffectsOnInteractionAtPath(path4, interaction, context);
11231
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
11232
+ return this.right.hasEffectsOnInteractionAtPath(path5, interaction, context);
11233
11233
  }
11234
11234
  include(context, includeChildrenRecursively) {
11235
11235
  const { deoptimized, left, right, operator } = this;
@@ -11300,11 +11300,11 @@ var init_node_entry = __esm({
11300
11300
  declare(kind, init2) {
11301
11301
  return this.left.declare(kind, init2);
11302
11302
  }
11303
- deoptimizePath(path4) {
11304
- path4.length === 0 && this.left.deoptimizePath(path4);
11303
+ deoptimizePath(path5) {
11304
+ path5.length === 0 && this.left.deoptimizePath(path5);
11305
11305
  }
11306
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
11307
- return path4.length > 0 || this.left.hasEffectsOnInteractionAtPath(EMPTY_PATH, interaction, context);
11306
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
11307
+ return path5.length > 0 || this.left.hasEffectsOnInteractionAtPath(EMPTY_PATH, interaction, context);
11308
11308
  }
11309
11309
  markDeclarationReached() {
11310
11310
  this.left.markDeclarationReached();
@@ -11332,8 +11332,8 @@ var init_node_entry = __esm({
11332
11332
  this.deoptimizedArguments.push(argument);
11333
11333
  }
11334
11334
  }
11335
- hasEffectsOnInteractionAtPath(path4, { type }) {
11336
- return type !== INTERACTION_ACCESSED || path4.length > 1;
11335
+ hasEffectsOnInteractionAtPath(path5, { type }) {
11336
+ return type !== INTERACTION_ACCESSED || path5.length > 1;
11337
11337
  }
11338
11338
  include() {
11339
11339
  super.include();
@@ -11347,8 +11347,8 @@ var init_node_entry = __esm({
11347
11347
  constructor(context) {
11348
11348
  super("this", null, context);
11349
11349
  }
11350
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
11351
- return (context.replacedVariableInits.get(this) || UNKNOWN_EXPRESSION).hasEffectsOnInteractionAtPath(path4, interaction, context);
11350
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
11351
+ return (context.replacedVariableInits.get(this) || UNKNOWN_EXPRESSION).hasEffectsOnInteractionAtPath(path5, interaction, context);
11352
11352
  }
11353
11353
  };
11354
11354
  FunctionScope = class extends ReturnValueScope {
@@ -11381,9 +11381,9 @@ var init_node_entry = __esm({
11381
11381
  this.constructedEntity = new ObjectEntity(/* @__PURE__ */ Object.create(null), OBJECT_PROTOTYPE);
11382
11382
  this.scope.thisVariable.addEntityToBeDeoptimized(this.constructedEntity);
11383
11383
  }
11384
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
11385
- super.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
11386
- if (interaction.type === INTERACTION_CALLED && path4.length === 0 && interaction.args[0]) {
11384
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
11385
+ super.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
11386
+ if (interaction.type === INTERACTION_CALLED && path5.length === 0 && interaction.args[0]) {
11387
11387
  this.scope.thisVariable.addEntityToBeDeoptimized(interaction.args[0]);
11388
11388
  }
11389
11389
  }
@@ -11395,8 +11395,8 @@ var init_node_entry = __esm({
11395
11395
  }
11396
11396
  return !!this.id?.hasEffects(context);
11397
11397
  }
11398
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
11399
- if (super.hasEffectsOnInteractionAtPath(path4, interaction, context))
11398
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
11399
+ if (super.hasEffectsOnInteractionAtPath(path5, interaction, context))
11400
11400
  return true;
11401
11401
  if (this.annotationNoSideEffects) {
11402
11402
  return false;
@@ -11507,8 +11507,8 @@ var init_node_entry = __esm({
11507
11507
  BinaryExpression = class extends NodeBase {
11508
11508
  deoptimizeCache() {
11509
11509
  }
11510
- getLiteralValueAtPath(path4, recursionTracker, origin) {
11511
- if (path4.length > 0)
11510
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
11511
+ if (path5.length > 0)
11512
11512
  return UnknownValue;
11513
11513
  const leftValue = this.left.getLiteralValueAtPath(EMPTY_PATH, recursionTracker, origin);
11514
11514
  if (typeof leftValue === "symbol")
@@ -11527,8 +11527,8 @@ var init_node_entry = __esm({
11527
11527
  }
11528
11528
  return super.hasEffects(context);
11529
11529
  }
11530
- hasEffectsOnInteractionAtPath(path4, { type }) {
11531
- return type !== INTERACTION_ACCESSED || path4.length > 1;
11530
+ hasEffectsOnInteractionAtPath(path5, { type }) {
11531
+ return type !== INTERACTION_ACCESSED || path5.length > 1;
11532
11532
  }
11533
11533
  render(code, options, { renderedSurroundingElement } = BLANK) {
11534
11534
  this.left.render(code, options, { renderedSurroundingElement });
@@ -11563,23 +11563,23 @@ var init_node_entry = __esm({
11563
11563
  Literal = class extends NodeBase {
11564
11564
  deoptimizeArgumentsOnInteractionAtPath() {
11565
11565
  }
11566
- getLiteralValueAtPath(path4) {
11567
- if (path4.length > 0 || // unknown literals can also be null but do not start with an "n"
11566
+ getLiteralValueAtPath(path5) {
11567
+ if (path5.length > 0 || // unknown literals can also be null but do not start with an "n"
11568
11568
  this.value === null && this.context.code.charCodeAt(this.start) !== 110 || typeof this.value === "bigint" || // to support shims for regular expressions
11569
11569
  this.context.code.charCodeAt(this.start) === 47) {
11570
11570
  return UnknownValue;
11571
11571
  }
11572
11572
  return this.value;
11573
11573
  }
11574
- getReturnExpressionWhenCalledAtPath(path4) {
11575
- if (path4.length !== 1)
11574
+ getReturnExpressionWhenCalledAtPath(path5) {
11575
+ if (path5.length !== 1)
11576
11576
  return UNKNOWN_RETURN_EXPRESSION;
11577
- return getMemberReturnExpressionWhenCalled(this.members, path4[0]);
11577
+ return getMemberReturnExpressionWhenCalled(this.members, path5[0]);
11578
11578
  }
11579
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
11579
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
11580
11580
  switch (interaction.type) {
11581
11581
  case INTERACTION_ACCESSED: {
11582
- return path4.length > (this.value === null ? 0 : 1);
11582
+ return path5.length > (this.value === null ? 0 : 1);
11583
11583
  }
11584
11584
  case INTERACTION_ASSIGNED: {
11585
11585
  return true;
@@ -11588,7 +11588,7 @@ var init_node_entry = __esm({
11588
11588
  if (this.included && this.value instanceof RegExp && (this.value.global || this.value.sticky)) {
11589
11589
  return true;
11590
11590
  }
11591
- return path4.length !== 1 || hasMemberEffectWhenCalled(this.members, path4[0], interaction, context);
11591
+ return path5.length !== 1 || hasMemberEffectWhenCalled(this.members, path5[0], interaction, context);
11592
11592
  }
11593
11593
  }
11594
11594
  }
@@ -11618,28 +11618,28 @@ var init_node_entry = __esm({
11618
11618
  }
11619
11619
  bind() {
11620
11620
  this.bound = true;
11621
- const path4 = getPathIfNotComputed(this);
11622
- const baseVariable = path4 && this.scope.findVariable(path4[0].key);
11621
+ const path5 = getPathIfNotComputed(this);
11622
+ const baseVariable = path5 && this.scope.findVariable(path5[0].key);
11623
11623
  if (baseVariable?.isNamespace) {
11624
- const resolvedVariable = resolveNamespaceVariables(baseVariable, path4.slice(1), this.context);
11624
+ const resolvedVariable = resolveNamespaceVariables(baseVariable, path5.slice(1), this.context);
11625
11625
  if (!resolvedVariable) {
11626
11626
  super.bind();
11627
11627
  } else if (resolvedVariable === "undefined") {
11628
11628
  this.isUndefined = true;
11629
11629
  } else {
11630
11630
  this.variable = resolvedVariable;
11631
- this.scope.addNamespaceMemberAccess(getStringFromPath(path4), resolvedVariable);
11631
+ this.scope.addNamespaceMemberAccess(getStringFromPath(path5), resolvedVariable);
11632
11632
  }
11633
11633
  } else {
11634
11634
  super.bind();
11635
11635
  }
11636
11636
  }
11637
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
11637
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
11638
11638
  if (this.variable) {
11639
- this.variable.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
11639
+ this.variable.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
11640
11640
  } else if (!this.isUndefined) {
11641
- if (path4.length < MAX_PATH_DEPTH) {
11642
- this.object.deoptimizeArgumentsOnInteractionAtPath(interaction, [this.getPropertyKey(), ...path4], recursionTracker);
11641
+ if (path5.length < MAX_PATH_DEPTH) {
11642
+ this.object.deoptimizeArgumentsOnInteractionAtPath(interaction, [this.getPropertyKey(), ...path5], recursionTracker);
11643
11643
  } else {
11644
11644
  deoptimizeInteraction(interaction);
11645
11645
  }
@@ -11654,42 +11654,42 @@ var init_node_entry = __esm({
11654
11654
  expression.deoptimizeCache();
11655
11655
  }
11656
11656
  }
11657
- deoptimizePath(path4) {
11658
- if (path4.length === 0)
11657
+ deoptimizePath(path5) {
11658
+ if (path5.length === 0)
11659
11659
  this.disallowNamespaceReassignment();
11660
11660
  if (this.variable) {
11661
- this.variable.deoptimizePath(path4);
11662
- } else if (!this.isUndefined && path4.length < MAX_PATH_DEPTH) {
11661
+ this.variable.deoptimizePath(path5);
11662
+ } else if (!this.isUndefined && path5.length < MAX_PATH_DEPTH) {
11663
11663
  const propertyKey = this.getPropertyKey();
11664
11664
  this.object.deoptimizePath([
11665
11665
  propertyKey === UnknownKey ? UnknownNonAccessorKey : propertyKey,
11666
- ...path4
11666
+ ...path5
11667
11667
  ]);
11668
11668
  }
11669
11669
  }
11670
- getLiteralValueAtPath(path4, recursionTracker, origin) {
11670
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
11671
11671
  if (this.variable) {
11672
- return this.variable.getLiteralValueAtPath(path4, recursionTracker, origin);
11672
+ return this.variable.getLiteralValueAtPath(path5, recursionTracker, origin);
11673
11673
  }
11674
11674
  if (this.isUndefined) {
11675
11675
  return void 0;
11676
11676
  }
11677
- if (this.propertyKey !== UnknownKey && path4.length < MAX_PATH_DEPTH) {
11677
+ if (this.propertyKey !== UnknownKey && path5.length < MAX_PATH_DEPTH) {
11678
11678
  this.expressionsToBeDeoptimized.push(origin);
11679
- return this.object.getLiteralValueAtPath([this.getPropertyKey(), ...path4], recursionTracker, origin);
11679
+ return this.object.getLiteralValueAtPath([this.getPropertyKey(), ...path5], recursionTracker, origin);
11680
11680
  }
11681
11681
  return UnknownValue;
11682
11682
  }
11683
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
11683
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
11684
11684
  if (this.variable) {
11685
- return this.variable.getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin);
11685
+ return this.variable.getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin);
11686
11686
  }
11687
11687
  if (this.isUndefined) {
11688
11688
  return [UNDEFINED_EXPRESSION, false];
11689
11689
  }
11690
- if (this.propertyKey !== UnknownKey && path4.length < MAX_PATH_DEPTH) {
11690
+ if (this.propertyKey !== UnknownKey && path5.length < MAX_PATH_DEPTH) {
11691
11691
  this.expressionsToBeDeoptimized.push(origin);
11692
- return this.object.getReturnExpressionWhenCalledAtPath([this.getPropertyKey(), ...path4], interaction, recursionTracker, origin);
11692
+ return this.object.getReturnExpressionWhenCalledAtPath([this.getPropertyKey(), ...path5], interaction, recursionTracker, origin);
11693
11693
  }
11694
11694
  return UNKNOWN_RETURN_EXPRESSION;
11695
11695
  }
@@ -11705,15 +11705,15 @@ var init_node_entry = __esm({
11705
11705
  this.applyAssignmentDeoptimization();
11706
11706
  return this.property.hasEffects(context) || this.object.hasEffects(context) || checkAccess && this.hasAccessEffect(context) || this.hasEffectsOnInteractionAtPath(EMPTY_PATH, this.assignmentInteraction, context);
11707
11707
  }
11708
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
11708
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
11709
11709
  if (this.variable) {
11710
- return this.variable.hasEffectsOnInteractionAtPath(path4, interaction, context);
11710
+ return this.variable.hasEffectsOnInteractionAtPath(path5, interaction, context);
11711
11711
  }
11712
11712
  if (this.isUndefined) {
11713
11713
  return true;
11714
11714
  }
11715
- if (path4.length < MAX_PATH_DEPTH) {
11716
- return this.object.hasEffectsOnInteractionAtPath([this.getPropertyKey(), ...path4], interaction, context);
11715
+ if (path5.length < MAX_PATH_DEPTH) {
11716
+ return this.object.hasEffectsOnInteractionAtPath([this.getPropertyKey(), ...path5], interaction, context);
11717
11717
  }
11718
11718
  return true;
11719
11719
  }
@@ -11833,7 +11833,7 @@ var init_node_entry = __esm({
11833
11833
  this.deoptimizableDependentExpressions = [];
11834
11834
  this.expressionsToBeDeoptimized = /* @__PURE__ */ new Set();
11835
11835
  }
11836
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
11836
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
11837
11837
  const { args } = interaction;
11838
11838
  const [returnExpression, isPure] = this.getReturnExpression(recursionTracker);
11839
11839
  if (isPure)
@@ -11846,11 +11846,11 @@ var init_node_entry = __esm({
11846
11846
  expression.deoptimizePath(UNKNOWN_PATH);
11847
11847
  }
11848
11848
  } else {
11849
- recursionTracker.withTrackedEntityAtPath(path4, returnExpression, () => {
11849
+ recursionTracker.withTrackedEntityAtPath(path5, returnExpression, () => {
11850
11850
  for (const expression of deoptimizedExpressions) {
11851
11851
  this.expressionsToBeDeoptimized.add(expression);
11852
11852
  }
11853
- returnExpression.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
11853
+ returnExpression.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
11854
11854
  }, null);
11855
11855
  }
11856
11856
  }
@@ -11868,48 +11868,48 @@ var init_node_entry = __esm({
11868
11868
  }
11869
11869
  }
11870
11870
  }
11871
- deoptimizePath(path4) {
11872
- if (path4.length === 0 || this.context.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(path4, this)) {
11871
+ deoptimizePath(path5) {
11872
+ if (path5.length === 0 || this.context.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(path5, this)) {
11873
11873
  return;
11874
11874
  }
11875
11875
  const [returnExpression] = this.getReturnExpression();
11876
11876
  if (returnExpression !== UNKNOWN_EXPRESSION) {
11877
- returnExpression.deoptimizePath(path4);
11877
+ returnExpression.deoptimizePath(path5);
11878
11878
  }
11879
11879
  }
11880
- getLiteralValueAtPath(path4, recursionTracker, origin) {
11880
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
11881
11881
  const [returnExpression] = this.getReturnExpression(recursionTracker);
11882
11882
  if (returnExpression === UNKNOWN_EXPRESSION) {
11883
11883
  return UnknownValue;
11884
11884
  }
11885
- return recursionTracker.withTrackedEntityAtPath(path4, returnExpression, () => {
11885
+ return recursionTracker.withTrackedEntityAtPath(path5, returnExpression, () => {
11886
11886
  this.deoptimizableDependentExpressions.push(origin);
11887
- return returnExpression.getLiteralValueAtPath(path4, recursionTracker, origin);
11887
+ return returnExpression.getLiteralValueAtPath(path5, recursionTracker, origin);
11888
11888
  }, UnknownValue);
11889
11889
  }
11890
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
11890
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
11891
11891
  const returnExpression = this.getReturnExpression(recursionTracker);
11892
11892
  if (returnExpression[0] === UNKNOWN_EXPRESSION) {
11893
11893
  return returnExpression;
11894
11894
  }
11895
- return recursionTracker.withTrackedEntityAtPath(path4, returnExpression, () => {
11895
+ return recursionTracker.withTrackedEntityAtPath(path5, returnExpression, () => {
11896
11896
  this.deoptimizableDependentExpressions.push(origin);
11897
- const [expression, isPure] = returnExpression[0].getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin);
11897
+ const [expression, isPure] = returnExpression[0].getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin);
11898
11898
  return [expression, isPure || returnExpression[1]];
11899
11899
  }, UNKNOWN_RETURN_EXPRESSION);
11900
11900
  }
11901
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
11901
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
11902
11902
  const { type } = interaction;
11903
11903
  if (type === INTERACTION_CALLED) {
11904
11904
  const { args, withNew } = interaction;
11905
- if ((withNew ? context.instantiated : context.called).trackEntityAtPathAndGetIfTracked(path4, args, this)) {
11905
+ if ((withNew ? context.instantiated : context.called).trackEntityAtPathAndGetIfTracked(path5, args, this)) {
11906
11906
  return false;
11907
11907
  }
11908
- } else if ((type === INTERACTION_ASSIGNED ? context.assigned : context.accessed).trackEntityAtPathAndGetIfTracked(path4, this)) {
11908
+ } else if ((type === INTERACTION_ASSIGNED ? context.assigned : context.accessed).trackEntityAtPathAndGetIfTracked(path5, this)) {
11909
11909
  return false;
11910
11910
  }
11911
11911
  const [returnExpression, isPure] = this.getReturnExpression();
11912
- return (type === INTERACTION_ASSIGNED || !isPure) && returnExpression.hasEffectsOnInteractionAtPath(path4, interaction, context);
11912
+ return (type === INTERACTION_ASSIGNED || !isPure) && returnExpression.hasEffectsOnInteractionAtPath(path5, interaction, context);
11913
11913
  }
11914
11914
  };
11915
11915
  CallExpression = class extends CallExpressionBase {
@@ -12013,10 +12013,10 @@ var init_node_entry = __esm({
12013
12013
  // deoptimizations are not relevant as we are not caching values
12014
12014
  deoptimizeCache() {
12015
12015
  }
12016
- getLiteralValueAtPath(path4, recursionTracker, origin) {
12016
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
12017
12017
  if (this.expression.isSkippedAsOptional(origin))
12018
12018
  return void 0;
12019
- return this.expression.getLiteralValueAtPath(path4, recursionTracker, origin);
12019
+ return this.expression.getLiteralValueAtPath(path5, recursionTracker, origin);
12020
12020
  }
12021
12021
  hasEffects(context) {
12022
12022
  if (this.expression.isSkippedAsOptional(this))
@@ -12061,41 +12061,41 @@ var init_node_entry = __esm({
12061
12061
  super(...arguments);
12062
12062
  this.accessedValue = null;
12063
12063
  }
12064
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
12065
- if (interaction.type === INTERACTION_ACCESSED && this.kind === "get" && path4.length === 0) {
12064
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
12065
+ if (interaction.type === INTERACTION_ACCESSED && this.kind === "get" && path5.length === 0) {
12066
12066
  return this.value.deoptimizeArgumentsOnInteractionAtPath({
12067
12067
  args: interaction.args,
12068
12068
  type: INTERACTION_CALLED,
12069
12069
  withNew: false
12070
12070
  }, EMPTY_PATH, recursionTracker);
12071
12071
  }
12072
- if (interaction.type === INTERACTION_ASSIGNED && this.kind === "set" && path4.length === 0) {
12072
+ if (interaction.type === INTERACTION_ASSIGNED && this.kind === "set" && path5.length === 0) {
12073
12073
  return this.value.deoptimizeArgumentsOnInteractionAtPath({
12074
12074
  args: interaction.args,
12075
12075
  type: INTERACTION_CALLED,
12076
12076
  withNew: false
12077
12077
  }, EMPTY_PATH, recursionTracker);
12078
12078
  }
12079
- this.getAccessedValue()[0].deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
12079
+ this.getAccessedValue()[0].deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
12080
12080
  }
12081
12081
  // As getter properties directly receive their values from fixed function
12082
12082
  // expressions, there is no known situation where a getter is deoptimized.
12083
12083
  deoptimizeCache() {
12084
12084
  }
12085
- deoptimizePath(path4) {
12086
- this.getAccessedValue()[0].deoptimizePath(path4);
12085
+ deoptimizePath(path5) {
12086
+ this.getAccessedValue()[0].deoptimizePath(path5);
12087
12087
  }
12088
- getLiteralValueAtPath(path4, recursionTracker, origin) {
12089
- return this.getAccessedValue()[0].getLiteralValueAtPath(path4, recursionTracker, origin);
12088
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
12089
+ return this.getAccessedValue()[0].getLiteralValueAtPath(path5, recursionTracker, origin);
12090
12090
  }
12091
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
12092
- return this.getAccessedValue()[0].getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin);
12091
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
12092
+ return this.getAccessedValue()[0].getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin);
12093
12093
  }
12094
12094
  hasEffects(context) {
12095
12095
  return this.key.hasEffects(context);
12096
12096
  }
12097
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
12098
- if (this.kind === "get" && interaction.type === INTERACTION_ACCESSED && path4.length === 0) {
12097
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
12098
+ if (this.kind === "get" && interaction.type === INTERACTION_ACCESSED && path5.length === 0) {
12099
12099
  return this.value.hasEffectsOnInteractionAtPath(EMPTY_PATH, {
12100
12100
  args: interaction.args,
12101
12101
  type: INTERACTION_CALLED,
@@ -12109,7 +12109,7 @@ var init_node_entry = __esm({
12109
12109
  withNew: false
12110
12110
  }, context);
12111
12111
  }
12112
- return this.getAccessedValue()[0].hasEffectsOnInteractionAtPath(path4, interaction, context);
12112
+ return this.getAccessedValue()[0].hasEffectsOnInteractionAtPath(path5, interaction, context);
12113
12113
  }
12114
12114
  applyDeoptimizations() {
12115
12115
  }
@@ -12135,20 +12135,20 @@ var init_node_entry = __esm({
12135
12135
  this.object = object;
12136
12136
  this.key = key;
12137
12137
  }
12138
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
12139
- this.object.deoptimizeArgumentsOnInteractionAtPath(interaction, [this.key, ...path4], recursionTracker);
12138
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
12139
+ this.object.deoptimizeArgumentsOnInteractionAtPath(interaction, [this.key, ...path5], recursionTracker);
12140
12140
  }
12141
- deoptimizePath(path4) {
12142
- this.object.deoptimizePath([this.key, ...path4]);
12141
+ deoptimizePath(path5) {
12142
+ this.object.deoptimizePath([this.key, ...path5]);
12143
12143
  }
12144
- getLiteralValueAtPath(path4, recursionTracker, origin) {
12145
- return this.object.getLiteralValueAtPath([this.key, ...path4], recursionTracker, origin);
12144
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
12145
+ return this.object.getLiteralValueAtPath([this.key, ...path5], recursionTracker, origin);
12146
12146
  }
12147
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
12148
- return this.object.getReturnExpressionWhenCalledAtPath([this.key, ...path4], interaction, recursionTracker, origin);
12147
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
12148
+ return this.object.getReturnExpressionWhenCalledAtPath([this.key, ...path5], interaction, recursionTracker, origin);
12149
12149
  }
12150
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
12151
- return this.object.hasEffectsOnInteractionAtPath([this.key, ...path4], interaction, context);
12150
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
12151
+ return this.object.hasEffectsOnInteractionAtPath([this.key, ...path5], interaction, context);
12152
12152
  }
12153
12153
  };
12154
12154
  ClassNode = class extends NodeBase {
@@ -12159,20 +12159,20 @@ var init_node_entry = __esm({
12159
12159
  createScope(parentScope) {
12160
12160
  this.scope = new ChildScope(parentScope);
12161
12161
  }
12162
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
12163
- this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
12162
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
12163
+ this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
12164
12164
  }
12165
12165
  deoptimizeCache() {
12166
12166
  this.getObjectEntity().deoptimizeAllProperties();
12167
12167
  }
12168
- deoptimizePath(path4) {
12169
- this.getObjectEntity().deoptimizePath(path4);
12168
+ deoptimizePath(path5) {
12169
+ this.getObjectEntity().deoptimizePath(path5);
12170
12170
  }
12171
- getLiteralValueAtPath(path4, recursionTracker, origin) {
12172
- return this.getObjectEntity().getLiteralValueAtPath(path4, recursionTracker, origin);
12171
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
12172
+ return this.getObjectEntity().getLiteralValueAtPath(path5, recursionTracker, origin);
12173
12173
  }
12174
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
12175
- return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin);
12174
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
12175
+ return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin);
12176
12176
  }
12177
12177
  hasEffects(context) {
12178
12178
  if (!this.deoptimized)
@@ -12181,8 +12181,8 @@ var init_node_entry = __esm({
12181
12181
  this.id?.markDeclarationReached();
12182
12182
  return initEffect || super.hasEffects(context);
12183
12183
  }
12184
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
12185
- return interaction.type === INTERACTION_CALLED && path4.length === 0 ? !interaction.withNew || (this.classConstructor === null ? this.superClass?.hasEffectsOnInteractionAtPath(path4, interaction, context) : this.classConstructor.hasEffectsOnInteractionAtPath(path4, interaction, context)) || false : this.getObjectEntity().hasEffectsOnInteractionAtPath(path4, interaction, context);
12184
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
12185
+ return interaction.type === INTERACTION_CALLED && path5.length === 0 ? !interaction.withNew || (this.classConstructor === null ? this.superClass?.hasEffectsOnInteractionAtPath(path5, interaction, context) : this.classConstructor.hasEffectsOnInteractionAtPath(path5, interaction, context)) || false : this.getObjectEntity().hasEffectsOnInteractionAtPath(path5, interaction, context);
12186
12186
  }
12187
12187
  include(context, includeChildrenRecursively) {
12188
12188
  if (!this.deoptimized)
@@ -12310,20 +12310,20 @@ var init_node_entry = __esm({
12310
12310
  this.expressions = expressions;
12311
12311
  this.included = false;
12312
12312
  }
12313
- deoptimizePath(path4) {
12313
+ deoptimizePath(path5) {
12314
12314
  for (const expression of this.expressions) {
12315
- expression.deoptimizePath(path4);
12315
+ expression.deoptimizePath(path5);
12316
12316
  }
12317
12317
  }
12318
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
12318
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
12319
12319
  return [
12320
- new MultiExpression(this.expressions.map((expression) => expression.getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin)[0])),
12320
+ new MultiExpression(this.expressions.map((expression) => expression.getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin)[0])),
12321
12321
  false
12322
12322
  ];
12323
12323
  }
12324
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
12324
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
12325
12325
  for (const expression of this.expressions) {
12326
- if (expression.hasEffectsOnInteractionAtPath(path4, interaction, context))
12326
+ if (expression.hasEffectsOnInteractionAtPath(path5, interaction, context))
12327
12327
  return true;
12328
12328
  }
12329
12329
  return false;
@@ -12336,9 +12336,9 @@ var init_node_entry = __esm({
12336
12336
  this.isBranchResolutionAnalysed = false;
12337
12337
  this.usedBranch = null;
12338
12338
  }
12339
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
12340
- this.consequent.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
12341
- this.alternate.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
12339
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
12340
+ this.consequent.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
12341
+ this.alternate.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
12342
12342
  }
12343
12343
  deoptimizeCache() {
12344
12344
  if (this.usedBranch !== null) {
@@ -12352,34 +12352,34 @@ var init_node_entry = __esm({
12352
12352
  }
12353
12353
  }
12354
12354
  }
12355
- deoptimizePath(path4) {
12355
+ deoptimizePath(path5) {
12356
12356
  const usedBranch = this.getUsedBranch();
12357
12357
  if (usedBranch) {
12358
- usedBranch.deoptimizePath(path4);
12358
+ usedBranch.deoptimizePath(path5);
12359
12359
  } else {
12360
- this.consequent.deoptimizePath(path4);
12361
- this.alternate.deoptimizePath(path4);
12360
+ this.consequent.deoptimizePath(path5);
12361
+ this.alternate.deoptimizePath(path5);
12362
12362
  }
12363
12363
  }
12364
- getLiteralValueAtPath(path4, recursionTracker, origin) {
12364
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
12365
12365
  const usedBranch = this.getUsedBranch();
12366
12366
  if (!usedBranch)
12367
12367
  return UnknownValue;
12368
12368
  this.expressionsToBeDeoptimized.push(origin);
12369
- return usedBranch.getLiteralValueAtPath(path4, recursionTracker, origin);
12369
+ return usedBranch.getLiteralValueAtPath(path5, recursionTracker, origin);
12370
12370
  }
12371
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
12371
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
12372
12372
  const usedBranch = this.getUsedBranch();
12373
12373
  if (!usedBranch)
12374
12374
  return [
12375
12375
  new MultiExpression([
12376
- this.consequent.getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin)[0],
12377
- this.alternate.getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin)[0]
12376
+ this.consequent.getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin)[0],
12377
+ this.alternate.getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin)[0]
12378
12378
  ]),
12379
12379
  false
12380
12380
  ];
12381
12381
  this.expressionsToBeDeoptimized.push(origin);
12382
- return usedBranch.getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin);
12382
+ return usedBranch.getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin);
12383
12383
  }
12384
12384
  hasEffects(context) {
12385
12385
  if (this.test.hasEffects(context))
@@ -12390,12 +12390,12 @@ var init_node_entry = __esm({
12390
12390
  }
12391
12391
  return usedBranch.hasEffects(context);
12392
12392
  }
12393
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
12393
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
12394
12394
  const usedBranch = this.getUsedBranch();
12395
12395
  if (!usedBranch) {
12396
- return this.consequent.hasEffectsOnInteractionAtPath(path4, interaction, context) || this.alternate.hasEffectsOnInteractionAtPath(path4, interaction, context);
12396
+ return this.consequent.hasEffectsOnInteractionAtPath(path5, interaction, context) || this.alternate.hasEffectsOnInteractionAtPath(path5, interaction, context);
12397
12397
  }
12398
- return usedBranch.hasEffectsOnInteractionAtPath(path4, interaction, context);
12398
+ return usedBranch.hasEffectsOnInteractionAtPath(path5, interaction, context);
12399
12399
  }
12400
12400
  include(context, includeChildrenRecursively) {
12401
12401
  this.included = true;
@@ -13065,8 +13065,8 @@ var init_node_entry = __esm({
13065
13065
  declareDeclarator(kind) {
13066
13066
  this.id.declare(kind, this.init || UNDEFINED_EXPRESSION);
13067
13067
  }
13068
- deoptimizePath(path4) {
13069
- this.id.deoptimizePath(path4);
13068
+ deoptimizePath(path5) {
13069
+ this.id.deoptimizePath(path5);
13070
13070
  }
13071
13071
  hasEffects(context) {
13072
13072
  if (!this.deoptimized)
@@ -13423,9 +13423,9 @@ var init_node_entry = __esm({
13423
13423
  this.isBranchResolutionAnalysed = false;
13424
13424
  this.usedBranch = null;
13425
13425
  }
13426
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
13427
- this.left.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
13428
- this.right.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
13426
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
13427
+ this.left.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
13428
+ this.right.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
13429
13429
  }
13430
13430
  deoptimizeCache() {
13431
13431
  if (this.usedBranch) {
@@ -13440,34 +13440,34 @@ var init_node_entry = __esm({
13440
13440
  context.requestTreeshakingPass();
13441
13441
  }
13442
13442
  }
13443
- deoptimizePath(path4) {
13443
+ deoptimizePath(path5) {
13444
13444
  const usedBranch = this.getUsedBranch();
13445
13445
  if (usedBranch) {
13446
- usedBranch.deoptimizePath(path4);
13446
+ usedBranch.deoptimizePath(path5);
13447
13447
  } else {
13448
- this.left.deoptimizePath(path4);
13449
- this.right.deoptimizePath(path4);
13448
+ this.left.deoptimizePath(path5);
13449
+ this.right.deoptimizePath(path5);
13450
13450
  }
13451
13451
  }
13452
- getLiteralValueAtPath(path4, recursionTracker, origin) {
13452
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
13453
13453
  const usedBranch = this.getUsedBranch();
13454
13454
  if (!usedBranch)
13455
13455
  return UnknownValue;
13456
13456
  this.expressionsToBeDeoptimized.push(origin);
13457
- return usedBranch.getLiteralValueAtPath(path4, recursionTracker, origin);
13457
+ return usedBranch.getLiteralValueAtPath(path5, recursionTracker, origin);
13458
13458
  }
13459
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
13459
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
13460
13460
  const usedBranch = this.getUsedBranch();
13461
13461
  if (!usedBranch)
13462
13462
  return [
13463
13463
  new MultiExpression([
13464
- this.left.getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin)[0],
13465
- this.right.getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin)[0]
13464
+ this.left.getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin)[0],
13465
+ this.right.getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin)[0]
13466
13466
  ]),
13467
13467
  false
13468
13468
  ];
13469
13469
  this.expressionsToBeDeoptimized.push(origin);
13470
- return usedBranch.getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin);
13470
+ return usedBranch.getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin);
13471
13471
  }
13472
13472
  hasEffects(context) {
13473
13473
  if (this.left.hasEffects(context)) {
@@ -13478,12 +13478,12 @@ var init_node_entry = __esm({
13478
13478
  }
13479
13479
  return false;
13480
13480
  }
13481
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
13481
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
13482
13482
  const usedBranch = this.getUsedBranch();
13483
13483
  if (!usedBranch) {
13484
- return this.left.hasEffectsOnInteractionAtPath(path4, interaction, context) || this.right.hasEffectsOnInteractionAtPath(path4, interaction, context);
13484
+ return this.left.hasEffectsOnInteractionAtPath(path5, interaction, context) || this.right.hasEffectsOnInteractionAtPath(path5, interaction, context);
13485
13485
  }
13486
- return usedBranch.hasEffectsOnInteractionAtPath(path4, interaction, context);
13486
+ return usedBranch.hasEffectsOnInteractionAtPath(path5, interaction, context);
13487
13487
  }
13488
13488
  include(context, includeChildrenRecursively) {
13489
13489
  this.included = true;
@@ -13554,8 +13554,8 @@ var init_node_entry = __esm({
13554
13554
  hasEffects() {
13555
13555
  return false;
13556
13556
  }
13557
- hasEffectsOnInteractionAtPath(path4, { type }) {
13558
- return path4.length > 1 || type !== INTERACTION_ACCESSED;
13557
+ hasEffectsOnInteractionAtPath(path5, { type }) {
13558
+ return path5.length > 1 || type !== INTERACTION_ACCESSED;
13559
13559
  }
13560
13560
  include() {
13561
13561
  if (!this.included) {
@@ -13627,15 +13627,15 @@ var init_node_entry = __esm({
13627
13627
  system: ["module", "URL"],
13628
13628
  umd: ["document", "require", "URL"]
13629
13629
  };
13630
- getResolveUrl = (path4, URL2 = "URL") => `new ${URL2}(${path4}).href`;
13631
- getRelativeUrlFromDocument = (relativePath, umd2 = false) => getResolveUrl(`'${escapeId(relativePath)}', ${umd2 ? `typeof document === 'undefined' ? location.href : ` : ""}document.currentScript && document.currentScript.src || document.baseURI`);
13630
+ getResolveUrl = (path5, URL2 = "URL") => `new ${URL2}(${path5}).href`;
13631
+ getRelativeUrlFromDocument = (relativePath, umd2 = false) => getResolveUrl(`'${escapeId(relativePath)}', ${umd2 ? `typeof document === 'undefined' ? location.href : ` : ""}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`);
13632
13632
  getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
13633
13633
  const urlMechanism = getUrl(chunkId);
13634
13634
  return property === null ? `({ url: ${urlMechanism} })` : property === "url" ? urlMechanism : "undefined";
13635
13635
  };
13636
- getFileUrlFromFullPath = (path4) => `require('u' + 'rl').pathToFileURL(${path4}).href`;
13637
- getFileUrlFromRelativePath = (path4) => getFileUrlFromFullPath(`__dirname + '/${path4}'`);
13638
- getUrlFromDocument = (chunkId, umd2 = false) => `${umd2 ? `typeof document === 'undefined' ? location.href : ` : ""}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
13636
+ getFileUrlFromFullPath = (path5) => `require('u' + 'rl').pathToFileURL(${path5}).href`;
13637
+ getFileUrlFromRelativePath = (path5) => getFileUrlFromFullPath(`__dirname + '/${path5}'`);
13638
+ getUrlFromDocument = (chunkId, umd2 = false) => `${umd2 ? `typeof document === 'undefined' ? location.href : ` : ""}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.tagName.toUpperCase() === 'SCRIPT' && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
13639
13639
  relativeUrlMechanisms = {
13640
13640
  amd: (relativePath) => {
13641
13641
  if (relativePath[0] !== ".")
@@ -13671,8 +13671,8 @@ var init_node_entry = __esm({
13671
13671
  this.applyDeoptimizations();
13672
13672
  }
13673
13673
  }
13674
- hasEffectsOnInteractionAtPath(path4, { type }) {
13675
- return path4.length > 0 || type !== INTERACTION_ACCESSED;
13674
+ hasEffectsOnInteractionAtPath(path5, { type }) {
13675
+ return path5.length > 0 || type !== INTERACTION_ACCESSED;
13676
13676
  }
13677
13677
  include(context, includeChildrenRecursively) {
13678
13678
  if (!this.deoptimized)
@@ -13707,23 +13707,23 @@ var init_node_entry = __esm({
13707
13707
  super(...arguments);
13708
13708
  this.objectEntity = null;
13709
13709
  }
13710
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
13711
- this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
13710
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
13711
+ this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
13712
13712
  }
13713
13713
  deoptimizeCache() {
13714
13714
  this.getObjectEntity().deoptimizeAllProperties();
13715
13715
  }
13716
- deoptimizePath(path4) {
13717
- this.getObjectEntity().deoptimizePath(path4);
13716
+ deoptimizePath(path5) {
13717
+ this.getObjectEntity().deoptimizePath(path5);
13718
13718
  }
13719
- getLiteralValueAtPath(path4, recursionTracker, origin) {
13720
- return this.getObjectEntity().getLiteralValueAtPath(path4, recursionTracker, origin);
13719
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
13720
+ return this.getObjectEntity().getLiteralValueAtPath(path5, recursionTracker, origin);
13721
13721
  }
13722
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
13723
- return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin);
13722
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
13723
+ return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin);
13724
13724
  }
13725
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
13726
- return this.getObjectEntity().hasEffectsOnInteractionAtPath(path4, interaction, context);
13725
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
13726
+ return this.getObjectEntity().hasEffectsOnInteractionAtPath(path5, interaction, context);
13727
13727
  }
13728
13728
  render(code, options, { renderedSurroundingElement } = BLANK) {
13729
13729
  super.render(code, options);
@@ -13856,23 +13856,23 @@ var init_node_entry = __esm({
13856
13856
  }
13857
13857
  };
13858
13858
  PropertyDefinition = class extends NodeBase {
13859
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
13860
- this.value?.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
13859
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
13860
+ this.value?.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
13861
13861
  }
13862
- deoptimizePath(path4) {
13863
- this.value?.deoptimizePath(path4);
13862
+ deoptimizePath(path5) {
13863
+ this.value?.deoptimizePath(path5);
13864
13864
  }
13865
- getLiteralValueAtPath(path4, recursionTracker, origin) {
13866
- return this.value ? this.value.getLiteralValueAtPath(path4, recursionTracker, origin) : UnknownValue;
13865
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
13866
+ return this.value ? this.value.getLiteralValueAtPath(path5, recursionTracker, origin) : UnknownValue;
13867
13867
  }
13868
- getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) {
13869
- return this.value ? this.value.getReturnExpressionWhenCalledAtPath(path4, interaction, recursionTracker, origin) : UNKNOWN_RETURN_EXPRESSION;
13868
+ getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) {
13869
+ return this.value ? this.value.getReturnExpressionWhenCalledAtPath(path5, interaction, recursionTracker, origin) : UNKNOWN_RETURN_EXPRESSION;
13870
13870
  }
13871
13871
  hasEffects(context) {
13872
13872
  return this.key.hasEffects(context) || this.static && !!this.value?.hasEffects(context);
13873
13873
  }
13874
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
13875
- return !this.value || this.value.hasEffectsOnInteractionAtPath(path4, interaction, context);
13874
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
13875
+ return !this.value || this.value.hasEffectsOnInteractionAtPath(path5, interaction, context);
13876
13876
  }
13877
13877
  applyDeoptimizations() {
13878
13878
  }
@@ -13902,14 +13902,14 @@ var init_node_entry = __esm({
13902
13902
  }
13903
13903
  };
13904
13904
  SequenceExpression = class extends NodeBase {
13905
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
13906
- this.expressions[this.expressions.length - 1].deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
13905
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
13906
+ this.expressions[this.expressions.length - 1].deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
13907
13907
  }
13908
- deoptimizePath(path4) {
13909
- this.expressions[this.expressions.length - 1].deoptimizePath(path4);
13908
+ deoptimizePath(path5) {
13909
+ this.expressions[this.expressions.length - 1].deoptimizePath(path5);
13910
13910
  }
13911
- getLiteralValueAtPath(path4, recursionTracker, origin) {
13912
- return this.expressions[this.expressions.length - 1].getLiteralValueAtPath(path4, recursionTracker, origin);
13911
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
13912
+ return this.expressions[this.expressions.length - 1].getLiteralValueAtPath(path5, recursionTracker, origin);
13913
13913
  }
13914
13914
  hasEffects(context) {
13915
13915
  for (const expression of this.expressions) {
@@ -13918,8 +13918,8 @@ var init_node_entry = __esm({
13918
13918
  }
13919
13919
  return false;
13920
13920
  }
13921
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
13922
- return this.expressions[this.expressions.length - 1].hasEffectsOnInteractionAtPath(path4, interaction, context);
13921
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
13922
+ return this.expressions[this.expressions.length - 1].hasEffectsOnInteractionAtPath(path5, interaction, context);
13923
13923
  }
13924
13924
  include(context, includeChildrenRecursively) {
13925
13925
  this.included = true;
@@ -13990,11 +13990,11 @@ var init_node_entry = __esm({
13990
13990
  bind() {
13991
13991
  this.variable = this.scope.findVariable("this");
13992
13992
  }
13993
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
13994
- this.variable.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
13993
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
13994
+ this.variable.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
13995
13995
  }
13996
- deoptimizePath(path4) {
13997
- this.variable.deoptimizePath(path4);
13996
+ deoptimizePath(path5) {
13997
+ this.variable.deoptimizePath(path5);
13998
13998
  }
13999
13999
  include() {
14000
14000
  if (!this.included) {
@@ -14200,24 +14200,24 @@ var init_node_entry = __esm({
14200
14200
  TemplateLiteral = class extends NodeBase {
14201
14201
  deoptimizeArgumentsOnInteractionAtPath() {
14202
14202
  }
14203
- getLiteralValueAtPath(path4) {
14204
- if (path4.length > 0 || this.quasis.length !== 1) {
14203
+ getLiteralValueAtPath(path5) {
14204
+ if (path5.length > 0 || this.quasis.length !== 1) {
14205
14205
  return UnknownValue;
14206
14206
  }
14207
14207
  return this.quasis[0].value.cooked;
14208
14208
  }
14209
- getReturnExpressionWhenCalledAtPath(path4) {
14210
- if (path4.length !== 1) {
14209
+ getReturnExpressionWhenCalledAtPath(path5) {
14210
+ if (path5.length !== 1) {
14211
14211
  return UNKNOWN_RETURN_EXPRESSION;
14212
14212
  }
14213
- return getMemberReturnExpressionWhenCalled(literalStringMembers, path4[0]);
14213
+ return getMemberReturnExpressionWhenCalled(literalStringMembers, path5[0]);
14214
14214
  }
14215
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
14215
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
14216
14216
  if (interaction.type === INTERACTION_ACCESSED) {
14217
- return path4.length > 1;
14217
+ return path5.length > 1;
14218
14218
  }
14219
- if (interaction.type === INTERACTION_CALLED && path4.length === 1) {
14220
- return hasMemberEffectWhenCalled(literalStringMembers, path4[0], interaction, context);
14219
+ if (interaction.type === INTERACTION_CALLED && path5.length === 1) {
14220
+ return hasMemberEffectWhenCalled(literalStringMembers, path5[0], interaction, context);
14221
14221
  }
14222
14222
  return true;
14223
14223
  }
@@ -14326,17 +14326,17 @@ var init_node_entry = __esm({
14326
14326
  bind() {
14327
14327
  this.variable = this.scope.findVariable("this");
14328
14328
  }
14329
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
14330
- this.variable.deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker);
14329
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
14330
+ this.variable.deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker);
14331
14331
  }
14332
- deoptimizePath(path4) {
14333
- this.variable.deoptimizePath(path4);
14332
+ deoptimizePath(path5) {
14333
+ this.variable.deoptimizePath(path5);
14334
14334
  }
14335
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
14336
- if (path4.length === 0) {
14335
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
14336
+ if (path5.length === 0) {
14337
14337
  return interaction.type !== INTERACTION_ACCESSED;
14338
14338
  }
14339
- return this.variable.hasEffectsOnInteractionAtPath(path4, interaction, context);
14339
+ return this.variable.hasEffectsOnInteractionAtPath(path5, interaction, context);
14340
14340
  }
14341
14341
  include() {
14342
14342
  if (!this.included) {
@@ -14417,8 +14417,8 @@ var init_node_entry = __esm({
14417
14417
  "~": (value) => ~value
14418
14418
  };
14419
14419
  UnaryExpression = class extends NodeBase {
14420
- getLiteralValueAtPath(path4, recursionTracker, origin) {
14421
- if (path4.length > 0)
14420
+ getLiteralValueAtPath(path5, recursionTracker, origin) {
14421
+ if (path5.length > 0)
14422
14422
  return UnknownValue;
14423
14423
  const argumentValue = this.argument.getLiteralValueAtPath(EMPTY_PATH, recursionTracker, origin);
14424
14424
  if (typeof argumentValue === "symbol")
@@ -14432,8 +14432,8 @@ var init_node_entry = __esm({
14432
14432
  return false;
14433
14433
  return this.argument.hasEffects(context) || this.operator === "delete" && this.argument.hasEffectsOnInteractionAtPath(EMPTY_PATH, NODE_INTERACTION_UNKNOWN_ASSIGNMENT, context);
14434
14434
  }
14435
- hasEffectsOnInteractionAtPath(path4, { type }) {
14436
- return type !== INTERACTION_ACCESSED || path4.length > (this.operator === "void" ? 0 : 1);
14435
+ hasEffectsOnInteractionAtPath(path5, { type }) {
14436
+ return type !== INTERACTION_ACCESSED || path5.length > (this.operator === "void" ? 0 : 1);
14437
14437
  }
14438
14438
  applyDeoptimizations() {
14439
14439
  this.deoptimized = true;
@@ -14457,8 +14457,8 @@ var init_node_entry = __esm({
14457
14457
  this.applyDeoptimizations();
14458
14458
  return this.argument.hasEffectsAsAssignmentTarget(context, true);
14459
14459
  }
14460
- hasEffectsOnInteractionAtPath(path4, { type }) {
14461
- return path4.length > 1 || type !== INTERACTION_ACCESSED;
14460
+ hasEffectsOnInteractionAtPath(path5, { type }) {
14461
+ return path5.length > 1 || type !== INTERACTION_ACCESSED;
14462
14462
  }
14463
14463
  include(context, includeChildrenRecursively) {
14464
14464
  if (!this.deoptimized)
@@ -14745,26 +14745,26 @@ var init_node_entry = __esm({
14745
14745
  this.references.push(identifier);
14746
14746
  this.name = identifier.name;
14747
14747
  }
14748
- deoptimizeArgumentsOnInteractionAtPath(interaction, path4, recursionTracker) {
14749
- if (path4.length > 1 || path4.length === 1 && interaction.type === INTERACTION_CALLED) {
14750
- const key = path4[0];
14748
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path5, recursionTracker) {
14749
+ if (path5.length > 1 || path5.length === 1 && interaction.type === INTERACTION_CALLED) {
14750
+ const key = path5[0];
14751
14751
  if (typeof key === "string") {
14752
- this.getMemberVariables()[key]?.deoptimizeArgumentsOnInteractionAtPath(interaction, path4.slice(1), recursionTracker);
14752
+ this.getMemberVariables()[key]?.deoptimizeArgumentsOnInteractionAtPath(interaction, path5.slice(1), recursionTracker);
14753
14753
  } else {
14754
14754
  deoptimizeInteraction(interaction);
14755
14755
  }
14756
14756
  }
14757
14757
  }
14758
- deoptimizePath(path4) {
14759
- if (path4.length > 1) {
14760
- const key = path4[0];
14758
+ deoptimizePath(path5) {
14759
+ if (path5.length > 1) {
14760
+ const key = path5[0];
14761
14761
  if (typeof key === "string") {
14762
- this.getMemberVariables()[key]?.deoptimizePath(path4.slice(1));
14762
+ this.getMemberVariables()[key]?.deoptimizePath(path5.slice(1));
14763
14763
  }
14764
14764
  }
14765
14765
  }
14766
- getLiteralValueAtPath(path4) {
14767
- if (path4[0] === SymbolToStringTag) {
14766
+ getLiteralValueAtPath(path5) {
14767
+ if (path5[0] === SymbolToStringTag) {
14768
14768
  return "Module";
14769
14769
  }
14770
14770
  return UnknownValue;
@@ -14785,20 +14785,20 @@ var init_node_entry = __esm({
14785
14785
  }
14786
14786
  return this.memberVariables = memberVariables;
14787
14787
  }
14788
- hasEffectsOnInteractionAtPath(path4, interaction, context) {
14788
+ hasEffectsOnInteractionAtPath(path5, interaction, context) {
14789
14789
  const { type } = interaction;
14790
- if (path4.length === 0) {
14790
+ if (path5.length === 0) {
14791
14791
  return true;
14792
14792
  }
14793
- if (path4.length === 1 && type !== INTERACTION_CALLED) {
14793
+ if (path5.length === 1 && type !== INTERACTION_CALLED) {
14794
14794
  return type === INTERACTION_ASSIGNED;
14795
14795
  }
14796
- const key = path4[0];
14796
+ const key = path5[0];
14797
14797
  if (typeof key !== "string") {
14798
14798
  return true;
14799
14799
  }
14800
14800
  const memberVariable = this.getMemberVariables()[key];
14801
- return !memberVariable || memberVariable.hasEffectsOnInteractionAtPath(path4.slice(1), interaction, context);
14801
+ return !memberVariable || memberVariable.hasEffectsOnInteractionAtPath(path5.slice(1), interaction, context);
14802
14802
  }
14803
14803
  include() {
14804
14804
  this.included = true;
@@ -20198,12 +20198,12 @@ ${next}` : out;
20198
20198
  if (i >= l) {
20199
20199
  return -1;
20200
20200
  }
20201
- var c9 = s.charCodeAt(i);
20202
- if (!(forceU || this.switchU) || c9 <= 55295 || c9 >= 57344 || i + 1 >= l) {
20203
- return c9;
20201
+ var c11 = s.charCodeAt(i);
20202
+ if (!(forceU || this.switchU) || c11 <= 55295 || c11 >= 57344 || i + 1 >= l) {
20203
+ return c11;
20204
20204
  }
20205
20205
  var next = s.charCodeAt(i + 1);
20206
- return next >= 56320 && next <= 57343 ? (c9 << 10) + next - 56613888 : c9;
20206
+ return next >= 56320 && next <= 57343 ? (c11 << 10) + next - 56613888 : c11;
20207
20207
  };
20208
20208
  RegExpValidationState.prototype.nextIndex = function nextIndex(i, forceU) {
20209
20209
  if (forceU === void 0)
@@ -20213,8 +20213,8 @@ ${next}` : out;
20213
20213
  if (i >= l) {
20214
20214
  return l;
20215
20215
  }
20216
- var c9 = s.charCodeAt(i), next;
20217
- if (!(forceU || this.switchU) || c9 <= 55295 || c9 >= 57344 || i + 1 >= l || (next = s.charCodeAt(i + 1)) < 56320 || next > 57343) {
20216
+ var c11 = s.charCodeAt(i), next;
20217
+ if (!(forceU || this.switchU) || c11 <= 55295 || c11 >= 57344 || i + 1 >= l || (next = s.charCodeAt(i + 1)) < 56320 || next > 57343) {
20218
20218
  return i + 1;
20219
20219
  }
20220
20220
  return i + 2;
@@ -22111,10 +22111,10 @@ ${next}` : out;
22111
22111
  }
22112
22112
  return this.finishToken(type, word);
22113
22113
  };
22114
- version2 = "8.10.0";
22114
+ version = "8.10.0";
22115
22115
  Parser.acorn = {
22116
22116
  Parser,
22117
- version: version2,
22117
+ version,
22118
22118
  defaultOptions,
22119
22119
  Position,
22120
22120
  SourceLocation,
@@ -22156,7 +22156,7 @@ ${next}` : out;
22156
22156
  tokContexts: types,
22157
22157
  tokTypes: types$1,
22158
22158
  tokenizer: tokenizer2,
22159
- version: version2
22159
+ version
22160
22160
  }, Symbol.toStringTag, { value: "Module" });
22161
22161
  ANONYMOUS_PLUGIN_PREFIX = "at position ";
22162
22162
  ANONYMOUS_OUTPUT_PLUGIN_PREFIX = "at output position ";
@@ -23740,9 +23740,10 @@ ${next}` : out;
23740
23740
  });
23741
23741
 
23742
23742
  // src/cli.ts
23743
- import c8 from "picocolors";
23743
+ import { readFileSync } from "node:fs";
23744
+ import c10 from "picocolors";
23744
23745
 
23745
- // node_modules/cac/dist/index.mjs
23746
+ // ../node_modules/cac/dist/index.mjs
23746
23747
  import { EventEmitter } from "events";
23747
23748
  function toArr(any) {
23748
23749
  return any == null ? [] : Array.isArray(any) ? any : [any];
@@ -24333,9 +24334,6 @@ var CAC = class extends EventEmitter {
24333
24334
  var cac = (name = "") => new CAC(name);
24334
24335
  var dist_default = cac;
24335
24336
 
24336
- // package.json
24337
- var version = "3.3.3";
24338
-
24339
24337
  // src/clearCache.ts
24340
24338
  import c from "picocolors";
24341
24339
  import { clearCache as _clearCache } from "@jspm/generator";
@@ -24345,7 +24343,7 @@ async function clearCache(flags) {
24345
24343
  }
24346
24344
 
24347
24345
  // src/install.ts
24348
- import c4 from "picocolors";
24346
+ import c5 from "picocolors";
24349
24347
 
24350
24348
  // src/logger.ts
24351
24349
  import fs from "fs/promises";
@@ -24413,13 +24411,121 @@ function createLogger() {
24413
24411
  }
24414
24412
 
24415
24413
  // src/utils.ts
24416
- import fs2 from "node:fs/promises";
24414
+ import fs3 from "node:fs/promises";
24417
24415
  import { accessSync } from "node:fs";
24418
- import path from "node:path";
24416
+ import path2 from "node:path";
24419
24417
  import { pathToFileURL } from "node:url";
24420
24418
  import { Generator, analyzeHtml } from "@jspm/generator";
24421
24419
  import ora from "ora";
24420
+ import c4 from "picocolors";
24421
+
24422
+ // src/config.ts
24423
+ import fs2 from "node:fs/promises";
24424
+ import path from "node:path";
24425
+ import os2 from "node:os";
24422
24426
  import c3 from "picocolors";
24427
+ function getUserConfigPath() {
24428
+ const userConfigDir = process.env.JSPM_USER_CONFIG_DIR || path.join(os2.homedir(), ".jspm");
24429
+ return path.join(userConfigDir, "config");
24430
+ }
24431
+ async function findLocalConfig(startDir = process.cwd()) {
24432
+ const log2 = withType("config/findLocalConfig");
24433
+ let currentDir = startDir;
24434
+ const root = path.parse(currentDir).root;
24435
+ while (currentDir !== root) {
24436
+ const configPath = path.join(currentDir, ".jspmrc");
24437
+ log2(`Checking for config at ${configPath}`);
24438
+ if (await exists(configPath)) {
24439
+ log2(`Found local config at ${configPath}`);
24440
+ return configPath;
24441
+ }
24442
+ const parentDir = path.dirname(currentDir);
24443
+ if (parentDir === currentDir) {
24444
+ break;
24445
+ }
24446
+ currentDir = parentDir;
24447
+ }
24448
+ return null;
24449
+ }
24450
+ async function loadConfig() {
24451
+ const log2 = withType("config/loadConfig");
24452
+ const configs = [];
24453
+ const userConfigPath = getUserConfigPath();
24454
+ if (await exists(userConfigPath)) {
24455
+ try {
24456
+ log2(`Loading user config from ${userConfigPath}`);
24457
+ const configStr = await fs2.readFile(userConfigPath, "utf8");
24458
+ const config = JSON.parse(configStr);
24459
+ configs.push(config);
24460
+ } catch (err) {
24461
+ log2(`Error loading user config: ${err.message}`);
24462
+ console.warn(`${c3.yellow("Warning:")} Could not read user config at ${userConfigPath}.`);
24463
+ }
24464
+ }
24465
+ const localConfigPath = await findLocalConfig();
24466
+ if (localConfigPath) {
24467
+ try {
24468
+ log2(`Loading local config from ${localConfigPath}`);
24469
+ const configStr = await fs2.readFile(localConfigPath, "utf8");
24470
+ const config = JSON.parse(configStr);
24471
+ configs.push(config);
24472
+ } catch (err) {
24473
+ log2(`Error loading local config: ${err.message}`);
24474
+ console.warn(`${c3.yellow("Warning:")} Could not read local config at ${localConfigPath}.`);
24475
+ }
24476
+ }
24477
+ return configs.reduce((merged, config) => mergeConfigs(merged, config), {});
24478
+ }
24479
+ async function saveConfig(config, scope = "user") {
24480
+ const log2 = withType("config/saveConfig");
24481
+ const configPath = scope === "user" ? getUserConfigPath() : path.join(process.cwd(), ".jspmrc");
24482
+ try {
24483
+ if (scope === "user") {
24484
+ const configDir = path.dirname(configPath);
24485
+ await fs2.mkdir(configDir, { recursive: true });
24486
+ }
24487
+ log2(`Saving ${scope} config to ${configPath}`);
24488
+ await fs2.writeFile(configPath, JSON.stringify(config, null, 2), "utf8");
24489
+ } catch (err) {
24490
+ log2(`Error saving ${scope} config: ${err.message}`);
24491
+ throw new Error(`Failed to save ${scope} config at ${configPath}: ${err.message}`);
24492
+ }
24493
+ }
24494
+ async function updateConfig(updates, scope = "user") {
24495
+ if (scope === "local") {
24496
+ const localConfigPath = await findLocalConfig();
24497
+ if (localConfigPath && path.dirname(localConfigPath) !== process.cwd()) {
24498
+ throw new Error(
24499
+ `Found existing .jspmrc at ${localConfigPath}. Use that file instead or remove it before creating one in the current directory.`
24500
+ );
24501
+ }
24502
+ }
24503
+ const config = await loadConfig();
24504
+ const updatedConfig = mergeConfigs(config, updates);
24505
+ await saveConfig(updatedConfig, scope);
24506
+ return updatedConfig;
24507
+ }
24508
+ function mergeConfigs(target, source) {
24509
+ const result = { ...target };
24510
+ if (source.providers) {
24511
+ result.providers = result.providers || {};
24512
+ for (const [provider, config] of Object.entries(source.providers)) {
24513
+ result.providers[provider] = {
24514
+ ...result.providers[provider],
24515
+ ...config
24516
+ };
24517
+ }
24518
+ }
24519
+ if (source.defaultProvider !== void 0) {
24520
+ result.defaultProvider = source.defaultProvider;
24521
+ }
24522
+ if (source.cacheDir !== void 0) {
24523
+ result.cacheDir = source.cacheDir;
24524
+ }
24525
+ return result;
24526
+ }
24527
+
24528
+ // src/utils.ts
24423
24529
  var defaultMapPath = "importmap.json";
24424
24530
  function isJsExtension(ext) {
24425
24531
  return ext === ".js" || ext === ".mjs" || ext === ".cjs" || ext === ".ts" || ext === ".mts" || ext === ".cts" || ext === ".jsx" || ext === ".tsx";
@@ -24445,7 +24551,10 @@ var availableProviders = [
24445
24551
  "jspm.io#system"
24446
24552
  ];
24447
24553
  var JspmError = class extends Error {
24448
- jspmError = true;
24554
+ constructor() {
24555
+ super(...arguments);
24556
+ this.jspmError = true;
24557
+ }
24449
24558
  };
24450
24559
  function wrapCommand(fn) {
24451
24560
  return async (...args) => {
@@ -24455,7 +24564,7 @@ function wrapCommand(fn) {
24455
24564
  stopSpinner();
24456
24565
  process.exitCode = 1;
24457
24566
  if (e instanceof JspmError || e?.jspmError) {
24458
- console.error(`${c3.red("Error:")} ${e.message}
24567
+ console.error(`${c4.red("Error:")} ${e.message}
24459
24568
  `);
24460
24569
  return;
24461
24570
  }
@@ -24482,21 +24591,21 @@ async function writeHtmlOutput(mapFile, generator, pins, env2, flags, silent = f
24482
24591
  throw new JspmError(
24483
24592
  `JSPM does not have permission to write to ${mapFile}.`
24484
24593
  );
24485
- const mapFileRel = path.relative(process.cwd(), mapFile);
24594
+ const mapFileRel = path2.relative(process.cwd(), mapFile);
24486
24595
  if (!exists(mapFile)) {
24487
24596
  !silent && console.warn(
24488
- `${c3.cyan(
24597
+ `${c4.cyan(
24489
24598
  "Note:"
24490
24599
  )} HTML file ${mapFileRel} does not exist, creating one.`
24491
24600
  );
24492
- await fs2.writeFile(mapFile, defaultHtmlTemplate, "utf-8");
24601
+ await fs3.writeFile(mapFile, defaultHtmlTemplate, "utf-8");
24493
24602
  }
24494
24603
  let html;
24495
24604
  try {
24496
- html = await fs2.readFile(mapFile, "utf-8");
24605
+ html = await fs3.readFile(mapFile, "utf-8");
24497
24606
  } catch (e) {
24498
24607
  throw new JspmError(
24499
- `Failed to read HTML file ${c3.cyan(mapFile)} for injection.`
24608
+ `Failed to read HTML file ${c4.cyan(mapFile)} for injection.`
24500
24609
  );
24501
24610
  }
24502
24611
  const outputHtml = await generator.htmlInject(html, {
@@ -24509,8 +24618,8 @@ async function writeHtmlOutput(mapFile, generator, pins, env2, flags, silent = f
24509
24618
  whitespace: !flags.compact,
24510
24619
  comment: false
24511
24620
  });
24512
- await fs2.writeFile(mapFile, outputHtml);
24513
- !silent && console.warn(`${c3.green("Ok:")} Updated ${c3.cyan(mapFileRel)}`);
24621
+ await fs3.writeFile(mapFile, outputHtml);
24622
+ !silent && console.warn(`${c4.green("Ok:")} Updated ${c4.cyan(mapFileRel)}`);
24514
24623
  }
24515
24624
  async function writeJsonOutput(mapFile, generator, pins, env2, flags, silent = false) {
24516
24625
  const log2 = withType("utils/writeJsonOutput");
@@ -24522,48 +24631,54 @@ async function writeJsonOutput(mapFile, generator, pins, env2, flags, silent = f
24522
24631
  log2(`Extracting full map`);
24523
24632
  map = generator.getMap();
24524
24633
  }
24525
- map = { env: env2, ...map };
24634
+ if (!flags.stripEnv)
24635
+ map = { env: env2, ...map };
24526
24636
  log2(`${JSON.stringify(map, null, 2)}`);
24527
24637
  if (!await canWrite(mapFile))
24528
24638
  throw new JspmError(
24529
24639
  `JSPM does not have permission to write to ${mapFile}.`
24530
24640
  );
24531
24641
  try {
24532
- const existing = JSON.parse(await fs2.readFile(mapFile, "utf8"));
24642
+ const existing = JSON.parse(await fs3.readFile(mapFile, "utf8"));
24533
24643
  delete existing.imports;
24534
24644
  delete existing.scopes;
24535
24645
  delete existing.integrity;
24536
24646
  map = Object.assign({}, existing, map);
24537
24647
  } catch {
24538
24648
  }
24539
- await fs2.writeFile(
24649
+ await fs3.writeFile(
24540
24650
  mapFile,
24541
24651
  flags.compact ? JSON.stringify(map) : JSON.stringify(map, null, 2)
24542
24652
  );
24543
- const mapFileRel = path.relative(process.cwd(), mapFile);
24544
- !silent && console.warn(`${c3.green("Ok:")} Updated ${c3.cyan(mapFileRel)}`);
24653
+ const mapFileRel = path2.relative(process.cwd(), mapFile);
24654
+ !silent && console.warn(`${c4.green("Ok:")} Updated ${c4.cyan(mapFileRel)}`);
24545
24655
  return map;
24546
24656
  }
24547
24657
  async function getGenerator(flags, setEnv = true) {
24548
24658
  const log2 = withType("utils/getGenerator");
24549
24659
  const mapUrl = getOutputMapUrl(flags);
24550
24660
  const rootUrl = getRootUrl(flags);
24551
- const baseUrl = new URL(path.dirname(mapUrl.href));
24661
+ const baseUrl = new URL(path2.dirname(mapUrl.href));
24552
24662
  log2(
24553
24663
  `Creating generator with mapUrl ${mapUrl}, baseUrl ${baseUrl}, rootUrl ${rootUrl}`
24554
24664
  );
24665
+ const config = await loadConfig();
24666
+ log2(`Loaded config with ${config.providers ? Object.keys(config.providers).length : 0} provider configurations`);
24667
+ const defaultProvider = getProvider(flags) || config.defaultProvider;
24555
24668
  return new Generator({
24556
24669
  mapUrl,
24557
24670
  baseUrl,
24558
24671
  rootUrl,
24559
24672
  inputMap: await getInputMap(flags),
24560
24673
  env: setEnv ? await getEnv(flags) : void 0,
24561
- defaultProvider: getProvider(flags),
24674
+ defaultProvider,
24562
24675
  resolutions: getResolutions(flags),
24563
24676
  cache: getCacheMode(flags),
24564
24677
  integrity: flags.integrity,
24565
- commonJS: true
24678
+ commonJS: true,
24566
24679
  // TODO: only for --local flag
24680
+ // Pass provider configs from configuration file
24681
+ providerConfig: config.providers
24567
24682
  });
24568
24683
  }
24569
24684
  async function getInput(flags, fallbackDefaultMap = defaultMapPath) {
@@ -24576,7 +24691,7 @@ async function getInput(flags, fallbackDefaultMap = defaultMapPath) {
24576
24691
  else
24577
24692
  throw new JspmError(`JSPM does not have permission to read ${mapFile}.`);
24578
24693
  }
24579
- return fs2.readFile(mapFile, "utf-8");
24694
+ return fs3.readFile(mapFile, "utf-8");
24580
24695
  }
24581
24696
  async function getInputMap(flags) {
24582
24697
  let inputMap;
@@ -24601,13 +24716,13 @@ async function getInputMap(flags) {
24601
24716
  return inputMap || {};
24602
24717
  }
24603
24718
  function getInputPath(flags, fallbackDefaultMap = defaultMapPath) {
24604
- return path.resolve(
24719
+ return path2.resolve(
24605
24720
  process.cwd(),
24606
24721
  flags?.map || (exists(defaultMapPath) ? defaultMapPath : fallbackDefaultMap)
24607
24722
  );
24608
24723
  }
24609
24724
  function getOutputPath(flags) {
24610
- return path.resolve(
24725
+ return path2.resolve(
24611
24726
  process.cwd(),
24612
24727
  flags.output || flags.map || defaultMapPath
24613
24728
  );
@@ -24618,7 +24733,7 @@ function getOutputMapUrl(flags) {
24618
24733
  function getRootUrl(flags) {
24619
24734
  if (!flags?.root)
24620
24735
  return void 0;
24621
- return pathToFileURL(path.resolve(process.cwd(), flags.root));
24736
+ return pathToFileURL(path2.resolve(process.cwd(), flags.root));
24622
24737
  }
24623
24738
  var excludeDefinitions = {
24624
24739
  production: ["development"],
@@ -24683,9 +24798,9 @@ function getResolutions(flags) {
24683
24798
  resolutions.map((resolution) => {
24684
24799
  if (!resolution.includes("=")) {
24685
24800
  throw new JspmError(
24686
- `Resolutions must be mappings from package names to package versions or specifiers, such as ${c3.bold(
24801
+ `Resolutions must be mappings from package names to package versions or specifiers, such as ${c4.bold(
24687
24802
  "--resolution pkg=1.2.3"
24688
- )} or ${c3.bold("--resolution pkg=npm:other@1.2.3")}`
24803
+ )} or ${c4.bold("--resolution pkg=npm:other@1.2.3")}`
24689
24804
  );
24690
24805
  }
24691
24806
  return resolution.split("=");
@@ -24699,13 +24814,13 @@ function getCacheMode(flags) {
24699
24814
  if (!validCacheModes.includes(flags.cache))
24700
24815
  throw new JspmError(
24701
24816
  `Invalid cache mode "${flags.cache}". Available modes are: "${validCacheModes.join('", "')}".
24702
- ${c3.bold(
24817
+ ${c4.bold(
24703
24818
  "online"
24704
24819
  )} Use a locally cached module if available and fresh.
24705
- ${c3.bold(
24820
+ ${c4.bold(
24706
24821
  "offline"
24707
24822
  )} Use a locally cached module if available, even if stale.
24708
- ${c3.bold(
24823
+ ${c4.bold(
24709
24824
  "no-cache"
24710
24825
  )} Never use the local cache.`
24711
24826
  );
@@ -24727,10 +24842,10 @@ function getPreloadMode(flags) {
24727
24842
  `Invalid preload mode "${flags.preload}". Available modes are: "${validPreloadModes.join(
24728
24843
  '", "'
24729
24844
  )}" (default).
24730
- ${c3.bold(
24845
+ ${c4.bold(
24731
24846
  "static"
24732
24847
  )} Inject preload tags for static dependencies.
24733
- ${c3.bold(
24848
+ ${c4.bold(
24734
24849
  "dynamic"
24735
24850
  )} Inject preload tags for static and dynamic dependencies.`
24736
24851
  );
@@ -24757,7 +24872,7 @@ function exists(file) {
24757
24872
  }
24758
24873
  function canRead(file) {
24759
24874
  try {
24760
- accessSync(file, (fs2.constants || fs2).R_OK);
24875
+ accessSync(file, (fs3.constants || fs3).R_OK);
24761
24876
  return true;
24762
24877
  } catch (e) {
24763
24878
  return false;
@@ -24767,7 +24882,7 @@ function canWrite(file) {
24767
24882
  try {
24768
24883
  if (!exists(file))
24769
24884
  return true;
24770
- accessSync(file, (fs2.constants || fs2).W_OK);
24885
+ accessSync(file, (fs3.constants || fs3).W_OK);
24771
24886
  return true;
24772
24887
  } catch (e) {
24773
24888
  return false;
@@ -24821,7 +24936,7 @@ async function install(packages, flags) {
24821
24936
  log2(`Input map parsed: ${input}`);
24822
24937
  if (resolvedPackages.length) {
24823
24938
  !flags.silent && startSpinner(
24824
- `Installing ${c4.bold(
24939
+ `Installing ${c5.bold(
24825
24940
  resolvedPackages.map((p) => p.alias || p.target).join(", ")
24826
24941
  )}. (${env2.join(", ")})`
24827
24942
  );
@@ -24833,7 +24948,7 @@ async function install(packages, flags) {
24833
24948
  stopSpinner();
24834
24949
  } else {
24835
24950
  !flags.silent && console.warn(
24836
- `${c4.red(
24951
+ `${c5.red(
24837
24952
  "Warning:"
24838
24953
  )} Nothing to install, outputting an empty import map. Either provide a list of package to install, or a non-empty input file.`
24839
24954
  );
@@ -24842,10 +24957,10 @@ async function install(packages, flags) {
24842
24957
  }
24843
24958
 
24844
24959
  // src/link.ts
24845
- import * as fs3 from "node:fs/promises";
24960
+ import * as fs4 from "node:fs/promises";
24846
24961
  import { extname } from "node:path";
24847
24962
  import { pathToFileURL as pathToFileURL2 } from "url";
24848
- import c5 from "picocolors";
24963
+ import c6 from "picocolors";
24849
24964
  async function link(modules, flags) {
24850
24965
  const log2 = withType("link/link");
24851
24966
  log2(`Linking modules: ${modules.join(", ")}`);
@@ -24872,7 +24987,7 @@ async function link(modules, flags) {
24872
24987
  !flags.silent && startSpinner(`Linking input.`);
24873
24988
  } else {
24874
24989
  !flags.silent && startSpinner(
24875
- `Linking ${c5.bold(
24990
+ `Linking ${c6.bold(
24876
24991
  resolvedModules.map((p) => p.alias || p.target).join(", ")
24877
24992
  )}. (${env2.join(", ")})`
24878
24993
  );
@@ -24881,7 +24996,7 @@ async function link(modules, flags) {
24881
24996
  stopSpinner();
24882
24997
  } else {
24883
24998
  !flags.silent && console.warn(
24884
- `${c5.red(
24999
+ `${c6.red(
24885
25000
  "Warning:"
24886
25001
  )} Found nothing to link, will default to relinking input map. Provide a list of modules or HTML files with inline modules to change this behaviour.`
24887
25002
  );
@@ -24906,7 +25021,7 @@ async function resolveModule(p, inlinePins, generator) {
24906
25021
  res.target = res.target.slice(1);
24907
25022
  } else {
24908
25023
  try {
24909
- await fs3.access(res.target);
25024
+ await fs4.access(res.target);
24910
25025
  const targetPath = res.target.startsWith(".") || res.target.startsWith("/") ? res.target : `./${res.target}`;
24911
25026
  log2(`Resolving target '${res.target}' as '${targetPath}'`);
24912
25027
  res.target = targetPath;
@@ -24917,7 +25032,7 @@ async function resolveModule(p, inlinePins, generator) {
24917
25032
  return res;
24918
25033
  }
24919
25034
  async function handleLocalFile(resolvedModule, inlinePins, generator) {
24920
- const source = await fs3.readFile(resolvedModule.target, { encoding: "utf8" });
25035
+ const source = await fs4.readFile(resolvedModule.target, { encoding: "utf8" });
24921
25036
  const babel = await import("@babel/core");
24922
25037
  try {
24923
25038
  babel.parse(source);
@@ -24941,14 +25056,14 @@ async function handleLocalFile(resolvedModule, inlinePins, generator) {
24941
25056
  }
24942
25057
 
24943
25058
  // src/uninstall.ts
24944
- import c6 from "picocolors";
25059
+ import c7 from "picocolors";
24945
25060
  async function uninstall(packages, flags) {
24946
25061
  const log2 = withType("install/install");
24947
25062
  log2(`Uninstalling packages: ${packages.join(", ")}`);
24948
25063
  log2(`Flags: ${JSON.stringify(flags)}`);
24949
25064
  if (packages.length === 0) {
24950
25065
  !flags.silent && console.warn(
24951
- `${c6.red(
25066
+ `${c7.red(
24952
25067
  "Warning:"
24953
25068
  )} Nothing to uninstall. Please provide a list of packages.`
24954
25069
  );
@@ -24961,7 +25076,7 @@ async function uninstall(packages, flags) {
24961
25076
  await generator.addMappings(input);
24962
25077
  log2(`Input map parsed: ${input}`);
24963
25078
  !flags.silent && startSpinner(
24964
- `Uninstalling ${c6.bold(packages.join(", "))}. (${env2.join(", ")})`
25079
+ `Uninstalling ${c7.bold(packages.join(", "))}. (${env2.join(", ")})`
24965
25080
  );
24966
25081
  await generator.uninstall(packages);
24967
25082
  stopSpinner();
@@ -24969,7 +25084,7 @@ async function uninstall(packages, flags) {
24969
25084
  }
24970
25085
 
24971
25086
  // src/update.ts
24972
- import c7 from "picocolors";
25087
+ import c8 from "picocolors";
24973
25088
  async function update(packages, flags) {
24974
25089
  const log2 = withType("update/update");
24975
25090
  log2(`Updating packages: ${packages.join(", ")}`);
@@ -24984,14 +25099,14 @@ async function update(packages, flags) {
24984
25099
  log2(`Input map parsed: ${input}`);
24985
25100
  if (packages.length === 0 && inputPins.length === 0) {
24986
25101
  !flags.silent && console.warn(
24987
- `${c7.red(
25102
+ `${c8.red(
24988
25103
  "Warning:"
24989
25104
  )} Nothing to update. Please provide a list of packages or a non-empty input file.`
24990
25105
  );
24991
25106
  return;
24992
25107
  } else {
24993
25108
  !flags.silent && startSpinner(
24994
- `Updating ${c7.bold(
25109
+ `Updating ${c8.bold(
24995
25110
  packages.length ? packages.join(", ") : "everything"
24996
25111
  )}. (${env2.join(", ")})`
24997
25112
  );
@@ -25001,16 +25116,140 @@ async function update(packages, flags) {
25001
25116
  return await writeOutput(generator, null, env2, flags, flags.silent);
25002
25117
  }
25003
25118
 
25119
+ // src/config-cmd.ts
25120
+ import c9 from "picocolors";
25121
+ async function configCmd(action, configKey, value, flags) {
25122
+ const scope = flags.local ? "local" : "user";
25123
+ switch (action) {
25124
+ case "get":
25125
+ await getConfig(configKey, flags);
25126
+ break;
25127
+ case "set":
25128
+ if (value === void 0) {
25129
+ throw new JspmError(`The 'set' action requires a value parameter.`);
25130
+ }
25131
+ await setConfig(configKey, value, scope, flags);
25132
+ break;
25133
+ case "delete":
25134
+ case "rm":
25135
+ await deleteConfig(configKey, scope, flags);
25136
+ break;
25137
+ case "list":
25138
+ case "ls":
25139
+ await listConfig(flags);
25140
+ break;
25141
+ default:
25142
+ throw new JspmError(`Unknown config action: ${action}. Valid actions are: get, set, delete, list`);
25143
+ }
25144
+ }
25145
+ async function getConfig(key, flags) {
25146
+ const config = await loadConfig();
25147
+ const value = getConfigValue(config, key);
25148
+ if (value === void 0) {
25149
+ if (!flags.silent) {
25150
+ console.log(`${c9.yellow("Warning:")} Configuration key '${key}' is not set.`);
25151
+ }
25152
+ return;
25153
+ }
25154
+ const displayValue = typeof value === "object" ? JSON.stringify(value, null, 2) : String(value);
25155
+ if (!flags.silent) {
25156
+ console.log(displayValue);
25157
+ }
25158
+ }
25159
+ async function setConfig(key, value, scope, flags) {
25160
+ let parsedValue;
25161
+ try {
25162
+ parsedValue = JSON.parse(value);
25163
+ } catch (e) {
25164
+ parsedValue = value;
25165
+ }
25166
+ const updates = {};
25167
+ setConfigValue(updates, key, parsedValue);
25168
+ try {
25169
+ await updateConfig(updates, scope);
25170
+ if (!flags.silent) {
25171
+ console.log(`${c9.green("Ok:")} Set ${scope} config ${c9.cyan(key)} to ${typeof parsedValue === "object" ? JSON.stringify(parsedValue) : parsedValue}`);
25172
+ }
25173
+ } catch (err) {
25174
+ throw new JspmError(`Failed to update configuration: ${err.message}`);
25175
+ }
25176
+ }
25177
+ async function deleteConfig(key, scope, flags) {
25178
+ const config = await loadConfig();
25179
+ if (getConfigValue(config, key) === void 0) {
25180
+ if (!flags.silent) {
25181
+ console.log(`${c9.yellow("Warning:")} Configuration key '${key}' does not exist.`);
25182
+ }
25183
+ return;
25184
+ }
25185
+ deleteConfigValue(config, key);
25186
+ try {
25187
+ await saveConfig(config, scope);
25188
+ if (!flags.silent) {
25189
+ console.log(`${c9.green("Ok:")} Deleted ${scope} config key ${c9.cyan(key)}`);
25190
+ }
25191
+ } catch (err) {
25192
+ throw new JspmError(`Failed to update configuration: ${err.message}`);
25193
+ }
25194
+ }
25195
+ async function listConfig(flags) {
25196
+ const config = await loadConfig();
25197
+ if (Object.keys(config).length === 0) {
25198
+ if (!flags.silent) {
25199
+ console.log(`No configuration values set.`);
25200
+ }
25201
+ return;
25202
+ }
25203
+ if (!flags.silent) {
25204
+ console.log(JSON.stringify(config, null, 2));
25205
+ }
25206
+ }
25207
+ function getConfigValue(config, key) {
25208
+ const parts = key.split(".");
25209
+ let current2 = config;
25210
+ for (const part of parts) {
25211
+ if (current2 === void 0 || current2 === null) {
25212
+ return void 0;
25213
+ }
25214
+ current2 = current2[part];
25215
+ }
25216
+ return current2;
25217
+ }
25218
+ function setConfigValue(obj, key, value) {
25219
+ const parts = key.split(".");
25220
+ let current2 = obj;
25221
+ for (let i = 0; i < parts.length - 1; i++) {
25222
+ const part = parts[i];
25223
+ if (!(part in current2)) {
25224
+ current2[part] = {};
25225
+ }
25226
+ current2 = current2[part];
25227
+ }
25228
+ current2[parts[parts.length - 1]] = value;
25229
+ }
25230
+ function deleteConfigValue(obj, key) {
25231
+ const parts = key.split(".");
25232
+ let current2 = obj;
25233
+ for (let i = 0; i < parts.length - 1; i++) {
25234
+ const part = parts[i];
25235
+ if (!(part in current2)) {
25236
+ return;
25237
+ }
25238
+ current2 = current2[part];
25239
+ }
25240
+ delete current2[parts[parts.length - 1]];
25241
+ }
25242
+
25004
25243
  // src/build/index.ts
25005
- import path3 from "node:path";
25244
+ import path4 from "node:path";
25006
25245
  import process2 from "node:process";
25007
25246
  import { pathToFileURL as pathToFileURL3 } from "node:url";
25008
25247
 
25009
- // node_modules/rollup/dist/es/rollup.js
25248
+ // ../node_modules/rollup/dist/es/rollup.js
25010
25249
  init_node_entry();
25011
25250
 
25012
25251
  // src/build/rollup-importmap-plugin.ts
25013
- import fs4 from "node:fs/promises";
25252
+ import fs5 from "node:fs/promises";
25014
25253
  import { fetch } from "@jspm/generator";
25015
25254
  var isValidUrl2 = (url) => {
25016
25255
  try {
@@ -25051,7 +25290,7 @@ var RollupImportmapPlugin = async (flags) => {
25051
25290
  }
25052
25291
  switch (url.protocol) {
25053
25292
  case "file:":
25054
- return await fs4.readFile(new URL(id), "utf-8");
25293
+ return await fs5.readFile(new URL(id), "utf-8");
25055
25294
  case "https:": {
25056
25295
  const response = await fetch(id);
25057
25296
  return await response.text();
@@ -25074,7 +25313,7 @@ async function build(entry, options) {
25074
25313
  if (!options.output) {
25075
25314
  throw new JspmError(`Build output is required when entry is provided`);
25076
25315
  }
25077
- const entryPath = path3.join(process2.cwd(), entry);
25316
+ const entryPath = path4.join(process2.cwd(), entry);
25078
25317
  if (await exists(entryPath) === false) {
25079
25318
  throw new JspmError(`Entry file does not exist: ${entryPath}`);
25080
25319
  }
@@ -25083,11 +25322,11 @@ async function build(entry, options) {
25083
25322
  plugins: [RollupImportmapPlugin(options)]
25084
25323
  };
25085
25324
  outputOptions = {
25086
- dir: path3.join(process2.cwd(), options.output)
25325
+ dir: path4.join(process2.cwd(), options.output)
25087
25326
  };
25088
25327
  }
25089
25328
  if (options.config) {
25090
- const buildConfigPath = path3.join(process2.cwd(), options.config);
25329
+ const buildConfigPath = path4.join(process2.cwd(), options.config);
25091
25330
  if (await exists(buildConfigPath) === false) {
25092
25331
  throw new JspmError(
25093
25332
  `Build config file does not exist: ${buildConfigPath}`
@@ -25112,76 +25351,65 @@ async function build(entry, options) {
25112
25351
  }
25113
25352
 
25114
25353
  // src/cli.ts
25115
- var cli = dist_default(c8.yellow("jspm"));
25116
- var mapOpt = [
25354
+ var { version: version2 } = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
25355
+ var cli = dist_default(c10.yellow("jspm"));
25356
+ var generateOpts = (cac2) => cac2.option(
25117
25357
  "-m, --map <file>",
25118
25358
  "File containing initial import map (defaults to importmap.json, or the input HTML if linking)",
25119
25359
  {}
25120
- ];
25121
- var envOpt = [
25360
+ ).option(
25122
25361
  "-e, --env <environments>",
25123
25362
  "Comma-separated environment condition overrides",
25124
25363
  {}
25125
- ];
25126
- var resolutionOpt = [
25364
+ ).option(
25127
25365
  "-r, --resolution <resolutions>",
25128
25366
  "Comma-separated dependency resolution overrides",
25129
25367
  {}
25130
- ];
25131
- var providerOpt = [
25368
+ ).option(
25132
25369
  "-p, --provider <provider>",
25133
25370
  `Default module provider. Available providers: ${availableProviders.join(
25134
25371
  ", "
25135
25372
  )}`,
25136
25373
  {}
25137
- ];
25138
- var stdoutOpt = [
25139
- "--stdout",
25140
- "Output the import map to stdout",
25141
- { default: false }
25142
- ];
25143
- var compactOpt = [
25144
- "--compact",
25145
- "Output a compact import map",
25374
+ ).option(
25375
+ "--cache <mode>",
25376
+ "Cache mode for fetches (online, offline, no-cache)",
25377
+ { default: "online" }
25378
+ ).option(
25379
+ "--integrity",
25380
+ "Add module integrity attributes to the import map",
25146
25381
  { default: false }
25147
- ];
25148
- var outputOpt = [
25149
- "-o, --output <file>",
25150
- "File to inject the final import map into (default: --map / importmap.json)",
25151
- {}
25152
- ];
25153
- var preloadOpt = [
25382
+ ).option(
25154
25383
  "--preload [mode]",
25155
25384
  "Add module preloads to HTML output (default: static, dynamic)",
25156
25385
  {}
25157
- ];
25158
- var integrityOpt = [
25159
- "--integrity",
25160
- "Add module integrity attributes to the import map",
25161
- { default: false }
25162
- ];
25163
- var cacheOpt = [
25164
- "--cache <mode>",
25165
- "Cache mode for fetches (online, offline, no-cache)",
25166
- { default: "online" }
25167
- ];
25168
- var rootOpt = [
25386
+ );
25387
+ var outputOpts = (cac2) => cac2.option(
25169
25388
  "--root <url>",
25170
25389
  "URL to treat as server root, i.e. rebase import maps against",
25171
25390
  {}
25172
- ];
25173
- var silentOpt = ["--silent", "Silence all output", { default: false }];
25174
- var buildConfigOpt = [
25175
- "--config <file>",
25176
- "Path to a rollup config file",
25177
- {}
25178
- ];
25179
- var buildOutputOpt = [
25180
- "--output <dir>",
25181
- "Path to the rollup output directory",
25391
+ ).option(
25392
+ "--compact",
25393
+ "Output a compact import map",
25394
+ { default: false }
25395
+ ).option(
25396
+ "--stdout",
25397
+ "Output the import map to stdout",
25398
+ { default: false }
25399
+ ).option(
25400
+ "-o, --output <file>",
25401
+ "File to inject the final import map into (default: --map / importmap.json)",
25182
25402
  {}
25183
- ];
25184
- cli.option(...silentOpt).version(version).help(defaultHelpCb);
25403
+ ).option(
25404
+ "--strip-env",
25405
+ "Do not inline the environment into the importmap.",
25406
+ { default: false }
25407
+ );
25408
+ cli.option(
25409
+ "--silent",
25410
+ "Silence all output",
25411
+ { default: false }
25412
+ ).version(version2).help(defaultHelpCb);
25185
25413
  cli.command("[...args]").allowUnknownOptions().usage("[command] [options]").action(
25186
25414
  wrapCommand((args) => {
25187
25415
  if (!args.length)
@@ -25192,7 +25420,7 @@ Run "jspm" without any arguments to see the help file.`
25192
25420
  );
25193
25421
  })
25194
25422
  );
25195
- cli.command("link [...modules]", "link modules").alias("trace").option(...mapOpt).option(...outputOpt).option(...envOpt).option(...resolutionOpt).option(...providerOpt).option(...cacheOpt).option(...rootOpt).option(...preloadOpt).option(...integrityOpt).option(...compactOpt).option(...stdoutOpt).example(
25423
+ outputOpts(generateOpts(cli.command("link [...modules]", "link modules").alias("trace"))).example(
25196
25424
  (name) => `Link a remote package in importmap.json
25197
25425
  $ ${name} link chalk@5.2.0
25198
25426
  `
@@ -25217,7 +25445,7 @@ In some cases there may be ambiguity. For instance, you may want to link the NPM
25217
25445
 
25218
25446
  If no modules are given, all "imports" in the initial map are relinked.`
25219
25447
  ).action(wrapCommand(link));
25220
- cli.command("install [...packages]", "install packages").alias("i").option(...mapOpt).option(...outputOpt).option(...envOpt).option(...resolutionOpt).option(...providerOpt).option(...cacheOpt).option(...rootOpt).option(...preloadOpt).option(...integrityOpt).option(...compactOpt).option(...stdoutOpt).example(
25448
+ outputOpts(generateOpts(cli.command("install [...packages]", "install packages").alias("i"))).example(
25221
25449
  (name) => `Install a package
25222
25450
  $ ${name} install lit
25223
25451
  `
@@ -25244,7 +25472,7 @@ Installs packages into an import map, along with all of the dependencies that ar
25244
25472
 
25245
25473
  If no packages are provided, all "imports" in the initial map are reinstalled.`
25246
25474
  ).action(wrapCommand(install));
25247
- cli.command("uninstall [...packages]", "remove packages").option(...mapOpt).option(...outputOpt).option(...envOpt).option(...resolutionOpt).option(...providerOpt).option(...cacheOpt).option(...rootOpt).option(...preloadOpt).option(...integrityOpt).option(...compactOpt).option(...stdoutOpt).example(
25475
+ outputOpts(generateOpts(cli.command("uninstall [...packages]", "remove packages"))).example(
25248
25476
  (name) => `
25249
25477
  $ ${name} uninstall lit lodash
25250
25478
 
@@ -25255,7 +25483,7 @@ Uninstall "lit" and "lodash" from importmap.json.
25255
25483
 
25256
25484
  Uninstalls packages from an import map. The given packages must be valid package specifiers, such as \`npm:react@18.0.0\`, \`denoland:oak\` or \`lit\`, and must be present in the initial import map.`
25257
25485
  ).action(wrapCommand(uninstall));
25258
- cli.command("update [...packages]", "update packages").alias("upgrade").option(...mapOpt).option(...outputOpt).option(...envOpt).option(...resolutionOpt).option(...providerOpt).option(...cacheOpt).option(...rootOpt).option(...preloadOpt).option(...integrityOpt).option(...compactOpt).option(...stdoutOpt).example(
25486
+ outputOpts(generateOpts(cli.command("update [...packages]", "update packages").alias("upgrade"))).example(
25259
25487
  (name) => `
25260
25488
  $ ${name} update react-dom
25261
25489
 
@@ -25271,7 +25499,65 @@ cli.command("clear-cache", "clear the local package cache").usage(
25271
25499
 
25272
25500
  Clears the global module fetch cache, for situations where the contents of a dependency may have changed without a version bump. This can happen during local development, for instance.`
25273
25501
  ).alias("cc").action(wrapCommand(clearCache));
25274
- cli.command("build [entry]", "Build the module using importmap").option(...resolutionOpt).option(...mapOpt).option(...buildConfigOpt).option(...buildOutputOpt).action(wrapCommand(build));
25502
+ cli.command("config <action> [key] [value]", "manage JSPM configuration").option("--local", "Use the local project configuration (default is user-level)", { default: false }).example(
25503
+ (name) => `
25504
+ $ ${name} config set providers.npm.auth "your-auth-token"
25505
+
25506
+ Set an authentication token for the npm provider in the user configuration.
25507
+ `
25508
+ ).example(
25509
+ (name) => `
25510
+ $ ${name} config set providers.npm.baseUrl "https://registry.npmjs.org/" --local
25511
+
25512
+ Set the npm registry URL in the local project configuration.
25513
+ `
25514
+ ).example(
25515
+ (name) => `
25516
+ $ ${name} config get providers.npm
25517
+
25518
+ Get the npm provider configuration.
25519
+ `
25520
+ ).example(
25521
+ (name) => `
25522
+ $ ${name} config list
25523
+
25524
+ List all configuration values.
25525
+ `
25526
+ ).usage(
25527
+ `config <action> [key] [value]
25528
+
25529
+ Manages JSPM configuration files. Configurations are loaded from the user directory (~/.jspm/config)
25530
+ and local directory (.jspmrc), with local configuration taking precedence over user configuration.
25531
+
25532
+ Actions:
25533
+ get <key> Get a configuration value
25534
+ set <key> <value> Set a configuration value
25535
+ delete|rm <key> Delete a configuration value
25536
+ list|ls List all configuration values
25537
+
25538
+ Configuration keys use dot notation (e.g., providers.npm.auth).
25539
+ Values are parsed as JSON if possible, otherwise used as strings.
25540
+
25541
+ By default, the command affects the user configuration (~/.jspm/config).
25542
+ Use the --local flag to modify the project-specific configuration (.jspmrc).`
25543
+ ).action(wrapCommand(configCmd));
25544
+ cli.command("build [entry]", "Build the module using importmap").option(
25545
+ "-r, --resolution <resolutions>",
25546
+ "Comma-separated dependency resolution overrides",
25547
+ {}
25548
+ ).option(
25549
+ "-m, --map <file>",
25550
+ "File containing initial import map (defaults to importmap.json, or the input HTML if linking)",
25551
+ {}
25552
+ ).option(
25553
+ "--config <file>",
25554
+ "Path to a rollup config file",
25555
+ {}
25556
+ ).option(
25557
+ "--output <dir>",
25558
+ "Path to the rollup output directory",
25559
+ {}
25560
+ ).action(wrapCommand(build));
25275
25561
  function defaultHelpCb(helpSections) {
25276
25562
  for (const section of Object.values(helpSections)) {
25277
25563
  if (section.title === "Commands") {
@@ -25280,7 +25566,7 @@ function defaultHelpCb(helpSections) {
25280
25566
  }
25281
25567
  for (const section of Object.values(helpSections)) {
25282
25568
  if (section.title)
25283
- section.title = c8.bold(section.title);
25569
+ section.title = c10.bold(section.title);
25284
25570
  }
25285
25571
  return helpSections;
25286
25572
  }
@@ -25293,7 +25579,7 @@ rollup/dist/es/shared/node-entry.js:
25293
25579
  (*
25294
25580
  @license
25295
25581
  Rollup.js v3.29.4
25296
- Thu, 28 Sep 2023 04:54:30 GMT - commit 4e92d60fa90cead39481e3703d26e5d812f43bd1
25582
+ Sat, 21 Sep 2024 06:29:06 GMT - commit 2ef77c00ec2635d42697cff2c0567ccc8db34fb4
25297
25583
 
25298
25584
  https://github.com/rollup/rollup
25299
25585
 
@@ -25304,7 +25590,7 @@ rollup/dist/es/rollup.js:
25304
25590
  (*
25305
25591
  @license
25306
25592
  Rollup.js v3.29.4
25307
- Thu, 28 Sep 2023 04:54:30 GMT - commit 4e92d60fa90cead39481e3703d26e5d812f43bd1
25593
+ Sat, 21 Sep 2024 06:29:06 GMT - commit 2ef77c00ec2635d42697cff2c0567ccc8db34fb4
25308
25594
 
25309
25595
  https://github.com/rollup/rollup
25310
25596