const require_rolldown_runtime = require('../../../../../../../../_virtual/rolldown_runtime.js');
const require_ValidateBy$1 = require('../common/ValidateBy.js');

//#region ../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/number/IsNegative.js
var require_IsNegative = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/number/IsNegative.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.IsNegative = exports.isNegative = exports.IS_NEGATIVE = void 0;
	const ValidateBy_1 = require_ValidateBy$1.require_ValidateBy();
	exports.IS_NEGATIVE = "isNegative";
	/**
	* Checks if the value is a negative number smaller than zero.
	*/
	function isNegative(value) {
		return typeof value === "number" && value < 0;
	}
	exports.isNegative = isNegative;
	/**
	* Checks if the value is a negative number smaller than zero.
	*/
	function IsNegative(validationOptions) {
		return (0, ValidateBy_1.ValidateBy)({
			name: exports.IS_NEGATIVE,
			validator: {
				validate: (value, args) => isNegative(value),
				defaultMessage: (0, ValidateBy_1.buildMessage)((eachPrefix) => eachPrefix + "$property must be a negative number", validationOptions)
			}
		}, validationOptions);
	}
	exports.IsNegative = IsNegative;
}) });

//#endregion
Object.defineProperty(exports, 'default', {
  enumerable: true,
  get: function () {
    return require_IsNegative();
  }
});