@shopify/cli
Version:
A CLI tool to build for the Shopify platform
1,421 lines (1,388 loc) • 12.1 MB
JavaScript
import {
require_lib as require_lib5
} from "./chunk-EZQWZ57B.js";
import {
require_normalize_path
} from "./chunk-X7YTIMNN.js";
import {
findPort
} from "./chunk-BV6PURBM.js";
import {
ALIAS_NAME,
ALL_ROUTE_CHOICES,
CSS_STRATEGY_HELP_URL_MAP,
CSS_STRATEGY_NAME_MAP,
CustomerAccountPush,
DEFAULT_APP_PORT,
DEFAULT_INSPECTOR_PORT,
GitDirectoryNotCleanError,
I18N_CHOICES,
I18N_STRATEGY_NAME_MAP,
LANGUAGES,
Link,
SETUP_CSS_STRATEGIES,
SETUP_I18N_STRATEGIES,
STYLING_CHOICES,
TUNNEL_DOMAIN,
addCursorAndFiltersToAppLogsUrl,
addToGitIgnore,
adminRequest,
assertOxygenChecks,
businessPlatformOrganizationsRequest,
businessPlatformOrganizationsRequestDoc,
businessPlatformRequestDoc,
checkIfIgnoredInGitRepository,
checkRemixVersions,
commitAll,
commonFlags,
createAbortHandler,
createDotEnvFileLine,
createEnvironmentCliChoiceLabel,
createInitialCommit,
createPlatformShortcut,
createRemixLogger,
createStorefront,
downloadGitRepository,
enhanceAuthLogs,
enhanceH2Logs,
ensureInsideGitDirectory,
ensureIsClean,
execAsync,
findEnvironmentByBranchOrThrow,
findEnvironmentOrThrow,
findHydrogenPlugin,
findOxygenPlugin,
flagsToCamelObject,
formatCode,
generateFetchAppLogUrl,
generateProjectEntries,
generateRoutes,
getAllEnvironmentVariables,
getAssetsDir,
getCliCommand,
getCodeFormatOptions,
getConfig,
getDebugBannerLine,
getDevConfigInBackground,
getLatestGitCommit,
getProjectPaths,
getRawRemixConfig,
getRemixConfig,
getRepoNodeModules,
getSkeletonSourceDir,
getStarterDir,
getStorefrontEnvVariables,
getStorefrontEnvironments,
getStorefronts,
getTemplateAppFile,
getUtilityBannerlines,
getViteConfig,
graphqlRequest,
graphqlRequestDoc,
handleCliShortcut,
handleCssStrategy,
handleDependencies,
handleI18n,
handleLanguage,
handleMiniOxygenImportFail,
handleProjectLocation,
handleRemixImportFail,
handleRouteGeneration,
handleStorefrontLink,
hasViteConfig,
hydrogenPackagesPath,
importLangAstGrep,
importLocal,
importVite,
initializeGitRepository,
insideGitDirectory,
isClassicProject,
isClean,
isH2Verbose,
isHydrogenMonorepo,
isMockShop,
isV1RouteConventionInstalled,
isViteProject,
linkStorefront,
logRequestLine,
login,
logout,
mergePackageJson,
mergeTsConfig,
muteDevLogs,
muteRemixLogs,
notifyIssueWithTunnelAndMockShop,
orderEnvironmentsBySafety,
overrideFlag,
parseGid,
parseProcessFlags,
partnersRequest,
partnersRequestDoc,
patchEnvFile,
readAndParseDotEnv,
renderCssPrompt,
renderI18nPrompt,
renderLoginSuccess,
renderProjectReady,
replaceFileContent,
require_ignore,
require_lib as require_lib4,
setH2OVerbose,
setStorefront,
setUserAccount,
setupCssStrategy,
setupI18nStrategy,
startTunnelAndPushConfig,
supressNodeExperimentalWarnings,
unsetStorefront,
waitForJob
} from "./chunk-H73PDGHM.js";
import {
require_ms,
require_src
} from "./chunk-LQ2ZKVR6.js";
import {
require_fs,
require_glob,
require_inflight,
require_inherits
} from "./chunk-IG5SOACB.js";
import {
setNextDeprecationDate
} from "./chunk-CP3BRHWK.js";
import {
import_websocket_server
} from "./chunk-MW7RWHY5.js";
import {
List
} from "./chunk-AV64MUSE.js";
import {
Search
} from "./chunk-WWOE2EFZ.js";
import {
Upgrade
} from "./chunk-3COQLGRL.js";
import "./chunk-HRT2J6AZ.js";
import {
Version
} from "./chunk-F23MB6TB.js";
import "./chunk-FHYKRLSA.js";
import "./chunk-GA5Q2G7N.js";
import {
KitchenSinkAll
} from "./chunk-O6JLOWUE.js";
import {
KitchenSinkPrompts
} from "./chunk-F3SJ7GH2.js";
import "./chunk-TJUGCRWY.js";
import {
KitchenSinkStatic
} from "./chunk-6GQF27II.js";
import "./chunk-FZI742QM.js";
import {
Generate
} from "./chunk-ZJ2IPVO4.js";
import "./chunk-LE26CN2H.js";
import {
Logout
} from "./chunk-QYA3TD2H.js";
import {
ensureAuthenticatedAdmin,
ensureAuthenticatedAppManagementAndBusinessPlatform,
ensureAuthenticatedPartners,
ensureAuthenticatedStorefront,
ensureAuthenticatedThemes
} from "./chunk-FEYZLXHI.js";
import {
ClearCache,
globalFlags,
jsonFlag,
runCLI
} from "./chunk-TFCMG5O2.js";
import {
CommandFlags
} from "./chunk-RH2XRA3A.js";
import {
DocsGenerate
} from "./chunk-VE4ESNRH.js";
import {
HelpCommand
} from "./chunk-TIMWAEJ5.js";
import {
KitchenSinkAsync
} from "./chunk-QTRXKFCW.js";
import "./chunk-6IPFYNHW.js";
import {
base_command_default,
decodeToml,
encodeToml,
loadEnvironment
} from "./chunk-PT5BDLIN.js";
import {
require_byline,
require_end_of_stream,
require_error_stack_parser,
require_iserror,
require_pump,
require_stack_generator
} from "./chunk-EBRJEUGC.js";
import {
require_once
} from "./chunk-SHWOPMLQ.js";
import {
fanoutHooks,
getListOfTunnelPlugins,
reportAnalyticsEvent
} from "./chunk-HO5XX2LU.js";
import {
appDevFqdn,
appManagementFqdn,
developerDashboardFqdn,
err,
isThemeAccessSession,
normalizeStoreFqdn,
ok,
partnersFqdn
} from "./chunk-HGD26EDV.js";
import {
showNotificationsIfNeeded
} from "./chunk-DNGCAQBF.js";
import {
ClientError,
FetchError,
buildHeaders,
fetch as fetch2,
formData,
gql,
require_graphql,
require_lib as require_lib3,
require_mime_types,
shopifyFetch,
z
} from "./chunk-HE3BDMSQ.js";
import "./chunk-25IMI7TH.js";
import {
CLI_KIT_VERSION
} from "./chunk-UGX6DGR4.js";
import {
LocalStorage,
UnknownPackageManagerError,
addNPMDependenciesIfNeeded,
addResolutionOrOverride,
checkForNewVersion,
findUpAndReadPackageJson,
getDependencies,
getPackageManager,
getPackageName,
getPackageVersion,
inferPackageManager,
installNPMDependenciesRecursively,
installNodeModules,
lockfiles,
lockfilesByManager,
packageManagerFromUserAgent,
readAndParsePackageJson,
require_ajv,
usesWorkspaces,
versionSatisfies,
writePackageJSON
} from "./chunk-5DXEBIVF.js";
import {
require_semver
} from "./chunk-HMDWNGIV.js";
import {
AbortController as AbortController2,
AbortError,
AbortSignal,
AbortSilentError,
Box_default,
BugError,
CancelExecution,
ConcurrentOutput,
FatalError,
Static,
Text,
Yoga,
addPublicMetadata,
ansi_escapes_default,
ansi_styles_default,
appHost,
appPort,
appendFile,
autoBind,
blockPartnersAccess,
camelize,
capitalize,
captureOutput,
chmod,
ciPlatform,
cli_cursor_default,
codespacePortForwardingDomain,
codespaceURL,
collectLog,
consoleError,
consoleLog,
consoleWarn,
constantize,
copyFile,
createFileReadStream,
createFileWriteStream,
createRuntimeMetadataContainer,
currentProcessIsGlobal,
debounce,
difference,
dist_default,
dist_default2,
exec,
fetchSpinPort,
figures_default,
fileExists,
fileExistsSync,
fileHasExecutablePermissions,
fileHash,
fileLastUpdatedTimestamp,
fileRealPath,
fileSize,
fileSizeSync,
findPathUp,
firstPartyDev,
formatDate,
formatLocalDate,
formatPackageManagerCommand,
formatSection,
generateRandomNameForSubdirectory,
getArrayRejectingUndefined,
getBackendPort,
getEnvironmentVariables,
getRandomName,
getThemeKitAccessDomain,
gitpodURL,
glob,
handleCtrlC,
hashString,
hyphenate,
import_ts_error,
inTemporaryDirectory,
indentString,
inferPackageManagerForGlobalCLI,
installGlobalCLIPrompt,
installGlobalShopifyCLI,
isAppManagementDisabled,
isDirectory,
isShopify,
isSpin,
isSpinEnvironment,
isTTY,
isTerminalInteractive,
isTruthy,
isUnitTest,
isVerbose,
itemToString,
joinWithAnd,
jsonOutputEnabled,
logsFolder,
matchGlob,
mkdir,
mkdirSync,
moveFile,
nonRandomUUID,
normalizeDelimitedString,
npmRunPathEnv,
openURL,
outputCompleted,
outputContent,
outputDebug,
outputInfo,
outputNewline,
outputSuccess,
outputToken,
outputWarn,
pascalize,
platformAndArch,
pluralize,
randomUUID,
readFile,
readFileSync,
removeFile,
removeFileSync,
renameFile,
render,
renderAutocompletePrompt,
renderConcurrent,
renderConfirmationPrompt,
renderDangerousConfirmationPrompt,
renderError,
renderFatalError,
renderInfo,
renderSelectPrompt,
renderSuccess,
renderTable,
renderTasks,
renderTextPrompt,
renderWarning,
require_Stack,
require_Symbol,
require_Uint8Array,
require_arrayLikeKeys,
require_arrayMap,
require_arrayPush,
require_baseDifference,
require_baseEach,
require_baseFlatten,
require_baseForOwn,
require_baseGet,
require_baseGetAllKeys,
require_baseIsEqual,
require_baseIteratee,
require_baseKeys,
require_baseRest,
require_baseUnary,
require_castPath,
require_cli_boxes,
require_defineProperty,
require_eq,
require_get,
require_getAllKeys,
require_getSymbols,
require_getTag,
require_isArguments,
require_isArray,
require_isArrayLike,
require_isArrayLikeObject,
require_isBuffer,
require_isIndex,
require_isObject,
require_isObjectLike,
require_isPrototype,
require_isTypedArray,
require_keys,
require_mapToArray,
require_nodeUtil,
require_overArg,
require_react,
require_root,
require_scheduler,
require_signal_exit,
require_stack_utils,
require_stubArray,
require_throttle,
require_toKey,
require_toString,
rmdir,
runWithTimer,
serviceEnvironment,
shouldDisplayColors,
sleep,
sliceAnsi,
slugify,
source_default,
spinFqdn,
spinVariables,
stringifyMessage,
stripAnsi,
styledCharsFromTokens,
styledCharsToString,
tempDirectory,
terminalSupportsPrompting,
themeKitAccessDomain,
tokenize,
touchFile,
treeKill,
tryParseInt,
uniq,
uniqBy,
uniqueString,
unlinkFile,
unlinkFileSync,
unstyled,
useAbortSignal,
useConcurrentOutputContext,
useEmbeddedThemeCLI,
useThemebundling,
use_input_default,
use_stdin_default,
username,
writeFile,
writeFileSync
} from "./chunk-OAZABGFS.js";
import {
require_lib as require_lib2
} from "./chunk-B5EXYCV3.js";
import {
require_graceful_fs
} from "./chunk-75LV6AQS.js";
import {
basename,
cwd,
dirname,
extname,
isSubpath,
joinPath,
moduleDirectory,
normalizePath,
relativePath,
relativizePath,
resolvePath,
sniffForJson
} from "./chunk-57Q6OQG4.js";
import {
require_escape_string_regexp,
require_lib
} from "./chunk-QAKYKTFV.js";
import {
require_brace_expansion,
require_buffer_from
} from "./chunk-G5R6YD27.js";
import "./chunk-3I3GQNEW.js";
import "./chunk-G2ZZKGSV.js";
import "./chunk-MP5RLDFN.js";
import "./chunk-XE5EOEBL.js";
import "./chunk-5DBS6QOU.js";
import "./chunk-B3YWYURY.js";
import "./chunk-CDBXAE2F.js";
import {
__commonJS,
__esm,
__export,
__require,
__toCommonJS,
__toESM,
init_cjs_shims
} from "./chunk-PKR7KJ6P.js";
// ../../node_modules/.pnpm/boolean@3.2.0/node_modules/boolean/build/lib/boolean.js
var require_boolean = __commonJS({
"../../node_modules/.pnpm/boolean@3.2.0/node_modules/boolean/build/lib/boolean.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", { value: !0 });
exports.boolean = void 0;
var boolean = function(value) {
switch (Object.prototype.toString.call(value)) {
case "[object String]":
return ["true", "t", "yes", "y", "on", "1"].includes(value.trim().toLowerCase());
case "[object Number]":
return value.valueOf() === 1;
case "[object Boolean]":
return value.valueOf();
default:
return !1;
}
};
exports.boolean = boolean;
}
});
// ../../node_modules/.pnpm/boolean@3.2.0/node_modules/boolean/build/lib/isBooleanable.js
var require_isBooleanable = __commonJS({
"../../node_modules/.pnpm/boolean@3.2.0/node_modules/boolean/build/lib/isBooleanable.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", { value: !0 });
exports.isBooleanable = void 0;
var isBooleanable = function(value) {
switch (Object.prototype.toString.call(value)) {
case "[object String]":
return [
"true",
"t",
"yes",
"y",
"on",
"1",
"false",
"f",
"no",
"n",
"off",
"0"
].includes(value.trim().toLowerCase());
case "[object Number]":
return [0, 1].includes(value.valueOf());
case "[object Boolean]":
return !0;
default:
return !1;
}
};
exports.isBooleanable = isBooleanable;
}
});
// ../../node_modules/.pnpm/boolean@3.2.0/node_modules/boolean/build/lib/index.js
var require_lib6 = __commonJS({
"../../node_modules/.pnpm/boolean@3.2.0/node_modules/boolean/build/lib/index.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", { value: !0 });
exports.isBooleanable = exports.boolean = void 0;
var boolean_1 = require_boolean();
Object.defineProperty(exports, "boolean", { enumerable: !0, get: function() {
return boolean_1.boolean;
} });
var isBooleanable_1 = require_isBooleanable();
Object.defineProperty(exports, "isBooleanable", { enumerable: !0, get: function() {
return isBooleanable_1.isBooleanable;
} });
}
});
// ../../node_modules/.pnpm/detect-node@2.1.0/node_modules/detect-node/index.js
var require_detect_node = __commonJS({
"../../node_modules/.pnpm/detect-node@2.1.0/node_modules/detect-node/index.js"(exports, module) {
init_cjs_shims();
module.exports = Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]";
}
});
// ../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/isArguments.js
var require_isArguments2 = __commonJS({
"../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/isArguments.js"(exports, module) {
"use strict";
init_cjs_shims();
var toStr = Object.prototype.toString;
module.exports = function(value) {
var str = toStr.call(value), isArgs = str === "[object Arguments]";
return isArgs || (isArgs = str !== "[object Array]" && value !== null && typeof value == "object" && typeof value.length == "number" && value.length >= 0 && toStr.call(value.callee) === "[object Function]"), isArgs;
};
}
});
// ../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/implementation.js
var require_implementation = __commonJS({
"../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/implementation.js"(exports, module) {
"use strict";
init_cjs_shims();
var keysShim;
Object.keys || (has2 = Object.prototype.hasOwnProperty, toStr = Object.prototype.toString, isArgs = require_isArguments2(), isEnumerable = Object.prototype.propertyIsEnumerable, hasDontEnumBug = !isEnumerable.call({ toString: null }, "toString"), hasProtoEnumBug = isEnumerable.call(function() {
}, "prototype"), dontEnums = [
"toString",
"toLocaleString",
"valueOf",
"hasOwnProperty",
"isPrototypeOf",
"propertyIsEnumerable",
"constructor"
], equalsConstructorPrototype = function(o) {
var ctor = o.constructor;
return ctor && ctor.prototype === o;
}, excludedKeys = {
$applicationCache: !0,
$console: !0,
$external: !0,
$frame: !0,
$frameElement: !0,
$frames: !0,
$innerHeight: !0,
$innerWidth: !0,
$onmozfullscreenchange: !0,
$onmozfullscreenerror: !0,
$outerHeight: !0,
$outerWidth: !0,
$pageXOffset: !0,
$pageYOffset: !0,
$parent: !0,
$scrollLeft: !0,
$scrollTop: !0,
$scrollX: !0,
$scrollY: !0,
$self: !0,
$webkitIndexedDB: !0,
$webkitStorageInfo: !0,
$window: !0
}, hasAutomationEqualityBug = function() {
if (typeof window > "u")
return !1;
for (var k in window)
try {
if (!excludedKeys["$" + k] && has2.call(window, k) && window[k] !== null && typeof window[k] == "object")
try {
equalsConstructorPrototype(window[k]);
} catch {
return !0;
}
} catch {
return !0;
}
return !1;
}(), equalsConstructorPrototypeIfNotBuggy = function(o) {
if (typeof window > "u" || !hasAutomationEqualityBug)
return equalsConstructorPrototype(o);
try {
return equalsConstructorPrototype(o);
} catch {
return !1;
}
}, keysShim = function(object) {
var isObject4 = object !== null && typeof object == "object", isFunction = toStr.call(object) === "[object Function]", isArguments = isArgs(object), isString2 = isObject4 && toStr.call(object) === "[object String]", theKeys = [];
if (!isObject4 && !isFunction && !isArguments)
throw new TypeError("Object.keys called on a non-object");
var skipProto = hasProtoEnumBug && isFunction;
if (isString2 && object.length > 0 && !has2.call(object, 0))
for (var i = 0; i < object.length; ++i)
theKeys.push(String(i));
if (isArguments && object.length > 0)
for (var j = 0; j < object.length; ++j)
theKeys.push(String(j));
else
for (var name in object)
!(skipProto && name === "prototype") && has2.call(object, name) && theKeys.push(String(name));
if (hasDontEnumBug)
for (var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object), k = 0; k < dontEnums.length; ++k)
!(skipConstructor && dontEnums[k] === "constructor") && has2.call(object, dontEnums[k]) && theKeys.push(dontEnums[k]);
return theKeys;
});
var has2, toStr, isArgs, isEnumerable, hasDontEnumBug, hasProtoEnumBug, dontEnums, equalsConstructorPrototype, excludedKeys, hasAutomationEqualityBug, equalsConstructorPrototypeIfNotBuggy;
module.exports = keysShim;
}
});
// ../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/index.js
var require_object_keys = __commonJS({
"../../node_modules/.pnpm/object-keys@1.1.1/node_modules/object-keys/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var slice = Array.prototype.slice, isArgs = require_isArguments2(), origKeys = Object.keys, keysShim = origKeys ? function(o) {
return origKeys(o);
} : require_implementation(), originalKeys = Object.keys;
keysShim.shim = function() {
if (Object.keys) {
var keysWorksWithArguments = function() {
var args = Object.keys(arguments);
return args && args.length === arguments.length;
}(1, 2);
keysWorksWithArguments || (Object.keys = function(object) {
return isArgs(object) ? originalKeys(slice.call(object)) : originalKeys(object);
});
} else
Object.keys = keysShim;
return Object.keys || keysShim;
};
module.exports = keysShim;
}
});
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js
var require_es_errors = __commonJS({
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports, module) {
"use strict";
init_cjs_shims();
module.exports = Error;
}
});
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js
var require_eval = __commonJS({
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(exports, module) {
"use strict";
init_cjs_shims();
module.exports = EvalError;
}
});
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js
var require_range = __commonJS({
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports, module) {
"use strict";
init_cjs_shims();
module.exports = RangeError;
}
});
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js
var require_ref = __commonJS({
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(exports, module) {
"use strict";
init_cjs_shims();
module.exports = ReferenceError;
}
});
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js
var require_syntax = __commonJS({
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(exports, module) {
"use strict";
init_cjs_shims();
module.exports = SyntaxError;
}
});
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js
var require_type = __commonJS({
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(exports, module) {
"use strict";
init_cjs_shims();
module.exports = TypeError;
}
});
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js
var require_uri = __commonJS({
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(exports, module) {
"use strict";
init_cjs_shims();
module.exports = URIError;
}
});
// ../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js
var require_shams = __commonJS({
"../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js"(exports, module) {
"use strict";
init_cjs_shims();
module.exports = function() {
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
return !1;
if (typeof Symbol.iterator == "symbol")
return !0;
var obj = {}, sym = Symbol("test"), symObj = Object(sym);
if (typeof sym == "string" || Object.prototype.toString.call(sym) !== "[object Symbol]" || Object.prototype.toString.call(symObj) !== "[object Symbol]")
return !1;
var symVal = 42;
obj[sym] = symVal;
for (sym in obj)
return !1;
if (typeof Object.keys == "function" && Object.keys(obj).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(obj).length !== 0)
return !1;
var syms = Object.getOwnPropertySymbols(obj);
if (syms.length !== 1 || syms[0] !== sym || !Object.prototype.propertyIsEnumerable.call(obj, sym))
return !1;
if (typeof Object.getOwnPropertyDescriptor == "function") {
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
if (descriptor.value !== symVal || descriptor.enumerable !== !0)
return !1;
}
return !0;
};
}
});
// ../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js
var require_has_symbols = __commonJS({
"../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var origSymbol = typeof Symbol < "u" && Symbol, hasSymbolSham = require_shams();
module.exports = function() {
return typeof origSymbol != "function" || typeof Symbol != "function" || typeof origSymbol("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : hasSymbolSham();
};
}
});
// ../../node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js
var require_has_proto = __commonJS({
"../../node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var test = {
__proto__: null,
foo: {}
}, $Object = Object;
module.exports = function() {
return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
};
}
});
// ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js
var require_implementation2 = __commonJS({
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module) {
"use strict";
init_cjs_shims();
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr = Object.prototype.toString, max = Math.max, funcType = "[object Function]", concatty = function(a2, b) {
for (var arr = [], i = 0; i < a2.length; i += 1)
arr[i] = a2[i];
for (var j = 0; j < b.length; j += 1)
arr[j + a2.length] = b[j];
return arr;
}, slicy = function(arrLike, offset) {
for (var arr = [], i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1)
arr[j] = arrLike[i];
return arr;
}, joiny = function(arr, joiner) {
for (var str = "", i = 0; i < arr.length; i += 1)
str += arr[i], i + 1 < arr.length && (str += joiner);
return str;
};
module.exports = function(that) {
var target = this;
if (typeof target != "function" || toStr.apply(target) !== funcType)
throw new TypeError(ERROR_MESSAGE + target);
for (var args = slicy(arguments, 1), bound, binder = function() {
if (this instanceof bound) {
var result = target.apply(
this,
concatty(args, arguments)
);
return Object(result) === result ? result : this;
}
return target.apply(
that,
concatty(args, arguments)
);
}, boundLength = max(0, target.length - args.length), boundArgs = [], i = 0; i < boundLength; i++)
boundArgs[i] = "$" + i;
if (bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder), target.prototype) {
var Empty = function() {
};
Empty.prototype = target.prototype, bound.prototype = new Empty(), Empty.prototype = null;
}
return bound;
};
}
});
// ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js
var require_function_bind = __commonJS({
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var implementation = require_implementation2();
module.exports = Function.prototype.bind || implementation;
}
});
// ../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
var require_hasown = __commonJS({
"../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var call = Function.prototype.call, $hasOwn = Object.prototype.hasOwnProperty, bind = require_function_bind();
module.exports = bind.call(call, $hasOwn);
}
});
// ../../node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js
var require_get_intrinsic = __commonJS({
"../../node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var undefined2, $Error = require_es_errors(), $EvalError = require_eval(), $RangeError = require_range(), $ReferenceError = require_ref(), $SyntaxError = require_syntax(), $TypeError = require_type(), $URIError = require_uri(), $Function = Function, getEvalledConstructor = function(expressionSyntax) {
try {
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
} catch {
}
}, $gOPD = Object.getOwnPropertyDescriptor;
if ($gOPD)
try {
$gOPD({}, "");
} catch {
$gOPD = null;
}
var throwTypeError = function() {
throw new $TypeError();
}, ThrowTypeError = $gOPD ? function() {
try {
return arguments.callee, throwTypeError;
} catch {
try {
return $gOPD(arguments, "callee").get;
} catch {
return throwTypeError;
}
}
}() : throwTypeError, hasSymbols = require_has_symbols()(), hasProto = require_has_proto()(), getProto = Object.getPrototypeOf || (hasProto ? function(x) {
return x.__proto__;
} : null), needsEval = {}, TypedArray = typeof Uint8Array > "u" || !getProto ? undefined2 : getProto(Uint8Array), INTRINSICS = {
__proto__: null,
"%AggregateError%": typeof AggregateError > "u" ? undefined2 : AggregateError,
"%Array%": Array,
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? undefined2 : ArrayBuffer,
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
"%AsyncFromSyncIteratorPrototype%": undefined2,
"%AsyncFunction%": needsEval,
"%AsyncGenerator%": needsEval,
"%AsyncGeneratorFunction%": needsEval,
"%AsyncIteratorPrototype%": needsEval,
"%Atomics%": typeof Atomics > "u" ? undefined2 : Atomics,
"%BigInt%": typeof BigInt > "u" ? undefined2 : BigInt,
"%BigInt64Array%": typeof BigInt64Array > "u" ? undefined2 : BigInt64Array,
"%BigUint64Array%": typeof BigUint64Array > "u" ? undefined2 : BigUint64Array,
"%Boolean%": Boolean,
"%DataView%": typeof DataView > "u" ? undefined2 : DataView,
"%Date%": Date,
"%decodeURI%": decodeURI,
"%decodeURIComponent%": decodeURIComponent,
"%encodeURI%": encodeURI,
"%encodeURIComponent%": encodeURIComponent,
"%Error%": $Error,
"%eval%": eval,
// eslint-disable-line no-eval
"%EvalError%": $EvalError,
"%Float32Array%": typeof Float32Array > "u" ? undefined2 : Float32Array,
"%Float64Array%": typeof Float64Array > "u" ? undefined2 : Float64Array,
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? undefined2 : FinalizationRegistry,
"%Function%": $Function,
"%GeneratorFunction%": needsEval,
"%Int8Array%": typeof Int8Array > "u" ? undefined2 : Int8Array,
"%Int16Array%": typeof Int16Array > "u" ? undefined2 : Int16Array,
"%Int32Array%": typeof Int32Array > "u" ? undefined2 : Int32Array,
"%isFinite%": isFinite,
"%isNaN%": isNaN,
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
"%JSON%": typeof JSON == "object" ? JSON : undefined2,
"%Map%": typeof Map > "u" ? undefined2 : Map,
"%MapIteratorPrototype%": typeof Map > "u" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
"%Math%": Math,
"%Number%": Number,
"%Object%": Object,
"%parseFloat%": parseFloat,
"%parseInt%": parseInt,
"%Promise%": typeof Promise > "u" ? undefined2 : Promise,
"%Proxy%": typeof Proxy > "u" ? undefined2 : Proxy,
"%RangeError%": $RangeError,
"%ReferenceError%": $ReferenceError,
"%Reflect%": typeof Reflect > "u" ? undefined2 : Reflect,
"%RegExp%": RegExp,
"%Set%": typeof Set > "u" ? undefined2 : Set,
"%SetIteratorPrototype%": typeof Set > "u" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? undefined2 : SharedArrayBuffer,
"%String%": String,
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
"%Symbol%": hasSymbols ? Symbol : undefined2,
"%SyntaxError%": $SyntaxError,
"%ThrowTypeError%": ThrowTypeError,
"%TypedArray%": TypedArray,
"%TypeError%": $TypeError,
"%Uint8Array%": typeof Uint8Array > "u" ? undefined2 : Uint8Array,
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? undefined2 : Uint8ClampedArray,
"%Uint16Array%": typeof Uint16Array > "u" ? undefined2 : Uint16Array,
"%Uint32Array%": typeof Uint32Array > "u" ? undefined2 : Uint32Array,
"%URIError%": $URIError,
"%WeakMap%": typeof WeakMap > "u" ? undefined2 : WeakMap,
"%WeakRef%": typeof WeakRef > "u" ? undefined2 : WeakRef,
"%WeakSet%": typeof WeakSet > "u" ? undefined2 : WeakSet
};
if (getProto)
try {
null.error;
} catch (e) {
errorProto = getProto(getProto(e)), INTRINSICS["%Error.prototype%"] = errorProto;
}
var errorProto, doEval = function doEval2(name) {
var value;
if (name === "%AsyncFunction%")
value = getEvalledConstructor("async function () {}");
else if (name === "%GeneratorFunction%")
value = getEvalledConstructor("function* () {}");
else if (name === "%AsyncGeneratorFunction%")
value = getEvalledConstructor("async function* () {}");
else if (name === "%AsyncGenerator%") {
var fn = doEval2("%AsyncGeneratorFunction%");
fn && (value = fn.prototype);
} else if (name === "%AsyncIteratorPrototype%") {
var gen = doEval2("%AsyncGenerator%");
gen && getProto && (value = getProto(gen.prototype));
}
return INTRINSICS[name] = value, value;
}, LEGACY_ALIASES = {
__proto__: null,
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
"%ArrayPrototype%": ["Array", "prototype"],
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
"%ArrayProto_values%": ["Array", "prototype", "values"],
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
"%BooleanPrototype%": ["Boolean", "prototype"],
"%DataViewPrototype%": ["DataView", "prototype"],
"%DatePrototype%": ["Date", "prototype"],
"%ErrorPrototype%": ["Error", "prototype"],
"%EvalErrorPrototype%": ["EvalError", "prototype"],
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
"%FunctionPrototype%": ["Function", "prototype"],
"%Generator%": ["GeneratorFunction", "prototype"],
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
"%JSONParse%": ["JSON", "parse"],
"%JSONStringify%": ["JSON", "stringify"],
"%MapPrototype%": ["Map", "prototype"],
"%NumberPrototype%": ["Number", "prototype"],
"%ObjectPrototype%": ["Object", "prototype"],
"%ObjProto_toString%": ["Object", "prototype", "toString"],
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
"%PromisePrototype%": ["Promise", "prototype"],
"%PromiseProto_then%": ["Promise", "prototype", "then"],
"%Promise_all%": ["Promise", "all"],
"%Promise_reject%": ["Promise", "reject"],
"%Promise_resolve%": ["Promise", "resolve"],
"%RangeErrorPrototype%": ["RangeError", "prototype"],
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
"%RegExpPrototype%": ["RegExp", "prototype"],
"%SetPrototype%": ["Set", "prototype"],
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
"%StringPrototype%": ["String", "prototype"],
"%SymbolPrototype%": ["Symbol", "prototype"],
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
"%TypeErrorPrototype%": ["TypeError", "prototype"],
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
"%URIErrorPrototype%": ["URIError", "prototype"],
"%WeakMapPrototype%": ["WeakMap", "prototype"],
"%WeakSetPrototype%": ["WeakSet", "prototype"]
}, bind = require_function_bind(), hasOwn = require_hasown(), $concat = bind.call(Function.call, Array.prototype.concat), $spliceApply = bind.call(Function.apply, Array.prototype.splice), $replace = bind.call(Function.call, String.prototype.replace), $strSlice = bind.call(Function.call, String.prototype.slice), $exec = bind.call(Function.call, RegExp.prototype.exec), rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, reEscapeChar = /\\(\\)?/g, stringToPath = function(string) {
var first = $strSlice(string, 0, 1), last = $strSlice(string, -1);
if (first === "%" && last !== "%")
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
if (last === "%" && first !== "%")
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
var result = [];
return $replace(string, rePropName, function(match2, number, quote, subString) {
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match2;
}), result;
}, getBaseIntrinsic = function(name, allowMissing) {
var intrinsicName = name, alias;
if (hasOwn(LEGACY_ALIASES, intrinsicName) && (alias = LEGACY_ALIASES[intrinsicName], intrinsicName = "%" + alias[0] + "%"), hasOwn(INTRINSICS, intrinsicName)) {
var value = INTRINSICS[intrinsicName];
if (value === needsEval && (value = doEval(intrinsicName)), typeof value > "u" && !allowMissing)
throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
return {
alias,
name: intrinsicName,
value
};
}
throw new $SyntaxError("intrinsic " + name + " does not exist!");
};
module.exports = function(name, allowMissing) {
if (typeof name != "string" || name.length === 0)
throw new $TypeError("intrinsic name must be a non-empty string");
if (arguments.length > 1 && typeof allowMissing != "boolean")
throw new $TypeError('"allowMissing" argument must be a boolean');
if ($exec(/^%?[^%]*%?$/, name) === null)
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
var parts = stringToPath(name), intrinsicBaseName = parts.length > 0 ? parts[0] : "", intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing), intrinsicRealName = intrinsic.name, value = intrinsic.value, skipFurtherCaching = !1, alias = intrinsic.alias;
alias && (intrinsicBaseName = alias[0], $spliceApply(parts, $concat([0, 1], alias)));
for (var i = 1, isOwn = !0; i < parts.length; i += 1) {
var part = parts[i], first = $strSlice(part, 0, 1), last = $strSlice(part, -1);
if ((first === '"' || first === "'" || first === "`" || last === '"' || last === "'" || last === "`") && first !== last)
throw new $SyntaxError("property names with quotes must have matching quotes");
if ((part === "constructor" || !isOwn) && (skipFurtherCaching = !0), intrinsicBaseName += "." + part, intrinsicRealName = "%" + intrinsicBaseName + "%", hasOwn(INTRINSICS, intrinsicRealName))
value = INTRINSICS[intrinsicRealName];
else if (value != null) {
if (!(part in value)) {
if (!allowMissing)
throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
return;
}
if ($gOPD && i + 1 >= parts.length) {
var desc = $gOPD(value, part);
isOwn = !!desc, isOwn && "get" in desc && !("originalValue" in desc.get) ? value = desc.get : value = value[part];
} else
isOwn = hasOwn(value, part), value = value[part];
isOwn && !skipFurtherCaching && (INTRINSICS[intrinsicRealName] = value);
}
}
return value;
};
}
});
// ../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js
var require_es_define_property = __commonJS({
"../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var GetIntrinsic = require_get_intrinsic(), $defineProperty = GetIntrinsic("%Object.defineProperty%", !0) || !1;
if ($defineProperty)
try {
$defineProperty({}, "a", { value: 1 });
} catch {
$defineProperty = !1;
}
module.exports = $defineProperty;
}
});
// ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js
var require_gOPD = __commonJS({
"../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(exports, module) {
"use strict";
init_cjs_shims();
module.exports = Object.getOwnPropertyDescriptor;
}
});
// ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js
var require_gopd = __commonJS({
"../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var $gOPD = require_gOPD();
if ($gOPD)
try {
$gOPD([], "length");
} catch {
$gOPD = null;
}
module.exports = $gOPD;
}
});
// ../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js
var require_define_data_property = __commonJS({
"../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var $defineProperty = require_es_define_property(), $SyntaxError = require_syntax(), $TypeError = require_type(), gopd = require_gopd();
module.exports = function(obj, property, value) {
if (!obj || typeof obj != "object" && typeof obj != "function")
throw new $TypeError("`obj` must be an object or a function`");
if (typeof property != "string" && typeof property != "symbol")
throw new $TypeError("`property` must be a string or a symbol`");
if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
if (arguments.length > 6 && typeof arguments[6] != "boolean")
throw new $TypeError("`loose`, if provided, must be a boolean");
var nonEnumerable = arguments.length > 3 ? arguments[3] : null, nonWritable = arguments.length > 4 ? arguments[4] : null, nonConfigurable = arguments.length > 5 ? arguments[5] : null, loose = arguments.length > 6 ? arguments[6] : !1, desc = !!gopd && gopd(obj, property);
if ($defineProperty)
$defineProperty(obj, property, {
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
value,
writable: nonWritable === null && desc ? desc.writable : !nonWritable
});
else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable)
obj[property] = value;
else
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
};
}
});
// ../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js
var require_has_property_descriptors = __commonJS({
"../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var $defineProperty = require_es_define_property(), hasPropertyDescriptors = function() {
return !!$defineProperty;
};
hasPropertyDescriptors.hasArrayLengthDefineBug = function() {
if (!$defineProperty)
return null;
try {
return $defineProperty([], "length", { value: 1 }).length !== 1;
} catch {
return !0;
}
};
module.exports = hasPropertyDescriptors;
}
});
// ../../node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js
var require_define_properties = __commonJS({
"../../node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var keys = require_object_keys(), hasSymbols = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", toStr = Object.prototype.toString, concat = Array.prototype.concat, defineDataProperty = require_define_data_property(), isFunction = function(fn) {
return typeof fn == "function" && toStr.call(fn) === "[object Function]";
}, supportsDescriptors = require_has_property_descriptors()(), defineProperty = function(object, name, value, predicate) {
if (name in object) {
if (predicate === !0) {
if (object[name] === value)
return;
} else if (!isFunction(predicate) || !predicate())
return;
}
supportsDescriptors ? defineDataProperty(object, name, value, !0) : defineDataProperty(object, name, value);
}, defineProperties = function(object, map) {
var predicates = arguments.length > 2 ? arguments[2] : {}, props = keys(map);
hasSymbols && (props = concat.call(props, Object.getOwnPropertySymbols(map)));
for (var i = 0; i < props.length; i += 1)
defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
};
defineProperties.supportsDescriptors = !!supportsDescriptors;
module.exports = defineProperties;
}
});
// ../../node_modules/.pnpm/globalthis@1.0.4/node_modules/globalthis/implementation.js
var require_implementation3 = __commonJS({
"../../node_modules/.pnpm/globalthis@1.0.4/node_modules/globalthis/implementation.js"(exports, module) {
"use strict";
init_cjs_shims();
module.exports = global;
}
});
// ../../node_modules/.pnpm/globalthis@1.0.4/node_modules/globalthis/polyfill.js
var require_polyfill = __commonJS({
"../../node_modules/.pnpm/globalthis@1.0.4/node_modules/globalthis/polyfill.js"(exports, module) {
"use strict";
init_cjs_shims();
var implementation = require_implementation3();
module.exports = function() {
return typeof global != "object" || !global || global.Math !== Math || global.Array !== Array ? implementation : global;
};
}
});
// ../../node_modules/.pnpm/globalthis@1.0.4/node_modules/globalthis/shim.js
var require_shim = __commonJS({
"../../node_modules/.pnpm/globalthis@1.0.4/node_modules/globalthis/shim.js"(exports, module) {
"use strict";
init_cjs_shims();
var define2 = require_define_properties(), gOPD = require_gopd(), getPolyfill = require_polyfill();
module.exports = function() {
var polyfill = getPolyfill();
if (define2.supportsDescriptors) {
var descriptor = gOPD(polyfill, "globalThis");
(!descriptor || descriptor.configurable && (descriptor.enumerable || !descriptor.writable || globalThis !== polyfill)) && Object.defineProperty(polyfill, "globalThis", {
configurable: !0,
enumerable: !1,
value: polyfill,
writable: !0
});
} else (typeof globalThis != "object" || globalThis !== polyfill) && (polyfill.globalThis = polyfill);
return polyfill;
};
}
});
// ../../node_modules/.pnpm/globalthis@1.0.4/node_modules/globalthis/index.js
var require_globalthis = __commonJS({
"../../node_modules/.pnpm/globalthis@1.0.4/node_modules/globalthis/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var defineProperties = require_define_properties(), implementation = require_implementation3(), getPolyfill = require_polyfill(), shim = require_shim(), polyfill = getPolyfill(), getGlobal = function() {
return polyfill;
};
defineProperties(getGlobal, {
getPolyfill,
implementation,
shim
});
module.exports = getGlobal;
}
});
// ../../node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js
var require_stringify = __commonJS({
"../../node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js"(exports, module) {
init_cjs_shims();
exports = module.exports = stringify;
exports.getSerialize = serializer;
function stringify(obj, replacer, spaces, cycleReplacer) {
return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces);
}
function serializer(replacer, cycleReplacer) {
var stack = [], keys = [];
return cycleReplacer == null && (cycleReplacer = function(key, value) {
return stack[0] === value ? "[Circular ~]" : "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
}), function(key, value) {
if (stack.length > 0) {
var thisPos = stack.indexOf(this);
~thisPos ? stack.splice(thisPos + 1) : stack.push(this), ~thisPos ? keys.splice(thisPos, 1 / 0, key) : keys.push(key), ~stack.indexOf(value) && (value = cycleReplacer.call(this, key, value));
} else stack.push(value);
return replacer == null ? value : replacer.call(this, key, value);
};
}
}
});
// ../../node_modules/.pnpm/sprintf-js@1.1.3/node_modules/sprintf-js/src/sprintf.js
var require_sprintf = __commonJS({
"../../node_modules/.pnpm/sprintf-js@1.1.3/node_modules/sprintf-js/src/sprintf.js"(exports) {
init_cjs_shims();
(function() {
"use strict";
var re = {
not_string: /[^s]/,
not_bool: /[^t]/,
not_type: /[^T]/,
not_primitive: /[^v]/,
number: /[diefg]/,
numeric_arg: /[bcdiefguxX]/,
json: /[j]/,
not_json: /[^j]/,
text: /^[^\x25]+/,
modulo: /^\x25{2}/,
placeholder: /^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,
key: /^([a-z_][a-z_\d]*)/i,
key_access: /^\.([a-z_][a-z_\d]*)/i,
index_access: /^\[(\d+)\]/,
sign: /^[+-]/
};
function sprintf(key) {
return sprintf_format(s