//#region src/shared/progress.ts
function e(e, t = {}) {
	if (e == null) return null;
	let n = e.totalSteps ?? 0;
	if (n <= 0) return null;
	let r = e.currentStep ?? 0, i = Math.min(Math.max(r, 0), n), a = e.explanation ?? null;
	return {
		current: i,
		total: n,
		label: t.label,
		explanation: a
	};
}
//#endregion
export { e as normalizeProgress };

//# sourceMappingURL=progress.js.map