function GetInsightsDataValues(n){var t={category:"",action:"",label:"",value:""},e,r,i,u,f;return n==null?t:(e=n.dataset,e==null)?t:(r=n.dataset.insightsCategory,r!=null&&(t.category=r),i=i=n.dataset.insightsAction,i!=null&&(t.action=i),u=n.dataset.insightsLabel,u!=null&&(t.label=u),f=n.dataset.insightsValue,f!=null&&(t.value=f),t)}function GetElementAsHtmlStr(n){if(!n)return"";var t=document.createElement("div");return t.appendChild(n.cloneNode(!1)),t.innerHTML}var hasCookiesEnabled=!0;try{hasCookiesEnabled=cookiecontrolfunctions.isThisCategorySet("Statistics")}catch{}!function(n,t,i){function p(){i.onInit&&i.onInit(r)}var u=n.location,s="script",h="instrumentationKey",f="ingestionendpoint",c="disableExceptionTracking",l="ai.device.",a="toLowerCase",e="crossOrigin",v="POST",y="appInsightsSDK",o=i.name||"appInsights",r;(i.name||n[y])&&(n[y]=o);r=n[o]||function(r){function nt(n,t){var i={},r="Browser";return i[l+"id"]=r[a](),i[l+"type"]=r,i["ai.operation.name"]=u&&u.pathname||"_unknown_",i["ai.internal.sdkVersion"]="javascript:snippet_"+(o.sv||o.version),{time:function(){function t(n){var t=""+n;return 1===t.length&&(t="0"+t),t}var n=new Date;return n.getUTCFullYear()+"-"+t(1+n.getUTCMonth())+"-"+t(n.getUTCDate())+"T"+t(n.getUTCHours())+":"+t(n.getUTCMinutes())+":"+t(n.getUTCSeconds())+"."+((n.getUTCMilliseconds()/1e3).toFixed(3)+"").slice(2,5)+"Z"}(),iKey:n,name:"Microsoft.ApplicationInsights."+n.replace(/-/g,"")+"."+t,sampleRate:100,tags:i,data:{baseData:{ver:2}}}}function tt(n){for(;n.length;)!function(n){o[n]=function(){var t=arguments;g||o.queue.push(function(){o[n].apply(o,t)})}}(n.pop())}var g=!1,w=!1,o={initialize:!0,queue:[],sv:"5",version:2,config:r},b=r.url||i.src,k,ut,p,d;if(b){function c(){var e,s,k,d,tt,it,c,l,y,t,p;g=!0;o.queue=[];w||(w=!0,e=b,c=function(){var n={},s=r.connectionString,u,t,i,e,o;if(s)for(u=s.split(";"),t=0;t{document.cookie=n+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"});t=["AI_sentBuffer","AI_buffer"];t.forEach(n=>{sessionStorage.removeItem(n)})};document.onclick=function(n){var t=n.target,{category:i,action:r,label:f,value:e}=GetInsightsDataValues(t),o=i.length>0&&r.length>0;if(o){var s={x:n.x,y:n.y},h=t.innerText,c=window.location.href,u=GetElementAsHtmlStr(t),l={name:"click",properties:{category:i,action:r,label:f,value:e,htmlElement:u,clickCoordinates:s,url:c,innerText:h,htmlElement:u}};appInsights.trackEvent(l)}}