$.validator.classRules=function(b){var c={},d=$(b).attr("validate");return d&&$.each(d.split("|"),function(){this in $.validator.classRuleSettings&&$.extend(c,$.validator.classRuleSettings[this])}),c};$.validator.addMethod("first_name",function(e,t){e=e.replace(/\s+/g," ");e=e.replace(/(^\s+|\s+$)/g,"");var n=new RegExp("^[a-zéúíóáèùìòàçãñêûîôâëÿüïöä.']{2,120}((( e)? [a-zéúíóáèùìòàçãñêûîôâëÿüïöä.']{0,120})?)+$","i");return this.optional(t)||n.test(e);},"Invalid name");$.validator.addMethod("name_surname",function(e,t){e=e.replace(/\s+/g," ");e=e.replace(/(^\s+|\s+$)/g,"");var n=new RegExp("^[a-zéúíóáèùìòàçãñêûîôâëÿüïöä.']{2,120}(( e)? [a-zéúíóáèùìòàçãñêûîôâëÿüïöä.']{2,120})+$","i");return this.optional(t)||n.test(e)&&!e.match(/(.+)\1{2,}/)},"Invalid name");$.validator.addMethod("dateBR",function(e,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(e.replace(/(\d{2})\/(\d{2})\/(\d{4})/,"$2/$1/$3")).toString());},"Invalid date");$.validator.addMethod("data_nascimento",function(e,t){if(this.optional(t)) return true;var n=/^([0-2][0-9]|3[0-1]).(0[1-9]|1[0-2]).(19[2-9][0-9]|20[0-1][0-6])$/;if(n.test(e)){var r=e.split(/[^\d]/);r[1]=r[1]-1;var i=new Date(r[2],r[1],r[0]);if(i.getDate()!=r[0]||i.getMonth()!=r[1]||i.getFullYear()!=r[2]){return false} return true;} return false;},"Invalid date");$.validator.addMethod("email",function(e,t){if(this.optional(t)||/[^A-Z]/gi.test(e.split('.').pop())){return false;} return this.optional(t)||/^[A-Z0-9\-._]+@[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?(?:\.[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?)*$/i.test(e);},"Please enter a valid email address.");