var __extends=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();System.register(["./p-d86a8e66.system.js"],(function(t){"use strict";var e,r,n;return{setters:[function(t){e=t.r;r=t.I;n=t.a}],execute:function(){var i=function(t){__extends(e,t);function e(e,r){var n=t.call(this,"validatorLength")||this;n.min=e;n.max=r;return n}return e}(r);t("V",i);i.id="validatorLength";var o=function(t){__extends(e,t);function e(e){var r=t.call(this)||this;r.config=e;return r}e.prototype.run=function(t,e,r,n){var i=this.config,o=i.max,l=i.min;if(!l&&!o){return{value:n}}if(typeof n==="string"||n instanceof String){return s(t,r,n,l,o)}else if(n instanceof Array){return a(t,r,n,l,o)}return{value:n}};return e}(n);function a(t,e,r,n,i){if(n&&(!r||r.length<n)){return{error:t.strings.interceptors.validatorLength.messageMinItems.replace("{title}",e.errorTitle||e.title).replace("{min}",n),value:r}}if(i&&(r&&r.length>i)){return{error:t.strings.interceptors.validatorLength.messageMaxItems.replace("{title}",e.errorTitle||e.title).replace("{max}",i),value:r}}return{value:r}}function s(t,e,r,n,i){if(n&&(!r||r.length<n)){return{error:t.strings.interceptors.validatorLength.messageMinChars.replace("{title}",e.errorTitle||e.title).replace("{min}",n),value:r}}if(i&&(r&&r.length>i)){return{error:t.strings.interceptors.validatorLength.messageMaxChars.replace("{title}",e.errorTitle||e.title).replace("{max}",i),value:r}}return{value:r}}e(i.id,(function(t){return new o(t)}))}}}));