(function(k){"function"===typeof define&&define.amd?define(["jquery","./jquery.inputmask"],k):k(jQuery)})(function(k){k.extend(k.inputmask.defaults.aliases,{Regex:{mask:"r",greedy:!1,repeat:"*",regex:null,regexTokens:null,tokenizer:/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,quantifierFilter:/[0-9]+[^,]/,isComplete:function(k,l){return RegExp(l.regex).test(k.join(""))},
definitions:{r:{validator:function(p,l,t,r,h){function g(d,b){this.matches=[];this.isGroup=d||!1;this.isQuantifier=b||!1;this.quantifier={min:1,max:1};this.repeaterPart=void 0}function u(){var d=new g,b,a=[];for(h.regexTokens=[];b=h.tokenizer.exec(h.regex);)switch(b=b[0],b.charAt(0)){case "(":a.push(new g(!0));break;case ")":var e=a.pop();0<a.length?a[a.length-1].matches.push(e):d.matches.push(e);break;case "{":case "+":case "*":var c=new g(!1,!0);b=b.replace(/[{}]/g,"");e=b.split(",");b=isNaN(e[0])?
e[0]:parseInt(e[0]);e=1==e.length?b:isNaN(e[1])?e[1]:parseInt(e[1]);c.quantifier={min:b,max:e};if(0<a.length){var f=a[a.length-1].matches;b=f.pop();b.isGroup||(e=new g(!0),e.matches.push(b),b=e);f.push(b);f.push(c)}else b=d.matches.pop(),b.isGroup||(e=new g(!0),e.matches.push(b),b=e),d.matches.push(b),d.matches.push(c);break;default:0<a.length?a[a.length-1].matches.push(b):d.matches.push(b)}0<d.matches.length&&h.regexTokens.push(d)}function n(g,b){var a=!1;b&&(d+="(",q++);for(var e=0;e<g.matches.length;e++){var c=
g.matches[e];if(!0==c.isGroup)a=n(c,!0);else if(!0==c.isQuantifier){var f=k.inArray(c,g.matches),f=g.matches[f-1],h=d;if(isNaN(c.quantifier.max)){for(;c.repeaterPart&&c.repeaterPart!=d&&c.repeaterPart.length>d.length&&!(a=n(f,!0)););(a=a||n(f,!0))&&(c.repeaterPart=d);d=h+c.quantifier.max}else{for(var m=0,l=c.quantifier.max-1;m<l&&!(a=n(f,!0));m++);d=h+"{"+c.quantifier.min+","+c.quantifier.max+"}"}}else if(void 0!=c.matches)for(f=0;f<c.length&&!(a=n(c[f],b));f++);else{if("["==c.charAt(0)){a=d;a+=c;
for(m=0;m<q;m++)a+=")";a=RegExp("^("+a+")$");a=a.test(s)}else for(f=0,h=c.length;f<h;f++)if("\\"!=c.charAt(f)){a=d;a+=c.substr(0,f+1);a=a.replace(/\|$/,"");for(m=0;m<q;m++)a+=")";a=RegExp("^("+a+")$");if(a=a.test(s))break}d+=c}if(a)break}b&&(d+=")",q--);return a}null==h.regexTokens&&u();r=l.buffer.slice();var d="";l=!1;var q=0;r.splice(t,0,p);var s=r.join("");for(p=0;p<h.regexTokens.length&&!(g=h.regexTokens[p],l=n(g,g.isGroup));p++);return l},cardinality:1}}}});return k.fn.inputmask});
