!function(){var t=/^hsla\(\s*([\d]{1,3})\s*\,\s*([\d]{1,3})%\s*,\s*([\d]{1,3})%\s*\,\s*(1|0\.[\d]+)\s*\)$/i,e=/^rgba\(\s*([\d]{1,3})\s*\,\s*([\d]{1,3})\s*\,\s*([\d]{1,3})\s*\,\s*(1|0\.[\d]+)\s*\)$/i,r=/^rgb\(\s*([\d]{1,3})\s*\,\s*([\d]{1,3})\s*\,\s*([\d]{1,3})\s*\)$/i,i=/^#([\da-f])([\da-f])([\da-f])$/i,a=/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i;function s(t,e,r){function i(t,e,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t/=360,r/=100,e/=100){var a,s,n,o=r<.5?r*(1+e):r+e-r*e,l=2*r-o;a=i(l,o,t+1/3),s=i(l,o,t),n=i(l,o,t-1/3)}else a=s=n=r;return{r:Math.round(255*a),g:Math.round(255*s),b:Math.round(255*n)}}function n(t,e,r){var i,a,s=Math.max(t/=255,e/=255,r/=255),n=Math.min(t,e,r),o=(s+n)/2;if(s==n)i=0,a=0;else{var l=s-n;switch(a=o>.5?l/(2-s-n):l/(s+n),s){case t:i=(e-r)/l+(e<r?6:0);break;case e:i=(r-t)/l+2;break;case r:i=(t-e)/l+4}i/=6}return{h:i,s:a,l:o}}function o(t){this.h=0,this.s=0,this.l=0,this.a=1,this.strReadFormat=null,this.setFromString(t)}o.prototype.setFromString=function(s){if(!s||"null"==s)return this.strReadFormat="null",this.h=this.s=this.l=0,this.a=0,!1;if(s.match(t))return this.setHSLAFromString(s),!0;if(s.match(r)||s.match(e))return this.setRGBAFromString(s),!0;if(s.match(i)||s.match(a))return this.setHex(s),!0;let n=window.CSSColorNames.getHexForName(s);return!!n&&(this.setHex(n),!0)},o.prototype.getValue=function(){return"null"===this.strReadFormat?null:"rgba"===this.strReadFormat?this.getRGBAString():"hsla"===this.strReadFormat?this.getHSLAString():this.getHexString()},o.prototype.setHSLA=function(t,e,r,i){this.strReadFormat="hsla",this.h=t,this.s=e,this.l=r,this.a=i},o.prototype.setHSLAFromString=function(e){var r=t.exec(e);if(r)return this.strReadFormat="hsla",this.h=parseInt(r[1]),this.s=parseInt(r[2]),this.l=parseInt(r[3]),this.a=parseFloat(r[4]),!0},o.prototype.getHSLA=function(){return"null"===this.strReadFormat?null:{h:this.h,s:this.s,l:this.l,a:this.a}},o.prototype.getHSLAString=function(){return"null"===this.strReadFormat?null:"hsla("+Math.floor(this.h)+", "+Math.floor(this.s)+"%, "+Math.floor(this.l)+"%, "+this.a+")"},o.prototype.setRGBA=function(t,e,r,i){var a=n(t,e,r);this.strReadFormat="rgba",this.h=a.h,this.s=a.s,this.l=a.l,this.a=i},o.prototype.setRGBAFromString=function(t){t.match(/^rgba/i)?i=e.exec(t):(i=r.exec(t))[4]=1,this.strReadFormat="rgba";var i,a=n(i[1],i[2],i[3]);return this.h=360*a.h,this.s=100*a.s,this.l=100*a.l,this.a=i[4],!0},o.prototype.getRGBA=function(){if("null"===this.strReadFormat)return null;var t=s(this.h,this.s,this.l);return t.a=this.a,t},o.prototype.getRGBAString=function(){if("null"===this.strReadFormat)return null;var t=s(this.h,this.s,this.l);return 1===this.a?"rgb("+t.r+", "+t.g+", "+t.b+")":"rgba("+t.r+", "+t.g+", "+t.b+", "+this.a+")"},o.prototype.setHex=function(t){var e=4==t.length,r=e?i.exec(t):a.exec(t);if(!r)return!1;this.strReadFormat="hex";var s=n(parseInt(e?r[1]+r[1]:r[1],16),parseInt(e?r[2]+r[2]:r[2],16),parseInt(e?r[3]+r[3]:r[3],16));return this.h=360*s.h,this.s=100*s.s,this.l=100*s.l,this.a=1,!0},o.prototype.getHexString=function(){if("null"===this.strReadFormat)return null;var t=s(this.h,this.s,this.l);return 1!==this.a?"rgba("+Math.floor(t.r)+","+Math.floor(t.g)+","+Math.floor(t.b)+","+this.a+")":"#"+(16777216+(Math.floor(t.r)<<16)+(Math.floor(t.g)<<8)+Math.floor(t.b)).toString(16).slice(1)},o.prototype.getRelativeLuminance=function(){if("null"===this.strReadFormat)return null;var t=s(this.h,this.s,this.l),e=t.r/255,r=t.g/255,i=t.b/255;return(.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)))*100},o.prototype.hueShift=function(t){this.h=(this.h+t)%360},o.prototype.clone=function(){var t=new o;return t.h=this.h,t.s=this.s,t.l=this.l,t.a=this.a,t.strReadFormat=this.strReadFormat,t},o.prototype.createComplement=function(){if("null"===this.strReadFormat)return null;var t=this.clone();return t.hueShift(180),t},o.prototype.getComplimentaryTextColor=function(){return new o(this.getRelativeLuminance()>=50?"rgba(0,0,0,1)":"rgba(255,255,255,1)")},o.prototype.createGradient=function(){var t=(this.h-25+360)%360,e=Math.min(Math.max(this.s-20,50),100),r=Math.min(Math.max(this.l+10,0),100),i=new o;return i.setHSLA(t,e,r,1),{strStartColor:this.getRGBAString(),strEndColor:i.getRGBAString(),bLightFont:128>this.getRelativeLuminance()}},o.prototype.createAnalogousPallate=function(){let t={},e=this.clone();e.hueShift(-30);let r=this.clone();return r.hueShift(30),t.pPrimary=this,t.pSecondary=e,t.pTertiary=r,t},o.prototype.createTriadicPallate=function(){let t={},e=this.clone();e.hueShift(-120);let r=this.clone();return r.hueShift(120),t.pPrimary=this,t.pSecondary=e,t.pTertiary=r,t},o.prototype.createSplitComplementaryPallate=function(){let t={},e=this.clone();e.hueShift(-72);let r=this.clone();return r.hueShift(72),t.pPrimary=this,t.pSecondary=e,t.pTertiary=r,t},window.Color=o}(),function(){let t={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};window.CSSColorNames={getHexForName:function(e){return e&&t[e.toLowerCase()]||null}}}();
!function(){let t={LIST_ITEM_OPEN:"s8-navigationPrimaryLI-open",MOBILE_CLOSE_SHOW:"s8-navigationPrimary__mobileCloseButton--show",DISPLAY_STATE_MOBILE:"s8-navigationPrimary--displayStateMobile",DISPLAY_STATE_MOBILE_IS_OPEN:"s8-navigationPrimary--displayStateMobile-open"};function e(t,e){this.config={bOpenOnHover:e.bOpenOnHover,strOrientation:e.strOrientation,bPreventWrap:e.bPreventWrap,pMobileMediaQuery:window.matchMedia(`(max-width: ${parseInt(e.iMobileBreakPoint)}px)`)},this.classlicurrent=e.classlicurrent||"active",this.pNavList=new i(t),this.nMobileMenuUL=this.pNavList.getListNode().previousElementSibling,this.mouseoutCloseTimer=null,this.mobileMenuCloseTimer=null,this.init()}function i(t){this.nList=t,this.arrListItems=[],this.init()}function n(t){this.nListItem=t,t._pListItem=this,this.nLink=t.querySelector("a"),this.pSubNavList=null,this.init()}window.PrimaryNavigation=e,e.prototype={init:function(){let t=this.pNavList.getListNode();this.nMobileCloseButton=document.createElement("div"),this.nMobileCloseButton.classList.add("s8-navigationPrimary__mobileCloseButton"),this.nMobileCloseButton.setAttribute("tabindex","0"),t.parentElement.appendChild(this.nMobileCloseButton),this._fixColors(),this._bindInteractions();let e=null;"function"==typeof Event?e=new Event("initialised"):(e=document.createEvent("Event")).initEvent("initialised",!0,!0),t.dispatchEvent(e)},_bindInteractions:function(){for(let t=0,e=Object.keys(this.interactions);t<e.length;t++){let i=e[t],n=this.interactions[i];n.eventTriggers.forEach((function(t){if(t.triggerShouldApply&&!t.triggerShouldApply.call(this))return;let e=t.eventNames;if(!e||!e.length)return;let i=t.getBindTarget.call(this),s=(function(e){t.processEvent?t.processEvent.call(this,e)&&n.handler.call(this,e):n.handler.call(this,e)}).bind(this);for(let n=0;n<e.length;n++)i.addEventListener(e[n],s,t.options)}).bind(this))}},interactions:{preventFirstClick:{handler:function(t){let e=this.pNavList.getClosestListItemToEvent(t);if(e&&!e.isOpen()){let t=(function(e){e.preventDefault();try{let t=new Event("focus");e.target.dispatchEvent(t)}catch(t){}this.pNavList.getListNode().removeEventListener("click",t)}).bind(this);this.pNavList.getListNode().addEventListener("click",t)}},eventTriggers:[{eventNames:["mousedown"],getBindTarget:function(){return this.pNavList.getListNode()},processEvent:function(t){return!this.config.bOpenOnHover||this.pNavList.inMobileDisplay()},options:{capture:!0,passive:!0}},{eventNames:["touchstart"],getBindTarget:function(){return this.pNavList.getListNode()},options:{capture:!0,passive:!0}}]},openListItemTree:{handler:function(t){this.pNavList.openListItemTree(this.pNavList.getClosestListItemToEvent(t))},eventTriggers:[{eventNames:["focus"],getBindTarget:function(){return this.pNavList.getListNode()},processEvent:function(t){let e=this.pNavList.getClosestListItemToEvent(t);if(e)return!(this.pNavList.inMobileDisplay()&&e.isOpen())},options:{capture:!0}},{eventNames:["mouseover","mouseenter"],getBindTarget:function(){return this.pNavList.getListNode()},triggerShouldApply:function(){return this.config.bOpenOnHover},processEvent:function(t){return!this.pNavList.inMobileDisplay()&&(this.mouseoutCloseTimer=clearTimeout(this.mouseoutCloseTimer),!0)}}]},closeAllListItems:{handler:function(){this.pNavList.closeAll()},eventTriggers:[{eventNames:["ajaxNavigate"],getBindTarget:function(){return window}},{eventNames:["mousedown"],getBindTarget:function(){return document},triggerShouldApply:function(){return!this.config.bOpenOnHover},processEvent:function(t){return!this.pNavList.getClosestListItemToEvent(t)}},{eventNames:["mouseout"],getBindTarget:function(){return this.pNavList.getListNode()},triggerShouldApply:function(){return this.config.bOpenOnHover},processEvent:function(t){return!this.pNavList.inMobileDisplay()&&(!this.pNavList.hasOpenListItems()||(this.mouseoutCloseTimer=setTimeout((function(){this.pNavList.closeAll()}).bind(this),500),!1))}}]},openMobileMenu:{handler:function(e){document.body.addEventListener("touchmove",this._disableScroll);let i=window.getComputedStyle(document.body);this._oldBodyMarginRight=i.marginRight,document.body.style.marginRight=parseFloat(this._oldBodyMarginRight)+window.innerWidth-document.documentElement.clientWidth+"px",document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",e.preventDefault(),this.nMobileMenuUL.classList.add(t.DISPLAY_STATE_MOBILE_IS_OPEN),this.pNavList.getListNode().classList.add(t.DISPLAY_STATE_MOBILE_IS_OPEN),this.nMobileCloseButton.classList.add(t.MOBILE_CLOSE_SHOW)},eventTriggers:[{eventNames:["click"],getBindTarget:function(){return this.nMobileMenuUL},options:{capture:!0}}]},closeMobileMenu:{handler:function(e){document.body.removeEventListener("touchmove",this._disableScroll),document.body.style.marginRight=this._oldBodyMarginRight,document.body.style.overflow="",document.documentElement.style.overflow="",this.nMobileMenuUL.classList.remove(t.DISPLAY_STATE_MOBILE_IS_OPEN),this.nMobileCloseButton.classList.remove(t.MOBILE_CLOSE_SHOW),this.pNavList.getListNode().classList.remove(t.DISPLAY_STATE_MOBILE_IS_OPEN),this.pNavList.closeAll()},eventTriggers:[{eventNames:["click"],getBindTarget:function(){return this.nMobileCloseButton},processEvent:function(t){return t.preventDefault(),!0}},{eventNames:["ajaxNavigate"],getBindTarget:function(){return window}},{eventNames:["click"],getBindTarget:function(){return this.pNavList.getListNode()},processEvent:function(t){if(!this.config.pMobileMediaQuery.matches)return!1;let e=this.pNavList.getClosestListItemToEvent(t);return!!e&&!!e.nLink.hash}},{eventNames:["resize"],getBindTarget:function(){return window},options:{passive:!0},triggerShouldApply:function(){return"horizontal"==this.config.strOrientation},processEvent:function(t){return!this.config.pMobileMediaQuery.matches}}]},showHideMobileMenu:{handler:function(e){this.pNavList.getListNode().classList.remove(t.DISPLAY_STATE_MOBILE),this.nMobileMenuUL.classList.remove(t.DISPLAY_STATE_MOBILE);let i=this.config.pMobileMediaQuery.matches,n=this.config.bPreventWrap&&this._widthIsTooSmallForListItems();i||n?(this.pNavList.getListNode().classList.add(t.DISPLAY_STATE_MOBILE),this.nMobileMenuUL.classList.add(t.DISPLAY_STATE_MOBILE)):this.interactions.closeMobileMenu.handler.call(this,e)},eventTriggers:[{eventNames:["resize","DOMContentLoaded"],getBindTarget:function(){return window},options:{passive:!0},triggerShouldApply:function(){return"horizontal"==this.config.strOrientation}},{eventNames:["initialised"],getBindTarget:function(){return this.pNavList.getListNode()},options:{passive:!0},triggerShouldApply:function(){return"horizontal"==this.config.strOrientation}},{eventNames:["visibilitychange"],getBindTarget:function(){return document},processEvent:function(t){return"visible"===document.visibilityState}}]},removeHiddenState:{handler:function(e){this.pNavList.getListNode().classList.remove(t.LIST_HIDDEN)},eventTriggers:[{eventNames:["initialised"],getBindTarget:function(){return this.pNavList.getListNode()},options:{passive:!0}}]},setActiveLinkOnAjaxNavigation:{handler:function(){let t=window.location.pathname,e=this.pNavList.getLinkByHref(t);e&&this.pNavList.setActiveLink(e,this.classlicurrent)},eventTriggers:[{eventNames:["ajaxNavigate"],getBindTarget:function(){return window}}]}},_disableScroll:function(t){t.preventDefault()},_fixColors:function(){let t=this.pNavList.getListNode(),e=window.getComputedStyle(t);("rgba(0, 0, 0, 0)"===e.backgroundColor||"transparent"===e.backgroundColor)&&(new Color(e.color).getRelativeLuminance()>50?t.classList.add("s8-navigationPrimary--fallback-bg-black"):t.classList.add("s8-navigationPrimary--fallback-bg-white"));let i=t.querySelector("ul");if(i){let e=window.getComputedStyle(i);("rgba(0, 0, 0, 0)"===e.backgroundColor||"transparent"===e.backgroundColor)&&(new Color(e.color).getRelativeLuminance()>50?t.classList.add("s8-navigationPrimary--fallback-submenus-bg-black"):t.classList.add("s8-navigationPrimary--fallback-submenus-bg-white"))}},_widthIsTooSmallForListItems:function(){let t=this.pNavList.getListNode();return t.scrollWidth>t.clientWidth}},i.prototype={init:function(){for(let t=0;t<this.nList.childNodes.length;t++){let e=this.nList.childNodes[t];"LI"===e.nodeName&&this.arrListItems.push(new n(e))}},getListNode:function(){return this.nList},getClosestListItemToEvent:function(t){let e=t.target;for(;e;){if(e._pListItem)return e._pListItem;e=e.parentNode}return null},openListItemTree:function(t){t&&this.arrListItems.forEach(function(e){e.contains(t)?(e.open(),e.pSubNavList&&e.pSubNavList.openListItemTree(t)):e.close()})},closeAll:function(){this.arrListItems.forEach(function(t){t.close()})},hasOpenListItems:function(){return this.arrListItems.some(function(t){return t.isOpen()||!!t.pSubNavList&&t.pSubNavList.hasOpenListItems()})},getLinkByHref:function(t){let e=null;if(this.arrListItems.some(function(i){return e=i.getLinkByHref(t)}),!e){let i=t.split("/").filter(Boolean);for(;!e&&i.length>0;){i.pop();let t="/"+i.join("/")+"/";this.arrListItems.some(function(i){return e=i.getLinkByHref(t)})}}return e},setActiveLink:function(t,e){this.arrListItems.forEach(function(i){i.nLink===t||i.pSubNavList&&i.pSubNavList.getLinkByHref(t.href)?i.setActive(!0,e):i.setActive(!1,e)})},inMobileDisplay:function(){return this.nList.classList.contains(t.DISPLAY_STATE_MOBILE)}},n.prototype={init:function(){let t=this.nListItem.querySelector("ul");t&&(this.pSubNavList=new i(t))},open:function(){this.isOpen()||this.nListItem.classList.add(t.LIST_ITEM_OPEN)},close:function(){this.isOpen()&&this.nListItem.classList.remove(t.LIST_ITEM_OPEN),this.pSubNavList&&this.pSubNavList.closeAll()},isOpen:function(){return!this.pSubNavList||this.nListItem.classList.contains(t.LIST_ITEM_OPEN)},contains:function(t){return this.nListItem.contains(t.nListItem)},setActive:function(t,e){this.nListItem.classList[t?"add":"remove"](e),this.pSubNavList&&this.pSubNavList.arrListItems.forEach(function(i){i.setActive(t,e)})},getLinkByHref:function(t){return new window.URL(this.nLink.href).pathname===t||this.nLink.href===t?this.nLink:this.pSubNavList?this.pSubNavList.getLinkByHref(t):null}}}();
function deepExtend(r){r=r||{};for(var e=arguments.length,n=1;n<e;n++){var t=arguments[n];if(t)for(var a in t)Object.hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r}
function getClosest(e,n){for(n=n.toUpperCase();e;){if(e.nodeName===n)return e;e=e.parentNode}return null}
function httpBuildQuery(n){var r=[];for(var t in n){var o=function n(r,t,o){null===t&&(t=""),!0===t?t="1":!1===t&&(t="0");var u=typeof t;if("function"===u)return"";if("object"===u){var e=[];for(let u in t)e.push(n(r+"["+u+"]",t[u],o));return e.join("&")}return r+"="+encodeURIComponent(t)}(t,n[t],r);""!==o&&r.push(o)}return r.join("&")}
function triggerEventCrossBrowser(e,n){var t;return"function"==typeof window.Event?t=new Event(n,{bubbles:!0,cancelable:!0}):(t=document.createEvent("Event")).initEvent(n,!0,!0,!0),e.dispatchEvent(t)}
function ajaxRequest(e){if(e.onTrigger&&("string"==typeof e.onTrigger&&(e.onTrigger=Function(e.onTrigger)),!1===e.onTrigger()))return;var a=e._GET||{},t=e._POST||{};if(e.ajaxparams&&deepExtend(a,e.ajaxparams),e.dataIncludeJS){var n="";"undefined"!=typeof g_arrLoadedJavaScript&&(n=g_arrLoadedJavaScript.join("|")),t._ajaxjs=n}if(e.dataIncludeCSS){let e="";"undefined"!=typeof g_arrLoadedCSS&&(e=g_arrLoadedCSS.join("|")),t._ajaxcss=e}if(e.dataIncludeURL&&!t._ajaxurl){var o=location.href;o=(o=o.substring(o.indexOf("//")+2)).substring(o.indexOf("/")),t._ajaxurl=o}let r=[];if(!1!==e.alwaysPost){let e=document.getElementsByClassName("alwayspost");for(let a=0;a<e.length;a++){let n=e[a],o=n.getAttribute("name"),s=n.form;o&&("radio"!=n.type&&"checkbox"!=n.type||n.checked)&&(s&&-1===r.indexOf(s)&&(triggerEventCrossBrowser(s,"updatevalues"),r.push(s)),"[]"===o.substr(o.length-2)?(void 0===t[o=o.substr(0,o.length-2)]&&(t[o]=[]),t[o].push(n.value)):void 0===t[o]&&(t[o]=n.value))}}if(e.dataIncludeState){var s=e.dataIncludeState;s.data&&s.data("ajaxparams")&&deepExtend(t,s.data("ajaxparams"));var i=getClosest(s,"form");if(i){if(i.getAttribute("action")){var d=document.createElement("div");d.innerHTML=i.getAttribute("action"),t._ajaxurl=d.textContent}else t._ajaxurl||(e.dataIncludeURL=!0);-1===r.indexOf(i)&&triggerEventCrossBrowser(i,"updatevalues");var l=new FormData(i);for(var u in t)!function e(a,t,n){if(t instanceof Array)for(let o=0;o<t.length;o++)e(a+"[]",t[o],n);else if(t instanceof Object)for(let o in t)e(a+"["+o+"]",t[o],n);else n.has(a)&&-1!==a.indexOf("[")?n.append(a,t):n.set(a,t)}(u,t[u],l);t=l}}e.method?e.method=e.method.toUpperCase():e.method="POST","POST"!==e.method&&deepExtend(a,t),(a=httpBuildQuery(a))&&(-1===e.url.indexOf("?")?e.url+="?":"&"!==e.url.substr(-1)&&(e.url+="&"),e.url+=a);let c=new XMLHttpRequest;c.bHasFiredBeforeLoadEvent=!1,c.open(e.method,e.url,void 0===e.async||e.async),c.setRequestHeader("x-requested-with","XMLHttpRequest");let g="",x=0,f=0;function p(){if(!e.precacheOnly){if(!c.bHasFiredBeforeLoadEvent&&c.response.length&&-1!==c.response.indexOf("\n\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\n\n")&&(triggerEventCrossBrowser(window,"loadajaxbeforesuccess"),e.beforeSuccess&&e.beforeSuccess(),c.bHasFiredBeforeLoadEvent=!0),e.evalChunkedResponse){let e=c.response;g+=e.substr(x),x=e.length,f+=ajaxEvalChunkedResponse(g.substr(f))}if(4===c.readyState){let a=function(){e.success&&!c.successHandlerCalled&&(c.successHandlerCalled=!0,e.success(c.response)),e.onSuccessEval&&Function(e.onSuccessEval)(c.response)};!e.evalChunkedResponse&&(e.evalResponse||void 0===e.evalResponse)?ajaxEvalResponse(c.response,a):a()}}}return c.addEventListener("progress",p),c.onload=function(){c.status>=200&&c.status<400?(p(),triggerEventCrossBrowser(window,"loadajax")):e.error&&e.error(c.responseText,c.status,e),ajaxPop(c)},c.onerror=function(){e.error&&e.error(c.responseText,c.status,e),ajaxPop(c)},e.abort&&(c.onabort=e.abort),"GET"===e.method?c.send():(t instanceof FormData||(c.setRequestHeader("Content-type","application/x-www-form-urlencoded"),t=httpBuildQuery(t)),c.send(t)),c.executePrecachedResult=function(){e.precacheOnly=!1,p()},c._showLoading=e.showLoading,g_arrAjaxRequests.push(c),e.showLoading&&ajaxShowLoading(e.showLoadingMessage),c}function ajaxAbort(e){e.abort(),ajaxPop(e)}function ajaxPop(e){var a=g_arrAjaxRequests.length;if(a>1){for(var t=0;t<a;t++)if(g_arrAjaxRequests[t]===e){g_arrAjaxRequests.splice(t,1);break}}else g_arrAjaxRequests=[];g_arrAjaxRequests.length||triggerAjaxDone();let n=!0;for(var t=0;t<g_arrAjaxRequests.length;t++)g_arrAjaxRequests._showLoading&&(n=!1);n&&ajaxHideLoading()}function ajaxAbortAll(){for(var e=0;e<g_arrAjaxRequests.length;e++)g_arrAjaxRequests[e].abort();g_arrAjaxRequests=[],ajaxHideLoading(),triggerAjaxDone()}function ajaxShowLoading(e){ajaxLoadingTimeout||(ajaxLoadingHideTimeout&&(clearTimeout(ajaxLoadingHideTimeout),ajaxLoadingHideTimeout=null),ajaxLoadingTimeout=setTimeout(function(){var a=document.getElementById("ajaxLoading");a&&a.parentNode.removeChild(a),(a=document.createElement("div")).id="ajaxLoading",e&&(a.innerHTML='<div class="ajaxLoadingMessage">'+e+"</div>"),document.body.appendChild(a),a.classList.add("ajaxLoadingShow"),ajaxLoadingTimeout=null},400))}function ajaxHideLoading(){ajaxLoadingTimeout&&(clearTimeout(ajaxLoadingTimeout),ajaxLoadingTimeout=null);var e=document.getElementById("ajaxLoading");e&&(e.classList.add("ajaxLoadingHide"),ajaxLoadingHideTimeout&&clearTimeout(ajaxLoadingHideTimeout),ajaxLoadingHideTimeout=setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},500))}function ajaxEvalChunkedResponse(e){let a=0,t=[],n="\n\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\n\n",o=e.indexOf(n),r=0;for(;-1!==o;){let s=e.indexOf("\n"),i=e.substr(0,s),d=e.substr(s+1,o-s-1);if("js"==i)a?t.push(d):ajaxEvalResponse(d);else if("css"==i){let e=document.createElement("style");e.styleSheet?e.styleSheet.cssText=d:e.appendChild(document.createTextNode(d)),document.getElementsByTagName("head")[0].appendChild(e)}else if("cssRemote"==i){let e=JSON.parse(d);for(let a=0;a<e.length;a++){let t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e[a]),t.addEventListener("load",function(){triggerEventCrossBrowser(window,"loadajaxcss")}),document.getElementsByTagName("head")[0].appendChild(t)}}else if("jsRemote"==i){let e=JSON.parse(d);for(let n=0;n<e.length;n++){a++;let o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");r.onload=function(){if(!--a){for(let e=0;e<t.length;e++)ajaxEvalResponse(t[e]);t=[]}},r.onerror=r.onload,r.setAttribute("src",e[n]),o.appendChild(r)}}r+=o+n.length,o=(e=e.substr(o+n.length)).indexOf(n)}return r}function ajaxEvalResponse(e){if(e)try{window.execScript?window.execScript(e):eval.call(window,e)}catch(a){window.console&&window.console.error&&(console.error(e),console.log(a))}}function triggerAjaxDone(){for(let e in g_arrOnAJAXDone)g_arrOnAJAXDone[e]();g_arrOnAJAXDone=[]}window.ajaxLoadingTimeout=window.ajaxLoadingTimeout||null,window.ajaxLoadingHideTimeout=window.ajaxLoadingHideTimeout||null,window.g_arrAjaxRequests=window.g_arrAjaxRequests||[],window.g_arrOnAJAXDone=window.g_arrOnAJAXDone||[];
let g_arrDialogBoxes,g_iDialogBoxZIndex;function DialogBox(e){this.id=e.id,this.senderId=e.senderId,this.width=e.width,this.noajax=e.noajax,this.closable=e.closable,this.onAjaxComplete=e.onAjaxComplete,this.backdrop=e.backdrop,this._GET=e._GET,this.m_arrAJAXCache={},g_arrDialogBoxes[this.id]=this}g_arrDialogBoxes||(g_arrDialogBoxes={},g_iDialogBoxZIndex=100),DialogBox.prototype.open=function(e){for(let o in e)this[o]=e[o];let o=this,t=document.getElementById(this.id);if(!t)return;t._dialogTableRow&&t._dialogTableRow.classList.remove("tableRow-active");let i=document.getElementById(this.id+"_opened");if(i&&i.classList.add("alwayspost"),this.backdrop&&(!t.previousSibling||"dialogboxoverlay"!==t.previousSibling.nodeName.toLowerCase())){let e=document.createElement("dialogboxoverlay");e.style.zIndex=g_iDialogBoxZIndex,t.parentNode.insertBefore(e,t),e.classList.remove("dialogBoxClose"),e.classList.add("dialogBoxOpen"),o.closable&&e.addEventListener("click",function(){let e=t.getElementsByTagName("form");for(let o=0;o<e.length;o++){let t=e[o].getAttribute("id");if(t&&g_arrForms&&g_arrForms[t]&&g_arrForms[t].isModified())return}o.fnOnClose&&o.fnOnClose(),o.close()})}else{let e=t.previousSibling;e.style.zIndex=g_iDialogBoxZIndex,e.classList.remove("dialogBoxClose"),e.closeTimeout&&clearTimeout(e.closeTimeout)}function a(){requestAnimationFrame(function(){o.width&&"auto"!==o.width&&(!isNaN(parseFloat(o.width))&&isFinite(o.width)&&(o.width+="px"),t.style.width=o.width),t.classList.remove("dialogBoxClose"),t.style.display="block",t.classList.add("dialogBoxOpen"),t.classList.contains("dialogBoxFullScreen")&&t.classList.remove("dialogBoxFullScreen"),t.offsetWidth>window.innerWidth-100&&t.offsetHeight>window.innerHeight-100&&t.classList.add("dialogBoxFullScreen");let e=void 0!==window.scrollY?window.scrollY:document.documentElement.scrollTop,i=Math.round(window.innerHeight/2.5-t.offsetHeight/2.5);if(i+=e,i=Math.max(e,i),t.style.top=i+"px","auto"===o.width&&(t.style.width="auto",t.style.left="auto",t.style.right="auto",t.style.left=window.innerWidth/2-t.offsetWidth/2+"px"),o.closable){t.addEventListener("keydown",function(e){27===e.keyCode&&(o.fnOnClose&&o.fnOnClose(),o.close())});let e=document.createElement("dialogboxclose");t.appendChild(e),e.addEventListener("click",function(){o.fnOnClose&&o.fnOnClose(),o.close()})}triggerEventCrossBrowser(window,"dialogboxopen")})}if(void 0!==this.noajax&&this.noajax)a();else{let e=null;this._GET&&(e=this._GET);let t=null;this.nSender&&(t=this.nSender),this.ajax(this.ajaxparams,e,function(){a(),o.onAjaxComplete&&setTimeout(function(){o.onAjaxComplete()},0)},t)}if(this.nSender){let e=this.nSender;for(;e=e.parentElement;)if(e.classList.contains("tableRow")){e.classList.add("tableRow-active"),t._dialogTableRow=e;break}if(this.nSender.parentNode&&this.nSender.parentNode.parentNode&&this.nSender.parentNode.parentNode._contextMenuTableRow){let e=this.nSender.parentNode.parentNode._contextMenuTableRow;e.classList.add("tableRow-active"),t._dialogTableRow=e}}t.style.zIndex=g_iDialogBoxZIndex+1,g_iDialogBoxZIndex+=2},DialogBox.prototype.close=function(){this.noajax=!1;let e=document.getElementById(this.id);if(!e||!e.classList.contains("dialogBoxOpen"))return;e.classList.remove("dialogBoxOpen"),e.classList.remove("dialogBoxFullScreen"),e.classList.add("dialogBoxClose");let o=document.getElementById(this.id+"_opened");o&&o.classList.remove("alwayspost");let t=e.previousSibling;t&&"dialogboxoverlay"===t.nodeName.toLowerCase()&&(t.classList.add("dialogBoxClose"),t.closeTimeout=setTimeout(function(){t.classList.remove("dialogBoxOpen"),t.parentNode&&t.parentNode.removeChild(t)},100)),setTimeout(function(){e.style.display="",e.innerHTML=""},100),triggerEventCrossBrowser(e,"close"),e._dialogTableRow&&e._dialogTableRow.classList.remove("tableRow-active"),g_iDialogBoxZIndex-=2},DialogBox.prototype.generateCacheKey=function(e,o){let t=this.id;return e&&(t+=httpBuildQuery(e)),o&&(t+=httpBuildQuery(o)),t},DialogBox.prototype.ajax=function(e,o,t,i){let a=this.generateCacheKey(e,o);if(this.m_arrAJAXCache[a]){t&&this.m_arrAJAXCache[a].result?(ajaxEvalChunkedResponse(this.m_arrAJAXCache[a].result),t(this.m_arrAJAXCache[a].result),delete this.m_arrAJAXCache[a],requestAnimationFrame(()=>{document.body.querySelector("#"+this.id+" *[autofocus]")?.focus()})):this.m_arrAJAXCache[a].fnSuccess=t;return}let l={};l.type="POST",l.url="/_public/Controls/Forms/DialogBox/dialogbox.php",l.dataIncludeURL=!0,l.dataIncludeJS=!0,l.dataIncludeCSS=!0,l.dataIncludeState=!0,l.evalResponse=!1,i&&(l.dataIncludeState=i),o&&(l._GET=o),l._POST={},l._POST.dialogid=this.id,l.ajaxparams=e;let s=this;l.success=function(e){s.m_arrAJAXCache[a]&&(s.m_arrAJAXCache[a].fnSuccess?(ajaxEvalChunkedResponse(e),s.m_arrAJAXCache[a].fnSuccess(e),delete s.m_arrAJAXCache[a],requestAnimationFrame(()=>{document.body.querySelector("#"+this.id+" *[autofocus]")?.focus()})):s.m_arrAJAXCache[a].result=e)},this.m_arrAJAXCache[a]={result:null,fnSuccess:t},ajaxRequest(l)},DialogBox.get=function(e){return g_arrDialogBoxes[e]},DialogBox.open=function(e,o){if(!g_arrDialogBoxes[e])throw"Could not find dialog box with id "+e;g_arrDialogBoxes[e].open(o)},DialogBox.cache=function(e,o,t){if(!g_arrDialogBoxes[e])throw"Could not find dialog box with id "+e;g_arrDialogBoxes[e].ajax(null,o,null,t)},DialogBox.close=function(e){if(!g_arrDialogBoxes[e])throw"Could not find dialog box with id "+e;g_arrDialogBoxes[e].close()},DialogBox.closeClosest=function(e){let o=getClosest(e,"dialogbox");o&&DialogBox.close(o.getAttribute("id"))},DialogBox.isOpen=function(e){if(!g_arrDialogBoxes[e])return!1;let o=document.getElementById(e);return!!o&&o.classList.contains("dialogBoxOpen")},DialogBox.linkCache=function(e){let o=e.getAttribute("data-dialog");DialogBox.cache(o,JSON.parse(e.getAttribute("data-dialogget")),e)},DialogBox.linkOpen=function(e){let o=DialogBox.get(e.getAttribute("data-dialog"));return o._GET=JSON.parse(e.getAttribute("data-dialogget")),o.nSender=e,o.open(),!1},window.addEventListener("ajaxNavigate",function(){for(let e in g_arrDialogBoxes)g_arrDialogBoxes[e].close()});
!function(){let e=!1;function t(){if(e)return;e=!0;let t="sw="+screen.width+"&sh="+screen.height+"&ww="+(void 0!==window.innerHeight?window.innerHeight:document.documentElement.offsetHeight)+"&wh="+(void 0!==window.innerWidth?window.innerWidth:document.documentElement.offsetWidth)+"&dpr="+(void 0!==window.devicePixelRatio?window.devicePixelRatio:1);try{t+="&tzo="+encodeURIComponent(Intl.DateTimeFormat().resolvedOptions().timeZone)}catch(e){}fetch("/_public/Components/Website/t.php?"+t,{priority:"low"}).catch(e=>{})}document.onmousemove=t,document.onscroll=t,document.ontouchstart=t}();
(()=>{let e=Date.now();function t(){let t=Date.now();t-e<25e3||(fetch("/_public/Components/Website/_keepalive").catch(e=>{}),e=t)}document.addEventListener("mousemove",t),document.addEventListener("scroll",t),document.addEventListener("touchstart",t)})();
!function(){let e=/_\d*x\d*[ac]?\.[a-z]{3,5}$/,t=new MutationObserver(d),i="IntersectionObserver"in window?new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(o(e.target),i.unobserve(e.target))})},{root:null,rootMargin:"0px 0px 0px 0px",threshold:0}):null,n=[7056,16200,23256,32400,39456,46512,53568,64800,97200,129600,259200,388800,518400,648e3,777600,921600,2073600,3686400,8294400];function s(e){e._imageObserversBound||(e._imageObserversBound=!0,requestAnimationFrame(function(){t.observe(e,{attributes:!1,childList:!0,subtree:!0}),d([{type:"childList",addedNodes:e.body?e.body.childNodes:e.childNodes,removedNodes:[],target:e.body?e.body:e}])}))}function d(e){for(let t=0;t<e.length;t++){let n=e[t];n.addedNodes.length&&function e(t){for(let n=0;n<t.length;n++){let d=t[n];d.isConnected&&1==d.nodeType&&("IMG"==d.nodeName&&d.getAttribute("data-src")&&d.getAttribute("data-lazy")?i&&d.getAttribute("data-verylazy")?i.observe(d):o(d):d.childNodes&&d.childNodes.length&&e(d.childNodes),d.shadowRoot&&s(d.shadowRoot))}}(n.addedNodes)}}function o(t){requestAnimationFrame(function(){!function(t){if(!t.isConnected)return;let s=t.getAttribute("data-src");if(!e.test(s)){let e=t.getBoundingClientRect();if((!e.width||!e.height)&&i)return t.setAttribute("data-verylazy",!0),i.observe(t);let d=s.lastIndexOf("."),o=s.substring(0,d);!function(e,t){if(window._s8Sqips=window._s8Sqips||{},!window._s8Sqips[e]){let i=/viewBox(?:%3D|=)'0\s0\s(\d+)\s(\d+)'/.exec(t);window._s8Sqips[e]={native:{width:parseInt(i[1]),height:parseInt(i[2])},sizes:[],sqip:t};let s=window._s8Sqips[e].native.width,d=window._s8Sqips[e].native.height;if(!s||!d)return;let o=s/d;for(let t=0;t<n.length;t++){let i,r=Math.sqrt(n[t]/o),a=o*r;if(a>=s||r>=d)break;let l=parseInt(a)===a,h=parseInt(r)===r;i=(l&&h?"_"+a+"x"+r:l?"_"+a+"x":h?"_x"+r:o>=1?"_"+Math.ceil(a)+"x":"_x"+Math.ceil(r))+"a",window._s8Sqips[e].sizes.push({width:a,height:r,suffix:i})}}}(o,t.src);let r="",a=window.devicePixelRatio;a>2&&(a=2),e.width<10&&(e.width=400),window.innerWidth<450&&a>1.3&&(a=1.3);let l=parseInt(e.width)*a,h=parseInt(e.height)*a;for(let e=0;e<window._s8Sqips[o].sizes.length;e++){let t=window._s8Sqips[o].sizes[e];if(l<1.3*t.width&&h<1.3*t.height){r=t.suffix;break}}s=o+r+s.substring(d,s.length)}let d=new Image,o=()=>{t.src=s,d.removeEventListener("load",o,!0)};d.addEventListener("load",o,!0),d.src=s}(t)})}"interactive"==document.readyState||"complete"==document.readyState?s(document):window.addEventListener("DOMContentLoaded",()=>s(document),!0)}();
if(typeof(g_arrLoadedJavaScript) == 'undefined')
	var g_arrLoadedJavaScript = [4120696192];
else
	g_arrLoadedJavaScript.push(4120696192);
if(typeof(g_arrLoadedCSS) == 'undefined')
	var g_arrLoadedCSS = ["2480148958"];
else
	g_arrLoadedCSS.push("2480148958");
