clarity-js 0.8.22 → 0.8.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(){"use strict";var t=Object.freeze({__proto__:null,get queue(){return Be},get start(){return Je},get stop(){return Ze},get track(){return ze}}),e=Object.freeze({__proto__:null,get data(){return Tn},get start(){return Sn},get stop(){return On},get upgrade(){return xn}}),n=Object.freeze({__proto__:null,get check(){return Nn},get compute(){return Xn},get data(){return kn},get start(){return Mn},get stop(){return Pn},get trigger(){return In}}),r=Object.freeze({__proto__:null,get compute(){return Wn},get data(){return Yn},get log(){return Dn},get reset(){return zn},get start(){return Cn},get stop(){return Hn},get updates(){return jn}}),a=Object.freeze({__proto__:null,get callback(){return nr},get callbacks(){return Rn},get clear(){return er},get consent(){return Kn},get consentv2(){return Qn},get data(){return qn},get electron(){return Ln},get id(){return Gn},get metadata(){return Zn},get save(){return rr},get shortid(){return or},get start(){return Jn},get stop(){return Bn}}),i=Object.freeze({__proto__:null,get data(){return fr},get envelope(){return gr},get start(){return hr},get stop(){return vr}}),o={projectId:null,delay:1e3,lean:!1,lite:!1,track:!0,content:!0,drop:[],mask:[],unmask:[],regions:[],cookies:[],fraud:!0,checksum:[],report:null,upload:null,fallback:null,upgrade:null,action:null,dob:null,delayDom:!1,throttleDom:!0,conversions:!1,includeSubdomains:!0};function u(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var c=0;function s(){return performance.now()+performance.timeOrigin}function l(t){void 0===t&&(t=null);var e=0===c?s():c,n=t&&t.timeStamp>0?t.timeStamp:performance.now(),r=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(n+r-e),0)}var d="0.8.22";function p(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,i=0;i<t.length;i+=2){if(r=(r<<5)+r^t.charCodeAt(i),i+1<t.length)a=(a<<5)+a^t.charCodeAt(i+1)}return n=Math.abs(r+11579*a),(e?n%Math.pow(2,e):n).toString(36)}var f=/\S/gi,h=255,v=!0,g=null,m=null,w=null;function y(t,e,n,r,a){if(void 0===r&&(r=!1),t){if("input"==e&&("checkbox"===a||"radio"===a))return t;switch(n){case 0:return t;case 1:switch(e){case"*T":case"value":case"placeholder":case"click":return function(t){var e=-1,n=0,r=!1,a=!1,i=!1,o=null;x();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(r=r||c>=48&&c<=57,a=a||64===c,i=9===c||10===c||13===c||32===c,0===u||u===t.length-1||i){if(r||a){null===o&&(o=t.split(""));var s=t.substring(e+1,i?u:u+1);s=v&&null!==w?s.match(w)?s:T(s,"▪","▫"):_(s),o.splice(e+1-n,s.length,s),n+=s.length-1}i&&(r=!1,a=!1,e=u)}}return o?o.join(""):t}(t);case"input":case"change":return S(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?k(t):_(t);case"src":case"srcset":case"title":case"alt":return 3===n?"src"===e&&(null==t?void 0:t.startsWith("blob:"))?"blob:":"":t;case"value":case"click":case"input":case"change":return S(t);case"placeholder":return _(t)}break;case 4:switch(e){case"*T":case"data-":return r?k(t):_(t);case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":return""}break;case 5:switch(e){case"*T":case"data-":return T(t,"▪","▫");case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":case"src":case"srcset":case"alt":case"title":return""}}}return t}function b(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t;if(e)r="".concat("https://").concat("Electron");else{var a=o.drop;if(a&&a.length>0&&t&&t.indexOf("?")>0){var i=t.split("?"),u=i[0],c=i[1];r=u+"?"+c.split("&").map((function(t){return a.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}}return n&&(r=r.substring(0,h)),r}function k(t){var e=t.trim();if(e.length>0){var n=e[0],r=t.indexOf(n),a=t.substr(0,r),i=t.substr(r+e.length);return"".concat(a).concat(e.length.toString(36)).concat(i)}return t}function _(t){return t.replace(f,"•")}function T(t,e,n){return x(),t?t.replace(m,e).replace(g,n):t}function S(t){for(var e=5*(Math.floor(t.length/5)+1),n="",r=0;r<e;r++)n+=r>0&&r%5==0?" ":"•";return n}function x(){if(v&&null===g)try{g=new RegExp("\\p{N}","gu"),m=new RegExp("\\p{L}","gu"),w=new RegExp("\\p{Sc}","gu")}catch(t){v=!1}}var O=null,E=null,M=!1;function N(){M&&(O={time:l(),event:4,data:{visible:E.visible,docWidth:E.docWidth,docHeight:E.docHeight,screenWidth:E.screenWidth,screenHeight:E.screenHeight,scrollX:E.scrollX,scrollY:E.scrollY,pointerX:E.pointerX,pointerY:E.pointerY,activityTime:E.activityTime,scrollTime:E.scrollTime,pointerTime:E.pointerTime,moveX:E.moveX,moveY:E.moveY,moveTime:E.moveTime,downX:E.downX,downY:E.downY,downTime:E.downTime,upX:E.upX,upY:E.upY,upTime:E.upTime,pointerPrevX:E.pointerPrevX,pointerPrevY:E.pointerPrevY,pointerPrevTime:E.pointerPrevTime}}),E=E||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0,scrollTime:0,pointerTime:void 0,moveX:void 0,moveY:void 0,moveTime:void 0,downX:void 0,downY:void 0,downTime:void 0,upX:void 0,upY:void 0,upTime:void 0,pointerPrevX:void 0,pointerPrevY:void 0,pointerPrevTime:void 0}}function I(t,e,n,r){switch(t){case 8:E.docWidth=e,E.docHeight=n;break;case 11:E.screenWidth=e,E.screenHeight=n;break;case 10:E.scrollX=e,E.scrollY=n,E.scrollTime=r;break;case 12:E.moveX=e,E.moveY=n,E.moveTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;case 13:E.downX=e,E.downY=n,E.downTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;case 14:E.upX=e,E.upY=n,E.upTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;default:E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r}M=!0}function X(t){E.activityTime=t}function P(t,e){E.visible="visible"===e?1:0,E.visible||X(t),M=!0}function Y(){M&&En(4)}var j=Object.freeze({__proto__:null,activity:X,compute:Y,reset:N,start:function(){M=!1,N()},get state(){return O},stop:function(){N()},track:I,visibility:P}),A=null,C=!0;function H(){D(2)}function D(t){Dn(36,t.toString())}var W=null;function z(t,e){jr()&&t&&"string"==typeof t&&t.length<255&&(W=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},En(24))}var q,R=null,L=null;function U(t){t in R||(R[t]=0),t in L||(L[t]=0),R[t]++,L[t]++}function F(t,e){null!==e&&(t in R||(R[t]=0),t in L||(L[t]=0),R[t]+=e,L[t]+=e)}function V(t,e){null!==e&&!1===isNaN(e)&&(t in R||(R[t]=0),(e>R[t]||0===R[t])&&(L[t]=e,R[t]=e))}function J(t,e,n){return window.setTimeout(yr(t),e,n)}function B(t){return window.clearTimeout(t)}var Z=0,G=0,K=null;function Q(){K&&B(K),K=J($,G),Z=l()}function $(){var t=l();q={gap:t-Z},En(25),q.gap<3e5?K=J($,G):Xr&&(z("clarity","suspend"),Wr(),["mousemove","touchstart"].forEach((function(t){return kr(document,t,Ar)})),["resize","scroll","pageshow"].forEach((function(t){return kr(window,t,Ar)})))}var tt=Object.freeze({__proto__:null,get data(){return q},reset:Q,start:function(){G=6e4,Z=0},stop:function(){B(K),Z=0,G=0}}),et=null;function nt(){En(36)}function rt(){et={}}var at=Object.freeze({__proto__:null,compute:nt,get data(){return et},reset:rt,start:function(){et={}},stop:function(){et={}},track:function(t,e){if(t in et){var n=et[t],r=n[n.length-1];e-r[0]>100?et[t].push([e,0]):r[1]=e-r[0]}else et[t]=[[e,0]]}});function it(t,e,n,r){return new(n||(n=Promise))((function(a,i){function o(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,u)}c((r=r.apply(t,e||[])).next())}))}function ot(t,e){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var ut="CompressionStream"in window;function ct(t){return it(this,void 0,void 0,(function(){var e,n;return ot(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),ut?(e=new ReadableStream({start:function(e){return it(this,void 0,void 0,(function(){return ot(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,st(e)]):[3,2];case 1:return[2,new(n.apply(Uint8Array,[void 0,r.sent()]))];case 2:return[3,4];case 3:return r.sent(),[3,4];case 4:return[2,null]}}))}))}function st(t){return it(this,void 0,void 0,(function(){var e,n,r,a,i;return ot(this,(function(o){switch(o.label){case 0:e=t.getReader(),n=[],r=!1,a=[],o.label=1;case 1:return r?[3,3]:[4,e.read()];case 2:return i=o.sent(),r=i.done,a=i.value,r?[2,n]:(n.push.apply(n,a),[3,1]);case 3:return[2,n]}}))}))}var lt=null;function dt(t,e){ft(t,"string"==typeof e?[e]:e)}function pt(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),it(this,void 0,void 0,(function(){var a,i;return ot(this,(function(o){switch(o.label){case 0:return i={},[4,gt(t)];case 1:return i.userId=o.sent(),i.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(T(u.substring(2),"*","*")):T(u,"*","*")),ft("userId",[(a=i).userId]),ft("userHint",[a.userHint]),ft("userType",[mt(t)]),e&&(ft("sessionId",[e]),a.sessionId=e),n&&(ft("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function ft(t,e){if(jr()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in lt?lt[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);lt[t]=n}}function ht(){En(34)}function vt(){lt={}}function gt(t){return it(this,void 0,void 0,(function(){var e;return ot(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),crypto&&t?[4,crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t))]:[3,2];case 1:return e=n.sent(),[2,Array.prototype.map.call(new Uint8Array(e),(function(t){return("00"+t.toString(16)).slice(-2)})).join("")];case 2:return[2,""];case 3:return[3,5];case 4:return n.sent(),[2,""];case 5:return[2]}}))}))}function mt(t){return t&&t.indexOf("@")>0?"email":"string"}var wt=Object.freeze({__proto__:null,compute:ht,get data(){return lt},identify:pt,reset:vt,set:dt,start:function(){vt()},stop:function(){vt()}});var yt,bt={};function kt(t){kt.dn=4;var e=t.error||t;return e.message in bt||(bt[e.message]=0),bt[e.message]++>=5||e&&e.message&&(yt={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},_t(31)),!0}function _t(t){return it(this,void 0,void 0,(function(){var e;return ot(this,(function(n){switch(e=[l(),t],t){case 31:e.push(yt.message),e.push(yt.line),e.push(yt.column),e.push(yt.stack),e.push(b(yt.source)),Be(e);break;case 33:Tt&&(e.push(Tt.code),e.push(Tt.name),e.push(Tt.message),e.push(Tt.stack),e.push(Tt.severity),Be(e,!1))}return[2]}))}))}var Tt,St={};function xt(t,e,n,r,a){void 0===n&&(n=null),void 0===r&&(r=null),void 0===a&&(a=null);var i=n?"".concat(n,"|").concat(r):"";t in St&&St[t].indexOf(i)>=0||(Tt={code:t,name:n,message:r,stack:a,severity:e},t in St?St[t].push(i):St[t]=[i],_t(33))}var Ot={},Et=new Set,Mt={},Nt={},It={},Xt={};function Pt(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=e[0].split(/\|(.*)/),r=parseInt(n[0]),a=n.length>1?n[1]:"",i=e.length>1?JSON.parse(e[1]):{};for(var o in Mt[r]={},Nt[r]={},It[r]={},Xt[r]=a,i){var u=parseInt(o),c=i[o],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.slice(1);Mt[r][u]=Ht(l);break;case 2:Nt[r][u]=c;break;case 4:var d=c.slice(1);It[r][u]=d}}}catch(t){xt(8,1,t?t.name:null)}}function Yt(t){return JSON.parse(JSON.stringify(t))}function jt(){try{for(var t in Mt){var e=parseInt(t);if(""==Xt[e]||document.querySelector(Xt[e])){var n=Mt[e];for(var r in n){var a=parseInt(r),i=(m=Dt(Yt(n[a])))?JSON.stringify(m).slice(0,1e4):m;i&&Ct(e,a,i)}var o=Nt[e];for(var u in o){var c=!1,s=parseInt(u),l=o[s];l.startsWith("@")&&(c=!0,l=l.slice(1));var d=document.querySelectorAll(l);if(d){var f=Array.from(d).map((function(t){return t.textContent})).join("<SEP>");Ct(e,s,(c?p(f).trim():f).slice(0,1e4))}}var h=It[e];for(var v in h){var g=parseInt(v);Ct(e,g,(void h[g]).trim().slice(0,1e4))}}}Et.size>0&&En(40)}catch(t){xt(5,1,t?t.name:null)}var m}function At(){Et.clear()}function Ct(t,e,n){var r,a=!1;t in Ot||(Ot[t]={},a=!0),r=It[t],0==Object.keys(r).length||e in Ot[t]&&Ot[t][e]==n||(a=!0),Ot[t][e]=n,a&&Et.add(t)}function Ht(t){for(var e=[],n=t.split(".");n.length>0;){var r=n.shift(),a=r.indexOf("["),i=r.indexOf("{"),o=r.indexOf("}");e.push({name:a>0?r.slice(0,a):i>0?r.slice(0,i):r,type:a>0?1:i>0?2:3,condition:i>0?r.slice(i+1,o):null})}return e}function Dt(t,e){if(void 0===e&&(e=window),0==t.length)return e;var n,r=t.shift();if(e&&e[r.name]){var a=e[r.name];if(1!==r.type&&Wt(a,r.condition))n=Dt(t,a);else if(Array.isArray(a)){for(var i=[],o=0,u=a;o<u.length;o++){var c=u[o];if(Wt(c,r.condition)){var s=Dt(t,c);s&&i.push(s)}}n=i}return n}return null}function Wt(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}var zt=null;function qt(t){try{if(!zt)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){zt(t)}))}catch(t){}}var Rt=[j,r,wt,n,at,a,i,t,tt,e,Object.freeze({__proto__:null,clone:Yt,compute:jt,data:Ot,keys:Et,reset:At,start:function(){At()},stop:function(){At()},trigger:Pt,update:Ct})];function Lt(){R={},L={},U(5),Rt.forEach((function(t){return yr(t.start)()}))}function Ut(){Rt.slice().reverse().forEach((function(t){return yr(t.stop)()})),R={},L={}}function Ft(){ht(),Y(),Wn(),En(0),nt(),Xn(),jt(),C&&(En(47),C=!1)}var Vt=[],Jt=null;var Bt=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:Jt,log:function(){},observe:function(){},reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:Vt,stop:function(){}}),Zt=[],Gt=null,Kt=null,Qt=null;function $t(){Zt=[],Gt=null,Kt=null}function te(t,e){return void 0===e&&(e=0),it(this,void 0,void 0,(function(){var n,r,a;return ot(this,(function(i){for(n=0,r=Zt;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){Zt[1===e?"unshift":"push"]({task:t,resolve:n,id:Gn()})})),null===Gt&&null===Kt&&ee(),[2,a]}))}))}function ee(){var t=Zt.shift();t&&(Gt=t,t.task().then((function(){t.id===Gn()&&(t.resolve(),Gt=null,ee())})).catch((function(e){t.id===Gn()&&(e&&xt(0,1,e.name,e.message,e.stack),Gt=null,ee())})))}var ne,re=["input","textarea","radio","button","canvas","select"],ae=[];function ie(t,e,n){ie.dn=6;var r=document.documentElement,a="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+r.scrollLeft):null,i="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+r.scrollTop):null,o=hn(n),u=function(t){for(;t&&t!==document;){if(t.nodeType===Node.ELEMENT_NODE){var e=t;if("A"===e.tagName)return e}t=t.parentNode}return null}(o),c=function(t){var e=null,n=document.documentElement;if("function"==typeof t.getBoundingClientRect){var r=t.getBoundingClientRect();r&&r.width>0&&r.height>0&&(e={x:Math.floor(r.left+("pageXOffset"in window?window.pageXOffset:n.scrollLeft)),y:Math.floor(r.top+("pageYOffset"in window?window.pageYOffset:n.scrollTop)),w:Math.floor(r.width),h:Math.floor(r.height)})}return e}(o);0===n.detail&&c&&(a=Math.round(c.x+c.w/2),i=Math.round(c.y+c.h/2));var s=c?Math.max(Math.floor((a-c.x)/c.w*32767),0):0,d=c?Math.max(Math.floor((i-c.y)/c.h*32767),0):0;if(null!==a&&null!==i){var p=function(t){var e=null,n=!1;if(t){var r=t.textContent||String(t.value||"")||t.alt;if(r){var a=r.replace(/\s+/g," ").trim();n=(e=a.substring(0,25)).length===a.length}}return{text:e,isFullText:n?1:0}}(o);ae.push({time:l(n),event:t,data:{target:o,x:a,y:i,eX:s,eY:d,button:n.button,reaction:oe(o),context:ue(u),text:p.text,link:u?u.href:null,hash:null,trust:n.isTrusted?1:0,isFullText:p.isFullText}}),te(Xe.bind(this,t))}}function oe(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t.tagName.toLowerCase();if(re.indexOf(e)>=0)return 0}return 1}function ue(t){if(t&&t.hasAttribute("target"))switch(t.getAttribute("target")){case"_blank":return 1;case"_parent":return 2;case"_top":return 3}return 0}function ce(){ae=[]}function se(t,e){var n=0,r=null,a=null;function i(){for(var i=this,o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];var c=performance.now(),s=c-n;if(0!==n&&s<e){if(a=o,r)return;r=setTimeout((function(){n=performance.now(),t.apply(i,a),a=null,r=null}),e-s)}else n=c,t.apply(this,o)}return i.cleanup=function(){r&&(clearTimeout(r),r=null,a=null)},i}var le=null,de=!1,pe=se(fe,500);function fe(){fe.dn=12;var t=document.documentElement;ne={width:t&&"clientWidth"in t?Math.min(t.clientWidth,window.innerWidth):window.innerWidth,height:t&&"clientHeight"in t?Math.min(t.clientHeight,window.innerHeight):window.innerHeight},de?(B(le),le=J(he,500,11)):(Xe(11),de=!0)}function he(t){te(Xe.bind(this,t))}function ve(){ne=null,B(le),pe.cleanup()}var ge=[],me=null;function we(t){void 0===t&&(t=null),we.dn=13;var e=window,n=document.documentElement,r=t?hn(t):n;if(r){if(r&&r.nodeType===Node.DOCUMENT_NODE){r=n=r.documentElement}var a=r===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(r.scrollLeft),i=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),o=window.innerWidth,u=window.innerHeight,c=o/3,s=o>u?.15*u:.2*u,d=u-s,p=be(c,s),f=be(c,d),h={time:l(t),event:10,data:{target:r,x:a,y:i,top:p,bottom:f}};if((null!==t||0!==a||0!==i)&&null!==a&&null!==i){var v=ge.length,g=v>1?ge[v-2]:null;g&&function(t,e){var n=t.data.x-e.data.x,r=t.data.y-e.data.y;return n*n+r*r<400&&e.time-t.time<50}(g,h)&&ge.pop(),ge.push(h),B(me),me=J(ke,500,10)}}}var ye=se(we,25);function be(t,e){var n,r,a;return"caretPositionFromPoint"in document?a=null===(n=document.caretPositionFromPoint(t,e))||void 0===n?void 0:n.offsetNode:"caretRangeFromPoint"in document&&(a=null===(r=document.caretRangeFromPoint(t,e))||void 0===r?void 0:r.startContainer),a||(a=document.elementFromPoint(t,e)),a&&a.nodeType===Node.TEXT_NODE&&(a=a.parentNode),a}function ke(t){te(Xe.bind(this,t))}var _e,Te,Se=[];function xe(t){xe.dn=16,Se.push({time:l(t),event:39,data:{target:hn(t)}}),te(Xe.bind(this,39))}function Oe(){Se=[]}function Ee(t){Ee.dn=17,_e={name:t.type,persisted:t.persisted?1:0},Xe(26,l(t)),Wr()}function Me(){_e=null}function Ne(t){void 0===t&&(t=null),Ne.dn=18,Te={visible:"visibilityState"in document?document.visibilityState:"default"},Xe(28,l(t))}function Ie(){Te=null}function Xe(t,e){return void 0===e&&(e=null),it(this,void 0,void 0,(function(){var n,r,a,i,o,u,c,s,d,p,f,h,v,g,m,w,k,_,T,S,x,O,E,M,N,X,Y,j,A,C,H,D,W,z,q;return ot(this,(function(R){switch(n=e||l(),r=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(a=0,i=Vt;a<i.length;a++)z=i[a],(o=vn(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(o.id),r.push(z.data.x),r.push(z.data.y),void 0!==z.data.id&&(r.push(z.data.id),void 0!==z.data.isPrimary&&r.push(z.data.isPrimary.toString())),Be(r),(void 0===z.data.isPrimary||z.data.isPrimary)&&I(z.event,z.data.x,z.data.y,z.time));break;case 9:case 48:for(u=0,c=ae;u<c.length;u++)z=c[u],s=vn(z.data.target,z.event,z.data.text),r=[z.time,z.event],d=s.hash?s.hash.join("."):"",r.push(s.id),r.push(z.data.x),r.push(z.data.y),r.push(z.data.eX),r.push(z.data.eY),r.push(z.data.button),r.push(z.data.reaction),r.push(z.data.context),r.push(y(z.data.text,"click",s.privacy)),r.push(b(z.data.link)),r.push(d),r.push(z.data.trust),r.push(z.data.isFullText),Be(r),Ae(z.time,z.event,d,z.data.x,z.data.y,z.data.reaction,z.data.context);ce();break;case 38:for(p=0,f=Vt;p<f.length;p++)z=f[p],r=[z.time,z.event],(H=vn(z.data.target,z.event)).id>0&&(r.push(H.id),r.push(z.data.action),Be(r));break;case 11:h=ne,r.push(h.width),r.push(h.height),I(t,h.width,h.height),ve(),Be(r);break;case 26:v=_e,r.push(v.name),r.push(v.persisted),Me(),Be(r);break;case 27:for(g=0,m=Vt;g<m.length;g++)z=m[g],w=vn(z.data.target,z.event,z.data.value),(r=[z.time,z.event]).push(w.id),r.push(y(z.data.value,"input",w.privacy,!1,z.data.type)),Be(r);break;case 21:(k=Jt)&&(_=vn(k.start),T=vn(k.end),r.push(_.id),r.push(k.startOffset),r.push(T.id),r.push(k.endOffset),Be(r));break;case 10:for(S=0,x=ge;S<x.length;S++)z=x[S],O=vn(z.data.target,z.event),E=vn(z.data.top,z.event),M=vn(z.data.bottom,z.event),N=(null==E?void 0:E.hash)?E.hash.join("."):"",X=(null==M?void 0:M.hash)?M.hash.join("."):"",O.id>0&&((r=[z.time,z.event]).push(O.id),r.push(z.data.x),r.push(z.data.y),r.push(N),r.push(X),Be(r),I(z.event,z.data.x,z.data.y,z.time));ge=[];break;case 42:for(Y=0,j=Vt;Y<j.length;Y++)z=j[Y],r=[z.time,z.event],(H=vn(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(H.id),r.push(z.data.type),r.push(y(z.data.value,"change",H.privacy)),r.push(y(z.data.checksum,"checksum",H.privacy)),Be(r));break;case 39:for(A=0,C=Se;A<C.length;A++)z=C[A],r=[z.time,z.event],(H=vn(z.data.target,z.event)).id>0&&(r.push(H.id),Be(r));Oe();break;case 22:for(D=0,W=Ye;D<W.length;D++)z=W[D],(r=[z.time,z.event]).push(z.data.type),r.push(z.data.hash),r.push(z.data.x),r.push(z.data.y),r.push(z.data.reaction),r.push(z.data.context),Be(r,!1);je();break;case 28:q=Te,r.push(q.visible),Be(r),P(n,q.visible),Ie()}return[2]}))}))}var Pe=[],Ye=[];function je(){Ye=[]}function Ae(t,e,n,r,a,i,o){void 0===i&&(i=1),void 0===o&&(o=0),Pe.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:i,context:o}}),I(e,r,a,t)}var Ce,He,De,We,ze,qe,Re=0,Le=0,Ue=null,Fe=0,Ve=!1;function Je(){We=!0,Re=0,Le=0,Ve=!1,Fe=0,Ce=[],He=[],De={},ze=null}function Be(t,e){if(void 0===e&&(e=!0),We){var n=l(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(o.lean?!Ve&&Le+a.length>10485760&&(xt(10,0),Ve=!0):Ve=!1,r){case 5:if(Ve)break;Re+=a.length;case 37:case 6:case 43:case 45:case 46:if(Ve)break;Le+=a.length,Ce.push(a);break;default:He.push(a)}U(25);var i=function(){var t=!1===o.lean&&Re>0?100:fr.sequence*o.delay;return"string"==typeof o.upload?Math.max(Math.min(t,3e4),100):o.delay}();n-Fe>2*i&&(B(Ue),Ue=null),e&&null===Ue&&(25!==r&&Q(),Ue=J(Ge,i),Fe=n,Nn(Le))}}function Ze(){B(Ue),Ge(!0),Re=0,Le=0,Ve=!1,Fe=0,Ce=[],He=[],De={},ze=null,We=!1}function Ge(t){return void 0===t&&(t=!1),it(this,void 0,void 0,(function(){var e,n,r,a,i,u,c,s;return ot(this,(function(l){switch(l.label){case 0:return We?(Ue=null,(e=!1===o.lean&&Le>0&&(Le<1048576||fr.sequence>0))&&V(1,1),function(){if(fr){var t=[];Ye=[];for(var e=(fr.start||0)+(fr.duration||0),n=Math.max(e-2e3,0),r=0,a=Pe;r<a.length;r++){var i=a[r];i.time>=n&&(i.time<=e&&Ye.push(i),t.push(i))}Pe=t,Xe(22)}}(),Ft(),n=!0===t,fr?(r=JSON.stringify(gr(n)),a="[".concat(He.join(),"]"),i=e?"[".concat(Ce.join(),"]"):"",u=function(t){return t.p.length>0?'{"e":'.concat(t.e,',"a":').concat(t.a,',"p":').concat(t.p,"}"):'{"e":'.concat(t.e,',"a":').concat(t.a,"}")}({e:r,a:a,p:i}),n?(s=null,[3,3]):[3,1]):[2]):[2];case 1:return[4,ct(u)];case 2:s=l.sent(),l.label=3;case 3:return F(2,(c=s)?c.length:u.length),Ke(u,c,fr.sequence,n),He=[],e&&(Ce=[],Le=0,Re=0,Ve=!1),[2]}}))}))}function Ke(t,e,n,r){var a;if(void 0===r&&(r=!1),"string"==typeof o.upload){var i=o.upload,u=!1;if(r&&navigator&&navigator.sendBeacon)try{(u=navigator.sendBeacon.bind(navigator)(i,t))?$e(n):wr(new Error("".concat("BeaconError",": ").concat(t.length)))}catch(e){wr(new Error("".concat("BeaconError",": ").concat(null===(a=null==e?void 0:e.message)||void 0===a?void 0:a.substring(0,50)," : ").concat(t.length)))}if(!1===u){n in De?De[n].attempts++:De[n]={data:t,attempts:1};var c=new XMLHttpRequest;c.open("POST",i,!0),c.timeout=15e3,c.ontimeout=function(){wr(new Error("".concat("Timeout"," : ").concat(i)))},null!==n&&(c.onreadystatechange=function(){yr(Qe)(c,n)}),c.withCredentials=!0,e?(c.setRequestHeader("Accept","application/x-clarity-gzip"),c.send(e)):c.send(t)}}else if(o.upload){(0,o.upload)(t),$e(n)}}function Qe(t,e){var n=De[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?In(6):(0===t.status&&(o.upload=o.fallback?o.fallback:o.upload),ze={sequence:e,attempts:n.attempts,status:t.status},En(2),Ke(n.data,null,e)):(ze={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&En(2),200===t.status&&t.responseText&&function(t){for(var e=t&&t.length>0?t.split("\n"):[],n=0,r=e;n<r.length;n++){var a=r[n],i=a&&a.length>0?a.split(/ (.*)/):[""];switch(i[0]){case"END":In(6);break;case"UPGRADE":xn("Auto");break;case"ACTION":o.action&&i.length>1&&o.action(i[1]);break;case"EXTRACT":i.length>1&&Pt(i[1]);break;case"SIGNAL":i.length>1&&qt(i[1]);break;case"SNAPSHOT":o.lean=!1,gn()}}}(t.responseText),0===t.status&&(Ke(n.data,null,e,!0),In(3)),t.status>=200&&t.status<=208&&$e(e),delete De[e]))}function $e(t){1===t&&(rr(),nr())}function tn(t){return it(this,void 0,void 0,(function(){var e,n,r,a,i,o,u,c,s,d,p,f,h;return ot(this,(function(v){switch(e=l(),n=[e,t],t){case 8:r=qe,n.push(r.width),n.push(r.height),I(t,r.width,r.height),Be(n);break;case 43:if((a=cn).length>0){for(i=0,o=a;i<o.length;i++)for(u=o[i],c=u.metadata.privacy,s=u.data,d=0,p=["tag","attributes","value"];d<p.length;d++)if(s[f=p[d]])switch(f){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(s[f]);break;case"attributes":for(h in s[f])void 0!==s[f][h]&&n.push(en(h,s[f][h],c));break;case"value":n.push(y(s[f],s.tag,c))}Be(function(t){for(var e=[],n={},r=0,a=null,i=0;i<t.length;i++)if("string"==typeof t[i]){var o=t[i],u=n[o]||-1;u>=0?a?a.push(u):(a=[u],e.push(a),r++):(a=null,e.push(o),n[o]=r++)}else a=null,e.push(t[i]),r++;return e}(n),!0)}}return[2]}))}))}function en(t,e,n){return"".concat(t,"=").concat(y(e,0===t.indexOf("data-")?"data-":t,n))}function nn(){qe=null}function rn(){nn(),an()}function an(){an.dn=19;var t=document.body,e=document.documentElement,n=t?t.clientWidth:null,r=t?t.scrollWidth:null,a=t?t.offsetWidth:null,i=e?e.clientWidth:null,o=e?e.scrollWidth:null,u=e?e.offsetWidth:null,c=Math.max(n,r,a,i,o,u),s=t?t.clientHeight:null,l=t?t.scrollHeight:null,d=t?t.offsetHeight:null,p=e?e.clientHeight:null,f=e?e.scrollHeight:null,h=e?e.offsetHeight:null,v=Math.max(s,l,d,p,f,h);null!==qe&&c===qe.width&&v===qe.height||null===c||null===v||(qe={width:c,height:v},tn(8))}function on(t){!function(t){kr(t===document?window:t,"scroll",ye,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(function(t){kr(t,"click",ie.bind(this,9,t),!0),kr(t,"contextmenu",ie.bind(this,48,t),!0)}(t),function(t){kr(t,"submit",xe,!0)}(t))}var un=Object.freeze({__proto__:null,observe:on,start:function t(){t.dn=8,Pe=[],je(),ce(),de=!1,kr(window,"resize",pe),fe(),kr(document,"visibilitychange",Ne),Ne(),ge=[],we(),Oe(),kr(window,"pagehide",Ee)},stop:function(){Pe=[],je(),ce(),ve(),Ie(),B(me),ye.cleanup(),ge=[],Oe(),Me()}}),cn=[],sn=1,ln=null;function dn(){mn(),rn(),yn(document.documentElement),on(document)}function pn(){return!1}function fn(){}function hn(t){var e=t.composed&&t.composedPath?t.composedPath():null,n=e&&e.length>0?e[0]:t.target;return n.nodeType===Node.DOCUMENT_NODE?n.documentElement:n}function vn(t){var e={id:0,hash:null,privacy:o.conversions?1:5};return t&&(e.id=ln.has(t)?ln.get(t):yn(t)),e}function gn(){cn=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,r=null,a=null,i=e.shift(),o=i.firstChild,u=i.parentElement?i.parentElement:i.parentNode?i.parentNode:null;o;)e.push(o),o=o.nextSibling;switch(i.nodeType){case Node.DOCUMENT_TYPE_NODE:var c=i;r="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:a=i.nodeValue,r=ln.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=i;n=wn(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}bn(i,u,{tag:r,attributes:n,value:a})}}(document),tn(43)}function mn(){ln=new WeakMap}function wn(t){var e={},n=t.attributes;if(n&&n.length>0)for(var r=0;r<n.length;r++)e[n[r].name]=n[r].value;return e}function yn(t){return null===t?null:ln.has(t)?ln.get(t):(ln.set(t,sn),sn++)}function bn(t,e,n){if(t&&n&&n.tag){var r=yn(t),a=e?ln.get(e):null,i=t.previousSibling?ln.get(t.previousSibling):null;cn.push({id:r,parent:a,previous:i,children:[],data:n,selector:null,hash:null,region:null,metadata:{active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null}})}}var kn,_n=Object.freeze({__proto__:null,compute:function(){},get:function(t){return null},hashText:fn,iframe:pn,metadata:vn,offset:function(){return{x:0,y:0}},snapshot:gn,start:dn,stop:function(){mn(),nn()},target:hn,get values(){return cn}}),Tn=null;function Sn(){!o.lean&&o.upgrade&&o.upgrade("Config"),Tn=null}function xn(t){jr()&&o.lean&&(o.lean=!1,Tn={key:t},nr(),rr(),o.upgrade&&o.upgrade(t),En(3),o.lite&&dn())}function On(){Tn=null}function En(t){var e=[l(),t];switch(t){case 4:var n=O;n&&n.data&&((e=[n.time,n.event]).push(n.data.visible),e.push(n.data.docWidth),e.push(n.data.docHeight),e.push(n.data.screenWidth),e.push(n.data.screenHeight),e.push(n.data.scrollX),e.push(n.data.scrollY),e.push(n.data.pointerX),e.push(n.data.pointerY),e.push(n.data.activityTime),e.push(n.data.scrollTime),e.push(n.data.pointerTime),e.push(n.data.moveX),e.push(n.data.moveY),e.push(n.data.moveTime),e.push(n.data.downX),e.push(n.data.downY),e.push(n.data.downTime),e.push(n.data.upX),e.push(n.data.upY),e.push(n.data.upTime),e.push(n.data.pointerPrevX),e.push(n.data.pointerPrevY),e.push(n.data.pointerPrevTime),Be(e,!1)),N();break;case 25:e.push(q.gap),Be(e);break;case 35:e.push(kn.check),Be(e,!1);break;case 3:e.push(Tn.key),Be(e);break;case 2:e.push(ze.sequence),e.push(ze.attempts),e.push(ze.status),Be(e,!1);break;case 24:W.key&&e.push(W.key),e.push(W.value),Be(e);break;case 34:var r=Object.keys(lt);if(r.length>0){for(var a=0,i=r;a<i.length;a++){var o=i[a];e.push(o),e.push(lt[o])}vt(),Be(e,!1)}break;case 0:var u=Object.keys(L);if(u.length>0){for(var c=0,s=u;c<s.length;c++){var d=s[c],p=parseInt(d,10);e.push(p),e.push(Math.round(L[d]))}L={},Be(e,!1)}break;case 1:var f=Object.keys(jn);if(f.length>0){for(var h=0,v=f;h<v.length;h++){var g=v[h];p=parseInt(g,10);e.push(p),e.push(jn[g])}zn(),Be(e,!1)}break;case 36:var m=Object.keys(et);if(m.length>0){for(var w=0,y=m;w<y.length;w++){var b=y[w];p=parseInt(b,10);e.push(p),e.push([].concat.apply([],et[b]))}rt(),Be(e,!1)}break;case 40:Et.forEach((function(t){e.push(t);var n=[];for(var r in Ot[t]){var a=parseInt(r,10);n.push(a),n.push(Ot[t][r])}e.push(n)})),At(),Be(e,!1);break;case 47:e.push(A.source),e.push(A.ad_Storage),e.push(A.analytics_Storage),Be(e,!1)}}function Mn(){kn={check:0}}function Nn(t){if(0===kn.check){var e=kn.check;e=fr.sequence>=128?1:e,e=fr.pageNum>=128?7:e,e=l()>72e5?2:e,(e=t>10485760?2:e)!==kn.check&&In(e)}}function In(t){kn.check=t,5!==t&&(er(),Wr())}function Xn(){0!==kn.check&&En(35)}function Pn(){kn=null}var Yn=null,jn=null,An=!1;function Cn(){Yn={},jn={},An=!1}function Hn(){Yn={},jn={},An=!1}function Dn(t,e){if(e&&(e="".concat(e),t in Yn||(Yn[t]=[]),Yn[t].indexOf(e)<0)){if(Yn[t].length>128)return void(An||(An=!0,In(5)));Yn[t].push(e),t in jn||(jn[t]=[]),jn[t].push(e)}}function Wn(){En(1)}function zn(){jn={},An=!1}var qn=null,Rn=[],Ln=0,Un=null,Fn=null,Vn={ad_Storage:"denied",analytics_Storage:"denied"};function Jn(){var t,e,n;Un=null;var r=navigator&&"userAgent"in navigator?navigator.userAgent:"",a=null!==(n="undefined"!=typeof Intl&&(null===(e=null===(t=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===t?void 0:t.resolvedOptions())||void 0===e?void 0:e.timeZone))&&void 0!==n?n:"",i=(new Date).getTimezoneOffset().toString(),u=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";Ln=r.indexOf("Electron")>0?1:0;var s=function(){var t={session:or(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=sr("_clsk",!o.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-ur(n[1])<18e5&&(t.session=n[0],t.count=ur(n[2])+1,t.upgrade=ur(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),l=cr(),d=o.projectId||p(location.host);qn={projectId:d,userId:l.id,sessionId:s.session,pageNum:s.count},o.lean=o.track&&null!==s.upgrade?0===s.upgrade:o.lean,o.upload=o.track&&"string"==typeof o.upload&&s.upload&&s.upload.length>"https://".length?s.upload:o.upload,Dn(0,r),Dn(3,c),Dn(1,b(location.href,!!Ln)),Dn(2,document.referrer),Dn(15,function(){var t=or();if(o.track&&ar(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),Dn(16,document.documentElement.lang),Dn(17,document.dir),Dn(26,"".concat(window.devicePixelRatio)),Dn(28,l.dob.toString()),Dn(29,l.version.toString()),Dn(33,u),Dn(34,a),Dn(35,i),V(0,s.ts),V(1,0),V(35,Ln);var f,h=null===window||void 0===window?void 0:window.Zone;h&&"__symbol__"in h&&V(39,1),navigator&&(Dn(9,navigator.language),V(33,navigator.hardwareConcurrency),V(32,navigator.maxTouchPoints),V(34,Math.round(navigator.deviceMemory)),(f=navigator.userAgentData)&&f.getHighEntropyValues?f.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;Dn(22,t.platform),Dn(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){Dn(24,t.name+"~"+t.version)})),Dn(25,t.model),V(27,t.mobile?1:0)})):Dn(22,navigator.platform)),screen&&(V(14,Math.round(screen.width)),V(15,Math.round(screen.height)),V(16,Math.round(screen.colorDepth)));for(var v=0,g=o.cookies;v<g.length;v++){var m=g[v],w=sr(m);w&&dt(m,w)}!function(t){D(t.analytics_Storage?1:0),A=t}($n(Fn={ad_Storage:o.track?"granted":"denied",analytics_Storage:o.track?"granted":"denied"},0)),ir(l)}function Bn(){Un=null,qn=null,Fn=null,Rn.forEach((function(t){t.called=!1}))}function Zn(t,e,n,r){void 0===e&&(e=!0),void 0===n&&(n=!1),void 0===r&&(r=!1);var a=o.lean?0:1,i=!1;qn&&(a||!1===e)&&(t(qn,!o.lean,r?Fn:void 0),i=!0),!n&&i||Rn.push({callback:t,wait:e,recall:n,called:i,consentInfo:r})}function Gn(){return qn?[qn.userId,qn.sessionId,qn.pageNum].join("."):""}function Kn(t){void 0===t&&(t=!0),t?(Qn({ad_Storage:"granted",analytics_Storage:"granted"}),H()):Qn()}function Qn(t,e){void 0===t&&(t=Vn),void 0===e&&(e=1),Fn={ad_Storage:tr(t.ad_Storage),analytics_Storage:tr(t.analytics_Storage)},nr(!0);var n=$n(Fn,e);if(!n.analytics_Storage)return o.track=!1,dr("_clsk","",-Number.MAX_VALUE),dr("_clck","",-Number.MAX_VALUE),Wr(),void window.setTimeout(Dr,250);jr()&&(o.track=!0,ir(cr(),1),rr(),function(t){A=t,En(47)}(n),H())}function $n(t,e){return{source:e,ad_Storage:"granted"===t.ad_Storage?1:0,analytics_Storage:"granted"===t.analytics_Storage?1:0}}function tr(t){return"string"==typeof t?t.toLowerCase():"denied"}function er(){dr("_clsk","",0)}function nr(t){void 0===t&&(t=!1),function(t,e){void 0===e&&(e=!1);if(Rn.length>0)for(var n=0;n<Rn.length;n++){var r=Rn[n];r.callback&&(!r.called&&!e||r.consentInfo&&e)&&(!r.wait||t)&&(r.callback(qn,!o.lean,r.consentInfo?Fn:void 0),r.called=!0,r.recall||(Rn.splice(n,1),n--))}}(o.lean?0:1,t)}function rr(){if(qn&&o.track){var t=Math.round(Date.now()),e=o.upload&&"string"==typeof o.upload?o.upload.replace("https://",""):"",n=o.lean?0:1;dr("_clsk",[qn.sessionId,t,qn.pageNum,n,e].join("|"),1)}}function ar(t,e){try{return!!t[e]}catch(t){return!1}}function ir(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5),r=0===t.dob?null===o.dob?0:o.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&dr("_clck",[qn.userId,2,n.toString(36),e,r].join("|"),365)}function or(){var t=Math.floor(Math.random()*Math.pow(2,32));return window&&window.crypto&&window.crypto.getRandomValues&&Uint32Array&&(t=window.crypto.getRandomValues(new Uint32Array(1))[0]),t.toString(36)}function ur(t,e){return void 0===e&&(e=10),parseInt(t,e)}function cr(){var t={id:or(),version:0,expiry:null,consent:0,dob:0},e=sr("_clck",!o.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=ur(n[1])),n.length>2&&(t.expiry=ur(n[2],36)),n.length>3&&1===ur(n[3])&&(t.consent=1),n.length>4&&ur(n[1])>1&&(t.dob=ur(n[4])),o.track=o.track||1===t.consent,t.id=o.track?n[0]:t.id}return t}function sr(t,e){var n;if(void 0===e&&(e=!1),ar(document,"cookie")){var r=document.cookie.split(";");if(r)for(var a=0;a<r.length;a++){var i=r[a].split("=");if(i.length>1&&i[0]&&i[0].trim()===t){for(var o=lr(i[1]),u=o[0],c=o[1];u;)u=(n=lr(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function lr(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}function dr(t,e,n){if((o.track||""==e)&&(navigator&&navigator.cookieEnabled||ar(document,"cookie"))){var r=function(t){return encodeURIComponent(t)}(e),a=new Date;a.setDate(a.getDate()+n);var i=a?"expires="+a.toUTCString():"",u="".concat(t,"=").concat(r).concat(";").concat(i).concat(";path=/");try{if(null===Un){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(Un=".".concat(c[s]).concat(Un||""),s<c.length-1&&(document.cookie="".concat(u).concat(";").concat("domain=").concat(Un),sr(t)===e))return;Un=""}}catch(t){Un=""}document.cookie=Un?"".concat(u).concat(";").concat("domain=").concat(Un):u}}var pr,fr=null;function hr(){var t=qn;fr={version:d,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0,applicationPlatform:0,url:""}}function vr(){fr=null}function gr(t){return fr.start=fr.start+fr.duration,fr.duration=l()-fr.start,fr.sequence++,fr.upload=t&&"sendBeacon"in navigator?1:0,fr.end=t?1:0,fr.applicationPlatform=0,fr.url=b(location.href,!1,!0),[fr.version,fr.sequence,fr.start,fr.duration,fr.projectId,fr.userId,fr.sessionId,fr.pageNum,fr.upload,fr.end,fr.applicationPlatform,fr.url]}function mr(){pr=[]}function wr(t){if(pr&&-1===pr.indexOf(t.message)){var e=o.report;if(e&&e.length>0&&fr){var n={v:fr.version,p:fr.projectId,u:fr.userId,s:fr.sessionId,n:fr.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var r=new XMLHttpRequest;r.open("POST",e,!0),r.send(JSON.stringify(n)),pr.push(t.message)}}return t}function yr(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw wr(t)}var n=performance.now()-e;F(4,n),n>30&&(U(7),V(6,n),xt(9,0,"".concat(t.dn||t.name,"-").concat(n)))}}var br=new Map;function kr(t,e,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!0),n=yr(n);try{t[u("addEventListener")](e,n,{capture:r,passive:a}),function(t){return br.has(t)}(t)||br.set(t,[]),br.get(t).push({event:e,listener:n,options:{capture:r,passive:a}})}catch(t){}}function _r(){br.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[u("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),br.delete(e)}(t,e)})),br=new Map}var Tr=null,Sr=null,xr=null,Or=0;function Er(){return!(Or++>20)||(xt(4,0),!1)}function Mr(){Mr.dn=1,Or=0,xr!==Ir()&&(Wr(),window.setTimeout(Nr,250))}function Nr(){Dr(),V(29,1)}function Ir(){return location.href?location.href.replace(location.hash,""):location.href}var Xr=!1;function Pr(){Xr=!0,c=s(),$t(),_r(),mr(),xr=Ir(),Or=0,kr(window,"popstate",Mr),null===Tr&&(Tr=history.pushState,history.pushState=function(){Tr.apply(this,arguments),jr()&&Er()&&Mr()}),null===Sr&&(Sr=history.replaceState,history.replaceState=function(){Sr.apply(this,arguments),jr()&&Er()&&Mr()})}function Yr(){xr=null,Or=0,mr(),_r(),$t(),c=0,Xr=!1}function jr(){return Xr}function Ar(){Ar.dn=2,Dr(),z("clarity","restart")}var Cr=Object.freeze({__proto__:null,start:function t(){t.dn=3,function(){V(26,navigator.webdriver?1:0);try{V(31,window.top==window.self||window.top==window?1:2)}catch(t){V(31,0)}}(),kr(window,"error",kt),bt={},St={}},stop:function(){St={}}}),Hr=[Cr,_n,un,Bt];function Dr(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===Xr&&"undefined"!=typeof Promise&&window.MutationObserver&&document.createTreeWalker&&"now"in Date&&"now"in performance&&"undefined"!=typeof WeakMap&&!t}catch(t){return!1}}()&&(!function(t){if(null===t||Xr)return!1;for(var e in t)e in o&&(o[e]=t[e])}(t),Pr(),Lt(),Hr.forEach((function(t){return yr(t.start)()})),null===t&&Lr())}function Wr(){jr()&&(Hr.slice().reverse().forEach((function(t){return yr(t.stop)()})),Ut(),Yr(),void 0!==qr&&(qr[Rr]=function(){(qr[Rr].q=qr[Rr].q||[]).push(arguments),"start"===arguments[0]&&qr[Rr].q.unshift(qr[Rr].q.pop())&&Lr()}))}var zr=Object.freeze({__proto__:null,consent:Kn,consentv2:Qn,event:z,hashText:fn,identify:pt,metadata:Zn,pause:function(){jr()&&(z("clarity","pause"),null===Kt&&(Kt=new Promise((function(t){Qt=t}))))},resume:function(){jr()&&(Kt&&(Qt(),Kt=null,null===Gt&&ee()),z("clarity","resume"))},set:dt,signal:function(t){zt=t},start:Dr,stop:Wr,upgrade:xn,version:d}),qr=window,Rr="clarity";function Lr(){if(void 0!==qr){if(qr[Rr]&&qr[Rr].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=qr[Rr]&&qr[Rr].q||[];for(qr[Rr]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return zr[t].apply(zr,e)},qr[Rr].v=d;t.length>0;)qr[Rr].apply(qr,t.shift())}}Lr()}();
1
+ !function(){"use strict";var t=Object.freeze({__proto__:null,get queue(){return Qe},get start(){return Ke},get stop(){return $e},get track(){return Ue}}),e=Object.freeze({__proto__:null,get data(){return xn},get start(){return En},get stop(){return Nn},get upgrade(){return Mn}}),n=Object.freeze({__proto__:null,get check(){return Pn},get compute(){return jn},get data(){return Sn},get start(){return Xn},get stop(){return An},get trigger(){return Yn}}),r=Object.freeze({__proto__:null,get compute(){return Rn},get data(){return Cn},get log(){return qn},get reset(){return Ln},get start(){return Wn},get stop(){return zn},get updates(){return Hn}}),a=Object.freeze({__proto__:null,get callback(){return ir},get callbacks(){return Fn},get clear(){return ar},get consent(){return tr},get consentv2(){return er},get data(){return Un},get electron(){return Vn},get id(){return $n},get metadata(){return Qn},get save(){return or},get shortid(){return sr},get start(){return Gn},get stop(){return Kn}}),i=Object.freeze({__proto__:null,get data(){return gr},get envelope(){return yr},get start(){return mr},get stop(){return wr}}),o={projectId:null,delay:1e3,lean:!1,lite:!1,track:!0,content:!0,drop:[],mask:[],unmask:[],regions:[],cookies:[],fraud:!0,checksum:[],report:null,upload:null,fallback:null,upgrade:null,action:null,dob:null,delayDom:!1,throttleDom:!0,conversions:!1,includeSubdomains:!0};function u(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var c=0;function s(){return performance.now()+performance.timeOrigin}function l(t){void 0===t&&(t=null);var e=0===c?s():c,n=t&&t.timeStamp>0?t.timeStamp:performance.now(),r=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(n+r-e),0)}var d="0.8.24";function p(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,i=0;i<t.length;i+=2){if(r=(r<<5)+r^t.charCodeAt(i),i+1<t.length)a=(a<<5)+a^t.charCodeAt(i+1)}return n=Math.abs(r+11579*a),(e?n%Math.pow(2,e):n).toString(36)}var f=/\S/gi,h=255,v=!0,g=null,m=null,w=null;function y(t,e,n,r,a){if(void 0===r&&(r=!1),t){if("input"==e&&("checkbox"===a||"radio"===a))return t;switch(n){case 0:return t;case 1:switch(e){case"*T":case"value":case"placeholder":case"click":return function(t){var e=-1,n=0,r=!1,a=!1,i=!1,o=null;O();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(r=r||c>=48&&c<=57,a=a||64===c,i=9===c||10===c||13===c||32===c,0===u||u===t.length-1||i){if(r||a){null===o&&(o=t.split(""));var s=t.substring(e+1,i?u:u+1);s=v&&null!==w?s.match(w)?s:T(s,"▪","▫"):_(s),o.splice(e+1-n,s.length,s),n+=s.length-1}i&&(r=!1,a=!1,e=u)}}return o?o.join(""):t}(t);case"input":case"change":return S(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?k(t):_(t);case"src":case"srcset":case"title":case"alt":return 3===n?"src"===e&&(null==t?void 0:t.startsWith("blob:"))?"blob:":"":t;case"value":case"click":case"input":case"change":return S(t);case"placeholder":return _(t)}break;case 4:switch(e){case"*T":case"data-":return r?k(t):_(t);case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":return""}break;case 5:switch(e){case"*T":case"data-":return T(t,"▪","▫");case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":case"src":case"srcset":case"alt":case"title":return""}}}return t}function b(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t;if(e)r="".concat("https://").concat("Electron");else{var a=o.drop;if(a&&a.length>0&&t&&t.indexOf("?")>0){var i=t.split("?"),u=i[0],c=i[1];r=u+"?"+c.split("&").map((function(t){return a.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}}return n&&(r=r.substring(0,h)),r}function k(t){var e=t.trim();if(e.length>0){var n=e[0],r=t.indexOf(n),a=t.substr(0,r),i=t.substr(r+e.length);return"".concat(a).concat(e.length.toString(36)).concat(i)}return t}function _(t){return t.replace(f,"•")}function T(t,e,n){return O(),t?t.replace(m,e).replace(g,n):t}function S(t){for(var e=5*(Math.floor(t.length/5)+1),n="",r=0;r<e;r++)n+=r>0&&r%5==0?" ":"•";return n}function O(){if(v&&null===g)try{g=new RegExp("\\p{N}","gu"),m=new RegExp("\\p{L}","gu"),w=new RegExp("\\p{Sc}","gu")}catch(t){v=!1}}var x=null,E=null,M=!1;function N(){M&&(x={time:l(),event:4,data:{visible:E.visible,docWidth:E.docWidth,docHeight:E.docHeight,screenWidth:E.screenWidth,screenHeight:E.screenHeight,scrollX:E.scrollX,scrollY:E.scrollY,pointerX:E.pointerX,pointerY:E.pointerY,activityTime:E.activityTime,scrollTime:E.scrollTime,pointerTime:E.pointerTime,moveX:E.moveX,moveY:E.moveY,moveTime:E.moveTime,downX:E.downX,downY:E.downY,downTime:E.downTime,upX:E.upX,upY:E.upY,upTime:E.upTime,pointerPrevX:E.pointerPrevX,pointerPrevY:E.pointerPrevY,pointerPrevTime:E.pointerPrevTime}}),E=E||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0,scrollTime:0,pointerTime:void 0,moveX:void 0,moveY:void 0,moveTime:void 0,downX:void 0,downY:void 0,downTime:void 0,upX:void 0,upY:void 0,upTime:void 0,pointerPrevX:void 0,pointerPrevY:void 0,pointerPrevTime:void 0}}function I(t,e,n,r){switch(t){case 8:E.docWidth=e,E.docHeight=n;break;case 11:E.screenWidth=e,E.screenHeight=n;break;case 10:E.scrollX=e,E.scrollY=n,E.scrollTime=r;break;case 12:E.moveX=e,E.moveY=n,E.moveTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;case 13:E.downX=e,E.downY=n,E.downTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;case 14:E.upX=e,E.upY=n,E.upTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;default:E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r}M=!0}function X(t){E.activityTime=t}function P(t,e){E.visible="visible"===e?1:0,E.visible||X(t),M=!0}function Y(){M&&In(4)}var j=Object.freeze({__proto__:null,activity:X,compute:Y,reset:N,start:function(){M=!1,N()},get state(){return x},stop:function(){N()},track:I,visibility:P}),A=null,C=!0;function H(t){W(t.analytics_Storage?1:0),A=t}function D(){W(2)}function W(t){qn(36,t.toString())}function z(t){A=t,In(47)}function q(){C&&(In(47),C=!1)}var R=Object.freeze({__proto__:null,compute:q,config:H,consent:D,consentv2:z,get data(){return A},start:function(){C=!0},stop:function(){C=!0}}),L=null;function U(t,e){Hr()&&t&&"string"==typeof t&&t.length<255&&(L=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},In(24))}var F,V=null,J=null;function B(t){t in V||(V[t]=0),t in J||(J[t]=0),V[t]++,J[t]++}function Z(t,e){null!==e&&(t in V||(V[t]=0),t in J||(J[t]=0),V[t]+=e,J[t]+=e)}function G(t,e){null!==e&&!1===isNaN(e)&&(t in V||(V[t]=0),(e>V[t]||0===V[t])&&(J[t]=e,V[t]=e))}function K(t,e,n){return window.setTimeout(_r(t),e,n)}function Q(t){return window.clearTimeout(t)}var $=0,tt=0,et=null;function nt(){et&&Q(et),et=K(rt,tt),$=l()}function rt(){var t=l();F={gap:t-$},In(25),F.gap<3e5?et=K(rt,tt):jr&&(U("clarity","suspend"),qr(),["mousemove","touchstart"].forEach((function(t){return Sr(document,t,Dr)})),["resize","scroll","pageshow"].forEach((function(t){return Sr(window,t,Dr)})))}var at=Object.freeze({__proto__:null,get data(){return F},reset:nt,start:function(){tt=6e4,$=0},stop:function(){Q(et),$=0,tt=0}}),it=null;function ot(){In(36)}function ut(){it={}}var ct=Object.freeze({__proto__:null,compute:ot,get data(){return it},reset:ut,start:function(){it={}},stop:function(){it={}},track:function(t,e){if(t in it){var n=it[t],r=n[n.length-1];e-r[0]>100?it[t].push([e,0]):r[1]=e-r[0]}else it[t]=[[e,0]]}});function st(t,e,n,r){return new(n||(n=Promise))((function(a,i){function o(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,u)}c((r=r.apply(t,e||[])).next())}))}function lt(t,e){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var dt="CompressionStream"in window;function pt(t){return st(this,void 0,void 0,(function(){var e,n;return lt(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),dt?(e=new ReadableStream({start:function(e){return st(this,void 0,void 0,(function(){return lt(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,ft(e)]):[3,2];case 1:return[2,new(n.apply(Uint8Array,[void 0,r.sent()]))];case 2:return[3,4];case 3:return r.sent(),[3,4];case 4:return[2,null]}}))}))}function ft(t){return st(this,void 0,void 0,(function(){var e,n,r,a,i;return lt(this,(function(o){switch(o.label){case 0:e=t.getReader(),n=[],r=!1,a=[],o.label=1;case 1:return r?[3,3]:[4,e.read()];case 2:return i=o.sent(),r=i.done,a=i.value,r?[2,n]:(n.push.apply(n,a),[3,1]);case 3:return[2,n]}}))}))}var ht=null;function vt(t,e){mt(t,"string"==typeof e?[e]:e)}function gt(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),st(this,void 0,void 0,(function(){var a,i;return lt(this,(function(o){switch(o.label){case 0:return i={},[4,bt(t)];case 1:return i.userId=o.sent(),i.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(T(u.substring(2),"*","*")):T(u,"*","*")),mt("userId",[(a=i).userId]),mt("userHint",[a.userHint]),mt("userType",[kt(t)]),e&&(mt("sessionId",[e]),a.sessionId=e),n&&(mt("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function mt(t,e){if(Hr()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in ht?ht[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);ht[t]=n}}function wt(){In(34)}function yt(){ht={}}function bt(t){return st(this,void 0,void 0,(function(){var e;return lt(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),crypto&&t?[4,crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t))]:[3,2];case 1:return e=n.sent(),[2,Array.prototype.map.call(new Uint8Array(e),(function(t){return("00"+t.toString(16)).slice(-2)})).join("")];case 2:return[2,""];case 3:return[3,5];case 4:return n.sent(),[2,""];case 5:return[2]}}))}))}function kt(t){return t&&t.indexOf("@")>0?"email":"string"}var _t=Object.freeze({__proto__:null,compute:wt,get data(){return ht},identify:gt,reset:yt,set:vt,start:function(){yt()},stop:function(){yt()}});var Tt,St={};function Ot(t){var e=t.error||t;return e.message in St||(St[e.message]=0),St[e.message]++>=5||e&&e.message&&(Tt={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},xt(31)),!0}function xt(t){return st(this,void 0,void 0,(function(){var e;return lt(this,(function(n){switch(e=[l(),t],t){case 31:e.push(Tt.message),e.push(Tt.line),e.push(Tt.column),e.push(Tt.stack),e.push(b(Tt.source)),Qe(e);break;case 33:Et&&(e.push(Et.code),e.push(Et.name),e.push(Et.message),e.push(Et.stack),e.push(Et.severity),Qe(e,!1))}return[2]}))}))}var Et,Mt={};function Nt(t,e,n,r,a){void 0===n&&(n=null),void 0===r&&(r=null),void 0===a&&(a=null);var i=n?"".concat(n,"|").concat(r):"";t in Mt&&Mt[t].indexOf(i)>=0||(Et={code:t,name:n,message:r,stack:a,severity:e},t in Mt?Mt[t].push(i):Mt[t]=[i],xt(33))}var It={},Xt=new Set,Pt={},Yt={},jt={},At={};function Ct(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=e[0].split(/\|(.*)/),r=parseInt(n[0]),a=n.length>1?n[1]:"",i=e.length>1?JSON.parse(e[1]):{};for(var o in Pt[r]={},Yt[r]={},jt[r]={},At[r]=a,i){var u=parseInt(o),c=i[o],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.slice(1);Pt[r][u]=qt(l);break;case 2:Yt[r][u]=c;break;case 4:var d=c.slice(1);jt[r][u]=d}}}catch(t){Nt(8,1,t?t.name:null)}}function Ht(t){return JSON.parse(JSON.stringify(t))}function Dt(){try{for(var t in Pt){var e=parseInt(t);if(""==At[e]||document.querySelector(At[e])){var n=Pt[e];for(var r in n){var a=parseInt(r),i=(m=Rt(Ht(n[a])))?JSON.stringify(m).slice(0,1e4):m;i&&zt(e,a,i)}var o=Yt[e];for(var u in o){var c=!1,s=parseInt(u),l=o[s];l.startsWith("@")&&(c=!0,l=l.slice(1));var d=document.querySelectorAll(l);if(d){var f=Array.from(d).map((function(t){return t.textContent})).join("<SEP>");zt(e,s,(c?p(f).trim():f).slice(0,1e4))}}var h=jt[e];for(var v in h){var g=parseInt(v);zt(e,g,(void h[g]).trim().slice(0,1e4))}}}Xt.size>0&&In(40)}catch(t){Nt(5,1,t?t.name:null)}var m}function Wt(){Xt.clear()}function zt(t,e,n){var r,a=!1;t in It||(It[t]={},a=!0),r=jt[t],0==Object.keys(r).length||e in It[t]&&It[t][e]==n||(a=!0),It[t][e]=n,a&&Xt.add(t)}function qt(t){for(var e=[],n=t.split(".");n.length>0;){var r=n.shift(),a=r.indexOf("["),i=r.indexOf("{"),o=r.indexOf("}");e.push({name:a>0?r.slice(0,a):i>0?r.slice(0,i):r,type:a>0?1:i>0?2:3,condition:i>0?r.slice(i+1,o):null})}return e}function Rt(t,e){if(void 0===e&&(e=window),0==t.length)return e;var n,r=t.shift();if(e&&e[r.name]){var a=e[r.name];if(1!==r.type&&Lt(a,r.condition))n=Rt(t,a);else if(Array.isArray(a)){for(var i=[],o=0,u=a;o<u.length;o++){var c=u[o];if(Lt(c,r.condition)){var s=Rt(t,c);s&&i.push(s)}}n=i}return n}return null}function Lt(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}var Ut=null;function Ft(t){try{if(!Ut)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){Ut(t)}))}catch(t){}}var Vt=[j,r,_t,n,ct,R,a,i,t,at,e,Object.freeze({__proto__:null,clone:Ht,compute:Dt,data:It,keys:Xt,reset:Wt,start:function(){Wt()},stop:function(){Wt()},trigger:Ct,update:zt})];function Jt(){V={},J={},B(5),Vt.forEach((function(t){return _r(t.start)()}))}function Bt(){Vt.slice().reverse().forEach((function(t){return _r(t.stop)()})),V={},J={}}function Zt(){wt(),Y(),Rn(),In(0),ot(),jn(),Dt(),q()}var Gt=[],Kt=null;var Qt=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:Kt,log:function(){},observe:function(){},reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:Gt,stop:function(){}}),$t=[],te=null,ee=null,ne=null;function re(){$t=[],te=null,ee=null}function ae(t,e){return void 0===e&&(e=0),st(this,void 0,void 0,(function(){var n,r,a;return lt(this,(function(i){for(n=0,r=$t;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){$t[1===e?"unshift":"push"]({task:t,resolve:n,id:$n()})})),null===te&&null===ee&&ie(),[2,a]}))}))}function ie(){var t=$t.shift();t&&(te=t,t.task().then((function(){t.id===$n()&&(t.resolve(),te=null,ie())})).catch((function(e){t.id===$n()&&(e&&Nt(0,1,e.name,e.message,e.stack),te=null,ie())})))}var oe,ue=["input","textarea","radio","button","canvas","select"],ce=[];function se(t,e,n){var r=document.documentElement,a="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+r.scrollLeft):null,i="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+r.scrollTop):null,o=mn(n),u=function(t){for(;t&&t!==document;){if(t.nodeType===Node.ELEMENT_NODE){var e=t;if("A"===e.tagName)return e}t=t.parentNode}return null}(o),c=function(t){var e=null,n=document.documentElement;if("function"==typeof t.getBoundingClientRect){var r=t.getBoundingClientRect();r&&r.width>0&&r.height>0&&(e={x:Math.floor(r.left+("pageXOffset"in window?window.pageXOffset:n.scrollLeft)),y:Math.floor(r.top+("pageYOffset"in window?window.pageYOffset:n.scrollTop)),w:Math.floor(r.width),h:Math.floor(r.height)})}return e}(o);0===n.detail&&c&&(a=Math.round(c.x+c.w/2),i=Math.round(c.y+c.h/2));var s=c?Math.max(Math.floor((a-c.x)/c.w*32767),0):0,d=c?Math.max(Math.floor((i-c.y)/c.h*32767),0):0;if(null!==a&&null!==i){var p=function(t){var e=null,n=!1;if(t){var r=t.textContent||String(t.value||"")||t.alt;if(r){var a=r.replace(/\s+/g," ").trim();n=(e=a.substring(0,25)).length===a.length}}return{text:e,isFullText:n?1:0}}(o);ce.push({time:l(n),event:t,data:{target:o,x:a,y:i,eX:s,eY:d,button:n.button,reaction:le(o),context:de(u),text:p.text,link:u?u.href:null,hash:null,trust:n.isTrusted?1:0,isFullText:p.isFullText}}),ae(Ae.bind(this,t))}}function le(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t.tagName.toLowerCase();if(ue.indexOf(e)>=0)return 0}return 1}function de(t){if(t&&t.hasAttribute("target"))switch(t.getAttribute("target")){case"_blank":return 1;case"_parent":return 2;case"_top":return 3}return 0}function pe(){ce=[]}function fe(t,e){var n=0,r=null,a=null;function i(){for(var i=this,o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];var c=performance.now(),s=c-n;if(0!==n&&s<e){if(a=o,r)return;r=setTimeout((function(){n=performance.now(),t.apply(i,a),a=null,r=null}),e-s)}else n=c,t.apply(this,o)}return i.cleanup=function(){r&&(clearTimeout(r),r=null,a=null)},i}var he=null,ve=!1,ge=fe(me,500);function me(){var t=document.documentElement;oe={width:t&&"clientWidth"in t?Math.min(t.clientWidth,window.innerWidth):window.innerWidth,height:t&&"clientHeight"in t?Math.min(t.clientHeight,window.innerHeight):window.innerHeight},ve?(Q(he),he=K(we,500,11)):(Ae(11),ve=!0)}function we(t){ae(Ae.bind(this,t))}function ye(){oe=null,Q(he),ge.cleanup()}var be=[],ke=null;function _e(t){void 0===t&&(t=null);var e=window,n=document.documentElement,r=t?mn(t):n;if(r){if(r&&r.nodeType===Node.DOCUMENT_NODE){r=n=r.documentElement}var a=r===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(r.scrollLeft),i=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),o=window.innerWidth,u=window.innerHeight,c=o/3,s=o>u?.15*u:.2*u,d=u-s,p=Se(c,s),f=Se(c,d),h={time:l(t),event:10,data:{target:r,x:a,y:i,top:p,bottom:f}};if((null!==t||0!==a||0!==i)&&null!==a&&null!==i){var v=be.length,g=v>1?be[v-2]:null;g&&function(t,e){var n=t.data.x-e.data.x,r=t.data.y-e.data.y;return n*n+r*r<400&&e.time-t.time<50}(g,h)&&be.pop(),be.push(h),Q(ke),ke=K(Oe,500,10)}}}var Te=fe(_e,25);function Se(t,e){var n,r,a;return"caretPositionFromPoint"in document?a=null===(n=document.caretPositionFromPoint(t,e))||void 0===n?void 0:n.offsetNode:"caretRangeFromPoint"in document&&(a=null===(r=document.caretRangeFromPoint(t,e))||void 0===r?void 0:r.startContainer),a||(a=document.elementFromPoint(t,e)),a&&a.nodeType===Node.TEXT_NODE&&(a=a.parentNode),a}function Oe(t){ae(Ae.bind(this,t))}var xe,Ee,Me=[];function Ne(t){Me.push({time:l(t),event:39,data:{target:mn(t)}}),ae(Ae.bind(this,39))}function Ie(){Me=[]}function Xe(t){xe={name:t.type,persisted:t.persisted?1:0},Ae(26,l(t)),qr()}function Pe(){xe=null}function Ye(t){void 0===t&&(t=null),Ee={visible:"visibilityState"in document?document.visibilityState:"default"},Ae(28,l(t))}function je(){Ee=null}function Ae(t,e){return void 0===e&&(e=null),st(this,void 0,void 0,(function(){var n,r,a,i,o,u,c,s,d,p,f,h,v,g,m,w,k,_,T,S,O,x,E,M,N,X,Y,j,A,C,H,D,W,z,q;return lt(this,(function(R){switch(n=e||l(),r=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(a=0,i=Gt;a<i.length;a++)z=i[a],(o=wn(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(o.id),r.push(z.data.x),r.push(z.data.y),void 0!==z.data.id&&(r.push(z.data.id),void 0!==z.data.isPrimary&&r.push(z.data.isPrimary.toString())),Qe(r),(void 0===z.data.isPrimary||z.data.isPrimary)&&I(z.event,z.data.x,z.data.y,z.time));break;case 9:case 48:for(u=0,c=ce;u<c.length;u++)z=c[u],s=wn(z.data.target,z.event,z.data.text),r=[z.time,z.event],d=s.hash?s.hash.join("."):"",r.push(s.id),r.push(z.data.x),r.push(z.data.y),r.push(z.data.eX),r.push(z.data.eY),r.push(z.data.button),r.push(z.data.reaction),r.push(z.data.context),r.push(y(z.data.text,"click",s.privacy)),r.push(b(z.data.link)),r.push(d),r.push(z.data.trust),r.push(z.data.isFullText),Qe(r),We(z.time,z.event,d,z.data.x,z.data.y,z.data.reaction,z.data.context);pe();break;case 38:for(p=0,f=Gt;p<f.length;p++)z=f[p],r=[z.time,z.event],(H=wn(z.data.target,z.event)).id>0&&(r.push(H.id),r.push(z.data.action),Qe(r));break;case 11:h=oe,r.push(h.width),r.push(h.height),I(t,h.width,h.height),ye(),Qe(r);break;case 26:v=xe,r.push(v.name),r.push(v.persisted),Pe(),Qe(r);break;case 27:for(g=0,m=Gt;g<m.length;g++)z=m[g],w=wn(z.data.target,z.event,z.data.value),(r=[z.time,z.event]).push(w.id),r.push(y(z.data.value,"input",w.privacy,!1,z.data.type)),r.push(z.data.trust),Qe(r);break;case 21:(k=Kt)&&(_=wn(k.start),T=wn(k.end),r.push(_.id),r.push(k.startOffset),r.push(T.id),r.push(k.endOffset),Qe(r));break;case 10:for(S=0,O=be;S<O.length;S++)z=O[S],x=wn(z.data.target,z.event),E=wn(z.data.top,z.event),M=wn(z.data.bottom,z.event),N=(null==E?void 0:E.hash)?E.hash.join("."):"",X=(null==M?void 0:M.hash)?M.hash.join("."):"",x.id>0&&((r=[z.time,z.event]).push(x.id),r.push(z.data.x),r.push(z.data.y),r.push(N),r.push(X),Qe(r),I(z.event,z.data.x,z.data.y,z.time));be=[];break;case 42:for(Y=0,j=Gt;Y<j.length;Y++)z=j[Y],r=[z.time,z.event],(H=wn(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(H.id),r.push(z.data.type),r.push(y(z.data.value,"change",H.privacy)),r.push(y(z.data.checksum,"checksum",H.privacy)),Qe(r));break;case 39:for(A=0,C=Me;A<C.length;A++)z=C[A],r=[z.time,z.event],(H=wn(z.data.target,z.event)).id>0&&(r.push(H.id),Qe(r));Ie();break;case 22:for(D=0,W=He;D<W.length;D++)z=W[D],(r=[z.time,z.event]).push(z.data.type),r.push(z.data.hash),r.push(z.data.x),r.push(z.data.y),r.push(z.data.reaction),r.push(z.data.context),Qe(r,!1);De();break;case 28:q=Ee,r.push(q.visible),Qe(r),P(n,q.visible),je()}return[2]}))}))}var Ce=[],He=[];function De(){He=[]}function We(t,e,n,r,a,i,o){void 0===i&&(i=1),void 0===o&&(o=0),Ce.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:i,context:o}}),I(e,r,a,t)}var ze,qe,Re,Le,Ue,Fe,Ve=0,Je=0,Be=null,Ze=0,Ge=!1;function Ke(){Le=!0,Ve=0,Je=0,Ge=!1,Ze=0,ze=[],qe=[],Re={},Ue=null}function Qe(t,e){if(void 0===e&&(e=!0),Le){var n=l(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(o.lean?!Ge&&Je+a.length>10485760&&(Nt(10,0),Ge=!0):Ge=!1,r){case 5:if(Ge)break;Ve+=a.length;case 37:case 6:case 43:case 45:case 46:if(Ge)break;Je+=a.length,ze.push(a);break;default:qe.push(a)}B(25);var i=function(){var t=!1===o.lean&&Ve>0?100:gr.sequence*o.delay;return"string"==typeof o.upload?Math.max(Math.min(t,3e4),100):o.delay}();n-Ze>2*i&&(Q(Be),Be=null),e&&null===Be&&(25!==r&&nt(),Be=K(tn,i),Ze=n,Pn(Je))}}function $e(){Q(Be),tn(!0),Ve=0,Je=0,Ge=!1,Ze=0,ze=[],qe=[],Re={},Ue=null,Le=!1}function tn(t){return void 0===t&&(t=!1),st(this,void 0,void 0,(function(){var e,n,r,a,i,u,c,s;return lt(this,(function(l){switch(l.label){case 0:return Le?(Be=null,(e=!1===o.lean&&Je>0&&(Je<1048576||gr.sequence>0))&&G(1,1),function(){if(gr){var t=[];He=[];for(var e=(gr.start||0)+(gr.duration||0),n=Math.max(e-2e3,0),r=0,a=Ce;r<a.length;r++){var i=a[r];i.time>=n&&(i.time<=e&&He.push(i),t.push(i))}Ce=t,Ae(22)}}(),Zt(),n=!0===t,gr?(r=JSON.stringify(yr(n)),a="[".concat(qe.join(),"]"),i=e?"[".concat(ze.join(),"]"):"",u=function(t){return t.p.length>0?'{"e":'.concat(t.e,',"a":').concat(t.a,',"p":').concat(t.p,"}"):'{"e":'.concat(t.e,',"a":').concat(t.a,"}")}({e:r,a:a,p:i}),n?(s=null,[3,3]):[3,1]):[2]):[2];case 1:return[4,pt(u)];case 2:s=l.sent(),l.label=3;case 3:return Z(2,(c=s)?c.length:u.length),en(u,c,gr.sequence,n),qe=[],e&&(ze=[],Je=0,Ve=0,Ge=!1),[2]}}))}))}function en(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof o.upload){var a=o.upload,i=!1;if(r&&navigator&&navigator.sendBeacon)try{(i=navigator.sendBeacon.bind(navigator)(a,t))&&rn(n)}catch(t){}if(!1===i){n in Re?Re[n].attempts++:Re[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",a,!0),u.timeout=15e3,u.ontimeout=function(){kr(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(u.onreadystatechange=function(){_r(nn)(u,n)}),u.withCredentials=!0,e?(u.setRequestHeader("Accept","application/x-clarity-gzip"),u.send(e)):u.send(t)}}else if(o.upload){(0,o.upload)(t),rn(n)}}function nn(t,e){var n=Re[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Yn(6):(0===t.status&&(o.upload=o.fallback?o.fallback:o.upload),Ue={sequence:e,attempts:n.attempts,status:t.status},In(2),en(n.data,null,e)):(Ue={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&In(2),200===t.status&&t.responseText&&function(t){for(var e=t&&t.length>0?t.split("\n"):[],n=0,r=e;n<r.length;n++){var a=r[n],i=a&&a.length>0?a.split(/ (.*)/):[""];switch(i[0]){case"END":Yn(6);break;case"UPGRADE":Mn("Auto");break;case"ACTION":o.action&&i.length>1&&o.action(i[1]);break;case"EXTRACT":i.length>1&&Ct(i[1]);break;case"SIGNAL":i.length>1&&Ft(i[1]);break;case"SNAPSHOT":o.lean=!1,yn()}}}(t.responseText),0===t.status&&(en(n.data,null,e,!0),Yn(3)),t.status>=200&&t.status<=208&&rn(e),delete Re[e]))}function rn(t){1===t&&(or(),ir())}function an(t){return st(this,void 0,void 0,(function(){var e,n,r,a,i,o,u,c,s,d,p,f,h;return lt(this,(function(v){switch(e=l(),n=[e,t],t){case 8:r=Fe,n.push(r.width),n.push(r.height),I(t,r.width,r.height),Qe(n);break;case 43:if((a=dn).length>0){for(i=0,o=a;i<o.length;i++)for(u=o[i],c=u.metadata.privacy,s=u.data,d=0,p=["tag","attributes","value"];d<p.length;d++)if(s[f=p[d]])switch(f){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(s[f]);break;case"attributes":for(h in s[f])void 0!==s[f][h]&&n.push(on(h,s[f][h],c));break;case"value":n.push(y(s[f],s.tag,c))}Qe(function(t){for(var e=[],n={},r=0,a=null,i=0;i<t.length;i++)if("string"==typeof t[i]){var o=t[i],u=n[o]||-1;u>=0?a?a.push(u):(a=[u],e.push(a),r++):(a=null,e.push(o),n[o]=r++)}else a=null,e.push(t[i]),r++;return e}(n),!0)}}return[2]}))}))}function on(t,e,n){return"".concat(t,"=").concat(y(e,0===t.indexOf("data-")?"data-":t,n))}function un(){Fe=null}function cn(){var t,e,n,r,a,i,o,u,c,s,l,d,p,f,h,v;un(),t=document.body,e=document.documentElement,n=t?t.clientWidth:null,r=t?t.scrollWidth:null,a=t?t.offsetWidth:null,i=e?e.clientWidth:null,o=e?e.scrollWidth:null,u=e?e.offsetWidth:null,c=Math.max(n,r,a,i,o,u),s=t?t.clientHeight:null,l=t?t.scrollHeight:null,d=t?t.offsetHeight:null,p=e?e.clientHeight:null,f=e?e.scrollHeight:null,h=e?e.offsetHeight:null,v=Math.max(s,l,d,p,f,h),null!==Fe&&c===Fe.width&&v===Fe.height||null===c||null===v||(Fe={width:c,height:v},an(8))}function sn(t){!function(t){Sr(t===document?window:t,"scroll",Te,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(function(t){Sr(t,"click",se.bind(this,9,t),!0),Sr(t,"contextmenu",se.bind(this,48,t),!0)}(t),function(t){Sr(t,"submit",Ne,!0)}(t))}var ln=Object.freeze({__proto__:null,observe:sn,start:function(){Ce=[],De(),pe(),ve=!1,Sr(window,"resize",ge),me(),Sr(document,"visibilitychange",Ye),Ye(),be=[],_e(),Ie(),Sr(window,"pagehide",Xe)},stop:function(){Ce=[],De(),pe(),ye(),je(),Q(ke),Te.cleanup(),be=[],Ie(),Pe()}}),dn=[],pn=1,fn=null;function hn(){bn(),cn(),_n(document.documentElement),sn(document)}function vn(){return!1}function gn(){}function mn(t){var e=t.composed&&t.composedPath?t.composedPath():null,n=e&&e.length>0?e[0]:t.target;return n.nodeType===Node.DOCUMENT_NODE?n.documentElement:n}function wn(t){var e={id:0,hash:null,privacy:o.conversions?1:5};return t&&(e.id=fn.has(t)?fn.get(t):_n(t)),e}function yn(){dn=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,r=null,a=null,i=e.shift(),o=i.firstChild,u=i.parentElement?i.parentElement:i.parentNode?i.parentNode:null;o;)e.push(o),o=o.nextSibling;switch(i.nodeType){case Node.DOCUMENT_TYPE_NODE:var c=i;r="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:a=i.nodeValue,r=fn.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=i;n=kn(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}Tn(i,u,{tag:r,attributes:n,value:a})}}(document),an(43)}function bn(){fn=new WeakMap}function kn(t){var e={},n=t.attributes;if(n&&n.length>0)for(var r=0;r<n.length;r++)e[n[r].name]=n[r].value;return e}function _n(t){return null===t?null:fn.has(t)?fn.get(t):(fn.set(t,pn),pn++)}function Tn(t,e,n){if(t&&n&&n.tag){var r=_n(t),a=e?fn.get(e):null,i=t.previousSibling?fn.get(t.previousSibling):null;dn.push({id:r,parent:a,previous:i,children:[],data:n,selector:null,hash:null,region:null,metadata:{active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null}})}}var Sn,On=Object.freeze({__proto__:null,compute:function(){},get:function(t){return null},hashText:gn,iframe:vn,metadata:wn,offset:function(){return{x:0,y:0}},snapshot:yn,start:hn,stop:function(){bn(),un()},target:mn,get values(){return dn}}),xn=null;function En(){!o.lean&&o.upgrade&&o.upgrade("Config"),xn=null}function Mn(t){Hr()&&o.lean&&(o.lean=!1,xn={key:t},ir(),or(),o.upgrade&&o.upgrade(t),In(3),o.lite&&hn())}function Nn(){xn=null}function In(t){var e=[l(),t];switch(t){case 4:var n=x;n&&n.data&&((e=[n.time,n.event]).push(n.data.visible),e.push(n.data.docWidth),e.push(n.data.docHeight),e.push(n.data.screenWidth),e.push(n.data.screenHeight),e.push(n.data.scrollX),e.push(n.data.scrollY),e.push(n.data.pointerX),e.push(n.data.pointerY),e.push(n.data.activityTime),e.push(n.data.scrollTime),e.push(n.data.pointerTime),e.push(n.data.moveX),e.push(n.data.moveY),e.push(n.data.moveTime),e.push(n.data.downX),e.push(n.data.downY),e.push(n.data.downTime),e.push(n.data.upX),e.push(n.data.upY),e.push(n.data.upTime),e.push(n.data.pointerPrevX),e.push(n.data.pointerPrevY),e.push(n.data.pointerPrevTime),Qe(e,!1)),N();break;case 25:e.push(F.gap),Qe(e);break;case 35:e.push(Sn.check),Qe(e,!1);break;case 3:e.push(xn.key),Qe(e);break;case 2:e.push(Ue.sequence),e.push(Ue.attempts),e.push(Ue.status),Qe(e,!1);break;case 24:L.key&&e.push(L.key),e.push(L.value),Qe(e);break;case 34:var r=Object.keys(ht);if(r.length>0){for(var a=0,i=r;a<i.length;a++){var o=i[a];e.push(o),e.push(ht[o])}yt(),Qe(e,!1)}break;case 0:var u=Object.keys(J);if(u.length>0){for(var c=0,s=u;c<s.length;c++){var d=s[c],p=parseInt(d,10);e.push(p),e.push(Math.round(J[d]))}J={},Qe(e,!1)}break;case 1:var f=Object.keys(Hn);if(f.length>0){for(var h=0,v=f;h<v.length;h++){var g=v[h];p=parseInt(g,10);e.push(p),e.push(Hn[g])}Ln(),Qe(e,!1)}break;case 36:var m=Object.keys(it);if(m.length>0){for(var w=0,y=m;w<y.length;w++){var b=y[w];p=parseInt(b,10);e.push(p),e.push([].concat.apply([],it[b]))}ut(),Qe(e,!1)}break;case 40:Xt.forEach((function(t){e.push(t);var n=[];for(var r in It[t]){var a=parseInt(r,10);n.push(a),n.push(It[t][r])}e.push(n)})),Wt(),Qe(e,!1);break;case 47:e.push(A.source),e.push(A.ad_Storage),e.push(A.analytics_Storage),Qe(e,!1)}}function Xn(){Sn={check:0}}function Pn(t){if(0===Sn.check){var e=Sn.check;e=gr.sequence>=128?1:e,e=gr.pageNum>=128?7:e,e=l()>72e5?2:e,(e=t>10485760?2:e)!==Sn.check&&Yn(e)}}function Yn(t){Sn.check=t,5!==t&&(ar(),qr())}function jn(){0!==Sn.check&&In(35)}function An(){Sn=null}var Cn=null,Hn=null,Dn=!1;function Wn(){Cn={},Hn={},Dn=!1}function zn(){Cn={},Hn={},Dn=!1}function qn(t,e){if(e&&(e="".concat(e),t in Cn||(Cn[t]=[]),Cn[t].indexOf(e)<0)){if(Cn[t].length>128)return void(Dn||(Dn=!0,Yn(5)));Cn[t].push(e),t in Hn||(Hn[t]=[]),Hn[t].push(e)}}function Rn(){In(1)}function Ln(){Hn={},Dn=!1}var Un=null,Fn=[],Vn=0,Jn=null,Bn=null,Zn={ad_Storage:"denied",analytics_Storage:"denied"};function Gn(){var t,e,n;Jn=null;var r=navigator&&"userAgent"in navigator?navigator.userAgent:"",a=null!==(n="undefined"!=typeof Intl&&(null===(e=null===(t=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===t?void 0:t.resolvedOptions())||void 0===e?void 0:e.timeZone))&&void 0!==n?n:"",i=(new Date).getTimezoneOffset().toString(),u=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";Vn=r.indexOf("Electron")>0?1:0;var s=function(){var t={session:sr(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=pr("_clsk",!o.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-lr(n[1])<18e5&&(t.session=n[0],t.count=lr(n[2])+1,t.upgrade=lr(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),l=dr(),d=o.projectId||p(location.host);Un={projectId:d,userId:l.id,sessionId:s.session,pageNum:s.count},o.lean=o.track&&null!==s.upgrade?0===s.upgrade:o.lean,o.upload=o.track&&"string"==typeof o.upload&&s.upload&&s.upload.length>"https://".length?s.upload:o.upload,qn(0,r),qn(3,c),qn(1,b(location.href,!!Vn)),qn(2,document.referrer),qn(15,function(){var t=sr();if(o.track&&ur(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),qn(16,document.documentElement.lang),qn(17,document.dir),qn(26,"".concat(window.devicePixelRatio)),qn(28,l.dob.toString()),qn(29,l.version.toString()),qn(33,u),qn(34,a),qn(35,i),G(0,s.ts),G(1,0),G(35,Vn);var f,h=null===window||void 0===window?void 0:window.Zone;h&&"__symbol__"in h&&G(39,1),navigator&&(qn(9,navigator.language),G(33,navigator.hardwareConcurrency),G(32,navigator.maxTouchPoints),G(34,Math.round(navigator.deviceMemory)),(f=navigator.userAgentData)&&f.getHighEntropyValues?f.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;qn(22,t.platform),qn(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){qn(24,t.name+"~"+t.version)})),qn(25,t.model),G(27,t.mobile?1:0)})):qn(22,navigator.platform)),screen&&(G(14,Math.round(screen.width)),G(15,Math.round(screen.height)),G(16,Math.round(screen.colorDepth)));for(var v=0,g=o.cookies;v<g.length;v++){var m=g[v],w=pr(m);w&&vt(m,w)}H(nr(Bn={ad_Storage:o.track?"granted":"denied",analytics_Storage:o.track?"granted":"denied"},0)),cr(l)}function Kn(){Jn=null,Un=null,Bn=null,Fn.forEach((function(t){t.called=!1}))}function Qn(t,e,n,r){void 0===e&&(e=!0),void 0===n&&(n=!1),void 0===r&&(r=!1);var a=o.lean?0:1,i=!1;Un&&(a||!1===e)&&(t(Un,!o.lean,r?Bn:void 0),i=!0),!n&&i||Fn.push({callback:t,wait:e,recall:n,called:i,consentInfo:r})}function $n(){return Un?[Un.userId,Un.sessionId,Un.pageNum].join("."):""}function tr(t){void 0===t&&(t=!0),t?(er({ad_Storage:"granted",analytics_Storage:"granted"}),D()):er()}function er(t,e){void 0===t&&(t=Zn),void 0===e&&(e=1),Bn={ad_Storage:rr(t.ad_Storage),analytics_Storage:rr(t.analytics_Storage)},ir(!0);var n=nr(Bn,e);if(!n.analytics_Storage)return o.track=!1,hr("_clsk","",-Number.MAX_VALUE),hr("_clck","",-Number.MAX_VALUE),qr(),void window.setTimeout(zr,250);Hr()&&(o.track=!0,cr(dr(),1),or(),z(n),D())}function nr(t,e){return{source:e,ad_Storage:"granted"===t.ad_Storage?1:0,analytics_Storage:"granted"===t.analytics_Storage?1:0}}function rr(t){return"string"==typeof t?t.toLowerCase():"denied"}function ar(){hr("_clsk","",0)}function ir(t){void 0===t&&(t=!1),function(t,e){void 0===e&&(e=!1);if(Fn.length>0)for(var n=0;n<Fn.length;n++){var r=Fn[n];r.callback&&(!r.called&&!e||r.consentInfo&&e)&&(!r.wait||t)&&(r.callback(Un,!o.lean,r.consentInfo?Bn:void 0),r.called=!0,r.recall||(Fn.splice(n,1),n--))}}(o.lean?0:1,t)}function or(){if(Un&&o.track){var t=Math.round(Date.now()),e=o.upload&&"string"==typeof o.upload?o.upload.replace("https://",""):"",n=o.lean?0:1;hr("_clsk",[Un.sessionId,t,Un.pageNum,n,e].join("|"),1)}}function ur(t,e){try{return!!t[e]}catch(t){return!1}}function cr(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5),r=0===t.dob?null===o.dob?0:o.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&hr("_clck",[Un.userId,2,n.toString(36),e,r].join("|"),365)}function sr(){var t=Math.floor(Math.random()*Math.pow(2,32));return window&&window.crypto&&window.crypto.getRandomValues&&Uint32Array&&(t=window.crypto.getRandomValues(new Uint32Array(1))[0]),t.toString(36)}function lr(t,e){return void 0===e&&(e=10),parseInt(t,e)}function dr(){var t={id:sr(),version:0,expiry:null,consent:0,dob:0},e=pr("_clck",!o.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=lr(n[1])),n.length>2&&(t.expiry=lr(n[2],36)),n.length>3&&1===lr(n[3])&&(t.consent=1),n.length>4&&lr(n[1])>1&&(t.dob=lr(n[4])),o.track=o.track||1===t.consent,t.id=o.track?n[0]:t.id}return t}function pr(t,e){var n;if(void 0===e&&(e=!1),ur(document,"cookie")){var r=document.cookie.split(";");if(r)for(var a=0;a<r.length;a++){var i=r[a].split("=");if(i.length>1&&i[0]&&i[0].trim()===t){for(var o=fr(i[1]),u=o[0],c=o[1];u;)u=(n=fr(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function fr(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}function hr(t,e,n){if((o.track||""==e)&&(navigator&&navigator.cookieEnabled||ur(document,"cookie"))){var r=function(t){return encodeURIComponent(t)}(e),a=new Date;a.setDate(a.getDate()+n);var i=a?"expires="+a.toUTCString():"",u="".concat(t,"=").concat(r).concat(";").concat(i).concat(";path=/");try{if(null===Jn){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(Jn=".".concat(c[s]).concat(Jn||""),s<c.length-1&&(document.cookie="".concat(u).concat(";").concat("domain=").concat(Jn),pr(t)===e))return;Jn=""}}catch(t){Jn=""}document.cookie=Jn?"".concat(u).concat(";").concat("domain=").concat(Jn):u}}var vr,gr=null;function mr(){var t=Un;gr={version:d,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0,applicationPlatform:0,url:""}}function wr(){gr=null}function yr(t){return gr.start=gr.start+gr.duration,gr.duration=l()-gr.start,gr.sequence++,gr.upload=t&&"sendBeacon"in navigator?1:0,gr.end=t?1:0,gr.applicationPlatform=0,gr.url=b(location.href,!1,!0),[gr.version,gr.sequence,gr.start,gr.duration,gr.projectId,gr.userId,gr.sessionId,gr.pageNum,gr.upload,gr.end,gr.applicationPlatform,gr.url]}function br(){vr=[]}function kr(t){if(vr&&-1===vr.indexOf(t.message)){var e=o.report;if(e&&e.length>0&&gr){var n={v:gr.version,p:gr.projectId,u:gr.userId,s:gr.sessionId,n:gr.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var r=new XMLHttpRequest;r.open("POST",e,!0),r.send(JSON.stringify(n)),vr.push(t.message)}}return t}function _r(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw kr(t)}var n=performance.now()-e;Z(4,n),n>30&&(B(7),G(6,n))}}var Tr=new Map;function Sr(t,e,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!0),n=_r(n);try{t[u("addEventListener")](e,n,{capture:r,passive:a}),function(t){return Tr.has(t)}(t)||Tr.set(t,[]),Tr.get(t).push({event:e,listener:n,options:{capture:r,passive:a}})}catch(t){}}function Or(){Tr.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[u("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),Tr.delete(e)}(t,e)})),Tr=new Map}var xr=null,Er=null,Mr=null,Nr=0;function Ir(){return!(Nr++>20)||(Nt(4,0),!1)}function Xr(){Nr=0,Mr!==Yr()&&(qr(),window.setTimeout(Pr,250))}function Pr(){zr(),G(29,1)}function Yr(){return location.href?location.href.replace(location.hash,""):location.href}var jr=!1;function Ar(){jr=!0,c=s(),re(),Or(),br(),Mr=Yr(),Nr=0,Sr(window,"popstate",Xr),null===xr&&(xr=history.pushState,history.pushState=function(){xr.apply(this,arguments),Hr()&&Ir()&&Xr()}),null===Er&&(Er=history.replaceState,history.replaceState=function(){Er.apply(this,arguments),Hr()&&Ir()&&Xr()})}function Cr(){Mr=null,Nr=0,br(),Or(),re(),c=0,jr=!1}function Hr(){return jr}function Dr(){zr(),U("clarity","restart")}var Wr=[Object.freeze({__proto__:null,start:function(){!function(){G(26,navigator.webdriver?1:0);try{G(31,window.top==window.self||window.top==window?1:2)}catch(t){G(31,0)}}(),Sr(window,"error",Ot),St={},Mt={}},stop:function(){Mt={}}}),On,ln,Qt];function zr(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===jr&&"undefined"!=typeof Promise&&window.MutationObserver&&document.createTreeWalker&&"now"in Date&&"now"in performance&&"undefined"!=typeof WeakMap&&!t}catch(t){return!1}}()&&(!function(t){if(null===t||jr)return!1;for(var e in t)e in o&&(o[e]=t[e])}(t),Ar(),Jt(),Wr.forEach((function(t){return _r(t.start)()})),null===t&&Fr())}function qr(){Hr()&&(Wr.slice().reverse().forEach((function(t){return _r(t.stop)()})),Bt(),Cr(),void 0!==Lr&&(Lr[Ur]=function(){(Lr[Ur].q=Lr[Ur].q||[]).push(arguments),"start"===arguments[0]&&Lr[Ur].q.unshift(Lr[Ur].q.pop())&&Fr()}))}var Rr=Object.freeze({__proto__:null,consent:tr,consentv2:er,event:U,hashText:gn,identify:gt,metadata:Qn,pause:function(){Hr()&&(U("clarity","pause"),null===ee&&(ee=new Promise((function(t){ne=t}))))},resume:function(){Hr()&&(ee&&(ne(),ee=null,null===te&&ie()),U("clarity","resume"))},set:vt,signal:function(t){Ut=t},start:zr,stop:qr,upgrade:Mn,version:d}),Lr=window,Ur="clarity";function Fr(){if(void 0!==Lr){if(Lr[Ur]&&Lr[Ur].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=Lr[Ur]&&Lr[Ur].q||[];for(Lr[Ur]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Rr[t].apply(Rr,e)},Lr[Ur].v=d;t.length>0;)Lr[Ur].apply(Lr,t.shift())}}Fr()}();
package/build/clarity.js CHANGED
@@ -169,7 +169,7 @@ var startTime = 0;
169
169
  function computeStartTime() {
170
170
  return performance.now() + performance.timeOrigin;
171
171
  }
172
- function start$I() {
172
+ function start$J() {
173
173
  startTime = computeStartTime();
174
174
  }
175
175
  // event.timestamp is number of milliseconds elapsed since the document was loaded
@@ -185,11 +185,11 @@ function time(event) {
185
185
  var origin = event && event.view ? event.view.performance.timeOrigin : performance.timeOrigin;
186
186
  return Math.max(Math.round(ts + origin - baseline), 0);
187
187
  }
188
- function stop$F() {
188
+ function stop$G() {
189
189
  startTime = 0;
190
190
  }
191
191
 
192
- var version$1 = "0.8.22";
192
+ var version$1 = "0.8.24";
193
193
 
194
194
  // tslint:disable: no-bitwise
195
195
  function hash (input, precision) {
@@ -410,7 +410,7 @@ function redact$1(value) {
410
410
  var state$b = null;
411
411
  var buffer = null;
412
412
  var update$2 = false;
413
- function start$H() {
413
+ function start$I() {
414
414
  update$2 = false;
415
415
  reset$s();
416
416
  }
@@ -547,7 +547,7 @@ function compute$f() {
547
547
  encode$1(4 /* Event.Baseline */);
548
548
  }
549
549
  }
550
- function stop$E() {
550
+ function stop$F() {
551
551
  reset$s();
552
552
  }
553
553
 
@@ -556,15 +556,21 @@ var baseline = /*#__PURE__*/Object.freeze({
556
556
  activity: activity,
557
557
  compute: compute$f,
558
558
  reset: reset$s,
559
- start: start$H,
559
+ start: start$I,
560
560
  get state () { return state$b; },
561
- stop: stop$E,
561
+ stop: stop$F,
562
562
  track: track$8,
563
563
  visibility: visibility
564
564
  });
565
565
 
566
566
  var data$k = null;
567
567
  var updateConsent = true;
568
+ function start$H() {
569
+ updateConsent = true;
570
+ }
571
+ function stop$E() {
572
+ updateConsent = true;
573
+ }
568
574
  function config$1(consent) {
569
575
  trackConsent(consent.analytics_Storage ? 1 /* ConsentType.Implicit */ : 0 /* ConsentType.None */);
570
576
  data$k = consent;
@@ -588,6 +594,17 @@ function compute$e() {
588
594
  }
589
595
  }
590
596
 
597
+ var consent$2 = /*#__PURE__*/Object.freeze({
598
+ __proto__: null,
599
+ compute: compute$e,
600
+ config: config$1,
601
+ consent: consent$1,
602
+ consentv2: consentv2$1,
603
+ get data () { return data$k; },
604
+ start: start$H,
605
+ stop: stop$E
606
+ });
607
+
591
608
  var data$j = null;
592
609
  // custom events allow 2 parameters or 1 parameter to be passed. If 2 are passed we
593
610
  // consider it a key value pair. If only 1 is passed we only consider the event to have a value.
@@ -1195,7 +1212,7 @@ function signalsEvent(signalsPayload) {
1195
1212
  }
1196
1213
  }
1197
1214
 
1198
- var modules$1 = [baseline, dimension, variable, limit, summary, metadata$1, envelope$1, upload$1, ping$1, upgrade$1, extract];
1215
+ var modules$1 = [baseline, dimension, variable, limit, summary, consent$2, metadata$1, envelope$1, upload$1, ping$1, upgrade$1, extract];
1199
1216
  function start$B() {
1200
1217
  // Metric needs to be initialized before we can start measuring. so metric is not wrapped in measure
1201
1218
  start$G();
@@ -1253,7 +1270,6 @@ function observe$c(root) {
1253
1270
  bind(root, "change", recompute$8, true);
1254
1271
  }
1255
1272
  function recompute$8(evt) {
1256
- recompute$8.dn = 5 /* FunctionNames.ChangeRecompute */;
1257
1273
  var element = target(evt);
1258
1274
  if (element) {
1259
1275
  var value = element.value;
@@ -1295,7 +1311,6 @@ function observe$b(root) {
1295
1311
  bind(root, "contextmenu", handler$3.bind(this, 48 /* Event.ContextMenu */, root), true);
1296
1312
  }
1297
1313
  function handler$3(event, root, evt) {
1298
- handler$3.dn = 6 /* FunctionNames.ClickHandler */;
1299
1314
  var frame = iframe(root);
1300
1315
  var d = frame && frame.contentDocument ? frame.contentDocument.documentElement : document.documentElement;
1301
1316
  var x = "pageX" in evt ? Math.round(evt.pageX) : ("clientX" in evt ? Math.round(evt["clientX"] + d.scrollLeft) : null);
@@ -1432,7 +1447,6 @@ function observe$a(root) {
1432
1447
  bind(root, "paste", recompute$7.bind(this, 2 /* Clipboard.Paste */), true);
1433
1448
  }
1434
1449
  function recompute$7(action, evt) {
1435
- recompute$7.dn = 7 /* FunctionNames.ClipboardRecompute */;
1436
1450
  state$8.push({ time: time(evt), event: 38 /* Event.Clipboard */, data: { target: target(evt), action: action } });
1437
1451
  schedule(encode$4.bind(this, 38 /* Event.Clipboard */));
1438
1452
  }
@@ -1452,7 +1466,6 @@ function observe$9(root) {
1452
1466
  bind(root, "input", recompute$6, true);
1453
1467
  }
1454
1468
  function recompute$6(evt) {
1455
- recompute$6.dn = 9 /* FunctionNames.InputRecompute */;
1456
1469
  var input = target(evt);
1457
1470
  var value = get(input);
1458
1471
  if (input && input.type && value) {
@@ -1464,7 +1477,7 @@ function recompute$6(evt) {
1464
1477
  v = input.checked ? "true" : "false";
1465
1478
  break;
1466
1479
  }
1467
- var data = { target: input, value: v, type: t };
1480
+ var data = { target: input, value: v, type: t, trust: evt.isTrusted ? 1 /* BooleanFlag.True */ : 0 /* BooleanFlag.False */ };
1468
1481
  // If last entry in the queue is for the same target node as the current one, remove it so we can later swap it with current data.
1469
1482
  if (state$7.length > 0 && (state$7[state$7.length - 1].data.target === data.target)) {
1470
1483
  state$7.pop();
@@ -1505,7 +1518,6 @@ function observe$8(root) {
1505
1518
  bind(root, "touchcancel", touch.bind(this, 20 /* Event.TouchCancel */, root), true);
1506
1519
  }
1507
1520
  function mouse(event, root, evt) {
1508
- mouse.dn = 10 /* FunctionNames.PointerMouse */;
1509
1521
  var frame = iframe(root);
1510
1522
  var d = frame && frame.contentDocument ? frame.contentDocument.documentElement : document.documentElement;
1511
1523
  var x = "pageX" in evt ? Math.round(evt.pageX) : ("clientX" in evt ? Math.round(evt["clientX"] + d.scrollLeft) : null);
@@ -1522,7 +1534,6 @@ function mouse(event, root, evt) {
1522
1534
  }
1523
1535
  }
1524
1536
  function touch(event, root, evt) {
1525
- touch.dn = 11 /* FunctionNames.PointerTouch */;
1526
1537
  var frame = iframe(root);
1527
1538
  var d = frame && frame.contentDocument ? frame.contentDocument.documentElement : document.documentElement;
1528
1539
  var touches = evt.changedTouches;
@@ -1666,7 +1677,6 @@ function start$u() {
1666
1677
  recompute$5();
1667
1678
  }
1668
1679
  function recompute$5() {
1669
- recompute$5.dn = 12 /* FunctionNames.ResizeRecompute */;
1670
1680
  var de = document.documentElement;
1671
1681
  // window.innerWidth includes width of the scrollbar and is not a true representation of the viewport width.
1672
1682
  // Therefore, when possible, use documentElement's clientWidth property.
@@ -1710,7 +1720,6 @@ function observe$7(root) {
1710
1720
  }
1711
1721
  function recompute$4(event) {
1712
1722
  if (event === void 0) { event = null; }
1713
- recompute$4.dn = 13 /* FunctionNames.ScrollRecompute */;
1714
1723
  var w = window;
1715
1724
  var de = document.documentElement;
1716
1725
  var element = event ? target(event) : de;
@@ -1787,7 +1796,6 @@ function similar(last, current) {
1787
1796
  }
1788
1797
  function compute$8() {
1789
1798
  var _a, _b;
1790
- compute$8.dn = 14 /* FunctionNames.ScrollCompute */;
1791
1799
  if (initialTop) {
1792
1800
  var top_1 = metadata$2(initialTop, null);
1793
1801
  log(31 /* Dimension.InitialScrollTop */, (_a = top_1 === null || top_1 === void 0 ? void 0 : top_1.hash) === null || _a === void 0 ? void 0 : _a.join("." /* Constant.Dot */));
@@ -1816,7 +1824,6 @@ function observe$6(root) {
1816
1824
  bind(root, "selectionchange", recompute$3.bind(this, root), true);
1817
1825
  }
1818
1826
  function recompute$3(root) {
1819
- recompute$3.dn = 15 /* FunctionNames.SelectionRecompute */;
1820
1827
  var doc = root.nodeType === Node.DOCUMENT_NODE ? root : document;
1821
1828
  var current = doc.getSelection();
1822
1829
  // Bail out if we don't have a valid selection
@@ -1866,7 +1873,6 @@ function observe$5(root) {
1866
1873
  bind(root, "submit", recompute$2, true);
1867
1874
  }
1868
1875
  function recompute$2(evt) {
1869
- recompute$2.dn = 16 /* FunctionNames.SubmitRecompute */;
1870
1876
  state$4.push({ time: time(evt), event: 39 /* Event.Submit */, data: { target: target(evt) } });
1871
1877
  schedule(encode$4.bind(this, 39 /* Event.Submit */));
1872
1878
  }
@@ -1882,7 +1888,6 @@ function start$q() {
1882
1888
  bind(window, "pagehide", recompute$1);
1883
1889
  }
1884
1890
  function recompute$1(evt) {
1885
- recompute$1.dn = 17 /* FunctionNames.UnloadRecompute */;
1886
1891
  data$a = { name: evt.type, persisted: evt.persisted ? 1 /* BooleanFlag.True */ : 0 /* BooleanFlag.False */ };
1887
1892
  encode$4(26 /* Event.Unload */, time(evt));
1888
1893
  stop();
@@ -1901,7 +1906,6 @@ function start$p() {
1901
1906
  }
1902
1907
  function recompute(evt) {
1903
1908
  if (evt === void 0) { evt = null; }
1904
- recompute.dn = 18 /* FunctionNames.VisibilityRecompute */;
1905
1909
  data$9 = { visible: "visibilityState" in document ? document.visibilityState : "default" };
1906
1910
  encode$4(28 /* Event.Visibility */, time(evt));
1907
1911
  }
@@ -1913,7 +1917,6 @@ function stop$n() {
1913
1917
  }
1914
1918
 
1915
1919
  function start$o() {
1916
- start$o.dn = 8 /* FunctionNames.InteractionStart */;
1917
1920
  start$h();
1918
1921
  start$y();
1919
1922
  start$x();
@@ -2440,7 +2443,6 @@ function start$l() {
2440
2443
  compute$6();
2441
2444
  }
2442
2445
  function compute$6() {
2443
- compute$6.dn = 19 /* FunctionNames.DocumentCompute */;
2444
2446
  var body = document.body;
2445
2447
  var d = document.documentElement;
2446
2448
  var bodyClientWidth = body ? body.clientWidth : null;
@@ -2516,7 +2518,6 @@ var observedNodes = new WeakMap();
2516
2518
  // We ignore mutations if these attributes are updated
2517
2519
  var IGNORED_ATTRIBUTES = ["data-google-query-id", "data-load-complete", "data-google-container-id"];
2518
2520
  function start$k() {
2519
- start$k.dn = 21 /* FunctionNames.MutationStart */;
2520
2521
  observers = new Set();
2521
2522
  queue$2 = [];
2522
2523
  timeout$1 = null;
@@ -2582,7 +2583,6 @@ function disconnect(n) {
2582
2583
  }
2583
2584
  }
2584
2585
  function handle$1(m) {
2585
- handle$1.dn = 22 /* FunctionNames.MutationHandle */;
2586
2586
  // Queue up mutation records for asynchronous processing
2587
2587
  var now = time();
2588
2588
  track$7(6 /* Event.Mutation */, now);
@@ -2836,7 +2836,6 @@ function trigger$1() {
2836
2836
  queue$2 = [];
2837
2837
  }
2838
2838
  function generate(target, type) {
2839
- generate.dn = 23 /* FunctionNames.MutationGenerate */;
2840
2839
  measure(handle$1)([
2841
2840
  {
2842
2841
  addedNodes: [target],
@@ -3813,7 +3812,6 @@ function track$3(id, event) {
3813
3812
  process$1(node, data, interaction, data.visibility);
3814
3813
  }
3815
3814
  function compute$5() {
3816
- compute$5.dn = 24 /* FunctionNames.RegionCompute */;
3817
3815
  // Process any regions where we couldn't resolve an "id" for at the time of last intersection observer event
3818
3816
  // This could happen in cases where elements are not yet processed by Clarity's virtual DOM but browser reports a change, regardless.
3819
3817
  // For those cases we add them to the queue and re-process them below
@@ -4035,6 +4033,7 @@ function encode$4 (type, ts) {
4035
4033
  tokens = [entry.time, entry.event];
4036
4034
  tokens.push(iTarget.id);
4037
4035
  tokens.push(text$1(entry.data.value, "input", iTarget.privacy, false, entry.data.type));
4036
+ tokens.push(entry.data.trust);
4038
4037
  queue(tokens);
4039
4038
  }
4040
4039
  reset$j();
@@ -4465,7 +4464,6 @@ function stringify(encoded) {
4465
4464
  return encoded.p.length > 0 ? "{\"e\":".concat(encoded.e, ",\"a\":").concat(encoded.a, ",\"p\":").concat(encoded.p, "}") : "{\"e\":".concat(encoded.e, ",\"a\":").concat(encoded.a, "}");
4466
4465
  }
4467
4466
  function send(payload, zipped, sequence, beacon) {
4468
- var _a;
4469
4467
  if (beacon === void 0) { beacon = false; }
4470
4468
  // Upload data if a valid URL is defined in the config
4471
4469
  if (typeof config$2.upload === "string" /* Constant.String */) {
@@ -4482,14 +4480,9 @@ function send(payload, zipped, sequence, beacon) {
4482
4480
  if (dispatched) {
4483
4481
  done(sequence);
4484
4482
  }
4485
- else {
4486
- // If sendBeacon fails, we report the error and continue with XHR upload
4487
- report(new Error("".concat("BeaconError" /* Constant.BeaconError */, ": ").concat(payload.length)));
4488
- }
4489
4483
  }
4490
4484
  catch (error) {
4491
- // If sendBeacon fails, we report the error and continue with XHR upload
4492
- report(new Error("".concat("BeaconError" /* Constant.BeaconError */, ": ").concat((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.substring(0, 50), " : ").concat(payload.length)));
4485
+ // If sendBeacon fails, we do nothing and continue with XHR upload
4493
4486
  }
4494
4487
  }
4495
4488
  // Before initiating XHR upload, we check if the data has already been uploaded using sendBeacon
@@ -4643,7 +4636,6 @@ function start$f() {
4643
4636
  history$3 = {};
4644
4637
  }
4645
4638
  function handler(error) {
4646
- handler.dn = 4 /* FunctionNames.ScriptHandler */;
4647
4639
  var e = error["error"] || error;
4648
4640
  // While rare, it's possible for code to fail repeatedly during the lifetime of the same page
4649
4641
  // In those cases, we only want to log the failure first few times and not spam logs with redundant information.
@@ -5684,7 +5676,6 @@ function measure (method) {
5684
5676
  if (duration > 30 /* Setting.LongTask */) {
5685
5677
  count$1(7 /* Metric.LongTaskCount */);
5686
5678
  max(6 /* Metric.ThreadBlockedTime */, duration);
5687
- log$1(9 /* Code.FunctionExecutionTime */, 0 /* Severity.Info */, "".concat(method.dn || method.name, "-").concat(duration));
5688
5679
  }
5689
5680
  };
5690
5681
  }
@@ -5773,7 +5764,6 @@ function check$1() {
5773
5764
  return true;
5774
5765
  }
5775
5766
  function compute$1() {
5776
- compute$1.dn = 1 /* FunctionNames.HistoryCompute */;
5777
5767
  count = 0; // Reset the counter
5778
5768
  if (url !== getCurrentUrl()) {
5779
5769
  // If the url changed, start tracking it as a new page
@@ -5796,7 +5786,7 @@ function stop$6() {
5796
5786
  var status = false;
5797
5787
  function start$5() {
5798
5788
  status = true;
5799
- start$I();
5789
+ start$J();
5800
5790
  reset$4();
5801
5791
  reset$1();
5802
5792
  reset$2();
@@ -5807,7 +5797,7 @@ function stop$5() {
5807
5797
  reset$2();
5808
5798
  reset$1();
5809
5799
  reset$4();
5810
- stop$F();
5800
+ stop$G();
5811
5801
  status = false;
5812
5802
  }
5813
5803
  function active() {
@@ -5858,13 +5848,11 @@ function suspend() {
5858
5848
  }
5859
5849
  }
5860
5850
  function restart() {
5861
- restart.dn = 2 /* FunctionNames.Restart */;
5862
5851
  start();
5863
5852
  event("clarity" /* Constant.Clarity */, "restart" /* Constant.Restart */);
5864
5853
  }
5865
5854
 
5866
5855
  function start$4() {
5867
- start$4.dn = 3 /* FunctionNames.DiagnosticStart */;
5868
5856
  start$A();
5869
5857
  start$f();
5870
5858
  start$e();
@@ -5880,7 +5868,6 @@ var diagnostic = /*#__PURE__*/Object.freeze({
5880
5868
  });
5881
5869
 
5882
5870
  function start$3() {
5883
- start$3.dn = 20 /* FunctionNames.LayoutStart */;
5884
5871
  // The order below is important
5885
5872
  // and is determined by interdependencies of modules
5886
5873
  start$l();
@@ -6092,7 +6079,6 @@ function start$2() {
6092
6079
  }
6093
6080
  }
6094
6081
  function observe() {
6095
- observe.dn = 26 /* FunctionNames.ObserverObserve */;
6096
6082
  // Some browsers will throw an error for unsupported entryType, e.g. "layout-shift"
6097
6083
  // In those cases, we log it as a warning and continue with rest of the Clarity processing
6098
6084
  try {
@@ -6121,7 +6107,6 @@ function observe() {
6121
6107
  }
6122
6108
  }
6123
6109
  function handle(entries) {
6124
- handle.dn = 27 /* FunctionNames.ObserverHandle */;
6125
6110
  process(entries.getEntries());
6126
6111
  }
6127
6112
  function process(entries) {
@@ -6187,7 +6172,6 @@ function host(url) {
6187
6172
  }
6188
6173
 
6189
6174
  function start$1() {
6190
- start$1.dn = 25 /* FunctionNames.PerformanceStart */;
6191
6175
  reset();
6192
6176
  start$2();
6193
6177
  }