var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(a,b,c,d){if(b){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}};
$jscomp.polyfill("String.prototype.startsWith",function(a){return a?a:function(a,c){var b=$jscomp.checkStringArgs(this,a,"startsWith");a+="";var e=b.length,g=a.length;c=Math.max(0,Math.min(c|0,b.length));for(var f=0;f<g&&c<e;)if(b[c++]!=a[f++])return!1;return f>=g}},"es6","es3");
zul.inp.SimpleDateConstraint=zk.$extends(zul.inp.SimpleConstraint,{$init:function(a,b){this._wgt=b;this._localizedSymbols=b._localizedSymbols;this.$super("$init",a)},format:"yyyyMMdd",parseConstraint_:function(a){var b=this.format.length+1,c=this._cstArr,d=this._wgt;d=d&&d.getTimeZone&&d.getTimeZone();if(a.startsWith("between")){var e=a.indexOf("and",7);0>e&&zk.debugJS&&zk.error("Unknown constraint: "+a);this._beg=(new zk.fmt.Calendar(null,this._localizedSymbols)).parseDate(a.substring(7,e),this.format,
null,null,null,d);this._end=(new zk.fmt.Calendar(null,this._localizedSymbols)).parseDate(a.substring(e+3,e+3+b),this.format,null,null,null,d);this._beg.getTime()>this._end.getTime()&&(b=this._beg,this._beg=this._end,this._end=b);this._beg.setHours(0,0,0,0);this._end.setHours(0,0,0,0);c[c.length]="between"}else a.startsWith("before")&&!a.startsWith("before_")?(this._end=(new zk.fmt.Calendar(null,this._localizedSymbols)).parseDate(a.substring(6,6+b),this.format,null,null,null,d),this._end.setHours(0,
0,0,0),c[c.length]="before"):a.startsWith("after")&&!a.startsWith("after_")&&(this._beg=(new zk.fmt.Calendar(null,this._localizedSymbols)).parseDate(a.substring(5,5+b),this.format,null,null,null,d),this._beg.setHours(0,0,0,0),c[c.length]="after");return this.$supers("parseConstraint_",arguments)},validate:function(a,b){var c=this.$supers("validate",arguments);if(b instanceof DateImpl){var d=this._errmsg,e=Dates.newInstance([b.getFullYear(),b.getMonth(),b.getDate()],b.getTimeZone());if(null!=this._beg&&
this._beg.getTime()>e.getTime())return d.between||d.after||this.outOfRangeValue();if(null!=this._end&&this._end.getTime()<e.getTime())return d.between||d.before||this.outOfRangeValue()}return c},outOfRangeValue:function(){var a=this._wgt._format,b=msgzul.OUT_OF_RANGE_SEPARATOR?" "+msgzul.OUT_OF_RANGE_SEPARATOR+" ":" ~ ";return msgzul.OUT_OF_RANGE+": "+(null!=this._beg?null!=this._end?(new zk.fmt.Calendar(null,this._localizedSymbols)).formatDate(this._beg,a)+b+(new zk.fmt.Calendar).formatDate(this._end,
a):">= "+(new zk.fmt.Calendar).formatDate(this._beg,a):"<= "+(new zk.fmt.Calendar).formatDate(this._end,a))}});
