"use strict";
/* Socket Lib - Built with esbuild */
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var flags_exports = {};
__export(flags_exports, {
  PNPM_INSTALL_LIKE_COMMANDS: () => PNPM_INSTALL_LIKE_COMMANDS,
  isPnpmFrozenLockfileFlag: () => isPnpmFrozenLockfileFlag,
  isPnpmIgnoreScriptsFlag: () => isPnpmIgnoreScriptsFlag,
  isPnpmInstallCommand: () => isPnpmInstallCommand,
  isPnpmLoglevelFlag: () => isPnpmLoglevelFlag
});
module.exports = __toCommonJS(flags_exports);
var import_map_set = require("../../../primordials/map-set");
var import_flags = require("../npm/flags");
const pnpmIgnoreScriptsFlags = new import_map_set.SetCtor([
  "--ignore-scripts",
  "--no-ignore-scripts"
]);
const pnpmFrozenLockfileFlags = new import_map_set.SetCtor([
  "--frozen-lockfile",
  "--no-frozen-lockfile"
]);
const pnpmInstallCommands = new import_map_set.SetCtor(["install", "i"]);
// @__NO_SIDE_EFFECTS__
function isPnpmFrozenLockfileFlag(cmdArg) {
  return pnpmFrozenLockfileFlags.has(cmdArg);
}
// @__NO_SIDE_EFFECTS__
function isPnpmIgnoreScriptsFlag(cmdArg) {
  return pnpmIgnoreScriptsFlags.has(cmdArg);
}
// @__NO_SIDE_EFFECTS__
function isPnpmInstallCommand(cmdArg) {
  return pnpmInstallCommands.has(cmdArg);
}
const isPnpmLoglevelFlag = import_flags.isNpmLoglevelFlag;
const PNPM_INSTALL_LIKE_COMMANDS = new import_map_set.SetCtor([
  "install",
  "i",
  "add",
  "update",
  "up",
  "remove",
  "rm",
  "link",
  "ln",
  "unlink",
  "import",
  "rebuild",
  "rb"
]);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  PNPM_INSTALL_LIKE_COMMANDS,
  isPnpmFrozenLockfileFlag,
  isPnpmIgnoreScriptsFlag,
  isPnpmInstallCommand,
  isPnpmLoglevelFlag
});
