(function(h){h.extend(h.inputmask.defaults.aliases,{decimal:{mask:"~",placeholder:"",repeat:10,greedy:!1,numericInput:!0,digits:"*",groupSeparator:"",radixPoint:".",groupSize:3,autoGroup:!1,allowPlus:!0,allowMinus:!0,getMaskLength:function(d,f,e,b,a){var c=d.length;!f&&1=e&&"0"===f[0]&&/[\d-]/.test(d))return f[0]="",{pos:0};var c=b?f.slice(0,e):f.slice();c.splice(e+1,0,d);c=c.join("");if(a.autoGroup&&!b)var g=h.inputmask.escapeRegex.call(this, a.groupSeparator),c=c.replace(RegExp(g,"g"),"");g=a.regex.number(a.groupSeparator,a.groupSize,a.radixPoint,a.digits,a.allowPlus,a.allowMinus).test(c);if(!g&&(c+="0",g=a.regex.number(a.groupSeparator,a.groupSize,a.radixPoint,a.digits,a.allowPlus,a.allowMinus).test(c),!g)){g=c.lastIndexOf(a.groupSeparator);for(i=c.length-g;3>=i;i++)c+="0";g=a.regex.number(a.groupSeparator,a.groupSize,a.radixPoint,a.digits,a.allowPlus,a.allowMinus).test(c);if(!g&&!b&&d==a.radixPoint&&(g=a.regex.number(a.groupSeparator, a.groupSize,a.radixPoint,a.digits,a.allowPlus,a.allowMinus).test("0"+c+"0")))return f[e]="0",e++,{pos:e}}return!1!=g&&!b&&d!=a.radixPoint?{pos:a.postFormat(f,e+1,!1,a)}:g},cardinality:1,prevalidator:null}},insertMode:!0,autoUnmask:!1},integer:{regex:{number:function(d,f,e,b,a,c){d=h.inputmask.escapeRegex.call(this,d);return RegExp("^"+("["+(a?"+":"")+(c?"-":"")+"]?")+"(\\d+|\\d{1,"+f+"}(("+d+"\\d{"+f+"})?)+)$")}},alias:"decimal"}})})(jQuery);