@sanity/cli 3.52.3-upgrade-vite-v5.6 → 3.52.3

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.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- var fs$r = require("node:fs"), os$6 = require("node:os"), path$t = require("node:path"), chalk$4 = require("chalk"), loadEnv = require("./loadEnv.js"), nodeMachineId = require("node-machine-id"), require$$0$4 = require("path"), require$$1$2 = require("module"), require$$0$5 = require("fs"), telemetry = require("@sanity/telemetry"), childProcess$2 = require("node:child_process"), fs$q = require("node:fs/promises"), util$b = require("node:util"), require$$0$6 = require("os"), require$$0$a = require("url"), require$$1$3 = require("get-it"), require$$2$1 = require("get-it/middleware"), require$$0$7 = require("constants"), require$$0$8 = require("stream"), require$$0$9 = require("util"), require$$5$1 = require("assert"), require$$3$1 = require("events"), require$$6$1 = require("http"), semver$2 = require("semver"), pkgDir = require("pkg-dir"), client$1 = require("@sanity/client"), require$$3$2 = require("crypto"), require$$0$b = require("child_process"), require$$0$c = require("fs/promises"), fs$s = require("@sanity/util/fs"), decompress = require("decompress"), validateNpmPackageName = require("validate-npm-package-name"), getCliConfig = require("./getCliConfig.js"), require$$0$d = require("buffer"), silverFleece = require("silver-fleece"), journeyConfig = require("./journeyConfig.js"), http$1 = require("node:http"), traverse = require("@babel/traverse"), require$$0$e = require("readline"), require$$0$f = require("tty");
2
+ var fs$p = require("node:fs"), os$6 = require("node:os"), path$t = require("node:path"), chalk$4 = require("chalk"), loadEnv = require("./loadEnv.js"), nodeMachineId = require("node-machine-id"), require$$0$4 = require("path"), require$$1$2 = require("module"), require$$0$5 = require("fs"), telemetry = require("@sanity/telemetry"), childProcess$2 = require("node:child_process"), fs$o = require("node:fs/promises"), util$b = require("node:util"), require$$0$6 = require("os"), require$$0$a = require("url"), require$$1$3 = require("get-it"), require$$2$1 = require("get-it/middleware"), require$$0$7 = require("constants"), require$$0$8 = require("stream"), require$$0$9 = require("util"), require$$5$1 = require("assert"), require$$3$1 = require("events"), require$$6$1 = require("http"), semver$2 = require("semver"), pkgDir = require("pkg-dir"), client$1 = require("@sanity/client"), require$$3$2 = require("crypto"), require$$0$b = require("child_process"), require$$0$c = require("fs/promises"), fs$q = require("@sanity/util/fs"), decompress = require("decompress"), validateNpmPackageName = require("validate-npm-package-name"), getCliConfig = require("./getCliConfig.js"), require$$0$d = require("buffer"), silverFleece = require("silver-fleece"), journeyConfig = require("./journeyConfig.js"), http$1 = require("node:http"), traverse = require("@babel/traverse"), require$$0$e = require("readline"), require$$0$f = require("tty");
3
3
  function _interopDefaultCompat(e) {
4
4
  return e && typeof e == "object" && "default" in e ? e : { default: e };
5
5
  }
@@ -18,14 +18,14 @@ function _mergeNamespaces(n, m) {
18
18
  });
19
19
  }), Object.freeze(n);
20
20
  }
21
- var fs__default = /* @__PURE__ */ _interopDefaultCompat(fs$r), os__default = /* @__PURE__ */ _interopDefaultCompat(os$6), path__default = /* @__PURE__ */ _interopDefaultCompat(path$t), chalk__default = /* @__PURE__ */ _interopDefaultCompat(chalk$4), require$$0__default = /* @__PURE__ */ _interopDefaultCompat(require$$0$4), require$$1__default = /* @__PURE__ */ _interopDefaultCompat(require$$1$2), require$$0__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$0$5), childProcess__default = /* @__PURE__ */ _interopDefaultCompat(childProcess$2), fs__default$1 = /* @__PURE__ */ _interopDefaultCompat(fs$q), util__default = /* @__PURE__ */ _interopDefaultCompat(util$b), require$$0__default$2 = /* @__PURE__ */ _interopDefaultCompat(require$$0$6), require$$0__default$6 = /* @__PURE__ */ _interopDefaultCompat(require$$0$a), require$$1__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$1$3), require$$2__default = /* @__PURE__ */ _interopDefaultCompat(require$$2$1), require$$0__default$3 = /* @__PURE__ */ _interopDefaultCompat(require$$0$7), require$$0__default$4 = /* @__PURE__ */ _interopDefaultCompat(require$$0$8), require$$0__default$5 = /* @__PURE__ */ _interopDefaultCompat(require$$0$9), require$$5__default = /* @__PURE__ */ _interopDefaultCompat(require$$5$1), require$$3__default = /* @__PURE__ */ _interopDefaultCompat(require$$3$1), require$$6__default = /* @__PURE__ */ _interopDefaultCompat(require$$6$1), semver__default = /* @__PURE__ */ _interopDefaultCompat(semver$2), pkgDir__default = /* @__PURE__ */ _interopDefaultCompat(pkgDir), require$$3__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$3$2), require$$0__default$7 = /* @__PURE__ */ _interopDefaultCompat(require$$0$b), require$$0__default$8 = /* @__PURE__ */ _interopDefaultCompat(require$$0$c), decompress__default = /* @__PURE__ */ _interopDefaultCompat(decompress), validateNpmPackageName__default = /* @__PURE__ */ _interopDefaultCompat(validateNpmPackageName), require$$0__default$9 = /* @__PURE__ */ _interopDefaultCompat(require$$0$d), http__default = /* @__PURE__ */ _interopDefaultCompat(http$1), traverse__default = /* @__PURE__ */ _interopDefaultCompat(traverse), require$$0__default$a = /* @__PURE__ */ _interopDefaultCompat(require$$0$e), require$$0__default$b = /* @__PURE__ */ _interopDefaultCompat(require$$0$f), resolveFrom$2 = { exports: {} };
22
- const path$s = require$$0__default.default, Module = require$$1__default.default, fs$p = require$$0__default$1.default, resolveFrom = (fromDirectory, moduleId, silent) => {
21
+ var fs__default = /* @__PURE__ */ _interopDefaultCompat(fs$p), os__default = /* @__PURE__ */ _interopDefaultCompat(os$6), path__default = /* @__PURE__ */ _interopDefaultCompat(path$t), chalk__default = /* @__PURE__ */ _interopDefaultCompat(chalk$4), require$$0__default = /* @__PURE__ */ _interopDefaultCompat(require$$0$4), require$$1__default = /* @__PURE__ */ _interopDefaultCompat(require$$1$2), require$$0__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$0$5), childProcess__default = /* @__PURE__ */ _interopDefaultCompat(childProcess$2), fs__default$1 = /* @__PURE__ */ _interopDefaultCompat(fs$o), util__default = /* @__PURE__ */ _interopDefaultCompat(util$b), require$$0__default$2 = /* @__PURE__ */ _interopDefaultCompat(require$$0$6), require$$0__default$6 = /* @__PURE__ */ _interopDefaultCompat(require$$0$a), require$$1__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$1$3), require$$2__default = /* @__PURE__ */ _interopDefaultCompat(require$$2$1), require$$0__default$3 = /* @__PURE__ */ _interopDefaultCompat(require$$0$7), require$$0__default$4 = /* @__PURE__ */ _interopDefaultCompat(require$$0$8), require$$0__default$5 = /* @__PURE__ */ _interopDefaultCompat(require$$0$9), require$$5__default = /* @__PURE__ */ _interopDefaultCompat(require$$5$1), require$$3__default = /* @__PURE__ */ _interopDefaultCompat(require$$3$1), require$$6__default = /* @__PURE__ */ _interopDefaultCompat(require$$6$1), semver__default = /* @__PURE__ */ _interopDefaultCompat(semver$2), pkgDir__default = /* @__PURE__ */ _interopDefaultCompat(pkgDir), require$$3__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$3$2), require$$0__default$7 = /* @__PURE__ */ _interopDefaultCompat(require$$0$b), require$$0__default$8 = /* @__PURE__ */ _interopDefaultCompat(require$$0$c), decompress__default = /* @__PURE__ */ _interopDefaultCompat(decompress), validateNpmPackageName__default = /* @__PURE__ */ _interopDefaultCompat(validateNpmPackageName), require$$0__default$9 = /* @__PURE__ */ _interopDefaultCompat(require$$0$d), http__default = /* @__PURE__ */ _interopDefaultCompat(http$1), traverse__default = /* @__PURE__ */ _interopDefaultCompat(traverse), require$$0__default$a = /* @__PURE__ */ _interopDefaultCompat(require$$0$e), require$$0__default$b = /* @__PURE__ */ _interopDefaultCompat(require$$0$f), resolveFrom$2 = { exports: {} };
22
+ const path$s = require$$0__default.default, Module = require$$1__default.default, fs$n = require$$0__default$1.default, resolveFrom = (fromDirectory, moduleId, silent) => {
23
23
  if (typeof fromDirectory != "string")
24
24
  throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDirectory}\``);
25
25
  if (typeof moduleId != "string")
26
26
  throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
27
27
  try {
28
- fromDirectory = fs$p.realpathSync(fromDirectory);
28
+ fromDirectory = fs$n.realpathSync(fromDirectory);
29
29
  } catch (error2) {
30
30
  if (error2.code === "ENOENT")
31
31
  fromDirectory = path$s.resolve(fromDirectory);
@@ -2454,7 +2454,7 @@ var lodash = { exports: {} };
2454
2454
  function reverse(array2) {
2455
2455
  return array2 == null ? array2 : nativeReverse.call(array2);
2456
2456
  }
2457
- function slice3(array2, start, end2) {
2457
+ function slice2(array2, start, end2) {
2458
2458
  var length = array2 == null ? 0 : array2.length;
2459
2459
  return length ? (end2 && typeof end2 != "number" && isIterateeCall(array2, start, end2) ? (start = 0, end2 = length) : (start = start == null ? 0 : toInteger(start), end2 = end2 === undefined$1 ? length : toInteger(end2)), baseSlice(array2, start, end2)) : [];
2460
2460
  }
@@ -3627,7 +3627,7 @@ function print() { __p += __j.call(arguments, '') }
3627
3627
  function sumBy(array2, iteratee2) {
3628
3628
  return array2 && array2.length ? baseSum(array2, getIteratee(iteratee2, 2)) : 0;
3629
3629
  }
3630
- return lodash2.after = after, lodash2.ary = ary, lodash2.assign = assign2, lodash2.assignIn = assignIn, lodash2.assignInWith = assignInWith, lodash2.assignWith = assignWith, lodash2.at = at, lodash2.before = before, lodash2.bind = bind, lodash2.bindAll = bindAll, lodash2.bindKey = bindKey, lodash2.castArray = castArray, lodash2.chain = chain, lodash2.chunk = chunk, lodash2.compact = compact, lodash2.concat = concat2, lodash2.cond = cond, lodash2.conforms = conforms, lodash2.constant = constant, lodash2.countBy = countBy, lodash2.create = create2, lodash2.curry = curry, lodash2.curryRight = curryRight, lodash2.debounce = debounce2, lodash2.defaults = defaults2, lodash2.defaultsDeep = defaultsDeep, lodash2.defer = defer2, lodash2.delay = delay2, lodash2.difference = difference, lodash2.differenceBy = differenceBy, lodash2.differenceWith = differenceWith, lodash2.drop = drop, lodash2.dropRight = dropRight, lodash2.dropRightWhile = dropRightWhile, lodash2.dropWhile = dropWhile, lodash2.fill = fill2, lodash2.filter = filter2, lodash2.flatMap = flatMap2, lodash2.flatMapDeep = flatMapDeep, lodash2.flatMapDepth = flatMapDepth, lodash2.flatten = flatten, lodash2.flattenDeep = flattenDeep, lodash2.flattenDepth = flattenDepth, lodash2.flip = flip2, lodash2.flow = flow2, lodash2.flowRight = flowRight, lodash2.fromPairs = fromPairs, lodash2.functions = functions, lodash2.functionsIn = functionsIn, lodash2.groupBy = groupBy2, lodash2.initial = initial, lodash2.intersection = intersection, lodash2.intersectionBy = intersectionBy, lodash2.intersectionWith = intersectionWith, lodash2.invert = invert, lodash2.invertBy = invertBy, lodash2.invokeMap = invokeMap, lodash2.iteratee = iteratee, lodash2.keyBy = keyBy, lodash2.keys = keys, lodash2.keysIn = keysIn, lodash2.map = map2, lodash2.mapKeys = mapKeys, lodash2.mapValues = mapValues, lodash2.matches = matches2, lodash2.matchesProperty = matchesProperty, lodash2.memoize = memoize, lodash2.merge = merge2, lodash2.mergeWith = mergeWith, lodash2.method = method, lodash2.methodOf = methodOf, lodash2.mixin = mixin, lodash2.negate = negate, lodash2.nthArg = nthArg, lodash2.omit = omit, lodash2.omitBy = omitBy, lodash2.once = once2, lodash2.orderBy = orderBy, lodash2.over = over, lodash2.overArgs = overArgs, lodash2.overEvery = overEvery, lodash2.overSome = overSome, lodash2.partial = partial, lodash2.partialRight = partialRight, lodash2.partition = partition2, lodash2.pick = pick, lodash2.pickBy = pickBy, lodash2.property = property, lodash2.propertyOf = propertyOf, lodash2.pull = pull, lodash2.pullAll = pullAll, lodash2.pullAllBy = pullAllBy, lodash2.pullAllWith = pullAllWith, lodash2.pullAt = pullAt, lodash2.range = range2, lodash2.rangeRight = rangeRight, lodash2.rearg = rearg, lodash2.reject = reject, lodash2.remove = remove, lodash2.rest = rest, lodash2.reverse = reverse, lodash2.sampleSize = sampleSize, lodash2.set = set2, lodash2.setWith = setWith, lodash2.shuffle = shuffle, lodash2.slice = slice3, lodash2.sortBy = sortBy, lodash2.sortedUniq = sortedUniq, lodash2.sortedUniqBy = sortedUniqBy, lodash2.split = split, lodash2.spread = spread, lodash2.tail = tail, lodash2.take = take2, lodash2.takeRight = takeRight, lodash2.takeRightWhile = takeRightWhile, lodash2.takeWhile = takeWhile2, lodash2.tap = tap2, lodash2.throttle = throttle2, lodash2.thru = thru, lodash2.toArray = toArray2, lodash2.toPairs = toPairs, lodash2.toPairsIn = toPairsIn, lodash2.toPath = toPath, lodash2.toPlainObject = toPlainObject, lodash2.transform = transform2, lodash2.unary = unary, lodash2.union = union, lodash2.unionBy = unionBy, lodash2.unionWith = unionWith, lodash2.uniq = uniq, lodash2.uniqBy = uniqBy, lodash2.uniqWith = uniqWith, lodash2.unset = unset, lodash2.unzip = unzip, lodash2.unzipWith = unzipWith, lodash2.update = update, lodash2.updateWith = updateWith, lodash2.values = values, lodash2.valuesIn = valuesIn, lodash2.without = without, lodash2.words = words, lodash2.wrap = wrap, lodash2.xor = xor, lodash2.xorBy = xorBy, lodash2.xorWith = xorWith, lodash2.zip = zip2, lodash2.zipObject = zipObject, lodash2.zipObjectDeep = zipObjectDeep, lodash2.zipWith = zipWith, lodash2.entries = toPairs, lodash2.entriesIn = toPairsIn, lodash2.extend = assignIn, lodash2.extendWith = assignInWith, mixin(lodash2, lodash2), lodash2.add = add, lodash2.attempt = attempt, lodash2.camelCase = camelCase2, lodash2.capitalize = capitalize, lodash2.ceil = ceil, lodash2.clamp = clamp, lodash2.clone = clone2, lodash2.cloneDeep = cloneDeep, lodash2.cloneDeepWith = cloneDeepWith, lodash2.cloneWith = cloneWith, lodash2.conformsTo = conformsTo, lodash2.deburr = deburr, lodash2.defaultTo = defaultTo, lodash2.divide = divide, lodash2.endsWith = endsWith, lodash2.eq = eq, lodash2.escape = escape2, lodash2.escapeRegExp = escapeRegExp, lodash2.every = every2, lodash2.find = find2, lodash2.findIndex = findIndex2, lodash2.findKey = findKey, lodash2.findLast = findLast, lodash2.findLastIndex = findLastIndex, lodash2.findLastKey = findLastKey, lodash2.floor = floor, lodash2.forEach = forEach, lodash2.forEachRight = forEachRight, lodash2.forIn = forIn, lodash2.forInRight = forInRight, lodash2.forOwn = forOwn, lodash2.forOwnRight = forOwnRight, lodash2.get = get2, lodash2.gt = gt, lodash2.gte = gte2, lodash2.has = has, lodash2.hasIn = hasIn, lodash2.head = head, lodash2.identity = identity2, lodash2.includes = includes, lodash2.indexOf = indexOf, lodash2.inRange = inRange, lodash2.invoke = invoke, lodash2.isArguments = isArguments, lodash2.isArray = isArray2, lodash2.isArrayBuffer = isArrayBuffer, lodash2.isArrayLike = isArrayLike2, lodash2.isArrayLikeObject = isArrayLikeObject, lodash2.isBoolean = isBoolean2, lodash2.isBuffer = isBuffer, lodash2.isDate = isDate2, lodash2.isElement = isElement, lodash2.isEmpty = isEmpty2, lodash2.isEqual = isEqual, lodash2.isEqualWith = isEqualWith, lodash2.isError = isError, lodash2.isFinite = isFinite2, lodash2.isFunction = isFunction2, lodash2.isInteger = isInteger2, lodash2.isLength = isLength, lodash2.isMap = isMap, lodash2.isMatch = isMatch, lodash2.isMatchWith = isMatchWith, lodash2.isNaN = isNaN2, lodash2.isNative = isNative, lodash2.isNil = isNil, lodash2.isNull = isNull2, lodash2.isNumber = isNumber2, lodash2.isObject = isObject3, lodash2.isObjectLike = isObjectLike2, lodash2.isPlainObject = isPlainObject3, lodash2.isRegExp = isRegExp2, lodash2.isSafeInteger = isSafeInteger, lodash2.isSet = isSet, lodash2.isString = isString, lodash2.isSymbol = isSymbol, lodash2.isTypedArray = isTypedArray2, lodash2.isUndefined = isUndefined2, lodash2.isWeakMap = isWeakMap, lodash2.isWeakSet = isWeakSet, lodash2.join = join2, lodash2.kebabCase = kebabCase, lodash2.last = last2, lodash2.lastIndexOf = lastIndexOf, lodash2.lowerCase = lowerCase, lodash2.lowerFirst = lowerFirst, lodash2.lt = lt, lodash2.lte = lte2, lodash2.max = max2, lodash2.maxBy = maxBy, lodash2.mean = mean, lodash2.meanBy = meanBy, lodash2.min = min2, lodash2.minBy = minBy, lodash2.stubArray = stubArray, lodash2.stubFalse = stubFalse, lodash2.stubObject = stubObject, lodash2.stubString = stubString, lodash2.stubTrue = stubTrue, lodash2.multiply = multiply, lodash2.nth = nth, lodash2.noConflict = noConflict, lodash2.noop = noop2, lodash2.now = now, lodash2.pad = pad2, lodash2.padEnd = padEnd, lodash2.padStart = padStart2, lodash2.parseInt = parseInt2, lodash2.random = random, lodash2.reduce = reduce2, lodash2.reduceRight = reduceRight, lodash2.repeat = repeat2, lodash2.replace = replace, lodash2.result = result, lodash2.round = round2, lodash2.runInContext = runInContext2, lodash2.sample = sample2, lodash2.size = size, lodash2.snakeCase = snakeCase, lodash2.some = some, lodash2.sortedIndex = sortedIndex, lodash2.sortedIndexBy = sortedIndexBy, lodash2.sortedIndexOf = sortedIndexOf, lodash2.sortedLastIndex = sortedLastIndex, lodash2.sortedLastIndexBy = sortedLastIndexBy, lodash2.sortedLastIndexOf = sortedLastIndexOf, lodash2.startCase = startCase, lodash2.startsWith = startsWith, lodash2.subtract = subtract, lodash2.sum = sum, lodash2.sumBy = sumBy, lodash2.template = template, lodash2.times = times, lodash2.toFinite = toFinite, lodash2.toInteger = toInteger, lodash2.toLength = toLength, lodash2.toLower = toLower, lodash2.toNumber = toNumber, lodash2.toSafeInteger = toSafeInteger, lodash2.toString = toString8, lodash2.toUpper = toUpper, lodash2.trim = trim, lodash2.trimEnd = trimEnd, lodash2.trimStart = trimStart, lodash2.truncate = truncate, lodash2.unescape = unescape, lodash2.uniqueId = uniqueId, lodash2.upperCase = upperCase, lodash2.upperFirst = upperFirst, lodash2.each = forEach, lodash2.eachRight = forEachRight, lodash2.first = head, mixin(lodash2, function() {
3630
+ return lodash2.after = after, lodash2.ary = ary, lodash2.assign = assign2, lodash2.assignIn = assignIn, lodash2.assignInWith = assignInWith, lodash2.assignWith = assignWith, lodash2.at = at, lodash2.before = before, lodash2.bind = bind, lodash2.bindAll = bindAll, lodash2.bindKey = bindKey, lodash2.castArray = castArray, lodash2.chain = chain, lodash2.chunk = chunk, lodash2.compact = compact, lodash2.concat = concat2, lodash2.cond = cond, lodash2.conforms = conforms, lodash2.constant = constant, lodash2.countBy = countBy, lodash2.create = create2, lodash2.curry = curry, lodash2.curryRight = curryRight, lodash2.debounce = debounce2, lodash2.defaults = defaults2, lodash2.defaultsDeep = defaultsDeep, lodash2.defer = defer2, lodash2.delay = delay2, lodash2.difference = difference, lodash2.differenceBy = differenceBy, lodash2.differenceWith = differenceWith, lodash2.drop = drop, lodash2.dropRight = dropRight, lodash2.dropRightWhile = dropRightWhile, lodash2.dropWhile = dropWhile, lodash2.fill = fill2, lodash2.filter = filter2, lodash2.flatMap = flatMap2, lodash2.flatMapDeep = flatMapDeep, lodash2.flatMapDepth = flatMapDepth, lodash2.flatten = flatten, lodash2.flattenDeep = flattenDeep, lodash2.flattenDepth = flattenDepth, lodash2.flip = flip2, lodash2.flow = flow2, lodash2.flowRight = flowRight, lodash2.fromPairs = fromPairs, lodash2.functions = functions, lodash2.functionsIn = functionsIn, lodash2.groupBy = groupBy2, lodash2.initial = initial, lodash2.intersection = intersection, lodash2.intersectionBy = intersectionBy, lodash2.intersectionWith = intersectionWith, lodash2.invert = invert, lodash2.invertBy = invertBy, lodash2.invokeMap = invokeMap, lodash2.iteratee = iteratee, lodash2.keyBy = keyBy, lodash2.keys = keys, lodash2.keysIn = keysIn, lodash2.map = map2, lodash2.mapKeys = mapKeys, lodash2.mapValues = mapValues, lodash2.matches = matches2, lodash2.matchesProperty = matchesProperty, lodash2.memoize = memoize, lodash2.merge = merge2, lodash2.mergeWith = mergeWith, lodash2.method = method, lodash2.methodOf = methodOf, lodash2.mixin = mixin, lodash2.negate = negate, lodash2.nthArg = nthArg, lodash2.omit = omit, lodash2.omitBy = omitBy, lodash2.once = once2, lodash2.orderBy = orderBy, lodash2.over = over, lodash2.overArgs = overArgs, lodash2.overEvery = overEvery, lodash2.overSome = overSome, lodash2.partial = partial, lodash2.partialRight = partialRight, lodash2.partition = partition2, lodash2.pick = pick, lodash2.pickBy = pickBy, lodash2.property = property, lodash2.propertyOf = propertyOf, lodash2.pull = pull, lodash2.pullAll = pullAll, lodash2.pullAllBy = pullAllBy, lodash2.pullAllWith = pullAllWith, lodash2.pullAt = pullAt, lodash2.range = range2, lodash2.rangeRight = rangeRight, lodash2.rearg = rearg, lodash2.reject = reject, lodash2.remove = remove, lodash2.rest = rest, lodash2.reverse = reverse, lodash2.sampleSize = sampleSize, lodash2.set = set2, lodash2.setWith = setWith, lodash2.shuffle = shuffle, lodash2.slice = slice2, lodash2.sortBy = sortBy, lodash2.sortedUniq = sortedUniq, lodash2.sortedUniqBy = sortedUniqBy, lodash2.split = split, lodash2.spread = spread, lodash2.tail = tail, lodash2.take = take2, lodash2.takeRight = takeRight, lodash2.takeRightWhile = takeRightWhile, lodash2.takeWhile = takeWhile2, lodash2.tap = tap2, lodash2.throttle = throttle2, lodash2.thru = thru, lodash2.toArray = toArray2, lodash2.toPairs = toPairs, lodash2.toPairsIn = toPairsIn, lodash2.toPath = toPath, lodash2.toPlainObject = toPlainObject, lodash2.transform = transform2, lodash2.unary = unary, lodash2.union = union, lodash2.unionBy = unionBy, lodash2.unionWith = unionWith, lodash2.uniq = uniq, lodash2.uniqBy = uniqBy, lodash2.uniqWith = uniqWith, lodash2.unset = unset, lodash2.unzip = unzip, lodash2.unzipWith = unzipWith, lodash2.update = update, lodash2.updateWith = updateWith, lodash2.values = values, lodash2.valuesIn = valuesIn, lodash2.without = without, lodash2.words = words, lodash2.wrap = wrap, lodash2.xor = xor, lodash2.xorBy = xorBy, lodash2.xorWith = xorWith, lodash2.zip = zip2, lodash2.zipObject = zipObject, lodash2.zipObjectDeep = zipObjectDeep, lodash2.zipWith = zipWith, lodash2.entries = toPairs, lodash2.entriesIn = toPairsIn, lodash2.extend = assignIn, lodash2.extendWith = assignInWith, mixin(lodash2, lodash2), lodash2.add = add, lodash2.attempt = attempt, lodash2.camelCase = camelCase2, lodash2.capitalize = capitalize, lodash2.ceil = ceil, lodash2.clamp = clamp, lodash2.clone = clone2, lodash2.cloneDeep = cloneDeep, lodash2.cloneDeepWith = cloneDeepWith, lodash2.cloneWith = cloneWith, lodash2.conformsTo = conformsTo, lodash2.deburr = deburr, lodash2.defaultTo = defaultTo, lodash2.divide = divide, lodash2.endsWith = endsWith, lodash2.eq = eq, lodash2.escape = escape2, lodash2.escapeRegExp = escapeRegExp, lodash2.every = every2, lodash2.find = find2, lodash2.findIndex = findIndex2, lodash2.findKey = findKey, lodash2.findLast = findLast, lodash2.findLastIndex = findLastIndex, lodash2.findLastKey = findLastKey, lodash2.floor = floor, lodash2.forEach = forEach, lodash2.forEachRight = forEachRight, lodash2.forIn = forIn, lodash2.forInRight = forInRight, lodash2.forOwn = forOwn, lodash2.forOwnRight = forOwnRight, lodash2.get = get2, lodash2.gt = gt, lodash2.gte = gte2, lodash2.has = has, lodash2.hasIn = hasIn, lodash2.head = head, lodash2.identity = identity2, lodash2.includes = includes, lodash2.indexOf = indexOf, lodash2.inRange = inRange, lodash2.invoke = invoke, lodash2.isArguments = isArguments, lodash2.isArray = isArray2, lodash2.isArrayBuffer = isArrayBuffer, lodash2.isArrayLike = isArrayLike2, lodash2.isArrayLikeObject = isArrayLikeObject, lodash2.isBoolean = isBoolean2, lodash2.isBuffer = isBuffer, lodash2.isDate = isDate2, lodash2.isElement = isElement, lodash2.isEmpty = isEmpty2, lodash2.isEqual = isEqual, lodash2.isEqualWith = isEqualWith, lodash2.isError = isError, lodash2.isFinite = isFinite2, lodash2.isFunction = isFunction2, lodash2.isInteger = isInteger2, lodash2.isLength = isLength, lodash2.isMap = isMap, lodash2.isMatch = isMatch, lodash2.isMatchWith = isMatchWith, lodash2.isNaN = isNaN2, lodash2.isNative = isNative, lodash2.isNil = isNil, lodash2.isNull = isNull2, lodash2.isNumber = isNumber2, lodash2.isObject = isObject3, lodash2.isObjectLike = isObjectLike2, lodash2.isPlainObject = isPlainObject3, lodash2.isRegExp = isRegExp2, lodash2.isSafeInteger = isSafeInteger, lodash2.isSet = isSet, lodash2.isString = isString, lodash2.isSymbol = isSymbol, lodash2.isTypedArray = isTypedArray2, lodash2.isUndefined = isUndefined2, lodash2.isWeakMap = isWeakMap, lodash2.isWeakSet = isWeakSet, lodash2.join = join2, lodash2.kebabCase = kebabCase, lodash2.last = last2, lodash2.lastIndexOf = lastIndexOf, lodash2.lowerCase = lowerCase, lodash2.lowerFirst = lowerFirst, lodash2.lt = lt, lodash2.lte = lte2, lodash2.max = max2, lodash2.maxBy = maxBy, lodash2.mean = mean, lodash2.meanBy = meanBy, lodash2.min = min2, lodash2.minBy = minBy, lodash2.stubArray = stubArray, lodash2.stubFalse = stubFalse, lodash2.stubObject = stubObject, lodash2.stubString = stubString, lodash2.stubTrue = stubTrue, lodash2.multiply = multiply, lodash2.nth = nth, lodash2.noConflict = noConflict, lodash2.noop = noop2, lodash2.now = now, lodash2.pad = pad2, lodash2.padEnd = padEnd, lodash2.padStart = padStart2, lodash2.parseInt = parseInt2, lodash2.random = random, lodash2.reduce = reduce2, lodash2.reduceRight = reduceRight, lodash2.repeat = repeat2, lodash2.replace = replace, lodash2.result = result, lodash2.round = round2, lodash2.runInContext = runInContext2, lodash2.sample = sample2, lodash2.size = size, lodash2.snakeCase = snakeCase, lodash2.some = some, lodash2.sortedIndex = sortedIndex, lodash2.sortedIndexBy = sortedIndexBy, lodash2.sortedIndexOf = sortedIndexOf, lodash2.sortedLastIndex = sortedLastIndex, lodash2.sortedLastIndexBy = sortedLastIndexBy, lodash2.sortedLastIndexOf = sortedLastIndexOf, lodash2.startCase = startCase, lodash2.startsWith = startsWith, lodash2.subtract = subtract, lodash2.sum = sum, lodash2.sumBy = sumBy, lodash2.template = template, lodash2.times = times, lodash2.toFinite = toFinite, lodash2.toInteger = toInteger, lodash2.toLength = toLength, lodash2.toLower = toLower, lodash2.toNumber = toNumber, lodash2.toSafeInteger = toSafeInteger, lodash2.toString = toString8, lodash2.toUpper = toUpper, lodash2.trim = trim, lodash2.trimEnd = trimEnd, lodash2.trimStart = trimStart, lodash2.truncate = truncate, lodash2.unescape = unescape, lodash2.uniqueId = uniqueId, lodash2.upperCase = upperCase, lodash2.upperFirst = upperFirst, lodash2.each = forEach, lodash2.eachRight = forEachRight, lodash2.first = head, mixin(lodash2, function() {
3631
3631
  var source2 = {};
3632
3632
  return baseForOwn(lodash2, function(func, methodName) {
3633
3633
  hasOwnProperty2.call(lodash2.prototype, methodName) || (source2[methodName] = func);
@@ -3774,7 +3774,7 @@ var semverCompare = function(a, b) {
3774
3774
  return 0;
3775
3775
  }, semverCompare$1 = /* @__PURE__ */ loadEnv.getDefaultExportFromCjs(semverCompare);
3776
3776
  async function readJson(filePath) {
3777
- const content = await fs$q.readFile(filePath, "utf8");
3777
+ const content = await fs$o.readFile(filePath, "utf8");
3778
3778
  return JSON.parse(content);
3779
3779
  }
3780
3780
  const purpose = "Transform react-icons v2 imports to v3 form", description$1 = `
@@ -4084,7 +4084,7 @@ var stripJsonComments$1 = function(str2, opts) {
4084
4084
  }
4085
4085
  }
4086
4086
  return ret + (insideComment ? strip(str2.substr(offset)) : str2.substr(offset));
4087
- }, fs$o = require$$0__default$1.default, ini$4 = ini$5, path$r = require$$0__default.default, stripJsonComments = stripJsonComments$1, parse$e = utils$b.parse = function(content) {
4087
+ }, fs$m = require$$0__default$1.default, ini$4 = ini$5, path$r = require$$0__default.default, stripJsonComments = stripJsonComments$1, parse$e = utils$b.parse = function(content) {
4088
4088
  return /^\s*{/.test(content) ? JSON.parse(stripJsonComments(content)) : ini$4.parse(content);
4089
4089
  }, file = utils$b.file = function() {
4090
4090
  var args = [].slice.call(arguments).filter(function(arg) {
@@ -4095,7 +4095,7 @@ var stripJsonComments$1 = function(str2, opts) {
4095
4095
  return;
4096
4096
  var file2 = path$r.join.apply(null, args);
4097
4097
  try {
4098
- return fs$o.readFileSync(file2, "utf-8");
4098
+ return fs$m.readFileSync(file2, "utf-8");
4099
4099
  } catch {
4100
4100
  return;
4101
4101
  }
@@ -4123,7 +4123,7 @@ utils$b.find = function() {
4123
4123
  function find2(start, rel2) {
4124
4124
  var file2 = path$r.join(start, rel2);
4125
4125
  try {
4126
- return fs$o.statSync(file2), file2;
4126
+ return fs$m.statSync(file2), file2;
4127
4127
  } catch {
4128
4128
  if (path$r.dirname(start) !== start)
4129
4129
  return find2(path$r.dirname(start), rel2);
@@ -4610,7 +4610,7 @@ function clone$5(obj) {
4610
4610
  Object.defineProperty(copy3, key2, Object.getOwnPropertyDescriptor(obj, key2));
4611
4611
  }), copy3;
4612
4612
  }
4613
- var fs$n = require$$0__default$1.default, polyfills$2 = polyfills$3, legacy$2 = legacyStreams$1, clone$4 = clone_1$1, util$a = require$$0__default$5.default, gracefulQueue$1, previousSymbol$1;
4613
+ var fs$l = require$$0__default$1.default, polyfills$2 = polyfills$3, legacy$2 = legacyStreams$1, clone$4 = clone_1$1, util$a = require$$0__default$5.default, gracefulQueue$1, previousSymbol$1;
4614
4614
  typeof Symbol == "function" && typeof Symbol.for == "function" ? (gracefulQueue$1 = Symbol.for("graceful-fs.queue"), previousSymbol$1 = Symbol.for("graceful-fs.previous")) : (gracefulQueue$1 = "___graceful-fs.queue", previousSymbol$1 = "___graceful-fs.previous");
4615
4615
  function noop$4() {
4616
4616
  }
@@ -4627,31 +4627,31 @@ util$a.debuglog ? debug$4 = util$a.debuglog("gfs4") : /\bgfs4\b/i.test(process.e
4627
4627
  m = "GFS4: " + m.split(/\n/).join(`
4628
4628
  GFS4: `), console.error(m);
4629
4629
  });
4630
- if (!fs$n[gracefulQueue$1]) {
4630
+ if (!fs$l[gracefulQueue$1]) {
4631
4631
  var queue$2 = loadEnv.commonjsGlobal[gracefulQueue$1] || [];
4632
- publishQueue$1(fs$n, queue$2), fs$n.close = function(fs$close) {
4632
+ publishQueue$1(fs$l, queue$2), fs$l.close = function(fs$close) {
4633
4633
  function close(fd, cb) {
4634
- return fs$close.call(fs$n, fd, function(err) {
4634
+ return fs$close.call(fs$l, fd, function(err) {
4635
4635
  err || resetQueue$1(), typeof cb == "function" && cb.apply(this, arguments);
4636
4636
  });
4637
4637
  }
4638
4638
  return Object.defineProperty(close, previousSymbol$1, {
4639
4639
  value: fs$close
4640
4640
  }), close;
4641
- }(fs$n.close), fs$n.closeSync = function(fs$closeSync) {
4641
+ }(fs$l.close), fs$l.closeSync = function(fs$closeSync) {
4642
4642
  function closeSync(fd) {
4643
- fs$closeSync.apply(fs$n, arguments), resetQueue$1();
4643
+ fs$closeSync.apply(fs$l, arguments), resetQueue$1();
4644
4644
  }
4645
4645
  return Object.defineProperty(closeSync, previousSymbol$1, {
4646
4646
  value: fs$closeSync
4647
4647
  }), closeSync;
4648
- }(fs$n.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
4649
- debug$4(fs$n[gracefulQueue$1]), require$$5__default.default.equal(fs$n[gracefulQueue$1].length, 0);
4648
+ }(fs$l.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
4649
+ debug$4(fs$l[gracefulQueue$1]), require$$5__default.default.equal(fs$l[gracefulQueue$1].length, 0);
4650
4650
  });
4651
4651
  }
4652
- loadEnv.commonjsGlobal[gracefulQueue$1] || publishQueue$1(loadEnv.commonjsGlobal, fs$n[gracefulQueue$1]);
4653
- var gracefulFs$1 = patch$2(clone$4(fs$n));
4654
- process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$n.__patched && (gracefulFs$1 = patch$2(fs$n), fs$n.__patched = !0);
4652
+ loadEnv.commonjsGlobal[gracefulQueue$1] || publishQueue$1(loadEnv.commonjsGlobal, fs$l[gracefulQueue$1]);
4653
+ var gracefulFs$1 = patch$2(clone$4(fs$l));
4654
+ process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$l.__patched && (gracefulFs$1 = patch$2(fs$l), fs$l.__patched = !0);
4655
4655
  function patch$2(fs2) {
4656
4656
  polyfills$2(fs2), fs2.gracefulify = patch$2, fs2.createReadStream = createReadStream, fs2.createWriteStream = createWriteStream;
4657
4657
  var fs$readFile = fs2.readFile;
@@ -4812,17 +4812,17 @@ function patch$2(fs2) {
4812
4812
  return fs2;
4813
4813
  }
4814
4814
  function enqueue$1(elem) {
4815
- debug$4("ENQUEUE", elem[0].name, elem[1]), fs$n[gracefulQueue$1].push(elem), retry$3();
4815
+ debug$4("ENQUEUE", elem[0].name, elem[1]), fs$l[gracefulQueue$1].push(elem), retry$3();
4816
4816
  }
4817
4817
  var retryTimer$1;
4818
4818
  function resetQueue$1() {
4819
- for (var now = Date.now(), i2 = 0; i2 < fs$n[gracefulQueue$1].length; ++i2)
4820
- fs$n[gracefulQueue$1][i2].length > 2 && (fs$n[gracefulQueue$1][i2][3] = now, fs$n[gracefulQueue$1][i2][4] = now);
4819
+ for (var now = Date.now(), i2 = 0; i2 < fs$l[gracefulQueue$1].length; ++i2)
4820
+ fs$l[gracefulQueue$1][i2].length > 2 && (fs$l[gracefulQueue$1][i2][3] = now, fs$l[gracefulQueue$1][i2][4] = now);
4821
4821
  retry$3();
4822
4822
  }
4823
4823
  function retry$3() {
4824
- if (clearTimeout(retryTimer$1), retryTimer$1 = void 0, fs$n[gracefulQueue$1].length !== 0) {
4825
- var elem = fs$n[gracefulQueue$1].shift(), fn2 = elem[0], args = elem[1], err = elem[2], startTime = elem[3], lastTime = elem[4];
4824
+ if (clearTimeout(retryTimer$1), retryTimer$1 = void 0, fs$l[gracefulQueue$1].length !== 0) {
4825
+ var elem = fs$l[gracefulQueue$1].shift(), fn2 = elem[0], args = elem[1], err = elem[2], startTime = elem[3], lastTime = elem[4];
4826
4826
  if (startTime === void 0)
4827
4827
  debug$4("RETRY", fn2.name, args), fn2.apply(null, args);
4828
4828
  else if (Date.now() - startTime >= 6e4) {
@@ -4831,7 +4831,7 @@ function retry$3() {
4831
4831
  typeof cb == "function" && cb.call(null, err);
4832
4832
  } else {
4833
4833
  var sinceAttempt = Date.now() - lastTime, sinceStart = Math.max(lastTime - startTime, 1), desiredDelay = Math.min(sinceStart * 1.2, 100);
4834
- sinceAttempt >= desiredDelay ? (debug$4("RETRY", fn2.name, args), fn2.apply(null, args.concat([startTime]))) : fs$n[gracefulQueue$1].push(elem);
4834
+ sinceAttempt >= desiredDelay ? (debug$4("RETRY", fn2.name, args), fn2.apply(null, args.concat([startTime]))) : fs$l[gracefulQueue$1].push(elem);
4835
4835
  }
4836
4836
  retryTimer$1 === void 0 && (retryTimer$1 = setTimeout(retry$3, 0));
4837
4837
  }
@@ -4935,7 +4935,7 @@ ProtoList$1.prototype = {
4935
4935
  return ret;
4936
4936
  }
4937
4937
  };
4938
- var ProtoList = protoList, path$q = require$$0__default.default, fs$m = require$$0__default$1.default, ini$3 = ini$5, EE$1 = require$$3__default.default.EventEmitter, url$2 = require$$0__default$6.default, http = require$$6__default.default, exports$1 = configChain.exports = function() {
4938
+ var ProtoList = protoList, path$q = require$$0__default.default, fs$k = require$$0__default$1.default, ini$3 = ini$5, EE$1 = require$$3__default.default.EventEmitter, url$2 = require$$0__default$6.default, http = require$$6__default.default, exports$1 = configChain.exports = function() {
4939
4939
  for (var args = [].slice.call(arguments), conf2 = new ConfigChain$1(); args.length; ) {
4940
4940
  var a = args.shift();
4941
4941
  a && conf2.push(typeof a == "string" ? json$3(a) : a);
@@ -4947,7 +4947,7 @@ exports$1.find = function() {
4947
4947
  function find2(start, rel2) {
4948
4948
  var file2 = path$q.join(start, rel2);
4949
4949
  try {
4950
- return fs$m.statSync(file2), file2;
4950
+ return fs$k.statSync(file2), file2;
4951
4951
  } catch {
4952
4952
  if (path$q.dirname(start) !== start)
4953
4953
  return find2(path$q.dirname(start), rel2);
@@ -4978,7 +4978,7 @@ var parse$d = exports$1.parse = function(content, file2, type2) {
4978
4978
  return arg != null;
4979
4979
  }), file2 = path$q.join.apply(null, args), content;
4980
4980
  try {
4981
- content = fs$m.readFileSync(file2, "utf-8");
4981
+ content = fs$k.readFileSync(file2, "utf-8");
4982
4982
  } catch {
4983
4983
  return;
4984
4984
  }
@@ -5037,7 +5037,7 @@ ConfigChain$1.prototype.save = function(where, type2, cb) {
5037
5037
  }), this;
5038
5038
  }
5039
5039
  var type2 = type2 || target.type, data = target.data;
5040
- return target.type === "json" ? data = JSON.stringify(data) : data = ini$3.stringify(data), this._saving++, fs$m.writeFile(target.path, data, "utf8", function(er) {
5040
+ return target.type === "json" ? data = JSON.stringify(data) : data = ini$3.stringify(data), this._saving++, fs$k.writeFile(target.path, data, "utf8", function(er) {
5041
5041
  if (this._saving--, er)
5042
5042
  return cb ? cb(er) : this.emit("error", er);
5043
5043
  this._saving === 0 && (cb && cb(), this.emit("save"));
@@ -5046,7 +5046,7 @@ ConfigChain$1.prototype.save = function(where, type2, cb) {
5046
5046
  ConfigChain$1.prototype.addFile = function(file2, type2, name) {
5047
5047
  name = name || file2;
5048
5048
  var marker = { __source__: name };
5049
- return this.sources[name] = { path: file2, type: type2 }, this.push(marker), this._await(), fs$m.readFile(file2, "utf8", function(er, data) {
5049
+ return this.sources[name] = { path: file2, type: type2 }, this.push(marker), this._await(), fs$k.readFile(file2, "utf8", function(er, data) {
5050
5050
  er && this.emit("error", er), this.addString(data, file2, type2, marker);
5051
5051
  }.bind(this)), this;
5052
5052
  };
@@ -5132,7 +5132,7 @@ function getEnvValue(env, name) {
5132
5132
  return env_replace_1.envReplace;
5133
5133
  } });
5134
5134
  })(dist$3);
5135
- const fs$l = require$$0__default$1.default, path$p = require$$0__default.default, { envReplace } = dist$3, parseField = (types2, field, key2) => {
5135
+ const fs$j = require$$0__default$1.default, path$p = require$$0__default.default, { envReplace } = dist$3, parseField = (types2, field, key2) => {
5136
5136
  if (typeof field != "string")
5137
5137
  return field;
5138
5138
  const typeList = [].concat(types2[key2]), isPath = typeList.indexOf(path$p) !== -1, isBool = typeList.indexOf(Boolean) !== -1, isString = typeList.indexOf(String) !== -1, isNumber2 = typeList.indexOf(Number) !== -1;
@@ -5167,7 +5167,7 @@ const fs$l = require$$0__default$1.default, path$p = require$$0__default.default
5167
5167
  if (name2 === "/" || process.platform === "win32" && regex.test(name2))
5168
5168
  return original;
5169
5169
  try {
5170
- const files = fs$l.readdirSync(name2);
5170
+ const files = fs$j.readdirSync(name2);
5171
5171
  if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("pnpm-workspace.yaml"))
5172
5172
  return name2;
5173
5173
  const dirname = path$p.dirname(name2);
@@ -5318,7 +5318,7 @@ function requireTypes$1() {
5318
5318
  _exit: Boolean
5319
5319
  }, types$2;
5320
5320
  }
5321
- const { readCAFileSync } = dist$4, fs$k = require$$0__default$1.default, path$o = require$$0__default.default, { ConfigChain } = configChainExports, envKeyToSetting = envKeyToSetting$1, util$8 = util$9;
5321
+ const { readCAFileSync } = dist$4, fs$i = require$$0__default$1.default, path$o = require$$0__default.default, { ConfigChain } = configChainExports, envKeyToSetting = envKeyToSetting$1, util$8 = util$9;
5322
5322
  class Conf extends ConfigChain {
5323
5323
  // https://github.com/npm/cli/blob/latest/lib/config/core.js#L203-L217
5324
5324
  constructor(base2, types2) {
@@ -5340,7 +5340,7 @@ class Conf extends ConfigChain {
5340
5340
  const marker = { __source__: name };
5341
5341
  this.sources[name] = { path: file2, type: "ini" }, this.push(marker), this._await();
5342
5342
  try {
5343
- const contents = fs$k.readFileSync(file2, "utf8");
5343
+ const contents = fs$i.readFileSync(file2, "utf8");
5344
5344
  this.addString(contents, file2, "ini", marker);
5345
5345
  } catch (error2) {
5346
5346
  if (error2.code === "ENOENT")
@@ -5409,7 +5409,7 @@ class Conf extends ConfigChain {
5409
5409
  }
5410
5410
  const prefix = path$o.resolve(this.get("prefix"));
5411
5411
  try {
5412
- const stats = fs$k.statSync(prefix);
5412
+ const stats = fs$i.statSync(prefix);
5413
5413
  defConf.user = stats.uid;
5414
5414
  } catch (error2) {
5415
5415
  if (error2.code === "ENOENT")
@@ -5700,8 +5700,8 @@ async function getLatestVersion(pkgName, opts) {
5700
5700
  return options2.includeLatest ? { latest, inRange: data["dist-tags"][range2] } : data["dist-tags"][range2];
5701
5701
  if (data.versions[range2])
5702
5702
  return options2.includeLatest ? { latest, inRange: range2 } : range2;
5703
- const versions = Object.keys(data.versions), version2 = semver$1.maxSatisfying(versions, range2);
5704
- return version2 ? options2.includeLatest ? { latest, inRange: version2 } : version2 : options2.includeLatest ? { latest, inRange: void 0 } : void 0;
5703
+ const versions = Object.keys(data.versions), version = semver$1.maxSatisfying(versions, range2);
5704
+ return version ? options2.includeLatest ? { latest, inRange: version } : version : options2.includeLatest ? { latest, inRange: void 0 } : void 0;
5705
5705
  }
5706
5706
  getLatestVersion.request = httpRequest;
5707
5707
  var src = getLatestVersion, latestVersion = /* @__PURE__ */ loadEnv.getDefaultExportFromCjs(src);
@@ -5729,7 +5729,7 @@ function getLocalVersion(moduleId, workDir) {
5729
5729
  }
5730
5730
  function tryGetVersion(modulePath) {
5731
5731
  try {
5732
- const fileContent = fs$r.readFileSync(modulePath, "utf8");
5732
+ const fileContent = fs$p.readFileSync(modulePath, "utf8");
5733
5733
  return JSON.parse(fileContent).version;
5734
5734
  } catch {
5735
5735
  return;
@@ -5754,7 +5754,7 @@ async function findSanityModuleVersions(context, options2 = {}) {
5754
5754
  }
5755
5755
  function getLocalManifest(workDir) {
5756
5756
  try {
5757
- const fileContent = fs$r.readFileSync(path$t.join(workDir, "package.json"), "utf8");
5757
+ const fileContent = fs$p.readFileSync(path$t.join(workDir, "package.json"), "utf8");
5758
5758
  return JSON.parse(fileContent);
5759
5759
  } catch {
5760
5760
  return {};
@@ -5810,11 +5810,11 @@ async function tryFindLatestVersion(pkgName, range2) {
5810
5810
  return { latest: await latestVersion(pkgName), latestInRange: void 0 };
5811
5811
  }
5812
5812
  }
5813
- function isPinnedVersion(version2) {
5814
- return /^\d+\.\d+\.\d+/.test(version2);
5813
+ function isPinnedVersion(version) {
5814
+ return /^\d+\.\d+\.\d+/.test(version);
5815
5815
  }
5816
- function trimHash(version2) {
5817
- return version2.replace(/\+[a-z0-9]{8,}$/, "");
5816
+ function trimHash(version) {
5817
+ return version.replace(/\+[a-z0-9]{8,}$/, "");
5818
5818
  }
5819
5819
  const BASE_URL = "https://docs.sanity.io/help/";
5820
5820
  function generateHelpUrl(slug) {
@@ -6077,7 +6077,7 @@ function clone$3(obj) {
6077
6077
  Object.defineProperty(copy3, key2, Object.getOwnPropertyDescriptor(obj, key2));
6078
6078
  }), copy3;
6079
6079
  }
6080
- var fs$j = require$$0__default$1.default, polyfills = polyfills$1, legacy = legacyStreams, clone$2 = clone_1, util$7 = require$$0__default$5.default, gracefulQueue, previousSymbol;
6080
+ var fs$h = require$$0__default$1.default, polyfills = polyfills$1, legacy = legacyStreams, clone$2 = clone_1, util$7 = require$$0__default$5.default, gracefulQueue, previousSymbol;
6081
6081
  typeof Symbol == "function" && typeof Symbol.for == "function" ? (gracefulQueue = Symbol.for("graceful-fs.queue"), previousSymbol = Symbol.for("graceful-fs.previous")) : (gracefulQueue = "___graceful-fs.queue", previousSymbol = "___graceful-fs.previous");
6082
6082
  function noop$3() {
6083
6083
  }
@@ -6094,31 +6094,31 @@ util$7.debuglog ? debug$2 = util$7.debuglog("gfs4") : /\bgfs4\b/i.test(process.e
6094
6094
  m = "GFS4: " + m.split(/\n/).join(`
6095
6095
  GFS4: `), console.error(m);
6096
6096
  });
6097
- if (!fs$j[gracefulQueue]) {
6097
+ if (!fs$h[gracefulQueue]) {
6098
6098
  var queue$1 = loadEnv.commonjsGlobal[gracefulQueue] || [];
6099
- publishQueue(fs$j, queue$1), fs$j.close = function(fs$close) {
6099
+ publishQueue(fs$h, queue$1), fs$h.close = function(fs$close) {
6100
6100
  function close(fd, cb) {
6101
- return fs$close.call(fs$j, fd, function(err) {
6101
+ return fs$close.call(fs$h, fd, function(err) {
6102
6102
  err || resetQueue(), typeof cb == "function" && cb.apply(this, arguments);
6103
6103
  });
6104
6104
  }
6105
6105
  return Object.defineProperty(close, previousSymbol, {
6106
6106
  value: fs$close
6107
6107
  }), close;
6108
- }(fs$j.close), fs$j.closeSync = function(fs$closeSync) {
6108
+ }(fs$h.close), fs$h.closeSync = function(fs$closeSync) {
6109
6109
  function closeSync(fd) {
6110
- fs$closeSync.apply(fs$j, arguments), resetQueue();
6110
+ fs$closeSync.apply(fs$h, arguments), resetQueue();
6111
6111
  }
6112
6112
  return Object.defineProperty(closeSync, previousSymbol, {
6113
6113
  value: fs$closeSync
6114
6114
  }), closeSync;
6115
- }(fs$j.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
6116
- debug$2(fs$j[gracefulQueue]), require$$5__default.default.equal(fs$j[gracefulQueue].length, 0);
6115
+ }(fs$h.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
6116
+ debug$2(fs$h[gracefulQueue]), require$$5__default.default.equal(fs$h[gracefulQueue].length, 0);
6117
6117
  });
6118
6118
  }
6119
- loadEnv.commonjsGlobal[gracefulQueue] || publishQueue(loadEnv.commonjsGlobal, fs$j[gracefulQueue]);
6120
- var gracefulFs = patch(clone$2(fs$j));
6121
- process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$j.__patched && (gracefulFs = patch(fs$j), fs$j.__patched = !0);
6119
+ loadEnv.commonjsGlobal[gracefulQueue] || publishQueue(loadEnv.commonjsGlobal, fs$h[gracefulQueue]);
6120
+ var gracefulFs = patch(clone$2(fs$h));
6121
+ process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$h.__patched && (gracefulFs = patch(fs$h), fs$h.__patched = !0);
6122
6122
  function patch(fs2) {
6123
6123
  polyfills(fs2), fs2.gracefulify = patch, fs2.createReadStream = createReadStream, fs2.createWriteStream = createWriteStream;
6124
6124
  var fs$readFile = fs2.readFile;
@@ -6279,17 +6279,17 @@ function patch(fs2) {
6279
6279
  return fs2;
6280
6280
  }
6281
6281
  function enqueue(elem) {
6282
- debug$2("ENQUEUE", elem[0].name, elem[1]), fs$j[gracefulQueue].push(elem), retry$1();
6282
+ debug$2("ENQUEUE", elem[0].name, elem[1]), fs$h[gracefulQueue].push(elem), retry$1();
6283
6283
  }
6284
6284
  var retryTimer;
6285
6285
  function resetQueue() {
6286
- for (var now = Date.now(), i2 = 0; i2 < fs$j[gracefulQueue].length; ++i2)
6287
- fs$j[gracefulQueue][i2].length > 2 && (fs$j[gracefulQueue][i2][3] = now, fs$j[gracefulQueue][i2][4] = now);
6286
+ for (var now = Date.now(), i2 = 0; i2 < fs$h[gracefulQueue].length; ++i2)
6287
+ fs$h[gracefulQueue][i2].length > 2 && (fs$h[gracefulQueue][i2][3] = now, fs$h[gracefulQueue][i2][4] = now);
6288
6288
  retry$1();
6289
6289
  }
6290
6290
  function retry$1() {
6291
- if (clearTimeout(retryTimer), retryTimer = void 0, fs$j[gracefulQueue].length !== 0) {
6292
- var elem = fs$j[gracefulQueue].shift(), fn2 = elem[0], args = elem[1], err = elem[2], startTime = elem[3], lastTime = elem[4];
6291
+ if (clearTimeout(retryTimer), retryTimer = void 0, fs$h[gracefulQueue].length !== 0) {
6292
+ var elem = fs$h[gracefulQueue].shift(), fn2 = elem[0], args = elem[1], err = elem[2], startTime = elem[3], lastTime = elem[4];
6293
6293
  if (startTime === void 0)
6294
6294
  debug$2("RETRY", fn2.name, args), fn2.apply(null, args);
6295
6295
  else if (Date.now() - startTime >= 6e4) {
@@ -6298,13 +6298,13 @@ function retry$1() {
6298
6298
  typeof cb == "function" && cb.call(null, err);
6299
6299
  } else {
6300
6300
  var sinceAttempt = Date.now() - lastTime, sinceStart = Math.max(lastTime - startTime, 1), desiredDelay = Math.min(sinceStart * 1.2, 100);
6301
- sinceAttempt >= desiredDelay ? (debug$2("RETRY", fn2.name, args), fn2.apply(null, args.concat([startTime]))) : fs$j[gracefulQueue].push(elem);
6301
+ sinceAttempt >= desiredDelay ? (debug$2("RETRY", fn2.name, args), fn2.apply(null, args.concat([startTime]))) : fs$h[gracefulQueue].push(elem);
6302
6302
  }
6303
6303
  retryTimer === void 0 && (retryTimer = setTimeout(retry$1, 0));
6304
6304
  }
6305
6305
  }
6306
6306
  var makeDir$2 = { exports: {} };
6307
- const fs$i = require$$0__default$1.default, path$n = require$$0__default.default, { promisify: promisify$3 } = require$$0__default$5.default, semver = semver__default.default, useNativeRecursiveOption = semver.satisfies(process.version, ">=10.12.0"), checkPath = (pth) => {
6307
+ const fs$g = require$$0__default$1.default, path$n = require$$0__default.default, { promisify: promisify$3 } = require$$0__default$5.default, semver = semver__default.default, useNativeRecursiveOption = semver.satisfies(process.version, ">=10.12.0"), checkPath = (pth) => {
6308
6308
  if (process.platform === "win32" && /[<>:"|?*]/.test(pth.replace(path$n.parse(pth).root, ""))) {
6309
6309
  const error2 = new Error(`Path contains invalid characters: ${pth}`);
6310
6310
  throw error2.code = "EINVAL", error2;
@@ -6312,7 +6312,7 @@ const fs$i = require$$0__default$1.default, path$n = require$$0__default.default
6312
6312
  }, processOptions = (options2) => ({
6313
6313
  ...{
6314
6314
  mode: 511,
6315
- fs: fs$i
6315
+ fs: fs$g
6316
6316
  },
6317
6317
  ...options2
6318
6318
  }), permissionError$1 = (pth) => {
@@ -6321,7 +6321,7 @@ const fs$i = require$$0__default$1.default, path$n = require$$0__default.default
6321
6321
  }, makeDir$1 = async (input2, options2) => {
6322
6322
  checkPath(input2), options2 = processOptions(options2);
6323
6323
  const mkdir = promisify$3(options2.fs.mkdir), stat = promisify$3(options2.fs.stat);
6324
- if (useNativeRecursiveOption && options2.fs.mkdir === fs$i.mkdir) {
6324
+ if (useNativeRecursiveOption && options2.fs.mkdir === fs$g.mkdir) {
6325
6325
  const pth = path$n.resolve(input2);
6326
6326
  return await mkdir(pth, {
6327
6327
  mode: options2.mode,
@@ -6354,9 +6354,9 @@ const fs$i = require$$0__default$1.default, path$n = require$$0__default.default
6354
6354
  };
6355
6355
  makeDir$2.exports = makeDir$1;
6356
6356
  makeDir$2.exports.sync = (input2, options2) => {
6357
- if (checkPath(input2), options2 = processOptions(options2), useNativeRecursiveOption && options2.fs.mkdirSync === fs$i.mkdirSync) {
6357
+ if (checkPath(input2), options2 = processOptions(options2), useNativeRecursiveOption && options2.fs.mkdirSync === fs$g.mkdirSync) {
6358
6358
  const pth = path$n.resolve(input2);
6359
- return fs$i.mkdirSync(pth, {
6359
+ return fs$g.mkdirSync(pth, {
6360
6360
  mode: options2.mode,
6361
6361
  recursive: !0
6362
6362
  }), pth;
@@ -6572,7 +6572,7 @@ writeFileAtomic$1.exports = writeFile;
6572
6572
  writeFileAtomic$1.exports.sync = writeFileSync;
6573
6573
  writeFileAtomic$1.exports._getTmpname = getTmpname;
6574
6574
  writeFileAtomic$1.exports._cleanupOnExit = cleanupOnExit;
6575
- const fs$h = require$$0__default$1.default, MurmurHash3 = imurmurhashExports, onExit$1 = signalExitExports, path$m = require$$0__default.default, isTypedArray = isTypedarray, typedArrayToBuffer = typedarrayToBuffer, { promisify: promisify$2 } = require$$0__default$5.default, activeFiles = {}, threadId = function() {
6575
+ const fs$f = require$$0__default$1.default, MurmurHash3 = imurmurhashExports, onExit$1 = signalExitExports, path$m = require$$0__default.default, isTypedArray = isTypedarray, typedArrayToBuffer = typedarrayToBuffer, { promisify: promisify$2 } = require$$0__default$5.default, activeFiles = {}, threadId = function() {
6576
6576
  try {
6577
6577
  return require("worker_threads").threadId;
6578
6578
  } catch {
@@ -6586,7 +6586,7 @@ function getTmpname(filename) {
6586
6586
  function cleanupOnExit(tmpfile) {
6587
6587
  return () => {
6588
6588
  try {
6589
- fs$h.unlinkSync(typeof tmpfile == "function" ? tmpfile() : tmpfile);
6589
+ fs$f.unlinkSync(typeof tmpfile == "function" ? tmpfile() : tmpfile);
6590
6590
  } catch {
6591
6591
  }
6592
6592
  };
@@ -6605,25 +6605,25 @@ async function writeFileAsync(filename, data, options2 = {}) {
6605
6605
  const removeOnExitHandler = onExit$1(cleanupOnExit(() => tmpfile)), absoluteName = path$m.resolve(filename);
6606
6606
  try {
6607
6607
  await serializeActiveFile(absoluteName);
6608
- const truename = await promisify$2(fs$h.realpath)(filename).catch(() => filename);
6608
+ const truename = await promisify$2(fs$f.realpath)(filename).catch(() => filename);
6609
6609
  if (tmpfile = getTmpname(truename), !options2.mode || !options2.chown) {
6610
- const stats = await promisify$2(fs$h.stat)(truename).catch(() => {
6610
+ const stats = await promisify$2(fs$f.stat)(truename).catch(() => {
6611
6611
  });
6612
6612
  stats && (options2.mode == null && (options2.mode = stats.mode), options2.chown == null && process.getuid && (options2.chown = { uid: stats.uid, gid: stats.gid }));
6613
6613
  }
6614
- fd = await promisify$2(fs$h.open)(tmpfile, "w", options2.mode), options2.tmpfileCreated && await options2.tmpfileCreated(tmpfile), isTypedArray(data) && (data = typedArrayToBuffer(data)), Buffer.isBuffer(data) ? await promisify$2(fs$h.write)(fd, data, 0, data.length, 0) : data != null && await promisify$2(fs$h.write)(fd, String(data), 0, String(options2.encoding || "utf8")), options2.fsync !== !1 && await promisify$2(fs$h.fsync)(fd), await promisify$2(fs$h.close)(fd), fd = null, options2.chown && await promisify$2(fs$h.chown)(tmpfile, options2.chown.uid, options2.chown.gid).catch((err) => {
6614
+ fd = await promisify$2(fs$f.open)(tmpfile, "w", options2.mode), options2.tmpfileCreated && await options2.tmpfileCreated(tmpfile), isTypedArray(data) && (data = typedArrayToBuffer(data)), Buffer.isBuffer(data) ? await promisify$2(fs$f.write)(fd, data, 0, data.length, 0) : data != null && await promisify$2(fs$f.write)(fd, String(data), 0, String(options2.encoding || "utf8")), options2.fsync !== !1 && await promisify$2(fs$f.fsync)(fd), await promisify$2(fs$f.close)(fd), fd = null, options2.chown && await promisify$2(fs$f.chown)(tmpfile, options2.chown.uid, options2.chown.gid).catch((err) => {
6615
6615
  if (!isChownErrOk(err))
6616
6616
  throw err;
6617
- }), options2.mode && await promisify$2(fs$h.chmod)(tmpfile, options2.mode).catch((err) => {
6617
+ }), options2.mode && await promisify$2(fs$f.chmod)(tmpfile, options2.mode).catch((err) => {
6618
6618
  if (!isChownErrOk(err))
6619
6619
  throw err;
6620
- }), await promisify$2(fs$h.rename)(tmpfile, truename);
6620
+ }), await promisify$2(fs$f.rename)(tmpfile, truename);
6621
6621
  } finally {
6622
- fd && await promisify$2(fs$h.close)(fd).catch(
6622
+ fd && await promisify$2(fs$f.close)(fd).catch(
6623
6623
  /* istanbul ignore next */
6624
6624
  () => {
6625
6625
  }
6626
- ), removeOnExitHandler(), await promisify$2(fs$h.unlink)(tmpfile).catch(() => {
6626
+ ), removeOnExitHandler(), await promisify$2(fs$f.unlink)(tmpfile).catch(() => {
6627
6627
  }), activeFiles[absoluteName].shift(), activeFiles[absoluteName].length > 0 ? activeFiles[absoluteName][0]() : delete activeFiles[absoluteName];
6628
6628
  }
6629
6629
  }
@@ -6635,13 +6635,13 @@ function writeFile(filename, data, options2, callback) {
6635
6635
  function writeFileSync(filename, data, options2) {
6636
6636
  typeof options2 == "string" ? options2 = { encoding: options2 } : options2 || (options2 = {});
6637
6637
  try {
6638
- filename = fs$h.realpathSync(filename);
6638
+ filename = fs$f.realpathSync(filename);
6639
6639
  } catch {
6640
6640
  }
6641
6641
  const tmpfile = getTmpname(filename);
6642
6642
  if (!options2.mode || !options2.chown)
6643
6643
  try {
6644
- const stats = fs$h.statSync(filename);
6644
+ const stats = fs$f.statSync(filename);
6645
6645
  options2 = Object.assign({}, options2), options2.mode || (options2.mode = stats.mode), !options2.chown && process.getuid && (options2.chown = { uid: stats.uid, gid: stats.gid });
6646
6646
  } catch {
6647
6647
  }
@@ -6649,25 +6649,25 @@ function writeFileSync(filename, data, options2) {
6649
6649
  const cleanup = cleanupOnExit(tmpfile), removeOnExitHandler = onExit$1(cleanup);
6650
6650
  let threw = !0;
6651
6651
  try {
6652
- if (fd = fs$h.openSync(tmpfile, "w", options2.mode || 438), options2.tmpfileCreated && options2.tmpfileCreated(tmpfile), isTypedArray(data) && (data = typedArrayToBuffer(data)), Buffer.isBuffer(data) ? fs$h.writeSync(fd, data, 0, data.length, 0) : data != null && fs$h.writeSync(fd, String(data), 0, String(options2.encoding || "utf8")), options2.fsync !== !1 && fs$h.fsyncSync(fd), fs$h.closeSync(fd), fd = null, options2.chown)
6652
+ if (fd = fs$f.openSync(tmpfile, "w", options2.mode || 438), options2.tmpfileCreated && options2.tmpfileCreated(tmpfile), isTypedArray(data) && (data = typedArrayToBuffer(data)), Buffer.isBuffer(data) ? fs$f.writeSync(fd, data, 0, data.length, 0) : data != null && fs$f.writeSync(fd, String(data), 0, String(options2.encoding || "utf8")), options2.fsync !== !1 && fs$f.fsyncSync(fd), fs$f.closeSync(fd), fd = null, options2.chown)
6653
6653
  try {
6654
- fs$h.chownSync(tmpfile, options2.chown.uid, options2.chown.gid);
6654
+ fs$f.chownSync(tmpfile, options2.chown.uid, options2.chown.gid);
6655
6655
  } catch (err) {
6656
6656
  if (!isChownErrOk(err))
6657
6657
  throw err;
6658
6658
  }
6659
6659
  if (options2.mode)
6660
6660
  try {
6661
- fs$h.chmodSync(tmpfile, options2.mode);
6661
+ fs$f.chmodSync(tmpfile, options2.mode);
6662
6662
  } catch (err) {
6663
6663
  if (!isChownErrOk(err))
6664
6664
  throw err;
6665
6665
  }
6666
- fs$h.renameSync(tmpfile, filename), threw = !1;
6666
+ fs$f.renameSync(tmpfile, filename), threw = !1;
6667
6667
  } finally {
6668
6668
  if (fd)
6669
6669
  try {
6670
- fs$h.closeSync(fd);
6670
+ fs$f.closeSync(fd);
6671
6671
  } catch {
6672
6672
  }
6673
6673
  removeOnExitHandler(), threw && cleanup();
@@ -6756,7 +6756,7 @@ var cryptoRandomString$1 = (length) => {
6756
6756
  };
6757
6757
  const cryptoRandomString = cryptoRandomString$1;
6758
6758
  var uniqueString$1 = () => cryptoRandomString(32);
6759
- const path$l = require$$0__default.default, os$5 = require$$0__default$2.default, fs$g = gracefulFs, makeDir = makeDirExports, xdgBasedir = xdgBasedir$2, writeFileAtomic = writeFileAtomicExports, dotProp = dotProp$1, uniqueString = uniqueString$1, configDirectory = xdgBasedir.config || path$l.join(os$5.tmpdir(), uniqueString()), permissionError = "You don't have access to this file.", makeDirOptions = { mode: 448 }, writeFileOptions = { mode: 384 };
6759
+ const path$l = require$$0__default.default, os$5 = require$$0__default$2.default, fs$e = gracefulFs, makeDir = makeDirExports, xdgBasedir = xdgBasedir$2, writeFileAtomic = writeFileAtomicExports, dotProp = dotProp$1, uniqueString = uniqueString$1, configDirectory = xdgBasedir.config || path$l.join(os$5.tmpdir(), uniqueString()), permissionError = "You don't have access to this file.", makeDirOptions = { mode: 448 }, writeFileOptions = { mode: 384 };
6760
6760
  class Configstore {
6761
6761
  constructor(id, defaults2, options2 = {}) {
6762
6762
  const pathPrefix = options2.globalConfigPath ? path$l.join(id, "config.json") : path$l.join("configstore", `${id}.json`);
@@ -6767,7 +6767,7 @@ class Configstore {
6767
6767
  }
6768
6768
  get all() {
6769
6769
  try {
6770
- return JSON.parse(fs$g.readFileSync(this.path, "utf8"));
6770
+ return JSON.parse(fs$e.readFileSync(this.path, "utf8"));
6771
6771
  } catch (error2) {
6772
6772
  if (error2.code === "ENOENT")
6773
6773
  return {};
@@ -6868,8 +6868,8 @@ const printVersionResultCommand = async (args, context) => {
6868
6868
  function printResult(versions, print) {
6869
6869
  const { versionLength, formatName } = getFormatters(versions);
6870
6870
  versions.forEach((mod) => {
6871
- const version2 = lodashExports.padStart(mod.installed || "<missing>", versionLength), latest = mod.installed === mod.latest ? chalk__default.default.green("(up to date)") : `(latest: ${chalk__default.default.yellow(mod.latest)})`;
6872
- print(`${formatName(getDisplayName(mod))} ${version2} ${latest}`);
6871
+ const version = lodashExports.padStart(mod.installed || "<missing>", versionLength), latest = mod.installed === mod.latest ? chalk__default.default.green("(up to date)") : `(latest: ${chalk__default.default.yellow(mod.latest)})`;
6872
+ print(`${formatName(getDisplayName(mod))} ${version} ${latest}`);
6873
6873
  });
6874
6874
  }
6875
6875
  function getFormatters(versions) {
@@ -7001,30 +7001,30 @@ Examples
7001
7001
  action: printDebugInfo
7002
7002
  };
7003
7003
  var isWsl$2 = { exports: {} };
7004
- const fs$f = require$$0__default$1.default;
7004
+ const fs$d = require$$0__default$1.default;
7005
7005
  let isDocker$2;
7006
7006
  function hasDockerEnv() {
7007
7007
  try {
7008
- return fs$f.statSync("/.dockerenv"), !0;
7008
+ return fs$d.statSync("/.dockerenv"), !0;
7009
7009
  } catch {
7010
7010
  return !1;
7011
7011
  }
7012
7012
  }
7013
7013
  function hasDockerCGroup() {
7014
7014
  try {
7015
- return fs$f.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
7015
+ return fs$d.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
7016
7016
  } catch {
7017
7017
  return !1;
7018
7018
  }
7019
7019
  }
7020
7020
  var isDocker_1 = () => (isDocker$2 === void 0 && (isDocker$2 = hasDockerEnv() || hasDockerCGroup()), isDocker$2);
7021
- const os$4 = require$$0__default$2.default, fs$e = require$$0__default$1.default, isDocker$1 = isDocker_1, isWsl$1 = () => {
7021
+ const os$4 = require$$0__default$2.default, fs$c = require$$0__default$1.default, isDocker$1 = isDocker_1, isWsl$1 = () => {
7022
7022
  if (process.platform !== "linux")
7023
7023
  return !1;
7024
7024
  if (os$4.release().toLowerCase().includes("microsoft"))
7025
7025
  return !isDocker$1();
7026
7026
  try {
7027
- return fs$e.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isDocker$1() : !1;
7027
+ return fs$c.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isDocker$1() : !1;
7028
7028
  } catch {
7029
7029
  return !1;
7030
7030
  }
@@ -7044,9 +7044,9 @@ var isWslExports = isWsl$2.exports, defineLazyProp = (object, propertyName, fn2)
7044
7044
  }
7045
7045
  }), object;
7046
7046
  };
7047
- const path$k = require$$0__default.default, childProcess$1 = require$$0__default$7.default, { promises: fs$d, constants: fsConstants } = require$$0__default$1.default, isWsl = isWslExports, isDocker = isDocker_1, defineLazyProperty = defineLazyProp, localXdgOpenPath = path$k.join(__dirname, "xdg-open"), { platform: platform$1, arch } = process, hasContainerEnv = () => {
7047
+ const path$k = require$$0__default.default, childProcess$1 = require$$0__default$7.default, { promises: fs$b, constants: fsConstants } = require$$0__default$1.default, isWsl = isWslExports, isDocker = isDocker_1, defineLazyProperty = defineLazyProp, localXdgOpenPath = path$k.join(__dirname, "xdg-open"), { platform: platform$1, arch } = process, hasContainerEnv = () => {
7048
7048
  try {
7049
- return fs$d.statSync("/run/.containerenv"), !0;
7049
+ return fs$b.statSync("/run/.containerenv"), !0;
7050
7050
  } catch {
7051
7051
  return !1;
7052
7052
  }
@@ -7064,12 +7064,12 @@ const getWslDrivesMountPoint = /* @__PURE__ */ (() => {
7064
7064
  const configFilePath = "/etc/wsl.conf";
7065
7065
  let isConfigFileExists = !1;
7066
7066
  try {
7067
- await fs$d.access(configFilePath, fsConstants.F_OK), isConfigFileExists = !0;
7067
+ await fs$b.access(configFilePath, fsConstants.F_OK), isConfigFileExists = !0;
7068
7068
  } catch {
7069
7069
  }
7070
7070
  if (!isConfigFileExists)
7071
7071
  return defaultMountPoint;
7072
- const configContent = await fs$d.readFile(configFilePath, { encoding: "utf8" }), configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
7072
+ const configContent = await fs$b.readFile(configFilePath, { encoding: "utf8" }), configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
7073
7073
  return configMountPoint ? (mountPoint = configMountPoint.groups.mountPoint.trim(), mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`, mountPoint) : defaultMountPoint;
7074
7074
  };
7075
7075
  })(), pTryEach = async (array2, mapper) => {
@@ -7124,7 +7124,7 @@ const getWslDrivesMountPoint = /* @__PURE__ */ (() => {
7124
7124
  const isBundled = !__dirname || __dirname === "/";
7125
7125
  let exeLocalXdgOpen = !1;
7126
7126
  try {
7127
- await fs$d.access(localXdgOpenPath, fsConstants.X_OK), exeLocalXdgOpen = !0;
7127
+ await fs$b.access(localXdgOpenPath, fsConstants.X_OK), exeLocalXdgOpen = !0;
7128
7128
  } catch {
7129
7129
  }
7130
7130
  command2 = process.versions.electron || platform$1 === "android" || isBundled || !exeLocalXdgOpen ? "xdg-open" : localXdgOpenPath;
@@ -14755,151 +14755,155 @@ jsYaml$2.types = {
14755
14755
  jsYaml$2.safeLoad = renamed("safeLoad", "load");
14756
14756
  jsYaml$2.safeLoadAll = renamed("safeLoadAll", "loadAll");
14757
14757
  jsYaml$2.safeDump = renamed("safeDump", "dump");
14758
- var old$1 = {}, pathModule = require$$0__default.default, isWindows$3 = process.platform === "win32", fs$c = require$$0__default$1.default, DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
14759
- function rethrow() {
14760
- var callback;
14761
- if (DEBUG) {
14762
- var backtrace = new Error();
14763
- callback = debugCallback;
14764
- } else
14765
- callback = missingCallback;
14766
- return callback;
14767
- function debugCallback(err) {
14768
- err && (backtrace.message = err.message, err = backtrace, missingCallback(err));
14769
- }
14770
- function missingCallback(err) {
14771
- if (err) {
14772
- if (process.throwDeprecation)
14773
- throw err;
14774
- if (!process.noDeprecation) {
14775
- var msg = "fs: missing callback " + (err.stack || err.message);
14776
- process.traceDeprecation ? console.trace(msg) : console.error(msg);
14777
- }
14778
- }
14779
- }
14780
- }
14781
- function maybeCallback(cb) {
14782
- return typeof cb == "function" ? cb : rethrow();
14783
- }
14784
- if (isWindows$3)
14785
- var nextPartRe = /(.*?)(?:[\/\\]+|$)/g;
14786
- else
14787
- var nextPartRe = /(.*?)(?:[\/]+|$)/g;
14788
- if (isWindows$3)
14789
- var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
14790
- else
14791
- var splitRootRe = /^[\/]*/;
14792
- old$1.realpathSync = function realpathSync2(p, cache) {
14793
- if (p = pathModule.resolve(p), cache && Object.prototype.hasOwnProperty.call(cache, p))
14794
- return cache[p];
14795
- var original = p, seenLinks = {}, knownHard = {}, pos2, current, base2, previous;
14796
- start();
14797
- function start() {
14798
- var m = splitRootRe.exec(p);
14799
- pos2 = m[0].length, current = m[0], base2 = m[0], previous = "", isWindows$3 && !knownHard[base2] && (fs$c.lstatSync(base2), knownHard[base2] = !0);
14800
- }
14801
- for (; pos2 < p.length; ) {
14802
- nextPartRe.lastIndex = pos2;
14803
- var result = nextPartRe.exec(p);
14804
- if (previous = current, current += result[0], base2 = previous + result[1], pos2 = nextPartRe.lastIndex, !(knownHard[base2] || cache && cache[base2] === base2)) {
14805
- var resolvedLink;
14806
- if (cache && Object.prototype.hasOwnProperty.call(cache, base2))
14807
- resolvedLink = cache[base2];
14808
- else {
14809
- var stat = fs$c.lstatSync(base2);
14810
- if (!stat.isSymbolicLink()) {
14811
- knownHard[base2] = !0, cache && (cache[base2] = base2);
14812
- continue;
14813
- }
14814
- var linkTarget = null;
14815
- if (!isWindows$3) {
14816
- var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
14817
- seenLinks.hasOwnProperty(id) && (linkTarget = seenLinks[id]);
14758
+ var old = {}, hasRequiredOld;
14759
+ function requireOld() {
14760
+ if (hasRequiredOld) return old;
14761
+ hasRequiredOld = 1;
14762
+ var pathModule = require$$0__default.default, isWindows2 = process.platform === "win32", fs2 = require$$0__default$1.default, DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
14763
+ function rethrow() {
14764
+ var callback;
14765
+ if (DEBUG) {
14766
+ var backtrace = new Error();
14767
+ callback = debugCallback;
14768
+ } else
14769
+ callback = missingCallback;
14770
+ return callback;
14771
+ function debugCallback(err) {
14772
+ err && (backtrace.message = err.message, err = backtrace, missingCallback(err));
14773
+ }
14774
+ function missingCallback(err) {
14775
+ if (err) {
14776
+ if (process.throwDeprecation)
14777
+ throw err;
14778
+ if (!process.noDeprecation) {
14779
+ var msg = "fs: missing callback " + (err.stack || err.message);
14780
+ process.traceDeprecation ? console.trace(msg) : console.error(msg);
14818
14781
  }
14819
- linkTarget === null && (fs$c.statSync(base2), linkTarget = fs$c.readlinkSync(base2)), resolvedLink = pathModule.resolve(previous, linkTarget), cache && (cache[base2] = resolvedLink), isWindows$3 || (seenLinks[id] = linkTarget);
14820
14782
  }
14821
- p = pathModule.resolve(resolvedLink, p.slice(pos2)), start();
14822
14783
  }
14823
14784
  }
14824
- return cache && (cache[original] = p), p;
14825
- };
14826
- old$1.realpath = function realpath2(p, cache, cb) {
14827
- if (typeof cb != "function" && (cb = maybeCallback(cache), cache = null), p = pathModule.resolve(p), cache && Object.prototype.hasOwnProperty.call(cache, p))
14828
- return process.nextTick(cb.bind(null, null, cache[p]));
14829
- var original = p, seenLinks = {}, knownHard = {}, pos2, current, base2, previous;
14830
- start();
14831
- function start() {
14832
- var m = splitRootRe.exec(p);
14833
- pos2 = m[0].length, current = m[0], base2 = m[0], previous = "", isWindows$3 && !knownHard[base2] ? fs$c.lstat(base2, function(err) {
14834
- if (err) return cb(err);
14835
- knownHard[base2] = !0, LOOP();
14836
- }) : process.nextTick(LOOP);
14785
+ function maybeCallback(cb) {
14786
+ return typeof cb == "function" ? cb : rethrow();
14837
14787
  }
14838
- function LOOP() {
14839
- if (pos2 >= p.length)
14840
- return cache && (cache[original] = p), cb(null, p);
14841
- nextPartRe.lastIndex = pos2;
14842
- var result = nextPartRe.exec(p);
14843
- return previous = current, current += result[0], base2 = previous + result[1], pos2 = nextPartRe.lastIndex, knownHard[base2] || cache && cache[base2] === base2 ? process.nextTick(LOOP) : cache && Object.prototype.hasOwnProperty.call(cache, base2) ? gotResolvedLink(cache[base2]) : fs$c.lstat(base2, gotStat);
14844
- }
14845
- function gotStat(err, stat) {
14846
- if (err) return cb(err);
14847
- if (!stat.isSymbolicLink())
14848
- return knownHard[base2] = !0, cache && (cache[base2] = base2), process.nextTick(LOOP);
14849
- if (!isWindows$3) {
14850
- var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
14851
- if (seenLinks.hasOwnProperty(id))
14852
- return gotTarget(null, seenLinks[id], base2);
14853
- }
14854
- fs$c.stat(base2, function(err2) {
14855
- if (err2) return cb(err2);
14856
- fs$c.readlink(base2, function(err3, target) {
14857
- isWindows$3 || (seenLinks[id] = target), gotTarget(err3, target);
14788
+ if (isWindows2)
14789
+ var nextPartRe = /(.*?)(?:[\/\\]+|$)/g;
14790
+ else
14791
+ var nextPartRe = /(.*?)(?:[\/]+|$)/g;
14792
+ if (isWindows2)
14793
+ var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
14794
+ else
14795
+ var splitRootRe = /^[\/]*/;
14796
+ return old.realpathSync = function(p, cache) {
14797
+ if (p = pathModule.resolve(p), cache && Object.prototype.hasOwnProperty.call(cache, p))
14798
+ return cache[p];
14799
+ var original = p, seenLinks = {}, knownHard = {}, pos2, current, base2, previous;
14800
+ start();
14801
+ function start() {
14802
+ var m = splitRootRe.exec(p);
14803
+ pos2 = m[0].length, current = m[0], base2 = m[0], previous = "", isWindows2 && !knownHard[base2] && (fs2.lstatSync(base2), knownHard[base2] = !0);
14804
+ }
14805
+ for (; pos2 < p.length; ) {
14806
+ nextPartRe.lastIndex = pos2;
14807
+ var result = nextPartRe.exec(p);
14808
+ if (previous = current, current += result[0], base2 = previous + result[1], pos2 = nextPartRe.lastIndex, !(knownHard[base2] || cache && cache[base2] === base2)) {
14809
+ var resolvedLink;
14810
+ if (cache && Object.prototype.hasOwnProperty.call(cache, base2))
14811
+ resolvedLink = cache[base2];
14812
+ else {
14813
+ var stat = fs2.lstatSync(base2);
14814
+ if (!stat.isSymbolicLink()) {
14815
+ knownHard[base2] = !0, cache && (cache[base2] = base2);
14816
+ continue;
14817
+ }
14818
+ var linkTarget = null;
14819
+ if (!isWindows2) {
14820
+ var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
14821
+ seenLinks.hasOwnProperty(id) && (linkTarget = seenLinks[id]);
14822
+ }
14823
+ linkTarget === null && (fs2.statSync(base2), linkTarget = fs2.readlinkSync(base2)), resolvedLink = pathModule.resolve(previous, linkTarget), cache && (cache[base2] = resolvedLink), isWindows2 || (seenLinks[id] = linkTarget);
14824
+ }
14825
+ p = pathModule.resolve(resolvedLink, p.slice(pos2)), start();
14826
+ }
14827
+ }
14828
+ return cache && (cache[original] = p), p;
14829
+ }, old.realpath = function(p, cache, cb) {
14830
+ if (typeof cb != "function" && (cb = maybeCallback(cache), cache = null), p = pathModule.resolve(p), cache && Object.prototype.hasOwnProperty.call(cache, p))
14831
+ return process.nextTick(cb.bind(null, null, cache[p]));
14832
+ var original = p, seenLinks = {}, knownHard = {}, pos2, current, base2, previous;
14833
+ start();
14834
+ function start() {
14835
+ var m = splitRootRe.exec(p);
14836
+ pos2 = m[0].length, current = m[0], base2 = m[0], previous = "", isWindows2 && !knownHard[base2] ? fs2.lstat(base2, function(err) {
14837
+ if (err) return cb(err);
14838
+ knownHard[base2] = !0, LOOP();
14839
+ }) : process.nextTick(LOOP);
14840
+ }
14841
+ function LOOP() {
14842
+ if (pos2 >= p.length)
14843
+ return cache && (cache[original] = p), cb(null, p);
14844
+ nextPartRe.lastIndex = pos2;
14845
+ var result = nextPartRe.exec(p);
14846
+ return previous = current, current += result[0], base2 = previous + result[1], pos2 = nextPartRe.lastIndex, knownHard[base2] || cache && cache[base2] === base2 ? process.nextTick(LOOP) : cache && Object.prototype.hasOwnProperty.call(cache, base2) ? gotResolvedLink(cache[base2]) : fs2.lstat(base2, gotStat);
14847
+ }
14848
+ function gotStat(err, stat) {
14849
+ if (err) return cb(err);
14850
+ if (!stat.isSymbolicLink())
14851
+ return knownHard[base2] = !0, cache && (cache[base2] = base2), process.nextTick(LOOP);
14852
+ if (!isWindows2) {
14853
+ var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
14854
+ if (seenLinks.hasOwnProperty(id))
14855
+ return gotTarget(null, seenLinks[id], base2);
14856
+ }
14857
+ fs2.stat(base2, function(err2) {
14858
+ if (err2) return cb(err2);
14859
+ fs2.readlink(base2, function(err3, target) {
14860
+ isWindows2 || (seenLinks[id] = target), gotTarget(err3, target);
14861
+ });
14858
14862
  });
14863
+ }
14864
+ function gotTarget(err, target, base3) {
14865
+ if (err) return cb(err);
14866
+ var resolvedLink = pathModule.resolve(previous, target);
14867
+ cache && (cache[base3] = resolvedLink), gotResolvedLink(resolvedLink);
14868
+ }
14869
+ function gotResolvedLink(resolvedLink) {
14870
+ p = pathModule.resolve(resolvedLink, p.slice(pos2)), start();
14871
+ }
14872
+ }, old;
14873
+ }
14874
+ var fs_realpath, hasRequiredFs_realpath;
14875
+ function requireFs_realpath() {
14876
+ if (hasRequiredFs_realpath) return fs_realpath;
14877
+ hasRequiredFs_realpath = 1, fs_realpath = realpath, realpath.realpath = realpath, realpath.sync = realpathSync, realpath.realpathSync = realpathSync, realpath.monkeypatch = monkeypatch, realpath.unmonkeypatch = unmonkeypatch;
14878
+ var fs2 = require$$0__default$1.default, origRealpath = fs2.realpath, origRealpathSync = fs2.realpathSync, version = process.version, ok = /^v[0-5]\./.test(version), old2 = requireOld();
14879
+ function newError(er) {
14880
+ return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG");
14881
+ }
14882
+ function realpath(p, cache, cb) {
14883
+ if (ok)
14884
+ return origRealpath(p, cache, cb);
14885
+ typeof cache == "function" && (cb = cache, cache = null), origRealpath(p, cache, function(er, result) {
14886
+ newError(er) ? old2.realpath(p, cache, cb) : cb(er, result);
14859
14887
  });
14860
14888
  }
14861
- function gotTarget(err, target, base3) {
14862
- if (err) return cb(err);
14863
- var resolvedLink = pathModule.resolve(previous, target);
14864
- cache && (cache[base3] = resolvedLink), gotResolvedLink(resolvedLink);
14889
+ function realpathSync(p, cache) {
14890
+ if (ok)
14891
+ return origRealpathSync(p, cache);
14892
+ try {
14893
+ return origRealpathSync(p, cache);
14894
+ } catch (er) {
14895
+ if (newError(er))
14896
+ return old2.realpathSync(p, cache);
14897
+ throw er;
14898
+ }
14865
14899
  }
14866
- function gotResolvedLink(resolvedLink) {
14867
- p = pathModule.resolve(resolvedLink, p.slice(pos2)), start();
14900
+ function monkeypatch() {
14901
+ fs2.realpath = realpath, fs2.realpathSync = realpathSync;
14868
14902
  }
14869
- };
14870
- var fs_realpath = realpath;
14871
- realpath.realpath = realpath;
14872
- realpath.sync = realpathSync;
14873
- realpath.realpathSync = realpathSync;
14874
- realpath.monkeypatch = monkeypatch;
14875
- realpath.unmonkeypatch = unmonkeypatch;
14876
- var fs$b = require$$0__default$1.default, origRealpath = fs$b.realpath, origRealpathSync = fs$b.realpathSync, version = process.version, ok = /^v[0-5]\./.test(version), old = old$1;
14877
- function newError(er) {
14878
- return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG");
14879
- }
14880
- function realpath(p, cache, cb) {
14881
- if (ok)
14882
- return origRealpath(p, cache, cb);
14883
- typeof cache == "function" && (cb = cache, cache = null), origRealpath(p, cache, function(er, result) {
14884
- newError(er) ? old.realpath(p, cache, cb) : cb(er, result);
14885
- });
14886
- }
14887
- function realpathSync(p, cache) {
14888
- if (ok)
14889
- return origRealpathSync(p, cache);
14890
- try {
14891
- return origRealpathSync(p, cache);
14892
- } catch (er) {
14893
- if (newError(er))
14894
- return old.realpathSync(p, cache);
14895
- throw er;
14903
+ function unmonkeypatch() {
14904
+ fs2.realpath = origRealpath, fs2.realpathSync = origRealpathSync;
14896
14905
  }
14897
- }
14898
- function monkeypatch() {
14899
- fs$b.realpath = realpath, fs$b.realpathSync = realpathSync;
14900
- }
14901
- function unmonkeypatch() {
14902
- fs$b.realpath = origRealpath, fs$b.realpathSync = origRealpathSync;
14906
+ return fs_realpath;
14903
14907
  }
14904
14908
  const isWindows$2 = typeof process == "object" && process && process.platform === "win32";
14905
14909
  var path$i = isWindows$2 ? { sep: "\\" } : { sep: "/" }, balanced = balancedMatch, braceExpansion = expandTop, escSlash = "\0SLASH" + Math.random() + "\0", escOpen = "\0OPEN" + Math.random() + "\0", escClose = "\0CLOSE" + Math.random() + "\0", escComma = "\0COMMA" + Math.random() + "\0", escPeriod = "\0PERIOD" + Math.random() + "\0";
@@ -15427,7 +15431,7 @@ var sync$2, hasRequiredSync$1;
15427
15431
  function requireSync$1() {
15428
15432
  if (hasRequiredSync$1) return sync$2;
15429
15433
  hasRequiredSync$1 = 1, sync$2 = globSync, globSync.GlobSync = GlobSync;
15430
- var rp = fs_realpath, minimatch2 = minimatch_1;
15434
+ var rp = requireFs_realpath(), minimatch2 = minimatch_1;
15431
15435
  requireGlob$1().Glob;
15432
15436
  var path2 = require$$0__default.default, assert2 = require$$5__default.default, isAbsolute2 = require$$0__default.default.isAbsolute, common2 = common$8, setopts2 = common2.setopts, ownProp2 = common2.ownProp, childrenIgnored2 = common2.childrenIgnored, isIgnored2 = common2.isIgnored;
15433
15437
  function globSync(pattern, options2) {
@@ -15655,79 +15659,95 @@ See: https://github.com/isaacs/node-glob/issues/167`);
15655
15659
  return common2.makeAbs(this, f2);
15656
15660
  }, sync$2;
15657
15661
  }
15658
- var wrappy_1 = wrappy$2;
15659
- function wrappy$2(fn2, cb) {
15660
- if (fn2 && cb) return wrappy$2(fn2)(cb);
15661
- if (typeof fn2 != "function")
15662
- throw new TypeError("need wrapper function");
15663
- return Object.keys(fn2).forEach(function(k) {
15664
- wrapper[k] = fn2[k];
15665
- }), wrapper;
15666
- function wrapper() {
15667
- for (var args = new Array(arguments.length), i2 = 0; i2 < args.length; i2++)
15668
- args[i2] = arguments[i2];
15669
- var ret = fn2.apply(this, args), cb2 = args[args.length - 1];
15670
- return typeof ret == "function" && ret !== cb2 && Object.keys(cb2).forEach(function(k) {
15671
- ret[k] = cb2[k];
15672
- }), ret;
15673
- }
15674
- }
15675
- var once$4 = { exports: {} }, wrappy$1 = wrappy_1;
15676
- once$4.exports = wrappy$1(once$3);
15677
- once$4.exports.strict = wrappy$1(onceStrict);
15678
- once$3.proto = once$3(function() {
15679
- Object.defineProperty(Function.prototype, "once", {
15680
- value: function() {
15681
- return once$3(this);
15682
- },
15683
- configurable: !0
15684
- }), Object.defineProperty(Function.prototype, "onceStrict", {
15685
- value: function() {
15686
- return onceStrict(this);
15687
- },
15688
- configurable: !0
15689
- });
15690
- });
15691
- function once$3(fn2) {
15692
- var f2 = function() {
15693
- return f2.called ? f2.value : (f2.called = !0, f2.value = fn2.apply(this, arguments));
15694
- };
15695
- return f2.called = !1, f2;
15696
- }
15697
- function onceStrict(fn2) {
15698
- var f2 = function() {
15699
- if (f2.called)
15700
- throw new Error(f2.onceError);
15701
- return f2.called = !0, f2.value = fn2.apply(this, arguments);
15702
- }, name = fn2.name || "Function wrapped with `once`";
15703
- return f2.onceError = name + " shouldn't be called more than once", f2.called = !1, f2;
15704
- }
15705
- var onceExports = once$4.exports, wrappy = wrappy_1, reqs = /* @__PURE__ */ Object.create(null), once$2 = onceExports, inflight_1 = wrappy(inflight);
15706
- function inflight(key2, cb) {
15707
- return reqs[key2] ? (reqs[key2].push(cb), null) : (reqs[key2] = [cb], makeres(key2));
15708
- }
15709
- function makeres(key2) {
15710
- return once$2(function RES() {
15711
- var cbs = reqs[key2], len = cbs.length, args = slice(arguments);
15712
- try {
15713
- for (var i2 = 0; i2 < len; i2++)
15714
- cbs[i2].apply(null, args);
15715
- } finally {
15716
- cbs.length > len ? (cbs.splice(0, len), process.nextTick(function() {
15717
- RES.apply(null, args);
15718
- })) : delete reqs[key2];
15719
- }
15662
+ var wrappy_1, hasRequiredWrappy;
15663
+ function requireWrappy() {
15664
+ if (hasRequiredWrappy) return wrappy_1;
15665
+ hasRequiredWrappy = 1, wrappy_1 = wrappy;
15666
+ function wrappy(fn2, cb) {
15667
+ if (fn2 && cb) return wrappy(fn2)(cb);
15668
+ if (typeof fn2 != "function")
15669
+ throw new TypeError("need wrapper function");
15670
+ return Object.keys(fn2).forEach(function(k) {
15671
+ wrapper[k] = fn2[k];
15672
+ }), wrapper;
15673
+ function wrapper() {
15674
+ for (var args = new Array(arguments.length), i2 = 0; i2 < args.length; i2++)
15675
+ args[i2] = arguments[i2];
15676
+ var ret = fn2.apply(this, args), cb2 = args[args.length - 1];
15677
+ return typeof ret == "function" && ret !== cb2 && Object.keys(cb2).forEach(function(k) {
15678
+ ret[k] = cb2[k];
15679
+ }), ret;
15680
+ }
15681
+ }
15682
+ return wrappy_1;
15683
+ }
15684
+ var once$2 = { exports: {} }, hasRequiredOnce;
15685
+ function requireOnce() {
15686
+ if (hasRequiredOnce) return once$2.exports;
15687
+ hasRequiredOnce = 1;
15688
+ var wrappy = requireWrappy();
15689
+ once$2.exports = wrappy(once2), once$2.exports.strict = wrappy(onceStrict), once2.proto = once2(function() {
15690
+ Object.defineProperty(Function.prototype, "once", {
15691
+ value: function() {
15692
+ return once2(this);
15693
+ },
15694
+ configurable: !0
15695
+ }), Object.defineProperty(Function.prototype, "onceStrict", {
15696
+ value: function() {
15697
+ return onceStrict(this);
15698
+ },
15699
+ configurable: !0
15700
+ });
15720
15701
  });
15721
- }
15722
- function slice(args) {
15723
- for (var length = args.length, array2 = [], i2 = 0; i2 < length; i2++) array2[i2] = args[i2];
15724
- return array2;
15702
+ function once2(fn2) {
15703
+ var f2 = function() {
15704
+ return f2.called ? f2.value : (f2.called = !0, f2.value = fn2.apply(this, arguments));
15705
+ };
15706
+ return f2.called = !1, f2;
15707
+ }
15708
+ function onceStrict(fn2) {
15709
+ var f2 = function() {
15710
+ if (f2.called)
15711
+ throw new Error(f2.onceError);
15712
+ return f2.called = !0, f2.value = fn2.apply(this, arguments);
15713
+ }, name = fn2.name || "Function wrapped with `once`";
15714
+ return f2.onceError = name + " shouldn't be called more than once", f2.called = !1, f2;
15715
+ }
15716
+ return once$2.exports;
15717
+ }
15718
+ var inflight_1, hasRequiredInflight;
15719
+ function requireInflight() {
15720
+ if (hasRequiredInflight) return inflight_1;
15721
+ hasRequiredInflight = 1;
15722
+ var wrappy = requireWrappy(), reqs = /* @__PURE__ */ Object.create(null), once2 = requireOnce();
15723
+ inflight_1 = wrappy(inflight);
15724
+ function inflight(key2, cb) {
15725
+ return reqs[key2] ? (reqs[key2].push(cb), null) : (reqs[key2] = [cb], makeres(key2));
15726
+ }
15727
+ function makeres(key2) {
15728
+ return once2(function RES() {
15729
+ var cbs = reqs[key2], len = cbs.length, args = slice2(arguments);
15730
+ try {
15731
+ for (var i2 = 0; i2 < len; i2++)
15732
+ cbs[i2].apply(null, args);
15733
+ } finally {
15734
+ cbs.length > len ? (cbs.splice(0, len), process.nextTick(function() {
15735
+ RES.apply(null, args);
15736
+ })) : delete reqs[key2];
15737
+ }
15738
+ });
15739
+ }
15740
+ function slice2(args) {
15741
+ for (var length = args.length, array2 = [], i2 = 0; i2 < length; i2++) array2[i2] = args[i2];
15742
+ return array2;
15743
+ }
15744
+ return inflight_1;
15725
15745
  }
15726
15746
  var glob_1$2, hasRequiredGlob$1;
15727
15747
  function requireGlob$1() {
15728
15748
  if (hasRequiredGlob$1) return glob_1$2;
15729
15749
  hasRequiredGlob$1 = 1, glob_1$2 = glob2;
15730
- var rp = fs_realpath, minimatch2 = minimatch_1, inherits2 = inheritsExports, EE2 = require$$3__default.default.EventEmitter, path2 = require$$0__default.default, assert2 = require$$5__default.default, isAbsolute2 = require$$0__default.default.isAbsolute, globSync = requireSync$1(), common2 = common$8, setopts2 = common2.setopts, ownProp2 = common2.ownProp, inflight2 = inflight_1, childrenIgnored2 = common2.childrenIgnored, isIgnored2 = common2.isIgnored, once2 = onceExports;
15750
+ var rp = requireFs_realpath(), minimatch2 = minimatch_1, inherits2 = inheritsExports, EE2 = require$$3__default.default.EventEmitter, path2 = require$$0__default.default, assert2 = require$$5__default.default, isAbsolute2 = require$$0__default.default.isAbsolute, globSync = requireSync$1(), common2 = common$8, setopts2 = common2.setopts, ownProp2 = common2.ownProp, inflight = requireInflight(), childrenIgnored2 = common2.childrenIgnored, isIgnored2 = common2.isIgnored, once2 = requireOnce();
15731
15751
  function glob2(pattern, options2, cb) {
15732
15752
  if (typeof options2 == "function" && (cb = options2, options2 = {}), options2 || (options2 = {}), options2.sync) {
15733
15753
  if (cb)
@@ -15929,7 +15949,7 @@ function requireGlob$1() {
15929
15949
  return;
15930
15950
  if (this.follow)
15931
15951
  return this._readdir(abs, !1, cb);
15932
- var lstatkey = "lstat\0" + abs, self2 = this, lstatcb = inflight2(lstatkey, lstatcb_);
15952
+ var lstatkey = "lstat\0" + abs, self2 = this, lstatcb = inflight(lstatkey, lstatcb_);
15933
15953
  lstatcb && self2.fs.lstat(abs, lstatcb);
15934
15954
  function lstatcb_(er, lstat) {
15935
15955
  if (er && er.code === "ENOENT")
@@ -15938,7 +15958,7 @@ function requireGlob$1() {
15938
15958
  self2.symlinks[abs] = isSym, !isSym && lstat && !lstat.isDirectory() ? (self2.cache[abs] = "FILE", cb()) : self2._readdir(abs, !1, cb);
15939
15959
  }
15940
15960
  }, Glob.prototype._readdir = function(abs, inGlobStar, cb) {
15941
- if (!this.aborted && (cb = inflight2("readdir\0" + abs + "\0" + inGlobStar, cb), !!cb)) {
15961
+ if (!this.aborted && (cb = inflight("readdir\0" + abs + "\0" + inGlobStar, cb), !!cb)) {
15942
15962
  if (inGlobStar && !ownProp2(this.symlinks, abs))
15943
15963
  return this._readdirInGlobStar(abs, cb);
15944
15964
  if (ownProp2(this.cache, abs)) {
@@ -16043,7 +16063,7 @@ function requireGlob$1() {
16043
16063
  var type2 = stat.isDirectory() ? "DIR" : "FILE";
16044
16064
  return needDir && type2 === "FILE" ? cb() : cb(null, type2, stat);
16045
16065
  }
16046
- var self2 = this, statcb = inflight2("stat\0" + abs, lstatcb_);
16066
+ var self2 = this, statcb = inflight("stat\0" + abs, lstatcb_);
16047
16067
  statcb && self2.fs.lstat(abs, statcb);
16048
16068
  function lstatcb_(er, lstat) {
16049
16069
  if (lstat && lstat.isSymbolicLink())
@@ -17384,19 +17404,19 @@ async function bootstrapFromTemplate(context, url2) {
17384
17404
  const { validForNewPackages } = validateNpmPackageName__default.default(pkgName);
17385
17405
  if (!validForNewPackages)
17386
17406
  return "Name must be a valid npm package name (https://docs.npmjs.com/files/package.json#name)";
17387
- const outputPath2 = path__default.default.join(workDir, "plugins", pkgName), isEmpty2 = await fs$s.pathIsEmpty(outputPath2);
17407
+ const outputPath2 = path__default.default.join(workDir, "plugins", pkgName), isEmpty2 = await fs$q.pathIsEmpty(outputPath2);
17388
17408
  return inProjectContext && !isEmpty2 ? "Plugin with given name already exists in project" : !0;
17389
17409
  }
17390
17410
  });
17391
17411
  let outputPath = path__default.default.join(workDir, "plugins", name);
17392
17412
  if (!inProjectContext) {
17393
- const cwdIsEmpty = await fs$s.pathIsEmpty(workDir);
17413
+ const cwdIsEmpty = await fs$q.pathIsEmpty(workDir);
17394
17414
  outputPath = await prompt2.single({
17395
17415
  type: "input",
17396
17416
  message: "Output path:",
17397
17417
  default: cwdIsEmpty ? workDir : path__default.default.join(workDir, name),
17398
17418
  validate: validateEmptyPath$1,
17399
- filter: fs$s.absolutify
17419
+ filter: fs$q.absolutify
17400
17420
  });
17401
17421
  }
17402
17422
  loadEnv.debug("Output path set to %s", outputPath);
@@ -17413,7 +17433,7 @@ async function bootstrapFromTemplate(context, url2) {
17413
17433
  ), { name, outputPath, inPluginsPath: inProjectContext, dependencies: tplVars.dependencies };
17414
17434
  }
17415
17435
  async function validateEmptyPath$1(dir) {
17416
- return await fs$s.pathIsEmpty(dir) ? !0 : "Path is not empty";
17436
+ return await fs$q.pathIsEmpty(dir) ? !0 : "Path is not empty";
17417
17437
  }
17418
17438
  function getZip(url2) {
17419
17439
  return request({ url: url2, rawBody: !0 }).then(
@@ -17960,7 +17980,7 @@ isStream$1.writable = (stream2) => isStream$1(stream2) && stream2.writable !== !
17960
17980
  isStream$1.readable = (stream2) => isStream$1(stream2) && stream2.readable !== !1 && typeof stream2._read == "function" && typeof stream2._readableState == "object";
17961
17981
  isStream$1.duplex = (stream2) => isStream$1.writable(stream2) && isStream$1.readable(stream2);
17962
17982
  isStream$1.transform = (stream2) => isStream$1.duplex(stream2) && typeof stream2._transform == "function";
17963
- var isStream_1 = isStream$1, getStream$2 = { exports: {} }, once$1 = onceExports, noop$2 = function() {
17983
+ var isStream_1 = isStream$1, getStream$2 = { exports: {} }, once$1 = requireOnce(), noop$2 = function() {
17964
17984
  }, isRequest$1 = function(stream2) {
17965
17985
  return stream2.setHeader && typeof stream2.abort == "function";
17966
17986
  }, isChildProcess = function(stream2) {
@@ -17991,7 +18011,7 @@ var isStream_1 = isStream$1, getStream$2 = { exports: {} }, once$1 = onceExports
17991
18011
  return isRequest$1(stream2) ? (stream2.on("complete", onfinish), stream2.on("abort", onclose), stream2.req ? onrequest() : stream2.on("request", onrequest)) : writable && !ws && (stream2.on("end", onlegacyfinish), stream2.on("close", onlegacyfinish)), isChildProcess(stream2) && stream2.on("exit", onexit), stream2.on("end", onend), stream2.on("finish", onfinish), opts.error !== !1 && stream2.on("error", onerror), stream2.on("close", onclose), function() {
17992
18012
  cancelled = !0, stream2.removeListener("complete", onfinish), stream2.removeListener("abort", onclose), stream2.removeListener("request", onrequest), stream2.req && stream2.req.removeListener("finish", onfinish), stream2.removeListener("end", onlegacyfinish), stream2.removeListener("close", onlegacyfinish), stream2.removeListener("finish", onfinish), stream2.removeListener("exit", onexit), stream2.removeListener("end", onend), stream2.removeListener("error", onerror), stream2.removeListener("close", onclose);
17993
18013
  };
17994
- }, endOfStream$1 = eos$1, once = onceExports, eos = endOfStream$1, fs$8 = require$$0__default$1.default, noop$1 = function() {
18014
+ }, endOfStream$1 = eos$1, once = requireOnce(), eos = endOfStream$1, fs$8 = require$$0__default$1.default, noop$1 = function() {
17995
18015
  }, ancient = /^v?\.0/.test(process.version), isFn = function(fn2) {
17996
18016
  return typeof fn2 == "function";
17997
18017
  }, isFS = function(stream2) {
@@ -22439,7 +22459,7 @@ function createTelemetryStore({
22439
22459
  const token2 = getCliToken();
22440
22460
  if (!token2)
22441
22461
  return debug$1("No user token found. Something is not quite right"), Promise.reject(new Error("User is not logged in"));
22442
- isTrueish(env.SANITY_TELEMETRY_INSPECT) && (console.info(`SANITY_TELEMETRY_INSPECT is set, appending events to "${LOG_FILE_NAME}"`), await fs$q.appendFile(LOG_FILE_NAME, `${batch.map((entry) => JSON.stringify(entry)).join(`
22462
+ isTrueish(env.SANITY_TELEMETRY_INSPECT) && (console.info(`SANITY_TELEMETRY_INSPECT is set, appending events to "${LOG_FILE_NAME}"`), await fs$o.appendFile(LOG_FILE_NAME, `${batch.map((entry) => JSON.stringify(entry)).join(`
22443
22463
  `)}
22444
22464
  `));
22445
22465
  const client2 = getCachedClient(token2);
@@ -22704,8 +22724,8 @@ function resolveLatestVersions(pkgs) {
22704
22724
  lookups[packageName] = range2 === "latest" ? latestVersion(packageName, { range: range2 }).then(caretify) : range2;
22705
22725
  return promiseProps$1(lookups);
22706
22726
  }
22707
- function caretify(version2) {
22708
- return version2 ? `^${version2}` : "latest";
22727
+ function caretify(version) {
22728
+ return version ? `^${version}` : "latest";
22709
22729
  }
22710
22730
  var main$4 = {}, extendStatics$1 = function(d, b) {
22711
22731
  return extendStatics$1 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -25755,9 +25775,9 @@ function requireSourceMapConsumer() {
25755
25775
  function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
25756
25776
  var sourceMap2 = aSourceMap;
25757
25777
  typeof aSourceMap == "string" && (sourceMap2 = util2.parseSourceMapInput(aSourceMap));
25758
- var version2 = util2.getArg(sourceMap2, "version"), sources = util2.getArg(sourceMap2, "sources"), names2 = util2.getArg(sourceMap2, "names", []), sourceRoot = util2.getArg(sourceMap2, "sourceRoot", null), sourcesContent = util2.getArg(sourceMap2, "sourcesContent", null), mappings = util2.getArg(sourceMap2, "mappings"), file2 = util2.getArg(sourceMap2, "file", null);
25759
- if (version2 != this._version)
25760
- throw new Error("Unsupported version: " + version2);
25778
+ var version = util2.getArg(sourceMap2, "version"), sources = util2.getArg(sourceMap2, "sources"), names2 = util2.getArg(sourceMap2, "names", []), sourceRoot = util2.getArg(sourceMap2, "sourceRoot", null), sourcesContent = util2.getArg(sourceMap2, "sourcesContent", null), mappings = util2.getArg(sourceMap2, "mappings"), file2 = util2.getArg(sourceMap2, "file", null);
25779
+ if (version != this._version)
25780
+ throw new Error("Unsupported version: " + version);
25761
25781
  sourceRoot && (sourceRoot = util2.normalize(sourceRoot)), sources = sources.map(String).map(util2.normalize).map(function(source2) {
25762
25782
  return sourceRoot && util2.isAbsolute(sourceRoot) && util2.isAbsolute(source2) ? util2.relative(sourceRoot, source2) : source2;
25763
25783
  }), this._names = ArraySet.fromArray(names2.map(String), !0), this._sources = ArraySet.fromArray(sources, !0), this._absoluteSources = this._sources.toArray().map(function(s) {
@@ -25928,9 +25948,9 @@ function requireSourceMapConsumer() {
25928
25948
  function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
25929
25949
  var sourceMap2 = aSourceMap;
25930
25950
  typeof aSourceMap == "string" && (sourceMap2 = util2.parseSourceMapInput(aSourceMap));
25931
- var version2 = util2.getArg(sourceMap2, "version"), sections = util2.getArg(sourceMap2, "sections");
25932
- if (version2 != this._version)
25933
- throw new Error("Unsupported version: " + version2);
25951
+ var version = util2.getArg(sourceMap2, "version"), sections = util2.getArg(sourceMap2, "sections");
25952
+ if (version != this._version)
25953
+ throw new Error("Unsupported version: " + version);
25934
25954
  this._sources = new ArraySet(), this._names = new ArraySet();
25935
25955
  var lastOffset = {
25936
25956
  line: -1,
@@ -33129,7 +33149,7 @@ function requireLib$1() {
33129
33149
  PrimaryTopicNotAllowed: "Topic reference was used in a lexical context without topic binding.",
33130
33150
  PrimaryTopicRequiresSmartPipeline: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'
33131
33151
  };
33132
- const _excluded = ["toMessage"], _excluded2 = ["message"];
33152
+ const _excluded = ["message"];
33133
33153
  function defineHidden(obj, key2, value) {
33134
33154
  Object.defineProperty(obj, key2, {
33135
33155
  enumerable: !1,
@@ -33137,18 +33157,16 @@ function requireLib$1() {
33137
33157
  value
33138
33158
  });
33139
33159
  }
33140
- function toParseErrorConstructor(_ref) {
33141
- let {
33142
- toMessage
33143
- } = _ref, properties = _objectWithoutPropertiesLoose(_ref, _excluded);
33160
+ function toParseErrorConstructor({
33161
+ toMessage,
33162
+ code: code2,
33163
+ reasonCode,
33164
+ syntaxPlugin
33165
+ }) {
33166
+ const hasMissingPlugin = reasonCode === "MissingPlugin" || reasonCode === "MissingOneOfPlugins";
33144
33167
  return function constructor(loc, details) {
33145
33168
  const error2 = new SyntaxError();
33146
- return Object.assign(error2, properties, {
33147
- loc,
33148
- pos: loc.index
33149
- }), "missingPlugin" in details && Object.assign(error2, {
33150
- missingPlugin: details.missingPlugin
33151
- }), defineHidden(error2, "clone", function(overrides = {}) {
33169
+ return error2.code = code2, error2.reasonCode = reasonCode, error2.loc = loc, error2.pos = loc.index, error2.syntaxPlugin = syntaxPlugin, hasMissingPlugin && (error2.missingPlugin = details.missingPlugin), defineHidden(error2, "clone", function(overrides = {}) {
33152
33170
  var _overrides$loc;
33153
33171
  const {
33154
33172
  line: line3,
@@ -33176,13 +33194,13 @@ function requireLib$1() {
33176
33194
  return (parseErrorTemplates) => ParseErrorEnum(parseErrorTemplates, argument[0]);
33177
33195
  const ParseErrorConstructors = {};
33178
33196
  for (const reasonCode of Object.keys(argument)) {
33179
- const template = argument[reasonCode], _ref2 = typeof template == "string" ? {
33197
+ const template = argument[reasonCode], _ref = typeof template == "string" ? {
33180
33198
  message: () => template
33181
33199
  } : typeof template == "function" ? {
33182
33200
  message: template
33183
33201
  } : template, {
33184
33202
  message
33185
- } = _ref2, rest = _objectWithoutPropertiesLoose(_ref2, _excluded2), toMessage = typeof message == "string" ? () => message : message;
33203
+ } = _ref, rest = _objectWithoutPropertiesLoose(_ref, _excluded), toMessage = typeof message == "string" ? () => message : message;
33186
33204
  ParseErrorConstructors[reasonCode] = toParseErrorConstructor(Object.assign({
33187
33205
  code: "BABEL_PARSER_SYNTAX_ERROR",
33188
33206
  reasonCode,
@@ -34254,7 +34272,7 @@ function requireLib$1() {
34254
34272
  }
34255
34273
  }
34256
34274
  }
34257
- const lineBreak = /\r\n?|[\n\u2028\u2029]/, lineBreakG = new RegExp(lineBreak.source, "g");
34275
+ const lineBreak = /\r\n|[\r\n\u2028\u2029]/, lineBreakG = new RegExp(lineBreak.source, "g");
34258
34276
  function isNewLine(code2) {
34259
34277
  switch (code2) {
34260
34278
  case 10:
@@ -34266,7 +34284,13 @@ function requireLib$1() {
34266
34284
  return !1;
34267
34285
  }
34268
34286
  }
34269
- const skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, skipWhiteSpaceInLine = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g, skipWhiteSpaceToLineBreak = new RegExp("(?=(" + skipWhiteSpaceInLine.source + "))\\1" + /(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source, "y");
34287
+ function hasNewLine(input2, start, end2) {
34288
+ for (let i2 = start; i2 < end2; i2++)
34289
+ if (isNewLine(input2.charCodeAt(i2)))
34290
+ return !0;
34291
+ return !1;
34292
+ }
34293
+ const skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, skipWhiteSpaceInLine = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;
34270
34294
  function isWhitespace2(code2) {
34271
34295
  switch (code2) {
34272
34296
  case 9:
@@ -34382,6 +34406,12 @@ function requireLib$1() {
34382
34406
  set containsEsc(v) {
34383
34407
  v ? this.flags |= 2048 : this.flags &= -2049;
34384
34408
  }
34409
+ get hasTopLevelAwait() {
34410
+ return (this.flags & 4096) > 0;
34411
+ }
34412
+ set hasTopLevelAwait(v) {
34413
+ v ? this.flags |= 4096 : this.flags &= -4097;
34414
+ }
34385
34415
  curPosition() {
34386
34416
  return new Position(this.curLine, this.pos - this.lineStart, this.pos);
34387
34417
  }
@@ -35468,8 +35498,10 @@ function requireLib$1() {
35468
35498
  class UtilParser extends Tokenizer {
35469
35499
  addExtra(node2, key2, value, enumerable = !0) {
35470
35500
  if (!node2) return;
35471
- const extra = node2.extra = node2.extra || {};
35472
- enumerable ? extra[key2] = value : Object.defineProperty(extra, key2, {
35501
+ let {
35502
+ extra
35503
+ } = node2;
35504
+ extra == null && (extra = {}, node2.extra = extra), enumerable ? extra[key2] = value : Object.defineProperty(extra, key2, {
35473
35505
  enumerable,
35474
35506
  value
35475
35507
  });
@@ -35503,10 +35535,10 @@ function requireLib$1() {
35503
35535
  return this.match(139) || this.match(8) || this.hasPrecedingLineBreak();
35504
35536
  }
35505
35537
  hasPrecedingLineBreak() {
35506
- return lineBreak.test(this.input.slice(this.state.lastTokEndLoc.index, this.state.start));
35538
+ return hasNewLine(this.input, this.state.lastTokEndLoc.index, this.state.start);
35507
35539
  }
35508
35540
  hasFollowingLineBreak() {
35509
- return skipWhiteSpaceToLineBreak.lastIndex = this.state.end, skipWhiteSpaceToLineBreak.test(this.input);
35541
+ return hasNewLine(this.input, this.state.end, this.nextTokenStart());
35510
35542
  }
35511
35543
  isLineTerminator() {
35512
35544
  return this.eat(13) || this.canInsertSemicolon();
@@ -37645,7 +37677,7 @@ function requireLib$1() {
37645
37677
  super.checkLocalExport(id);
37646
37678
  }
37647
37679
  }
37648
- const getOwn$1 = (object, key2) => hasOwnProperty.call(object, key2) && object[key2], unwrapParenthesizedExpression = (node2) => node2.type === "ParenthesizedExpression" ? unwrapParenthesizedExpression(node2.expression) : node2;
37680
+ const unwrapParenthesizedExpression = (node2) => node2.type === "ParenthesizedExpression" ? unwrapParenthesizedExpression(node2.expression) : node2;
37649
37681
  class LValParser extends NodeUtils {
37650
37682
  toAssignable(node2, isLHS = !1) {
37651
37683
  var _node$extra, _node$extra3;
@@ -37819,25 +37851,26 @@ function requireLib$1() {
37819
37851
  return node2.left = left2, node2.right = this.parseMaybeAssignAllowIn(), this.finishNode(node2, "AssignmentPattern");
37820
37852
  }
37821
37853
  isValidLVal(type2, isUnparenthesizedInAssign, binding) {
37822
- return getOwn$1({
37823
- AssignmentPattern: "left",
37824
- RestElement: "argument",
37825
- ObjectProperty: "value",
37826
- ParenthesizedExpression: "expression",
37827
- ArrayPattern: "elements",
37828
- ObjectPattern: "properties"
37829
- }, type2);
37854
+ switch (type2) {
37855
+ case "AssignmentPattern":
37856
+ return "left";
37857
+ case "RestElement":
37858
+ return "argument";
37859
+ case "ObjectProperty":
37860
+ return "value";
37861
+ case "ParenthesizedExpression":
37862
+ return "expression";
37863
+ case "ArrayPattern":
37864
+ return "elements";
37865
+ case "ObjectPattern":
37866
+ return "properties";
37867
+ }
37868
+ return !1;
37830
37869
  }
37831
37870
  isOptionalMemberExpression(expression) {
37832
37871
  return expression.type === "OptionalMemberExpression";
37833
37872
  }
37834
- checkLVal(expression, {
37835
- in: ancestor,
37836
- binding = 64,
37837
- checkClashes = !1,
37838
- strictModeChanged = !1,
37839
- hasParenthesizedAncestor = !1
37840
- }) {
37873
+ checkLVal(expression, ancestor, binding = 64, checkClashes = !1, strictModeChanged = !1, hasParenthesizedAncestor = !1) {
37841
37874
  var _expression$extra;
37842
37875
  const type2 = expression.type;
37843
37876
  if (this.isObjectMethod(expression)) return;
@@ -37865,17 +37898,15 @@ function requireLib$1() {
37865
37898
  });
37866
37899
  return;
37867
37900
  }
37868
- const [key2, isParenthesizedExpression] = Array.isArray(validity) ? validity : [validity, type2 === "ParenthesizedExpression"], nextAncestor = type2 === "ArrayPattern" || type2 === "ObjectPattern" ? {
37901
+ let key2, isParenthesizedExpression;
37902
+ typeof validity == "string" ? (key2 = validity, isParenthesizedExpression = type2 === "ParenthesizedExpression") : [key2, isParenthesizedExpression] = validity;
37903
+ const nextAncestor = type2 === "ArrayPattern" || type2 === "ObjectPattern" ? {
37869
37904
  type: type2
37870
- } : ancestor;
37871
- for (const child of [].concat(expression[key2]))
37872
- child && this.checkLVal(child, {
37873
- in: nextAncestor,
37874
- binding,
37875
- checkClashes,
37876
- strictModeChanged,
37877
- hasParenthesizedAncestor: isParenthesizedExpression
37878
- });
37905
+ } : ancestor, val = expression[key2];
37906
+ if (Array.isArray(val))
37907
+ for (const child of val)
37908
+ child && this.checkLVal(child, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression);
37909
+ else val && this.checkLVal(val, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression);
37879
37910
  }
37880
37911
  checkIdentifier(at, bindingType, strictModeChanged = !1) {
37881
37912
  this.state.strict && (strictModeChanged ? isStrictBindReservedWord(at.name, this.inModule) : isStrictBindOnlyReservedWord(at.name)) && (bindingType === 64 ? this.raise(Errors.StrictEvalArguments, at, {
@@ -37906,7 +37937,6 @@ function requireLib$1() {
37906
37937
  return this.match(12) ? (this.raise(this.lookaheadCharCode() === close ? Errors.RestTrailingComma : Errors.ElementAfterRest, this.state.startLoc), !0) : !1;
37907
37938
  }
37908
37939
  }
37909
- const getOwn = (object, key2) => hasOwnProperty.call(object, key2) && object[key2];
37910
37940
  function nonNull(x) {
37911
37941
  if (x == null)
37912
37942
  throw new Error(`Unexpected ${x} value.`);
@@ -39234,15 +39264,21 @@ function requireLib$1() {
39234
39264
  }
39235
39265
  }
39236
39266
  isValidLVal(type2, isUnparenthesizedInAssign, binding) {
39237
- return getOwn({
39238
- TSTypeCastExpression: !0,
39239
- TSParameterProperty: "parameter",
39240
- TSNonNullExpression: "expression",
39241
- TSInstantiationExpression: "expression",
39242
- TSAsExpression: (binding !== 64 || !isUnparenthesizedInAssign) && ["expression", !0],
39243
- TSSatisfiesExpression: (binding !== 64 || !isUnparenthesizedInAssign) && ["expression", !0],
39244
- TSTypeAssertion: (binding !== 64 || !isUnparenthesizedInAssign) && ["expression", !0]
39245
- }, type2) || super.isValidLVal(type2, isUnparenthesizedInAssign, binding);
39267
+ switch (type2) {
39268
+ case "TSTypeCastExpression":
39269
+ return !0;
39270
+ case "TSParameterProperty":
39271
+ return "parameter";
39272
+ case "TSNonNullExpression":
39273
+ case "TSInstantiationExpression":
39274
+ return "expression";
39275
+ case "TSAsExpression":
39276
+ case "TSSatisfiesExpression":
39277
+ case "TSTypeAssertion":
39278
+ return (binding !== 64 || !isUnparenthesizedInAssign) && ["expression", !0];
39279
+ default:
39280
+ return super.isValidLVal(type2, isUnparenthesizedInAssign, binding);
39281
+ }
39246
39282
  }
39247
39283
  parseBindingAtom() {
39248
39284
  return this.state.type === 78 ? this.parseIdentifier(!0) : super.parseBindingAtom();
@@ -39584,87 +39620,66 @@ function requireLib$1() {
39584
39620
  return this.parseV8Intrinsic() || super.parseExprAtom(refExpressionErrors);
39585
39621
  }
39586
39622
  };
39587
- function hasPlugin(plugins, expectedConfig) {
39588
- const [expectedName, expectedOptions] = typeof expectedConfig == "string" ? [expectedConfig, {}] : expectedConfig, expectedKeys = Object.keys(expectedOptions), expectedOptionsIsEmpty = expectedKeys.length === 0;
39589
- return plugins.some((p) => {
39590
- if (typeof p == "string")
39591
- return expectedOptionsIsEmpty && p === expectedName;
39592
- {
39593
- const [pluginName, pluginOptions] = p;
39594
- if (pluginName !== expectedName)
39595
- return !1;
39596
- for (const key2 of expectedKeys)
39597
- if (pluginOptions[key2] !== expectedOptions[key2])
39598
- return !1;
39599
- return !0;
39600
- }
39601
- });
39602
- }
39603
- function getPluginOption(plugins, name, option) {
39604
- const plugin = plugins.find((plugin2) => Array.isArray(plugin2) ? plugin2[0] === name : plugin2 === name);
39605
- return plugin && Array.isArray(plugin) && plugin.length > 1 ? plugin[1][option] : null;
39606
- }
39607
39623
  const PIPELINE_PROPOSALS = ["minimal", "fsharp", "hack", "smart"], TOPIC_TOKENS = ["^^", "@@", "^", "%", "#"];
39608
- function validatePlugins(plugins) {
39609
- if (hasPlugin(plugins, "decorators")) {
39610
- if (hasPlugin(plugins, "decorators-legacy"))
39624
+ function validatePlugins(pluginsMap) {
39625
+ if (pluginsMap.has("decorators")) {
39626
+ if (pluginsMap.has("decorators-legacy"))
39611
39627
  throw new Error("Cannot use the decorators and decorators-legacy plugin together");
39612
- const decoratorsBeforeExport = getPluginOption(plugins, "decorators", "decoratorsBeforeExport");
39628
+ const decoratorsBeforeExport = pluginsMap.get("decorators").decoratorsBeforeExport;
39613
39629
  if (decoratorsBeforeExport != null && typeof decoratorsBeforeExport != "boolean")
39614
39630
  throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");
39615
- const allowCallParenthesized = getPluginOption(plugins, "decorators", "allowCallParenthesized");
39631
+ const allowCallParenthesized = pluginsMap.get("decorators").allowCallParenthesized;
39616
39632
  if (allowCallParenthesized != null && typeof allowCallParenthesized != "boolean")
39617
39633
  throw new Error("'allowCallParenthesized' must be a boolean.");
39618
39634
  }
39619
- if (hasPlugin(plugins, "flow") && hasPlugin(plugins, "typescript"))
39635
+ if (pluginsMap.has("flow") && pluginsMap.has("typescript"))
39620
39636
  throw new Error("Cannot combine flow and typescript plugins.");
39621
- if (hasPlugin(plugins, "placeholders") && hasPlugin(plugins, "v8intrinsic"))
39637
+ if (pluginsMap.has("placeholders") && pluginsMap.has("v8intrinsic"))
39622
39638
  throw new Error("Cannot combine placeholders and v8intrinsic plugins.");
39623
- if (hasPlugin(plugins, "pipelineOperator")) {
39624
- const proposal = getPluginOption(plugins, "pipelineOperator", "proposal");
39639
+ if (pluginsMap.has("pipelineOperator")) {
39640
+ var _pluginsMap$get;
39641
+ const proposal = pluginsMap.get("pipelineOperator").proposal;
39625
39642
  if (!PIPELINE_PROPOSALS.includes(proposal)) {
39626
39643
  const proposalList = PIPELINE_PROPOSALS.map((p) => `"${p}"`).join(", ");
39627
39644
  throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${proposalList}.`);
39628
39645
  }
39629
- const recordAndTupleConfigItem = ["recordAndTuple", {
39630
- syntaxType: "hash"
39631
- }], tupleSyntaxIsHash = hasPlugin(plugins, recordAndTupleConfigItem);
39646
+ const tupleSyntaxIsHash = ((_pluginsMap$get = pluginsMap.get("recordAndTuple")) == null ? void 0 : _pluginsMap$get.syntaxType) === "hash";
39632
39647
  if (proposal === "hack") {
39633
- if (hasPlugin(plugins, "placeholders"))
39648
+ if (pluginsMap.has("placeholders"))
39634
39649
  throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");
39635
- if (hasPlugin(plugins, "v8intrinsic"))
39650
+ if (pluginsMap.has("v8intrinsic"))
39636
39651
  throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");
39637
- const topicToken = getPluginOption(plugins, "pipelineOperator", "topicToken");
39652
+ const topicToken = pluginsMap.get("pipelineOperator").topicToken;
39638
39653
  if (!TOPIC_TOKENS.includes(topicToken)) {
39639
39654
  const tokenList = TOPIC_TOKENS.map((t) => `"${t}"`).join(", ");
39640
39655
  throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${tokenList}.`);
39641
39656
  }
39642
39657
  if (topicToken === "#" && tupleSyntaxIsHash)
39643
- throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(recordAndTupleConfigItem)}\`.`);
39658
+ throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple", pluginsMap.get("recordAndTuple")])}\`.`);
39644
39659
  } else if (proposal === "smart" && tupleSyntaxIsHash)
39645
- throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(recordAndTupleConfigItem)}\`.`);
39660
+ throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple", pluginsMap.get("recordAndTuple")])}\`.`);
39646
39661
  }
39647
- if (hasPlugin(plugins, "moduleAttributes")) {
39648
- if (hasPlugin(plugins, "importAssertions") || hasPlugin(plugins, "importAttributes"))
39662
+ if (pluginsMap.has("moduleAttributes")) {
39663
+ if (pluginsMap.has("importAttributes") || pluginsMap.has("importAssertions"))
39649
39664
  throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");
39650
- if (getPluginOption(plugins, "moduleAttributes", "version") !== "may-2020")
39665
+ if (pluginsMap.get("moduleAttributes").version !== "may-2020")
39651
39666
  throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.");
39652
39667
  }
39653
- if (hasPlugin(plugins, "importAssertions") && hasPlugin(plugins, "importAttributes"))
39668
+ if (pluginsMap.has("importAttributes") && pluginsMap.has("importAssertions"))
39654
39669
  throw new Error("Cannot combine importAssertions and importAttributes plugins.");
39655
- if (hasPlugin(plugins, "recordAndTuple")) {
39656
- const syntaxType = getPluginOption(plugins, "recordAndTuple", "syntaxType");
39670
+ if (pluginsMap.has("recordAndTuple")) {
39671
+ const syntaxType = pluginsMap.get("recordAndTuple").syntaxType;
39657
39672
  if (syntaxType != null) {
39658
39673
  const RECORD_AND_TUPLE_SYNTAX_TYPES = ["hash", "bar"];
39659
39674
  if (!RECORD_AND_TUPLE_SYNTAX_TYPES.includes(syntaxType))
39660
39675
  throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + RECORD_AND_TUPLE_SYNTAX_TYPES.map((p) => `'${p}'`).join(", "));
39661
39676
  }
39662
39677
  }
39663
- if (hasPlugin(plugins, "asyncDoExpressions") && !hasPlugin(plugins, "doExpressions")) {
39678
+ if (pluginsMap.has("asyncDoExpressions") && !pluginsMap.has("doExpressions")) {
39664
39679
  const error2 = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");
39665
39680
  throw error2.missingPlugins = "doExpressions", error2;
39666
39681
  }
39667
- if (hasPlugin(plugins, "optionalChainingAssign") && getPluginOption(plugins, "optionalChainingAssign", "version") !== "2023-07")
39682
+ if (pluginsMap.has("optionalChainingAssign") && pluginsMap.get("optionalChainingAssign").version !== "2023-07")
39668
39683
  throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");
39669
39684
  }
39670
39685
  const mixinPlugins = {
@@ -39772,9 +39787,7 @@ function requireLib$1() {
39772
39787
  refExpressionErrors.doubleProtoLoc != null && refExpressionErrors.doubleProtoLoc.index >= startIndex && (refExpressionErrors.doubleProtoLoc = null), refExpressionErrors.shorthandAssignLoc != null && refExpressionErrors.shorthandAssignLoc.index >= startIndex && (refExpressionErrors.shorthandAssignLoc = null), refExpressionErrors.privateKeyLoc != null && refExpressionErrors.privateKeyLoc.index >= startIndex && (this.checkDestructuringPrivate(refExpressionErrors), refExpressionErrors.privateKeyLoc = null);
39773
39788
  } else
39774
39789
  node2.left = left2;
39775
- return this.next(), node2.right = this.parseMaybeAssign(), this.checkLVal(left2, {
39776
- in: this.finishNode(node2, "AssignmentExpression")
39777
- }), node2;
39790
+ return this.next(), node2.right = this.parseMaybeAssign(), this.checkLVal(left2, this.finishNode(node2, "AssignmentExpression")), node2;
39778
39791
  } else ownExpressionErrors && this.checkExpressionErrors(refExpressionErrors, !0);
39779
39792
  return left2;
39780
39793
  }
@@ -39866,7 +39879,7 @@ function requireLib$1() {
39866
39879
  }
39867
39880
  parseMaybeUnary(refExpressionErrors, sawUnary) {
39868
39881
  const startLoc = this.state.startLoc, isAwait = this.isContextual(96);
39869
- if (isAwait && this.isAwaitAllowed()) {
39882
+ if (isAwait && this.recordAwaitIfAllowed()) {
39870
39883
  this.next();
39871
39884
  const expr2 = this.parseAwait(startLoc);
39872
39885
  return sawUnary || this.checkExponentialAfterUnary(expr2), expr2;
@@ -39895,18 +39908,14 @@ function requireLib$1() {
39895
39908
  parseUpdate(node2, update, refExpressionErrors) {
39896
39909
  if (update) {
39897
39910
  const updateExpressionNode = node2;
39898
- return this.checkLVal(updateExpressionNode.argument, {
39899
- in: this.finishNode(updateExpressionNode, "UpdateExpression")
39900
- }), node2;
39911
+ return this.checkLVal(updateExpressionNode.argument, this.finishNode(updateExpressionNode, "UpdateExpression")), node2;
39901
39912
  }
39902
39913
  const startLoc = this.state.startLoc;
39903
39914
  let expr = this.parseExprSubscripts(refExpressionErrors);
39904
39915
  if (this.checkExpressionErrors(refExpressionErrors, !1)) return expr;
39905
39916
  for (; tokenIsPostfix(this.state.type) && !this.canInsertSemicolon(); ) {
39906
39917
  const node3 = this.startNodeAt(startLoc);
39907
- node3.operator = this.state.value, node3.prefix = !1, node3.argument = expr, this.next(), this.checkLVal(expr, {
39908
- in: expr = this.finishNode(node3, "UpdateExpression")
39909
- });
39918
+ node3.operator = this.state.value, node3.prefix = !1, node3.argument = expr, this.next(), this.checkLVal(expr, expr = this.finishNode(node3, "UpdateExpression"));
39910
39919
  }
39911
39920
  return expr;
39912
39921
  }
@@ -40509,12 +40518,7 @@ function requireLib$1() {
40509
40518
  type: "FormalParameters"
40510
40519
  };
40511
40520
  for (const param of node2.params)
40512
- this.checkLVal(param, {
40513
- in: formalParameters,
40514
- binding: 5,
40515
- checkClashes,
40516
- strictModeChanged
40517
- });
40521
+ this.checkLVal(param, formalParameters, 5, checkClashes, strictModeChanged);
40518
40522
  }
40519
40523
  parseExprList(close, allowEmpty, refExpressionErrors, nodeForExtra) {
40520
40524
  const elts = [];
@@ -40598,8 +40602,9 @@ function requireLib$1() {
40598
40602
  return;
40599
40603
  }
40600
40604
  }
40601
- isAwaitAllowed() {
40602
- return !!(this.prodParam.hasAwait || this.options.allowAwaitOutsideFunction && !this.scope.inFunction);
40605
+ recordAwaitIfAllowed() {
40606
+ const isAwaitAllowed = this.prodParam.hasAwait || this.options.allowAwaitOutsideFunction && !this.scope.inFunction;
40607
+ return isAwaitAllowed && !this.scope.inFunction && (this.state.hasTopLevelAwait = !0), isAwaitAllowed;
40603
40608
  }
40604
40609
  parseAwait(startLoc) {
40605
40610
  const node2 = this.startNodeAt(startLoc);
@@ -40856,11 +40861,14 @@ function requireLib$1() {
40856
40861
  return file2.program = this.parseProgram(program), file2.comments = this.comments, this.options.tokens && (file2.tokens = babel7CompatTokens(this.tokens, this.input)), this.finishNode(file2, "File");
40857
40862
  }
40858
40863
  parseProgram(program, end2 = 139, sourceType = this.options.sourceType) {
40859
- if (program.sourceType = sourceType, program.interpreter = this.parseInterpreterDirective(), this.parseBlockBody(program, !0, !0, end2), this.inModule && !this.options.allowUndeclaredExports && this.scope.undefinedExports.size > 0)
40860
- for (const [localName, at] of Array.from(this.scope.undefinedExports))
40861
- this.raise(Errors.ModuleExportUndefined, at, {
40862
- localName
40863
- });
40864
+ if (program.sourceType = sourceType, program.interpreter = this.parseInterpreterDirective(), this.parseBlockBody(program, !0, !0, end2), this.inModule) {
40865
+ if (!this.options.allowUndeclaredExports && this.scope.undefinedExports.size > 0)
40866
+ for (const [localName, at] of Array.from(this.scope.undefinedExports))
40867
+ this.raise(Errors.ModuleExportUndefined, at, {
40868
+ localName
40869
+ });
40870
+ this.addExtra(program, "topLevelAwait", this.state.hasTopLevelAwait);
40871
+ }
40864
40872
  let finishedProgram;
40865
40873
  return end2 === 139 ? finishedProgram = this.finishNode(program, "Program") : finishedProgram = this.finishNodeAt(program, "Program", createPositionWithColumnOffset(this.state.startLoc, -1)), finishedProgram;
40866
40874
  }
@@ -40938,8 +40946,8 @@ function requireLib$1() {
40938
40946
  return this.match(26) && (decorators = this.parseDecorators(!0)), this.parseStatementContent(flags, decorators);
40939
40947
  }
40940
40948
  parseStatementContent(flags, decorators) {
40941
- const starttype = this.state.type, node2 = this.startNode(), allowDeclaration = !!(flags & 2), allowFunctionDeclaration = !!(flags & 4), topLevel = flags & 1;
40942
- switch (starttype) {
40949
+ const startType = this.state.type, node2 = this.startNode(), allowDeclaration = !!(flags & 2), allowFunctionDeclaration = !!(flags & 4), topLevel = flags & 1;
40950
+ switch (startType) {
40943
40951
  case 60:
40944
40952
  return this.parseBreakContinueStatement(node2, !0);
40945
40953
  case 63:
@@ -40967,7 +40975,7 @@ function requireLib$1() {
40967
40975
  return this.parseTryStatement(node2);
40968
40976
  case 96:
40969
40977
  if (!this.state.containsEsc && this.startsAwaitUsing())
40970
- return this.isAwaitAllowed() ? allowDeclaration || this.raise(Errors.UnexpectedLexicalDeclaration, node2) : this.raise(Errors.AwaitUsingNotInAsyncContext, node2), this.next(), this.parseVarStatement(node2, "await using");
40978
+ return this.recordAwaitIfAllowed() ? allowDeclaration || this.raise(Errors.UnexpectedLexicalDeclaration, node2) : this.raise(Errors.AwaitUsingNotInAsyncContext, node2), this.next(), this.parseVarStatement(node2, "await using");
40971
40979
  break;
40972
40980
  case 107:
40973
40981
  if (this.state.containsEsc || !this.hasInLineFollowingBindingIdentifierOrBrace())
@@ -41002,14 +41010,14 @@ function requireLib$1() {
41002
41010
  case 82: {
41003
41011
  !this.options.allowImportExportEverywhere && !topLevel && this.raise(Errors.UnexpectedImportExport, this.state.startLoc), this.next();
41004
41012
  let result;
41005
- return starttype === 83 ? (result = this.parseImport(node2), result.type === "ImportDeclaration" && (!result.importKind || result.importKind === "value") && (this.sawUnambiguousESM = !0)) : (result = this.parseExport(node2, decorators), (result.type === "ExportNamedDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportAllDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportDefaultDeclaration") && (this.sawUnambiguousESM = !0)), this.assertModuleNodeAllowed(result), result;
41013
+ return startType === 83 ? (result = this.parseImport(node2), result.type === "ImportDeclaration" && (!result.importKind || result.importKind === "value") && (this.sawUnambiguousESM = !0)) : (result = this.parseExport(node2, decorators), (result.type === "ExportNamedDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportAllDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportDefaultDeclaration") && (this.sawUnambiguousESM = !0)), this.assertModuleNodeAllowed(result), result;
41006
41014
  }
41007
41015
  default:
41008
41016
  if (this.isAsyncFunction())
41009
41017
  return allowDeclaration || this.raise(Errors.AsyncFunctionInSingleStatementContext, this.state.startLoc), this.next(), this.parseFunctionStatement(node2, !0, !allowDeclaration && allowFunctionDeclaration);
41010
41018
  }
41011
41019
  const maybeName = this.state.value, expr = this.parseExpression();
41012
- return tokenIsIdentifier(starttype) && expr.type === "Identifier" && this.eat(14) ? this.parseLabeledStatement(node2, maybeName, expr, flags) : this.parseExpressionStatement(node2, expr, decorators);
41020
+ return tokenIsIdentifier(startType) && expr.type === "Identifier" && this.eat(14) ? this.parseLabeledStatement(node2, maybeName, expr, flags) : this.parseExpressionStatement(node2, expr, decorators);
41013
41021
  }
41014
41022
  assertModuleNodeAllowed(node2) {
41015
41023
  !this.options.allowImportExportEverywhere && !this.inModule && this.raise(Errors.ImportOutsideModule, node2);
@@ -41094,7 +41102,7 @@ function requireLib$1() {
41094
41102
  parseForStatement(node2) {
41095
41103
  this.next(), this.state.labels.push(loopLabel);
41096
41104
  let awaitAt = null;
41097
- if (this.isAwaitAllowed() && this.eatContextual(96) && (awaitAt = this.state.lastTokStartLoc), this.scope.enter(0), this.expect(10), this.match(13))
41105
+ if (this.isContextual(96) && this.recordAwaitIfAllowed() && (awaitAt = this.state.startLoc, this.next()), this.scope.enter(0), this.expect(10), this.match(13))
41098
41106
  return awaitAt !== null && this.unexpected(awaitAt), this.parseFor(node2, null);
41099
41107
  const startsWithLet = this.isContextual(100);
41100
41108
  {
@@ -41102,7 +41110,7 @@ function requireLib$1() {
41102
41110
  if (this.match(74) || this.match(75) || isLetOrUsing) {
41103
41111
  const initNode = this.startNode();
41104
41112
  let kind;
41105
- startsWithAwaitUsing ? (kind = "await using", this.isAwaitAllowed() || this.raise(Errors.AwaitUsingNotInAsyncContext, this.state.startLoc), this.next()) : kind = this.state.value, this.next(), this.parseVar(initNode, !0, kind);
41113
+ startsWithAwaitUsing ? (kind = "await using", this.recordAwaitIfAllowed() || this.raise(Errors.AwaitUsingNotInAsyncContext, this.state.startLoc), this.next()) : kind = this.state.value, this.next(), this.parseVar(initNode, !0, kind);
41106
41114
  const init2 = this.finishNode(initNode, "VariableDeclaration"), isForIn = this.match(58);
41107
41115
  return isForIn && starsWithUsingDeclaration && this.raise(Errors.ForInUsing, init2), (isForIn || this.isContextual(102)) && init2.declarations.length === 1 ? this.parseForIn(node2, init2, awaitAt) : (awaitAt !== null && this.unexpected(awaitAt), this.parseFor(node2, init2));
41108
41116
  }
@@ -41112,9 +41120,7 @@ function requireLib$1() {
41112
41120
  this.checkDestructuringPrivate(refExpressionErrors), this.toAssignable(init, !0);
41113
41121
  const type2 = isForOf ? "ForOfStatement" : "ForInStatement";
41114
41122
  return this.checkLVal(init, {
41115
- in: {
41116
- type: type2
41117
- }
41123
+ type: type2
41118
41124
  }), this.parseForIn(node2, init, awaitAt);
41119
41125
  } else
41120
41126
  this.checkExpressionErrors(refExpressionErrors, !0);
@@ -41148,11 +41154,8 @@ function requireLib$1() {
41148
41154
  parseCatchClauseParam() {
41149
41155
  const param = this.parseBindingAtom();
41150
41156
  return this.scope.enter(this.options.annexB && param.type === "Identifier" ? 8 : 0), this.checkLVal(param, {
41151
- in: {
41152
- type: "CatchClause"
41153
- },
41154
- binding: 9
41155
- }), param;
41157
+ type: "CatchClause"
41158
+ }, 9), param;
41156
41159
  }
41157
41160
  parseTryStatement(node2) {
41158
41161
  if (this.next(), node2.block = this.parseBlock(), node2.handler = null, this.match(62)) {
@@ -41251,11 +41254,8 @@ function requireLib$1() {
41251
41254
  parseVarId(decl, kind) {
41252
41255
  const id = this.parseBindingAtom();
41253
41256
  (kind === "using" || kind === "await using") && (id.type === "ArrayPattern" || id.type === "ObjectPattern") && this.raise(Errors.UsingDeclarationHasBindingPattern, id.loc.start), this.checkLVal(id, {
41254
- in: {
41255
- type: "VariableDeclarator"
41256
- },
41257
- binding: kind === "var" ? 5 : 8201
41258
- }), decl.id = id;
41257
+ type: "VariableDeclarator"
41258
+ }, kind === "var" ? 5 : 8201), decl.id = id;
41259
41259
  }
41260
41260
  parseAsyncFunctionExpression(node2) {
41261
41261
  return this.parseFunction(node2, 8);
@@ -41727,11 +41727,8 @@ function requireLib$1() {
41727
41727
  }
41728
41728
  finishImportSpecifier(specifier, type2, bindingType = 8201) {
41729
41729
  return this.checkLVal(specifier.local, {
41730
- in: {
41731
- type: type2
41732
- },
41733
- binding: bindingType
41734
- }), this.finishNode(specifier, type2);
41730
+ type: type2
41731
+ }, bindingType), this.finishNode(specifier, type2);
41735
41732
  }
41736
41733
  parseImportAttributes() {
41737
41734
  this.expect(5);
@@ -41826,8 +41823,8 @@ function requireLib$1() {
41826
41823
  }
41827
41824
  }
41828
41825
  class Parser2 extends StatementParser {
41829
- constructor(options2, input2) {
41830
- options2 = getOptions(options2), super(options2, input2), this.options = options2, this.initializeScopes(), this.plugins = pluginsMap(this.options.plugins), this.filename = options2.sourceFilename;
41826
+ constructor(options2, input2, pluginsMap) {
41827
+ options2 = getOptions(options2), super(options2, input2), this.options = options2, this.initializeScopes(), this.plugins = pluginsMap, this.filename = options2.sourceFilename;
41831
41828
  }
41832
41829
  getScopeHandler() {
41833
41830
  return ScopeHandler;
@@ -41838,14 +41835,6 @@ function requireLib$1() {
41838
41835
  return this.nextToken(), file2.errors = null, this.parseTopLevel(file2, program), file2.errors = this.state.errors, file2.comments.length = this.state.commentsLen, file2;
41839
41836
  }
41840
41837
  }
41841
- function pluginsMap(plugins) {
41842
- const pluginMap = /* @__PURE__ */ new Map();
41843
- for (const plugin of plugins) {
41844
- const [name, options2] = Array.isArray(plugin) ? plugin : [plugin, {}];
41845
- pluginMap.has(name) || pluginMap.set(name, options2 || {});
41846
- }
41847
- return pluginMap;
41848
- }
41849
41838
  function parse3(input2, options2) {
41850
41839
  var _options;
41851
41840
  if (((_options = options2) == null ? void 0 : _options.sourceType) === "unambiguous") {
@@ -41886,17 +41875,28 @@ function requireLib$1() {
41886
41875
  const tokTypes = generateExportedTokenTypes(tt);
41887
41876
  function getParser(options2, input2) {
41888
41877
  let cls = Parser2;
41889
- return options2 != null && options2.plugins && (validatePlugins(options2.plugins), cls = getParserClass(options2.plugins)), new cls(options2, input2);
41890
- }
41891
- const parserClassCache = {};
41892
- function getParserClass(pluginsFromOptions) {
41893
- const pluginList = mixinPluginNames.filter((name) => hasPlugin(pluginsFromOptions, name)), key2 = pluginList.join("/");
41894
- let cls = parserClassCache[key2];
41878
+ const pluginsMap = /* @__PURE__ */ new Map();
41879
+ if (options2 != null && options2.plugins) {
41880
+ for (const plugin of options2.plugins) {
41881
+ let name, opts;
41882
+ typeof plugin == "string" ? name = plugin : [name, opts] = plugin, pluginsMap.has(name) || pluginsMap.set(name, opts || {});
41883
+ }
41884
+ validatePlugins(pluginsMap), cls = getParserClass(pluginsMap);
41885
+ }
41886
+ return new cls(options2, input2, pluginsMap);
41887
+ }
41888
+ const parserClassCache = /* @__PURE__ */ new Map();
41889
+ function getParserClass(pluginsMap) {
41890
+ const pluginList = [];
41891
+ for (const name of mixinPluginNames)
41892
+ pluginsMap.has(name) && pluginList.push(name);
41893
+ const key2 = pluginList.join("|");
41894
+ let cls = parserClassCache.get(key2);
41895
41895
  if (!cls) {
41896
41896
  cls = Parser2;
41897
41897
  for (const plugin of pluginList)
41898
41898
  cls = mixinPlugins[plugin](cls);
41899
- parserClassCache[key2] = cls;
41899
+ parserClassCache.set(key2, cls);
41900
41900
  }
41901
41901
  return cls;
41902
41902
  }
@@ -42501,7 +42501,7 @@ var sync, hasRequiredSync;
42501
42501
  function requireSync() {
42502
42502
  if (hasRequiredSync) return sync;
42503
42503
  hasRequiredSync = 1, sync = globSync, globSync.GlobSync = GlobSync;
42504
- var rp = fs_realpath, minimatch2 = minimatch_1$2;
42504
+ var rp = requireFs_realpath(), minimatch2 = minimatch_1$2;
42505
42505
  requireGlob().Glob;
42506
42506
  var path2 = require$$0__default.default, assert2 = require$$5__default.default, isAbsolute2 = requirePathIsAbsolute(), common2 = requireCommon(), setopts2 = common2.setopts, ownProp2 = common2.ownProp, childrenIgnored2 = common2.childrenIgnored, isIgnored2 = common2.isIgnored;
42507
42507
  function globSync(pattern, options2) {
@@ -42733,7 +42733,7 @@ var glob_1, hasRequiredGlob;
42733
42733
  function requireGlob() {
42734
42734
  if (hasRequiredGlob) return glob_1;
42735
42735
  hasRequiredGlob = 1, glob_1 = glob2;
42736
- var rp = fs_realpath, minimatch2 = minimatch_1$2, inherits2 = inheritsExports, EE2 = require$$3__default.default.EventEmitter, path2 = require$$0__default.default, assert2 = require$$5__default.default, isAbsolute2 = requirePathIsAbsolute(), globSync = requireSync(), common2 = requireCommon(), setopts2 = common2.setopts, ownProp2 = common2.ownProp, inflight2 = inflight_1, childrenIgnored2 = common2.childrenIgnored, isIgnored2 = common2.isIgnored, once2 = onceExports;
42736
+ var rp = requireFs_realpath(), minimatch2 = minimatch_1$2, inherits2 = inheritsExports, EE2 = require$$3__default.default.EventEmitter, path2 = require$$0__default.default, assert2 = require$$5__default.default, isAbsolute2 = requirePathIsAbsolute(), globSync = requireSync(), common2 = requireCommon(), setopts2 = common2.setopts, ownProp2 = common2.ownProp, inflight = requireInflight(), childrenIgnored2 = common2.childrenIgnored, isIgnored2 = common2.isIgnored, once2 = requireOnce();
42737
42737
  function glob2(pattern, options2, cb) {
42738
42738
  if (typeof options2 == "function" && (cb = options2, options2 = {}), options2 || (options2 = {}), options2.sync) {
42739
42739
  if (cb)
@@ -42935,7 +42935,7 @@ function requireGlob() {
42935
42935
  return;
42936
42936
  if (this.follow)
42937
42937
  return this._readdir(abs, !1, cb);
42938
- var lstatkey = "lstat\0" + abs, self2 = this, lstatcb = inflight2(lstatkey, lstatcb_);
42938
+ var lstatkey = "lstat\0" + abs, self2 = this, lstatcb = inflight(lstatkey, lstatcb_);
42939
42939
  lstatcb && self2.fs.lstat(abs, lstatcb);
42940
42940
  function lstatcb_(er, lstat) {
42941
42941
  if (er && er.code === "ENOENT")
@@ -42944,7 +42944,7 @@ function requireGlob() {
42944
42944
  self2.symlinks[abs] = isSym, !isSym && lstat && !lstat.isDirectory() ? (self2.cache[abs] = "FILE", cb()) : self2._readdir(abs, !1, cb);
42945
42945
  }
42946
42946
  }, Glob.prototype._readdir = function(abs, inGlobStar, cb) {
42947
- if (!this.aborted && (cb = inflight2("readdir\0" + abs + "\0" + inGlobStar, cb), !!cb)) {
42947
+ if (!this.aborted && (cb = inflight("readdir\0" + abs + "\0" + inGlobStar, cb), !!cb)) {
42948
42948
  if (inGlobStar && !ownProp2(this.symlinks, abs))
42949
42949
  return this._readdirInGlobStar(abs, cb);
42950
42950
  if (ownProp2(this.cache, abs)) {
@@ -43049,7 +43049,7 @@ function requireGlob() {
43049
43049
  var type2 = stat.isDirectory() ? "DIR" : "FILE";
43050
43050
  return needDir && type2 === "FILE" ? cb() : cb(null, type2, stat);
43051
43051
  }
43052
- var self2 = this, statcb = inflight2("stat\0" + abs, lstatcb_);
43052
+ var self2 = this, statcb = inflight("stat\0" + abs, lstatcb_);
43053
43053
  statcb && self2.fs.lstat(abs, statcb);
43054
43054
  function lstatcb_(er, lstat) {
43055
43055
  if (lstat && lstat.isSymbolicLink())
@@ -43403,7 +43403,7 @@ async function pathExists(filePath) {
43403
43403
  }
43404
43404
  function writeJson$1(filePath, content) {
43405
43405
  const serialized = JSON.stringify(content, null, 2);
43406
- return fs$q.writeFile(filePath, serialized, "utf8");
43406
+ return fs$o.writeFile(filePath, serialized, "utf8");
43407
43407
  }
43408
43408
  const isCI$1 = process.env.CI;
43409
43409
  async function reconfigureV2Project(args, context) {
@@ -44318,7 +44318,7 @@ You can find your project on Sanity Manage \u2014 https://www.sanity.io/manage/p
44318
44318
  if (embeddedStudio) {
44319
44319
  const appDir = "app";
44320
44320
  let srcPath = path__default.default.join(workDir, appDir);
44321
- fs$r.existsSync(srcPath) || (srcPath = path__default.default.join(workDir, "src", appDir), hasSrcFolder = !0, fs$r.existsSync(srcPath) || await fs__default$1.default.mkdir(srcPath, { recursive: !0 }).catch(() => loadEnv.debug("Error creating folder %s", srcPath)));
44321
+ fs$p.existsSync(srcPath) || (srcPath = path__default.default.join(workDir, "src", appDir), hasSrcFolder = !0, fs$p.existsSync(srcPath) || await fs__default$1.default.mkdir(srcPath, { recursive: !0 }).catch(() => loadEnv.debug("Error creating folder %s", srcPath)));
44322
44322
  const studioPath = unattended ? "/studio" : await promptForStudioPath(prompt2), embeddedStudioRouteFilePath = path__default.default.join(
44323
44323
  srcPath,
44324
44324
  `${studioPath}/`,
@@ -44356,8 +44356,8 @@ You can find your project on Sanity Manage \u2014 https://www.sanity.io/manage/p
44356
44356
  }, templateToUse = unattended ? "clean" : await promptForNextTemplate(prompt2);
44357
44357
  await writeSourceFiles(sanityFolder(useTypeScript2, templateToUse), void 0, hasSrcFolder);
44358
44358
  const tsConfigPath = path__default.default.join(workDir, "tsconfig.json");
44359
- if (useTypeScript2 && fs$r.existsSync(tsConfigPath)) {
44360
- const tsConfigFile = fs$r.readFileSync(tsConfigPath, "utf8"), config2 = silverFleece.evaluate(tsConfigFile);
44359
+ if (useTypeScript2 && fs$p.existsSync(tsConfigPath)) {
44360
+ const tsConfigFile = fs$p.readFileSync(tsConfigPath, "utf8"), config2 = silverFleece.evaluate(tsConfigFile);
44361
44361
  if (config2.compilerOptions.target?.toLowerCase() !== "es2017") {
44362
44362
  config2.compilerOptions.target = "ES2017";
44363
44363
  const newConfig = silverFleece.patch(tsConfigFile, config2);
@@ -44395,7 +44395,7 @@ ${chalk2.green("Success!")} Your Sanity configuration files has been added to th
44395
44395
  return path2.split(separator2).filter(Boolean).length;
44396
44396
  }
44397
44397
  async function writeOrOverwrite(filePath, content) {
44398
- if (fs$r.existsSync(filePath) && !await prompt2.single({
44398
+ if (fs$p.existsSync(filePath) && !await prompt2.single({
44399
44399
  type: "confirm",
44400
44400
  message: `File ${chalk2.yellow(
44401
44401
  filePath.replace(workDir, "")
@@ -45661,11 +45661,11 @@ Use npm-check-updates or similar (https://www.npmjs.com/package/npm-check-update
45661
45661
  });
45662
45662
  };
45663
45663
  function writeJson(filePath, data) {
45664
- return fs$r.promises.writeFile(filePath, `${JSON.stringify(data, null, 2)}
45664
+ return fs$p.promises.writeFile(filePath, `${JSON.stringify(data, null, 2)}
45665
45665
  `);
45666
45666
  }
45667
45667
  async function deleteIfNotSymlink(modPath) {
45668
- const stats = await fs$r.promises.lstat(modPath).catch(lodashExports.noop);
45668
+ const stats = await fs$p.promises.lstat(modPath).catch(lodashExports.noop);
45669
45669
  return !stats || stats.isSymbolicLink() ? null : rimraf(modPath);
45670
45670
  }
45671
45671
  function hasSemverBreakingUpgrade(mod) {
@@ -45737,7 +45737,7 @@ function getModulePath(modName, fromPath) {
45737
45737
  }
45738
45738
  async function readLocalManifest(dirName, fileName = "package.json") {
45739
45739
  try {
45740
- const content = await fs$r.promises.readFile(path__default.default.join(dirName, fileName), "utf8");
45740
+ const content = await fs$p.promises.readFile(path__default.default.join(dirName, fileName), "utf8");
45741
45741
  return JSON.parse(content);
45742
45742
  } catch (err) {
45743
45743
  if (err.code === "ENOENT")
@@ -49276,7 +49276,7 @@ BufferList$1.prototype.get = function get(index) {
49276
49276
  const offset = this._offset(index);
49277
49277
  return this._bufs[offset[0]][offset[1]];
49278
49278
  };
49279
- BufferList$1.prototype.slice = function slice2(start, end2) {
49279
+ BufferList$1.prototype.slice = function slice(start, end2) {
49280
49280
  return typeof start == "number" && start < 0 && (start += this.length), typeof end2 == "number" && end2 < 0 && (end2 += this.length), this.copy(null, 0, start, end2);
49281
49281
  };
49282
49282
  BufferList$1.prototype.copy = function copy2(dst, dstStart, srcStart, srcEnd) {
@@ -71329,10 +71329,10 @@ function requireTmp() {
71329
71329
  function setGracefulCleanup() {
71330
71330
  _gracefulCleanup = !0;
71331
71331
  }
71332
- const version2 = process.versions.node.split(".").map(function(value) {
71332
+ const version = process.versions.node.split(".").map(function(value) {
71333
71333
  return parseInt(value, 10);
71334
71334
  });
71335
- return version2[0] === 0 && (version2[1] < 9 || version2[1] === 9 && version2[2] < 5) && process.addListener("uncaughtException", function(err) {
71335
+ return version[0] === 0 && (version[1] < 9 || version[1] === 9 && version[2] < 5) && process.addListener("uncaughtException", function(err) {
71336
71336
  throw _uncaughtException = !0, _garbageCollector(), err;
71337
71337
  }), process.addListener("exit", function(code) {
71338
71338
  code && (_uncaughtException = !0), _garbageCollector();
@@ -71848,7 +71848,7 @@ function parseArguments(argv = process.argv) {
71848
71848
  d,
71849
71849
  debug: debug2,
71850
71850
  v,
71851
- version: version2,
71851
+ version,
71852
71852
  "--": extraArguments,
71853
71853
  ...extOptions
71854
71854
  } = minimist$1(argv.slice(2), {
@@ -71869,7 +71869,7 @@ function parseArguments(argv = process.argv) {
71869
71869
  d,
71870
71870
  debug: debug2,
71871
71871
  v,
71872
- version: version2
71872
+ version
71873
71873
  }
71874
71874
  };
71875
71875
  }
@@ -71953,7 +71953,7 @@ const MAX_BLOCKING_TIME = 300, TWELVE_HOURS = 1e3 * 60 * 60 * 12, isDisabled = i
71953
71953
  process.env.NO_UPDATE_NOTIFIER;
71954
71954
  function runUpdateCheck(options2) {
71955
71955
  loadEnv.debug("CLI installed at %s", __dirname);
71956
- const { pkg, cwd: cwd2, workDir } = options2, { name, version: version2 } = pkg, userConfig = getUserConfig(), check = getLatestRemote().catch(() => !1);
71956
+ const { pkg, cwd: cwd2, workDir } = options2, { name, version } = pkg, userConfig = getUserConfig(), check = getLatestRemote().catch(() => !1);
71957
71957
  let hasPrintedResult = !1;
71958
71958
  return { notify };
71959
71959
  async function notify() {
@@ -71969,7 +71969,7 @@ function runUpdateCheck(options2) {
71969
71969
  async function printCachedResult() {
71970
71970
  loadEnv.debug("Max time (%dms) reached waiting for latest version info", MAX_BLOCKING_TIME), hasPrintedResult = !0;
71971
71971
  const cached = userConfig.get("cliHasUpdate");
71972
- return cached ? semverCompare$1(cached, version2) <= 0 ? (loadEnv.debug("CLI was upgraded since last check, falling back"), userConfig.delete("cliHasUpdate"), !1) : (loadEnv.debug("Printing cached latest version result"), await printResult2(cached), !1) : (loadEnv.debug("No cached latest version result found"), !1);
71972
+ return cached ? semverCompare$1(cached, version) <= 0 ? (loadEnv.debug("CLI was upgraded since last check, falling back"), userConfig.delete("cliHasUpdate"), !1) : (loadEnv.debug("Printing cached latest version result"), await printResult2(cached), !1) : (loadEnv.debug("No cached latest version result found"), !1);
71973
71973
  }
71974
71974
  async function printResult2(newVersion) {
71975
71975
  hasPrintedResult = !0;
@@ -71978,13 +71978,13 @@ function runUpdateCheck(options2) {
71978
71978
  loadEnv.debug("Less than 12 hours since last nag, skipping");
71979
71979
  return;
71980
71980
  }
71981
- if (!newVersion || semverCompare$1(newVersion, version2) <= 0) {
71982
- loadEnv.debug(`New version is ${newVersion || "unknown"}, current is ${version2}. Falling back.`);
71981
+ if (!newVersion || semverCompare$1(newVersion, version) <= 0) {
71982
+ loadEnv.debug(`New version is ${newVersion || "unknown"}, current is ${version}. Falling back.`);
71983
71983
  return;
71984
71984
  }
71985
71985
  const upgradeCommand2 = await getCliUpgradeCommand({ cwd: cwd2, workDir }), message = [
71986
71986
  "Update available ",
71987
- chalk__default.default.dim(version2),
71987
+ chalk__default.default.dim(version),
71988
71988
  chalk__default.default.reset(" \u2192 "),
71989
71989
  chalk__default.default.green(newVersion),
71990
71990
  `
@@ -72018,7 +72018,7 @@ ${err.stack}`), !1;
72018
72018
  if (!latestRemote)
72019
72019
  return loadEnv.debug(`Failed to fetch latest version of ${name} from npm`), !1;
72020
72020
  userConfig.set("cliLastUpdateCheck", Date.now());
72021
- const diff = semverCompare$1(latestRemote, version2);
72021
+ const diff = semverCompare$1(latestRemote, version);
72022
72022
  return diff <= 0 ? (loadEnv.debug(diff === 0 ? "No update found" : "Remote version older than local"), userConfig.delete("cliHasUpdate"), !1) : (userConfig.set("cliHasUpdate", latestRemote), loadEnv.debug("Update is available (%s)", latestRemote), latestRemote);
72023
72023
  }
72024
72024
  }
@@ -72169,7 +72169,7 @@ function warnOnNonProductionEnvironment() {
72169
72169
  );
72170
72170
  }
72171
72171
  function loadAndSetEnvFromDotEnvFiles({ workDir, cmd }) {
72172
- if (fs$r.existsSync(path__default.default.join(workDir, "sanity.json"))) {
72172
+ if (fs$p.existsSync(path__default.default.join(workDir, "sanity.json"))) {
72173
72173
  loadEnv.debug("sanity.json exists, assuming v2 project and loading .env files using old behavior");
72174
72174
  const env = process.env.SANITY_ACTIVE_ENV || process.env.NODE_ENV || "development";
72175
72175
  loadEnv.debug("Loading environment files using %s mode", env), loadEnv.dotenv.config({ path: path__default.default.join(workDir, `.env.${env}`) });