").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cc=a.document.documentElement;function dc(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cc;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cc})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=La(k.pixelPosition,function(a,c){return c?(c=Ja(a,b),Ha.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ec=a.jQuery,fc=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fc),b&&a.jQuery===m&&(a.jQuery=ec),m},typeof b===K&&(a.jQuery=a.$=m),m});!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.Spinner=b()}(this,function(){"use strict";function a(a,b){var c,d=document.createElement(a||"div");for(c in b)d[c]=b[c];
return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=Math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexOf("Animation")).toLowerCase(),i=h&&"-"+h+"-"||"";return l[e]||(m.insertRule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",m.cssRules.length),l[e]=1),e}function d(a,b){var c,d,e=a.style;for(b=b.charAt(0).toUpperCase()+b.slice(1),d=0;d
',c)}m.addRule(".spin-vml","behavior:url(#default#VML)"),h.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function h(a,h,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~h}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.width,left:d.radius,top:-d.width>>1,filter:i}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.length+d.width,k=2*j,l=2*-(d.width+d.length)+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)h(i,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)h(i);return b(a,m)},h.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d>1)+"px"})}for(var i,k=0,l=(f.lines-1)*(1-f.direction)/2;k"+data.errors[i]+"")}$errors.show();enable_form()}}).fail(function(){$errorlist.append("An unknown error occurred. Please try again later");$errors.show();enable_form()});function disable_form(){$self.addClass("loading");$self.find("input,select").prop("disabled",true);$submitbutton.addClass("insensitive");spinner.spin($spinnerTarget.show()[0])}function enable_form(){$self.removeClass("loading");$self.find("input,select").prop("disabled",false);$submitbutton.removeClass("insensitive");spinner.stop();$spinnerTarget.hide()}})});if(typeof Mozilla==="undefined"){var Mozilla={}}(function(){"use strict";var Client={};Client._isFirefox=function(ua){ua=ua||navigator.userAgent;return/\s(Firefox|FxiOS)/.test(ua)&&!Client._isLikeFirefox(ua)};Client._isFirefoxDesktop=function(ua){ua=ua||navigator.userAgent;return/\sFirefox/.test(ua)&&!/Mobile|Tablet|Fennec/.test(ua)&&!Client._isLikeFirefox(ua)};Client._isFirefoxAndroid=function(ua){ua=ua||navigator.userAgent;return/\sFirefox/.test(ua)&&/Android/.test(ua)};Client._isFirefoxiOS=function(ua){ua=ua||navigator.userAgent;return/FxiOS/.test(ua)};Client._isFirefoxFxOS=function(ua,pf){ua=ua||navigator.userAgent;pf=pf===""?"":pf||navigator.platform;return/Firefox/.test(ua)&&pf===""};Client._isLikeFirefox=function(ua){ua=ua||navigator.userAgent;return/Iceweasel|IceCat|SeaMonkey|Camino|like\ Firefox/i.test(ua)};Client._getFirefoxVersion=function(ua){ua=ua||navigator.userAgent;var matches=/Firefox\/(\d+(?:\.\d+){1,2})/.exec(ua);return matches&&!Client._isLikeFirefox(ua)?matches[1]:"0"};Client._getFirefoxMajorVersion=function(ua){return parseInt(Client._getFirefoxVersion(ua),10)};Client._isFirefoxUpToDate=function(strict,isESR,userVer){strict=strict===undefined?true:strict;isESR=isESR===undefined?false:isESR;userVer=userVer===undefined?Client._getFirefoxVersion():userVer;var $html=$(document.documentElement);if(!$html.attr("data-esr-versions")||!$html.attr("data-latest-firefox")){return false}var versions=isESR?$html.attr("data-esr-versions").split(" "):[$html.attr("data-latest-firefox")];var userVerArr=userVer.match(/^(\d+(?:\.\d+){1,2})/)[1].split(".");var isUpToDate=false;versions.sort(function(a,b){return parseFloat(a)1||window.matchMedia&&window.matchMedia(media_query).matches}return Mozilla.ImageHelper.is_high_dpi};(function(){if($("#nav-main").length===0){return}var NavMain={};NavMain.isMSIEpre9=function(){return/MSIE\ (4|5|6|7|8)/.test(navigator.userAgent)}();NavMain.smallMode=false;NavMain.smallMenuOpen=false;NavMain.currentSmallSubmenu=null;NavMain.previousMenuItem=null;NavMain.currentSubmenuItem=null;NavMain.mainMenuItems=null;NavMain.mainMenuLinks=null;NavMain.toggleButton=null;NavMain.init=function(){NavMain.toggleButton=$("#masthead .toggle");NavMain.mainMenuItems=$("#nav-main .has-submenus > li");NavMain.mainMenuLinks=$('#nav-main ul > li > [tabindex="0"]');NavMain.mainMenuItems.bind("mouseover focusin",NavMain.handleFocusIn).bind("mouseout focusout",NavMain.handleFocusOut).each(NavMain.initSubmenu);if(!NavMain.isMSIEpre9){$(window).resize(NavMain.handleResize);NavMain.handleResize()}$("#masthead .toggle").click(function(e){e.preventDefault();NavMain.toggleSmallMenu()}).keydown(function(e){if(e.keyCode==13||e.keyCode==32){e.preventDefault();NavMain.toggleSmallMenu()}else if(e.keyCode==27&&NavMain.smallMenuOpen){NavMain.closeSmallMenu()}});if("ontouchstart"in window){NavMain.mainMenuLinks.click(function(e){e.preventDefault();this.focus()})}$("#footer-menu").attr("role","presentation")};NavMain.handleFocusIn=function(){var item=$(this);if(NavMain.previousMenuItem){if(NavMain.previousMenuItem.attr("id")!==item.attr("id")){NavMain.previousMenuItem.dequeue()}else{NavMain.previousMenuItem.clearQueue()}}item.addClass("hover").find('[aria-expanded="false"]').attr("aria-expanded","true")};NavMain.handleFocusOut=function(){NavMain.previousMenuItem=$(this);NavMain.previousMenuItem.delay(100).queue(function(){if(NavMain.previousMenuItem){NavMain.previousMenuItem.clearQueue().removeClass("hover").find('[aria-expanded="true"]').attr("aria-expanded","false");NavMain.previousMenuItem=null;if(NavMain.currentSubmenuItem){NavMain.currentSubmenuItem.get(0).blur()}}})};NavMain.initSubmenu=function(menu_idx){var menuItems=$(this).find("a");menuItems.mouseover(function(){this.focus()}).focus(function(){NavMain.currentSubmenuItem=$(this)}).each(function(item_idx){$(this).keydown(function(e){var target;switch(e.keyCode){case 27:NavMain.handleEscKeypress(e);break;case 33:case 36:target=menuItems.first();break;case 34:case 35:target=menuItems.last();break;case 38:target=item_idx>0?menuItems.eq(item_idx-1):menuItems.last();break;case 40:target=item_idx0?NavMain.mainMenuLinks.eq(menu_idx-1):NavMain.mainMenuLinks.last();break;case 39:target=menu_idx760&&NavMain.smallMode){NavMain.leaveSmallMode()}};NavMain.enterSmallMode=function(){NavMain.unlinkMainMenuItems();$("#nav-main-menu").css("display","none").attr("aria-hidden");$("#outer-wrapper").on("click.mobile-nav",NavMain.handleDocumentClick);$("a, input, textarea, button, :focus").on("focus.mobile-nav",NavMain.handleDocumentFocus);$("#nav-main-menu, #nav-main-menu .submenu").attr("aria-hidden","true");NavMain.mainMenuLinks.addClass("submenu-item").unbind("click",NavMain.handleSubmenuClick);NavMain.linkMenuHideOnClick();NavMain.smallMode=true};NavMain.leaveSmallMode=function(){NavMain.relinkMainMenuLinks();$("#nav-main-menu").css("display","").removeAttr("aria-hidden");$("#outer-wrapper").off("click.mobile-nav",NavMain.handleDocumentClick);$("a, input, textarea, button, :focus").off("focus.mobile-nav",NavMain.handleDocumentFocus);NavMain.toggleButton.removeClass("open").attr("aria-expanded",false);$("#nav-main-menu > li > .submenu").stop(true).css({left:"",top:"",display:"",opacity:"",height:"",marginTop:"",marginBottom:""}).attr("aria-expanded","false");NavMain.unlinkMenuHideOnClick();NavMain.currentSmallSubmenu=null;NavMain.smallMode=false;NavMain.smallMenuOpen=false};NavMain.linkMenuHideOnClick=function(){if(NavMain.mainMenuItems.length===0){$("#nav-main-menu > li > a").on("click.smallmode",function(){NavMain.closeSmallMenu()})}else{$(".submenu > li > a").on("click.smallmode",function(){NavMain.closeSmallMenu()})}};NavMain.unlinkMenuHideOnClick=function(){if(NavMain.mainMenuItems.length===0){$("#nav-main-menu > li > a").off("click.smallmode")}else{$(".submenu > li > a").off("click.smallmode")}};NavMain.unlinkMainMenuItems=function(){NavMain.mainMenuLinks.each(function(i,n){var node=$(n);if(node.siblings(".submenu")){node.attr("data-old-href",node.attr("href"));node.removeAttr("href")}})};NavMain.relinkMainMenuLinks=function(){NavMain.mainMenuLinks.each(function(i,n){var node=$(n);if(node.attr("data-old-href")){node.attr("href",node.attr("data-old-href"));node.removeAttr("data-old-href")}})};NavMain.handleDocumentClick=function(e){if(NavMain.smallMode){var $clicked=$(e.target);if(!$clicked.parents().is("#masthead")){NavMain.closeSmallMenu()}}};NavMain.handleDocumentFocus=function(e){var $focused=$(e.target);if(!$focused.parents().is("#masthead")){NavMain.closeSmallMenu()}};NavMain.handleToggleKeypress=function(e){if(e.keyCode==13){NavMain.toggleSmallMenu()}};NavMain.handleEscKeypress=function(e){if(e.keyCode==27&&NavMain.smallMenuOpen){NavMain.closeSmallMenu();NavMain.toggleButton.focus()}};NavMain.toggleSmallMenu=function(){if(NavMain.smallMenuOpen){NavMain.closeSmallMenu()}else{NavMain.openSmallMenu()}};NavMain.openSmallMenu=function(){if(NavMain.smallMenuOpen){return}$("#nav-main-menu").slideDown(150,function(){NavMain.toggleButton.addClass("open").attr("aria-expanded",true)}).removeAttr("aria-hidden");NavMain.mainMenuLinks.addClass("submenu-item").on("click",NavMain.handleSubmenuClick).on("keydown",NavMain.handleSubmenuKeypress);$("#nav-main-menu > li > a").on("keydown",NavMain.handleEscKeypress);NavMain.smallMenuOpen=true};NavMain.closeSmallMenu=function(){if(!NavMain.smallMenuOpen){return}$("#nav-main-menu, #nav-main-menu .submenu").slideUp(100,function(){NavMain.toggleButton.removeClass("open").attr("aria-expanded",false)}).attr("aria-hidden","true");NavMain.mainMenuLinks.addClass("submenu-item").off("click",NavMain.handleSubmenuClick).off("keydown",NavMain.handleSubmenuKeypress);$("#nav-main-menu > li > a").off("keydown",NavMain.handleEscKeypress);if(NavMain.currentSmallSubmenu){NavMain.closeSmallSubmenu(NavMain.currentSmallSubmenu)}NavMain.currentSmallSubmenu=null;NavMain.smallMenuOpen=false};NavMain.handleSubmenuClick=function(e){e.preventDefault();var menu=$(this).siblings(".submenu");NavMain.openSmallSubmenu(menu)};NavMain.handleSubmenuKeypress=function(e){if(e.keyCode==13||e.keyCode==32){e.preventDefault();var menu=$(this).siblings(".submenu");NavMain.openSmallSubmenu(menu)}};NavMain.openSmallSubmenu=function(menu){if(NavMain.currentSmallSubmenu&&NavMain.currentSmallSubmenu.get(0).id!==menu.get(0).id){NavMain.closeSmallSubmenu(NavMain.currentSmallSubmenu)}if(NavMain.currentSmallSubmenu&&NavMain.currentSmallSubmenu.get(0).id===menu.get(0).id){menu.find("a").get(0).focus();return}menu.stop(true).css({left:"80px",top:"auto",display:"none",opacity:"1",height:"auto",marginTop:"-8px",marginBottom:"0"}).slideDown(150).attr("aria-expanded","true");menu.find("a").get(0).focus();NavMain.currentSmallSubmenu=menu};NavMain.closeSmallSubmenu=function(menu){menu.stop(true).fadeOut(100,function(){menu.css({left:"",top:"",display:"",opacity:"",height:"",marginTop:"",marginBottom:""}).attr("aria-expanded","false")})};$(document).ready(NavMain.init)})();