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 content_license_exports = {};
__export(content_license_exports, {
  CONTENT_LICENSE_VALUES: () => CONTENT_LICENSE_VALUES,
  DEFAULT_CONTENT_LICENSE: () => DEFAULT_CONTENT_LICENSE,
  isContentLicense: () => isContentLicense,
  isOpenContentLicense: () => isOpenContentLicense,
  parseContentLicense: () => parseContentLicense
});
module.exports = __toCommonJS(content_license_exports);
const CONTENT_LICENSE_VALUES = ["CLOSED", "PLAYDROP", "MIT", "CC0"];
const DEFAULT_CONTENT_LICENSE = "PLAYDROP";
function isContentLicense(value) {
  if (typeof value !== "string") {
    return false;
  }
  return CONTENT_LICENSE_VALUES.includes(value.trim().toUpperCase());
}
function parseContentLicense(value) {
  if (typeof value !== "string") {
    return null;
  }
  const normalized = value.trim().toUpperCase();
  return isContentLicense(normalized) ? normalized : null;
}
function isOpenContentLicense(value) {
  return value === "MIT" || value === "CC0";
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  CONTENT_LICENSE_VALUES,
  DEFAULT_CONTENT_LICENSE,
  isContentLicense,
  isOpenContentLicense,
  parseContentLicense
});
