clarity-js 0.8.49 → 0.8.50

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 ln},get start(){return sn},get stop(){return dn},get track(){return tn}}),e=Object.freeze({__proto__:null,get data(){return Dn},get start(){return Hn},get stop(){return zn},get upgrade(){return Wn}}),n=Object.freeze({__proto__:null,get check(){return Ln},get compute(){return Fn},get data(){return Cn},get start(){return Rn},get stop(){return Jn},get trigger(){return Un}}),r=Object.freeze({__proto__:null,get compute(){return $n},get data(){return Vn},get log(){return Qn},get reset(){return tr},get start(){return Gn},get stop(){return Kn},get updates(){return Bn}}),a=Object.freeze({__proto__:null,get compute(){return lr},get config(){return ir},get consent(){return ur},get data(){return er},get start(){return rr},get stop(){return ar},get trackConsentv2(){return sr}}),o=Object.freeze({__proto__:null,get callback(){return Or},get callbacks(){return pr},get clear(){return Sr},get consent(){return br},get consentv2(){return _r},get data(){return dr},get electron(){return fr},get id(){return yr},get metadata(){return wr},get save(){return xr},get shortid(){return Mr},get start(){return gr},get stop(){return mr}}),i=Object.freeze({__proto__:null,get data(){return Xr},get envelope(){return Cr},get start(){return Yr},get stop(){return jr}}),u={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,modules:[]};function c(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var s=0;function l(){return performance.now()+performance.timeOrigin}function d(t){void 0===t&&(t=null);var e=0===s?l():s,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 p="0.8.49";function f(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,o=0;o<t.length;o+=2){if(r=(r<<5)+r^t.charCodeAt(o),o+1<t.length)a=(a<<5)+a^t.charCodeAt(o+1)}return n=Math.abs(r+11579*a),(e?n%Math.pow(2,e):n).toString(36)}var h=/\S/gi,v=255,g=!0,m=null,w=null,y=null;function b(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,o=!1,i=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,o=9===c||10===c||13===c||32===c,0===u||u===t.length-1||o){if(r||a){null===i&&(i=t.split(""));var s=t.substring(e+1,o?u:u+1);s=g&&null!==y?s.match(y)?s:S(s,"▪","▫"):T(s),i.splice(e+1-n,s.length,s),n+=s.length-1}o&&(r=!1,a=!1,e=u)}}return i?i.join(""):t}(t);case"input":case"change":return O(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?k(t):T(t);case"src":case"srcset":case"title":case"alt":case"href":case"xlink:href":return 3===n?"src"===e&&(null==t?void 0:t.startsWith("blob:"))?"blob:":"":t;case"value":case"click":case"input":case"change":return O(t);case"placeholder":return T(t)}break;case 4:switch(e){case"*T":case"data-":return r?k(t):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 S(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 _(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=u.drop;if(a&&a.length>0&&t&&t.indexOf("?")>0){var o=t.split("?"),i=o[0],c=o[1];r=i+"?"+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,v)),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),o=t.substr(r+e.length);return"".concat(a).concat(e.length.toString(36)).concat(o)}return t}function T(t){return t.replace(h,"•")}function S(t,e,n){return x(),t?t.replace(w,e).replace(m,n):t}function O(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(g&&null===m)try{m=new RegExp("\\p{N}","gu"),w=new RegExp("\\p{L}","gu"),y=new RegExp("\\p{Sc}","gu")}catch(t){g=!1}}var E=null,M=null,I=!1;function N(){I&&(E={time:d(),event:4,data:{visible:M.visible,docWidth:M.docWidth,docHeight:M.docHeight,screenWidth:M.screenWidth,screenHeight:M.screenHeight,scrollX:M.scrollX,scrollY:M.scrollY,pointerX:M.pointerX,pointerY:M.pointerY,activityTime:M.activityTime,scrollTime:M.scrollTime,pointerTime:M.pointerTime,moveX:M.moveX,moveY:M.moveY,moveTime:M.moveTime,downX:M.downX,downY:M.downY,downTime:M.downTime,upX:M.upX,upY:M.upY,upTime:M.upTime,pointerPrevX:M.pointerPrevX,pointerPrevY:M.pointerPrevY,pointerPrevTime:M.pointerPrevTime,modules:M.modules}}),M=M||{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,modules:null}}function P(t,e,n,r){switch(t){case 8:M.docWidth=e,M.docHeight=n;break;case 11:M.screenWidth=e,M.screenHeight=n;break;case 10:M.scrollX=e,M.scrollY=n,M.scrollTime=r;break;case 12:M.moveX=e,M.moveY=n,M.moveTime=r,M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r;break;case 13:M.downX=e,M.downY=n,M.downTime=r,M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r;break;case 14:M.upX=e,M.upY=n,M.upTime=r,M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r;break;default:M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r}I=!0}function X(t){M.activityTime=t}function Y(t,e){M.visible=e,M.visible||X(t),I=!0}function j(t){M.modules=Array.from(t),I=!0}function C(){I&&qn(4)}var A=Object.freeze({__proto__:null,activity:X,compute:C,dynamic:j,reset:N,start:function(){I=!1,N()},get state(){return E},stop:function(){N()},track:P,visibility:Y}),D=null;function H(t,e){$r()&&t&&"string"==typeof t&&t.length<255&&(D=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},qn(24))}var W,z=null,q=null;function R(t){t in z||(z[t]=0),t in q||(q[t]=0),z[t]++,q[t]++}function L(t,e){null!==e&&(t in z||(z[t]=0),t in q||(q[t]=0),z[t]+=e,q[t]+=e)}function U(t,e){null!==e&&!1===isNaN(e)&&(t in z||(z[t]=0),(e>z[t]||0===z[t])&&(q[t]=e,z[t]=e))}function F(t,e,n){return window.setTimeout(Hr(t),e,n)}function J(t){return window.clearTimeout(t)}var V=0,B=0,Z=null;function G(){Z&&J(Z),Z=F(K,B),V=d()}function K(){var t=d();W={gap:t-V},qn(25),W.gap<3e5?Z=F(K,B):Gr&&(H("clarity","suspend"),ra(),["mousemove","touchstart"].forEach((function(t){return zr(document,t,ta)})),["resize","scroll","pageshow"].forEach((function(t){return zr(window,t,ta)})))}var Q=Object.freeze({__proto__:null,get data(){return W},reset:G,start:function(){B=6e4,V=0},stop:function(){J(Z),V=0,B=0}}),$=null;function tt(){qn(36)}function et(){$={}}var nt=Object.freeze({__proto__:null,compute:tt,get data(){return $},reset:et,start:function(){$={}},stop:function(){$={}},track:function(t,e){if(t in $){var n=$[t],r=n[n.length-1];e-r[0]>100?$[t].push([e,0]):r[1]=e-r[0]}else $[t]=[[e,0]]}});function rt(t,e,n,r){return new(n||(n=Promise))((function(a,o){function i(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(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(i,u)}c((r=r.apply(t,e||[])).next())}))}function at(t,e){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}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 ot="CompressionStream"in window;function it(t){return rt(this,void 0,void 0,(function(){var e,n;return at(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),ot?(e=new ReadableStream({start:function(e){return rt(this,void 0,void 0,(function(){return at(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,ut(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 ut(t){return rt(this,void 0,void 0,(function(){var e,n,r,a,o;return at(this,(function(i){switch(i.label){case 0:e=t.getReader(),n=[],r=!1,a=[],i.label=1;case 1:return r?[3,3]:[4,e.read()];case 2:return o=i.sent(),r=o.done,a=o.value,r?[2,n]:(n.push.apply(n,a),[3,1]);case 3:return[2,n]}}))}))}var ct=null;function st(t,e){dt(t,"string"==typeof e?[e]:e)}function lt(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),rt(this,void 0,void 0,(function(){var a,o;return at(this,(function(i){switch(i.label){case 0:return o={},[4,ht(t)];case 1:return o.userId=i.sent(),o.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(S(u.substring(2),"*","*")):S(u,"*","*")),dt("userId",[(a=o).userId]),dt("userHint",[a.userHint]),dt("userType",[vt(t)]),e&&(dt("sessionId",[e]),a.sessionId=e),n&&(dt("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function dt(t,e){if($r()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in ct?ct[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);ct[t]=n}}function pt(){qn(34)}function ft(){ct={}}function ht(t){return rt(this,void 0,void 0,(function(){var e;return at(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 vt(t){return t&&t.indexOf("@")>0?"email":"string"}var gt=Object.freeze({__proto__:null,compute:pt,get data(){return ct},identify:lt,reset:ft,set:st,start:function(){ft()},stop:function(){ft()}});var mt,wt={};function yt(t){var e=t.error||t;return e.message in wt||(wt[e.message]=0),wt[e.message]++>=5||e&&e.message&&(mt={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},bt(31)),!0}function bt(t){return rt(this,void 0,void 0,(function(){var e;return at(this,(function(n){switch(e=[d(),t],t){case 31:e.push(mt.message),e.push(mt.line),e.push(mt.column),e.push(mt.stack),e.push(_(mt.source)),ln(e);break;case 33:_t&&(e.push(_t.code),e.push(_t.name),e.push(_t.message),e.push(_t.stack),e.push(_t.severity),ln(e,!1))}return[2]}))}))}var _t,kt={};function Tt(t,e,n,r,a){void 0===n&&(n=null),void 0===r&&(r=null),void 0===a&&(a=null);var o=n?"".concat(n,"|").concat(r):"";t in kt&&kt[t].indexOf(o)>=0||(_t={code:t,name:n,message:r,stack:a,severity:e},t in kt?kt[t].push(o):kt[t]=[o],bt(33))}var St={},Ot=new Set,xt={},Et={},Mt={},It={};function Nt(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=e[0].split(/\|(.*)/),r=parseInt(n[0]),a=n.length>1?n[1]:"",o=e.length>1?JSON.parse(e[1]):{};for(var i in xt[r]={},Et[r]={},Mt[r]={},It[r]=a,o){var u=parseInt(i),c=o[i],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.slice(1);xt[r][u]=Ct(l);break;case 2:Et[r][u]=c;break;case 4:var d=c.slice(1);Mt[r][u]=d}}}catch(t){Tt(8,1,t?t.name:null)}}function Pt(t){return JSON.parse(JSON.stringify(t))}function Xt(){try{for(var t in xt){var e=parseInt(t);if(""==It[e]||document.querySelector(It[e])){var n=xt[e];for(var r in n){var a=parseInt(r),o=(m=At(Pt(n[a])))?JSON.stringify(m).slice(0,1e4):m;o&&jt(e,a,o)}var i=Et[e];for(var u in i){var c=!1,s=parseInt(u),l=i[s];l.startsWith("@")&&(c=!0,l=l.slice(1));var d=document.querySelectorAll(l);if(d){var p=Array.from(d).map((function(t){return t.textContent})).join("<SEP>");jt(e,s,(c?f(p).trim():p).slice(0,1e4))}}var h=Mt[e];for(var v in h){var g=parseInt(v);jt(e,g,(void h[g]).trim().slice(0,1e4))}}}Ot.size>0&&qn(40)}catch(t){Tt(5,1,t?t.name:null)}var m}function Yt(){Ot.clear()}function jt(t,e,n){var r,a=!1;t in St||(St[t]={},a=!0),r=Mt[t],0==Object.keys(r).length||e in St[t]&&St[t][e]==n||(a=!0),St[t][e]=n,a&&Ot.add(t)}function Ct(t){for(var e=[],n=t.split(".");n.length>0;){var r=n.shift(),a=r.indexOf("["),o=r.indexOf("{"),i=r.indexOf("}");e.push({name:a>0?r.slice(0,a):o>0?r.slice(0,o):r,type:a>0?1:o>0?2:3,condition:o>0?r.slice(o+1,i):null})}return e}function At(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&&Dt(a,r.condition))n=At(t,a);else if(Array.isArray(a)){for(var o=[],i=0,u=a;i<u.length;i++){var c=u[i];if(Dt(c,r.condition)){var s=At(t,c);s&&o.push(s)}}n=o}return n}return null}function Dt(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}var Ht=Object.freeze({__proto__:null,clone:Pt,compute:Xt,data:St,keys:Ot,reset:Yt,start:function(){Yt()},stop:function(){Yt()},trigger:Nt,update:jt});function Wt(t,e){try{return!!t[e]}catch(t){return!1}}function zt(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}var qt=null,Rt="^";function Lt(t,e){var n;if(void 0===e&&(e=!1),Wt(document,"cookie")){var r=document.cookie.split(";");if(r)for(var a=0;a<r.length;a++){var o=r[a].split("=");if(o.length>1&&o[0]&&o[0].trim()===t){for(var i=zt(o[1]),u=i[0],c=i[1];u;)u=(n=zt(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function Ut(t,e,n){if((u.track||""==e)&&(navigator&&navigator.cookieEnabled||Wt(document,"cookie"))){var r=function(t){return encodeURIComponent(t)}(e),a=new Date;a.setDate(a.getDate()+n);var o=a?"expires="+a.toUTCString():"",i="".concat(t,"=").concat(r).concat(";").concat(o).concat(";path=/");try{if(null===qt){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(qt=".".concat(c[s]).concat(qt||""),s<c.length-1&&(document.cookie="".concat(i).concat(";").concat("domain=").concat(qt),Lt(t)===e))return;qt=""}}catch(t){qt=""}document.cookie=qt?"".concat(i).concat(";").concat("domain=").concat(qt):i}}var Ft=null;function Jt(t){try{if(!Ft)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){Ft(t)}))}catch(t){}}var Vt=[A,r,gt,n,nt,Object.freeze({__proto__:null,COOKIE_SEP:Rt,getCookie:Lt,setCookie:Ut,start:function(){qt=null},stop:function(){qt=null}}),a,o,i,t,Q,e,Ht];function Bt(){z={},q={},R(5),Vt.forEach((function(t){return Hr(t.start)()}))}function Zt(){Vt.slice().reverse().forEach((function(t){return Hr(t.stop)()})),z={},q={}}function Gt(){pt(),C(),$n(),qn(0),tt(),Fn(),Xt(),lr()}var Kt=[],Qt=null;var $t=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:Qt,log:function(){},observe:function(){},reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:Kt,stop:function(){}}),te=[],ee=null,ne=null,re=null;function ae(){te=[],ee=null,ne=null}function oe(t,e){return void 0===e&&(e=0),rt(this,void 0,void 0,(function(){var n,r,a;return at(this,(function(o){for(n=0,r=te;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){te[1===e?"unshift":"push"]({task:t,resolve:n,id:yr()})})),null===ee&&null===ne&&ie(),[2,a]}))}))}function ie(){var t=te.shift();t&&(ee=t,t.task().then((function(){t.id===yr()&&(t.resolve(),ee=null,ie())})).catch((function(e){t.id===yr()&&(e&&Tt(0,1,e.name,e.message,e.stack),ee=null,ie())})))}var ue,ce=["input","textarea","radio","button","canvas","select"],se=[];function le(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,o="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+r.scrollTop):null,i=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}(i),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}(i);0===n.detail&&c&&(a=Math.round(c.x+c.w/2),o=Math.round(c.y+c.h/2));var s=c?Math.max(Math.floor((a-c.x)/c.w*32767),0):0,l=c?Math.max(Math.floor((o-c.y)/c.h*32767),0):0;if(null!==a&&null!==o){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}}(i);se.push({time:d(n),event:t,data:{target:i,x:a,y:o,eX:s,eY:l,button:n.button,reaction:de(i),context:fe(u),text:p.text,link:u?u.href:null,hash:null,trust:n.isTrusted?1:0,isFullText:p.isFullText,w:c?c.w:0,h:c?c.h:0,tag:pe(i,"tagName").substring(0,10),class:pe(i,"className").substring(0,50),id:pe(i,"id").substring(0,25)}}),oe(ze.bind(this,t))}}function de(t){var e=pe(t,"tagName");return ce.indexOf(e)>=0?0:1}function pe(t,e){if(t.nodeType===Node.ELEMENT_NODE){var n=null==t?void 0:t[e];return"string"==typeof n?null==n?void 0:n.toLowerCase():""}return""}function fe(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 he(){se=[]}function ve(t,e){var n=0,r=null,a=null;function o(){for(var o=this,i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var c=performance.now(),s=c-n;if(0!==n&&s<e){if(a=i,r)return;r=setTimeout((function(){n=performance.now(),t.apply(o,a),a=null,r=null}),e-s)}else n=c,t.apply(this,i)}return o.cleanup=function(){r&&(clearTimeout(r),r=null,a=null)},o}var ge=null,me=!1,we=ve(ye,500);function ye(){var t=document.documentElement;ue={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},me?(J(ge),ge=F(be,500,11)):(ze(11),me=!0)}function be(t){oe(ze.bind(this,t))}function _e(){ue=null,J(ge),we.cleanup()}var ke=[],Te=null;function Se(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),o=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),i=window.innerWidth,u=window.innerHeight,c=i/3,s=i>u?.15*u:.2*u,l=u-s,p=xe(c,s),f=xe(c,l),h=t&&t.isTrusted?1:0,v={time:d(t),event:10,data:{target:r,x:a,y:o,top:p,bottom:f,trust:h}};if((null!==t||0!==a||0!==o)&&null!==a&&null!==o){var g=ke.length,m=g>1?ke[g-2]:null;m&&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}(m,v)&&ke.pop(),ke.push(v),J(Te),Te=F(Ee,500,10)}}}var Oe=ve(Se,25);function xe(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 Ee(t){oe(ze.bind(this,t))}var Me,Ie,Ne,Pe=[];function Xe(t){Pe.push({time:d(t),event:39,data:{target:Mn(t)}}),oe(ze.bind(this,39))}function Ye(){Pe=[]}function je(t){Me={name:t.type,persisted:t.persisted?1:0},ze(26,d(t)),ra()}function Ce(){Me=null}function Ae(t){if(void 0===t&&(t=null),"visibilityState"in document){var e="visible"===document.visibilityState?1:0;Ie={visible:e},ze(28,d(t))}}function De(){Ie=null}function He(){Ne=null}function We(t){Ne={focused:t},ze(50)}function ze(t,e){return void 0===e&&(e=null),rt(this,void 0,void 0,(function(){var n,r,a,o,i,u,c,s,l,p,f,h,v,g,m,w,y,k,T,S,O,x,E,M,I,N,X,j,C,A,D,H,W,z,q,R;return at(this,(function(L){switch(n=e||d(),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,o=Kt;a<o.length;a++)z=o[a],(i=In(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(i.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())),ln(r),(void 0===z.data.isPrimary||z.data.isPrimary)&&P(z.event,z.data.x,z.data.y,z.time));break;case 9:case 48:for(u=0,c=se;u<c.length;u++)z=c[u],s=In(z.data.target,z.event,z.data.text),r=[z.time,z.event],l=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(b(z.data.text,"click",s.privacy)),r.push(_(z.data.link)),r.push(l),r.push(z.data.trust),r.push(z.data.isFullText),r.push(z.data.w),r.push(z.data.h),r.push(z.data.tag),r.push(z.data.class),r.push(z.data.id),ln(r),Ue(z.time,z.event,l,z.data.x,z.data.y,z.data.reaction,z.data.context);he();break;case 38:for(p=0,f=Kt;p<f.length;p++)z=f[p],r=[z.time,z.event],(D=In(z.data.target,z.event)).id>0&&(r.push(D.id),r.push(z.data.action),ln(r));break;case 11:h=ue,r.push(h.width),r.push(h.height),P(t,h.width,h.height),_e(),ln(r);break;case 26:v=Me,r.push(v.name),r.push(v.persisted),Ce(),ln(r);break;case 27:for(g=0,m=Kt;g<m.length;g++)z=m[g],w=In(z.data.target,z.event,z.data.value),(r=[z.time,z.event]).push(w.id),r.push(b(z.data.value,"input",w.privacy,!1,z.data.type)),r.push(z.data.trust),ln(r);break;case 21:(y=Qt)&&(k=In(y.start),T=In(y.end),r.push(k.id),r.push(y.startOffset),r.push(T.id),r.push(y.endOffset),ln(r));break;case 10:for(S=0,O=ke;S<O.length;S++)z=O[S],x=In(z.data.target,z.event),E=In(z.data.top,z.event),M=In(z.data.bottom,z.event),I=(null==E?void 0:E.hash)?E.hash.join("."):"",N=(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(I),r.push(N),r.push(z.data.trust),ln(r),P(z.event,z.data.x,z.data.y,z.time));ke=[];break;case 42:for(X=0,j=Kt;X<j.length;X++)z=j[X],r=[z.time,z.event],(D=In(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(D.id),r.push(z.data.type),r.push(b(z.data.value,"change",D.privacy)),r.push(b(z.data.checksum,"checksum",D.privacy)),ln(r));break;case 39:for(C=0,A=Pe;C<A.length;C++)z=A[C],r=[z.time,z.event],(D=In(z.data.target,z.event)).id>0&&(r.push(D.id),ln(r));Ye();break;case 22:for(H=0,W=Re;H<W.length;H++)z=W[H],(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),ln(r,!1);Le();break;case 28:q=Ie,r.push(q.visible),ln(r),Y(n,q.visible),De();break;case 50:R=Ne,r.push(R.focused),ln(r,!1),He()}return[2]}))}))}var qe=[],Re=[];function Le(){Re=[]}function Ue(t,e,n,r,a,o,i){void 0===o&&(o=1),void 0===i&&(i=0),qe.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:o,context:i}}),P(e,r,a,t)}var Fe=[],Je=!1,Ve=null;function Be(t){Je&&"function"==typeof t&&Fe.push(t)}function Ze(t){if(Je){var e=t?t.split(" "):[""],n=e.length>1?parseInt(e[1],10):null;n&&Ve.has(n)||function(t,e){try{var n=document.createElement("script");n.src=t,n.async=!0,n.onload=function(){e&&(Ve.add(e),j(Ve))},n.onerror=function(){Dr(new Error("".concat("MODULE",": ").concat(t)))},document.head.appendChild(n)}catch(t){}}(e[0],n)}}var Ge,Ke,Qe,$e,tn,en,nn=Object.freeze({__proto__:null,event:Ze,register:Be,start:function(){Je=!0,Ve=new Set,u.modules&&u.modules.length>0&&u.modules.forEach((function(t){Ze(t)}))},stop:function(){Fe.reverse().forEach((function(t){try{t()}catch(t){}})),Fe=[],Je=!1}}),rn=0,an=0,on=null,un=0,cn=!1;function sn(){$e=!0,rn=0,an=0,cn=!1,un=0,Ge=[],Ke=[],Qe={},tn=null}function ln(t,e){if(void 0===e&&(e=!0),$e){var n=d(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(u.lean?!cn&&an+a.length>10485760&&(Tt(10,0),cn=!0):cn=!1,r){case 5:if(cn)break;rn+=a.length;case 37:case 6:case 43:case 45:case 46:case 44:case 51:if(cn)break;an+=a.length,Ge.push(a);break;default:Ke.push(a)}R(25);var o=function(){var t=!1===u.lean&&rn>0?100:Xr.sequence*u.delay;return"string"==typeof u.upload?Math.max(Math.min(t,3e4),100):u.delay}();n-un>2*o&&(J(on),on=null),e&&null===on&&(25!==r&&G(),on=F(pn,o),un=n,Ln(an))}}function dn(){J(on),pn(!0),rn=0,an=0,cn=!1,un=0,Ge=[],Ke=[],Qe={},tn=null,$e=!1}function pn(t){return void 0===t&&(t=!1),rt(this,void 0,void 0,(function(){var e,n,r,a,o,i,c,s;return at(this,(function(l){switch(l.label){case 0:return $e?(on=null,(e=!1===u.lean&&an>0&&(an<1048576||Xr.sequence>0))&&U(1,1),function(){if(Xr){var t=[];Re=[];for(var e=(Xr.start||0)+(Xr.duration||0),n=Math.max(e-2e3,0),r=0,a=qe;r<a.length;r++){var o=a[r];o.time>=n&&(o.time<=e&&Re.push(o),t.push(o))}qe=t,ze(22)}}(),Gt(),n=!0===t,Xr?(r=JSON.stringify(Cr(n)),a="[".concat(Ke.join(),"]"),o=e?"[".concat(Ge.join(),"]"):"",n&&o.length>0&&r.length+a.length+o.length>65536&&(o=""),i=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:o}),n?(s=null,[3,3]):[3,1]):[2]):[2];case 1:return[4,it(i)];case 2:s=l.sent(),l.label=3;case 3:return L(2,(c=s)?c.length:i.length),fn(i,c,Xr.sequence,n),Ke=[],e&&(Ge=[],an=0,rn=0,cn=!1),[2]}}))}))}function fn(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof u.upload){var a=u.upload,o=!1;if(r&&navigator&&navigator.sendBeacon)try{(o=navigator.sendBeacon.bind(navigator)(a,t))&&vn(n)}catch(t){}if(!1===o){n in Qe?Qe[n].attempts++:Qe[n]={data:t,attempts:1};var i=new XMLHttpRequest;i.open("POST",a,!0),i.timeout=15e3,i.ontimeout=function(){Dr(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(i.onreadystatechange=function(){Hr(hn)(i,n)}),i.withCredentials=!0,e?(i.setRequestHeader("Accept","application/x-clarity-gzip"),i.send(e)):i.send(t)}}else if(u.upload){(0,u.upload)(t),vn(n)}}function hn(t,e){var n=Qe[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Un(6):(0===t.status&&(u.upload=u.fallback?u.fallback:u.upload),tn={sequence:e,attempts:n.attempts,status:t.status},qn(2),fn(n.data,null,e)):(tn={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&qn(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],o=a&&a.length>0?a.split(/ (.*)/):[""];switch(o[0]){case"END":Un(6);break;case"UPGRADE":Wn("Auto");break;case"ACTION":u.action&&o.length>1&&u.action(o[1]);break;case"EXTRACT":o.length>1&&Nt(o[1]);break;case"SIGNAL":o.length>1&&Jt(o[1]);break;case"MODULE":o.length>1&&Ze(o[1]);break;case"SNAPSHOT":u.lean=!1,Nn()}}}(t.responseText),0===t.status&&(fn(n.data,null,e,!0),Un(3)),t.status>=200&&t.status<=208&&vn(e),delete Qe[e]))}function vn(t){1===t&&(xr(),Or())}function gn(t){return rt(this,void 0,void 0,(function(){var e,n,r,a,o,i,u,c,s,l,p,f,h;return at(this,(function(v){switch(e=d(),n=[e,t],t){case 8:r=en,n.push(r.width),n.push(r.height),P(t,r.width,r.height),ln(n);break;case 43:if((a=kn).length>0){for(o=0,i=a;o<i.length;o++)for(u=i[o],c=u.metadata.privacy,s=u.data,l=0,p=["tag","attributes","value"];l<p.length;l++)if(s[f=p[l]])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(mn(h,s[f][h],c));break;case"value":n.push(b(s[f],s.tag,c))}ln(function(t){for(var e=[],n={},r=0,a=null,o=0;o<t.length;o++)if("string"==typeof t[o]){var i=t[o],u=n[i]||-1;u>=0?a?a.push(u):(a=[u],e.push(a),r++):(a=null,e.push(i),n[i]=r++)}else a=null,e.push(t[o]),r++;return e}(n),!0)}}return[2]}))}))}function mn(t,e,n){return"".concat(t,"=").concat(b(e,0===t.indexOf("data-")?"data-":t,n))}function wn(){en=null}function yn(){var t,e,n,r,a,o,i,u,c,s,l,d,p,f,h,v;wn(),t=document.body,e=document.documentElement,n=t?t.clientWidth:null,r=t?t.scrollWidth:null,a=t?t.offsetWidth:null,o=e?e.clientWidth:null,i=e?e.scrollWidth:null,u=e?e.offsetWidth:null,c=Math.max(n,r,a,o,i,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!==en&&c===en.width&&v===en.height||null===c||null===v||(en={width:c,height:v},gn(8))}function bn(t){!function(t){zr(t===document?window:t,"scroll",Oe,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(function(t){zr(t,"click",le.bind(this,9,t),!0),zr(t,"contextmenu",le.bind(this,48,t),!0)}(t),function(t){zr(t,"submit",Xe,!0)}(t))}var _n=Object.freeze({__proto__:null,observe:bn,start:function(){qe=[],Le(),he(),me=!1,zr(window,"resize",we),ye(),zr(document,"visibilitychange",Ae),Ae(),zr(window,"focus",(function(){return We(1)})),zr(window,"blur",(function(){return We(0)})),ke=[],Se(),Ye(),zr(window,"pagehide",je)},stop:function(){qe=[],Le(),he(),_e(),De(),He(),J(Te),Oe.cleanup(),ke=[],Ye(),Ce()}}),kn=[],Tn=1,Sn=null;function On(){Pn(),yn(),Yn(document.documentElement),bn(document)}function xn(){return!1}function En(){}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 In(t){var e={id:0,hash:null,privacy:u.conversions?1:5};return t&&(e.id=Sn.has(t)?Sn.get(t):Yn(t)),e}function Nn(){kn=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,r=null,a=null,o=e.shift(),i=o.firstChild,u=o.parentElement?o.parentElement:o.parentNode?o.parentNode:null;i;)e.push(i),i=i.nextSibling;switch(o.nodeType){case Node.DOCUMENT_TYPE_NODE:var c=o;r="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:a=o.nodeValue,r=Sn.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=o;n=Xn(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}jn(o,u,{tag:r,attributes:n,value:a})}}(document),gn(43)}function Pn(){Sn=new WeakMap}function Xn(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:Sn.has(t)?Sn.get(t):(Sn.set(t,Tn),Tn++)}function jn(t,e,n){if(t&&n&&n.tag){var r=Yn(t),a=e?Sn.get(e):null,o=t.previousSibling?Sn.get(t.previousSibling):null;kn.push({id:r,parent:a,previous:o,children:[],data:n,selector:null,hash:null,region:null,metadata:{active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null}})}}var Cn,An=Object.freeze({__proto__:null,compute:function(){},get:function(t){return null},hashText:En,iframe:xn,metadata:In,offset:function(){return{x:0,y:0}},snapshot:Nn,start:On,stop:function(){Pn(),wn()},target:Mn,get values(){return kn}}),Dn=null;function Hn(){!u.lean&&u.upgrade&&u.upgrade("Config"),Dn=null}function Wn(t){$r()&&u.lean&&(u.lean=!1,Dn={key:t},Or(),xr(),u.upgrade&&u.upgrade(t),qn(3),u.lite&&On())}function zn(){Dn=null}function qn(t){var e=[d(),t];switch(t){case 4:var n=E;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),e.push(n.data.modules),ln(e,!1)),N();break;case 25:e.push(W.gap),ln(e);break;case 35:e.push(Cn.check),ln(e,!1);break;case 3:e.push(Dn.key),ln(e);break;case 2:e.push(tn.sequence),e.push(tn.attempts),e.push(tn.status),ln(e,!1);break;case 24:D.key&&e.push(D.key),e.push(D.value),ln(e);break;case 34:var r=Object.keys(ct);if(r.length>0){for(var a=0,o=r;a<o.length;a++){var i=o[a];e.push(i),e.push(ct[i])}ft(),ln(e,!1)}break;case 0:var u=Object.keys(q);if(u.length>0){for(var c=0,s=u;c<s.length;c++){var l=s[c],p=parseInt(l,10);e.push(p),e.push(Math.round(q[l]))}q={},ln(e,!1)}break;case 1:var f=Object.keys(Bn);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(Bn[g])}tr(),ln(e,!1)}break;case 36:var m=Object.keys($);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([],$[b]))}et(),ln(e,!1)}break;case 40:Ot.forEach((function(t){e.push(t);var n=[];for(var r in St[t]){var a=parseInt(r,10);n.push(a),n.push(St[t][r])}e.push(n)})),Yt(),ln(e,!1);break;case 47:e.push(er.source),e.push(er.ad_Storage),e.push(er.analytics_Storage),ln(e,!1)}}function Rn(){Cn={check:0}}function Ln(t){if(0===Cn.check){var e=Cn.check;e=Xr.sequence>=128?1:e,e=Xr.pageNum>=128?7:e,e=d()>72e5?2:e,(e=t>10485760?2:e)!==Cn.check&&Un(e)}}function Un(t){Cn.check=t,5!==t&&(Sr(),ra())}function Fn(){0!==Cn.check&&qn(35)}function Jn(){Cn=null}var Vn=null,Bn=null,Zn=!1;function Gn(){Vn={},Bn={},Zn=!1}function Kn(){Vn={},Bn={},Zn=!1}function Qn(t,e){if(e&&(e="".concat(e),t in Vn||(Vn[t]=[]),Vn[t].indexOf(e)<0)){if(Vn[t].length>128)return void(Zn||(Zn=!0,Un(5)));Vn[t].push(e),t in Bn||(Bn[t]=[]),Bn[t].push(e)}}function $n(){qn(1)}function tr(){Bn={},Zn=!1}var er=null,nr=!0;function rr(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;nr=!0,(null==e?void 0:e.addListener)&&e.addListener(["ad_storage","analytics_storage"],or)}function ar(){nr=!0}function or(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;if(null==e?void 0:e.getConsentState){var n=e.getConsentState("analytics_storage");_r(function(t){var e={source:2,ad_Storage:1===t.ad_Storage?"granted":"denied",analytics_Storage:1===t.analytics_Storage?"granted":"denied"};return e}({ad_Storage:e.getConsentState("ad_storage"),analytics_Storage:n}))}}function ir(t){cr(t.analytics_Storage?1:0),er=t}function ur(){cr(2)}function cr(t){Qn(36,t.toString())}function sr(t){er=t,qn(47)}function lr(){var t;if(nr&&(qn(47),nr=!1,!u.track)){var e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;(null==e?void 0:e.usedUpdate)&&or()}}var dr=null,pr=[],fr=0,hr=null,vr={source:7,ad_Storage:"denied",analytics_Storage:"denied"};function gr(){var t,e,n,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:"",o=(new Date).getTimezoneOffset().toString(),i=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";fr=r.indexOf("Electron")>0?1:0;var s=function(){var t={session:Mr(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=Lt("_clsk",!u.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-Ir(n[1])<18e5&&(t.session=n[0],t.count=Ir(n[2])+1,t.upgrade=Ir(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),l=Nr(),d=u.projectId||f(location.host);dr={projectId:d,userId:l.id,sessionId:s.session,pageNum:s.count},u.lean=u.track&&null!==s.upgrade?0===s.upgrade:u.lean,u.upload=u.track&&"string"==typeof u.upload&&s.upload&&s.upload.length>"https://".length?s.upload:u.upload,Qn(0,r),Qn(3,c),Qn(1,_(location.href,!!fr)),Qn(2,document.referrer),Qn(15,function(){var t=Mr();if(u.track&&Wt(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,i),Qn(34,a),Qn(35,o),U(0,s.ts),U(1,0),U(35,fr);var p,h=null===window||void 0===window?void 0:window.Zone;h&&"__symbol__"in h&&U(39,1),navigator&&(Qn(9,navigator.language),U(33,navigator.hardwareConcurrency),U(32,navigator.maxTouchPoints),U(34,Math.round(navigator.deviceMemory)),(p=navigator.userAgentData)&&p.getHighEntropyValues?p.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),U(27,t.mobile?1:0)})):Qn(22,navigator.platform)),screen&&(U(14,Math.round(screen.width)),U(15,Math.round(screen.height)),U(16,Math.round(screen.colorDepth)));for(var v=0,g=u.cookies;v<g.length;v++){var m=g[v],w=Lt(m);w&&st(m,w)}null===hr&&(hr={source:l.consent?6:0,ad_Storage:u.track?"granted":"denied",analytics_Storage:u.track?"granted":"denied"}),ir(kr(hr)),Er(l)}function mr(){dr=null,pr.forEach((function(t){t.called=!1}))}function wr(t,e,n,r){void 0===e&&(e=!0),void 0===n&&(n=!1),void 0===r&&(r=!1);var a=u.lean?0:1,o=!1;dr&&(a||!1===e)&&(t(dr,!u.lean,r?hr:void 0),o=!0),!n&&o||pr.push({callback:t,wait:e,recall:n,called:o,consentInfo:r})}function yr(){return dr?[dr.userId,dr.sessionId,dr.pageNum].join("."):""}function br(t){void 0===t&&(t=!0),t?(_r({source:4,ad_Storage:"granted",analytics_Storage:"granted"}),ur()):_r({source:4,ad_Storage:"denied",analytics_Storage:"denied"})}function _r(t,e){var n;void 0===t&&(t=vr),void 0===e&&(e=5);var r={source:null!==(n=t.source)&&void 0!==n?n:e,ad_Storage:Tr(t.ad_Storage,null==hr?void 0:hr.ad_Storage),analytics_Storage:Tr(t.analytics_Storage,null==hr?void 0:hr.analytics_Storage)};if(hr&&r.ad_Storage===hr.ad_Storage&&r.analytics_Storage===hr.analytics_Storage)return hr.source=r.source,sr(kr(hr)),void ur();hr=r,Or(!0);var a=kr(hr);if(!a.analytics_Storage&&u.track)return u.track=!1,Sr(!0),ra(),void window.setTimeout(na,250);$r()&&a.analytics_Storage&&(u.track=!0,Er(Nr(),1),xr()),sr(a),ur()}function kr(t){var e;return{source:null!==(e=t.source)&&void 0!==e?e:255,ad_Storage:"granted"===t.ad_Storage?1:0,analytics_Storage:"granted"===t.analytics_Storage?1:0}}function Tr(t,e){return void 0===e&&(e="denied"),"string"==typeof t?t.toLowerCase():e}function Sr(t){void 0===t&&(t=!1),Ut("_clsk","",0),t&&Ut("_clck","",0)}function Or(t){void 0===t&&(t=!1),function(t,e){void 0===e&&(e=!1);if(pr.length>0)for(var n=0;n<pr.length;n++){var r=pr[n];r.callback&&(!r.called&&!e||r.consentInfo&&e)&&(!r.wait||t)&&(r.callback(dr,!u.lean,r.consentInfo?hr:void 0),r.called=!0,r.recall||(pr.splice(n,1),n--))}}(u.lean?0:1,t)}function xr(){if(dr&&u.track){var t=Math.round(Date.now()),e=u.upload&&"string"==typeof u.upload?u.upload.replace("https://",""):"",n=u.lean?0:1;Ut("_clsk",[dr.sessionId,t,dr.pageNum,n,e].join(Rt),1)}}function Er(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===u.dob?0:u.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&Ut("_clck",[dr.userId,2,n.toString(36),e,r].join(Rt),365)}function Mr(){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 Ir(t,e){return void 0===e&&(e=10),parseInt(t,e)}function Nr(){var t={id:Mr(),version:0,expiry:null,consent:0,dob:0},e=Lt("_clck",!u.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=Ir(n[1])),n.length>2&&(t.expiry=Ir(n[2],36)),n.length>3&&1===Ir(n[3])&&(t.consent=1),n.length>4&&Ir(n[1])>1&&(t.dob=Ir(n[4])),u.track=u.track||1===t.consent,t.id=u.track?n[0]:t.id}return t}var Pr,Xr=null;function Yr(){var t=dr;Xr={version:p,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 jr(){Xr=null}function Cr(t){return Xr.start=Xr.start+Xr.duration,Xr.duration=d()-Xr.start,Xr.sequence++,Xr.upload=t&&"sendBeacon"in navigator?1:0,Xr.end=t?1:0,Xr.applicationPlatform=0,Xr.url=_(location.href,!1,!0),[Xr.version,Xr.sequence,Xr.start,Xr.duration,Xr.projectId,Xr.userId,Xr.sessionId,Xr.pageNum,Xr.upload,Xr.end,Xr.applicationPlatform,Xr.url]}function Ar(){Pr=[]}function Dr(t){if(Pr&&-1===Pr.indexOf(t.message)){var e=u.report;if(e&&e.length>0&&Xr){var n={v:Xr.version,p:Xr.projectId,u:Xr.userId,s:Xr.sessionId,n:Xr.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 Hr(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw Dr(t)}var n=performance.now()-e;L(4,n),n>30&&(R(7),U(6,n),t.dn&&Tt(9,0,"".concat(t.dn,"-").concat(n)))}}var Wr=new Map;function zr(t,e,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!0),n=Hr(n);try{t[c("addEventListener")](e,n,{capture:r,passive:a}),function(t){return Wr.has(t)}(t)||Wr.set(t,[]),Wr.get(t).push({event:e,listener:n,options:{capture:r,passive:a}})}catch(t){}}function qr(){Wr.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[c("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),Wr.delete(e)}(t,e)})),Wr=new Map}var Rr=null,Lr=null,Ur=null,Fr=0;function Jr(){return!(Fr++>20)||(Tt(4,0),!1)}function Vr(){Fr=0,Ur!==Zr()&&(ra(),window.setTimeout(Br,250))}function Br(){na(),U(29,1)}function Zr(){return location.href?location.href.replace(location.hash,""):location.href}var Gr=!1;function Kr(){Gr=!0,s=l(),ae(),qr(),Ar(),Ur=Zr(),Fr=0,zr(window,"popstate",Vr),null===Rr&&(Rr=history.pushState,history.pushState=function(){Rr.apply(this,arguments),$r()&&Jr()&&Vr()}),null===Lr&&(Lr=history.replaceState,history.replaceState=function(){Lr.apply(this,arguments),$r()&&Jr()&&Vr()})}function Qr(){Ur=null,Fr=0,Ar(),qr(),ae(),s=0,Gr=!1}function $r(){return Gr}function ta(){na(),H("clarity","restart")}var ea=[Object.freeze({__proto__:null,start:function(){!function(){U(26,navigator.webdriver?1:0);try{U(31,window.top==window.self||window.top==window?1:2)}catch(t){U(31,0)}}(),zr(window,"error",yt),wt={},kt={}},stop:function(){kt={}}}),An,_n,$t,nn];function na(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===Gr&&"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||Gr)return!1;for(var e in t)e in u&&(u[e]=t[e])}(t),Kr(),Bt(),ea.forEach((function(t){return Hr(t.start)()})),null===t&&ua())}function ra(){$r()&&(ea.slice().reverse().forEach((function(t){return Hr(t.stop)()})),Zt(),Qr(),void 0!==oa&&(oa[ia]=function(){(oa[ia].q=oa[ia].q||[]).push(arguments),"start"===arguments[0]&&oa[ia].q.unshift(oa[ia].q.pop())&&ua()}))}var aa=Object.freeze({__proto__:null,consent:br,consentv2:_r,dlog:Qn,event:H,hashText:En,identify:lt,maxMetric:U,measure:Hr,metadata:wr,pause:function(){$r()&&(H("clarity","pause"),null===ne&&(ne=new Promise((function(t){re=t}))))},queue:ln,register:Be,resume:function(){$r()&&(ne&&(re(),ne=null,null===ee&&ie()),H("clarity","resume"))},schedule:oe,set:st,signal:function(t){Ft=t},start:na,stop:ra,time:d,upgrade:Wn,version:p}),oa=window,ia="clarity";function ua(){if(void 0!==oa){if(oa[ia]&&oa[ia].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=oa[ia]&&oa[ia].q||[];for(oa[ia]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return aa[t].apply(aa,e)},oa[ia].v=p;t.length>0;)oa[ia].apply(oa,t.shift())}}ua()}();
1
+ !function(){"use strict";var t=Object.freeze({__proto__:null,get queue(){return ln},get start(){return sn},get stop(){return dn},get track(){return tn}}),e=Object.freeze({__proto__:null,get data(){return Wn},get start(){return zn},get stop(){return Ln},get upgrade(){return qn}}),n=Object.freeze({__proto__:null,get check(){return Fn},get compute(){return Vn},get data(){return Dn},get start(){return Un},get stop(){return Bn},get trigger(){return Jn}}),r=Object.freeze({__proto__:null,get compute(){return er},get data(){return Zn},get log(){return tr},get reset(){return nr},get start(){return Qn},get stop(){return $n},get updates(){return Gn}}),a=Object.freeze({__proto__:null,get compute(){return pr},get config(){return cr},get consent(){return sr},get data(){return rr},get start(){return or},get stop(){return ir},get trackConsentv2(){return dr}}),o=Object.freeze({__proto__:null,get callback(){return Er},get callbacks(){return hr},get clear(){return xr},get consent(){return kr},get consentv2(){return Tr},get data(){return fr},get electron(){return vr},get id(){return _r},get metadata(){return br},get save(){return Mr},get shortid(){return Nr},get start(){return wr},get stop(){return yr}}),i=Object.freeze({__proto__:null,get data(){return jr},get envelope(){return Dr},get start(){return Cr},get stop(){return Ar}}),u={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,modules:[]};function c(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var s=0;function l(){return performance.now()+performance.timeOrigin}function d(t){void 0===t&&(t=null);var e=0===s?l():s,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 p="0.8.50";function f(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,o=0;o<t.length;o+=2){if(r=(r<<5)+r^t.charCodeAt(o),o+1<t.length)a=(a<<5)+a^t.charCodeAt(o+1)}return n=Math.abs(r+11579*a),(e?n%Math.pow(2,e):n).toString(36)}var h=/\S/gi,v=255,g=!0,m=null,w=null,y=null;function b(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,o=!1,i=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,o=9===c||10===c||13===c||32===c,0===u||u===t.length-1||o){if(r||a){null===i&&(i=t.split(""));var s=t.substring(e+1,o?u:u+1);s=g&&null!==y?s.match(y)?s:S(s,"▪","▫"):T(s),i.splice(e+1-n,s.length,s),n+=s.length-1}o&&(r=!1,a=!1,e=u)}}return i?i.join(""):t}(t);case"input":case"change":return O(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?k(t):T(t);case"src":case"srcset":case"title":case"alt":case"href":case"xlink:href":return 3===n?"src"===e&&(null==t?void 0:t.startsWith("blob:"))?"blob:":"":t;case"value":case"click":case"input":case"change":return O(t);case"placeholder":return T(t)}break;case 4:switch(e){case"*T":case"data-":return r?k(t):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 S(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 _(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=u.drop;if(a&&a.length>0&&t&&t.indexOf("?")>0){var o=t.split("?"),i=o[0],c=o[1];r=i+"?"+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,v)),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),o=t.substr(r+e.length);return"".concat(a).concat(e.length.toString(36)).concat(o)}return t}function T(t){return t.replace(h,"•")}function S(t,e,n){return x(),t?t.replace(w,e).replace(m,n):t}function O(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(g&&null===m)try{m=new RegExp("\\p{N}","gu"),w=new RegExp("\\p{L}","gu"),y=new RegExp("\\p{Sc}","gu")}catch(t){g=!1}}var E=null,M=null,I=!1;function N(){I&&(E={time:d(),event:4,data:{visible:M.visible,docWidth:M.docWidth,docHeight:M.docHeight,screenWidth:M.screenWidth,screenHeight:M.screenHeight,scrollX:M.scrollX,scrollY:M.scrollY,pointerX:M.pointerX,pointerY:M.pointerY,activityTime:M.activityTime,scrollTime:M.scrollTime,pointerTime:M.pointerTime,moveX:M.moveX,moveY:M.moveY,moveTime:M.moveTime,downX:M.downX,downY:M.downY,downTime:M.downTime,upX:M.upX,upY:M.upY,upTime:M.upTime,pointerPrevX:M.pointerPrevX,pointerPrevY:M.pointerPrevY,pointerPrevTime:M.pointerPrevTime,modules:M.modules}}),M=M||{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,modules:null}}function P(t,e,n,r){switch(t){case 8:M.docWidth=e,M.docHeight=n;break;case 11:M.screenWidth=e,M.screenHeight=n;break;case 10:M.scrollX=e,M.scrollY=n,M.scrollTime=r;break;case 12:M.moveX=e,M.moveY=n,M.moveTime=r,M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r;break;case 13:M.downX=e,M.downY=n,M.downTime=r,M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r;break;case 14:M.upX=e,M.upY=n,M.upTime=r,M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r;break;default:M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r}I=!0}function X(t){M.activityTime=t}function Y(t,e){M.visible=e,M.visible||X(t),I=!0}function j(t){M.modules=Array.from(t),I=!0}function C(){I&&Rn(4)}var A=Object.freeze({__proto__:null,activity:X,compute:C,dynamic:j,reset:N,start:function(){I=!1,N()},get state(){return E},stop:function(){N()},track:P,visibility:Y}),D=null;function H(t,e){ea()&&t&&"string"==typeof t&&t.length<255&&(D=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},Rn(24))}var W,z=null,q=null;function L(t){t in z||(z[t]=0),t in q||(q[t]=0),z[t]++,q[t]++}function R(t,e){null!==e&&(t in z||(z[t]=0),t in q||(q[t]=0),z[t]+=e,q[t]+=e)}function U(t,e){null!==e&&!1===isNaN(e)&&(t in z||(z[t]=0),(e>z[t]||0===z[t])&&(q[t]=e,z[t]=e))}function F(t,e,n){return window.setTimeout(zr(t),e,n)}function J(t){return window.clearTimeout(t)}var V=0,B=0,Z=null;function G(){Z&&J(Z),Z=F(K,B),V=d()}function K(){var t=d();W={gap:t-V},Rn(25),W.gap<3e5?Z=F(K,B):Qr&&(H("clarity","suspend"),oa(),["mousemove","touchstart"].forEach((function(t){return Lr(document,t,na)})),["resize","scroll","pageshow"].forEach((function(t){return Lr(window,t,na)})))}var Q=Object.freeze({__proto__:null,get data(){return W},reset:G,start:function(){B=6e4,V=0},stop:function(){J(Z),V=0,B=0}}),$=null;function tt(){Rn(36)}function et(){$={}}var nt=Object.freeze({__proto__:null,compute:tt,get data(){return $},reset:et,start:function(){$={}},stop:function(){$={}},track:function(t,e){if(t in $){var n=$[t],r=n[n.length-1];e-r[0]>100?$[t].push([e,0]):r[1]=e-r[0]}else $[t]=[[e,0]]}});function rt(t,e,n,r){return new(n||(n=Promise))((function(a,o){function i(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(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(i,u)}c((r=r.apply(t,e||[])).next())}))}function at(t,e){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)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 i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}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 ot="CompressionStream"in window;function it(t){return rt(this,void 0,void 0,(function(){var e,n;return at(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),ot?(e=new ReadableStream({start:function(e){return rt(this,void 0,void 0,(function(){return at(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,ut(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 ut(t){return rt(this,void 0,void 0,(function(){var e,n,r,a,o;return at(this,(function(i){switch(i.label){case 0:e=t.getReader(),n=[],r=!1,a=[],i.label=1;case 1:return r?[3,3]:[4,e.read()];case 2:return o=i.sent(),r=o.done,a=o.value,r?[2,n]:(n.push.apply(n,a),[3,1]);case 3:return[2,n]}}))}))}var ct=null;function st(t,e){dt(t,"string"==typeof e?[e]:e)}function lt(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),rt(this,void 0,void 0,(function(){var a,o;return at(this,(function(i){switch(i.label){case 0:return o={},[4,ht(t)];case 1:return o.userId=i.sent(),o.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(S(u.substring(2),"*","*")):S(u,"*","*")),dt("userId",[(a=o).userId]),dt("userHint",[a.userHint]),dt("userType",[vt(t)]),e&&(dt("sessionId",[e]),a.sessionId=e),n&&(dt("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function dt(t,e){if(ea()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in ct?ct[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);ct[t]=n}}function pt(){Rn(34)}function ft(){ct={}}function ht(t){return rt(this,void 0,void 0,(function(){var e;return at(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 vt(t){return t&&t.indexOf("@")>0?"email":"string"}var gt=Object.freeze({__proto__:null,compute:pt,get data(){return ct},identify:lt,reset:ft,set:st,start:function(){ft()},stop:function(){ft()}});var mt,wt={};function yt(t){var e=t.error||t;return e.message in wt||(wt[e.message]=0),wt[e.message]++>=5||e&&e.message&&(mt={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},bt(31)),!0}function bt(t){return rt(this,void 0,void 0,(function(){var e;return at(this,(function(n){switch(e=[d(),t],t){case 31:e.push(mt.message),e.push(mt.line),e.push(mt.column),e.push(mt.stack),e.push(_(mt.source)),ln(e);break;case 33:_t&&(e.push(_t.code),e.push(_t.name),e.push(_t.message),e.push(_t.stack),e.push(_t.severity),ln(e,!1))}return[2]}))}))}var _t,kt={};function Tt(t,e,n,r,a){void 0===n&&(n=null),void 0===r&&(r=null),void 0===a&&(a=null);var o=n?"".concat(n,"|").concat(r):"";t in kt&&kt[t].indexOf(o)>=0||(_t={code:t,name:n,message:r,stack:a,severity:e},t in kt?kt[t].push(o):kt[t]=[o],bt(33))}var St={},Ot=new Set,xt={},Et={},Mt={},It={};function Nt(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=e[0].split(/\|(.*)/),r=parseInt(n[0]),a=n.length>1?n[1]:"",o=e.length>1?JSON.parse(e[1]):{};for(var i in xt[r]={},Et[r]={},Mt[r]={},It[r]=a,o){var u=parseInt(i),c=o[i],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.slice(1);xt[r][u]=Ct(l);break;case 2:Et[r][u]=c;break;case 4:var d=c.slice(1);Mt[r][u]=d}}}catch(t){Tt(8,1,t?t.name:null)}}function Pt(t){return JSON.parse(JSON.stringify(t))}function Xt(){try{for(var t in xt){var e=parseInt(t);if(""==It[e]||document.querySelector(It[e])){var n=xt[e];for(var r in n){var a=parseInt(r),o=(m=At(Pt(n[a])))?JSON.stringify(m).slice(0,1e4):m;o&&jt(e,a,o)}var i=Et[e];for(var u in i){var c=!1,s=parseInt(u),l=i[s];l.startsWith("@")&&(c=!0,l=l.slice(1));var d=document.querySelectorAll(l);if(d){var p=Array.from(d).map((function(t){return t.textContent})).join("<SEP>");jt(e,s,(c?f(p).trim():p).slice(0,1e4))}}var h=Mt[e];for(var v in h){var g=parseInt(v);jt(e,g,(void h[g]).trim().slice(0,1e4))}}}Ot.size>0&&Rn(40)}catch(t){Tt(5,1,t?t.name:null)}var m}function Yt(){Ot.clear()}function jt(t,e,n){var r,a=!1;t in St||(St[t]={},a=!0),r=Mt[t],0==Object.keys(r).length||e in St[t]&&St[t][e]==n||(a=!0),St[t][e]=n,a&&Ot.add(t)}function Ct(t){for(var e=[],n=t.split(".");n.length>0;){var r=n.shift(),a=r.indexOf("["),o=r.indexOf("{"),i=r.indexOf("}");e.push({name:a>0?r.slice(0,a):o>0?r.slice(0,o):r,type:a>0?1:o>0?2:3,condition:o>0?r.slice(o+1,i):null})}return e}function At(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&&Dt(a,r.condition))n=At(t,a);else if(Array.isArray(a)){for(var o=[],i=0,u=a;i<u.length;i++){var c=u[i];if(Dt(c,r.condition)){var s=At(t,c);s&&o.push(s)}}n=o}return n}return null}function Dt(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}var Ht=Object.freeze({__proto__:null,clone:Pt,compute:Xt,data:St,keys:Ot,reset:Yt,start:function(){Yt()},stop:function(){Yt()},trigger:Nt,update:jt});function Wt(t,e){try{return!!t[e]}catch(t){return!1}}function zt(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}var qt=null,Lt="^";function Rt(t,e){var n;if(void 0===e&&(e=!1),Wt(document,"cookie")){var r=document.cookie.split(";");if(r)for(var a=0;a<r.length;a++){var o=r[a].split("=");if(o.length>1&&o[0]&&o[0].trim()===t){for(var i=zt(o[1]),u=i[0],c=i[1];u;)u=(n=zt(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function Ut(t,e,n){if((u.track||""==e)&&(navigator&&navigator.cookieEnabled||Wt(document,"cookie"))){var r=function(t){return encodeURIComponent(t)}(e),a=new Date;a.setDate(a.getDate()+n);var o=a?"expires="+a.toUTCString():"",i="".concat(t,"=").concat(r).concat(";").concat(o).concat(";path=/");try{if(null===qt){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(qt=".".concat(c[s]).concat(qt||""),s<c.length-1&&(document.cookie="".concat(i).concat(";").concat("domain=").concat(qt),Rt(t)===e))return;qt=""}}catch(t){qt=""}document.cookie=qt?"".concat(i).concat(";").concat("domain=").concat(qt):i}}var Ft=null;function Jt(t){try{if(!Ft)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){Ft(t)}))}catch(t){}}var Vt=[A,r,gt,n,nt,Object.freeze({__proto__:null,COOKIE_SEP:Lt,getCookie:Rt,setCookie:Ut,start:function(){qt=null},stop:function(){qt=null}}),a,o,i,t,Q,e,Ht];function Bt(){z={},q={},L(5),Vt.forEach((function(t){return zr(t.start)()}))}function Zt(){Vt.slice().reverse().forEach((function(t){return zr(t.stop)()})),z={},q={}}function Gt(){pt(),C(),er(),Rn(0),tt(),Vn(),Xt(),pr()}var Kt=[],Qt=null;var $t=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:Qt,log:function(){},observe:function(){},reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:Kt,stop:function(){}}),te=[],ee=null,ne=null,re=null;function ae(){te=[],ee=null,ne=null}function oe(t,e){return void 0===e&&(e=0),rt(this,void 0,void 0,(function(){var n,r,a;return at(this,(function(o){for(n=0,r=te;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){te[1===e?"unshift":"push"]({task:t,resolve:n,id:_r()})})),null===ee&&null===ne&&ie(),[2,a]}))}))}function ie(){var t=te.shift();t&&(ee=t,t.task().then((function(){t.id===_r()&&(t.resolve(),ee=null,ie())})).catch((function(e){t.id===_r()&&(e&&Tt(0,1,e.name,e.message,e.stack),ee=null,ie())})))}var ue,ce=["input","textarea","radio","button","canvas","select"],se=[];function le(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,o="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+r.scrollTop):null,i=Nn(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}(i),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}(i);0===n.detail&&c&&(a=Math.round(c.x+c.w/2),o=Math.round(c.y+c.h/2));var s=c?Math.max(Math.floor((a-c.x)/c.w*32767),0):0,l=c?Math.max(Math.floor((o-c.y)/c.h*32767),0):0;if(null!==a&&null!==o){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}}(i);se.push({time:d(n),event:t,data:{target:i,x:a,y:o,eX:s,eY:l,button:n.button,reaction:de(i),context:fe(u),text:p.text,link:u?u.href:null,hash:null,trust:n.isTrusted?1:0,isFullText:p.isFullText,w:c?c.w:0,h:c?c.h:0,tag:pe(i,"tagName").substring(0,10),class:pe(i,"className").substring(0,50),id:pe(i,"id").substring(0,25)}}),oe(ze.bind(this,t))}}function de(t){var e=pe(t,"tagName");return ce.indexOf(e)>=0?0:1}function pe(t,e){if(t.nodeType===Node.ELEMENT_NODE){var n=null==t?void 0:t[e];return"string"==typeof n?null==n?void 0:n.toLowerCase():""}return""}function fe(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 he(){se=[]}function ve(t,e){var n=0,r=null,a=null;function o(){for(var o=this,i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var c=performance.now(),s=c-n;if(0!==n&&s<e){if(a=i,r)return;r=setTimeout((function(){n=performance.now(),t.apply(o,a),a=null,r=null}),e-s)}else n=c,t.apply(this,i)}return o.cleanup=function(){r&&(clearTimeout(r),r=null,a=null)},o}var ge=null,me=!1,we=ve(ye,500);function ye(){var t=document.documentElement;ue={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},me?(J(ge),ge=F(be,500,11)):(ze(11),me=!0)}function be(t){oe(ze.bind(this,t))}function _e(){ue=null,J(ge),we.cleanup()}var ke=[],Te=null;function Se(t){void 0===t&&(t=null);var e=window,n=document.documentElement,r=t?Nn(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),o=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),i=window.innerWidth,u=window.innerHeight,c=i/3,s=i>u?.15*u:.2*u,l=u-s,p=xe(c,s),f=xe(c,l),h=t&&t.isTrusted?1:0,v={time:d(t),event:10,data:{target:r,x:a,y:o,top:p,bottom:f,trust:h}};if((null!==t||0!==a||0!==o)&&null!==a&&null!==o){var g=ke.length,m=g>1?ke[g-2]:null;m&&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}(m,v)&&ke.pop(),ke.push(v),J(Te),Te=F(Ee,500,10)}}}var Oe=ve(Se,25);function xe(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 Ee(t){oe(ze.bind(this,t))}var Me,Ie,Ne,Pe=[];function Xe(t){Pe.push({time:d(t),event:39,data:{target:Nn(t)}}),oe(ze.bind(this,39))}function Ye(){Pe=[]}function je(t){Me={name:t.type,persisted:t.persisted?1:0},ze(26,d(t)),oa()}function Ce(){Me=null}function Ae(t){if(void 0===t&&(t=null),"visibilityState"in document){var e="visible"===document.visibilityState?1:0;Ie={visible:e},ze(28,d(t))}}function De(){Ie=null}function He(){Ne=null}function We(t){Ne={focused:t},ze(50)}function ze(t,e){return void 0===e&&(e=null),rt(this,void 0,void 0,(function(){var n,r,a,o,i,u,c,s,l,p,f,h,v,g,m,w,y,k,T,S,O,x,E,M,I,N,X,j,C,A,D,H,W,z,q,L;return at(this,(function(R){switch(n=e||d(),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,o=Kt;a<o.length;a++)z=o[a],(i=Pn(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(i.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())),ln(r),(void 0===z.data.isPrimary||z.data.isPrimary)&&P(z.event,z.data.x,z.data.y,z.time));break;case 9:case 48:for(u=0,c=se;u<c.length;u++)z=c[u],s=Pn(z.data.target,z.event,z.data.text),r=[z.time,z.event],l=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(b(z.data.text,"click",s.privacy)),r.push(_(z.data.link)),r.push(l),r.push(z.data.trust),r.push(z.data.isFullText),r.push(z.data.w),r.push(z.data.h),r.push(z.data.tag),r.push(z.data.class),r.push(z.data.id),ln(r),Ue(z.time,z.event,l,z.data.x,z.data.y,z.data.reaction,z.data.context);he();break;case 38:for(p=0,f=Kt;p<f.length;p++)z=f[p],r=[z.time,z.event],(D=Pn(z.data.target,z.event)).id>0&&(r.push(D.id),r.push(z.data.action),ln(r));break;case 11:h=ue,r.push(h.width),r.push(h.height),P(t,h.width,h.height),_e(),ln(r);break;case 26:v=Me,r.push(v.name),r.push(v.persisted),Ce(),ln(r);break;case 27:for(g=0,m=Kt;g<m.length;g++)z=m[g],w=Pn(z.data.target,z.event,z.data.value),(r=[z.time,z.event]).push(w.id),r.push(b(z.data.value,"input",w.privacy,!1,z.data.type)),r.push(z.data.trust),ln(r);break;case 21:(y=Qt)&&(k=Pn(y.start),T=Pn(y.end),r.push(k.id),r.push(y.startOffset),r.push(T.id),r.push(y.endOffset),ln(r));break;case 10:for(S=0,O=ke;S<O.length;S++)z=O[S],x=Pn(z.data.target,z.event),E=Pn(z.data.top,z.event),M=Pn(z.data.bottom,z.event),I=(null==E?void 0:E.hash)?E.hash.join("."):"",N=(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(I),r.push(N),r.push(z.data.trust),ln(r),P(z.event,z.data.x,z.data.y,z.time));ke=[];break;case 42:for(X=0,j=Kt;X<j.length;X++)z=j[X],r=[z.time,z.event],(D=Pn(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(D.id),r.push(z.data.type),r.push(b(z.data.value,"change",D.privacy)),r.push(b(z.data.checksum,"checksum",D.privacy)),ln(r));break;case 39:for(C=0,A=Pe;C<A.length;C++)z=A[C],r=[z.time,z.event],(D=Pn(z.data.target,z.event)).id>0&&(r.push(D.id),ln(r));Ye();break;case 22:for(H=0,W=Le;H<W.length;H++)z=W[H],(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),ln(r,!1);Re();break;case 28:q=Ie,r.push(q.visible),ln(r),Y(n,q.visible),De();break;case 50:L=Ne,r.push(L.focused),ln(r,!1),He()}return[2]}))}))}var qe=[],Le=[];function Re(){Le=[]}function Ue(t,e,n,r,a,o,i){void 0===o&&(o=1),void 0===i&&(i=0),qe.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:o,context:i}}),P(e,r,a,t)}var Fe=[],Je=!1,Ve=null;function Be(t){Je&&"function"==typeof t&&Fe.push(t)}function Ze(t){if(Je){var e=t?t.split(" "):[""],n=e.length>1?parseInt(e[1],10):null;n&&Ve.has(n)||function(t,e){try{var n=document.createElement("script");n.src=t,n.async=!0,n.onload=function(){e&&(Ve.add(e),j(Ve))},n.onerror=function(){Wr(new Error("".concat("MODULE",": ").concat(t)))},document.head.appendChild(n)}catch(t){}}(e[0],n)}}var Ge,Ke,Qe,$e,tn,en,nn=Object.freeze({__proto__:null,event:Ze,register:Be,start:function(){Je=!0,Ve=new Set,u.modules&&u.modules.length>0&&u.modules.forEach((function(t){Ze(t)}))},stop:function(){Fe.reverse().forEach((function(t){try{t()}catch(t){}})),Fe=[],Je=!1}}),rn=0,an=0,on=null,un=0,cn=!1;function sn(){$e=!0,rn=0,an=0,cn=!1,un=0,Ge=[],Ke=[],Qe={},tn=null}function ln(t,e){if(void 0===e&&(e=!0),$e){var n=d(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(u.lean?!cn&&an+a.length>10485760&&(Tt(10,0),cn=!0):cn=!1,r){case 5:if(cn)break;rn+=a.length;case 37:case 6:case 43:case 45:case 46:case 44:case 51:if(cn)break;an+=a.length,Ge.push(a);break;default:Ke.push(a)}L(25);var o=function(){var t=!1===u.lean&&rn>0?100:jr.sequence*u.delay;return"string"==typeof u.upload?Math.max(Math.min(t,3e4),100):u.delay}();n-un>2*o&&(J(on),on=null),e&&null===on&&(25!==r&&G(),on=F(pn,o),un=n,Fn(an))}}function dn(){J(on),pn(!0),rn=0,an=0,cn=!1,un=0,Ge=[],Ke=[],Qe={},tn=null,$e=!1}function pn(t){return void 0===t&&(t=!1),rt(this,void 0,void 0,(function(){var e,n,r,a,o,i,c,s;return at(this,(function(l){switch(l.label){case 0:return $e?(on=null,(e=!1===u.lean&&an>0&&(an<1048576||jr.sequence>0))&&U(1,1),function(){if(jr){var t=[];Le=[];for(var e=(jr.start||0)+(jr.duration||0),n=Math.max(e-2e3,0),r=0,a=qe;r<a.length;r++){var o=a[r];o.time>=n&&(o.time<=e&&Le.push(o),t.push(o))}qe=t,ze(22)}}(),Gt(),n=!0===t,jr?(r=JSON.stringify(Dr(n)),a="[".concat(Ke.join(),"]"),o=e?"[".concat(Ge.join(),"]"):"",n&&o.length>0&&r.length+a.length+o.length>65536&&(o=""),i=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:o}),n?(s=null,[3,3]):[3,1]):[2]):[2];case 1:return[4,it(i)];case 2:s=l.sent(),l.label=3;case 3:return R(2,(c=s)?c.length:i.length),fn(i,c,jr.sequence,n),Ke=[],e&&(Ge=[],an=0,rn=0,cn=!1),[2]}}))}))}function fn(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof u.upload){var a=u.upload,o=!1;if(r&&navigator&&navigator.sendBeacon)try{(o=navigator.sendBeacon.bind(navigator)(a,t))&&vn(n)}catch(t){}if(!1===o){n in Qe?Qe[n].attempts++:Qe[n]={data:t,attempts:1};var i=new XMLHttpRequest;i.open("POST",a,!0),i.timeout=15e3,i.ontimeout=function(){Wr(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(i.onreadystatechange=function(){zr(hn)(i,n)}),i.withCredentials=!0,e?(i.setRequestHeader("Accept","application/x-clarity-gzip"),i.send(e)):i.send(t)}}else if(u.upload){(0,u.upload)(t),vn(n)}}function hn(t,e){var n=Qe[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Jn(6):(0===t.status&&(u.upload=u.fallback?u.fallback:u.upload),tn={sequence:e,attempts:n.attempts,status:t.status},Rn(2),fn(n.data,null,e)):(tn={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&Rn(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],o=a&&a.length>0?a.split(/ (.*)/):[""];switch(o[0]){case"END":Jn(6);break;case"UPGRADE":qn("Auto");break;case"ACTION":u.action&&o.length>1&&u.action(o[1]);break;case"EXTRACT":o.length>1&&Nt(o[1]);break;case"SIGNAL":o.length>1&&Jt(o[1]);break;case"MODULE":o.length>1&&Ze(o[1]);break;case"SNAPSHOT":u.lean=!1,Xn()}}}(t.responseText),0===t.status&&(fn(n.data,null,e,!0),Jn(3)),t.status>=200&&t.status<=208&&vn(e),delete Qe[e]))}function vn(t){1===t&&(Mr(),Er())}function gn(t){return rt(this,void 0,void 0,(function(){var e,n,r,a,o,i,u,c,s,l,p,f,h;return at(this,(function(v){switch(e=d(),n=[e,t],t){case 8:r=en,n.push(r.width),n.push(r.height),P(t,r.width,r.height),ln(n);break;case 43:if((a=Sn).length>0){for(o=0,i=a;o<i.length;o++)for(u=i[o],c=u.metadata.privacy,s=u.data,l=0,p=["tag","attributes","value"];l<p.length;l++)if(s[f=p[l]])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(mn(h,s[f][h],c));break;case"value":n.push(b(s[f],s.tag,c))}ln(function(t){for(var e=[],n={},r=0,a=null,o=0;o<t.length;o++)if("string"==typeof t[o]){var i=t[o],u=n[i]||-1;u>=0?a?a.push(u):(a=[u],e.push(a),r++):(a=null,e.push(i),n[i]=r++)}else a=null,e.push(t[o]),r++;return e}(n),!0)}}return[2]}))}))}function mn(t,e,n){return"".concat(t,"=").concat(b(e,0===t.indexOf("data-")?"data-":t,n))}function wn(){en=null}function yn(){var t,e,n,r,a,o,i,u,c,s,l,d,p,f,h,v;wn(),t=document.body,e=document.documentElement,n=t?t.clientWidth:null,r=t?t.scrollWidth:null,a=t?t.offsetWidth:null,o=e?e.clientWidth:null,i=e?e.scrollWidth:null,u=e?e.offsetWidth:null,c=Math.max(n,r,a,o,i,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!==en&&c===en.width&&v===en.height||null===c||null===v||(en={width:c,height:v},gn(8))}var bn=!1;function _n(t){t&&t.persisted&&(aa(),Tt(11,0))}function kn(t){!function(t){Lr(t===document?window:t,"scroll",Oe,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(function(t){Lr(t,"click",le.bind(this,9,t),!0),Lr(t,"contextmenu",le.bind(this,48,t),!0)}(t),function(t){Lr(t,"submit",Xe,!0)}(t))}var Tn=Object.freeze({__proto__:null,observe:kn,start:function(){qe=[],Re(),he(),me=!1,Lr(window,"resize",we),ye(),Lr(document,"visibilitychange",Ae),Ae(),Lr(window,"focus",(function(){return We(1)})),Lr(window,"blur",(function(){return We(0)})),function(){if(!bn)try{window[c("addEventListener")]("pageshow",zr(_n),{capture:!1,passive:!0}),bn=!0}catch(t){}}(),ke=[],Se(),Ye(),Lr(window,"pagehide",je)},stop:function(){qe=[],Re(),he(),_e(),De(),He(),J(Te),Oe.cleanup(),ke=[],Ye(),Ce()}}),Sn=[],On=1,xn=null;function En(){Yn(),yn(),Cn(document.documentElement),kn(document)}function Mn(){return!1}function In(){}function Nn(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 Pn(t){var e={id:0,hash:null,privacy:u.conversions?1:5};return t&&(e.id=xn.has(t)?xn.get(t):Cn(t)),e}function Xn(){Sn=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,r=null,a=null,o=e.shift(),i=o.firstChild,u=o.parentElement?o.parentElement:o.parentNode?o.parentNode:null;i;)e.push(i),i=i.nextSibling;switch(o.nodeType){case Node.DOCUMENT_TYPE_NODE:var c=o;r="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:a=o.nodeValue,r=xn.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=o;n=jn(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}An(o,u,{tag:r,attributes:n,value:a})}}(document),gn(43)}function Yn(){xn=new WeakMap}function jn(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 Cn(t){return null===t?null:xn.has(t)?xn.get(t):(xn.set(t,On),On++)}function An(t,e,n){if(t&&n&&n.tag){var r=Cn(t),a=e?xn.get(e):null,o=t.previousSibling?xn.get(t.previousSibling):null;Sn.push({id:r,parent:a,previous:o,children:[],data:n,selector:null,hash:null,region:null,metadata:{active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null}})}}var Dn,Hn=Object.freeze({__proto__:null,compute:function(){},get:function(t){return null},hashText:In,iframe:Mn,metadata:Pn,offset:function(){return{x:0,y:0}},snapshot:Xn,start:En,stop:function(){Yn(),wn()},target:Nn,get values(){return Sn}}),Wn=null;function zn(){!u.lean&&u.upgrade&&u.upgrade("Config"),Wn=null}function qn(t){ea()&&u.lean&&(u.lean=!1,Wn={key:t},Er(),Mr(),u.upgrade&&u.upgrade(t),Rn(3),u.lite&&En())}function Ln(){Wn=null}function Rn(t){var e=[d(),t];switch(t){case 4:var n=E;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),e.push(n.data.modules),ln(e,!1)),N();break;case 25:e.push(W.gap),ln(e);break;case 35:e.push(Dn.check),ln(e,!1);break;case 3:e.push(Wn.key),ln(e);break;case 2:e.push(tn.sequence),e.push(tn.attempts),e.push(tn.status),ln(e,!1);break;case 24:D.key&&e.push(D.key),e.push(D.value),ln(e);break;case 34:var r=Object.keys(ct);if(r.length>0){for(var a=0,o=r;a<o.length;a++){var i=o[a];e.push(i),e.push(ct[i])}ft(),ln(e,!1)}break;case 0:var u=Object.keys(q);if(u.length>0){for(var c=0,s=u;c<s.length;c++){var l=s[c],p=parseInt(l,10);e.push(p),e.push(Math.round(q[l]))}q={},ln(e,!1)}break;case 1:var f=Object.keys(Gn);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(Gn[g])}nr(),ln(e,!1)}break;case 36:var m=Object.keys($);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([],$[b]))}et(),ln(e,!1)}break;case 40:Ot.forEach((function(t){e.push(t);var n=[];for(var r in St[t]){var a=parseInt(r,10);n.push(a),n.push(St[t][r])}e.push(n)})),Yt(),ln(e,!1);break;case 47:e.push(rr.source),e.push(rr.ad_Storage),e.push(rr.analytics_Storage),ln(e,!1)}}function Un(){Dn={check:0}}function Fn(t){if(0===Dn.check){var e=Dn.check;e=jr.sequence>=128?1:e,e=jr.pageNum>=128?7:e,e=d()>72e5?2:e,(e=t>10485760?2:e)!==Dn.check&&Jn(e)}}function Jn(t){Dn.check=t,5!==t&&(xr(),oa())}function Vn(){0!==Dn.check&&Rn(35)}function Bn(){Dn=null}var Zn=null,Gn=null,Kn=!1;function Qn(){Zn={},Gn={},Kn=!1}function $n(){Zn={},Gn={},Kn=!1}function tr(t,e){if(e&&(e="".concat(e),t in Zn||(Zn[t]=[]),Zn[t].indexOf(e)<0)){if(Zn[t].length>128)return void(Kn||(Kn=!0,Jn(5)));Zn[t].push(e),t in Gn||(Gn[t]=[]),Gn[t].push(e)}}function er(){Rn(1)}function nr(){Gn={},Kn=!1}var rr=null,ar=!0;function or(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;ar=!0,(null==e?void 0:e.addListener)&&e.addListener(["ad_storage","analytics_storage"],ur)}function ir(){ar=!0}function ur(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;if(null==e?void 0:e.getConsentState){var n=e.getConsentState("analytics_storage");Tr(function(t){var e={source:2,ad_Storage:1===t.ad_Storage?"granted":"denied",analytics_Storage:1===t.analytics_Storage?"granted":"denied"};return e}({ad_Storage:e.getConsentState("ad_storage"),analytics_Storage:n}))}}function cr(t){lr(t.analytics_Storage?1:0),rr=t}function sr(){lr(2)}function lr(t){tr(36,t.toString())}function dr(t){rr=t,Rn(47)}function pr(){var t;if(ar&&(Rn(47),ar=!1,!u.track)){var e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;(null==e?void 0:e.usedUpdate)&&ur()}}var fr=null,hr=[],vr=0,gr=null,mr={source:7,ad_Storage:"denied",analytics_Storage:"denied"};function wr(){var t,e,n,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:"",o=(new Date).getTimezoneOffset().toString(),i=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";vr=r.indexOf("Electron")>0?1:0;var s=function(){var t={session:Nr(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=Rt("_clsk",!u.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-Pr(n[1])<18e5&&(t.session=n[0],t.count=Pr(n[2])+1,t.upgrade=Pr(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),l=Xr(),d=u.projectId||f(location.host);fr={projectId:d,userId:l.id,sessionId:s.session,pageNum:s.count},u.lean=u.track&&null!==s.upgrade?0===s.upgrade:u.lean,u.upload=u.track&&"string"==typeof u.upload&&s.upload&&s.upload.length>"https://".length?s.upload:u.upload,tr(0,r),tr(3,c),tr(1,_(location.href,!!vr)),tr(2,document.referrer),tr(15,function(){var t=Nr();if(u.track&&Wt(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),tr(16,document.documentElement.lang),tr(17,document.dir),tr(26,"".concat(window.devicePixelRatio)),tr(28,l.dob.toString()),tr(29,l.version.toString()),tr(33,i),tr(34,a),tr(35,o),U(0,s.ts),U(1,0),U(35,vr);var p,h=null===window||void 0===window?void 0:window.Zone;h&&"__symbol__"in h&&U(39,1),navigator&&(tr(9,navigator.language),U(33,navigator.hardwareConcurrency),U(32,navigator.maxTouchPoints),U(34,Math.round(navigator.deviceMemory)),(p=navigator.userAgentData)&&p.getHighEntropyValues?p.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;tr(22,t.platform),tr(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){tr(24,t.name+"~"+t.version)})),tr(25,t.model),U(27,t.mobile?1:0)})):tr(22,navigator.platform)),screen&&(U(14,Math.round(screen.width)),U(15,Math.round(screen.height)),U(16,Math.round(screen.colorDepth)));for(var v=0,g=u.cookies;v<g.length;v++){var m=g[v],w=Rt(m);w&&st(m,w)}null===gr&&(gr={source:l.consent?6:0,ad_Storage:u.track?"granted":"denied",analytics_Storage:u.track?"granted":"denied"}),cr(Sr(gr)),Ir(l)}function yr(){fr=null,hr.forEach((function(t){t.called=!1}))}function br(t,e,n,r){void 0===e&&(e=!0),void 0===n&&(n=!1),void 0===r&&(r=!1);var a=u.lean?0:1,o=!1;fr&&(a||!1===e)&&(t(fr,!u.lean,r?gr:void 0),o=!0),!n&&o||hr.push({callback:t,wait:e,recall:n,called:o,consentInfo:r})}function _r(){return fr?[fr.userId,fr.sessionId,fr.pageNum].join("."):""}function kr(t){void 0===t&&(t=!0),t?(Tr({source:4,ad_Storage:"granted",analytics_Storage:"granted"}),sr()):Tr({source:4,ad_Storage:"denied",analytics_Storage:"denied"})}function Tr(t,e){var n;void 0===t&&(t=mr),void 0===e&&(e=5);var r={source:null!==(n=t.source)&&void 0!==n?n:e,ad_Storage:Or(t.ad_Storage,null==gr?void 0:gr.ad_Storage),analytics_Storage:Or(t.analytics_Storage,null==gr?void 0:gr.analytics_Storage)};if(gr&&r.ad_Storage===gr.ad_Storage&&r.analytics_Storage===gr.analytics_Storage)return gr.source=r.source,dr(Sr(gr)),void sr();gr=r,Er(!0);var a=Sr(gr);if(!a.analytics_Storage&&u.track)return u.track=!1,xr(!0),oa(),void window.setTimeout(aa,250);ea()&&a.analytics_Storage&&(u.track=!0,Ir(Xr(),1),Mr()),dr(a),sr()}function Sr(t){var e;return{source:null!==(e=t.source)&&void 0!==e?e:255,ad_Storage:"granted"===t.ad_Storage?1:0,analytics_Storage:"granted"===t.analytics_Storage?1:0}}function Or(t,e){return void 0===e&&(e="denied"),"string"==typeof t?t.toLowerCase():e}function xr(t){void 0===t&&(t=!1),Ut("_clsk","",0),t&&Ut("_clck","",0)}function Er(t){void 0===t&&(t=!1),function(t,e){void 0===e&&(e=!1);if(hr.length>0)for(var n=0;n<hr.length;n++){var r=hr[n];r.callback&&(!r.called&&!e||r.consentInfo&&e)&&(!r.wait||t)&&(r.callback(fr,!u.lean,r.consentInfo?gr:void 0),r.called=!0,r.recall||(hr.splice(n,1),n--))}}(u.lean?0:1,t)}function Mr(){if(fr&&u.track){var t=Math.round(Date.now()),e=u.upload&&"string"==typeof u.upload?u.upload.replace("https://",""):"",n=u.lean?0:1;Ut("_clsk",[fr.sessionId,t,fr.pageNum,n,e].join(Lt),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===u.dob?0:u.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&Ut("_clck",[fr.userId,2,n.toString(36),e,r].join(Lt),365)}function Nr(){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 Pr(t,e){return void 0===e&&(e=10),parseInt(t,e)}function Xr(){var t={id:Nr(),version:0,expiry:null,consent:0,dob:0},e=Rt("_clck",!u.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=Pr(n[1])),n.length>2&&(t.expiry=Pr(n[2],36)),n.length>3&&1===Pr(n[3])&&(t.consent=1),n.length>4&&Pr(n[1])>1&&(t.dob=Pr(n[4])),u.track=u.track||1===t.consent,t.id=u.track?n[0]:t.id}return t}var Yr,jr=null;function Cr(){var t=fr;jr={version:p,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 Ar(){jr=null}function Dr(t){return jr.start=jr.start+jr.duration,jr.duration=d()-jr.start,jr.sequence++,jr.upload=t&&"sendBeacon"in navigator?1:0,jr.end=t?1:0,jr.applicationPlatform=0,jr.url=_(location.href,!1,!0),[jr.version,jr.sequence,jr.start,jr.duration,jr.projectId,jr.userId,jr.sessionId,jr.pageNum,jr.upload,jr.end,jr.applicationPlatform,jr.url]}function Hr(){Yr=[]}function Wr(t){if(Yr&&-1===Yr.indexOf(t.message)){var e=u.report;if(e&&e.length>0&&jr){var n={v:jr.version,p:jr.projectId,u:jr.userId,s:jr.sessionId,n:jr.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)),Yr.push(t.message)}}return t}function zr(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw Wr(t)}var n=performance.now()-e;R(4,n),n>30&&(L(7),U(6,n),t.dn&&Tt(9,0,"".concat(t.dn,"-").concat(n)))}}var qr=new Map;function Lr(t,e,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!0),n=zr(n);try{t[c("addEventListener")](e,n,{capture:r,passive:a}),function(t){return qr.has(t)}(t)||qr.set(t,[]),qr.get(t).push({event:e,listener:n,options:{capture:r,passive:a}})}catch(t){}}function Rr(){qr.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[c("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),qr.delete(e)}(t,e)})),qr=new Map}var Ur=null,Fr=null,Jr=null,Vr=0;function Br(){return!(Vr++>20)||(Tt(4,0),!1)}function Zr(){Vr=0,Jr!==Kr()&&(oa(),window.setTimeout(Gr,250))}function Gr(){aa(),U(29,1)}function Kr(){return location.href?location.href.replace(location.hash,""):location.href}var Qr=!1;function $r(){Qr=!0,s=l(),ae(),Rr(),Hr(),Jr=Kr(),Vr=0,Lr(window,"popstate",Zr),null===Ur&&(Ur=history.pushState,history.pushState=function(){Ur.apply(this,arguments),ea()&&Br()&&Zr()}),null===Fr&&(Fr=history.replaceState,history.replaceState=function(){Fr.apply(this,arguments),ea()&&Br()&&Zr()})}function ta(){Jr=null,Vr=0,Hr(),Rr(),ae(),s=0,Qr=!1}function ea(){return Qr}function na(){aa(),H("clarity","restart")}var ra=[Object.freeze({__proto__:null,start:function(){!function(){U(26,navigator.webdriver?1:0);try{U(31,window.top==window.self||window.top==window?1:2)}catch(t){U(31,0)}}(),Lr(window,"error",yt),wt={},kt={}},stop:function(){kt={}}}),Hn,Tn,$t,nn];function aa(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===Qr&&"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||Qr)return!1;for(var e in t)e in u&&(u[e]=t[e])}(t),$r(),Bt(),ra.forEach((function(t){return zr(t.start)()})),null===t&&sa())}function oa(){ea()&&(ra.slice().reverse().forEach((function(t){return zr(t.stop)()})),Zt(),ta(),void 0!==ua&&(ua[ca]=function(){(ua[ca].q=ua[ca].q||[]).push(arguments),"start"===arguments[0]&&ua[ca].q.unshift(ua[ca].q.pop())&&sa()}))}var ia=Object.freeze({__proto__:null,consent:kr,consentv2:Tr,dlog:tr,event:H,hashText:In,identify:lt,maxMetric:U,measure:zr,metadata:br,pause:function(){ea()&&(H("clarity","pause"),null===ne&&(ne=new Promise((function(t){re=t}))))},queue:ln,register:Be,resume:function(){ea()&&(ne&&(re(),ne=null,null===ee&&ie()),H("clarity","resume"))},schedule:oe,set:st,signal:function(t){Ft=t},start:aa,stop:oa,time:d,upgrade:qn,version:p}),ua=window,ca="clarity";function sa(){if(void 0!==ua){if(ua[ca]&&ua[ca].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=ua[ca]&&ua[ca].q||[];for(ua[ca]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return ia[t].apply(ia,e)},ua[ca].v=p;t.length>0;)ua[ca].apply(ua,t.shift())}}sa()}();
package/build/clarity.js CHANGED
@@ -187,7 +187,7 @@ var startTime = 0;
187
187
  function computeStartTime() {
188
188
  return performance.now() + performance.timeOrigin;
189
189
  }
190
- function start$N() {
190
+ function start$O() {
191
191
  startTime = computeStartTime();
192
192
  }
193
193
  // event.timestamp is number of milliseconds elapsed since the document was loaded
@@ -207,7 +207,7 @@ function stop$K() {
207
207
  startTime = 0;
208
208
  }
209
209
 
210
- var version$1 = "0.8.49";
210
+ var version$1 = "0.8.50";
211
211
 
212
212
  // tslint:disable: no-bitwise
213
213
  function hash (input, precision) {
@@ -430,7 +430,7 @@ function redact$1(value) {
430
430
  var state$b = null;
431
431
  var buffer = null;
432
432
  var update$2 = false;
433
- function start$M() {
433
+ function start$N() {
434
434
  update$2 = false;
435
435
  reset$u();
436
436
  }
@@ -583,7 +583,7 @@ var baseline = /*#__PURE__*/Object.freeze({
583
583
  compute: compute$g,
584
584
  dynamic: dynamic$1,
585
585
  reset: reset$u,
586
- start: start$M,
586
+ start: start$N,
587
587
  get state () { return state$b; },
588
588
  stop: stop$J,
589
589
  track: track$8,
@@ -610,7 +610,7 @@ function event$1(a, b) {
610
610
 
611
611
  var data$k = null;
612
612
  var updates$3 = null;
613
- function start$L() {
613
+ function start$M() {
614
614
  data$k = {};
615
615
  updates$3 = {};
616
616
  count$1(5 /* Metric.InvokeCount */);
@@ -671,7 +671,7 @@ var data$j;
671
671
  var last = 0;
672
672
  var interval = 0;
673
673
  var timeout$7 = null;
674
- function start$K() {
674
+ function start$L() {
675
675
  interval = 60000 /* Setting.PingInterval */;
676
676
  last = 0;
677
677
  }
@@ -703,12 +703,12 @@ var ping$1 = /*#__PURE__*/Object.freeze({
703
703
  __proto__: null,
704
704
  get data () { return data$j; },
705
705
  reset: reset$s,
706
- start: start$K,
706
+ start: start$L,
707
707
  stop: stop$H
708
708
  });
709
709
 
710
710
  var data$i = null;
711
- function start$J() {
711
+ function start$K() {
712
712
  data$i = {};
713
713
  }
714
714
  function stop$G() {
@@ -743,7 +743,7 @@ var summary = /*#__PURE__*/Object.freeze({
743
743
  compute: compute$e,
744
744
  get data () { return data$i; },
745
745
  reset: reset$r,
746
- start: start$J,
746
+ start: start$K,
747
747
  stop: stop$G,
748
748
  track: track$7
749
749
  });
@@ -862,7 +862,7 @@ function read(stream) {
862
862
  }
863
863
 
864
864
  var data$h = null;
865
- function start$I() {
865
+ function start$J() {
866
866
  reset$q();
867
867
  }
868
868
  function set(variable, value) {
@@ -964,7 +964,7 @@ var variable = /*#__PURE__*/Object.freeze({
964
964
  identify: identify,
965
965
  reset: reset$q,
966
966
  set: set,
967
- start: start$I,
967
+ start: start$J,
968
968
  stop: stop$F
969
969
  });
970
970
 
@@ -974,7 +974,7 @@ var variables = {};
974
974
  var selectors = {};
975
975
  var hashes = {};
976
976
  var validation = {};
977
- function start$H() {
977
+ function start$I() {
978
978
  reset$p();
979
979
  }
980
980
  // Input string is of the following form:
@@ -1163,7 +1163,7 @@ var extract = /*#__PURE__*/Object.freeze({
1163
1163
  data: data$g,
1164
1164
  keys: keys,
1165
1165
  reset: reset$p,
1166
- start: start$H,
1166
+ start: start$I,
1167
1167
  stop: stop$E,
1168
1168
  trigger: trigger$2,
1169
1169
  update: update$1
@@ -1192,7 +1192,7 @@ function decodeCookieValue(value) {
1192
1192
 
1193
1193
  var rootDomain = null;
1194
1194
  var COOKIE_SEP = "^" /* Constant.Caret */;
1195
- function start$G() {
1195
+ function start$H() {
1196
1196
  rootDomain = null;
1197
1197
  }
1198
1198
  function stop$D() {
@@ -1277,7 +1277,7 @@ var cookie = /*#__PURE__*/Object.freeze({
1277
1277
  COOKIE_SEP: COOKIE_SEP,
1278
1278
  getCookie: getCookie,
1279
1279
  setCookie: setCookie,
1280
- start: start$G,
1280
+ start: start$H,
1281
1281
  stop: stop$D
1282
1282
  });
1283
1283
 
@@ -1310,9 +1310,9 @@ function signalsEvent(signalsPayload) {
1310
1310
  }
1311
1311
 
1312
1312
  var modules$2 = [baseline, dimension, variable, limit, summary, cookie, consent$2, metadata$1, envelope$1, upload$1, ping$1, upgrade$1, extract];
1313
- function start$F() {
1313
+ function start$G() {
1314
1314
  // Metric needs to be initialized before we can start measuring. so metric is not wrapped in measure
1315
- start$L();
1315
+ start$M();
1316
1316
  modules$2.forEach(function (x) { return measure(x.start)(); });
1317
1317
  }
1318
1318
  function stop$C() {
@@ -1336,7 +1336,7 @@ function compute$b() {
1336
1336
 
1337
1337
  var history$5 = [];
1338
1338
  var data$f;
1339
- function start$E() {
1339
+ function start$F() {
1340
1340
  history$5 = [];
1341
1341
  max(26 /* Metric.Automation */, navigator.webdriver ? 1 /* BooleanFlag.True */ : 0 /* BooleanFlag.False */);
1342
1342
  try {
@@ -1360,7 +1360,7 @@ function check$5(id, target, input) {
1360
1360
  }
1361
1361
 
1362
1362
  var state$a = [];
1363
- function start$D() {
1363
+ function start$E() {
1364
1364
  reset$o();
1365
1365
  }
1366
1366
  function observe$c(root) {
@@ -1400,14 +1400,14 @@ function offset(element) {
1400
1400
 
1401
1401
  var UserInputTags = ["input", "textarea", "radio", "button", "canvas", "select"];
1402
1402
  var state$9 = [];
1403
- function start$C() {
1403
+ function start$D() {
1404
1404
  reset$n();
1405
1405
  }
1406
1406
  function observe$b(root) {
1407
- bind(root, "click", handler$3.bind(this, 9 /* Event.Click */, root), true);
1408
- bind(root, "contextmenu", handler$3.bind(this, 48 /* Event.ContextMenu */, root), true);
1407
+ bind(root, "click", handler$4.bind(this, 9 /* Event.Click */, root), true);
1408
+ bind(root, "contextmenu", handler$4.bind(this, 48 /* Event.ContextMenu */, root), true);
1409
1409
  }
1410
- function handler$3(event, root, evt) {
1410
+ function handler$4(event, root, evt) {
1411
1411
  var frame = iframe(root);
1412
1412
  var d = frame && frame.contentDocument ? frame.contentDocument.documentElement : document.documentElement;
1413
1413
  var x = "pageX" in evt ? Math.round(evt.pageX) : ("clientX" in evt ? Math.round(evt["clientX"] + d.scrollLeft) : null);
@@ -1546,7 +1546,7 @@ function stop$A() {
1546
1546
  }
1547
1547
 
1548
1548
  var state$8 = [];
1549
- function start$B() {
1549
+ function start$C() {
1550
1550
  reset$m();
1551
1551
  }
1552
1552
  function observe$a(root) {
@@ -1567,7 +1567,7 @@ function stop$z() {
1567
1567
 
1568
1568
  var timeout$6 = null;
1569
1569
  var state$7 = [];
1570
- function start$A() {
1570
+ function start$B() {
1571
1571
  reset$l();
1572
1572
  }
1573
1573
  function observe$9(root) {
@@ -1611,7 +1611,7 @@ var timeout$5 = null;
1611
1611
  var hasPrimaryTouch = false;
1612
1612
  var primaryTouchId = 0;
1613
1613
  var activeTouchPointIds = new Set();
1614
- function start$z() {
1614
+ function start$A() {
1615
1615
  reset$k();
1616
1616
  }
1617
1617
  function observe$8(root) {
@@ -1638,7 +1638,7 @@ function mouse(event, root, evt) {
1638
1638
  }
1639
1639
  // Check for null values before processing this event
1640
1640
  if (x !== null && y !== null) {
1641
- handler$2({ time: time(evt), event: event, data: { target: target(evt), x: x, y: y } });
1641
+ handler$3({ time: time(evt), event: event, data: { target: target(evt), x: x, y: y } });
1642
1642
  }
1643
1643
  }
1644
1644
  function touch(event, root, evt) {
@@ -1673,7 +1673,7 @@ function touch(event, root, evt) {
1673
1673
  var isPrimary = hasPrimaryTouch && primaryTouchId === id;
1674
1674
  // Check for null values before processing this event
1675
1675
  if (x !== null && y !== null) {
1676
- handler$2({ time: t, event: event, data: { target: target(evt), x: x, y: y, id: id, isPrimary: isPrimary } });
1676
+ handler$3({ time: t, event: event, data: { target: target(evt), x: x, y: y, id: id, isPrimary: isPrimary } });
1677
1677
  }
1678
1678
  // Reset primary touch point id once touch event ends
1679
1679
  if (event === 20 /* Event.TouchCancel */ || event === 18 /* Event.TouchEnd */) {
@@ -1684,7 +1684,7 @@ function touch(event, root, evt) {
1684
1684
  }
1685
1685
  }
1686
1686
  }
1687
- function handler$2(current) {
1687
+ function handler$3(current) {
1688
1688
  switch (current.event) {
1689
1689
  case 12 /* Event.MouseMove */:
1690
1690
  case 15 /* Event.MouseWheel */:
@@ -1779,7 +1779,7 @@ var data$e;
1779
1779
  var timeout$4 = null;
1780
1780
  var initialStateLogged = false;
1781
1781
  var throttledRecompute$1 = throttle(recompute$5, 500 /* Setting.LookAhead */);
1782
- function start$y() {
1782
+ function start$z() {
1783
1783
  initialStateLogged = false;
1784
1784
  bind(window, "resize", throttledRecompute$1);
1785
1785
  recompute$5();
@@ -1817,7 +1817,7 @@ var state$5 = [];
1817
1817
  var initialTop = null;
1818
1818
  var initialBottom = null;
1819
1819
  var timeout$3 = null;
1820
- function start$x() {
1820
+ function start$y() {
1821
1821
  state$5 = [];
1822
1822
  recompute$4();
1823
1823
  }
@@ -1925,7 +1925,7 @@ function stop$v() {
1925
1925
  var data$d = null;
1926
1926
  var previous = null;
1927
1927
  var timeout$2 = null;
1928
- function start$w() {
1928
+ function start$x() {
1929
1929
  reset$h();
1930
1930
  }
1931
1931
  function observe$6(root) {
@@ -1975,7 +1975,7 @@ function stop$u() {
1975
1975
  }
1976
1976
 
1977
1977
  var state$4 = [];
1978
- function start$v() {
1978
+ function start$w() {
1979
1979
  reset$g();
1980
1980
  }
1981
1981
  function observe$5(root) {
@@ -1993,7 +1993,7 @@ function stop$t() {
1993
1993
  }
1994
1994
 
1995
1995
  var data$c;
1996
- function start$u() {
1996
+ function start$v() {
1997
1997
  bind(window, "pagehide", recompute$1);
1998
1998
  }
1999
1999
  function recompute$1(evt) {
@@ -2009,7 +2009,7 @@ function stop$s() {
2009
2009
  }
2010
2010
 
2011
2011
  var data$b;
2012
- function start$t() {
2012
+ function start$u() {
2013
2013
  bind(document, "visibilitychange", recompute);
2014
2014
  recompute();
2015
2015
  }
@@ -2029,7 +2029,7 @@ function stop$r() {
2029
2029
  }
2030
2030
 
2031
2031
  var data$a;
2032
- function start$s() {
2032
+ function start$t() {
2033
2033
  bind(window, "focus", function () { return compute$9(1 /* BooleanFlag.True */); });
2034
2034
  bind(window, "blur", function () { return compute$9(0 /* BooleanFlag.False */); });
2035
2035
  }
@@ -2044,20 +2044,44 @@ function compute$9(focus) {
2044
2044
  encode$4(50 /* Event.Focus */);
2045
2045
  }
2046
2046
 
2047
+ var bound = false;
2048
+ function start$s() {
2049
+ // Only bind once - this listener must persist even when Clarity stops
2050
+ // to detect when the page is restored from bfcache
2051
+ if (!bound) {
2052
+ try {
2053
+ window[api("addEventListener" /* Constant.AddEventListener */)]("pageshow", measure(handler$2), { capture: false, passive: true });
2054
+ bound = true;
2055
+ }
2056
+ catch (_a) {
2057
+ /* do nothing */
2058
+ }
2059
+ }
2060
+ }
2061
+ function handler$2(evt) {
2062
+ // The persisted property indicates if the page was loaded from bfcache
2063
+ if (evt && evt.persisted) {
2064
+ // Restart Clarity since it was stopped when the page entered bfcache
2065
+ start();
2066
+ log$1(11 /* Code.BFCache */, 0 /* Severity.Info */);
2067
+ }
2068
+ }
2069
+
2047
2070
  function start$r() {
2048
2071
  start$j();
2072
+ start$D();
2049
2073
  start$C();
2074
+ start$A();
2050
2075
  start$B();
2051
2076
  start$z();
2052
- start$A();
2053
- start$y();
2077
+ start$u();
2054
2078
  start$t();
2055
2079
  start$s();
2080
+ start$y();
2056
2081
  start$x();
2082
+ start$E();
2057
2083
  start$w();
2058
- start$D();
2059
2084
  start$v();
2060
- start$u();
2061
2085
  }
2062
2086
  function stop$p() {
2063
2087
  stop$h();
@@ -6037,7 +6061,7 @@ function stop$6() {
6037
6061
  var status = false;
6038
6062
  function start$5() {
6039
6063
  status = true;
6040
- start$N();
6064
+ start$O();
6041
6065
  reset$4();
6042
6066
  reset$1();
6043
6067
  reset$2();
@@ -6104,7 +6128,7 @@ function restart() {
6104
6128
  }
6105
6129
 
6106
6130
  function start$4() {
6107
- start$E();
6131
+ start$F();
6108
6132
  start$g();
6109
6133
  start$f();
6110
6134
  }
@@ -6446,7 +6470,7 @@ function start(config$1) {
6446
6470
  if (check()) {
6447
6471
  config(config$1);
6448
6472
  start$5();
6449
- start$F();
6473
+ start$G();
6450
6474
  modules.forEach(function (x) { return measure(x.start)(); });
6451
6475
  // If it's an internal call to start, without explicit configuration,
6452
6476
  // re-process any newly accumulated items in the queue