"use client";
import { n as e } from "./useIsoLayoutEffect-CKOv1bV_.js";
import * as t from "react";
//#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/useId.js
var n = 0;
function r(e, r = "mui") {
	let [i, a] = t.useState(e), o = e || i;
	return t.useEffect(() => {
		i ?? (n += 1, a(`${r}-${n}`));
	}, [i, r]), o;
}
var i = e.useId;
function a(e, t) {
	if (i !== void 0) {
		let n = i();
		return e ?? (t ? `${t}-${n}` : n);
	}
	return r(e, t);
}
//#endregion
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/internals/useBaseUiId.js
function o(e) {
	return a(e, "base-ui");
}
//#endregion
export { a as n, o as t };
