{"version":3,"sources":["jsdelivr-header.js","/npm/preconditions@3.0.2/lib/preconditions.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,IAAI,kBAAoB,QAAQ,4BAC9B,mBAAqB,QAAQ,6BAC7B,cAAgB,QAAQ,oBAO1B,MAAM,cAOJ,WAAO,GACL,OAAO,aACT,CAOA,gBAAO,GACL,OAAO,kBACT,CASA,eAAO,CAAS,GACd,OAAO,IAAI,kBAAkB,EAC/B,CAQA,kBAAO,GACL,OAAO,iBACT,EAGF,OAAO,QAAU","file":"/npm/preconditions@3.0.2/lib/preconditions.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/preconditions@3.0.2/lib/preconditions.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n\nvar InstanceValidator = require(\"./err/instance-validator\"),\n  SingletonValidator = require(\"./err/singleton-validator\"),\n  ErrrValidator = require(\"./errr/validator\");\n\n/**\n * Preconditions entry point interface.\n *\n * @class\n */\nclass Preconditions {\n  /**\n   * Validate single value with the buildable errr interface from the static errr Validation functionality.\n   *\n   * @returns Error Validation Singleton.\n   */\n\n  static errr() {\n    return ErrrValidator;\n  }\n\n  /**\n   * Validate single value with the chainable interface from the Error Validation Singleton.\n   *\n   * @returns Error Validation Singleton.\n   */\n  static singleton() {\n    return SingletonValidator;\n  }\n\n  /**\n   * @warning This functionality has very poor performance.  Please use the 'singleton' or 'errr' functionality instead.\n   *\n   * Validate values of a given JSON object with the preconditions object.\n   * @param objectUnderTest - Object Under Test\n   * @returns Error Validation instance.\n   */\n  static instance(objectUnderTest) {\n    return new InstanceValidator(objectUnderTest);\n  }\n\n  /**\n   * Gives ability to extend and add other preconditions to the Error Validation constructor.\n   *\n   * @Warning This functionality only works with the 'instance' function which has very poor performance.\n   * @returns Error Validation constructor.\n   */\n  static constructor() {\n    return InstanceValidator;\n  }\n}\n\nmodule.exports = Preconditions;\n"]}