jQuery.webshims.register("dom-extend",function(a,g,f,i,o){var v=g.modules,q=/\s*,\s*/,p={},w={},j={},t={},r={},l=a.fn.val,A=function(e,d,b,c,h){return h?l.call(a(e)):l.call(a(e),b)};a.fn.val=function(e){var d=this[0];arguments.length&&null==e&&(e="");if(!arguments.length)return!d||1!==d.nodeType?l.call(this):a.prop(d,"value",e,"val",!0);if(a.isArray(e))return l.apply(this,arguments);var b=a.isFunction(e);return this.each(function(c){d=this;1===d.nodeType&&(b?(c=e.call(d,c,a.prop(d,"value",o,"val", !0)),null==c&&(c=""),a.prop(d,"value",c,"val")):a.prop(d,"value",e,"val"))})};var x="_webshimsLib"+Math.round(1E3*Math.random()),B=function(e,d,b){e=e.jquery?e[0]:e;if(!e)return b||{};var c=a.data(e,x);b!==o&&(c||(c=a.data(e,x,{})),d&&(c[d]=b));return d?c&&c[d]:c};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(e){a.fn[e.name]=function(){return this.map(function(){var a=B(this, "shadowData");return a&&a[e.prop]||this})}});["removeAttr","prop","attr"].forEach(function(e){p[e]=a[e];a[e]=function(d,b,c,h,y){var u="val"==h,k=!u?p[e]:A;if(!d||!w[b]||1!==d.nodeType||!u&&h&&"attr"==e&&a.attrFn[b])return k(d,b,c,h,y);var m=(d.nodeName||"").toLowerCase(),C=j[m],D="attr"==e&&(!1===c||null===c)?"removeAttr":e,l,g,f;C||(C=j["*"]);C&&(C=C[b]);C&&(l=C[D]);if(l){if("value"==b)g=l.isVal,l.isVal=u;if("removeAttr"===D)return l.value.call(d);if(c===o)return l.get?l.get.call(d):l.value;l.set&& ("attr"==e&&!0===c&&(c=b),f=l.set.call(d,c));if("value"==b)l.isVal=g}else f=k(d,b,c,h,y);if((c!==o||"removeAttr"===D)&&r[m]&&r[m][b]){var i;i="removeAttr"==D?!1:"prop"==D?!!c:!0;r[m][b].forEach(function(b){if(!b.only||(b.only="prop"==e)||"attr"==b.only&&"prop"!=e)b.call(d,c,i,u?"val":D,e)})}return f};t[e]=function(d,b,c){j[d]||(j[d]={});j[d][b]||(j[d][b]={});var h=j[d][b][e],y=function(a,k,m){return k&&k[a]?k[a]:m&&m[a]?m[a]:"prop"==e&&"value"==b?function(a){return c.isVal?A(this,b,a,!1,0===arguments.length): p[e](this,b,a)}:"prop"==e&&"value"==a&&c.value.apply?function(a){var c=p[e](this,b);c&&c.apply&&(c=c.apply(this,arguments));return c}:function(a){return p[e](this,b,a)}};j[d][b][e]=c;if(c.value===o){if(!c.set)c.set=c.writeable?y("set",c,h):g.cfg.useStrict&&"prop"==b?function(){throw b+" is readonly on "+d;}:a.noop;if(!c.get)c.get=y("get",c,h)}["value","get","set"].forEach(function(b){c[b]&&(c["_sup"+b]=y(b,h))})}});var E=!a.browser.msie||8c.runs&&setTimeout(c.test,30)):c.runs=0},handler:function(h){clearTimeout(e);e=setTimeout(function(){if("resize"==h.type){var e=a(f).width(),u=a(f).width();if(u==d&&e==b)return;d=u;b=e;c.height=c.getHeight();c.width=c.getWidth()}a.event.trigger("updateshadowdom")},"resize"==h.type?50:9)},_create:function(){a.each({Height:"getHeight",Width:"getWidth"},function(b,a){var d=i.body,k=i.documentElement;c[a]=function(){return Math.max(d["scroll"+b],k["scroll"+b],d["offset"+b],k["offset"+b],k["client"+ b])}})},start:function(){if(!this.init&&i.body)this.init=!0,this._create(),this.height=c.getHeight(),this.width=c.getWidth(),setInterval(this.test,400),a(this.test),a(f).bind("load",this.test),a(f).bind("resize",this.handler),function(){var b=a.fn.animate,d;a.fn.animate=function(){clearTimeout(d);d=setTimeout(function(){c.test();c.handler({type:"animationstart"})},19);return b.apply(this,arguments)}}()}};a.event.customEvent.updateshadowdom=!0;g.docObserve=function(){g.ready("DOM",function(){c.start()})}; return function(b,c,d){d=d||{};b.jquery&&(b=b[0]);c.jquery&&(c=c[0]);var k=a.data(b,x)||a.data(b,x,{}),m=a.data(c,x)||a.data(c,x,{}),e={};if(d.shadowFocusElement){if(d.shadowFocusElement){if(d.shadowFocusElement.jquery)d.shadowFocusElement=d.shadowFocusElement[0];e=a.data(d.shadowFocusElement,x)||a.data(d.shadowFocusElement,x,e)}}else d.shadowFocusElement=c;k.hasShadow=c;e.nativeElement=m.nativeElement=b;e.shadowData=m.shadowData=k.shadowData={nativeElement:b,shadowElement:c,shadowFocusElement:d.shadowFocusElement}; d.shadowChilds&&d.shadowChilds.each(function(){B(this,"shadowData",m.shadowData)});if(d.data)e.shadowData.data=m.shadowData.data=k.shadowData.data=d.data;d=null;g.docObserve()}}(),propTypes:{standard:function(a){z(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,""+d)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){z(a);if(!a.prop)a.prop={set:function(d){d?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}, src:function(){var e=i.createElement("a");e.style.display="none";return function(d,b){z(d);if(!d.prop)d.prop={set:function(b){d.attr.set.call(this,b)},get:function(){var c=this.getAttribute(b),d;if(null==c)return"";e.setAttribute("href",c+"");if(!a.support.hrefNormalized){try{a(e).insertAfter(this),d=e.getAttribute("href",4)}catch(y){d=e.getAttribute("href",4)}a(e).detach()}return d||e.href}}}}(),enumarated:function(a){z(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,d)},get:function(){var d= (a.attr.get.call(this)||"").toLowerCase();if(!d||-1==a.limitedTo.indexOf(d))d=a.defaultValue;return d}}}},reflectProperties:function(e,d){"string"==typeof d&&(d=d.split(q));d.forEach(function(b){g.defineNodeNamesProperty(e,b,{prop:{set:function(c){a.attr(this,b,c)},get:function(){return a.attr(this,b)||""}}})})},defineNodeNameProperty:function(e,d,b){w[d]=!0;if(b.reflect)g.propTypes[b.propType||"standard"](b,d);["prop","attr","removeAttr"].forEach(function(c){var h=b[c];h&&(h="prop"===c?a.extend({writeable:!0}, h):a.extend({},h,{writeable:!0}),t[c](e,d,h),"*"!=e&&g.cfg.extendNative&&"prop"==c&&h.value&&a.isFunction(h.value)&&n(e,d,h),b[c]=h)});b.initAttr&&s.content(e,d);return b},defineNodeNameProperties:function(a,d,b,c){for(var h in d)!c&&d[h].initAttr&&s.createTmpCache(a),b&&!d[h][b]&&(d[h][b]={},["value","set","get"].forEach(function(a){a in d[h]&&(d[h][b][a]=d[h][a],delete d[h][a])})),d[h]=g.defineNodeNameProperty(a,h,d[h]);c||s.flushTmpCache();return d},createElement:function(e,d,b){var c;a.isFunction(d)&& (d={after:d});s.createTmpCache(e);d.before&&s.createElement(e,d.before);b&&(c=g.defineNodeNameProperties(e,b,!1,!0));d.after&&s.createElement(e,d.after);s.flushTmpCache();return c},onNodeNamesPropertyModify:function(e,d,b,c){"string"==typeof e&&(e=e.split(q));a.isFunction(b)&&(b={set:b});e.forEach(function(a){r[a]||(r[a]={});"string"==typeof d&&(d=d.split(q));b.initAttr&&s.createTmpCache(a);d.forEach(function(d){r[a][d]||(r[a][d]=[],w[d]=!0);if(b.set){if(c)b.set.only=c;r[a][d].push(b.set)}b.initAttr&& s.content(a,d)});s.flushTmpCache()})},defineNodeNamesBooleanProperty:function(e,d,b){b||(b={});if(a.isFunction(b))b.set=b;g.defineNodeNamesProperty(e,d,{attr:{set:function(a){this.setAttribute(d,a);b.set&&b.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?o:d}},removeAttr:{value:function(){this.removeAttribute(d);b.set&&b.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:b.initAttr||!1})},contentAttr:function(a,d,b){if(a.nodeName){if(b===o)return a=a.attributes[d]||{}, b=a.specified?a.value:null,null==b?o:b;"boolean"==typeof b?b?a.setAttribute(d,d):a.removeAttribute(d):a.setAttribute(d,b)}},activeLang:function(){var e=[],d={},b,c,h=/:\/\/|^\.*\//,l=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,h.test(d)||(d=g.cfg.basePath+d),g.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,k(b,!0)):a(function(){b.langObj[c]&&k(b,!0);b.loading=!1})}),!0):!1},f=function(b){d[b]&&d[b].forEach(function(b){b.callback()})}, k=function(a,d){if(a.activeLang!=b&&a.activeLang!==c){var k=v[a.module].options;if(a.langObj[b]||c&&a.langObj[c])a.activeLang=b,a.callback(a.langObj[b]||a.langObj[c],b),f(a.module);else if(!d&&!l(a,b,k)&&!l(a,c,k)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],b),f(a.module)}};return function(m){if("string"==typeof m&&m!==b)b=m,c=b.split("-")[0],b==c&&(c=!1),a.each(e,function(a,b){k(b)});else if("object"==typeof m)if(m.register)d[m.register]||(d[m.register]=[]),d[m.register].push(m), m.callback();else{if(!m.activeLang)m.activeLang="";e.push(m);k(m)}return b}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,d){g[a]=function(a,c,e,l){"string"==typeof a&&(a=a.split(q));var f={};a.forEach(function(a){f[a]=g[d](a,c,e,l)});return f}});g.isReady("webshimLocalization",!0)}); (function(a,g){var f=a.webshims.browserVersion;if(!(a.browser.mozilla&&5f&&7")[0].readyState;if(!q.track)try{new TextTrackCue(2,3,"")}catch(l){q.track=!0}var g=f.cfg.track,i=function(l){a(l.target).filter("track").each(j)}, j=function(){if(q.track||!g.override&&3==a.prop(this,"readyState"))g.override=!0,f.reTest("track"),document.removeEventListener("error",i,!0),this&&a.nodeName(this,"track")?f.error("track support was overwritten. Please check your vtt including your vtt mime-type"):f.info("track support was overwritten. due to bad browser support")},w=function(){document.addEventListener("error",i,!0);q.track?j():a("track").each(j)};g.override||(f.isReady("track")?w():a(w))}();f.register("mediaelement-core",function(a, f,t,r,E){j=swfobject.hasFlashPlayerVersion("9.0.115");var n=f.mediaelement,s=function(b,c){var b=a(b),d={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!d.src)return d;var e=b.attr("type");if(e)d.type=e,d.container=a.trim(e.split(";")[0]);else if(c||(c=b[0].nodeName.toLowerCase(),"source"==c&&(c=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=n.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},z=!j&&"postMessage"in t&&i,e= function(){var b;return function(){!b&&z&&(b=!0,f.loader.loadScript("https://www.youtube.com/player_api"),a(function(){f.polyfill("mediaelement-yt")}))}}(),d=function(){j?w():e()};f.addPolyfill("mediaelement-yt",{test:!z,d:["dom-support"]});n.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],'audio/ogg;codecs="opus"':"opus","audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv", "f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};n.mimeTypes.source=a.extend({},n.mimeTypes.audio,n.mimeTypes.video);n.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")|| -1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(n.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};n.srces=function(b,c){b=a(b);if(c)b.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(c)||(c=[c]),c.forEach(function(a){var c=r.createElement("source");"string"==typeof a&&(a={src:a});c.setAttribute("src",a.src);a.type&&c.setAttribute("type",a.type);a.media&&c.setAttribute("media",a.media);b.append(c)}); else{var c=[],d=b[0].nodeName.toLowerCase(),e=s(b,d);e.src?c.push(e):a("source",b).each(function(){e=s(this,d);e.src&&c.push(e)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==E&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));n.srces(this,b);a(this).mediaLoad()})};n.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(","); n.canThirdPlaySrces=function(b,c){var d="";if(j||z)b=a(b),c=c||n.srces(b),a.each(c,function(a,b){if(b.container&&b.src&&(j&&-1!=n.swfMimeTypes.indexOf(b.container)||z&&"video/youtube"==b.container))return d=b,!1});return d};var b={};n.canNativePlaySrces=function(c,d){var e="";if(i){var c=a(c),f=(c[0].nodeName||"").toLowerCase();if(!b[f])return e;d=d||n.srces(c);a.each(d,function(a,d){if(d.type&&b[f].prop._supvalue.call(c[0],d.type))return e=d,!1})}return e};n.setError=function(b,c){c||(c="can't play sources"); a(b).pause().data("mediaerror",c);f.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var c=function(){var a;return function(b,h,g){f.ready(j?p:"mediaelement-yt",function(){n.createSWF?n.createSWF(b,h,g):a||(a=!0,d(),c(b,h,g))});!a&&z&&!n.createSWF&&e()}}(),h=function(a,b,d,e,f){d||!1!==d&&b&&"third"==b.isActive?(d=n.canThirdPlaySrces(a,e))?c(a,d,b):f?n.setError(a,!1):h(a,b,!1,e,!0):(d=n.canNativePlaySrces(a,e))?b&&"third"==b.isActive&&n.setActive(a, "html5",b):f?(n.setError(a,!1),b&&"third"==b.isActive&&n.setActive(a,"html5",b)):h(a,b,!0,e,!0)},y=/^(?:embed|object|datalist)$/i,u=function(b,c){var d=f.data(b,"mediaelementBase")||f.data(b,"mediaelementBase",{}),e=n.srces(b),g=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(e.length&&g&&!(1!=g.nodeType||y.test(g.nodeName||"")))c=c||f.data(b,"mediaelement"),h(b,c,v.preferFlash||E,e)};a(r).on("ended",function(b){var c=f.data(b.target,"mediaelement");(!o||c&&"html5"!=c.isActive|| a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,"loop")&&a(b.target).prop("currentTime",0).play()},1)});o||f.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(c){var d=f.defineNodeNameProperty(c,"load",{prop:{value:function(){var a=f.data(this,"mediaelement");u(this,a);i&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});b[c]=f.defineNodeNameProperty(c,"canPlayType",{prop:{value:function(d){var e= "";i&&b[c].prop._supvalue&&(e=b[c].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&j&&(d=a.trim((d||"").split(";")[0]),-1!=n.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});f.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=f.data(a,"mediaelementBase")||f.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){u(a);a=null},9)}});t=function(){f.addReady(function(b,c){a("video, audio",b).add(c.filter("video, audio")).each(function(){a.browser.msie&& 8'),v=function(){if(o[0].querySelector)try{i.findRequired=!o[0].querySelector("select:required")}catch(a){i.findRequired=!1}},q=a("input",o).eq(0),p=function(a){f.loader.loadList(["dom-extend"]);f.ready("dom-extend",a)};i.findRequired=!1;i.validationMessage=!1;f.capturingEventPrevented=function(f){if(!f._isPolyfilled){var g= f.isDefaultPrevented,i=f.preventDefault;f.preventDefault=function(){clearTimeout(a.data(f.target,f.type+"DefaultPrevented"));a.data(f.target,f.type+"DefaultPrevented",setTimeout(function(){a.removeData(f.target,f.type+"DefaultPrevented")},30));return i.apply(this,arguments)};f.isDefaultPrevented=function(){return!(!g.apply(this,arguments)&&!a.data(f.target,f.type+"DefaultPrevented"))};f._isPolyfilled=!0}};if(!g.formvalidation||i.bustedValidity)v();else{f.capturingEvents(["input"]);f.capturingEvents(["invalid"], !0);if(window.opera||window.testGoodWithFix)o.appendTo("head"),v(),i.validationMessage=!q.prop("validationMessage"),f.reTest(["form-extend","form-message"]),o.remove(),a(function(){p(function(){var g=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(i){var o=f.defineNodeNameProperty(i,"checkValidity",{prop:{value:function(){if(!f.fromSubmit)a(this).on("invalid.checkvalidity",g);f.fromCheckValidity=!0;var i=o.prop._supvalue.apply(this,arguments);f.fromSubmit||a(this).unbind("invalid.checkvalidity", g);f.fromCheckValidity=!1;return i}}})})})});a.browser.webkit&&!f.bugs.bustedValidity&&function(){var f=/^(?:textarea|input)$/i,g=!1;document.addEventListener("contextmenu",function(a){f.test(a.target.nodeName||"")&&(g=a.target.form)&&setTimeout(function(){g=!1},1)},!1);a(window).on("invalid",function(a){if(a.originalEvent&&g&&g==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery); jQuery.webshims.register("form-core",function(a,g,f,i,o,v){var q={radio:1},p={checkbox:1,radio:1},w=a([]),j=g.bugs,t=function(b){var b=a(b),c,d;c=w;if(q[b[0].type])d=b.prop("form"),c=(c=b[0].name)?d?a(d[c]):a(i.getElementsByName(c)).filter(function(){return!a.prop(this,"form")}):b,c=c.filter('[type="radio"]');return c},r=g.getContentValidationMessage=function(b,c,d){var e=a(b).data("errormessage")||b.getAttribute("x-moz-errormessage")||"";d&&e[d]&&(e=e[d]);"object"==typeof e&&(c=c||a.prop(b,"validity")|| {valid:1},c.valid||a.each(c,function(a,b){if(b&&"valid"!=a&&e[a])return e=e[a],!1}));if("object"==typeof e)e=e.defaultMessage;return e||""},l={number:1,range:1,date:1},A=function(b){var c=!1;a(a.prop(b,"elements")).each(function(){if(c=a(this).is(":invalid"))return!1});return c};a.extend(a.expr[":"],{"valid-element":function(b){return a.nodeName(b,"form")?!A(b):!(!a.prop(b,"willValidate")||!B(b))},"invalid-element":function(b){return a.nodeName(b,"form")?A(b):!(!a.prop(b,"willValidate")||B(b))},"required-element":function(b){return!(!a.prop(b, "willValidate")||!a.prop(b,"required"))},"user-error":function(b){return a.prop(b,"willValidate")&&a(b).hasClass("user-error")},"optional-element":function(b){return!!(a.prop(b,"willValidate")&&!1===a.prop(b,"required"))},"in-range":function(b){if(!l[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||b.rangeOverflow||b.rangeUnderflow)},"out-of-range":function(b){if(!l[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||!b.rangeOverflow&& !b.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(b){a.expr[":"][b]=a.expr.filters[b+"-element"]});a.expr[":"].focus=function(a){try{var c=a.ownerDocument;return a===c.activeElement&&(!c.hasFocus||c.hasFocus())}catch(d){}return!1};var x=a.event.customEvent||{},B=function(b){return(a.prop(b,"validity")||{valid:1}).valid};(j.bustedValidity||j.findRequired)&&function(){var b=a.find,c=a.find.matchesSelector,d=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig, e=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,c=function(c){var f=arguments,f=a.call(f,1,f.length);f.unshift(c.replace(d,e));return b.apply(this,f)},f;for(f in b)b.hasOwnProperty(f)&&(c[f]=b[f]);return c}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",i.documentElement))a.find.matchesSelector=function(a,b){b=b.replace(d,e);return c.call(this,a,b)}}();var E=a.prop,n={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,c,f){var g= E.apply(this,arguments);b&&"form"in b&&n[c]&&f!==o&&a(b).hasClass(e)&&B(b)&&(a(b).getShadowElement().removeClass(d),"checked"==c&&f&&t(b).not(b).removeClass(d).removeAttr("aria-invalid"));return g};var s=function(b,c){var d;a.each(b,function(b,e){if(e)return d="customError"==b?a.prop(c,"validationMessage"):b,!1});return d},z=function(a){var c;try{c=i.activeElement.name===a}catch(d){}return c},e="user-error",d="user-error form-ui-invalid";a(i).on(v.validityUIEvents||"focusout change refreshvalidityui", function(b){var c,f;if(b.target&&(c=a(b.target).getNativeElement()[0],"submit"!=c.type&&a.prop(c,"willValidate"))){f=a.data(c,"webshimsswitchvalidityclass");var g=function(){if(!("focusout"==b.type&&"radio"==c.type&&z(c.name))){var f=a.prop(c,"validity"),g=a(c).getShadowElement(),h,i,l,j;a(c).trigger("refreshCustomValidityRules");f.valid?g.hasClass("user-success")||(h="user-success form-ui-valid",i=d,j="changedvaliditystate",l="changedvalid",p[c.type]&&c.checked&&t(c).not(c).removeClass(i).addClass(h).removeAttr("aria-invalid"), a.removeData(c,"webshimsinvalidcause")):(f=s(f,c),a.data(c,"webshimsinvalidcause")!=f&&(a.data(c,"webshimsinvalidcause",f),j="changedvaliditystate"),g.hasClass(e)||(h=d,i="user-success form-ui-valid",p[c.type]&&!c.checked&&t(c).not(c).removeClass(i).addClass(h),l="changedinvalid"));h&&(g.addClass(h).removeClass(i),setTimeout(function(){a(c).trigger(l)},0));j&&setTimeout(function(){a(c).trigger(j)},0);a.removeData(b.target,"webshimsswitchvalidityclass")}};f&&clearTimeout(f);"refreshvalidityui"==b.type? g():a.data(c,"webshimsswitchvalidityclass",setTimeout(g,9))}});x.changedvaliditystate=!0;x.refreshCustomValidityRules=!0;x.changedvalid=!0;x.changedinvalid=!0;x.refreshvalidityui=!0;g.triggerInlineForm=function(b,c){a(b).trigger(c)};g.modules["form-core"].getGroupElements=t;j=function(){g.scrollRoot=a.browser.webkit||"BackCompat"==i.compatMode?a(i.body):a(i.documentElement)};j();g.ready("DOM",j);g.getRelOffset=function(b,c){var b=a(b),d=a(c).offset(),e;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block", left:0,top:0},function(){e=b.offset()});d.top-=e.top;d.left-=e.left;return d};g.validityAlert=function(){var b=!a.browser.msie||7j&&(g.scrollRoot.animate({scrollTop:j-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(h-j)),80)}),k=!0);try{f[0].focus()}catch(n){}k&&(g.scrollRoot.scrollTop(h),setTimeout(function(){g.scrollRoot.scrollTop(h)},0));setTimeout(function(){a(i).on("focusout.validityalert", l)},10)},getMessage:function(b,d){d||(d=r(b[0])||b.prop("validationMessage"));d?a("span.va-box",c).text(d):this.hide()},position:function(b,d){d=d?a.extend({},d):k.getOffsetFromBody(b);d.top+=b.outerHeight();c.css(d)},show:function(){"none"===c.css("display")&&c.css({opacity:0}).show();c.addClass("va-visible").fadeTo(400,1)},hide:function(){c.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(d);a(i).unbind(".validityalert");a(f).unbind(".validityalert");c.stop().removeAttr("for")}, _create:function(){if(!c)c=k.errorBubble=a("<"+b+' class="validity-alert-wrapper" role="alert">").css({position:"absolute",display:"none"}),g.ready("DOM",function(){c.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&c.bgIframe()})}};l=a.proxy(k,"hide");return k}();(function(){var b,c=[],f;a(i).on("invalid",function(g){if(!g.wrongWebkitInvalid){var j= a(g.target),k=j.getShadowElement();k.hasClass(e)||(k.addClass(d).removeClass("user-success form-ui-valid"),setTimeout(function(){a(g.target).trigger("changedinvalid").trigger("changedvaliditystate")},0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=g.isDefaultPrevented,k=a.Event("firstinvalidsystem"),a(i).triggerHandler(k,{element:g.target,form:g.target.form,isInvalidUIPrevented:g.isDefaultPrevented}),j.trigger(b);b&&b.isDefaultPrevented()&&g.preventDefault();c.push(g.target);g.extraData= "fix";clearTimeout(f);f=setTimeout(function(){var d={type:"lastinvalid",cancelable:!1,invalidlist:a(c)};b=!1;c=[];a(g.target).trigger(d,d)},9);k=j=null}})})();a.fn.getErrorMessage=function(){var b="",c=this[0];c&&(b=r(c)||a.prop(c,"customValidationMessage")||a.prop(c,"validationMessage"));return b};v.replaceValidationUI&&g.ready("DOM forms",function(){a(i).on("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});