/*!
* bootstrapvalidator
* the best jquery plugin to validate form fields. designed to use with bootstrap 3
*
* @version v0.5.3, built on 2014-11-05 9:14:18 pm
* @author
* @copyright (c) 2013 - 2014 nguyen huu phuoc
*
*
*/
if("undefined"==typeof jquery)throw new error("bootstrapvalidator requires jquery");!function(a){var b=a.fn.jquery.split(" ")[0].split(".");if(+b[0]<2&&+b[1]<9||1===+b[0]&&9===+b[1]&&+b[2]<1)throw new error("bootstrapvalidator requires jquery version 1.9.1 or higher")}(window.jquery),function(a){var b=function(b,c){this.$form=a(b),this.options=a.extend({},a.fn.bootstrapvalidator.default_options,c),this.$invalidfields=a([]),this.$submitbutton=null,this.$hiddenbutton=null,this.status_not_validated="not_validated",this.status_validating="validating",this.status_invalid="invalid",this.status_valid="valid";var d=function(){for(var a=3,b=document.createelement("div"),c=b.all||[];b.innerhtml="",c[0];);return a>4?a:!a}(),e=document.createelement("div");this._changeevent=9!==d&&"oninput"in e?"input":"keyup",this._submitifvalid=null,this._cachefields={},this._init()};b.prototype={constructor:b,_init:function(){var b=this,c={autofocus:this.$form.attr("data-bv-autofocus"),container:this.$form.attr("data-bv-container"),events:{forminit:this.$form.attr("data-bv-events-form-init"),formerror:this.$form.attr("data-bv-events-form-error"),formsuccess:this.$form.attr("data-bv-events-form-success"),fieldadded:this.$form.attr("data-bv-events-field-added"),fieldremoved:this.$form.attr("data-bv-events-field-removed"),fieldinit:this.$form.attr("data-bv-events-field-init"),fielderror:this.$form.attr("data-bv-events-field-error"),fieldsuccess:this.$form.attr("data-bv-events-field-success"),fieldstatus:this.$form.attr("data-bv-events-field-status"),validatorerror:this.$form.attr("data-bv-events-validator-error"),validatorsuccess:this.$form.attr("data-bv-events-validator-success")},excluded:this.$form.attr("data-bv-excluded"),feedbackicons:{valid:this.$form.attr("data-bv-feedbackicons-valid"),invalid:this.$form.attr("data-bv-feedbackicons-invalid"),validating:this.$form.attr("data-bv-feedbackicons-validating")},group:this.$form.attr("data-bv-group"),live:this.$form.attr("data-bv-live"),message:this.$form.attr("data-bv-message"),onerror:this.$form.attr("data-bv-onerror"),onsuccess:this.$form.attr("data-bv-onsuccess"),submitbuttons:this.$form.attr("data-bv-submitbuttons"),threshold:this.$form.attr("data-bv-threshold"),trigger:this.$form.attr("data-bv-trigger"),verbose:this.$form.attr("data-bv-verbose"),fields:{}};this.$form.attr("novalidate","novalidate").addclass(this.options.elementclass).on("submit.bv",function(a){a.preventdefault(),b.validate()}).on("click.bv",this.options.submitbuttons,function(){b.$submitbutton=a(this),b._submitifvalid=!0}).find("[name], [data-bv-field]").each(function(){var d=a(this),e=d.attr("name")||d.attr("data-bv-field"),f=b._parseoptions(d);f&&(d.attr("data-bv-field",e),c.fields[e]=a.extend({},f,c.fields[e]))}),this.options=a.extend(!0,this.options,c),this.$hiddenbutton=a("").attr("type","submit").prependto(this.$form).addclass("bv-hidden-submit").css({display:"none",width:0,height:0}),this.$form.on("click.bv",'[type="submit"]',function(c){if(!c.isdefaultprevented()){var d=a(c.target),e=d.is('[type="submit"]')?d.eq(0):d.parent('[type="submit"]').eq(0);!b.options.submitbuttons||e.is(b.options.submitbuttons)||e.is(b.$hiddenbutton)||b.$form.off("submit.bv").submit()}});for(var d in this.options.fields)this._initfield(d);this.$form.trigger(a.event(this.options.events.forminit),{bv:this,options:this.options}),this.options.onsuccess&&this.$form.on(this.options.events.formsuccess,function(c){a.fn.bootstrapvalidator.helpers.call(b.options.onsuccess,[c])}),this.options.onerror&&this.$form.on(this.options.events.formerror,function(c){a.fn.bootstrapvalidator.helpers.call(b.options.onerror,[c])})},_parseoptions:function(b){var c,d,e,f,g,h,i,j,k,l=b.attr("name")||b.attr("data-bv-field"),m={};for(d in a.fn.bootstrapvalidator.validators)if(c=a.fn.bootstrapvalidator.validators[d],e="data-bv-"+d.tolowercase(),f=b.attr(e)+"",k="function"==typeof c.enablebyhtml5?c.enablebyhtml5(b):null,k&&"false"!==f||k!==!0&&(""===f||"true"===f||e===f.tolowercase())){c.html5attributes=a.extend({},{message:"message",onerror:"onerror",onsuccess:"onsuccess"},c.html5attributes),m[d]=a.extend({},k===!0?{}:k,m[d]);for(j in c.html5attributes)g=c.html5attributes[j],h="data-bv-"+d.tolowercase()+"-"+j,i=b.attr(h),i&&("true"===i||h===i.tolowercase()?i=!0:"false"===i&&(i=!1),m[d][g]=i)}var n={autofocus:b.attr("data-bv-autofocus"),container:b.attr("data-bv-container"),excluded:b.attr("data-bv-excluded"),feedbackicons:b.attr("data-bv-feedbackicons"),group:b.attr("data-bv-group"),message:b.attr("data-bv-message"),onerror:b.attr("data-bv-onerror"),onstatus:b.attr("data-bv-onstatus"),onsuccess:b.attr("data-bv-onsuccess"),selector:b.attr("data-bv-selector"),threshold:b.attr("data-bv-threshold"),trigger:b.attr("data-bv-trigger"),verbose:b.attr("data-bv-verbose"),validators:m},o=a.isemptyobject(n),p=a.isemptyobject(m);return!p||!o&&this.options.fields&&this.options.fields[l]?(n.validators=m,n):null},_initfield:function(b){var c=a([]);switch(typeof b){case"object":c=b,b=b.attr("data-bv-field");break;case"string":c=this.getfieldelements(b),c.attr("data-bv-field",b)}if(0!==c.length&&null!==this.options.fields[b]&&null!==this.options.fields[b].validators){var d;for(d in this.options.fields[b].validators)a.fn.bootstrapvalidator.validators[d]||delete this.options.fields[b].validators[d];null===this.options.fields[b].enabled&&(this.options.fields[b].enabled=!0);for(var e=this,f=c.length,g=c.attr("type"),h=1===f||"radio"===g||"checkbox"===g,i="radio"===g||"checkbox"===g||"file"===g||"select"===c.eq(0).get(0).tagname?"change":this._changeevent,j=(this.options.fields[b].trigger||this.options.trigger||i).split(" "),k=a.map(j,function(a){return a+".update.bv"}).join(" "),l=0;f>l;l++){var m=c.eq(l),n=this.options.fields[b].group||this.options.group,o=m.parents(n),p="function"==typeof(this.options.fields[b].container||this.options.container)?(this.options.fields[b].container||this.options.container).call(this,m,this):this.options.fields[b].container||this.options.container,q=p&&"tooltip"!==p&&"popover"!==p?a(p):this._getmessagecontainer(m,n);p&&"tooltip"!==p&&"popover"!==p&&q.addclass("has-error"),q.find('.help-block[data-bv-validator][data-bv-for="'+b+'"]').remove(),o.find('i[data-bv-icon-for="'+b+'"]').remove(),m.off(k).on(k,function(){e.updatestatus(a(this),e.status_not_validated)}),m.data("bv.messages",q);for(d in this.options.fields[b].validators)m.data("bv.result."+d,this.status_not_validated),h&&l!==f-1||a("").css("display","none").addclass("help-block").attr("data-bv-validator",d).attr("data-bv-for",b).attr("data-bv-result",this.status_not_validated).html(this._getmessage(b,d)).appendto(q),"function"==typeof a.fn.bootstrapvalidator.validators[d].init&&a.fn.bootstrapvalidator.validators[d].init(this,m,this.options.fields[b].validators[d]);if(this.options.fields[b].feedbackicons!==!1&&"false"!==this.options.fields[b].feedbackicons&&this.options.feedbackicons&&this.options.feedbackicons.validating&&this.options.feedbackicons.invalid&&this.options.feedbackicons.valid&&(!h||l===f-1)){o.addclass("has-feedback");var r=a("").css("display","none").addclass("form-control-feedback").attr("data-bv-icon-for",b).insertafter(m);if("checkbox"===g||"radio"===g){var s=m.parent();s.hasclass(g)?r.insertafter(s):s.parent().hasclass(g)&&r.insertafter(s.parent())}0===o.find("label").length&&r.addclass("bv-no-label"),0!==o.find(".input-group").length&&r.addclass("bv-icon-input-group").insertafter(o.find(".input-group").eq(0)),h?l===f-1&&c.data("bv.icon",r):m.data("bv.icon",r),p&&m.off("focus.container.bv").on("focus.container.bv",function(){switch(p){case"tooltip":a(this).data("bv.icon").tooltip("show");break;case"popover":a(this).data("bv.icon").popover("show")}}).off("blur.container.bv").on("blur.container.bv",function(){switch(p){case"tooltip":a(this).data("bv.icon").tooltip("hide");break;case"popover":a(this).data("bv.icon").popover("hide")}})}}switch(c.on(this.options.events.fieldsuccess,function(b,c){var d=e.getoptions(c.field,null,"onsuccess");d&&a.fn.bootstrapvalidator.helpers.call(d,[b,c])}).on(this.options.events.fielderror,function(b,c){var d=e.getoptions(c.field,null,"onerror");d&&a.fn.bootstrapvalidator.helpers.call(d,[b,c])}).on(this.options.events.fieldstatus,function(b,c){var d=e.getoptions(c.field,null,"onstatus");d&&a.fn.bootstrapvalidator.helpers.call(d,[b,c])}).on(this.options.events.validatorerror,function(b,c){var d=e.getoptions(c.field,c.validator,"onerror");d&&a.fn.bootstrapvalidator.helpers.call(d,[b,c])}).on(this.options.events.validatorsuccess,function(b,c){var d=e.getoptions(c.field,c.validator,"onsuccess");d&&a.fn.bootstrapvalidator.helpers.call(d,[b,c])}),k=a.map(j,function(a){return a+".live.bv"}).join(" "),this.options.live){case"submitted":break;case"disabled":c.off(k);break;case"enabled":default:c.off(k).on(k,function(){e._exceedthreshold(a(this))&&e.validatefield(a(this))})}c.trigger(a.event(this.options.events.fieldinit),{bv:this,field:b,element:c})}},_getmessage:function(b,c){if(!(this.options.fields[b]&&a.fn.bootstrapvalidator.validators[c]&&this.options.fields[b].validators&&this.options.fields[b].validators[c]))return"";var d=this.options.fields[b].validators[c];switch(!0){case!!d.message:return d.message;case!!this.options.fields[b].message:return this.options.fields[b].message;case!!a.fn.bootstrapvalidator.i18n[c]:return a.fn.bootstrapvalidator.i18n[c]["default"];default:return this.options.message}},_getmessagecontainer:function(a,b){var c=a.parent();if(c.is(b))return c;var d=c.attr("class");if(!d)return this._getmessagecontainer(c,b);d=d.split(" ");for(var e=d.length,f=0;e>f;f++)if(/^col-(xs|sm|md|lg)-\d+$/.test(d[f])||/^col-(xs|sm|md|lg)-offset-\d+$/.test(d[f]))return c;return this._getmessagecontainer(c,b)},_submit:function(){var b=this.isvalid(),c=b?this.options.events.formsuccess:this.options.events.formerror,d=a.event(c);this.$form.trigger(d),this.$submitbutton&&(b?this._onsuccess(d):this._onerror(d))},_isexcluded:function(b){var c=b.attr("data-bv-excluded"),d=b.attr("data-bv-field")||b.attr("name");switch(!0){case!!d&&this.options.fields&&this.options.fields[d]&&("true"===this.options.fields[d].excluded||this.options.fields[d].excluded===!0):case"true"===c:case""===c:return!0;case!!d&&this.options.fields&&this.options.fields[d]&&("false"===this.options.fields[d].excluded||this.options.fields[d].excluded===!1):case"false"===c:return!1;default:if(this.options.excluded){"string"==typeof this.options.excluded&&(this.options.excluded=a.map(this.options.excluded.split(","),function(b){return a.trim(b)}));for(var e=this.options.excluded.length,f=0;e>f;f++)if("string"==typeof this.options.excluded[f]&&b.is(this.options.excluded[f])||"function"==typeof this.options.excluded[f]&&this.options.excluded[f].call(this,b,this)===!0)return!0}return!1}},_exceedthreshold:function(b){var c=b.attr("data-bv-field"),d=this.options.fields[c].threshold||this.options.threshold;if(!d)return!0;var e=-1!==a.inarray(b.attr("type"),["button","checkbox","file","hidden","image","radio","reset","submit"]);return e||b.val().length>=d},_onerror:function(b){if(!b.isdefaultprevented()){if("submitted"===this.options.live){this.options.live="enabled";var c=this;for(var d in this.options.fields)!function(b){var e=c.getfieldelements(b);if(e.length){var f=a(e[0]).attr("type"),g="radio"===f||"checkbox"===f||"file"===f||"select"===a(e[0]).get(0).tagname?"change":c._changeevent,h=c.options.fields[d].trigger||c.options.trigger||g,i=a.map(h.split(" "),function(a){return a+".live.bv"}).join(" ");e.off(i).on(i,function(){c._exceedthreshold(a(this))&&c.validatefield(a(this))})}}(d)}for(var e=0;e0&&(this.$invalidfields=this.$invalidfields.add(b),b.trigger(a.event(this.options.events.fielderror),h))},_isoptionenabled:function(a,b){return!this.options.fields[a]||"true"!==this.options.fields[a][b]&&this.options.fields[a][b]!==!0?!this.options.fields[a]||"false"!==this.options.fields[a][b]&&this.options.fields[a][b]!==!1?"true"===this.options[b]||this.options[b]===!0:!1:!0},getfieldelements:function(b){return this._cachefields[b]||(this._cachefields[b]=this.options.fields[b]&&this.options.fields[b].selector?a(this.options.fields[b].selector):this.$form.find('[name="'+b+'"]')),this._cachefields[b]},getoptions:function(a,b,c){if(!a)return c?this.options[c]:this.options;if("object"==typeof a&&(a=a.attr("data-bv-field")),!this.options.fields[a])return null;var d=this.options.fields[a];return b?d.validators&&d.validators[b]?c?d.validators[b][c]:d.validators[b]:null:c?d[c]:d},disablesubmitbuttons:function(a){return a?"disabled"!==this.options.live&&this.$form.find(this.options.submitbuttons).attr("disabled","disabled"):this.$form.find(this.options.submitbuttons).removeattr("disabled"),this},validate:function(){if(!this.options.fields)return this;this.disablesubmitbuttons(!0),this._submitifvalid=!1;for(var a in this.options.fields)this.validatefield(a);return this._submit(),this._submitifvalid=!0,this},validatefield:function(b){var c=a([]);switch(typeof b){case"object":c=b,b=b.attr("data-bv-field");break;case"string":c=this.getfieldelements(b)}if(0===c.length||!this.options.fields[b]||this.options.fields[b].enabled===!1)return this;for(var d,e,f=this,g=c.attr("type"),h="radio"===g||"checkbox"===g?1:c.length,i="radio"===g||"checkbox"===g,j=this.options.fields[b].validators,k=this._isoptionenabled(b,"verbose"),l=0;h>l;l++){var m=c.eq(l);if(!this._isexcluded(m)){var n=!1;for(d in j){if(m.data("bv.dfs."+d)&&m.data("bv.dfs."+d).reject(),n)break;var o=m.data("bv.result."+d);if(o!==this.status_valid&&o!==this.status_invalid)if(j[d].enabled!==!1){if(m.data("bv.result."+d,this.status_validating),e=a.fn.bootstrapvalidator.validators[d].validate(this,m,j[d]),"object"==typeof e&&e.resolve)this.updatestatus(i?b:m,this.status_validating,d),m.data("bv.dfs."+d,e),e.done(function(a,b,c){a.removedata("bv.dfs."+b).data("bv.response."+b,c),c.message&&f.updatemessage(a,b,c.message),f.updatestatus(i?a.attr("data-bv-field"):a,c.valid?f.status_valid:f.status_invalid,b),c.valid&&f._submitifvalid===!0?f._submit():c.valid||k||(n=!0)});else if("object"==typeof e&&void 0!==e.valid&&void 0!==e.message){if(m.data("bv.response."+d,e),this.updatemessage(i?b:m,d,e.message),this.updatestatus(i?b:m,e.valid?this.status_valid:this.status_invalid,d),!e.valid&&!k)break}else if("boolean"==typeof e&&(m.data("bv.response."+d,e),this.updatestatus(i?b:m,e?this.status_valid:this.status_invalid,d),!e&&!k))break}else this.updatestatus(i?b:m,this.status_valid,d);else this._onfieldvalidated(m,d)}}}return this},updatemessage:function(b,c,d){var e=a([]);switch(typeof b){case"object":e=b,b=b.attr("data-bv-field");break;case"string":e=this.getfieldelements(b)}e.each(function(){a(this).data("bv.messages").find('.help-block[data-bv-validator="'+c+'"][data-bv-for="'+b+'"]').html(d)})},updatestatus:function(b,c,d){var e=a([]);switch(typeof b){case"object":e=b,b=b.attr("data-bv-field");break;case"string":e=this.getfieldelements(b)}c===this.status_not_validated&&(this._submitifvalid=!1);for(var f=this,g=e.attr("type"),h=this.options.fields[b].group||this.options.group,i="radio"===g||"checkbox"===g?1:e.length,j=0;i>j;j++){var k=e.eq(j);if(!this._isexcluded(k)){var l=k.parents(h),m=k.data("bv.messages"),n=m.find('.help-block[data-bv-validator][data-bv-for="'+b+'"]'),o=d?n.filter('[data-bv-validator="'+d+'"]'):n,p=k.data("bv.icon"),q="function"==typeof(this.options.fields[b].container||this.options.container)?(this.options.fields[b].container||this.options.container).call(this,k,this):this.options.fields[b].container||this.options.container,r=null;if(d)k.data("bv.result."+d,c);else for(var s in this.options.fields[b].validators)k.data("bv.result."+s,c);o.attr("data-bv-result",c);var t,u,v=k.parents(".tab-pane");switch(v&&(t=v.attr("id"))&&(u=a('a[href="#'+t+'"][data-toggle="tab"]').parent()),c){case this.status_validating:r=null,this.disablesubmitbuttons(!0),l.removeclass("has-success").removeclass("has-error"),p&&p.removeclass(this.options.feedbackicons.valid).removeclass(this.options.feedbackicons.invalid).addclass(this.options.feedbackicons.validating).show(),u&&u.removeclass("bv-tab-success").removeclass("bv-tab-error");break;case this.status_invalid:r=!1,this.disablesubmitbuttons(!0),l.removeclass("has-success").addclass("has-error"),p&&p.removeclass(this.options.feedbackicons.valid).removeclass(this.options.feedbackicons.validating).addclass(this.options.feedbackicons.invalid).show(),u&&u.removeclass("bv-tab-success").addclass("bv-tab-error");break;case this.status_valid:r=0===n.filter('[data-bv-result="'+this.status_not_validated+'"]').length?n.filter('[data-bv-result="'+this.status_valid+'"]').length===n.length:null,null!==r&&(this.disablesubmitbuttons(this.$submitbutton?!this.isvalid():!r),p&&p.removeclass(this.options.feedbackicons.invalid).removeclass(this.options.feedbackicons.validating).removeclass(this.options.feedbackicons.valid).addclass(r?this.options.feedbackicons.valid:this.options.feedbackicons.invalid).show()),l.removeclass("has-error has-success").addclass(this.isvalidcontainer(l)?"has-success":"has-error"),u&&u.removeclass("bv-tab-success").removeclass("bv-tab-error").addclass(this.isvalidcontainer(v)?"bv-tab-success":"bv-tab-error");break;case this.status_not_validated:default:r=null,this.disablesubmitbuttons(!1),l.removeclass("has-success").removeclass("has-error"),p&&p.removeclass(this.options.feedbackicons.valid).removeclass(this.options.feedbackicons.invalid).removeclass(this.options.feedbackicons.validating).hide(),u&&u.removeclass("bv-tab-success").removeclass("bv-tab-error")}switch(!0){case p&&"tooltip"===q:r===!1?p.css("cursor","pointer").tooltip("destroy").tooltip({container:"body",html:!0,placement:"auto top",title:n.filter('[data-bv-result="'+f.status_invalid+'"]').eq(0).html()}):p.css("cursor","").tooltip("destroy");break;case p&&"popover"===q:r===!1?p.css("cursor","pointer").popover("destroy").popover({container:"body",content:n.filter('[data-bv-result="'+f.status_invalid+'"]').eq(0).html(),html:!0,placement:"auto top",trigger:"hover click"}):p.css("cursor","").popover("destroy");break;default:c===this.status_invalid?o.show():o.hide()}k.trigger(a.event(this.options.events.fieldstatus),{bv:this,field:b,element:k,status:c}),this._onfieldvalidated(k,d)}}return this},isvalid:function(){for(var a in this.options.fields)if(!this.isvalidfield(a))return!1;return!0},isvalidfield:function(b){var c=a([]);switch(typeof b){case"object":c=b,b=b.attr("data-bv-field");break;case"string":c=this.getfieldelements(b)}if(0===c.length||!this.options.fields[b]||this.options.fields[b].enabled===!1)return!0;for(var d,e,f,g=c.attr("type"),h="radio"===g||"checkbox"===g?1:c.length,i=0;h>i;i++)if(d=c.eq(i),!this._isexcluded(d))for(e in this.options.fields[b].validators)if(this.options.fields[b].validators[e].enabled!==!1&&(f=d.data("bv.result."+e),f!==this.status_valid))return!1;return!0},isvalidcontainer:function(b){var c=this,d={},e="string"==typeof b?a(b):b;if(0===e.length)return!0;e.find("[data-bv-field]").each(function(){var b=a(this),e=b.attr("data-bv-field");c._isexcluded(b)||d[e]||(d[e]=b)});for(var f in d){var g=d[f];if(g.data("bv.messages").find('.help-block[data-bv-validator][data-bv-for="'+f+'"]').filter('[data-bv-result="'+this.status_invalid+'"]').length>0)return!1}return!0},defaultsubmit:function(){this.$submitbutton&&a("").attr("type","hidden").attr("data-bv-submit-hidden","").attr("name",this.$submitbutton.attr("name")).val(this.$submitbutton.val()).appendto(this.$form),this.$form.off("submit.bv").submit()},getinvalidfields:function(){return this.$invalidfields},getsubmitbutton:function(){return this.$submitbutton},getmessages:function(b,c){var d=this,e=[],f=a([]);switch(!0){case b&&"object"==typeof b:f=b;break;case b&&"string"==typeof b:var g=this.getfieldelements(b);if(g.length>0){var h=g.attr("type");f="radio"===h||"checkbox"===h?g.eq(0):g}break;default:f=this.$invalidfields}var i=c?'[data-bv-validator="'+c+'"]':"";return f.each(function(){e=e.concat(a(this).data("bv.messages").find('.help-block[data-bv-for="'+a(this).attr("data-bv-field")+'"][data-bv-result="'+d.status_invalid+'"]'+i).map(function(){var b=a(this).attr("data-bv-validator"),c=a(this).attr("data-bv-for");return d.options.fields[c].validators[b].enabled===!1?"":a(this).html()}).get())}),e},updateoption:function(a,b,c,d){return"object"==typeof a&&(a=a.attr("data-bv-field")),this.options.fields[a]&&this.options.fields[a].validators[b]&&(this.options.fields[a].validators[b][c]=d,this.updatestatus(a,this.status_not_validated,b)),this},addfield:function(b,c){var d=a([]);switch(typeof b){case"object":d=b,b=b.attr("data-bv-field")||b.attr("name");break;case"string":delete this._cachefields[b],d=this.getfieldelements(b)}d.attr("data-bv-field",b);for(var e=d.attr("type"),f="radio"===e||"checkbox"===e?1:d.length,g=0;f>g;g++){var h=d.eq(g),i=this._parseoptions(h);i=null===i?c:a.extend(!0,c,i),this.options.fields[b]=a.extend(!0,this.options.fields[b],i),this._cachefields[b]=this._cachefields[b]?this._cachefields[b].add(h):h,this._initfield("checkbox"===e||"radio"===e?b:h)}return this.disablesubmitbuttons(!1),this.$form.trigger(a.event(this.options.events.fieldadded),{field:b,element:d,options:this.options.fields[b]}),this},removefield:function(b){var c=a([]);switch(typeof b){case"object":c=b,b=b.attr("data-bv-field")||b.attr("name"),c.attr("data-bv-field",b);break;case"string":c=this.getfieldelements(b)}if(0===c.length)return this;for(var d=c.attr("type"),e="radio"===d||"checkbox"===d?1:c.length,f=0;e>f;f++){var g=c.eq(f);this.$invalidfields=this.$invalidfields.not(g),this._cachefields[b]=this._cachefields[b].not(g)}return this._cachefields[b]&&0!==this._cachefields[b].length||delete this.options.fields[b],("checkbox"===d||"radio"===d)&&this._initfield(b),this.disablesubmitbuttons(!1),this.$form.trigger(a.event(this.options.events.fieldremoved),{field:b,element:c}),this},resetfield:function(b,c){var d=a([]);switch(typeof b){case"object":d=b,b=b.attr("data-bv-field");break;case"string":d=this.getfieldelements(b)}var e=d.length;if(this.options.fields[b])for(var f=0;e>f;f++)for(var g in this.options.fields[b].validators)d.eq(f).removedata("bv.dfs."+g);if(this.updatestatus(b,this.status_not_validated),c){var h=d.attr("type");"radio"===h||"checkbox"===h?d.removeattr("checked").removeattr("selected"):d.val("")}return this},resetform:function(b){for(var c in this.options.fields)this.resetfield(c,b);return this.$invalidfields=a([]),this.$submitbutton=null,this.disablesubmitbuttons(!1),this},revalidatefield:function(a){return this.updatestatus(a,this.status_not_validated).validatefield(a),this},enablefieldvalidators:function(a,b,c){var d=this.options.fields[a].validators;if(c&&d&&d[c]&&d[c].enabled!==b)this.options.fields[a].validators[c].enabled=b,this.updatestatus(a,this.status_not_validated,c);else if(!c&&this.options.fields[a].enabled!==b){this.options.fields[a].enabled=b;for(var e in d)this.enablefieldvalidators(a,b,e)}return this},getdynamicoption:function(b,c){var d="string"==typeof b?this.getfieldelements(b):b,e=d.val();if("function"==typeof c)return a.fn.bootstrapvalidator.helpers.call(c,[e,this,d]);if("string"==typeof c){var f=this.getfieldelements(c);return f.length?f.val():a.fn.bootstrapvalidator.helpers.call(c,[e,this,d])||c}return null},destroy:function(){var b,c,d,e,f,g;for(b in this.options.fields){c=this.getfieldelements(b),g=this.options.fields[b].group||this.options.group;for(var h=0;h2||b.length>2||a.length>4)return!1;if(c=parseint(c,10),b=parseint(b,10),a=parseint(a,10),1e3>a||a>9999||0>=b||b>12)return!1;var e=[31,28,31,30,31,30,31,31,30,31,30,31];if((a%400===0||a%100!==0&&a%4===0)&&(e[1]=29),0>=c||c>e[b-1])return!1;if(d===!0){var f=new date,g=f.getfullyear(),h=f.getmonth(),i=f.getdate();return g>a||a===g&&h>b-1||a===g&&b-1===h&&i>c}return!0},luhn:function(a){for(var b=a.length,c=0,d=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],e=0;b--;)e+=d[c][parseint(a.charat(b),10)],c^=1;return e%10===0&&e>0},mod11and10:function(a){for(var b=5,c=a.length,d=0;c>d;d++)b=(2*(b||10)%11+parseint(a.charat(d),10))%10;return 1===b},mod37and36:function(a,b){b=b||"0123456789abcdefghijklmnopqrstuvwxyz";for(var c=b.length,d=a.length,e=math.floor(c/2),f=0;d>f;f++)e=(2*(e||c)%(c+1)+b.indexof(a.charat(f)))%c;return 1===e}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.base64=a.extend(a.fn.bootstrapvalidator.i18n.base64||{},{"default":"please enter a valid base 64 encoded"}),a.fn.bootstrapvalidator.validators.base64={validate:function(a,b){var c=b.val();return""===c?!0:/^(?:[a-za-z0-9+/]{4})*(?:[a-za-z0-9+/]{2}==|[a-za-z0-9+/]{3}=|[a-za-z0-9+/]{4})$/.test(c)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.between=a.extend(a.fn.bootstrapvalidator.i18n.between||{},{"default":"please enter a value between %s and %s",notinclusive:"please enter a value between %s and %s strictly"}),a.fn.bootstrapvalidator.validators.between={html5attributes:{message:"message",min:"min",max:"max",inclusive:"inclusive"},enablebyhtml5:function(a){return"range"===a.attr("type")?{min:a.attr("min"),max:a.attr("max")}:!1},validate:function(b,c,d){var e=c.val();if(""===e)return!0;if(e=this._format(e),!a.isnumeric(e))return!1;var f=a.isnumeric(d.min)?d.min:b.getdynamicoption(c,d.min),g=a.isnumeric(d.max)?d.max:b.getdynamicoption(c,d.max),h=this._format(f),i=this._format(g);return e=parsefloat(e),d.inclusive===!0||void 0===d.inclusive?{valid:e>=h&&i>=e,message:a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.between["default"],[f,g])}:{valid:e>h&&i>e,message:a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.between.notinclusive,[f,g])}},_format:function(a){return(a+"").replace(",",".")}}}(window.jquery),function(a){a.fn.bootstrapvalidator.validators.blank={validate:function(){return!0}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.callback=a.extend(a.fn.bootstrapvalidator.i18n.callback||{},{"default":"please enter a valid value"}),a.fn.bootstrapvalidator.validators.callback={html5attributes:{message:"message",callback:"callback"},validate:function(b,c,d){var e=c.val(),f=new a.deferred,g={valid:!0};if(d.callback){var h=a.fn.bootstrapvalidator.helpers.call(d.callback,[e,b,c]);g="boolean"==typeof h?{valid:h}:h}return f.resolve(c,"callback",g),f}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.choice=a.extend(a.fn.bootstrapvalidator.i18n.choice||{},{"default":"please enter a valid value",less:"please choose %s options at minimum",more:"please choose %s options at maximum",between:"please choose %s - %s options"}),a.fn.bootstrapvalidator.validators.choice={html5attributes:{message:"message",min:"min",max:"max"},validate:function(b,c,d){var e=c.is("select")?b.getfieldelements(c.attr("data-bv-field")).find("option").filter(":selected").length:b.getfieldelements(c.attr("data-bv-field")).filter(":checked").length,f=d.min?a.isnumeric(d.min)?d.min:b.getdynamicoption(c,d.min):null,g=d.max?a.isnumeric(d.max)?d.max:b.getdynamicoption(c,d.max):null,h=!0,i=d.message||a.fn.bootstrapvalidator.i18n.choice["default"];switch((f&&eparseint(g,10))&&(h=!1),!0){case!!f&&!!g:i=a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.choice.between,[parseint(f,10),parseint(g,10)]);break;case!!f:i=a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.choice.less,parseint(f,10));break;case!!g:i=a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.choice.more,parseint(g,10))}return{valid:h,message:i}}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.color=a.extend(a.fn.bootstrapvalidator.i18n.color||{},{"default":"please enter a valid color"}),a.fn.bootstrapvalidator.validators.color={supported_types:["hex","rgb","rgba","hsl","hsla","keyword"],keyword_colors:["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","transparent","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],validate:function(b,c,d){var e=c.val();
if(""===e)return!0;var f=d.type||this.supported_types;a.isarray(f)||(f=f.replace(/s/g,"").split(","));for(var g,h,i=!1,j=0;j=0},_rgb:function(a){var b=/^rgb\((\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*,){2}(\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*)\)$/,c=/^rgb\((\s*(\b(0?\d{1,2}|100)\b%)\s*,){2}(\s*(\b(0?\d{1,2}|100)\b%)\s*)\)$/;return b.test(a)||c.test(a)},_rgba:function(a){var b=/^rgba\((\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*,){3}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/,c=/^rgba\((\s*(\b(0?\d{1,2}|100)\b%)\s*,){3}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/;return b.test(a)||c.test(a)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.creditcard=a.extend(a.fn.bootstrapvalidator.i18n.creditcard||{},{"default":"please enter a valid credit card number"}),a.fn.bootstrapvalidator.validators.creditcard={validate:function(b,c){var d=c.val();if(""===d)return!0;if(/[^0-9-\s]+/.test(d))return!1;if(d=d.replace(/\d/g,""),!a.fn.bootstrapvalidator.helpers.luhn(d))return!1;var e,f,g={american_express:{length:[15],prefix:["34","37"]},diners_club:{length:[14],prefix:["300","301","302","303","304","305","36"]},diners_club_us:{length:[16],prefix:["54","55"]},discover:{length:[16],prefix:["6011","622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925","644","645","646","647","648","649","65"]},jcb:{length:[16],prefix:["3528","3529","353","354","355","356","357","358"]},laser:{length:[16,17,18,19],prefix:["6304","6706","6771","6709"]},maestro:{length:[12,13,14,15,16,17,18,19],prefix:["5018","5020","5038","6304","6759","6761","6762","6763","6764","6765","6766"]},mastercard:{length:[16],prefix:["51","52","53","54","55"]},solo:{length:[16,18,19],prefix:["6334","6767"]},unionpay:{length:[16,17,18,19],prefix:["622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925"]},visa:{length:[16],prefix:["4"]}};for(e in g)for(f in g[e].prefix)if(d.substr(0,g[e].prefix[f].length)===g[e].prefix[f]&&-1!==a.inarray(d.length,g[e].length))return!0;return!1}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.cusip=a.extend(a.fn.bootstrapvalidator.i18n.cusip||{},{"default":"please enter a valid cusip number"}),a.fn.bootstrapvalidator.validators.cusip={validate:function(b,c){var d=c.val();if(""===d)return!0;if(d=d.touppercase(),!/^[0-9a-z]{9}$/.test(d))return!1;for(var e=a.map(d.split(""),function(a){var b=a.charcodeat(0);return b>="a".charcodeat(0)&&b<="z".charcodeat(0)?b-"a".charcodeat(0)+10:a}),f=e.length,g=0,h=0;f-1>h;h++){var i=parseint(e[h],10);h%2!==0&&(i*=2),i>9&&(i-=9),g+=i}return g=(10-g%10)%10,g===e[f-1]}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.cvv=a.extend(a.fn.bootstrapvalidator.i18n.cvv||{},{"default":"please enter a valid cvv number"}),a.fn.bootstrapvalidator.validators.cvv={html5attributes:{message:"message",ccfield:"creditcardfield"},validate:function(b,c,d){var e=c.val();if(""===e)return!0;if(!/^[0-9]{3,4}$/.test(e))return!1;if(!d.creditcardfield)return!0;var f=b.getfieldelements(d.creditcardfield).val();if(""===f)return!0;f=f.replace(/\d/g,"");var g,h,i={american_express:{length:[15],prefix:["34","37"]},diners_club:{length:[14],prefix:["300","301","302","303","304","305","36"]},diners_club_us:{length:[16],prefix:["54","55"]},discover:{length:[16],prefix:["6011","622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925","644","645","646","647","648","649","65"]},jcb:{length:[16],prefix:["3528","3529","353","354","355","356","357","358"]},laser:{length:[16,17,18,19],prefix:["6304","6706","6771","6709"]},maestro:{length:[12,13,14,15,16,17,18,19],prefix:["5018","5020","5038","6304","6759","6761","6762","6763","6764","6765","6766"]},mastercard:{length:[16],prefix:["51","52","53","54","55"]},solo:{length:[16,18,19],prefix:["6334","6767"]},unionpay:{length:[16,17,18,19],prefix:["622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925"]},visa:{length:[16],prefix:["4"]}},j=null;for(g in i)for(h in i[g].prefix)if(f.substr(0,i[g].prefix[h].length)===i[g].prefix[h]&&-1!==a.inarray(f.length,i[g].length)){j=g;break}return null===j?!1:"american_express"===j?4===e.length:3===e.length}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.date=a.extend(a.fn.bootstrapvalidator.i18n.date||{},{"default":"please enter a valid date",min:"please enter a date after %s",max:"please enter a date before %s",range:"please enter a date in the range %s - %s"}),a.fn.bootstrapvalidator.validators.date={html5attributes:{message:"message",format:"format",min:"min",max:"max",separator:"separator"},validate:function(b,c,d){var e=c.val();if(""===e)return!0;d.format=d.format||"mm/dd/yyyy","date"===c.attr("type")&&(d.format="yyyy-mm-dd");var f=d.format.split(" "),g=f[0],h=f.length>1?f[1]:null,i=f.length>2?f[2]:null,j=e.split(" "),k=j[0],l=j.length>1?j[1]:null;if(f.length!==j.length)return{valid:!1,message:d.message||a.fn.bootstrapvalidator.i18n.date["default"]};var m=d.separator;if(m||(m=-1!==k.indexof("/")?"/":-1!==k.indexof("-")?"-":null),null===m||-1===k.indexof(m))return{valid:!1,message:d.message||a.fn.bootstrapvalidator.i18n.date["default"]};if(k=k.split(m),g=g.split(m),k.length!==g.length)return{valid:!1,message:d.message||a.fn.bootstrapvalidator.i18n.date["default"]};var n=k[a.inarray("yyyy",g)],o=k[a.inarray("mm",g)],p=k[a.inarray("dd",g)];if(!n||!o||!p||4!==n.length)return{valid:!1,message:d.message||a.fn.bootstrapvalidator.i18n.date["default"]};var q=null,r=null,s=null;if(h){if(h=h.split(":"),l=l.split(":"),h.length!==l.length)return{valid:!1,message:d.message||a.fn.bootstrapvalidator.i18n.date["default"]};if(r=l.length>0?l[0]:null,q=l.length>1?l[1]:null,s=l.length>2?l[2]:null){if(isnan(s)||s.length>2)return{valid:!1,message:d.message||a.fn.bootstrapvalidator.i18n.date["default"]};if(s=parseint(s,10),0>s||s>60)return{valid:!1,message:d.message||a.fn.bootstrapvalidator.i18n.date["default"]}}if(r){if(isnan(r)||r.length>2)return{valid:!1,message:d.message||a.fn.bootstrapvalidator.i18n.date["default"]};if(r=parseint(r,10),0>r||r>=24||i&&r>12)return{valid:!1,message:d.message||a.fn.bootstrapvalidator.i18n.date["default"]}}if(q){if(isnan(q)||q.length>2)return{valid:!1,message:d.message||a.fn.bootstrapvalidator.i18n.date["default"]};if(q=parseint(q,10),0>q||q>59)return{valid:!1,message:d.message||a.fn.bootstrapvalidator.i18n.date["default"]}}}var t=a.fn.bootstrapvalidator.helpers.date(n,o,p),u=d.message||a.fn.bootstrapvalidator.i18n.date["default"],v=null,w=null,x=d.min,y=d.max;switch(x&&(isnan(date.parse(x))&&(x=b.getdynamicoption(c,x)),v=this._parsedate(x,g,m)),y&&(isnan(date.parse(y))&&(y=b.getdynamicoption(c,y)),w=this._parsedate(y,g,m)),k=new date(n,o,p,r,q,s),!0){case x&&!y&&t:t=k.gettime()>=v.gettime(),u=d.message||a.fn.bootstrapvalidator.helpers.format(a.fn.bootstrapvalidator.i18n.date.min,x);break;case y&&!x&&t:t=k.gettime()<=w.gettime(),u=d.message||a.fn.bootstrapvalidator.helpers.format(a.fn.bootstrapvalidator.i18n.date.max,y);break;case y&&x&&t:t=k.gettime()<=w.gettime()&&k.gettime()>=v.gettime(),u=d.message||a.fn.bootstrapvalidator.helpers.format(a.fn.bootstrapvalidator.i18n.date.range,[x,y])}return{valid:t,message:u}},_parsedate:function(b,c,d){var e=0,f=0,g=0,h=b.split(" "),i=h[0],j=h.length>1?h[1]:null;i=i.split(d);var k=i[a.inarray("yyyy",c)],l=i[a.inarray("mm",c)],m=i[a.inarray("dd",c)];return j&&(j=j.split(":"),f=j.length>0?j[0]:null,e=j.length>1?j[1]:null,g=j.length>2?j[2]:null),new date(k,l,m,f,e,g)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.different=a.extend(a.fn.bootstrapvalidator.i18n.different||{},{"default":"please enter a different value"}),a.fn.bootstrapvalidator.validators.different={html5attributes:{message:"message",field:"field"},validate:function(a,b,c){var d=b.val();if(""===d)return!0;for(var e=c.field.split(","),f=!0,g=0;gg;g++)e+=parseint(c.charat(g),10)*f[g%2];return e=(10-e%10)%10,e+""===c.charat(d-1)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.emailaddress=a.extend(a.fn.bootstrapvalidator.i18n.emailaddress||{},{"default":"please enter a valid email address"}),a.fn.bootstrapvalidator.validators.emailaddress={html5attributes:{message:"message",multiple:"multiple",separator:"separator"},enablebyhtml5:function(a){return"email"===a.attr("type")},validate:function(a,b,c){var d=b.val();if(""===d)return!0;var e=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@[a-za-z0-9](?:[a-za-z0-9-]{0,61}[a-za-z0-9])?(?:\.[a-za-z0-9](?:[a-za-z0-9-]{0,61}[a-za-z0-9])?)*$/,f=c.multiple===!0||"true"===c.multiple;if(f){for(var g=c.separator||/[,;]/,h=this._splitemailaddresses(d,g),i=0;ig;g++)if(g%2===0){var h=c[g].split(b),i=h.length;if(1===i)f+=h[0];else{e.push(f+h[0]);for(var j=1;i-1>j;j++)e.push(h[j]);f=h[i-1]}}else f+='"'+c[g],d-1>g&&(f+='"');return e.push(f),e}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.file=a.extend(a.fn.bootstrapvalidator.i18n.file||{},{"default":"please choose a valid file"}),a.fn.bootstrapvalidator.validators.file={html5attributes:{extension:"extension",maxfiles:"maxfiles",minfiles:"minfiles",maxsize:"maxsize",minsize:"minsize",maxtotalsize:"maxtotalsize",mintotalsize:"mintotalsize",message:"message",type:"type"},validate:function(b,c,d){var e=c.val();if(""===e)return!0;var f,g=d.extension?d.extension.tolowercase().split(","):null,h=d.type?d.type.tolowercase().split(","):null,i=window.file&&window.filelist&&window.filereader;if(i){var j=c.get(0).files,k=j.length,l=0;if(d.maxfiles&&k>parseint(d.maxfiles,10)||d.minfiles&&km;m++)if(l+=j[m].size,f=j[m].name.substr(j[m].name.lastindexof(".")+1),d.minsize&&j[m].sizeparseint(d.maxsize,10)||g&&-1===a.inarray(f.tolowercase(),g)||j[m].type&&h&&-1===a.inarray(j[m].type.tolowercase(),h))return!1;if(d.maxtotalsize&&l>parseint(d.maxtotalsize,10)||d.mintotalsize&&l=g,message:a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.greaterthan["default"],f)}:{valid:e>g,message:a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.greaterthan.notinclusive,f)}},_format:function(a){return(a+"").replace(",",".")}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.grid=a.extend(a.fn.bootstrapvalidator.i18n.grid||{},{"default":"please enter a valid grid number"}),a.fn.bootstrapvalidator.validators.grid={validate:function(b,c){var d=c.val();return""===d?!0:(d=d.touppercase(),/^[grid:]*([0-9a-z]{2})[-\s]*([0-9a-z]{5})[-\s]*([0-9a-z]{10})[-\s]*([0-9a-z]{1})$/g.test(d)?(d=d.replace(/\s/g,"").replace(/-/g,""),"grid:"===d.substr(0,5)&&(d=d.substr(5)),a.fn.bootstrapvalidator.helpers.mod37and36(d)):!1)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.hex=a.extend(a.fn.bootstrapvalidator.i18n.hex||{},{"default":"please enter a valid hexadecimal number"}),a.fn.bootstrapvalidator.validators.hex={validate:function(a,b){var c=b.val();return""===c?!0:/^[0-9a-fa-f]+$/.test(c)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.hexcolor=a.extend(a.fn.bootstrapvalidator.i18n.hexcolor||{},{"default":"please enter a valid hex color"}),a.fn.bootstrapvalidator.validators.hexcolor={enablebyhtml5:function(a){return"color"===a.attr("type")},validate:function(a,b){var c=b.val();return""===c?!0:"color"===b.attr("type")?/^#[0-9a-f]{6}$/i.test(c):/(^#[0-9a-f]{6}$)|(^#[0-9a-f]{3}$)/i.test(c)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.iban=a.extend(a.fn.bootstrapvalidator.i18n.iban||{},{"default":"please enter a valid iban number",countrynotsupported:"the country code %s is not supported",country:"please enter a valid iban number in %s",countries:{ad:"andorra",ae:"united arab emirates",al:"albania",ao:"angola",at:"austria",az:"azerbaijan",ba:"bosnia and herzegovina",be:"belgium",bf:"burkina faso",bg:"bulgaria",bh:"bahrain",bi:"burundi",bj:"benin",br:"brazil",ch:"switzerland",ci:"ivory coast",cm:"cameroon",cr:"costa rica",cv:"cape verde",cy:"cyprus",cz:"czech republic",de:"germany",dk:"denmark",do:"dominican republic",dz:"algeria",ee:"estonia",es:"spain",fi:"finland",fo:"faroe islands",fr:"france",gb:"united kingdom",ge:"georgia",gi:"gibraltar",gl:"greenland",gr:"greece",gt:"guatemala",hr:"croatia",hu:"hungary",ie:"ireland",il:"israel",ir:"iran",is:"iceland",it:"italy",jo:"jordan",kw:"kuwait",kz:"kazakhstan",lb:"lebanon",li:"liechtenstein",lt:"lithuania",lu:"luxembourg",lv:"latvia",mc:"monaco",md:"moldova",me:"montenegro",mg:"madagascar",mk:"macedonia",ml:"mali",mr:"mauritania",mt:"malta",mu:"mauritius",mz:"mozambique",nl:"netherlands",no:"norway",pk:"pakistan",pl:"poland",ps:"palestine",pt:"portugal",qa:"qatar",ro:"romania",rs:"serbia",sa:"saudi arabia",se:"sweden",si:"slovenia",sk:"slovakia",sm:"san marino",sn:"senegal",tn:"tunisia",tr:"turkey",vg:"virgin islands, british"}}),a.fn.bootstrapvalidator.validators.iban={html5attributes:{message:"message",country:"country"},regex:{ad:"ad[0-9]{2}[0-9]{4}[0-9]{4}[a-z0-9]{12}",ae:"ae[0-9]{2}[0-9]{3}[0-9]{16}",al:"al[0-9]{2}[0-9]{8}[a-z0-9]{16}",ao:"ao[0-9]{2}[0-9]{21}",at:"at[0-9]{2}[0-9]{5}[0-9]{11}",az:"az[0-9]{2}[a-z]{4}[a-z0-9]{20}",ba:"ba[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{8}[0-9]{2}",be:"be[0-9]{2}[0-9]{3}[0-9]{7}[0-9]{2}",bf:"bf[0-9]{2}[0-9]{23}",bg:"bg[0-9]{2}[a-z]{4}[0-9]{4}[0-9]{2}[a-z0-9]{8}",bh:"bh[0-9]{2}[a-z]{4}[a-z0-9]{14}",bi:"bi[0-9]{2}[0-9]{12}",bj:"bj[0-9]{2}[a-z]{1}[0-9]{23}",br:"br[0-9]{2}[0-9]{8}[0-9]{5}[0-9]{10}[a-z][a-z0-9]",ch:"ch[0-9]{2}[0-9]{5}[a-z0-9]{12}",ci:"ci[0-9]{2}[a-z]{1}[0-9]{23}",cm:"cm[0-9]{2}[0-9]{23}",cr:"cr[0-9]{2}[0-9]{3}[0-9]{14}",cv:"cv[0-9]{2}[0-9]{21}",cy:"cy[0-9]{2}[0-9]{3}[0-9]{5}[a-z0-9]{16}",cz:"cz[0-9]{2}[0-9]{20}",de:"de[0-9]{2}[0-9]{8}[0-9]{10}",dk:"dk[0-9]{2}[0-9]{14}",do:"do[0-9]{2}[a-z0-9]{4}[0-9]{20}",dz:"dz[0-9]{2}[0-9]{20}",ee:"ee[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{11}[0-9]{1}",es:"es[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{1}[0-9]{1}[0-9]{10}",fi:"fi[0-9]{2}[0-9]{6}[0-9]{7}[0-9]{1}",fo:"fo[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",fr:"fr[0-9]{2}[0-9]{5}[0-9]{5}[a-z0-9]{11}[0-9]{2}",gb:"gb[0-9]{2}[a-z]{4}[0-9]{6}[0-9]{8}",ge:"ge[0-9]{2}[a-z]{2}[0-9]{16}",gi:"gi[0-9]{2}[a-z]{4}[a-z0-9]{15}",gl:"gl[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",gr:"gr[0-9]{2}[0-9]{3}[0-9]{4}[a-z0-9]{16}",gt:"gt[0-9]{2}[a-z0-9]{4}[a-z0-9]{20}",hr:"hr[0-9]{2}[0-9]{7}[0-9]{10}",hu:"hu[0-9]{2}[0-9]{3}[0-9]{4}[0-9]{1}[0-9]{15}[0-9]{1}",ie:"ie[0-9]{2}[a-z]{4}[0-9]{6}[0-9]{8}",il:"il[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{13}",ir:"ir[0-9]{2}[0-9]{22}",is:"is[0-9]{2}[0-9]{4}[0-9]{2}[0-9]{6}[0-9]{10}",it:"it[0-9]{2}[a-z]{1}[0-9]{5}[0-9]{5}[a-z0-9]{12}",jo:"jo[0-9]{2}[a-z]{4}[0-9]{4}[0]{8}[a-z0-9]{10}",kw:"kw[0-9]{2}[a-z]{4}[0-9]{22}",kz:"kz[0-9]{2}[0-9]{3}[a-z0-9]{13}",lb:"lb[0-9]{2}[0-9]{4}[a-z0-9]{20}",li:"li[0-9]{2}[0-9]{5}[a-z0-9]{12}",lt:"lt[0-9]{2}[0-9]{5}[0-9]{11}",lu:"lu[0-9]{2}[0-9]{3}[a-z0-9]{13}",lv:"lv[0-9]{2}[a-z]{4}[a-z0-9]{13}",mc:"mc[0-9]{2}[0-9]{5}[0-9]{5}[a-z0-9]{11}[0-9]{2}",md:"md[0-9]{2}[a-z0-9]{20}",me:"me[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",mg:"mg[0-9]{2}[0-9]{23}",mk:"mk[0-9]{2}[0-9]{3}[a-z0-9]{10}[0-9]{2}",ml:"ml[0-9]{2}[a-z]{1}[0-9]{23}",mr:"mr13[0-9]{5}[0-9]{5}[0-9]{11}[0-9]{2}",mt:"mt[0-9]{2}[a-z]{4}[0-9]{5}[a-z0-9]{18}",mu:"mu[0-9]{2}[a-z]{4}[0-9]{2}[0-9]{2}[0-9]{12}[0-9]{3}[a-z]{3}",mz:"mz[0-9]{2}[0-9]{21}",nl:"nl[0-9]{2}[a-z]{4}[0-9]{10}",no:"no[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{1}",pk:"pk[0-9]{2}[a-z]{4}[a-z0-9]{16}",pl:"pl[0-9]{2}[0-9]{8}[0-9]{16}",ps:"ps[0-9]{2}[a-z]{4}[a-z0-9]{21}",pt:"pt[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{11}[0-9]{2}",qa:"qa[0-9]{2}[a-z]{4}[a-z0-9]{21}",ro:"ro[0-9]{2}[a-z]{4}[a-z0-9]{16}",rs:"rs[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",sa:"sa[0-9]{2}[0-9]{2}[a-z0-9]{18}",se:"se[0-9]{2}[0-9]{3}[0-9]{16}[0-9]{1}",si:"si[0-9]{2}[0-9]{5}[0-9]{8}[0-9]{2}",sk:"sk[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{10}",sm:"sm[0-9]{2}[a-z]{1}[0-9]{5}[0-9]{5}[a-z0-9]{12}",sn:"sn[0-9]{2}[a-z]{1}[0-9]{23}",tn:"tn59[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",tr:"tr[0-9]{2}[0-9]{5}[a-z0-9]{1}[a-z0-9]{16}",vg:"vg[0-9]{2}[a-z]{4}[0-9]{16}"},validate:function(b,c,d){var e=c.val();if(""===e)return!0;e=e.replace(/[^a-za-z0-9]/g,"").touppercase();var f=d.country;if(f?"string"==typeof f&&this.regex[f]||(f=b.getdynamicoption(c,f)):f=e.substr(0,2),!this.regex[f])return{valid:!1,message:a.fn.bootstrapvalidator.helpers.format(a.fn.bootstrapvalidator.i18n.iban.countrynotsupported,f)};if(!new regexp("^"+this.regex[f]+"$").test(e))return{valid:!1,message:a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.iban.country,a.fn.bootstrapvalidator.i18n.iban.countries[f])};e=e.substr(4)+e.substr(0,4),e=a.map(e.split(""),function(a){var b=a.charcodeat(0);return b>="a".charcodeat(0)&&b<="z".charcodeat(0)?b-"a".charcodeat(0)+10:a}),e=e.join("");for(var g=parseint(e.substr(0,1),10),h=e.length,i=1;h>i;++i)g=(10*g+parseint(e.substr(i,1),10))%97;return{valid:1===g,message:a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.iban.country,a.fn.bootstrapvalidator.i18n.iban.countries[f])}}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.id=a.extend(a.fn.bootstrapvalidator.i18n.id||{},{"default":"please enter a valid identification number",countrynotsupported:"the country code %s is not supported",country:"please enter a valid identification number in %s",countries:{ba:"bosnia and herzegovina",bg:"bulgaria",br:"brazil",ch:"switzerland",cl:"chile",cn:"china",cz:"czech republic",dk:"denmark",ee:"estonia",es:"spain",fi:"finland",hr:"croatia",ie:"ireland",is:"iceland",lt:"lithuania",lv:"latvia",me:"montenegro",mk:"macedonia",nl:"netherlands",ro:"romania",rs:"serbia",se:"sweden",si:"slovenia",sk:"slovakia",sm:"san marino",th:"thailand",za:"south africa"}}),a.fn.bootstrapvalidator.validators.id={html5attributes:{message:"message",country:"country"},country_codes:["ba","bg","br","ch","cl","cn","cz","dk","ee","es","fi","hr","ie","is","lt","lv","me","mk","nl","ro","rs","se","si","sk","sm","th","za"],validate:function(b,c,d){var e=c.val();if(""===e)return!0;var f=d.country;if(f?("string"!=typeof f||-1===a.inarray(f.touppercase(),this.country_codes))&&(f=b.getdynamicoption(c,f)):f=e.substr(0,2),-1===a.inarray(f,this.country_codes))return{valid:!1,message:a.fn.bootstrapvalidator.helpers.format(a.fn.bootstrapvalidator.i18n.id.countrynotsupported,f)};var g=["_",f.tolowercase()].join("");return this[g](e)?!0:{valid:!1,message:a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.id.country,a.fn.bootstrapvalidator.i18n.id.countries[f.touppercase()])}},_validatejmbg:function(a,b){if(!/^\d{13}$/.test(a))return!1;var c=parseint(a.substr(0,2),10),d=parseint(a.substr(2,2),10),e=(parseint(a.substr(4,3),10),parseint(a.substr(7,2),10)),f=parseint(a.substr(12,1),10);if(c>31||d>12)return!1;for(var g=0,h=0;6>h;h++)g+=(7-h)*(parseint(a.charat(h),10)+parseint(a.charat(h+6),10));if(g=11-g%11,(10===g||11===g)&&(g=0),g!==f)return!1;switch(b.touppercase()){case"ba":return e>=10&&19>=e;case"mk":return e>=41&&49>=e;case"me":return e>=20&&29>=e;case"rs":return e>=70&&99>=e;case"si":return e>=50&&59>=e;default:return!0}},_ba:function(a){return this._validatejmbg(a,"ba")},_mk:function(a){return this._validatejmbg(a,"mk")},_me:function(a){return this._validatejmbg(a,"me")},_rs:function(a){return this._validatejmbg(a,"rs")},_si:function(a){return this._validatejmbg(a,"si")},_bg:function(b){if(!/^\d{10}$/.test(b)&&!/^\d{6}\s\d{3}\s\d{1}$/.test(b))return!1;b=b.replace(/\s/g,"");var c=parseint(b.substr(0,2),10)+1900,d=parseint(b.substr(2,2),10),e=parseint(b.substr(4,2),10);if(d>40?(c+=100,d-=40):d>20&&(c-=100,d-=20),!a.fn.bootstrapvalidator.helpers.date(c,d,e))return!1;for(var f=0,g=[2,4,8,5,10,9,7,3,6],h=0;9>h;h++)f+=parseint(b.charat(h),10)*g[h];return f=f%11%10,f+""===b.substr(9,1)},_br:function(a){if(/^1{11}|2{11}|3{11}|4{11}|5{11}|6{11}|7{11}|8{11}|9{11}|0{11}$/.test(a))return!1;if(!/^\d{11}$/.test(a)&&!/^\d{3}\.\d{3}\.\d{3}-\d{2}$/.test(a))return!1;a=a.replace(/\./g,"").replace(/-/g,"");for(var b=0,c=0;9>c;c++)b+=(10-c)*parseint(a.charat(c),10);if(b=11-b%11,(10===b||11===b)&&(b=0),b+""!==a.charat(9))return!1;var d=0;for(c=0;10>c;c++)d+=(11-c)*parseint(a.charat(c),10);return d=11-d%11,(10===d||11===d)&&(d=0),d+""===a.charat(10)},_ch:function(a){if(!/^756[\.]{0,1}[0-9]{4}[\.]{0,1}[0-9]{4}[\.]{0,1}[0-9]{2}$/.test(a))return!1;a=a.replace(/\d/g,"").substr(3);for(var b=a.length,c=0,d=8===b?[3,1]:[1,3],e=0;b-1>e;e++)c+=parseint(a.charat(e),10)*d[e%2];return c=10-c%10,c+""===a.charat(b-1)},_cl:function(a){if(!/^\d{7,8}[-]{0,1}[0-9k]$/i.test(a))return!1;for(a=a.replace(/\-/g,"");a.length<9;)a="0"+a;for(var b=0,c=[3,2,7,6,5,4,3,2],d=0;8>d;d++)b+=parseint(a.charat(d),10)*c[d];return b=11-b%11,11===b?b=0:10===b&&(b="k"),b+""===a.charat(8).touppercase()},_cn:function(b){if(b=b.trim(),!/^\d{15}$/.test(b)&&!/^\d{17}[\dxx]{1}$/.test(b))return!1;var c={11:{0:[0],1:[[0,9],[11,17]],2:[0,28,29]},12:{0:[0],1:[[0,16]],2:[0,21,23,25]},13:{0:[0],1:[[0,5],7,8,21,[23,33],[81,85]],2:[[0,5],[7,9],[23,25],27,29,30,81,83],3:[[0,4],[21,24]],4:[[0,4],6,21,[23,35],81],5:[[0,3],[21,35],81,82],6:[[0,4],[21,38],[81,84]],7:[[0,3],5,6,[21,33]],8:[[0,4],[21,28]],9:[[0,3],[21,30],[81,84]],10:[[0,3],[22,26],28,81,82],11:[[0,2],[21,28],81,82]},14:{0:[0],1:[0,1,[5,10],[21,23],81],2:[[0,3],11,12,[21,27]],3:[[0,3],11,21,22],4:[[0,2],11,21,[23,31],81],5:[[0,2],21,22,24,25,81],6:[[0,3],[21,24]],7:[[0,2],[21,29],81],8:[[0,2],[21,30],81,82],9:[[0,2],[21,32],81],10:[[0,2],[21,34],81,82],11:[[0,2],[21,30],81,82],23:[[0,3],22,23,[25,30],32,33]},15:{0:[0],1:[[0,5],[21,25]],2:[[0,7],[21,23]],3:[[0,4]],4:[[0,4],[21,26],[28,30]],5:[[0,2],[21,26],81],6:[[0,2],[21,27]],7:[[0,3],[21,27],[81,85]],8:[[0,2],[21,26]],9:[[0,2],[21,29],81],22:[[0,2],[21,24]],25:[[0,2],[22,31]],26:[[0,2],[24,27],[29,32],34],28:[0,1,[22,27]],29:[0,[21,23]]},21:{0:[0],1:[[0,6],[11,14],[22,24],81],2:[[0,4],[11,13],24,[81,83]],3:[[0,4],11,21,23,81],4:[[0,4],11,[21,23]],5:[[0,5],21,22],6:[[0,4],24,81,82],7:[[0,3],11,26,27,81,82],8:[[0,4],11,81,82],9:[[0,5],11,21,22],10:[[0,5],11,21,81],11:[[0,3],21,22],12:[[0,2],4,21,23,24,81,82],13:[[0,3],21,22,24,81,82],14:[[0,4],21,22,81]},22:{0:[0],1:[[0,6],12,22,[81,83]],2:[[0,4],11,21,[81,84]],3:[[0,3],22,23,81,82],4:[[0,3],21,22],5:[[0,3],21,23,24,81,82],6:[[0,2],4,5,[21,23],25,81],7:[[0,2],[21,24],81],8:[[0,2],21,22,81,82],24:[[0,6],24,26]},23:{0:[0],1:[[0,12],21,[23,29],[81,84]],2:[[0,8],21,[23,25],27,[29,31],81],3:[[0,7],21,81,82],4:[[0,7],21,22],5:[[0,3],5,6,[21,24]],6:[[0,6],[21,24]],7:[[0,16],22,81],8:[[0,5],11,22,26,28,33,81,82],9:[[0,4],21],10:[[0,5],24,25,81,[83,85]],11:[[0,2],21,23,24,81,82],12:[[0,2],[21,26],[81,83]],27:[[0,4],[21,23]]},31:{0:[0],1:[0,1,[3,10],[12,20]],2:[0,30]},32:{0:[0],1:[[0,7],11,[13,18],24,25],2:[[0,6],11,81,82],3:[[0,5],11,12,[21,24],81,82],4:[[0,2],4,5,11,12,81,82],5:[[0,9],[81,85]],6:[[0,2],11,12,21,23,[81,84]],7:[0,1,3,5,6,[21,24]],8:[[0,4],11,26,[29,31]],9:[[0,3],[21,25],28,81,82],10:[[0,3],11,12,23,81,84,88],11:[[0,2],11,12,[81,83]],12:[[0,4],[81,84]],13:[[0,2],11,[21,24]]},33:{0:[0],1:[[0,6],[8,10],22,27,82,83,85],2:[0,1,[3,6],11,12,25,26,[81,83]],3:[[0,4],22,24,[26,29],81,82],4:[[0,2],11,21,24,[81,83]],5:[[0,3],[21,23]],6:[[0,2],21,24,[81,83]],7:[[0,3],23,26,27,[81,84]],8:[[0,3],22,24,25,81],9:[[0,3],21,22],10:[[0,4],[21,24],81,82],11:[[0,2],[21,27],81]},34:{0:[0],1:[[0,4],11,[21,24],81],2:[[0,4],7,8,[21,23],25],3:[[0,4],11,[21,23]],4:[[0,6],21],5:[[0,4],6,[21,23]],6:[[0,4],21],7:[[0,3],11,21],8:[[0,3],11,[22,28],81],10:[[0,4],[21,24]],11:[[0,3],22,[24,26],81,82],12:[[0,4],21,22,25,26,82],13:[[0,2],[21,24]],14:[[0,2],[21,24]],15:[[0,3],[21,25]],16:[[0,2],[21,23]],17:[[0,2],[21,23]],18:[[0,2],[21,25],81]},35:{0:[0],1:[[0,5],11,[21,25],28,81,82],2:[[0,6],[11,13]],3:[[0,5],22],4:[[0,3],21,[23,30],81],5:[[0,5],21,[24,27],[81,83]],6:[[0,3],[22,29],81],7:[[0,2],[21,25],[81,84]],8:[[0,2],[21,25],81],9:[[0,2],[21,26],81,82]},36:{0:[0],1:[[0,5],11,[21,24]],2:[[0,3],22,81],3:[[0,2],13,[21,23]],4:[[0,3],21,[23,30],81,82],5:[[0,2],21],6:[[0,2],22,81],7:[[0,2],[21,35],81,82],8:[[0,3],[21,30],81],9:[[0,2],[21,26],[81,83]],10:[[0,2],[21,30]],11:[[0,2],[21,30],81]},37:{0:[0],1:[[0,5],12,13,[24,26],81],2:[[0,3],5,[11,14],[81,85]],3:[[0,6],[21,23]],4:[[0,6],81],5:[[0,3],[21,23]],6:[[0,2],[11,13],34,[81,87]],7:[[0,5],24,25,[81,86]],8:[[0,2],11,[26,32],[81,83]],9:[[0,3],11,21,23,82,83],10:[[0,2],[81,83]],11:[[0,3],21,22],12:[[0,3]],13:[[0,2],11,12,[21,29]],14:[[0,2],[21,28],81,82],15:[[0,2],[21,26],81],16:[[0,2],[21,26]],17:[[0,2],[21,28]]},41:{0:[0],1:[[0,6],8,22,[81,85]],2:[[0,5],11,[21,25]],3:[[0,7],11,[22,29],81],4:[[0,4],11,[21,23],25,81,82],5:[[0,3],5,6,22,23,26,27,81],6:[[0,3],11,21,22],7:[[0,4],11,21,[24,28],81,82],8:[[0,4],11,[21,23],25,[81,83]],9:[[0,2],22,23,[26,28]],10:[[0,2],[23,25],81,82],11:[[0,4],[21,23]],12:[[0,2],21,22,24,81,82],13:[[0,3],[21,30],81],14:[[0,3],[21,26],81],15:[[0,3],[21,28]],16:[[0,2],[21,28],81],17:[[0,2],[21,29]],90:[0,1]},42:{0:[0],1:[[0,7],[11,17]],2:[[0,5],22,81],3:[[0,3],[21,25],81],5:[[0,6],[25,29],[81,83]],6:[[0,2],6,7,[24,26],[82,84]],7:[[0,4]],8:[[0,2],4,21,22,81],9:[[0,2],[21,23],81,82,84],10:[[0,3],[22,24],81,83,87],11:[[0,2],[21,27],81,82],12:[[0,2],[21,24],81],13:[[0,3],21,81],28:[[0,2],22,23,[25,28]],90:[0,[4,6],21]},43:{0:[0],1:[[0,5],11,12,21,22,24,81],2:[[0,4],11,21,[23,25],81],3:[[0,2],4,21,81,82],4:[0,1,[5,8],12,[21,24],26,81,82],5:[[0,3],11,[21,25],[27,29],81],6:[[0,3],11,21,23,24,26,81,82],7:[[0,3],[21,26],81],8:[[0,2],11,21,22],9:[[0,3],[21,23],81],10:[[0,3],[21,28],81],11:[[0,3],[21,29]],12:[[0,2],[21,30],81],13:[[0,2],21,22,81,82],31:[0,1,[22,27],30]},44:{0:[0],1:[[0,7],[11,16],83,84],2:[[0,5],21,22,24,29,32,33,81,82],3:[0,1,[3,8]],4:[[0,4]],5:[0,1,[6,15],23,82,83],6:[0,1,[4,8]],7:[0,1,[3,5],81,[83,85]],8:[[0,4],11,23,25,[81,83]],9:[[0,3],23,[81,83]],12:[[0,3],[23,26],83,84],13:[[0,3],[22,24],81],14:[[0,2],[21,24],26,27,81],15:[[0,2],21,23,81],16:[[0,2],[21,25]],17:[[0,2],21,23,81],18:[[0,3],21,23,[25,27],81,82],19:[0],20:[0],51:[[0,3],21,22],52:[[0,3],21,22,24,81],53:[[0,2],[21,23],81]},45:{0:[0],1:[[0,9],[21,27]],2:[[0,5],[21,26]],3:[[0,5],11,12,[21,32]],4:[0,1,[3,6],11,[21,23],81],5:[[0,3],12,21],6:[[0,3],21,81],7:[[0,3],21,22],8:[[0,4],21,81],9:[[0,3],[21,24],81],10:[[0,2],[21,31]],11:[[0,2],[21,23]],12:[[0,2],[21,29],81],13:[[0,2],[21,24],81],14:[[0,2],[21,25],81]},46:{0:[0],1:[0,1,[5,8]],2:[0,1],3:[0,[21,23]],90:[[0,3],[5,7],[21,39]]},50:{0:[0],1:[[0,19]],2:[0,[22,38],[40,43]],3:[0,[81,84]]},51:{0:[0],1:[0,1,[4,8],[12,15],[21,24],29,31,32,[81,84]],3:[[0,4],11,21,22],4:[[0,3],11,21,22],5:[[0,4],21,22,24,25],6:[0,1,3,23,26,[81,83]],7:[0,1,3,4,[22,27],81],8:[[0,2],11,12,[21,24]],9:[[0,4],[21,23]],10:[[0,2],11,24,25,28],11:[[0,2],[11,13],23,24,26,29,32,33,81],13:[[0,4],[21,25],81],14:[[0,2],[21,25]],15:[[0,3],[21,29]],16:[[0,3],[21,23],81],17:[[0,3],[21,25],81],18:[[0,3],[21,27]],19:[[0,3],[21,23]],20:[[0,2],21,22,81],32:[0,[21,33]],33:[0,[21,38]],34:[0,1,[22,37]]},52:{0:[0],1:[[0,3],[11,15],[21,23],81],2:[0,1,3,21,22],3:[[0,3],[21,30],81,82],4:[[0,2],[21,25]],5:[[0,2],[21,27]],6:[[0,3],[21,28]],22:[0,1,[22,30]],23:[0,1,[22,28]],24:[0,1,[22,28]],26:[0,1,[22,36]],27:[[0,2],22,23,[25,32]]},53:{0:[0],1:[[0,3],[11,14],21,22,[24,29],81],3:[[0,2],[21,26],28,81],4:[[0,2],[21,28]],5:[[0,2],[21,24]],6:[[0,2],[21,30]],7:[[0,2],[21,24]],8:[[0,2],[21,29]],9:[[0,2],[21,27]],23:[0,1,[22,29],31],25:[[0,4],[22,32]],26:[0,1,[21,28]],27:[0,1,[22,30]],28:[0,1,22,23],29:[0,1,[22,32]],31:[0,2,3,[22,24]],34:[0,[21,23]],33:[0,21,[23,25]],35:[0,[21,28]]},54:{0:[0],1:[[0,2],[21,27]],21:[0,[21,29],32,33],22:[0,[21,29],[31,33]],23:[0,1,[22,38]],24:[0,[21,31]],25:[0,[21,27]],26:[0,[21,27]]},61:{0:[0],1:[[0,4],[11,16],22,[24,26]],2:[[0,4],22],3:[[0,4],[21,24],[26,31]],4:[[0,4],[22,31],81],5:[[0,2],[21,28],81,82],6:[[0,2],[21,32]],7:[[0,2],[21,30]],8:[[0,2],[21,31]],9:[[0,2],[21,29]],10:[[0,2],[21,26]]},62:{0:[0],1:[[0,5],11,[21,23]],2:[0,1],3:[[0,2],21],4:[[0,3],[21,23]],5:[[0,3],[21,25]],6:[[0,2],[21,23]],7:[[0,2],[21,25]],8:[[0,2],[21,26]],9:[[0,2],[21,24],81,82],10:[[0,2],[21,27]],11:[[0,2],[21,26]],12:[[0,2],[21,28]],24:[0,21,[24,29]],26:[0,21,[23,30]],29:[0,1,[21,27]],30:[0,1,[21,27]]},63:{0:[0],1:[[0,5],[21,23]],2:[0,2,[21,25]],21:[0,[21,23],[26,28]],22:[0,[21,24]],23:[0,[21,24]],25:[0,[21,25]],26:[0,[21,26]],27:[0,1,[21,26]],28:[[0,2],[21,23]]},64:{0:[0],1:[0,1,[4,6],21,22,81],2:[[0,3],5,[21,23]],3:[[0,3],[21,24],81],4:[[0,2],[21,25]],5:[[0,2],21,22]},65:{0:[0],1:[[0,9],21],2:[[0,5]],21:[0,1,22,23],22:[0,1,22,23],23:[[0,3],[23,25],27,28],28:[0,1,[22,29]],29:[0,1,[22,29]],30:[0,1,[22,24]],31:[0,1,[21,31]],32:[0,1,[21,27]],40:[0,2,3,[21,28]],42:[[0,2],21,[23,26]],43:[0,1,[21,26]],90:[[0,4]],27:[[0,2],22,23]},71:{0:[0]},81:{0:[0]},82:{0:[0]}},d=parseint(b.substr(0,2),10),e=parseint(b.substr(2,2),10),f=parseint(b.substr(4,2),10);if(!c[d]||!c[d][e])return!1;for(var g=!1,h=c[d][e],i=0;ii;i++)n+=parseint(b.charat(i),10)*o[i];n=(12-n%11)%11;var p="x"!==b.charat(17).touppercase()?parseint(b.charat(17),10):10;return p===n}return!0
},_cz:function(b){if(!/^\d{9,10}$/.test(b))return!1;var c=1900+parseint(b.substr(0,2),10),d=parseint(b.substr(2,2),10)%50%20,e=parseint(b.substr(4,2),10);if(9===b.length){if(c>=1980&&(c-=100),c>1953)return!1}else 1954>c&&(c+=100);if(!a.fn.bootstrapvalidator.helpers.date(c,d,e))return!1;if(10===b.length){var f=parseint(b.substr(0,9),10)%11;return 1985>c&&(f%=10),f+""===b.substr(9,1)}return!0},_dk:function(b){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(b))return!1;b=b.replace(/-/g,"");var c=parseint(b.substr(0,2),10),d=parseint(b.substr(2,2),10),e=parseint(b.substr(4,2),10);switch(!0){case-1!=="5678".indexof(b.charat(6))&&e>=58:e+=1800;break;case-1!=="0123".indexof(b.charat(6)):case-1!=="49".indexof(b.charat(6))&&e>=37:e+=1900;break;default:e+=2e3}return a.fn.bootstrapvalidator.helpers.date(e,d,c)},_ee:function(a){return this._lt(a)},_es:function(a){if(!/^[0-9a-z]{8}[-]{0,1}[0-9a-z]$/.test(a)&&!/^[xyz][-]{0,1}[0-9]{7}[-]{0,1}[0-9a-z]$/.test(a))return!1;a=a.replace(/-/g,"");var b="xyz".indexof(a.charat(0));-1!==b&&(a=b+a.substr(1)+"");var c=parseint(a.substr(0,8),10);return c="trwagmyfpdxbnjzsqvhlcke"[c%23],c===a.substr(8,1)},_fi:function(b){if(!/^[0-9]{6}[-+a][0-9]{3}[0-9abcdefhjklmnprstuvwxy]$/.test(b))return!1;var c=parseint(b.substr(0,2),10),d=parseint(b.substr(2,2),10),e=parseint(b.substr(4,2),10),f={"+":1800,"-":1900,a:2e3};if(e=f[b.charat(6)]+e,!a.fn.bootstrapvalidator.helpers.date(e,d,c))return!1;var g=parseint(b.substr(7,3),10);if(2>g)return!1;var h=b.substr(0,6)+b.substr(7,3)+"";return h=parseint(h,10),"0123456789abcdefhjklmnprstuvwxy".charat(h%31)===b.charat(10)},_hr:function(b){return/^[0-9]{11}$/.test(b)?a.fn.bootstrapvalidator.helpers.mod11and10(b):!1},_ie:function(a){if(!/^\d{7}[a-w][ahwtx]?$/.test(a))return!1;var b=function(a){for(;a.length<7;)a="0"+a;for(var b="wabcdefghijklmnopqrstuv",c=0,d=0;7>d;d++)c+=parseint(a.charat(d),10)*(8-d);return c+=9*b.indexof(a.substr(7)),b[c%23]};return 9!==a.length||"a"!==a.charat(8)&&"h"!==a.charat(8)?a.charat(7)===b(a.substr(0,7)):a.charat(7)===b(a.substr(0,7)+a.substr(8)+"")},_is:function(b){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(b))return!1;b=b.replace(/-/g,"");var c=parseint(b.substr(0,2),10),d=parseint(b.substr(2,2),10),e=parseint(b.substr(4,2),10),f=parseint(b.charat(9),10);if(e=9===f?1900+e:100*(20+f)+e,!a.fn.bootstrapvalidator.helpers.date(e,d,c,!0))return!1;for(var g=0,h=[3,2,7,6,5,4,3,2],i=0;8>i;i++)g+=parseint(b.charat(i),10)*h[i];return g=11-g%11,g+""===b.charat(8)},_lt:function(b){if(!/^[0-9]{11}$/.test(b))return!1;var c=parseint(b.charat(0),10),d=parseint(b.substr(1,2),10),e=parseint(b.substr(3,2),10),f=parseint(b.substr(5,2),10),g=c%2===0?17+c/2:17+(c+1)/2;if(d=100*g+d,!a.fn.bootstrapvalidator.helpers.date(d,e,f,!0))return!1;for(var h=0,i=[1,2,3,4,5,6,7,8,9,1],j=0;10>j;j++)h+=parseint(b.charat(j),10)*i[j];if(h%=11,10!==h)return h+""===b.charat(10);for(h=0,i=[3,4,5,6,7,8,9,1,2,3],j=0;10>j;j++)h+=parseint(b.charat(j),10)*i[j];return h%=11,10===h&&(h=0),h+""===b.charat(10)},_lv:function(b){if(!/^[0-9]{6}[-]{0,1}[0-9]{5}$/.test(b))return!1;b=b.replace(/\d/g,"");var c=parseint(b.substr(0,2),10),d=parseint(b.substr(2,2),10),e=parseint(b.substr(4,2),10);if(e=e+1800+100*parseint(b.charat(6),10),!a.fn.bootstrapvalidator.helpers.date(e,d,c,!0))return!1;for(var f=0,g=[10,5,8,4,2,1,6,3,7,9],h=0;10>h;h++)f+=parseint(b.charat(h),10)*g[h];return f=(f+1)%11%10,f+""===b.charat(10)},_nl:function(a){for(;a.length<9;)a="0"+a;if(!/^[0-9]{4}[.]{0,1}[0-9]{2}[.]{0,1}[0-9]{3}$/.test(a))return!1;if(a=a.replace(/\./g,""),0===parseint(a,10))return!1;for(var b=0,c=a.length,d=0;c-1>d;d++)b+=(9-d)*parseint(a.charat(d),10);return b%=11,10===b&&(b=0),b+""===a.charat(c-1)},_ro:function(b){if(!/^[0-9]{13}$/.test(b))return!1;var c=parseint(b.charat(0),10);if(0===c||7===c||8===c)return!1;var d=parseint(b.substr(1,2),10),e=parseint(b.substr(3,2),10),f=parseint(b.substr(5,2),10),g={1:1900,2:1900,3:1800,4:1800,5:2e3,6:2e3};if(f>31&&e>12)return!1;if(9!==c&&(d=g[c+""]+d,!a.fn.bootstrapvalidator.helpers.date(d,e,f)))return!1;for(var h=0,i=[2,7,9,1,4,6,3,5,8,2,7,9],j=b.length,k=0;j-1>k;k++)h+=parseint(b.charat(k),10)*i[k];return h%=11,10===h&&(h=1),h+""===b.charat(j-1)},_se:function(b){if(!/^[0-9]{10}$/.test(b)&&!/^[0-9]{6}[-|+][0-9]{4}$/.test(b))return!1;b=b.replace(/[^0-9]/g,"");var c=parseint(b.substr(0,2),10)+1900,d=parseint(b.substr(2,2),10),e=parseint(b.substr(4,2),10);return a.fn.bootstrapvalidator.helpers.date(c,d,e)?a.fn.bootstrapvalidator.helpers.luhn(b):!1},_sk:function(a){return this._cz(a)},_sm:function(a){return/^\d{5}$/.test(a)},_th:function(a){if(13!==a.length)return!1;for(var b=0,c=0;12>c;c++)b+=parseint(a.charat(c),10)*(13-c);return(11-b%11)%10===parseint(a.charat(12),10)},_za:function(b){if(!/^[0-9]{10}[0|1][8|9][0-9]$/.test(b))return!1;var c=parseint(b.substr(0,2),10),d=(new date).getfullyear()%100,e=parseint(b.substr(2,2),10),f=parseint(b.substr(4,2),10);return c=c>=d?c+1900:c+2e3,a.fn.bootstrapvalidator.helpers.date(c,e,f)?a.fn.bootstrapvalidator.helpers.luhn(b):!1}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.identical=a.extend(a.fn.bootstrapvalidator.i18n.identical||{},{"default":"please enter the same value"}),a.fn.bootstrapvalidator.validators.identical={html5attributes:{message:"message",field:"field"},validate:function(a,b,c){var d=b.val();if(""===d)return!0;var e=a.getfieldelements(c.field);return null===e||0===e.length?!0:d===e.val()?(a.updatestatus(c.field,a.status_valid,"identical"),!0):!1}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.imei=a.extend(a.fn.bootstrapvalidator.i18n.imei||{},{"default":"please enter a valid imei number"}),a.fn.bootstrapvalidator.validators.imei={validate:function(b,c){var d=c.val();if(""===d)return!0;switch(!0){case/^\d{15}$/.test(d):case/^\d{2}-\d{6}-\d{6}-\d{1}$/.test(d):case/^\d{2}\s\d{6}\s\d{6}\s\d{1}$/.test(d):return d=d.replace(/[^0-9]/g,""),a.fn.bootstrapvalidator.helpers.luhn(d);case/^\d{14}$/.test(d):case/^\d{16}$/.test(d):case/^\d{2}-\d{6}-\d{6}(|-\d{2})$/.test(d):case/^\d{2}\s\d{6}\s\d{6}(|\s\d{2})$/.test(d):return!0;default:return!1}}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.imo=a.extend(a.fn.bootstrapvalidator.i18n.imo||{},{"default":"please enter a valid imo number"}),a.fn.bootstrapvalidator.validators.imo={validate:function(a,b){var c=b.val();if(""===c)return!0;if(!/^imo \d{7}$/i.test(c))return!1;for(var d=0,e=c.replace(/^.*(\d{7})$/,"$1"),f=6;f>=1;f--)d+=e.slice(6-f,-f)*(f+1);return d%10===parseint(e.charat(6),10)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.integer=a.extend(a.fn.bootstrapvalidator.i18n.integer||{},{"default":"please enter a valid number"}),a.fn.bootstrapvalidator.validators.integer={enablebyhtml5:function(a){return"number"===a.attr("type")&&(void 0===a.attr("step")||a.attr("step")%1===0)},validate:function(a,b){if(this.enablebyhtml5(b)&&b.get(0).validity&&b.get(0).validity.badinput===!0)return!1;var c=b.val();return""===c?!0:/^(?:-?(?:0|[1-9][0-9]*))$/.test(c)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.ip=a.extend(a.fn.bootstrapvalidator.i18n.ip||{},{"default":"please enter a valid ip address",ipv4:"please enter a valid ipv4 address",ipv6:"please enter a valid ipv6 address"}),a.fn.bootstrapvalidator.validators.ip={html5attributes:{message:"message",ipv4:"ipv4",ipv6:"ipv6"},validate:function(b,c,d){var e=c.val();if(""===e)return!0;d=a.extend({},{ipv4:!0,ipv6:!0},d);var f,g=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,h=/^\s*((([0-9a-fa-f]{1,4}:){7}([0-9a-fa-f]{1,4}|:))|(([0-9a-fa-f]{1,4}:){6}(:[0-9a-fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-fa-f]{1,4}:){5}(((:[0-9a-fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-fa-f]{1,4}:){4}(((:[0-9a-fa-f]{1,4}){1,3})|((:[0-9a-fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-fa-f]{1,4}:){3}(((:[0-9a-fa-f]{1,4}){1,4})|((:[0-9a-fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-fa-f]{1,4}:){2}(((:[0-9a-fa-f]{1,4}){1,5})|((:[0-9a-fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-fa-f]{1,4}:){1}(((:[0-9a-fa-f]{1,4}){1,6})|((:[0-9a-fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-fa-f]{1,4}){1,7})|((:[0-9a-fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,i=!1;switch(!0){case d.ipv4&&!d.ipv6:i=g.test(e),f=d.message||a.fn.bootstrapvalidator.i18n.ip.ipv4;break;case!d.ipv4&&d.ipv6:i=h.test(e),f=d.message||a.fn.bootstrapvalidator.i18n.ip.ipv6;break;case d.ipv4&&d.ipv6:default:i=g.test(e)||h.test(e),f=d.message||a.fn.bootstrapvalidator.i18n.ip["default"]}return{valid:i,message:f}}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.isbn=a.extend(a.fn.bootstrapvalidator.i18n.isbn||{},{"default":"please enter a valid isbn number"}),a.fn.bootstrapvalidator.validators.isbn={validate:function(a,b){var c=b.val();if(""===c)return!0;var d;switch(!0){case/^\d{9}[\dx]$/.test(c):case 13===c.length&&/^(\d+)-(\d+)-(\d+)-([\dx])$/.test(c):case 13===c.length&&/^(\d+)\s(\d+)\s(\d+)\s([\dx])$/.test(c):d="isbn10";break;case/^(978|979)\d{9}[\dx]$/.test(c):case 17===c.length&&/^(978|979)-(\d+)-(\d+)-(\d+)-([\dx])$/.test(c):case 17===c.length&&/^(978|979)\s(\d+)\s(\d+)\s(\d+)\s([\dx])$/.test(c):d="isbn13";break;default:return!1}c=c.replace(/[^0-9x]/gi,"");var e,f,g=c.split(""),h=g.length,i=0;switch(d){case"isbn10":for(i=0,e=0;h-1>e;e++)i+=parseint(g[e],10)*(10-e);return f=11-i%11,11===f?f=0:10===f&&(f="x"),f+""===g[h-1];case"isbn13":for(i=0,e=0;h-1>e;e++)i+=e%2===0?parseint(g[e],10):3*parseint(g[e],10);return f=10-i%10,10===f&&(f="0"),f+""===g[h-1];default:return!1}}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.isin=a.extend(a.fn.bootstrapvalidator.i18n.isin||{},{"default":"please enter a valid isin number"}),a.fn.bootstrapvalidator.validators.isin={country_codes:"af|ax|al|dz|as|ad|ao|ai|aq|ag|ar|am|aw|au|at|az|bs|bh|bd|bb|by|be|bz|bj|bm|bt|bo|bq|ba|bw|bv|br|io|bn|bg|bf|bi|kh|cm|ca|cv|ky|cf|td|cl|cn|cx|cc|co|km|cg|cd|ck|cr|ci|hr|cu|cw|cy|cz|dk|dj|dm|do|ec|eg|sv|gq|er|ee|et|fk|fo|fj|fi|fr|gf|pf|tf|ga|gm|ge|de|gh|gi|gr|gl|gd|gp|gu|gt|gg|gn|gw|gy|ht|hm|va|hn|hk|hu|is|in|id|ir|iq|ie|im|il|it|jm|jp|je|jo|kz|ke|ki|kp|kr|kw|kg|la|lv|lb|ls|lr|ly|li|lt|lu|mo|mk|mg|mw|my|mv|ml|mt|mh|mq|mr|mu|yt|mx|fm|md|mc|mn|me|ms|ma|mz|mm|na|nr|np|nl|nc|nz|ni|ne|ng|nu|nf|mp|no|om|pk|pw|ps|pa|pg|py|pe|ph|pn|pl|pt|pr|qa|re|ro|ru|rw|bl|sh|kn|lc|mf|pm|vc|ws|sm|st|sa|sn|rs|sc|sl|sg|sx|sk|si|sb|so|za|gs|ss|es|lk|sd|sr|sj|sz|se|ch|sy|tw|tj|tz|th|tl|tg|tk|to|tt|tn|tr|tm|tc|tv|ug|ua|ae|gb|us|um|uy|uz|vu|ve|vn|vg|vi|wf|eh|ye|zm|zw",validate:function(a,b){var c=b.val();if(""===c)return!0;c=c.touppercase();var d=new regexp("^("+this.country_codes+")[0-9a-z]{10}$");if(!d.test(c))return!1;for(var e="",f=c.length,g=0;f-1>g;g++){var h=c.charcodeat(g);e+=h>57?(h-55).tostring():c.charat(g)}var i="",j=e.length,k=j%2!==0?0:1;for(g=0;j>g;g++)i+=parseint(e[g],10)*(g%2===k?2:1)+"";var l=0;for(g=0;gh;h++)f+=parseint(c.charat(h),10)*g[h%2];return f=10-f%10,f+""===c.charat(e-1)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.issn=a.extend(a.fn.bootstrapvalidator.i18n.issn||{},{"default":"please enter a valid issn number"}),a.fn.bootstrapvalidator.validators.issn={validate:function(a,b){var c=b.val();if(""===c)return!0;if(!/^\d{4}\-\d{3}[\dx]$/.test(c))return!1;c=c.replace(/[^0-9x]/gi,"");var d=c.split(""),e=d.length,f=0;"x"===d[7]&&(d[7]=10);for(var g=0;e>g;g++)f+=parseint(d[g],10)*(8-g);return f%11===0}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.lessthan=a.extend(a.fn.bootstrapvalidator.i18n.lessthan||{},{"default":"please enter a value less than or equal to %s",notinclusive:"please enter a value less than %s"}),a.fn.bootstrapvalidator.validators.lessthan={html5attributes:{message:"message",value:"value",inclusive:"inclusive"},enablebyhtml5:function(a){var b=a.attr("type"),c=a.attr("max");return c&&"date"!==b?{value:c}:!1},validate:function(b,c,d){var e=c.val();if(""===e)return!0;if(e=this._format(e),!a.isnumeric(e))return!1;var f=a.isnumeric(d.value)?d.value:b.getdynamicoption(c,d.value),g=this._format(f);return e=parsefloat(e),d.inclusive===!0||void 0===d.inclusive?{valid:g>=e,message:a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.lessthan["default"],f)}:{valid:g>e,message:a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.lessthan.notinclusive,f)}},_format:function(a){return(a+"").replace(",",".")}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.mac=a.extend(a.fn.bootstrapvalidator.i18n.mac||{},{"default":"please enter a valid mac address"}),a.fn.bootstrapvalidator.validators.mac={validate:function(a,b){var c=b.val();return""===c?!0:/^([0-9a-f]{2}[:-]){5}([0-9a-f]{2})$/.test(c)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.meid=a.extend(a.fn.bootstrapvalidator.i18n.meid||{},{"default":"please enter a valid meid number"}),a.fn.bootstrapvalidator.validators.meid={validate:function(b,c){var d=c.val();if(""===d)return!0;switch(!0){case/^[0-9a-f]{15}$/i.test(d):case/^[0-9a-f]{2}[- ][0-9a-f]{6}[- ][0-9a-f]{6}[- ][0-9a-f]$/i.test(d):case/^\d{19}$/.test(d):case/^\d{5}[- ]\d{5}[- ]\d{4}[- ]\d{4}[- ]\d$/.test(d):var e=d.charat(d.length-1);if(d=d.replace(/[- ]/g,""),d.match(/^\d*$/i))return a.fn.bootstrapvalidator.helpers.luhn(d);d=d.slice(0,-1);for(var f="",g=1;13>=g;g+=2)f+=(2*parseint(d.charat(g),16)).tostring(16);var h=0;for(g=0;g0:"number"===d&&c.get(0).validity&&c.get(0).validity.badinput===!0?!0:""!==a.trim(c.val())}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.numeric=a.extend(a.fn.bootstrapvalidator.i18n.numeric||{},{"default":"please enter a valid float number"}),a.fn.bootstrapvalidator.validators.numeric={html5attributes:{message:"message",separator:"separator"},enablebyhtml5:function(a){return"number"===a.attr("type")&&void 0!==a.attr("step")&&a.attr("step")%1!==0},validate:function(a,b,c){if(this.enablebyhtml5(b)&&b.get(0).validity&&b.get(0).validity.badinput===!0)return!1;var d=b.val();if(""===d)return!0;var e=c.separator||".";return"."!==e&&(d=d.replace(e,".")),!isnan(parsefloat(d))&&isfinite(d)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.phone=a.extend(a.fn.bootstrapvalidator.i18n.phone||{},{"default":"please enter a valid phone number",countrynotsupported:"the country code %s is not supported",country:"please enter a valid phone number in %s",countries:{br:"brazil",cn:"china",cz:"czech republic",de:"germany",dk:"denmark",es:"spain",fr:"france",gb:"united kingdom",ma:"morocco",pk:"pakistan",ro:"romania",ru:"russia",sk:"slovakia",th:"thailand",us:"usa",ve:"venezuela"}}),a.fn.bootstrapvalidator.validators.phone={html5attributes:{message:"message",country:"country"},country_codes:["br","cn","cz","de","dk","es","fr","gb","ma","pk","ro","ru","sk","th","us","ve"],validate:function(b,c,d){var e=c.val();if(""===e)return!0;var f=d.country;if(("string"!=typeof f||-1===a.inarray(f,this.country_codes))&&(f=b.getdynamicoption(c,f)),!f||-1===a.inarray(f.touppercase(),this.country_codes))return{valid:!1,message:a.fn.bootstrapvalidator.helpers.format(a.fn.bootstrapvalidator.i18n.phone.countrynotsupported,f)};var g=!0;switch(f.touppercase()){case"br":e=a.trim(e),g=/^(([\d]{4}[-.\s]{1}[\d]{2,3}[-.\s]{1}[\d]{2}[-.\s]{1}[\d]{2})|([\d]{4}[-.\s]{1}[\d]{3}[-.\s]{1}[\d]{4})|((\(?\+?[0-9]{2}\)?\s?)?(\(?\d{2}\)?\s?)?\d{4,5}[-.\s]?\d{4}))$/.test(e);break;case"cn":e=a.trim(e),g=/^((00|\+)?(86(?:-| )))?((\d{11})|(\d{3}[- ]{1}\d{4}[- ]{1}\d{4})|((\d{2,4}[- ]){1}(\d{7,8}|(\d{3,4}[- ]{1}\d{4}))([- ]{1}\d{1,4})?))$/.test(e);break;case"cz":g=/^(((00)([- ]?)|\+)(420)([- ]?))?((\d{3})([- ]?)){2}(\d{3})$/.test(e);break;case"de":e=a.trim(e),g=/^(((((((00|\+)49[ \-/]?)|0)[1-9][0-9]{1,4})[ \-/]?)|((((00|\+)49\()|\(0)[1-9][0-9]{1,4}\)[ \-/]?))[0-9]{1,7}([ \-/]?[0-9]{1,5})?)$/.test(e);break;case"dk":e=a.trim(e),g=/^(\+45|0045|\(45\))?\s?[2-9](\s?\d){7}$/.test(e);break;case"es":e=a.trim(e),g=/^(?:(?:(?:\+|00)34\d?))?(?:9|6)(?:\d\d?){8}$/.test(e);break;case"fr":e=a.trim(e),g=/^(?:(?:(?:\+|00)33[ ]?(?:\(0\)[ ]?)?)|0){1}[1-9]{1}([ .-]?)(?:\d{2}\1?){3}\d{2}$/.test(e);break;case"gb":e=a.trim(e),g=/^\(?(?:(?:0(?:0|11)\)?[\s-]?\(?|\+)44\)?[\s-]?\(?(?:0\)?[\s-]?\(?)?|0)(?:\d{2}\)?[\s-]?\d{4}[\s-]?\d{4}|\d{3}\)?[\s-]?\d{3}[\s-]?\d{3,4}|\d{4}\)?[\s-]?(?:\d{5}|\d{3}[\s-]?\d{3})|\d{5}\)?[\s-]?\d{4,5}|8(?:00[\s-]?11[\s-]?11|45[\s-]?46[\s-]?4\d))(?:(?:[\s-]?(?:x|ext\.?\s?|\#)\d+)?)$/.test(e);break;case"ma":e=a.trim(e),g=/^(?:(?:(?:\+|00)212[\s]?(?:[\s]?\(0\)[\s]?)?)|0){1}(?:5[\s.-]?[2-3]|6[\s.-]?[13-9]){1}[0-9]{1}(?:[\s.-]?\d{2}){3}$/.test(e);break;case"pk":e=a.trim(e),g=/^0?3[0-9]{2}[0-9]{7}$/.test(e);break;case"ro":g=/^(\+4|)?(07[0-8]{1}[0-9]{1}|02[0-9]{2}|03[0-9]{2}){1}?(\s|\.|\-)?([0-9]{3}(\s|\.|\-|)){2}$/g.test(e);break;case"ru":g=/^((8|\+7|007)[\-\.\/ ]?)?([\(\/\.]?\d{3}[\)\/\.]?[\-\.\/ ]?)?[\d\-\.\/ ]{7,10}$/g.test(e);break;case"sk":g=/^(((00)([- ]?)|\+)(420)([- ]?))?((\d{3})([- ]?)){2}(\d{3})$/.test(e);break;case"th":g=/^0\(?([6|8-9]{2})*-([0-9]{3})*-([0-9]{4})$/.test(e);break;case"ve":e=a.trim(e),g=/^0(?:2(?:12|4[0-9]|5[1-9]|6[0-9]|7[0-8]|8[1-35-8]|9[1-5]|3[45789])|4(?:1[246]|2[46]))\d{7}$/.test(e);break;case"us":default:e=e.replace(/\d/g,""),g=/^(?:(1\-?)|(\+1 ?))?\(?(\d{3})[\)\-\.]?(\d{3})[\-\.]?(\d{4})$/.test(e)&&10===e.length}return{valid:g,message:a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.phone.country,a.fn.bootstrapvalidator.i18n.phone.countries[f])}}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.regexp=a.extend(a.fn.bootstrapvalidator.i18n.regexp||{},{"default":"please enter a value matching the pattern"}),a.fn.bootstrapvalidator.validators.regexp={html5attributes:{message:"message",regexp:"regexp"},enablebyhtml5:function(a){var b=a.attr("pattern");return b?{regexp:b}:!1},validate:function(a,b,c){var d=b.val();if(""===d)return!0;var e="string"==typeof c.regexp?new regexp(c.regexp):c.regexp;return e.test(d)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.remote=a.extend(a.fn.bootstrapvalidator.i18n.remote||{},{"default":"please enter a valid value"}),a.fn.bootstrapvalidator.validators.remote={html5attributes:{message:"message",name:"name",type:"type",url:"url",data:"data",delay:"delay"},destroy:function(a,b){b.data("bv.remote.timer")&&(cleartimeout(b.data("bv.remote.timer")),b.removedata("bv.remote.timer"))},validate:function(b,c,d){function e(){var b=a.ajax({type:k,headers:l,url:j,datatype:"json",data:i});return b.then(function(a){a.valid=a.valid===!0||"true"===a.valid,g.resolve(c,"remote",a)}),g.fail(function(){b.abort()}),g}var f=c.val(),g=new a.deferred;if(""===f)return g.resolve(c,"remote",{valid:!0}),g;var h=c.attr("data-bv-field"),i=d.data||{},j=d.url,k=d.type||"get",l=d.headers||{};return"function"==typeof i&&(i=i.call(this,b)),"string"==typeof i&&(i=json.parse(i)),"function"==typeof j&&(j=j.call(this,b)),i[d.name||h]=f,d.delay?(c.data("bv.remote.timer")&&cleartimeout(c.data("bv.remote.timer")),c.data("bv.remote.timer",settimeout(e,d.delay)),g):e()}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.rtn=a.extend(a.fn.bootstrapvalidator.i18n.rtn||{},{"default":"please enter a valid rtn number"}),a.fn.bootstrapvalidator.validators.rtn={validate:function(a,b){var c=b.val();if(""===c)return!0;if(!/^\d{9}$/.test(c))return!1;for(var d=0,e=0;eg;g++)d+=e[g]*parseint(c.charat(g),36);return d=(10-d%10)%10,d+""===c.charat(f-1)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.siren=a.extend(a.fn.bootstrapvalidator.i18n.siren||{},{"default":"please enter a valid siren number"}),a.fn.bootstrapvalidator.validators.siren={validate:function(b,c){var d=c.val();return""===d?!0:/^\d{9}$/.test(d)?a.fn.bootstrapvalidator.helpers.luhn(d):!1}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.siret=a.extend(a.fn.bootstrapvalidator.i18n.siret||{},{"default":"please enter a valid siret number"}),a.fn.bootstrapvalidator.validators.siret={validate:function(a,b){var c=b.val();if(""===c)return!0;for(var d,e=0,f=c.length,g=0;f>g;g++)d=parseint(c.charat(g),10),g%2===0&&(d=2*d,d>9&&(d-=9)),e+=d;return e%10===0}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.step=a.extend(a.fn.bootstrapvalidator.i18n.step||{},{"default":"please enter a valid step of %s"}),a.fn.bootstrapvalidator.validators.step={html5attributes:{message:"message",base:"basevalue",step:"step"},validate:function(b,c,d){var e=c.val();if(""===e)return!0;if(d=a.extend({},{basevalue:0,step:1},d),e=parsefloat(e),!a.isnumeric(e))return!1;var f=function(a,b){var c=math.pow(10,b);a*=c;var d=a>0|-(0>a),e=a%1===.5*d;return e?(math.floor(a)+(d>0))/c:math.round(a)/c},g=function(a,b){if(0===b)return 1;var c=(a+"").split("."),d=(b+"").split("."),e=(1===c.length?0:c[1].length)+(1===d.length?0:d[1].length);return f(a-b*math.floor(a/b),e)},h=g(e-d.basevalue,d.step);return{valid:0===h||h===d.step,message:a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.step["default"],[d.step])}}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.stringcase=a.extend(a.fn.bootstrapvalidator.i18n.stringcase||{},{"default":"please enter only lowercase characters",upper:"please enter only uppercase characters"}),a.fn.bootstrapvalidator.validators.stringcase={html5attributes:{message:"message","case":"case"},validate:function(b,c,d){var e=c.val();if(""===e)return!0;var f=(d["case"]||"lower").tolowercase();return{valid:"upper"===f?e===e.touppercase():e===e.tolowercase(),message:d.message||("upper"===f?a.fn.bootstrapvalidator.i18n.stringcase.upper:a.fn.bootstrapvalidator.i18n.stringcase["default"])}}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.stringlength=a.extend(a.fn.bootstrapvalidator.i18n.stringlength||{},{"default":"please enter a value with valid length",less:"please enter less than %s characters",more:"please enter more than %s characters",between:"please enter value between %s and %s characters long"}),a.fn.bootstrapvalidator.validators.stringlength={html5attributes:{message:"message",min:"min",max:"max",trim:"trim",utf8bytes:"utf8bytes"},enablebyhtml5:function(b){var c={},d=b.attr("maxlength"),e=b.attr("minlength");return d&&(c.max=parseint(d,10)),e&&(c.min=parseint(e,10)),a.isemptyobject(c)?!1:c},validate:function(b,c,d){var e=c.val();if((d.trim===!0||"true"===d.trim)&&(e=a.trim(e)),""===e)return!0;var f=a.isnumeric(d.min)?d.min:b.getdynamicoption(c,d.min),g=a.isnumeric(d.max)?d.max:b.getdynamicoption(c,d.max),h=function(a){for(var b=a.length,c=a.length-1;c>=0;c--){var d=a.charcodeat(c);d>127&&2047>=d?b++:d>2047&&65535>=d&&(b+=2),d>=56320&&57343>=d&&c--}return b},i=d.utf8bytes?h(e):e.length,j=!0,k=d.message||a.fn.bootstrapvalidator.i18n.stringlength["default"];switch((f&&iparseint(g,10))&&(j=!1),!0){case!!f&&!!g:k=a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.stringlength.between,[parseint(f,10),parseint(g,10)]);break;case!!f:k=a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.stringlength.more,parseint(f,10));break;case!!g:k=a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.stringlength.less,parseint(g,10))}return{valid:j,message:k}}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.uri=a.extend(a.fn.bootstrapvalidator.i18n.uri||{},{"default":"please enter a valid uri"}),a.fn.bootstrapvalidator.validators.uri={html5attributes:{message:"message",allowlocal:"allowlocal",protocol:"protocol"},enablebyhtml5:function(a){return"url"===a.attr("type")},validate:function(a,b,c){var d=b.val();if(""===d)return!0;var e=c.allowlocal===!0||"true"===c.allowlocal,f=(c.protocol||"http, https, ftp").split(",").join("|").replace(/\s/g,""),g=new regexp("^(?:(?:"+f+")://)(?:\\s+(?::\\s*)?@)?(?:"+(e?"":"(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})")+"(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))"+(e?"?":"")+")(?::\\d{2,5})?(?:/[^\\s]*)?$","i");return g.test(d)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.uuid=a.extend(a.fn.bootstrapvalidator.i18n.uuid||{},{"default":"please enter a valid uuid number",version:"please enter a valid uuid version %s number"}),a.fn.bootstrapvalidator.validators.uuid={html5attributes:{message:"message",version:"version"},validate:function(b,c,d){var e=c.val();if(""===e)return!0;var f={3:/^[0-9a-f]{8}-[0-9a-f]{4}-3[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/i,4:/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,5:/^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,all:/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i},g=d.version?d.version+"":"all";return{valid:null===f[g]?!0:f[g].test(e),message:d.version?a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.uuid.version,d.version):d.message||a.fn.bootstrapvalidator.i18n.uuid["default"]}}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.vat=a.extend(a.fn.bootstrapvalidator.i18n.vat||{},{"default":"please enter a valid vat number",countrynotsupported:"the country code %s is not supported",country:"please enter a valid vat number in %s",countries:{at:"austria",be:"belgium",bg:"bulgaria",br:"brazil",ch:"switzerland",cy:"cyprus",cz:"czech republic",de:"germany",dk:"denmark",ee:"estonia",es:"spain",fi:"finland",fr:"france",gb:"united kingdom",gr:"greek",el:"greek",hu:"hungary",hr:"croatia",ie:"ireland",is:"iceland",it:"italy",lt:"lithuania",lu:"luxembourg",lv:"latvia",mt:"malta",nl:"netherlands",no:"norway",pl:"poland",pt:"portugal",ro:"romania",ru:"russia",rs:"serbia",se:"sweden",si:"slovenia",sk:"slovakia",ve:"venezuela",za:"south africa"}}),a.fn.bootstrapvalidator.validators.vat={html5attributes:{message:"message",country:"country"},country_codes:["at","be","bg","br","ch","cy","cz","de","dk","ee","el","es","fi","fr","gb","gr","hr","hu","ie","is","it","lt","lu","lv","mt","nl","no","pl","pt","ro","ru","rs","se","sk","si","ve","za"],validate:function(b,c,d){var e=c.val();if(""===e)return!0;var f=d.country;if(f?("string"!=typeof f||-1===a.inarray(f.touppercase(),this.country_codes))&&(f=b.getdynamicoption(c,f)):f=e.substr(0,2),-1===a.inarray(f,this.country_codes))return{valid:!1,message:a.fn.bootstrapvalidator.helpers.format(a.fn.bootstrapvalidator.i18n.vat.countrynotsupported,f)};var g=["_",f.tolowercase()].join("");return this[g](e)?!0:{valid:!1,message:a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.vat.country,a.fn.bootstrapvalidator.i18n.vat.countries[f.touppercase()])}},_at:function(a){if(/^atu[0-9]{8}$/.test(a)&&(a=a.substr(2)),!/^u[0-9]{8}$/.test(a))return!1;a=a.substr(1);for(var b=0,c=[1,2,1,2,1,2,1],d=0,e=0;7>e;e++)d=parseint(a.charat(e),10)*c[e],d>9&&(d=math.floor(d/10)+d%10),b+=d;return b=10-(b+4)%10,10===b&&(b=0),b+""===a.substr(7,1)},_be:function(a){if(/^be[0]{0,1}[0-9]{9}$/.test(a)&&(a=a.substr(2)),!/^[0]{0,1}[0-9]{9}$/.test(a))return!1;if(9===a.length&&(a="0"+a),"0"===a.substr(1,1))return!1;var b=parseint(a.substr(0,8),10)+parseint(a.substr(8,2),10);return b%97===0},_bg:function(b){if(/^bg[0-9]{9,10}$/.test(b)&&(b=b.substr(2)),!/^[0-9]{9,10}$/.test(b))return!1;var c=0,d=0;if(9===b.length){for(d=0;8>d;d++)c+=parseint(b.charat(d),10)*(d+1);if(c%=11,10===c)for(c=0,d=0;8>d;d++)c+=parseint(b.charat(d),10)*(d+3);return c%=10,c+""===b.substr(8)}if(10===b.length){var e=function(b){var c=parseint(b.substr(0,2),10)+1900,d=parseint(b.substr(2,2),10),e=parseint(b.substr(4,2),10);if(d>40?(c+=100,d-=40):d>20&&(c-=100,d-=20),!a.fn.bootstrapvalidator.helpers.date(c,d,e))return!1;for(var f=0,g=[2,4,8,5,10,9,7,3,6],h=0;9>h;h++)f+=parseint(b.charat(h),10)*g[h];return f=f%11%10,f+""===b.substr(9,1)},f=function(a){for(var b=0,c=[21,19,17,13,11,9,7,3,1],d=0;9>d;d++)b+=parseint(a.charat(d),10)*c[d];return b%=10,b+""===a.substr(9,1)},g=function(a){for(var b=0,c=[4,3,2,7,6,5,4,3,2],d=0;9>d;d++)b+=parseint(a.charat(d),10)*c[d];return b=11-b%11,10===b?!1:(11===b&&(b=0),b+""===a.substr(9,1))};return e(b)||f(b)||g(b)}return!1},_br:function(a){if(""===a)return!0;var b=a.replace(/[^\d]+/g,"");if(""===b||14!==b.length)return!1;if("00000000000000"===b||"11111111111111"===b||"22222222222222"===b||"33333333333333"===b||"44444444444444"===b||"55555555555555"===b||"66666666666666"===b||"77777777777777"===b||"88888888888888"===b||"99999999999999"===b)return!1;for(var c=b.length-2,d=b.substring(0,c),e=b.substring(c),f=0,g=c-7,h=c;h>=1;h--)f+=parseint(d.charat(c-h),10)*g--,2>g&&(g=9);var i=2>f%11?0:11-f%11;if(i!==parseint(e.charat(0),10))return!1;for(c+=1,d=b.substring(0,c),f=0,g=c-7,h=c;h>=1;h--)f+=parseint(d.charat(c-h),10)*g--,2>g&&(g=9);return i=2>f%11?0:11-f%11,i===parseint(e.charat(1),10)},_ch:function(a){if(/^che[0-9]{9}(mwst)?$/.test(a)&&(a=a.substr(2)),!/^e[0-9]{9}(mwst)?$/.test(a))return!1;a=a.substr(1);for(var b=0,c=[5,4,3,2,7,6,5,4],d=0;8>d;d++)b+=parseint(a.charat(d),10)*c[d];return b=11-b%11,10===b?!1:(11===b&&(b=0),b+""===a.substr(8,1))},_cy:function(a){if(/^cy[0-5|9]{1}[0-9]{7}[a-z]{1}$/.test(a)&&(a=a.substr(2)),!/^[0-5|9]{1}[0-9]{7}[a-z]{1}$/.test(a))return!1;if("12"===a.substr(0,2))return!1;for(var b=0,c={0:1,1:0,2:5,3:7,4:9,5:13,6:15,7:17,8:19,9:21},d=0;8>d;d++){var e=parseint(a.charat(d),10);d%2===0&&(e=c[e+""]),b+=e}return b="abcdefghijklmnopqrstuvwxyz"[b%26],b+""===a.substr(8,1)},_cz:function(b){if(/^cz[0-9]{8,10}$/.test(b)&&(b=b.substr(2)),!/^[0-9]{8,10}$/.test(b))return!1;var c=0,d=0;if(8===b.length){if(b.charat(0)+""=="9")return!1;for(c=0,d=0;7>d;d++)c+=parseint(b.charat(d),10)*(8-d);return c=11-c%11,10===c&&(c=0),11===c&&(c=1),c+""===b.substr(7,1)
}if(9===b.length&&b.charat(0)+""=="6"){for(c=0,d=0;7>d;d++)c+=parseint(b.charat(d+1),10)*(8-d);return c=11-c%11,10===c&&(c=0),11===c&&(c=1),c=[8,7,6,5,4,3,2,1,0,9,10][c-1],c+""===b.substr(8,1)}if(9===b.length||10===b.length){var e=1900+parseint(b.substr(0,2),10),f=parseint(b.substr(2,2),10)%50%20,g=parseint(b.substr(4,2),10);if(9===b.length){if(e>=1980&&(e-=100),e>1953)return!1}else 1954>e&&(e+=100);if(!a.fn.bootstrapvalidator.helpers.date(e,f,g))return!1;if(10===b.length){var h=parseint(b.substr(0,9),10)%11;return 1985>e&&(h%=10),h+""===b.substr(9,1)}return!0}return!1},_de:function(b){return/^de[0-9]{9}$/.test(b)&&(b=b.substr(2)),/^[0-9]{9}$/.test(b)?a.fn.bootstrapvalidator.helpers.mod11and10(b):!1},_dk:function(a){if(/^dk[0-9]{8}$/.test(a)&&(a=a.substr(2)),!/^[0-9]{8}$/.test(a))return!1;for(var b=0,c=[2,7,6,5,4,3,2,1],d=0;8>d;d++)b+=parseint(a.charat(d),10)*c[d];return b%11===0},_ee:function(a){if(/^ee[0-9]{9}$/.test(a)&&(a=a.substr(2)),!/^[0-9]{9}$/.test(a))return!1;for(var b=0,c=[3,7,1,3,7,1,3,7,1],d=0;9>d;d++)b+=parseint(a.charat(d),10)*c[d];return b%10===0},_es:function(a){if(/^es[0-9a-z][0-9]{7}[0-9a-z]$/.test(a)&&(a=a.substr(2)),!/^[0-9a-z][0-9]{7}[0-9a-z]$/.test(a))return!1;var b=function(a){var b=parseint(a.substr(0,8),10);return b="trwagmyfpdxbnjzsqvhlcke"[b%23],b+""===a.substr(8,1)},c=function(a){var b=["xyz".indexof(a.charat(0)),a.substr(1)].join("");return b=parseint(b,10),b="trwagmyfpdxbnjzsqvhlcke"[b%23],b+""===a.substr(8,1)},d=function(a){var b,c=a.charat(0);if(-1!=="klm".indexof(c))return b=parseint(a.substr(1,8),10),b="trwagmyfpdxbnjzsqvhlcke"[b%23],b+""===a.substr(8,1);if(-1!=="abcdefghjnpqrsuvw".indexof(c)){for(var d=0,e=[2,1,2,1,2,1,2],f=0,g=0;7>g;g++)f=parseint(a.charat(g+1),10)*e[g],f>9&&(f=math.floor(f/10)+f%10),d+=f;return d=10-d%10,d+""===a.substr(8,1)||"jabcdefghi"[d]===a.substr(8,1)}return!1},e=a.charat(0);return/^[0-9]$/.test(e)?b(a):/^[xyz]$/.test(e)?c(a):d(a)},_fi:function(a){if(/^fi[0-9]{8}$/.test(a)&&(a=a.substr(2)),!/^[0-9]{8}$/.test(a))return!1;for(var b=0,c=[7,9,10,5,8,4,2,1],d=0;8>d;d++)b+=parseint(a.charat(d),10)*c[d];return b%11===0},_fr:function(b){if(/^fr[0-9a-z]{2}[0-9]{9}$/.test(b)&&(b=b.substr(2)),!/^[0-9a-z]{2}[0-9]{9}$/.test(b))return!1;if(!a.fn.bootstrapvalidator.helpers.luhn(b.substr(2)))return!1;if(/^[0-9]{2}$/.test(b.substr(0,2)))return b.substr(0,2)===parseint(b.substr(2)+"12",10)%97+"";var c,d="0123456789abcdefghjklmnpqrstuvwxyz";return c=/^[0-9]{1}$/.test(b.charat(0))?24*d.indexof(b.charat(0))+d.indexof(b.charat(1))-10:34*d.indexof(b.charat(0))+d.indexof(b.charat(1))-100,(parseint(b.substr(2),10)+1+math.floor(c/11))%11===c%11},_gb:function(a){if((/^gb[0-9]{9}$/.test(a)||/^gb[0-9]{12}$/.test(a)||/^gbgd[0-9]{3}$/.test(a)||/^gbha[0-9]{3}$/.test(a)||/^gb(gd|ha)8888[0-9]{5}$/.test(a))&&(a=a.substr(2)),!(/^[0-9]{9}$/.test(a)||/^[0-9]{12}$/.test(a)||/^gd[0-9]{3}$/.test(a)||/^ha[0-9]{3}$/.test(a)||/^(gd|ha)8888[0-9]{5}$/.test(a)))return!1;var b=a.length;if(5===b){var c=a.substr(0,2),d=parseint(a.substr(2),10);return"gd"===c&&500>d||"ha"===c&&d>=500}if(11===b&&("gd8888"===a.substr(0,6)||"ha8888"===a.substr(0,6)))return"gd"===a.substr(0,2)&&parseint(a.substr(6,3),10)>=500||"ha"===a.substr(0,2)&&parseint(a.substr(6,3),10)<500?!1:parseint(a.substr(6,3),10)%97===parseint(a.substr(9,2),10);if(9===b||12===b){for(var e=0,f=[8,7,6,5,4,3,2,10,1],g=0;9>g;g++)e+=parseint(a.charat(g),10)*f[g];return e%=97,parseint(a.substr(0,3),10)>=100?0===e||42===e||55===e:0===e}return!0},_gr:function(a){if(/^(gr|el)[0-9]{9}$/.test(a)&&(a=a.substr(2)),!/^[0-9]{9}$/.test(a))return!1;8===a.length&&(a="0"+a);for(var b=0,c=[256,128,64,32,16,8,4,2],d=0;8>d;d++)b+=parseint(a.charat(d),10)*c[d];return b=b%11%10,b+""===a.substr(8,1)},_el:function(a){return this._gr(a)},_hu:function(a){if(/^hu[0-9]{8}$/.test(a)&&(a=a.substr(2)),!/^[0-9]{8}$/.test(a))return!1;for(var b=0,c=[9,7,3,1,9,7,3,1],d=0;8>d;d++)b+=parseint(a.charat(d),10)*c[d];return b%10===0},_hr:function(b){return/^hr[0-9]{11}$/.test(b)&&(b=b.substr(2)),/^[0-9]{11}$/.test(b)?a.fn.bootstrapvalidator.helpers.mod11and10(b):!1},_ie:function(a){if(/^ie[0-9]{1}[0-9a-z\*\+]{1}[0-9]{5}[a-z]{1,2}$/.test(a)&&(a=a.substr(2)),!/^[0-9]{1}[0-9a-z\*\+]{1}[0-9]{5}[a-z]{1,2}$/.test(a))return!1;var b=function(a){for(;a.length<7;)a="0"+a;for(var b="wabcdefghijklmnopqrstuv",c=0,d=0;7>d;d++)c+=parseint(a.charat(d),10)*(8-d);return c+=9*b.indexof(a.substr(7)),b[c%23]};return/^[0-9]+$/.test(a.substr(0,7))?a.charat(7)===b(a.substr(0,7)+a.substr(8)+""):-1!=="abcdefghijklmnopqrstuvwxyz+*".indexof(a.charat(1))?a.charat(7)===b(a.substr(2,5)+a.substr(0,1)+""):!0},_is:function(a){return/^is[0-9]{5,6}$/.test(a)&&(a=a.substr(2)),/^[0-9]{5,6}$/.test(a)},_it:function(b){if(/^it[0-9]{11}$/.test(b)&&(b=b.substr(2)),!/^[0-9]{11}$/.test(b))return!1;if(0===parseint(b.substr(0,7),10))return!1;var c=parseint(b.substr(7,3),10);return 1>c||c>201&&999!==c&&888!==c?!1:a.fn.bootstrapvalidator.helpers.luhn(b)},_lt:function(a){if(/^lt([0-9]{7}1[0-9]{1}|[0-9]{10}1[0-9]{1})$/.test(a)&&(a=a.substr(2)),!/^([0-9]{7}1[0-9]{1}|[0-9]{10}1[0-9]{1})$/.test(a))return!1;var b,c=a.length,d=0;for(b=0;c-1>b;b++)d+=parseint(a.charat(b),10)*(1+b%9);var e=d%11;if(10===e)for(d=0,b=0;c-1>b;b++)d+=parseint(a.charat(b),10)*(1+(b+2)%9);return e=e%11%10,e+""===a.charat(c-1)},_lu:function(a){return/^lu[0-9]{8}$/.test(a)&&(a=a.substr(2)),/^[0-9]{8}$/.test(a)?parseint(a.substr(0,6),10)%89+""===a.substr(6,2):!1},_lv:function(b){if(/^lv[0-9]{11}$/.test(b)&&(b=b.substr(2)),!/^[0-9]{11}$/.test(b))return!1;var c,d=parseint(b.charat(0),10),e=0,f=[],g=b.length;if(d>3){for(e=0,f=[9,1,4,8,3,10,2,5,7,6,1],c=0;g>c;c++)e+=parseint(b.charat(c),10)*f[c];return e%=11,3===e}var h=parseint(b.substr(0,2),10),i=parseint(b.substr(2,2),10),j=parseint(b.substr(4,2),10);if(j=j+1800+100*parseint(b.charat(6),10),!a.fn.bootstrapvalidator.helpers.date(j,i,h))return!1;for(e=0,f=[10,5,8,4,2,1,6,3,7,9],c=0;g-1>c;c++)e+=parseint(b.charat(c),10)*f[c];return e=(e+1)%11%10,e+""===b.charat(g-1)},_mt:function(a){if(/^mt[0-9]{8}$/.test(a)&&(a=a.substr(2)),!/^[0-9]{8}$/.test(a))return!1;for(var b=0,c=[3,4,6,7,8,9,10,1],d=0;8>d;d++)b+=parseint(a.charat(d),10)*c[d];return b%37===0},_nl:function(a){if(/^nl[0-9]{9}b[0-9]{2}$/.test(a)&&(a=a.substr(2)),!/^[0-9]{9}b[0-9]{2}$/.test(a))return!1;for(var b=0,c=[9,8,7,6,5,4,3,2],d=0;8>d;d++)b+=parseint(a.charat(d),10)*c[d];return b%=11,b>9&&(b=0),b+""===a.substr(8,1)},_no:function(a){if(/^no[0-9]{9}$/.test(a)&&(a=a.substr(2)),!/^[0-9]{9}$/.test(a))return!1;for(var b=0,c=[3,2,7,6,5,4,3,2],d=0;8>d;d++)b+=parseint(a.charat(d),10)*c[d];return b=11-b%11,11===b&&(b=0),b+""===a.substr(8,1)},_pl:function(a){if(/^pl[0-9]{10}$/.test(a)&&(a=a.substr(2)),!/^[0-9]{10}$/.test(a))return!1;for(var b=0,c=[6,5,7,2,3,4,5,6,7,-1],d=0;10>d;d++)b+=parseint(a.charat(d),10)*c[d];return b%11===0},_pt:function(a){if(/^pt[0-9]{9}$/.test(a)&&(a=a.substr(2)),!/^[0-9]{9}$/.test(a))return!1;for(var b=0,c=[9,8,7,6,5,4,3,2],d=0;8>d;d++)b+=parseint(a.charat(d),10)*c[d];return b=11-b%11,b>9&&(b=0),b+""===a.substr(8,1)},_ro:function(a){if(/^ro[1-9][0-9]{1,9}$/.test(a)&&(a=a.substr(2)),!/^[1-9][0-9]{1,9}$/.test(a))return!1;for(var b=a.length,c=[7,5,3,2,1,7,5,3,2].slice(10-b),d=0,e=0;b-1>e;e++)d+=parseint(a.charat(e),10)*c[e];return d=10*d%11%10,d+""===a.substr(b-1,1)},_ru:function(a){if(/^ru([0-9]{10}|[0-9]{12})$/.test(a)&&(a=a.substr(2)),!/^([0-9]{10}|[0-9]{12})$/.test(a))return!1;var b=0;if(10===a.length){var c=0,d=[2,4,10,3,5,9,4,6,8,0];for(b=0;10>b;b++)c+=parseint(a.charat(b),10)*d[b];return c%=11,c>9&&(c%=10),c+""===a.substr(9,1)}if(12===a.length){var e=0,f=[7,2,4,10,3,5,9,4,6,8,0],g=0,h=[3,7,2,4,10,3,5,9,4,6,8,0];for(b=0;11>b;b++)e+=parseint(a.charat(b),10)*f[b],g+=parseint(a.charat(b),10)*h[b];return e%=11,e>9&&(e%=10),g%=11,g>9&&(g%=10),e+""===a.substr(10,1)&&g+""===a.substr(11,1)}return!1},_rs:function(a){if(/^rs[0-9]{9}$/.test(a)&&(a=a.substr(2)),!/^[0-9]{9}$/.test(a))return!1;for(var b=10,c=0,d=0;8>d;d++)c=(parseint(a.charat(d),10)+b)%10,0===c&&(c=10),b=2*c%11;return(b+parseint(a.substr(8,1),10))%10===1},_se:function(b){return/^se[0-9]{10}01$/.test(b)&&(b=b.substr(2)),/^[0-9]{10}01$/.test(b)?(b=b.substr(0,10),a.fn.bootstrapvalidator.helpers.luhn(b)):!1},_si:function(a){if(/^si[0-9]{8}$/.test(a)&&(a=a.substr(2)),!/^[0-9]{8}$/.test(a))return!1;for(var b=0,c=[8,7,6,5,4,3,2],d=0;7>d;d++)b+=parseint(a.charat(d),10)*c[d];return b=11-b%11,10===b&&(b=0),b+""===a.substr(7,1)},_sk:function(a){return/^sk[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(a)&&(a=a.substr(2)),/^[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(a)?parseint(a,10)%11===0:!1},_ve:function(a){if(/^ve[vejpg][0-9]{9}$/.test(a)&&(a=a.substr(2)),!/^[vejpg][0-9]{9}$/.test(a))return!1;for(var b={v:4,e:8,j:12,p:16,g:20},c=b[a.charat(0)],d=[3,2,7,6,5,4,3,2],e=0;8>e;e++)c+=parseint(a.charat(e+1),10)*d[e];return c=11-c%11,(11===c||10===c)&&(c=0),c+""===a.substr(9,1)},_za:function(a){return/^za4[0-9]{9}$/.test(a)&&(a=a.substr(2)),/^4[0-9]{9}$/.test(a)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.vin=a.extend(a.fn.bootstrapvalidator.i18n.vin||{},{"default":"please enter a valid vin number"}),a.fn.bootstrapvalidator.validators.vin={validate:function(a,b){var c=b.val();if(""===c)return!0;if(!/^[a-hj-npr-z0-9]{8}[0-9xx][a-hj-npr-z0-9]{8}$/i.test(c))return!1;c=c.touppercase();for(var d={a:1,b:2,c:3,d:4,e:5,f:6,g:7,h:8,j:1,k:2,l:3,m:4,n:5,p:7,r:9,s:2,t:3,u:4,v:5,w:6,x:7,y:8,z:9,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,0:0},e=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],f=0,g=c.length,h=0;g>h;h++)f+=d[c.charat(h)+""]*e[h];var i=f%11;return 10===i&&(i="x"),i+""===c.charat(8)}}}(window.jquery),function(a){a.fn.bootstrapvalidator.i18n.zipcode=a.extend(a.fn.bootstrapvalidator.i18n.zipcode||{},{"default":"please enter a valid postal code",countrynotsupported:"the country code %s is not supported",country:"please enter a valid postal code in %s",countries:{at:"austria",br:"brazil",ca:"canada",ch:"switzerland",cz:"czech republic",de:"germany",dk:"denmark",fr:"france",gb:"united kingdom",ie:"ireland",it:"italy",ma:"morocco",nl:"netherlands",pt:"portugal",ro:"romania",ru:"russia",se:"sweden",sg:"singapore",sk:"slovakia",us:"usa"}}),a.fn.bootstrapvalidator.validators.zipcode={html5attributes:{message:"message",country:"country"},country_codes:["at","br","ca","ch","cz","de","dk","fr","gb","ie","it","ma","nl","pt","ro","ru","se","sg","sk","us"],validate:function(b,c,d){var e=c.val();if(""===e||!d.country)return!0;var f=d.country;if(("string"!=typeof f||-1===a.inarray(f,this.country_codes))&&(f=b.getdynamicoption(c,f)),!f||-1===a.inarray(f.touppercase(),this.country_codes))return{valid:!1,message:a.fn.bootstrapvalidator.helpers.format(a.fn.bootstrapvalidator.i18n.zipcode.countrynotsupported,f)};var g=!1;switch(f=f.touppercase()){case"at":g=/^([1-9]{1})(\d{3})$/.test(e);break;case"br":g=/^(\d{2})([\.]?)(\d{3})([\-]?)(\d{3})$/.test(e);break;case"ca":g=/^(?:a|b|c|e|g|h|j|k|l|m|n|p|r|s|t|v|x|y){1}[0-9]{1}(?:a|b|c|e|g|h|j|k|l|m|n|p|r|s|t|v|w|x|y|z){1}\s?[0-9]{1}(?:a|b|c|e|g|h|j|k|l|m|n|p|r|s|t|v|w|x|y|z){1}[0-9]{1}$/i.test(e);break;case"ch":g=/^([1-9]{1})(\d{3})$/.test(e);break;case"cz":g=/^(\d{3})([ ]?)(\d{2})$/.test(e);break;case"de":g=/^(?!01000|99999)(0[1-9]\d{3}|[1-9]\d{4})$/.test(e);break;case"dk":g=/^(dk(-|\s)?)?\d{4}$/i.test(e);break;case"fr":g=/^[0-9]{5}$/i.test(e);break;case"gb":g=this._gb(e);break;case"ie":g=/^(d6w|[acdefhknprtvwxy]\d{2})\s[0-9acdefhknprtvwxy]{4}$/.test(e);break;case"it":g=/^(i-|it-)?\d{5}$/i.test(e);break;case"ma":g=/^[1-9][0-9]{4}$/i.test(e);break;case"nl":g=/^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$/i.test(e);break;case"pt":g=/^[1-9]\d{3}-\d{3}$/.test(e);break;case"ro":g=/^(0[1-8]{1}|[1-9]{1}[0-5]{1})?[0-9]{4}$/i.test(e);break;case"ru":g=/^[0-9]{6}$/i.test(e);break;case"se":g=/^(s-)?\d{3}\s?\d{2}$/i.test(e);break;case"sg":g=/^([0][1-9]|[1-6][0-9]|[7]([0-3]|[5-9])|[8][0-2])(\d{4})$/i.test(e);break;case"sk":g=/^(\d{3})([ ]?)(\d{2})$/.test(e);break;case"us":default:g=/^\d{4,5}([\-]?\d{4})?$/.test(e)}return{valid:g,message:a.fn.bootstrapvalidator.helpers.format(d.message||a.fn.bootstrapvalidator.i18n.zipcode.country,a.fn.bootstrapvalidator.i18n.zipcode.countries[f])}},_gb:function(a){for(var b="[abcdefghijklmnoprstuwyz]",c="[abcdefghklmnopqrstuvwxy]",d="[abcdefghjkpmnrstuvwxy]",e="[abehmnprvwxy]",f="[abdefghjlnpqrstuwxyz]",g=[new regexp("^("+b+"{1}"+c+"?[0-9]{1,2})(\\s*)([0-9]{1}"+f+"{2})$","i"),new regexp("^("+b+"{1}[0-9]{1}"+d+"{1})(\\s*)([0-9]{1}"+f+"{2})$","i"),new regexp("^("+b+"{1}"+c+"{1}?[0-9]{1}"+e+"{1})(\\s*)([0-9]{1}"+f+"{2})$","i"),new regexp("^(bf1)(\\s*)([0-6]{1}[abdefghjlnpqrst]{1}[abdefghjlnpqrstuwzyz]{1})$","i"),/^(gir)(\s*)(0aa)$/i,/^(bfpo)(\s*)([0-9]{1,4})$/i,/^(bfpo)(\s*)(c\/o\s*[0-9]{1,3})$/i,/^([a-z]{4})(\s*)(1zz)$/i,/^(ai-2640)$/i],h=0;h