(function(){var t={},q=function(a,f,h){var g=function(b,g){if(p(b)&&!s(b))for(var a=0,k=b.length;a=a||b>a)&&this.addError();return e()});a.prototype.addAttribute("maxItems",function(g,b,a,d,e){p(b)&&b.length>a&&this.addError();return e()});a.prototype.addAttribute("maxLength",function(g,b,a,d,e){n(b)&&b.length>a&&this.addError();return e()});a.prototype.addAttribute("minimum",function(g,b,a,d,e){u(b)&&(d.exclusiveMinimum&&b<=a||bq&&e.singleError?p(!0):p()};return y(c[d])? h.apply(f,[a,b,c[d],c,r]):p()},d)};a.prototype.validateSchema=function(a,b,c,d){var e=this;return e.validateProperty(c,a,b,function(f){return b.properties?e.validateProperties(a,b,c,d):b.items?e.validateItems(a,b,c,d):d()})};t.json=function(){return{validate:function(f,b,c,d){"function"===typeof c&&(d=c,c={});return(new a(c)).validate(f,b,d)},addAttribute:function(f,b){return a.prototype.addAttribute.apply(a,arguments)},addAttributeConstructor:function(f,b){return a.prototype.addAttributeConstructor.apply(a, arguments)}}}()})();var v=function(a){if(!Object.prototype.hasOwnProperty.apply(t,[a]))throw Error("The \u2018"+a+"\u2019 engine is not supported. Please use a different one.");return t[a]};v.validate=function(a,f,h,g){var b=t.json;return b.validate.apply(b,arguments)};v.addValidator=function(a,f){var h=t.json;return h.addAttribute.apply(h,arguments)};v.addAttribute=function(a,f){var h=t.json;return h.addAttribute.apply(h,arguments)};v.addAttributeConstructor=function(a,f){var h=t.json;return h.addAttributeConstructor.apply(h, arguments)};"undefined"!==typeof module&&module.exports?module.exports=v:"undefined"!==typeof define?define(function(){return v}):this.amanda=v})();