import e from "../../lodash-es/map.js";
//#region ../../node_modules/chevrotain-allstar/lib/dfa.js
var t = {}, n = class {
	constructor() {
		this.map = {}, this.configs = [];
	}
	get size() {
		return this.configs.length;
	}
	finalize() {
		this.map = {};
	}
	add(e) {
		let t = r(e);
		t in this.map || (this.map[t] = this.configs.length, this.configs.push(e));
	}
	get elements() {
		return this.configs;
	}
	get alts() {
		return e(this.configs, (e) => e.alt);
	}
	get key() {
		let e = "";
		for (let t in this.map) e += t + ":";
		return e;
	}
};
function r(e, t = !0) {
	return `${t ? `a${e.alt}` : ""}s${e.state.stateNumber}:${e.stack.map((e) => e.stateNumber.toString()).join("_")}`;
}
//#endregion
export { n as ATNConfigSet, t as DFA_ERROR, r as getATNConfigKey };
