jQuery.webshims.register("dom-extend",function(a,f,i,l,m){var s=f.modules,n=/\s*,\s*/,q={},r={},p={},u={},e={},o=a.fn.val,b=function(g,k,B,c,b){return b?o.call(a(g)):o.call(a(g),B)};a.fn.val=function(g){var k=this[0];arguments.length&&null==g&&(g="");if(!arguments.length)return!k||1!==k.nodeType?o.call(this):a.prop(k,"value",g,"val",!0);if(a.isArray(g))return o.apply(this,arguments);var B=a.isFunction(g);return this.each(function(c){k=this;1===k.nodeType&&(B?(c=g.call(k,c,a.prop(k,"value",m,"val", !0)),null==c&&(c=""),a.prop(k,"value",c,"val")):a.prop(k,"value",g,"val"))})};var h="_webshimsLib"+Math.round(1E3*Math.random()),v=function(g,k,c){g=g.jquery?g[0]:g;if(!g)return c||{};var b=a.data(g,h);c!==m&&(b||(b=a.data(g,h,{})),k&&(b[k]=c));return k?b&&b[k]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(g){a.fn[g.name]=function(){return this.map(function(){var a=v(this, "shadowData");return a&&a[g.prop]||this})}});["removeAttr","prop","attr"].forEach(function(g){q[g]=a[g];a[g]=function(k,c,d,h,j){var t="val"==h,x=!t?q[g]:b;if(!k||!r[c]||1!==k.nodeType||!t&&h&&"attr"==g&&a.attrFn[c])return x(k,c,d,h,j);var w=(k.nodeName||"").toLowerCase(),A=p[w],v="attr"==g&&(!1===d||null===d)?"removeAttr":g,f,z,i;A||(A=p["*"]);A&&(A=A[c]);A&&(f=A[v]);if(f){if("value"==c)z=f.isVal,f.isVal=t;if("removeAttr"===v)return f.value.call(k);if(d===m)return f.get?f.get.call(k):f.value;f.set&& ("attr"==g&&!0===d&&(d=c),i=f.set.call(k,d));if("value"==c)f.isVal=z}else i=x(k,c,d,h,j);if((d!==m||"removeAttr"===v)&&e[w]&&e[w][c]){var o;o="removeAttr"==v?!1:"prop"==v?!!d:!0;e[w][c].forEach(function(a){if(!a.only||(a.only="prop"==g)||"attr"==a.only&&"prop"!=g)a.call(k,d,o,t?"val":v,g)})}return i};u[g]=function(k,c,d){p[k]||(p[k]={});p[k][c]||(p[k][c]={});var h=p[k][c][g],e=function(a,k,w){return k&&k[a]?k[a]:w&&w[a]?w[a]:"prop"==g&&"value"==c?function(a){return d.isVal?b(this,c,a,!1,0===arguments.length): q[g](this,c,a)}:"prop"==g&&"value"==a&&d.value.apply?function(a){var k=q[g](this,c);k&&k.apply&&(k=k.apply(this,arguments));return k}:function(a){return q[g](this,c,a)}};p[k][c][g]=d;if(d.value===m){if(!d.set)d.set=d.writeable?e("set",d,h):f.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+k;}:a.noop;if(!d.get)d.get=e("get",d,h)}["value","get","set"].forEach(function(a){d[a]&&(d["_sup"+a]=e(a,h))})}});var j=!a.browser.msie||8i&&7parseInt(a.browser.version,10),u= {},e=function(a){if(!a)return[];if(u[a])return u[a];var h;try{h=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(e){}u[a]=h||[];return h||[]},o={_create:function(b){if(!r[a.prop(b.input,"type")]){var h=b.datalist,f=a.data(b.input,"datalistWidget");if(h&&f&&f.datalist!==h)f.datalist=h,f.id=b.id,f.shadowList.prop("className","datalist-polyfill "+(f.datalist.className||"")+" "+f.datalist.id+"-shadowdom"),s.positionDatalist?f.shadowList.insertAfter(b.input):f.shadowList.appendTo("body"), a(f.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(f,"_resetListCached")),f._resetListCached();else if(h){if(!(f&&f.datalist===h)){q++;var j=this;this.hideList=a.proxy(j,"hideList");this.timedHide=function(){clearTimeout(j.hideTimer);j.hideTimer=setTimeout(j.hideList,9)};this.datalist=h;this.id=b.id;this.hasViewableData=!0;this._autocomplete=a.attr(b.input,"autocomplete");a.data(b.input,"datalistWidget",this);this.shadowList=a('
');s.positionDatalist||a(b.input).hasClass("position-datalist")?this.shadowList.insertAfter(b.input):this.shadowList.appendTo("body");this.index=-1;this.input=b.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",function(c){var d=a("li:not(.hidden-item)",j.shadowList),h="mousedown"==c.type||"click"==c.type;j.markItem(d.index(c.currentTarget),h,d);"click"== c.type&&(j.hideList(),s.customDatalist&&a(b.input).trigger("datalistselect"));return"mousedown"!=c.type}).bind("focusout",this.timedHide);b.input.setAttribute("autocomplete","off");a(b.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!j.triggeredByDatalist)j.changedValue=!1,j.showHideOptions()}).bind("keydown.datalistWidget",function(c){var d=c.keyCode,h;if(40==d&&!j.showList())return j.markItem(j.index+1,!0),!1;if(j.isListVisible){if(38==d)return j.markItem(j.index- 1,!0),!1;if(!c.shiftKey&&(33==d||36==d))return j.markItem(0,!0),!1;if(!c.shiftKey&&(34==d||35==d))return c=a("li:not(.hidden-item)",j.shadowList),j.markItem(c.length-1,!0,c),!1;if(13==d||27==d)return 13==d&&(h=a("li.active-item:not(.hidden-item)",j.shadowList),j.changeValue(a("li.active-item:not(.hidden-item)",j.shadowList))),j.hideList(),s.customDatalist&&h&&h[0]&&a(b.input).trigger("datalistselect"),!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&j.showList()}).bind("mousedown.datalistWidget", function(){a(this).is(":focus")&&j.showList()}).bind("blur.datalistWidget",this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(this,"_resetListCached"));this._resetListCached();b.input.form&&(b.input.name||b.input.id)&&a(b.input.form).bind("submit.datalistWidget"+b.input.id,function(){if(!a(b.input).hasClass("no-datalist-cache")&&"off"!=j._autocomplete){var c=a.prop(b.input,"value"),d=(b.input.name||b.input.id)+a.prop(b.input,"type"); if(!j.storedOptions)j.storedOptions=e(d);if(c&&-1==j.storedOptions.indexOf(c)&&(j.storedOptions.push(c),c=j.storedOptions,d)){c=c||[];try{localStorage.setItem("storedDatalistOptions"+d,JSON.stringify(c))}catch(h){}}}});a(i).bind("unload.datalist"+this.id+" beforeunload.datalist"+this.id,function(){j.destroy()})}}else f&&f.destroy()}},destroy:function(){var b=a.attr(this.input,"autocomplete");a(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();a(l).unbind(".datalist"+ this.id);a(i).unbind(".datalist"+this.id);this.input.form&&this.input.id&&a(this.input.form).unbind("submit.datalistWidget"+this.input.id);this.input.removeAttribute("aria-haspopup");b===m?this.input.removeAttribute("autocomplete"):a(this.input).attr("autocomplete",b)},_resetListCached:function(a){var h=this,e;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(i.QUnit||(e=a&&l.activeElement==h.input)?h.updateListOptions(e):f.ready("WINDOWLOAD",function(){h.updateTimer= setTimeout(function(){h.updateListOptions();h=null;q=1},200+100*q)}))},updateListOptions:function(b){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:a.css(this.input,"fontSize"),fontFamily:a.css(this.input,"fontFamily")});this.searchStart=s.customDatalist&&a(this.input).hasClass("search-start");var h=[],f=[],j=[],c,d,i,g;for(d=a.prop(this.datalist,"options"),i=0,g=d.length;i'+d.text+' '+d.value+"";this.arrayOptions=j;this.shadowList.html('
    '+h.join("\n")+"
");a.fn.bgIframe&&p&&this.shadowList.bgIframe();(b||this.isListVisible)&&this.showHideOptions()},showHideOptions:function(b){var h=a.prop(this.input, "value").toLowerCase();if(!(h===this.lastUpdatedValue||this.lastUnfoundValue&&0===h.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=h;var e=!1,f=this.searchStart,c=a("li",this.shadowList);h?this.arrayOptions.forEach(function(d,b){var g;if(!("lowerText"in d))d.lowerText=d.text!=d.value?d.value.toLowerCase()+d.text.toLowerCase():d.text.toLowerCase();g=d.lowerText.indexOf(h);(g=f?!g:-1!==g)?(a(c[b]).removeClass("hidden-item"),e=!0):a(c[b]).addClass("hidden-item")}):c.length&&(c.removeClass("hidden-item"), e=!0);this.hasViewableData=e;!b&&e&&this.showList();if(!e)this.lastUnfoundValue=h,this.hideList()}},setPos:function(){this.shadowList.css({marginTop:0,marginLeft:0,marginRight:0,marginBottom:0});var b=s.positionDatalist?a(this.input).position():f.getRelOffset(this.shadowList,this.input);b.top+=a(this.input).outerHeight();b.width=a(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css({marginTop:"", marginLeft:"",marginRight:"",marginBottom:""}).css(b);return b},showList:function(){if(this.isListVisible)return!1;this.needsUpdate&&this.updateListOptions();this.showHideOptions(!0);if(!this.hasViewableData)return!1;this.isListVisible=!0;var b=this;b.setPos();b.shadowList.addClass("datalist-visible").find("li.active-item").removeClass("active-item");a(i).unbind(".datalist"+b.id);a(l).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(h){h.target===b.input|| b.shadowList[0]===h.target||a.contains(b.shadowList[0],h.target)?(clearTimeout(b.hideTimer),setTimeout(function(){clearTimeout(b.hideTimer)},9)):b.timedHide()}).bind("updateshadowdom.datalist"+b.id,function(){b.setPos()});return!0},hideList:function(){if(!this.isListVisible)return!1;var b=this,h=function(){b.changedValue&&a(b.input).trigger("change");b.changedValue=!1};b.shadowList.removeClass("datalist-visible list-item-active");b.index=-1;b.isListVisible=!1;if(b.changedValue){b.triggeredByDatalist= !0;f.triggerInlineForm&&f.triggerInlineForm(b.input,"input");if(a(b.input).is(":focus"))a(b.input).one("blur",h);else h();b.triggeredByDatalist=!1}a(l).unbind(".datalist"+b.id);a(i).unbind(".datalist"+b.id).one("resize.datalist"+b.id,function(){b.shadowList.css({top:0,left:0})});return!0},scrollIntoView:function(b){var h=a("ul",this.shadowList),e=a("div.datalist-box",this.shadowList),f=b.position();f.top-=(parseInt(h.css("paddingTop"),10)||0)+(parseInt(h.css("marginTop"),10)||0)+(parseInt(h.css("borderTopWidth"), 10)||0);0>f.top?e.scrollTop(e.scrollTop()+f.top-2):(f.top+=b.outerHeight(),b=e.height(),f.top>b&&e.scrollTop(e.scrollTop()+(f.top-b)+2))},changeValue:function(b){if(b[0]){var b=a("span.option-value",b).text(),h=a.prop(this.input,"value");if(b!=h)a(this.input).prop("value",b).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(b,h,e){e=e||a("li:not(.hidden-item)",this.shadowList);if(e.length)0>b?b=e.length-1:b>=e.length&&(b=0),e.removeClass("active-item"),this.shadowList.addClass("list-item-active"), e=e.filter(":eq("+b+")").addClass("active-item"),h&&(this.changeValue(e),this.scrollIntoView(e)),this.index=b}};(function(){n||f.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=a("select",this);b[0]?b=b[0].options:(b=a("option",this).get(),b.length&&f.warn("you should wrap your option-elements for a datalist in a select element to support IE and other old browsers."));return b}}});var b={autocomplete:{attr:{get:function(){var b=a.data(this,"datalistWidget");return b? b._autocomplete:"autocomplete"in this?this.autocomplete:this.getAttribute("autocomplete")},set:function(b){var e=a.data(this,"datalistWidget");e?(e._autocomplete=b,"off"==b&&e.hideList()):"autocomplete"in this?this.autocomplete=b:this.setAttribute("autocomplete",b)}}}};n?((a("").prop("options")||[]).length||f.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var e=a("select",this); if(e[0]&&e[0].options&&e[0].options.length)b=e[0].options}return b}}}),b.list={attr:{get:function(){var b=f.contentAttr(this,"list");null!=b?this.removeAttribute("list"):b=a.data(this,"datalistListAttr");return null==b?m:b},set:function(b){a.data(this,"datalistListAttr",b);f.objectCreate(o,m,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}):b.list={attr:{get:function(){var a=f.contentAttr(this,"list");return null==a?m:a},set:function(b){f.contentAttr(this, "list",b);f.objectCreate(o,m,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};f.defineNodeNameProperties("input",b);if(a.event.customEvent)a.event.customEvent.updateDatalist=!0,a.event.customEvent.updateInput=!0,a.event.customEvent.datalistselect=!0;f.addReady(function(a,b){b.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()}); (function(a){var f=window.Modernizr,i=a.webshims,l=i.bugs,m=a('
'),s=function(){if(m[0].querySelector)try{l.findRequired=!m[0].querySelector("select:required")}catch(a){l.findRequired=!1}};l.findRequired=!1;l.validationMessage=!1;l.valueAsNumberSet=!1;i.capturingEventPrevented=function(e){if(!e._isPolyfilled){var f=e.isDefaultPrevented, b=e.preventDefault;e.preventDefault=function(){clearTimeout(a.data(e.target,e.type+"DefaultPrevented"));a.data(e.target,e.type+"DefaultPrevented",setTimeout(function(){a.removeData(e.target,e.type+"DefaultPrevented")},30));return b.apply(this,arguments)};e.isDefaultPrevented=function(){return!(!f.apply(this,arguments)&&!a.data(e.target,e.type+"DefaultPrevented"))};e._isPolyfilled=!0}};if(!f.formvalidation||l.bustedValidity)s();else if(i.capturingEvents(["input"]),i.capturingEvents(["invalid"],!0), f.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var n=a("input",m).eq(0),q,r=function(a){i.loader.loadList(["dom-extend"]);i.ready("dom-extend",a)},p=function(e){var o=["form-extend","form-message","form-native-fix"];e&&(e.preventDefault(),e.stopImmediatePropagation());clearTimeout(q);setTimeout(function(){m&&(m.remove(),m=n=null)},9);if(!f.bugfreeformvalidation)i.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),i.modules["form-extend"].test=a.noop;i.isReady("form-number-date-api")&& o.push("form-number-date-api");i.reTest(o);if(n)try{n.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&r(function(){i.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(b){!b&&this&&a.prop(this,"value",a.prop(this,"value"))}});i.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(b){if(!b&&this)b=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(b)}})})}catch(b){}(a.browser.opera||window.testGoodWithFix)&& r(function(){var b=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(e){var f=i.defineNodeNameProperty(e,"checkValidity",{prop:{value:function(){i.fromSubmit||a(this).bind("invalid.checkvalidity",b);i.fromCheckValidity=!0;var c=f.prop._supvalue.apply(this,arguments);i.fromSubmit||a(this).unbind("invalid.checkvalidity",b);i.fromCheckValidity=!1;return c}}})})})};m.appendTo("head");if(window.opera||window.testGoodWithFix){s();l.validationMessage=!n.prop("validationMessage"); if((f.inputtypes||{}).date){try{n.prop("valueAsNumber",0)}catch(u){}l.valueAsNumberSet="1970-01-01"!=n.prop("value")}n.prop("value","")}m.bind("submit",function(a){f.bugfreeformvalidation=!1;p(a)});q=setTimeout(function(){m&&m.triggerHandler("submit")},9);a("input, select",m).bind("invalid",p).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click");a.browser.webkit&&f.bugfreeformvalidation&&!i.bugs.bustedValidity&&function(){var e=/^(?:textarea|input)$/i, f=!1;document.addEventListener("contextmenu",function(a){e.test(a.target.nodeName||"")&&(f=a.target.form)&&setTimeout(function(){f=!1},1)},!1);a(window).bind("invalid",function(a){if(a.originalEvent&&f&&f==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery); jQuery.webshims.register("form-core",function(a,f,i,l,m,s){var n={radio:1},q={checkbox:1,radio:1},r=a([]),p=f.bugs,u=function(c){var c=a(c),d,b;d=r;if(n[c[0].type])b=c.prop("form"),d=(d=c[0].name)?b?a(b[d]):a(l.getElementsByName(d)).filter(function(){return!a.prop(this,"form")}):c,d=d.filter('[type="radio"]');return d},e=f.getContentValidationMessage=function(c,b,e){var g=a(c).data("errormessage")||c.getAttribute("x-moz-errormessage")||"";e&&g[e]&&(g=g[e]);"object"==typeof g&&(b=b||a.prop(c,"validity")|| {valid:1},b.valid||a.each(b,function(a,c){if(c&&"valid"!=a&&g[a])return g=g[a],!1}));if("object"==typeof g)g=g.defaultMessage;return g||""},o={number:1,range:1,date:1};a.extend(a.expr[":"],{"valid-element":function(c){return!(!a.prop(c,"willValidate")||!(a.prop(c,"validity")||{valid:1}).valid)},"invalid-element":function(c){return!(!a.prop(c,"willValidate")||(a.prop(c,"validity")||{valid:1}).valid)},"required-element":function(c){return!(!a.prop(c,"willValidate")||!a.prop(c,"required"))},"optional-element":function(c){return!!(a.prop(c, "willValidate")&&!1===a.prop(c,"required"))},"in-range":function(c){if(!o[a.prop(c,"type")]||!a.prop(c,"willValidate"))return!1;c=a.prop(c,"validity");return!(!c||c.rangeOverflow||c.rangeUnderflow)},"out-of-range":function(c){if(!o[a.prop(c,"type")]||!a.prop(c,"willValidate"))return!1;c=a.prop(c,"validity");return!(!c||!c.rangeOverflow&&!c.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(c){a.expr[":"][c]=a.expr.filters[c+"-element"]});a.expr[":"].focus=function(a){try{var b= a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())}catch(e){}return!1};var b=a.event.customEvent||{};(p.bustedValidity||p.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var c=a.find,b=a.find.matchesSelector,e=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,g=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,b=function(b){var d=arguments,d=a.call(d,1,d.length);d.unshift(b.replace(e,g));return c.apply(this, d)},d;for(d in c)c.hasOwnProperty(d)&&(b[d]=c[d]);return b}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",l.documentElement))a.find.matchesSelector=function(a,c){c=c.replace(e,g);return b.call(this,a,c)}}();var h=a.prop,v={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(c,b,e){var g=h.apply(this,arguments);if(c&&"form"in c&&v[b]&&e!==m&&a(c).hasClass("form-ui-invalid")&&(a.prop(c,"validity")||{valid:1}).valid)a(c).getShadowElement().removeClass("form-ui-invalid"), "checked"==b&&e&&u(c).not(c).removeClass("form-ui-invalid").removeAttr("aria-invalid");return g};var j=function(c,b){var e;a.each(c,function(c,f){if(f)return e="customError"==c?a.prop(b,"validationMessage"):c,!1});return e};a(l).bind(s.validityUIEvents||"focusout change refreshvalidityui",function(c){var b,e;if(c.target&&(b=a(c.target).getNativeElement()[0],!("submit"==b.type||!a.prop(b,"willValidate")||"focusout"==c.type&&"radio"==c.type))){e=a.data(b,"webshimsswitchvalidityclass");var g=function(){var e= a.prop(b,"validity"),g=a(b).getShadowElement(),f,h,i,t;a(b).trigger("refreshCustomValidityRules");e.valid?g.hasClass("form-ui-valid")||(f="form-ui-valid",h="form-ui-invalid",t="changedvaliditystate",i="changedvalid",q[b.type]&&b.checked&&u(b).not(b).removeClass(h).addClass(f).removeAttr("aria-invalid"),a.removeData(b,"webshimsinvalidcause")):(e=j(e,b),a.data(b,"webshimsinvalidcause")!=e&&(a.data(b,"webshimsinvalidcause",e),t="changedvaliditystate"),g.hasClass("form-ui-invalid")||(f="form-ui-invalid", h="form-ui-valid",q[b.type]&&!b.checked&&u(b).not(b).removeClass(h).addClass(f),i="changedinvalid"));f&&(g.addClass(f).removeClass(h),setTimeout(function(){a(b).trigger(i)},0));t&&setTimeout(function(){a(b).trigger(t)},0);a.removeData(c.target,"webshimsswitchvalidityclass")};e&&clearTimeout(e);"refreshvalidityui"==c.type?g():a.data(c.target,"webshimsswitchvalidityclass",setTimeout(g,9))}});b.changedvaliditystate=!0;b.refreshCustomValidityRules=!0;b.changedvalid=!0;b.changedinvalid=!0;b.refreshvalidityui= !0;f.triggerInlineForm=function(c,b){a(c).trigger(b)};f.modules["form-core"].getGroupElements=u;p=function(){f.scrollRoot=a.browser.webkit||"BackCompat"==l.compatMode?a(l.body):a(l.documentElement)};p();f.ready("DOM",p);f.getRelOffset=function(c,b){var c=a(c),e=a(b).offset(),g;a.swap(a(c)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){g=c.offset()});e.top-=g.top;e.left-=g.left;return e};f.validityAlert=function(){var c=!a.browser.msie||7i&&(f.scrollRoot.animate({scrollTop:i-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(t-i)),80)}),w=!0);try{h[0].focus()}catch(o){}w&&(f.scrollRoot.scrollTop(t),setTimeout(function(){f.scrollRoot.scrollTop(t)},0));setTimeout(function(){a(l).bind("focusout.validityalert",j)},10)},getMessage:function(c,g){g||(g=e(c[0])||c.prop("validationMessage"));g?a("span.va-box",b).text(g):this.hide()},position:function(c, e){e=e?a.extend({},e):o.getOffsetFromBody(c);e.top+=c.outerHeight();b.css(e)},show:function(){"none"===b.css("display")&&b.css({opacity:0}).show();b.addClass("va-visible").fadeTo(400,1)},hide:function(){b.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(h);a(l).unbind(".validityalert");a(i).unbind(".validityalert");b.stop().removeAttr("for")},_create:function(){if(!b)b=o.errorBubble=a("<"+c+' class="validity-alert-wrapper" role="alert">").css({position:"absolute",display:"none"}),f.ready("DOM",function(){b.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&b.bgIframe()})}};j=a.proxy(o,"hide");return o}();(function(){var b,e=[],f;a(l).bind("invalid",function(g){if(!g.wrongWebkitInvalid){var h=a(g.target),j=h.getShadowElement();j.hasClass("form-ui-invalid")||(j.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(g.target).trigger("changedinvalid").trigger("changedvaliditystate")}, 0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=g.isDefaultPrevented,j=a.Event("firstinvalidsystem"),a(l).triggerHandler(j,{element:g.target,form:g.target.form,isInvalidUIPrevented:g.isDefaultPrevented}),h.trigger(b);b&&b.isDefaultPrevented()&&g.preventDefault();e.push(g.target);g.extraData="fix";clearTimeout(f);f=setTimeout(function(){var f={type:"lastinvalid",cancelable:!1,invalidlist:a(e)};b=!1;e=[];a(g.target).trigger(f,f)},9);j=h=null}})})();a.fn.getErrorMessage=function(){var b="", d=this[0];d&&(b=e(d)||a.prop(d,"customValidationMessage")||a.prop(d,"validationMessage"));return b};s.replaceValidationUI&&f.ready("DOM forms",function(){a(l).bind("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})}); (function(a,f,i){var l=f.audio&&f.video,m=!1,s=i.cfg.mediaelement,n=i.bugs,q=function(){i.ready("mediaelement-swf",function(){if(!i.mediaelement.createSWF)i.modules["mediaelement-swf"].test=a.noop,i.reTest(["mediaelement-swf"],l)})},r;if(l){var p=document.createElement("video");f.videoBuffered="buffered"in p;m="loop"in p;i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));f.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement", test:f.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"))}if(l&&!s.preferFlash){var u=function(e){var f=e.target.parentNode;!s.preferFlash&&(a(e.target).is("audio, video")||f&&a("source:last",f)[0]==e.target)&&i.ready("DOM mediaelement",function(){r&&q();i.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){r&&!s.preferFlash&&i.mediaelement.createSWF&&!a(e.target).closest("audio, video").is(".nonnative-api-active")?(s.preferFlash=!0,document.removeEventListener("error", u,!0),a("audio, video").mediaLoad(),i.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+e.target.src)):r||document.removeEventListener("error",u,!0)},20)})})};document.addEventListener("error",u,!0);a("audio, video").each(function(){this.error&&u({target:this})})}n.track=!1;f.track&&function(){if(!n.track)n.track="number"!=typeof a("")[0].readyState;if(!n.track)try{new TextTrackCue(2,3,"")}catch(e){n.track=!0}var f=i.cfg.track,b=function(b){a(b.target).filter("track").each(h)}, h=function(){if(n.track||!f.override&&3==a.prop(this,"readyState"))f.override=!0,i.reTest("track"),document.removeEventListener("error",b,!0),this&&a.nodeName(this,"track")?i.error("track support was overwritten. Please check your vtt including your vtt mime-type"):i.info("track support was overwritten. due to bad browser support")},l=function(){document.addEventListener("error",b,!0);n.track?h():a("track").each(h)};f.override||(i.isReady("track")?l():a(l))}();i.register("mediaelement-core",function(a, i,b,h,p){r=swfobject.hasFlashPlayerVersion("9.0.115");var j=i.mediaelement,c=function(b,c){var b=a(b),d={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!d.src)return d;var f=b.attr("type");if(f)d.type=f,d.container=a.trim(f.split(";")[0]);else if(c||(c=b[0].nodeName.toLowerCase(),"source"==c&&(c=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),f=j.getTypeForSrc(d.src,c))d.type=f,d.container=f;if(f=b.attr("media"))d.media=f;return d},d=!r&&"postMessage"in b&&l,u= function(){var b;return function(){!b&&d&&(b=!0,i.loader.loadScript("https://www.youtube.com/player_api"),a(function(){i.polyfill("mediaelement-yt")}))}}(),g=function(){r?q():u()};i.addPolyfill("mediaelement-yt",{test:!d,d:["dom-support"]});j.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"]}};j.mimeTypes.source=a.extend({},j.mimeTypes.audio,j.mimeTypes.video);j.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(j.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};j.srces=function(b,d){b=a(b);if(d)b.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(d)||(d=[d]),d.forEach(function(a){var c=h.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 d=[],f=b[0].nodeName.toLowerCase(),g=c(b,f);g.src?d.push(g):a("source",b).each(function(){g=c(this,f);g.src&&d.push(g)});return d}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==p&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));j.srces(this,b);a(this).mediaLoad()})};j.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(","); j.canThirdPlaySrces=function(b,c){var f="";if(r||d)b=a(b),c=c||j.srces(b),a.each(c,function(a,b){if(b.container&&b.src&&(r&&-1!=j.swfMimeTypes.indexOf(b.container)||d&&"video/youtube"==b.container))return f=b,!1});return f};var k={};j.canNativePlaySrces=function(b,c){var d="";if(l){var b=a(b),f=(b[0].nodeName||"").toLowerCase();if(!k[f])return d;c=c||j.srces(b);a.each(c,function(a,c){if(c.type&&k[f].prop._supvalue.call(b[0],c.type))return d=c,!1})}return d};j.setError=function(b,c){c||(c="can't play sources"); a(b).pause().data("mediaerror",c);i.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var B=function(){var a;return function(b,c,e){i.ready(r?"mediaelement-swf":"mediaelement-yt",function(){j.createSWF?j.createSWF(b,c,e):a||(a=!0,g(),B(b,c,e))});!a&&d&&!j.createSWF&&u()}}(),C=function(a,b,c,d,e){c||!1!==c&&b&&"third"==b.isActive?(c=j.canThirdPlaySrces(a,d))?B(a,c,b):e?j.setError(a,!1):C(a,b,!1,d,!0):(c=j.canNativePlaySrces(a,d))?b&&"third"== b.isActive&&j.setActive(a,"html5",b):e?(j.setError(a,!1),b&&"third"==b.isActive&&j.setActive(a,"html5",b)):C(a,b,!0,d,!0)},D=/^(?:embed|object|datalist)$/i,y=function(b,c){var d=i.data(b,"mediaelementBase")||i.data(b,"mediaelementBase",{}),f=j.srces(b),g=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(f.length&&g&&!(1!=g.nodeType||D.test(g.nodeName||"")))c=c||i.data(b,"mediaelement"),C(b,c,s.preferFlash||p,f)};a(h).bind("ended",function(b){var c=i.data(b.target,"mediaelement"); (!m||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)});m||i.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var c=i.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=i.data(this,"mediaelement");y(this,a);l&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});k[b]=i.defineNodeNameProperty(b, "canPlayType",{prop:{value:function(c){var d="";l&&k[b].prop._supvalue&&(d=k[b].prop._supvalue.call(this,c),"no"==d&&(d=""));!d&&r&&(c=a.trim((c||"").split(";")[0]),-1!=j.swfMimeTypes.indexOf(c)&&(d="maybe"));return d}}})});i.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=i.data(a,"mediaelementBase")||i.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){y(a);a=null},9)}});b=function(){i.addReady(function(b,c){a("video, audio", b).add(c.filter("video, audio")).each(function(){a.browser.msie&&8