function CookieRequirements(){return{cookieRequirements:[{cookieKey:"ai_session"},{cookieKey:"ai_user"}],storageKey:"CookieConsent"}}function CookieConsent(n){function t(){var t=JSON.parse(localStorage.getItem(n.storageKey));return t==null?{}:t.constructor!==Object?{}:t}function i(i){var r=t();r[i.cookieKey]=!0;localStorage.setItem(n.storageKey,JSON.stringify(r))}function r(i){var r=t();r[i.cookieKey]=!1;localStorage.setItem(n.storageKey,JSON.stringify(r))}function u(n){var i=t();return typeof i[n.cookieKey]!="undefined"}function f(n){var i=t();return i==null?!1:u(n)?i[n.cookieKey]===!0?!0:!1:!1}function h(){n.cookieRequirements.forEach(function(n){$("#OnOffToggle_"+n.cookieKey+"_CheckBox").prop("checked",f(n))})}function e(){$(".pro-toggle input").prop("checked",!0);n.cookieRequirements.forEach(function(n){i(n)})}function c(){e();o();document.querySelector(".cookie-consent-container").setAttribute("hidden","");document.querySelector(".cookie-consent-mask").setAttribute("hidden","")}function l(){s();o();document.querySelector(".cookie-consent-container").setAttribute("hidden","");document.querySelector(".cookie-consent-mask").setAttribute("hidden","")}function a(){document.querySelector(".cookie-consent-container").removeAttribute("hidden");document.querySelector(".cookie-consent-mask").removeAttribute("hidden")}function o(){var n=document.querySelectorAll("a, input, button");for(let t=0;t<n.length;t++)n[t].hasOwnProperty("originalTabIndex")&&(n[t].tabIndex=n[t].originalTabIndex)}function v(n,t){$("#OnOffToggle_"+t+"_CheckBox").prop("checked",$(n).prop("checked"))}function s(){n.cookieRequirements.forEach(function(n){$("#OnOffToggle_"+n.cookieKey+"_CheckBox").prop("checked")?i(n):r(n)})}function y(){var n=t();return n==null?!1:n.ai_user===!0&&n.ai_session===!0}return{acceptAll:e,acceptAllAndClose:c,acceptCookie:i,applicationInsightsCookieConsentGiven:y,hasConsentedToCookie:f,hasProvidedChoice:u,initToggles:h,linkedCookieToggled:v,rejectCookie:r,saveAndClose:l,save:s,showCookieConsent:a}}var site,proAppInsights;String.prototype.replaceAll=function(n,t){for(var i=this,r=i.indexOf(n);r>-1;)i=i.replace(n,t),r=i.indexOf(n);return i};site=function(){function t(n){return n.replaceAll("'","&apos;").replaceAll('"',"&quot;")}function i(n,t,i,r){var f=function(t){for(var i=0;i<t.length;i++)n=n.replaceAll("{"+i+"}",t[i])},u;return Array.isArray(t)?f(t):(u=[],typeof t!="undefined"&&u.push(t),typeof i!="undefined"&&u.push(i),typeof r!="undefined"&&u.push(r),f(u)),n}function r(){$(".k-header a").focusin(function(){$(this).parent().addClass("k-grid-header-focus")});$(".k-header a").focusout(function(){$(this).parent().removeClass("k-grid-header-focus")});var n=$.fn.kendoDropDownList;$.fn.extend({kendoDropDownList:function(t){var i=n.call(this,t);return $(".k-dropdown").removeAttr("aria-readonly"),i}})}function u(t){var r,u="",f="warning",e,i;typeof t=="string"?(r=t,i=undefined):(r=typeof t.text!="undefined"?t.text:"",u=typeof t.title!="undefined"?t.title:"",f=typeof t.type!="undefined"?t.type:"warning",e=typeof t.target!="undefined"?t.target:"",i=typeof t.onOk=="function"?t.onOk:undefined);Swal.fire({title:u,icon:f,confirmButtonText:"OK",confirmButtonColor:n("light-background"),html:r,target:e,allowOutsideClick:!1,allowEscapeKey:!1}).then(n=>{n.isConfirmed&&typeof i!="undefined"&&setTimeout(i)})}function n(n){var t=$(`.${n}`);return t.length===0&&(t=$(`<span class="${n}"></span>`),$(document.body).append(t)),f(t.css("background-color"))}function f(n){var t=n.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+)/i);return t&&t.length===4?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):n}function e(t,i,r){var u,f="Confirmation",e="warning",o,s="OK",h="Cancel";typeof t=="string"?u=t:(u=typeof t.text!="undefined"?t.text:"",f=typeof t.title!="undefined"?t.title:"Confirmation",e=typeof t.type!="undefined"?t.type:"warning",o=typeof t.target!="undefined"?t.target:"",s=typeof t.confirmButtonText!="undefined"?t.confirmButtonText:"OK",h=typeof t.cancelButtonText!="undefined"?t.cancelButtonText:"Cancel");Swal.fire({title:f,icon:e,html:u,showCancelButton:!0,confirmButtonText:s,cancelButtonText:h,confirmButtonColor:n("light-background"),cancelButtonColor:n("dark-background"),target:o,allowOutsideClick:!1,allowEscapeKey:!1}).then(n=>{n.isConfirmed?setTimeout(i):setTimeout(r)})}return{kendoTemplateEncode:t,formatString:i,initialiseControls:r,showAlert:u,showConfirm:e}}();$(document).ready(function(){site.initialiseControls()});proAppInsights=function(){function t(t,r,u,f,e,o){var l=!1,h,c,s;i()===!1&&(l=!0,n("ai_user"),n("ai_session"));h="appInsightsSDK";window[h]="appInsights";c=window[h];s=window[c]||function(n){function i(n){t[n]=function(){var i=arguments;t.queue.push(function(){t[n].apply(t,i)})}}var t={config:n},u,f,r,e,o;t.initialize=!0;u=document;f=window;setTimeout(function(){var t=u.createElement("script");t.src=n.url||"https://az416426.vo.msecnd.net/scripts/b/ai.2.min.js";u.getElementsByTagName("script")[0].parentNode.appendChild(t)});try{t.cookie=u.cookie}catch(n){}for(t.queue=[],t.version=2,r=["Event","PageView","Exception","Trace","DependencyData","Metric","PageViewPerformance"];r.length;)i("track"+r.pop());return i("startTrackPage"),i("stopTrackPage"),e="Track"+r[0],(i("start"+e),i("stop"+e),i("addTelemetryInitializer"),i("setAuthenticatedUserContext"),i("clearAuthenticatedUserContext"),i("flush"),t.SeverityLevel={Verbose:0,Information:1,Warning:2,Error:3,Critical:4},!0===n.disableExceptionTracking||n.extensionConfig&&n.extensionConfig.ApplicationInsightsAnalytics&&!0===n.extensionConfig.ApplicationInsightsAnalytics.disableExceptionTracking)||(i("_"+(r="onerror")),o=f[r],f[r]=function(n,i,u,f,e){var s=o&&o(n,i,u,f,e);return!0!==s&&t["_"+r]({message:n,url:i,lineNumber:u,columnNumber:f,error:e}),s},n.autoExceptionInstrumented=!0),t}({disableCookiesUsage:l,disableCorrelationHeaders:!1,enableCorsCorrelation:!0,samplingPercentage:r,instrumentationKey:t});window[c]=s;s.queue&&s.queue.push(function(){s.addTelemetryInitializer(function(n){n.tags["ai.user.authUserId"]=u;n.tags["ai.user.accountId"]=f;n.tags["ai.application.ver"]=e;n.tags["ai.operation.id"]=o})});s.trackPageView({})}function n(n){document.cookie.includes(n)&&(document.cookie=n+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}function i(){return CookieConsent(CookieRequirements()).applicationInsightsCookieConsentGiven()}return{trackPageView:t}}();$(function(){CookieConsent(CookieRequirements()).initToggles()})