"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeAcceptanceCriterionId = normalizeAcceptanceCriterionId;
const ACCEPTANCE_CRITERION_LABEL = /^(?:\[([A-Za-z0-9_-]+-AC-\d+)\]|`([A-Za-z0-9_-]+-AC-\d+)`|([A-Za-z0-9_-]+-AC-\d+))(?:\s|:|-)/u;
/**
 * Normalizes the documented raw, bracketed, and backticked acceptance-label
 * forms while leaving malformed labels and prose-only outcomes unclassified.
 */
function normalizeAcceptanceCriterionId(value) {
    const match = value.trim().match(ACCEPTANCE_CRITERION_LABEL);
    return match?.[1] ?? match?.[2] ?? match?.[3] ?? null;
}
