//#region src/size-limit.ts
var SizeLimitExceededError = class extends Error {
	name = "SizeLimitExceededError";
	constructor(bytes, limit) {
		super(`Upload size ${bytes} exceeds limit ${limit}`);
	}
};
/** Throws when `bytes` is strictly greater than `limit`. */
function assertSizeLimit(bytes, limit) {
	if (bytes > limit) throw new SizeLimitExceededError(bytes, limit);
}
//#endregion
export { SizeLimitExceededError, assertSizeLimit };
