jQuery.webshims.register("form-datalist",function(a,b,j,m,s){b.propTypes.element=function(h){b.createPropDefault(h,"attr");if(!h.prop)h.prop={get:function(){var b=h.attr.get.call(this);b&&(b=m.getElementById(b))&&h.propNodeName&&!a.nodeName(b,h.propNodeName)&&(b=null);return b||null},writeable:!1}};(function(){var h=a.webshims.cfg.forms,g=Modernizr.input.list;if(!g||h.customDatalist){var r=0,n={submit:1,button:1,reset:1,hidden:1,range:1,date:1},o=a.browser.msie&&7>parseInt(a.browser.version,10),u=
{},l=function(a){if(!a)return[];if(u[a])return u[a];var b;try{b=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(d){}u[a]=b||[];return b||[]},p={_create:function(f){if(!n[a.prop(f.input,"type")]){var b=f.datalist,d=a.data(f.input,"datalistWidget");if(b&&d&&d.datalist!==b)d.datalist=b,d.id=f.id,d.shadowList.prop("className","datalist-polyfill "+(d.datalist.className||"")+" "+d.datalist.id+"-shadowdom"),h.positionDatalist?d.shadowList.insertAfter(f.input):d.shadowList.appendTo("body"),
a(d.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(d,"_resetListCached")),d._resetListCached();else if(b){if(!(d&&d.datalist===b)){r++;var c=this;this.hideList=a.proxy(c,"hideList");this.timedHide=function(){clearTimeout(c.hideTimer);c.hideTimer=setTimeout(c.hideList,9)};this.datalist=b;this.id=f.id;this.hasViewableData=!0;this._autocomplete=a.attr(f.input,"autocomplete");a.data(f.input,"datalistWidget",this);this.shadowList=a('
');h.positionDatalist||a(f.input).hasClass("position-datalist")?this.shadowList.insertAfter(f.input):this.shadowList.appendTo("body");this.index=-1;this.input=f.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",function(e){var k=a("li:not(.hidden-item)",c.shadowList),d="mousedown"==e.type||"click"==e.type;c.markItem(k.index(e.currentTarget),d,k);"click"==
e.type&&(c.hideList(),h.customDatalist&&a(f.input).trigger("datalistselect"));return"mousedown"!=e.type}).bind("focusout",this.timedHide);f.input.setAttribute("autocomplete","off");a(f.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!c.triggeredByDatalist)c.changedValue=!1,c.showHideOptions()}).bind("keydown.datalistWidget",function(e){var k=e.keyCode,d;if(40==k&&!c.showList())return c.markItem(c.index+1,!0),!1;if(c.isListVisible){if(38==k)return c.markItem(c.index-
1,!0),!1;if(!e.shiftKey&&(33==k||36==k))return c.markItem(0,!0),!1;if(!e.shiftKey&&(34==k||35==k))return e=a("li:not(.hidden-item)",c.shadowList),c.markItem(e.length-1,!0,e),!1;if(13==k||27==k)return 13==k&&(d=a("li.active-item:not(.hidden-item)",c.shadowList),c.changeValue(a("li.active-item:not(.hidden-item)",c.shadowList))),c.hideList(),h.customDatalist&&d&&d[0]&&a(f.input).trigger("datalistselect"),!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&c.showList()}).bind("mousedown.datalistWidget",
function(){a(this).is(":focus")&&c.showList()}).bind("blur.datalistWidget",this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(this,"_resetListCached"));this._resetListCached();f.input.form&&(f.input.name||f.input.id)&&a(f.input.form).bind("submit.datalistWidget"+f.input.id,function(){if(!a(f.input).hasClass("no-datalist-cache")&&"off"!=c._autocomplete){var e=a.prop(f.input,"value"),k=(f.input.name||f.input.id)+a.prop(f.input,"type");
if(!c.storedOptions)c.storedOptions=l(k);if(e&&-1==c.storedOptions.indexOf(e)&&(c.storedOptions.push(e),e=c.storedOptions,k)){e=e||[];try{localStorage.setItem("storedDatalistOptions"+k,JSON.stringify(e))}catch(d){}}}});a(j).bind("unload.datalist"+this.id+" beforeunload.datalist"+this.id,function(){c.destroy()})}}else d&&d.destroy()}},destroy:function(){var b=a.attr(this.input,"autocomplete");a(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();a(m).unbind(".datalist"+
this.id);a(j).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===s?this.input.removeAttribute("autocomplete"):a(this.input).attr("autocomplete",b)},_resetListCached:function(a){var i=this,d;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(j.QUnit||(d=a&&m.activeElement==i.input)?i.updateListOptions(d):b.ready("WINDOWLOAD",function(){i.updateTimer=
setTimeout(function(){i.updateListOptions();i=null;r=1},200+100*r)}))},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=h.customDatalist&&a(this.input).hasClass("search-start");var i=[],d=[],c=[],e,k,v,w;for(k=a.prop(this.datalist,"options"),v=0,w=k.length;v'+k.text+' '+k.value+"";this.arrayOptions=c;this.shadowList.html('");a.fn.bgIframe&&o&&this.shadowList.bgIframe();(b||this.isListVisible)&&this.showHideOptions()},showHideOptions:function(b){var i=a.prop(this.input,
"value").toLowerCase();if(!(i===this.lastUpdatedValue||this.lastUnfoundValue&&0===i.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=i;var d=!1,c=this.searchStart,e=a("li",this.shadowList);i?this.arrayOptions.forEach(function(k,b){var f;if(!("lowerText"in k))k.lowerText=k.text!=k.value?k.value.toLowerCase()+k.text.toLowerCase():k.text.toLowerCase();f=k.lowerText.indexOf(i);(f=c?!f:-1!==f)?(a(e[b]).removeClass("hidden-item"),d=!0):a(e[b]).addClass("hidden-item")}):e.length&&(e.removeClass("hidden-item"),
d=!0);this.hasViewableData=d;!b&&d&&this.showList();if(!d)this.lastUnfoundValue=i,this.hideList()}},setPos:function(){this.shadowList.css({marginTop:0,marginLeft:0,marginRight:0,marginBottom:0});var f=h.positionDatalist?a(this.input).position():b.getRelOffset(this.shadowList,this.input);f.top+=a(this.input).outerHeight();f.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(f);return f},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(j).unbind(".datalist"+b.id);a(m).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(i){i.target===b.input||
b.shadowList[0]===i.target||a.contains(b.shadowList[0],i.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 f=this,i=function(){f.changedValue&&a(f.input).trigger("change");f.changedValue=!1};f.shadowList.removeClass("datalist-visible list-item-active");f.index=-1;f.isListVisible=!1;if(f.changedValue){f.triggeredByDatalist=
!0;b.triggerInlineForm&&b.triggerInlineForm(f.input,"input");if(a(f.input).is(":focus"))a(f.input).one("blur",i);else i();f.triggeredByDatalist=!1}a(m).unbind(".datalist"+f.id);a(j).unbind(".datalist"+f.id).one("resize.datalist"+f.id,function(){f.shadowList.css({top:0,left:0})});return!0},scrollIntoView:function(b){var i=a("ul",this.shadowList),d=a("div.datalist-box",this.shadowList),c=b.position();c.top-=(parseInt(i.css("paddingTop"),10)||0)+(parseInt(i.css("marginTop"),10)||0)+(parseInt(i.css("borderTopWidth"),
10)||0);0>c.top?d.scrollTop(d.scrollTop()+c.top-2):(c.top+=b.outerHeight(),b=d.height(),c.top>b&&d.scrollTop(d.scrollTop()+(c.top-b)+2))},changeValue:function(b){if(b[0]){var b=a("span.option-value",b).text(),i=a.prop(this.input,"value");if(b!=i)a(this.input).prop("value",b).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(b,i,d){d=d||a("li:not(.hidden-item)",this.shadowList);if(d.length)0>b?b=d.length-1:b>=d.length&&(b=0),d.removeClass("active-item"),this.shadowList.addClass("list-item-active"),
d=d.filter(":eq("+b+")").addClass("active-item"),i&&(this.changeValue(d),this.scrollIntoView(d)),this.index=b}};(function(){g||b.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var i=a("select",this);i[0]?i=i[0].options:(i=a("option",this).get(),i.length&&b.warn("you should wrap your option-elements for a datalist in a select element to support IE and other old browsers."));return i}}});var f={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 d=a.data(this,"datalistWidget");d?(d._autocomplete=b,"off"==b&&d.hideList()):"autocomplete"in this?this.autocomplete=b:this.setAttribute("autocomplete",b)}}}};g?((a("").prop("options")||[]).length||b.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var d=a("select",this);
if(d[0]&&d[0].options&&d[0].options.length)b=d[0].options}return b}}}),f.list={attr:{get:function(){var f=b.contentAttr(this,"list");null!=f?this.removeAttribute("list"):f=a.data(this,"datalistListAttr");return null==f?s:f},set:function(f){a.data(this,"datalistListAttr",f);b.objectCreate(p,s,{input:this,id:f,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}):f.list={attr:{get:function(){var a=b.contentAttr(this,"list");return null==a?s:a},set:function(f){b.contentAttr(this,
"list",f);b.objectCreate(p,s,{input:this,id:f,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};b.defineNodeNameProperties("input",f);if(a.event.customEvent)a.event.customEvent.updateDatalist=!0,a.event.customEvent.updateInput=!0,a.event.customEvent.datalistselect=!0;b.addReady(function(a,d){d.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
jQuery.webshims.register("form-extend",function(a,b,j,m,s,h){j=j.Modernizr;s=j.inputtypes;if(j.formvalidation&&!b.bugs.bustedValidity){var g=b.inputTypes,r={};b.addInputType=function(a,c){g[a]=c};b.addValidityRule=function(a,c){r[a]=c};b.addValidityRule("typeMismatch",function(a,c,e,d){if(""===c)return!1;d=d.typeMismatch;if(!("type"in e))e.type=(a[0].getAttribute("type")||"").toLowerCase();g[e.type]&&g[e.type].mismatch&&(d=g[e.type].mismatch(c,a));return d});var n=h.overrideMessages,o=!s.number||
!s.time||!s.range||n,u="customError,typeMismatch,rangeUnderflow,rangeOverflow,stepMismatch,tooLong,patternMismatch,valueMissing,valid".split(","),h=n?["value","checked"]:["value"],l=[],p=function(c,e){if(c){var d=(c.getAttribute&&c.getAttribute("type")||c.type||"").toLowerCase();if(n||g[d])n&&!e&&"radio"==d&&c.name?a(m.getElementsByName(c.name)).each(function(){a.prop(this,"validity")}):a.prop(c,"validity")}},f={};["input","textarea","select"].forEach(function(c){var e=b.defineNodeNameProperty(c,
"setCustomValidity",{prop:{value:function(d){var d=d+"",f="input"==c?a(this).getNativeElement()[0]:this;e.prop._supvalue.call(f,d);b.bugs.validationMessage&&b.data(f,"customvalidationMessage",d);o&&(b.data(f,"hasCustomError",!!d),p(f))}}});f[c]=e.prop._supvalue});if(o||n)h.push("min"),h.push("max"),h.push("step"),l.push("input");n&&(h.push("required"),h.push("pattern"),l.push("select"),l.push("textarea"));if(o){var i;l.forEach(function(c){var e=b.defineNodeNameProperty(c,"validity",{prop:{get:function(){if(!i){var d=
"input"==c?a(this).getNativeElement()[0]:this,h=e.prop._supget.call(d);if(!h)return h;var q={};u.forEach(function(a){q[a]=h[a]});if(!a.prop(d,"willValidate"))return q;i=!0;var t=a(d),x={type:(d.getAttribute&&d.getAttribute("type")||"").toLowerCase(),nodeName:(d.nodeName||"").toLowerCase()},y=t.val(),l=!!b.data(d,"hasCustomError"),j;i=!1;q.customError=l;if(q.valid&&q.customError)q.valid=!1;else if(!q.valid){var m=!0;a.each(q,function(a,c){if(c)return m=!1});if(m)q.valid=!0}a.each(r,function(a,e){q[a]=
e(t,y,x,q);if(q[a]&&(q.valid||!j)&&(n||g[x.type]&&g[x.type].mismatch))f[c].call(d,b.createValidationMessage(d,a)),q.valid=!1,j=!0});q.valid?(f[c].call(d,""),b.data(d,"hasCustomError",!1)):n&&!j&&!l&&a.each(q,function(a,e){if("valid"!==a&&e)return f[c].call(d,b.createValidationMessage(d,a)),!1});return q}},writeable:!1}})});h.forEach(function(a){b.onNodeNamesPropertyModify(l,a,function(){p(this)})});if(m.addEventListener){var d,c=function(c){if("form"in c.target){var e=c.target.form;clearTimeout(d);
p(c.target);e&&n&&a("input",e).each(function(){"password"==this.type&&p(this)})}};m.addEventListener("change",c,!0);n&&(m.addEventListener("blur",c,!0),m.addEventListener("keydown",function(a){13==a.keyCode&&c(a)},!0));m.addEventListener("input",function(a){clearTimeout(d);d=setTimeout(function(){p(a.target)},290)},!0)}var e=l.join(",");b.addReady(function(c,d){a(e,c).add(d.filter(e)).each(function(){a.prop(this,"validity")})});n&&b.ready("DOM form-message",function(){b.activeLang({register:"form-core",
callback:function(){a("input, select, textarea").getNativeElement().each(function(){if(!b.data(this,"hasCustomError")){var c=this,e=a.prop(c,"validity")||{valid:!0},d;e.valid||(d=(c.nodeName||"").toLowerCase(),a.each(e,function(a,e){if("valid"!==a&&e)return f[d].call(c,b.createValidationMessage(c,a)),!1}))}})}})})}b.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return b.inputTypes[a]?a:this.type}}})}});
jQuery.webshims.register("form-number-date-api",function(a,b){var j,m,s;if(!b.getStep)b.getStep=function(d,c){var e=a.attr(d,"step");if("any"===e)return e;c=c||o(d);if(!g[c]||!g[c].step)return e;e=j.asNumber(e);return(!isNaN(e)&&0').prop("type")===d},o=function(a){return(a.getAttribute("type")||"").toLowerCase()},u=b.addMinMaxNumberToCache,l=function(a,c){for(var a=""+a,c=c-a.length,e=0;e=k||1.0E-7>=Math.abs(k-e.step))}return k});[{name:"rangeOverflow",attr:"max",factor:1},{name:"rangeUnderflow",attr:"min",factor:-1}].forEach(function(a){b.addValidityRule(a.name,
function(c,e,b,f){f=(f||{})[a.name]||!1;if(""===e)return f;if(!("type"in b))b.type=o(c[0]);if(g[b.type]&&g[b.type].asNumber){if(!("valueAsNumber"in b))b.valueAsNumber=g[b.type].asNumber(e);if(isNaN(b.valueAsNumber))return!1;u(a.attr,c,b);if(isNaN(b[a.attr+"AsNumber"]))return f;f=b[a.attr+"AsNumber"]*a.factorb.browserVersion&&(e=!1);return function(a,b){var d,f,g;f="width";e&&(f=c[a.css(e)]||f);d=a[f]();f="width"==f;if(d){var t=parseInt(b.css("marginLeft"),10)||0,i=b.outerWidth();(g=parseInt(a.css("marginRight"),10)||0)&&
a.css("marginRight",0);t<=-1*i?(b.css("marginRight",Math.floor(Math.abs(i+t-0.1)+g)),a.css("paddingRight",(parseInt(a.css("paddingRight"),10)||0)+Math.abs(t)),f&&a.css("width",Math.floor(d+t))):(b.css("marginRight",g),a.css("width",Math.floor(d-t-i-0.2)))}}}(),n={},o=a([]),u,l=function(c,e){a("input",c).add(e.filter("input")).each(function(){var c=a.prop(this,"type");if(l[c]&&!b.data(this,"shadowData"))l[c](a(this))})},p=function(c,e){if(h.lazyDate){var b=a.data(c[0],"setDateLazyTimer");b&&clearTimeout(b);
a.data(c[0],"setDateLazyTimer",setTimeout(function(){c.datepicker("setDate",e);a.removeData(c[0],"setDateLazyTimer");c=null},0))}else c.datepicker("setDate",e)},f={tabindex:1,tabIndex:1,title:1,"aria-required":1,"aria-invalid":1};if(!h.copyAttrs)h.copyAttrs={};b.extendUNDEFProp(h.copyAttrs,f);var i=function(a){return h.calculateWidth?{css:{marginRight:a.css("marginRight"),marginLeft:a.css("marginLeft")},outerWidth:a.outerWidth()}:{}};l.common=function(c,e,k){Modernizr.formvalidation&&c.bind("firstinvalid",
function(a){(b.fromSubmit||!u)&&c.unbind("invalid.replacedwidgetbubble").bind("invalid.replacedwidgetbubble",function(e){!a.isInvalidUIPrevented()&&!e.isDefaultPrevented()&&(b.validityAlert.showFor(a.target),a.preventDefault(),e.preventDefault());c.unbind("invalid.replacedwidgetbubble")})});var d,g,i=a("input, span.ui-slider-handle",e),l=c[0].attributes;for(d in h.copyAttrs)if((g=l[d])&&g.specified)f[d]&&i[0]?i.attr(d,g.nodeValue):e[0].setAttribute(d,g.nodeValue);d=(d=c.attr("id"))?a('label[for="'+
d+'"]',c[0].form):o;e.addClass(c[0].className);b.addShadowDom(c,e,{data:k||{},shadowFocusElement:a("input.input-datetime-local-date, span.ui-slider-handle",e)[0],shadowChilds:i});c.after(e);c[0].form&&a(c[0].form).bind("reset",function(a){a.originalEvent&&!a.isDefaultPrevented()&&setTimeout(function(){c.prop("value",c.prop("value"))},0)});d[0]&&(e.getShadowFocusElement().attr("aria-labelledby",b.getID(d)),d.bind("click",function(){c.getShadowFocusElement().focus();return!1}))};Modernizr.formvalidation&&
["input","form"].forEach(function(a){var e=b.defineNodeNameProperty(a,"checkValidity",{prop:{value:function(){u=!0;var a=e.prop._supvalue.apply(this,arguments);u=!1;return a}}})});if(!j.date||h.replaceUI){var d=function(c,e,d,f){var g,i,l=function(){t.dpDiv.unbind("mousedown.webshimsmousedownhandler");i=g=!1},t=e.bind("focusin",function(){l();t.dpDiv.unbind("mousedown.webshimsmousedownhandler").bind("mousedown.webshimsmousedownhandler",function(){g=!0})}).bind("focusout blur",function(a){g&&(i=!0,
a.stopImmediatePropagation())}).datepicker(a.extend({onClose:function(){i&&e.not(":focus")?(l(),e.trigger("focusout"),e.triggerHandler("blur")):l()}},n,h.datepicker,c.data("datepicker"))).bind("change",d).data("datepicker");t.dpDiv.addClass("input-date-datepicker-control");f&&b.triggerDomUpdate(f[0]);"disabled,min,max,value,step,data-placeholder".split(",").forEach(function(a){var e=c.attr(a);e&&c.attr(a,e)});return t};l.date=function(c){if(a.fn.datepicker){var e=a(''),
k;this.common(c,e,l.date.attrs);k=d(c,e,function(b){l.date.blockAttr=!0;var d;if(h.lazyDate){var k=a.data(e[0],"setDateLazyTimer");k&&(clearTimeout(k),a.removeData(e[0],"setDateLazyTimer"))}try{d=(d=a.datepicker.parseDate(e.datepicker("option","dateFormat"),e.prop("value")))?a.datepicker.formatDate("yy-mm-dd",d):e.prop("value")}catch(f){d=e.prop("value")}c.prop("value",d);l.date.blockAttr=!1;b.stopImmediatePropagation();g(c[0],"input");g(c[0],"change")});a(c).bind("updateshadowdom",function(){if(k.trigger[0]&&
(c.css({display:""}),c[0].offsetWidth||c[0].offsetHeight)){var a=i(c);a.css&&(e.css(a.css),a.outerWidth&&e.outerWidth(a.outerWidth),r(e,k.trigger))}c.css({display:"none"})}).triggerHandler("updateshadowdom");k.trigger[0]&&setTimeout(function(){b.ready("WINDOWLOAD",function(){a(c).triggerHandler("updateshadowdom")})},9)}};l.date.attrs={disabled:function(c,e,b){a.prop(e,"disabled",!!b)},min:function(c,b,d){try{d=a.datepicker.parseDate("yy-mm-dd",d)}catch(f){d=!1}d&&a(b).datepicker("option","minDate",
d)},max:function(c,b,d){try{d=a.datepicker.parseDate("yy-mm-dd",d)}catch(f){d=!1}d&&a(b).datepicker("option","maxDate",d)},"data-placeholder":function(c,b,d){c=(d||"").split("-");3==c.length&&(d=a(b).datepicker("option","dateFormat").replace("yy",c[0]).replace("mm",c[1]).replace("dd",c[2]));a.prop(b,"placeholder",d)},value:function(c,b,d){if(!l.date.blockAttr){try{var f=a.datepicker.parseDate("yy-mm-dd",d)}catch(g){f=!1}f?p(a(b),f):a.prop(b,"value",d)}}}}if(!j.range||h.replaceUI)l.range=function(c){if(a.fn.slider){var b=
a('');this.common(c,b,l.range.attrs);c.bind("updateshadowdom",function(){c.css({display:""});if(c[0].offsetWidth||c[0].offsetHeight){var a=i(c);a.css&&(b.css(a.css),a.outerWidth&&b.outerWidth(a.outerWidth))}c.css({display:"none"})}).triggerHandler("updateshadowdom");b.slider(a.extend(!0,{},h.slider,c.data("slider"))).bind("slide",function(a,b){if(a.originalEvent)l.range.blockAttr=!0,c.prop("value",b.value),
l.range.blockAttr=!1,g(c[0],"input"),g(c[0],"change")});["disabled","min","max","step","value"].forEach(function(b){var e=c.prop(b),d;"value"==b&&!e&&(d=c.getShadowElement())&&(e=(a(d).slider("option","max")-a(d).slider("option","min"))/2);null!=e&&c.prop(b,e)})}},l.range.attrs={disabled:function(c,b,d){d=!!d;a(b).slider("option","disabled",d);a("span",b).attr({"aria-disabled":d+"",tabindex:d?"-1":"0"})},min:function(b,e,d){d=d?1*d||0:0;a(e).slider("option","min",d);a("span",e).attr({"aria-valuemin":d})},
max:function(b,e,d){d=d||0===d?1*d||100:100;a(e).slider("option","max",d);a("span",e).attr({"aria-valuemax":d})},value:function(b,e,d){d=a(b).prop("valueAsNumber");isNaN(d)||(l.range.blockAttr||a(e).slider("option","value",d),a("span",e).attr({"aria-valuenow":d,"aria-valuetext":d}))},step:function(b,e,d){d=d&&a.trim(d)?1*d||1:1;a(e).slider("option","step",d)}};if(!b.bugs.valueAsNumberSet&&(h.replaceUI||!Modernizr.inputtypes.date||!Modernizr.inputtypes.range))j=function(){b.data(this,"hasShadow")&&
a.prop(this,"value",a.prop(this,"value"))},b.onNodeNamesPropertyModify("input","valueAsNumber",j),b.onNodeNamesPropertyModify("input","valueAsDate",j);a.each("disabled,min,max,value,step,data-placeholder".split(","),function(a,e){b.onNodeNamesPropertyModify("input",e,function(a){var c=b.data(this,"shadowData");if(c&&c.data&&c.data[e]&&c.nativeElement===this)c.data[e](this,c.shadowElement,a)})});if(!h.availabeLangs)h.availabeLangs="af ar ar-DZ az bg bs ca cs da de el en-AU en-GB en-NZ eo es et eu fa fi fo fr fr-CH gl he hr hu hy id is it ja ko kz lt lv ml ms nl no pl pt-BR rm ro ru sk sl sq sr sr-SR sv ta th tr uk vi zh-CN zh-HK zh-TW".split(" ");
j=function(){a.datepicker&&(b.activeLang({langObj:a.datepicker.regional,module:"form-number-date-ui",callback:function(b){b=a.extend({},n,b,h.datepicker);b.dateFormat&&h.datepicker.dateFormat!=b.dateFormat&&a("input.hasDatepicker").filter(".input-date, .input-datetime-local-date").datepicker("option","dateFormat",b.dateFormat).getNativeElement().filter("[data-placeholder]").attr("data-placeholder",function(a,b){return b});a.datepicker.setDefaults(b)}}),a(m).unbind("jquery-uiReady.langchange input-widgetsReady.langchange"))};
a(m).bind("jquery-uiReady.langchange input-widgetsReady.langchange",j);j();(function(){var c=function(){var b={};return function(c){return c in b?b[c]:b[c]=a('')[0].type===c}}();if(!c("number")){var e=b.cfg["forms-ext"],d=b.inputTypes,f=function(c,e,f){f=f||{};if(!("type"in f))f.type=a.prop(c,"type");if(!("step"in f))f.step=b.getStep(c,f.type);if(!("valueAsNumber"in f))f.valueAsNumber=d[f.type].asNumber(a.prop(c,"value"));var g="any"==f.step?d[f.type].step*d[f.type].stepScaleFactor:
f.step;b.addMinMaxNumberToCache("min",a(c),f);b.addMinMaxNumberToCache("max",a(c),f);if(isNaN(f.valueAsNumber))f.valueAsNumber=d[f.type].stepBase||0;if("any"!==f.step&&(c=Math.round(1E7*((f.valueAsNumber-(f.minAsnumber||0))%f.step))/1E7)&&Math.abs(c)!=f.step)f.valueAsNumber-=c;c=f.valueAsNumber+g*e;return c=!isNaN(f.minAsNumber)&&cf.maxAsNumber?f.valueAsNumber*e>
f.maxAsNumber?f.maxAsNumber:isNaN(f.minAsNumber)?f.valueAsNumber:f.minAsNumber:Math.round(1E7*c)/1E7};b.modules["form-number-date-ui"].getNextStep=f;var i=function(b,c,e){if(!b.disabled&&!b.readOnly&&!a(e).hasClass("step-controls")&&(a.prop(b,"value",d[c].numberToString(f(b,a(e).hasClass("step-up")?1:-1,{type:c}))),a(b).unbind("blur.stepeventshim"),g(b,"input"),m.activeElement)){if(m.activeElement!==b)try{b.focus()}catch(i){}setTimeout(function(){if(m.activeElement!==b)try{b.focus()}catch(c){}a(b).one("blur.stepeventshim",
function(){g(b,"change")})},0)}};if(e.stepArrows){var h={set:function(){var a=b.data(this,"step-controls");if(a)a[this.disabled||this.readonly?"addClass":"removeClass"]("disabled-step-control")}};b.onNodeNamesPropertyModify("input","disabled",h);b.onNodeNamesPropertyModify("input","readonly",a.extend({},h))}var l={38:1,40:-1};b.addReady(function(h,j){e.stepArrows&&a("input",h).add(j.filter("input")).each(function(){var h=a.prop(this,"type");if(d[h]&&d[h].asNumber&&e.stepArrows&&!(!0!==e.stepArrows&&
!e.stepArrows[h]||c(h)||a(j).hasClass("has-step-controls"))){var j=this,m=a('').insertAfter(j).bind("selectstart dragstart",function(){return!1}).bind("mousedown mousepress",function(a){i(j,h,a.target);return!1}).bind("mousepressstart mousepressend",function(b){a(b.target)["mousepressstart"==b.type?"addClass":"removeClass"]("mousepress-ui")}),n=function(b,c){if(!j.disabled&&!j.readOnly&&c)return a.prop(j,
"value",d[h].numberToString(f(j,c,{type:h}))),g(j,"input"),!1},o=a(j).addClass("has-step-controls").attr({readonly:j.readOnly,disabled:j.disabled,autocomplete:"off",role:"spinbutton"}).bind(a.browser.msie?"keydown":"keypress",function(b){if(!j.disabled&&!j.readOnly&&l[b.keyCode])return a.prop(j,"value",d[h].numberToString(f(j,l[b.keyCode],{type:h}))),g(j,"input"),!1});"number"==h&&o.bind("keypress",function(){return function(a){var b=String.fromCharCode(null==a.charCode?a.keyCode:a.charCode);return a.ctrlKey||
a.metaKey||" ">b||-1<"0123456789.".indexOf(b)}}());a.fn.mwheelIntent?o.add(m).bind("mwheelIntent",n):a.fn.mousewheel&&o.bind("focus",function(){o.add(m).unbind(".mwhellwebshims").bind("mousewheel.mwhellwebshims",n)}).bind("blur",function(){a(j).add(m).unbind(".mwhellwebshims")});b.data(j,"step-controls",m);if(e.calculateWidth){var p;o.bind("updateshadowdom",function(){if(!p&&(j.offsetWidth||j.offsetHeight))p=!0,r(o,m),m.css("marginTop",(o.outerHeight()-m.outerHeight())/2)}).triggerHandler("updateshadowdom")}}})})}})();
b.addReady(function(c,d){a(m).bind("jquery-uiReady.initinputui input-widgetsReady.initinputui",function(){if(a.datepicker||a.fn.slider){if(a.datepicker&&!n.dateFormat)n.dateFormat=a.datepicker._defaults.dateFormat;l(c,d)}a.datepicker&&a.fn.slider?a(m).unbind(".initinputui"):b.modules["input-widgets"].src||b.warn('jQuery UI Widget factory is already included, but not datepicker or slider. configure src of $.webshims.modules["input-widgets"].src')})})});