text: define("Core/defaultRenders",["require","Env/Env"],function(n,i){return{leadZero:function(e,t){var r=""+Math.floor(e);if(r.length<t)r="00000000000000000000000000000000".substr(0,t-r.length)+r;return r},integer:function(t,e){try{t=(""+t).trim()}catch(e){t=""}var r=/^-?([0]*)(\d+)\.?\d*\D*$/,n;if(!t.match(r))return"0";return n=t.replace(r,"$2"),("-"==t.substr(0,1)?"-":"")+(e?n:n.replace(/(?=(\d{3})+$)/g," ").trim())},logic:function(e,t){var r;if(e)r="ws-browser-checkbox-logic-true";else r="ws-browser-checkbox-logic-false";var n='<span class="ws-browser-checkbox-logic '+r+'"></span>';return t?n:$(n)},money:function(e){return this.real(e,2,true)},numeric:function(e,t,r,n,i,s,a){var u,f,l,o;if("string"===typeof e)e=e.replace(/,/g,".");if(-1!==(e+"").indexOf("e")&&!isNaN(parseFloat(e+""))&&isFinite(e+"")){l=(e=e.toFixed(20)).length;while("0"===e.charAt(l-1))--l;e=e.substr(0,l)}if(u=(e=(e=""+e).replace(i?/[^0-9\.]/g:/[^0-9\.\-]/g,"")).indexOf("."),f=e.indexOf(".",u+1),o=/\-/.test(e)?1:0,-1!==f)e=e.substring(0,f);if(u===e.length-1)e=e.substr(0,e.length-1),u=-1;if(!/^\-?[0-9]*(\.[0-9]*)?$/.test(e))e="";if(""===e||null===e)e=null;else{if(t>=0){if(-1===u)u=e.length;if(t+o<u)e=e.substring(0,t+o)+e.substr(u);u=e.indexOf(".")}if(n<0)e=-1===u?this.integer(e,!r):[this.integer(e.substring(0,u),!r),e.substr(u)].join("");else e=e.substr(0,s&&!r?s:e.length),e=this.real(e,n,r,a)}return e},real:function(e,t,r,n){t=void 0===t?0:t;var i=(e+="").indexOf("."),s=e;if(-1!=i)s=e.substring(0,i);var a=-1!=i?e.substr(i):0,u=-1!==s.indexOf("-"),f;if("."==a)a=".0";if(n&&0!=parseFloat(a))f=parseFloat((a+"00000000000000000000000000000000").substr(0,t+1)).toFixed(t);else f=parseFloat(a).toFixed(t);if(1==f)s=parseInt(s,10),s=u?s-1:s+1;if(f=f.replace(/.+\./,""),0===t)return this.integer(s,!r);var l=[];return l.push(this.integer(s,!r)),l.push("."),l.push(f),l.join("")},timer:function(e){return Math.floor(e/1e3)+"."+this.leadZero(e%1e3,3)},timestamp:function(e,t,r){var n="";if("object"==typeof r&&"precision"in r)r=r.precision;else if(true===r)r="msec";else r="sec";if(e instanceof Date){if("Дата"==t)n=e.strftime(i.constants.Date.masks.date);else if("Время"==t)n=e.strftime(i.constants.Date.masks[r]);else if("Дата и время"==t)n=e.strftime(i.constants.Date.masks.date)+" "+e.strftime(i.constants.Date.masks[r])}else n="&minus;";return n},enumType:function(e){var t=n.defined("Deprecated/Enum")?n("Deprecated/Enum"):null;if(t&&e instanceof t){var r;if(null===e.getCurrentValue())return"";return e.getValues()[e.getCurrentValue()]}return""},flags:function(e){var r=[];if(e.each(function(e,t){if(t)r.push(e)}),r.length)return r.join(", ");return"&minus;"},isText:function(e){return-1!==e.indexOf("char")||"text"==e}}});