import { __esm } from "../../../../../../_virtual/rolldown_runtime.mjs";
import rng, { init_rng } from "./rng.mjs";
import stringify_default, { init_stringify } from "./stringify.mjs";

//#region ../../node_modules/samlify/node_modules/uuid/dist/esm-browser/v4.js
function v4(options, buf, offset) {
	options = options || {};
	var rnds = options.random || (options.rng || rng)();
	rnds[6] = rnds[6] & 15 | 64;
	rnds[8] = rnds[8] & 63 | 128;
	if (buf) {
		offset = offset || 0;
		for (var i = 0; i < 16; ++i) buf[offset + i] = rnds[i];
		return buf;
	}
	return stringify_default(rnds);
}
var v4_default;
var init_v4 = __esm({ "../../node_modules/samlify/node_modules/uuid/dist/esm-browser/v4.js": (() => {
	init_rng();
	init_stringify();
	v4_default = v4;
}) });

//#endregion
init_v4();
export { v4_default as default, init_v4 };
//# sourceMappingURL=v4.mjs.map