const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
const require_validate = require('./validate.cjs');

//#region ../../node_modules/samlify/node_modules/uuid/dist/esm-node/stringify.js
function stringify(arr, offset = 0) {
	const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
	if (!require_validate.default(uuid)) throw TypeError("Stringified UUID is invalid");
	return uuid;
}
var byteToHex, stringify_default;
var init_stringify = require_rolldown_runtime.__esm({ "../../node_modules/samlify/node_modules/uuid/dist/esm-node/stringify.js": (() => {
	require_validate.init_validate();
	byteToHex = [];
	for (let i = 0; i < 256; ++i) byteToHex.push((i + 256).toString(16).substr(1));
	stringify_default = stringify;
}) });

//#endregion
init_stringify();
exports.default = stringify_default;
Object.defineProperty(exports, 'init_stringify', {
  enumerable: true,
  get: function () {
    return init_stringify;
  }
});
//# sourceMappingURL=stringify.cjs.map