clarity-js 0.7.51 → 0.7.53
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.
- package/build/clarity.extended.js +1 -1
- package/build/clarity.insight.js +1 -1
- package/build/clarity.js +100 -3
- package/build/clarity.min.js +1 -1
- package/build/clarity.module.js +100 -3
- package/build/clarity.performance.js +1 -1
- package/package.json +1 -1
- package/src/core/version.ts +1 -1
- package/src/performance/interaction.ts +125 -0
- package/src/performance/observer.ts +9 -2
- package/types/data.d.ts +15 -2
package/build/clarity.js
CHANGED
|
@@ -165,7 +165,7 @@ function stop$F() {
|
|
|
165
165
|
startTime = 0;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
var version$1 = "0.7.
|
|
168
|
+
var version$1 = "0.7.53";
|
|
169
169
|
|
|
170
170
|
// tslint:disable: no-bitwise
|
|
171
171
|
function hash (input, precision) {
|
|
@@ -5275,6 +5275,100 @@ function compute(entry) {
|
|
|
5275
5275
|
encode(29 /* Event.Navigation */);
|
|
5276
5276
|
}
|
|
5277
5277
|
|
|
5278
|
+
// Estimate variables to keep track of interactions
|
|
5279
|
+
var interactionCountEstimate = 0;
|
|
5280
|
+
var minKnownInteractionId = Infinity;
|
|
5281
|
+
var maxKnownInteractionId = 0;
|
|
5282
|
+
var prevInteractionCount = 0; // Used to track interaction count between pages
|
|
5283
|
+
var MAX_INTERACTIONS_TO_CONSIDER = 10; // Maximum number of interactions we consider for INP
|
|
5284
|
+
var DEFAULT_DURATION_THRESHOLD = 40; // Threshold to ignore very short interactions
|
|
5285
|
+
// List to store the longest interaction events
|
|
5286
|
+
var longestInteractionList = [];
|
|
5287
|
+
// Map to track interactions by their ID, ensuring we handle duplicates
|
|
5288
|
+
var longestInteractionMap = new Map();
|
|
5289
|
+
/**
|
|
5290
|
+
* Update the approx number of interactions estimate count if the interactionCount is not supported.
|
|
5291
|
+
* The difference between `maxKnownInteractionId` and `minKnownInteractionId` gives us a rough range of how many interactions have occurred.
|
|
5292
|
+
* Dividing by 7 helps approximate the interaction count more accurately, since interaction IDs are spread out across a large range.
|
|
5293
|
+
*/
|
|
5294
|
+
var countInteractions = function (entry) {
|
|
5295
|
+
if ('interactionCount' in performance) {
|
|
5296
|
+
interactionCountEstimate = performance.interactionCount;
|
|
5297
|
+
return;
|
|
5298
|
+
}
|
|
5299
|
+
if (entry.interactionId) {
|
|
5300
|
+
minKnownInteractionId = Math.min(minKnownInteractionId, entry.interactionId);
|
|
5301
|
+
maxKnownInteractionId = Math.max(maxKnownInteractionId, entry.interactionId);
|
|
5302
|
+
interactionCountEstimate = maxKnownInteractionId
|
|
5303
|
+
? (maxKnownInteractionId - minKnownInteractionId) / 7 + 1
|
|
5304
|
+
: 0;
|
|
5305
|
+
}
|
|
5306
|
+
};
|
|
5307
|
+
var getInteractionCount = function () {
|
|
5308
|
+
return interactionCountEstimate || 0;
|
|
5309
|
+
};
|
|
5310
|
+
var getInteractionCountForNavigation = function () {
|
|
5311
|
+
return getInteractionCount() - prevInteractionCount;
|
|
5312
|
+
};
|
|
5313
|
+
/**
|
|
5314
|
+
* Estimates the 98th percentile (P98) of the longest interactions by selecting
|
|
5315
|
+
* the candidate interaction based on the current interaction count.
|
|
5316
|
+
* Dividing by 50 is a heuristic to estimate the 98th percentile (P98) interaction.
|
|
5317
|
+
* This assumes one out of every 50 interactions represents the P98 interaction.
|
|
5318
|
+
* By dividing the total interaction count by 50, we get an index to approximate
|
|
5319
|
+
* the slowest 2% of interactions, helping identify a likely P98 candidate.
|
|
5320
|
+
*/
|
|
5321
|
+
var estimateP98LongestInteraction = function () {
|
|
5322
|
+
if (!longestInteractionList.length) {
|
|
5323
|
+
return -1;
|
|
5324
|
+
}
|
|
5325
|
+
var candidateInteractionIndex = Math.min(longestInteractionList.length - 1, Math.floor(getInteractionCountForNavigation() / 50));
|
|
5326
|
+
return longestInteractionList[candidateInteractionIndex].latency;
|
|
5327
|
+
};
|
|
5328
|
+
/**
|
|
5329
|
+
* Resets the interaction tracking, usually called after navigation to a new page.
|
|
5330
|
+
*/
|
|
5331
|
+
var resetInteractions = function () {
|
|
5332
|
+
prevInteractionCount = getInteractionCount();
|
|
5333
|
+
longestInteractionList.length = 0;
|
|
5334
|
+
longestInteractionMap.clear();
|
|
5335
|
+
};
|
|
5336
|
+
/**
|
|
5337
|
+
* Processes a PerformanceEventTiming entry by updating the longest interaction list.
|
|
5338
|
+
*/
|
|
5339
|
+
var processInteractionEntry = function (entry) {
|
|
5340
|
+
// Ignore entries with 0 interactionId or very short durations
|
|
5341
|
+
if (!entry.interactionId || entry.duration < DEFAULT_DURATION_THRESHOLD) {
|
|
5342
|
+
return;
|
|
5343
|
+
}
|
|
5344
|
+
countInteractions(entry);
|
|
5345
|
+
var minLongestInteraction = longestInteractionList[longestInteractionList.length - 1];
|
|
5346
|
+
var existingInteraction = longestInteractionMap.get(entry.interactionId);
|
|
5347
|
+
// Either update existing, add new, or replace shortest interaction if necessary
|
|
5348
|
+
if (existingInteraction ||
|
|
5349
|
+
longestInteractionList.length < MAX_INTERACTIONS_TO_CONSIDER ||
|
|
5350
|
+
entry.duration > (minLongestInteraction === null || minLongestInteraction === void 0 ? void 0 : minLongestInteraction.latency)) {
|
|
5351
|
+
if (!existingInteraction) {
|
|
5352
|
+
var interaction = {
|
|
5353
|
+
id: entry.interactionId,
|
|
5354
|
+
latency: entry.duration,
|
|
5355
|
+
};
|
|
5356
|
+
longestInteractionMap.set(interaction.id, interaction);
|
|
5357
|
+
longestInteractionList.push(interaction);
|
|
5358
|
+
}
|
|
5359
|
+
else if (entry.duration > existingInteraction.latency) {
|
|
5360
|
+
existingInteraction.latency = entry.duration;
|
|
5361
|
+
}
|
|
5362
|
+
longestInteractionList.sort(function (a, b) { return b.latency - a.latency; });
|
|
5363
|
+
// Trim the list to the maximum number of interactions to consider
|
|
5364
|
+
if (longestInteractionList.length > MAX_INTERACTIONS_TO_CONSIDER) {
|
|
5365
|
+
longestInteractionList
|
|
5366
|
+
.splice(MAX_INTERACTIONS_TO_CONSIDER)
|
|
5367
|
+
.forEach(function (i) { return longestInteractionMap.delete(i.id); });
|
|
5368
|
+
}
|
|
5369
|
+
}
|
|
5370
|
+
};
|
|
5371
|
+
|
|
5278
5372
|
var observer;
|
|
5279
5373
|
var types = ["navigation" /* Constant.Navigation */, "resource" /* Constant.Resource */, "longtask" /* Constant.LongTask */, "first-input" /* Constant.FID */, "layout-shift" /* Constant.CLS */, "largest-contentful-paint" /* Constant.LCP */, "event" /* Constant.PerformanceEventTiming */];
|
|
5280
5374
|
function start$2() {
|
|
@@ -5353,8 +5447,10 @@ function process(entries) {
|
|
|
5353
5447
|
}
|
|
5354
5448
|
break;
|
|
5355
5449
|
case "event" /* Constant.PerformanceEventTiming */:
|
|
5356
|
-
if (visible) {
|
|
5357
|
-
|
|
5450
|
+
if (visible && 'PerformanceEventTiming' in window && 'interactionId' in PerformanceEventTiming.prototype) {
|
|
5451
|
+
processInteractionEntry(entry);
|
|
5452
|
+
// Logging it as dimension because we're always looking for the last value.
|
|
5453
|
+
log(37 /* Dimension.InteractionNextPaint */, estimateP98LongestInteraction().toString());
|
|
5358
5454
|
}
|
|
5359
5455
|
break;
|
|
5360
5456
|
case "layout-shift" /* Constant.CLS */:
|
|
@@ -5376,6 +5472,7 @@ function stop$2() {
|
|
|
5376
5472
|
observer.disconnect();
|
|
5377
5473
|
}
|
|
5378
5474
|
observer = null;
|
|
5475
|
+
resetInteractions();
|
|
5379
5476
|
}
|
|
5380
5477
|
function host(url) {
|
|
5381
5478
|
var a = document.createElement("a");
|
package/build/clarity.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var t=Object.freeze({__proto__:null,get queue(){return sr},get start(){return cr},get stop(){return lr},get track(){return ar}}),e=Object.freeze({__proto__:null,get clone(){return Cr},get compute(){return Dr},get data(){return Er},get keys(){return Or},get reset(){return Ar},get start(){return _r},get stop(){return Rr},get trigger(){return Ir},get update(){return jr}}),n=Object.freeze({__proto__:null,get check(){return Xr},get compute(){return qr},get data(){return Sr},get start(){return Wr},get stop(){return Ur},get trigger(){return Yr}}),a=Object.freeze({__proto__:null,get compute(){return Kr},get data(){return Fr},get log(){return Gr},get reset(){return Zr},get start(){return Br},get stop(){return Jr},get updates(){return Vr}}),r=Object.freeze({__proto__:null,get callback(){return si},get callbacks(){return ti},get clear(){return ci},get consent(){return ui},get data(){return $r},get electron(){return ei},get id(){return oi},get metadata(){return ii},get save(){return li},get shortid(){return hi},get start(){return ai},get stop(){return ri}}),i=Object.freeze({__proto__:null,get data(){return wi},get envelope(){return Ei},get start(){return ki},get stop(){return Si}}),o={projectId:null,delay:1e3,lean:!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,longTask:30};function u(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var c=0;function s(t){void 0===t&&(t=null);var e=t&&t.timeStamp>0?t.timeStamp:performance.now(),n=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(e+n-c),0)}var l="0.7.51";function d(t,e){void 0===e&&(e=null);for(var n,a=5381,r=a,i=0;i<t.length;i+=2){if(a=(a<<5)+a^t.charCodeAt(i),i+1<t.length)r=(r<<5)+r^t.charCodeAt(i+1)}return n=Math.abs(a+11579*r),(e?n%Math.pow(2,e):n).toString(36)}var f=/\S/gi,h=!0,p=null,v=null,g=null;function m(t,e,n,a,r){if(void 0===a&&(a=!1),t){if("input"==e&&("checkbox"===r||"radio"===r))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,a=!1,r=!1,i=!1,o=null;E();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(a=a||c>=48&&c<=57,r=r||64===c,i=9===c||10===c||13===c||32===c,0===u||u===t.length-1||i){if(a||r){null===o&&(o=t.split(""));var s=t.substring(e+1,i?u:u+1);s=h&&null!==g?s.match(g)?s:k(s,"▪","▫"):w(s),o.splice(e+1-n,s.length,s),n+=s.length-1}i&&(a=!1,r=!1,e=u)}}return o?o.join(""):t}(t);case"input":case"change":return S(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return a?b(t):w(t);case"src":case"srcset":case"title":case"alt":return 3===n?"":t;case"value":case"click":case"input":case"change":return S(t);case"placeholder":return w(t)}break;case 4:switch(e){case"*T":case"data-":return a?b(t):w(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 k(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 y(t,e){if(void 0===e&&(e=!1),e)return"".concat("https://").concat("Electron");var n=o.drop;if(n&&n.length>0&&t&&t.indexOf("?")>0){var a=t.split("?"),r=a[0],i=a[1];return r+"?"+i.split("&").map((function(t){return n.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}return t}function b(t){var e=t.trim();if(e.length>0){var n=e[0],a=t.indexOf(n),r=t.substr(0,a),i=t.substr(a+e.length);return"".concat(r).concat(e.length.toString(36)).concat(i)}return t}function w(t){return t.replace(f,"•")}function k(t,e,n){return E(),t?t.replace(v,e).replace(p,n):t}function S(t){for(var e=5*(Math.floor(t.length/5)+1),n="",a=0;a<e;a++)n+=a>0&&a%5==0?" ":"•";return n}function E(){if(h&&null===p)try{p=new RegExp("\\p{N}","gu"),v=new RegExp("\\p{L}","gu"),g=new RegExp("\\p{Sc}","gu")}catch(t){h=!1}}var O=null,T=null,N=!1;function M(){N&&(O={time:s(),event:4,data:{visible:T.visible,docWidth:T.docWidth,docHeight:T.docHeight,screenWidth:T.screenWidth,screenHeight:T.screenHeight,scrollX:T.scrollX,scrollY:T.scrollY,pointerX:T.pointerX,pointerY:T.pointerY,activityTime:T.activityTime,scrollTime:T.scrollTime}}),T=T||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0,scrollTime:0}}function x(t,e,n,a){switch(t){case 8:T.docWidth=e,T.docHeight=n;break;case 11:T.screenWidth=e,T.screenHeight=n;break;case 10:T.scrollX=e,T.scrollY=n,T.scrollTime=a;break;default:T.pointerX=e,T.pointerY=n}N=!0}function _(t){T.activityTime=t}function I(t,e){T.visible="visible"===e?1:0,T.visible||_(t),N=!0}function C(){N&&Pr(4)}var D=Object.freeze({__proto__:null,activity:_,compute:C,reset:M,start:function(){N=!1,M()},get state(){return O},stop:function(){M()},track:x,visibility:I}),A=null;function j(t,e){Xi()&&t&&"string"==typeof t&&t.length<255&&(A=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},Pr(24))}var R,L=null,z=null;function H(t){t in L||(L[t]=0),t in z||(z[t]=0),L[t]++,z[t]++}function P(t,e){null!==e&&(t in L||(L[t]=0),t in z||(z[t]=0),L[t]+=e,z[t]+=e)}function W(t,e){null!==e&&!1===isNaN(e)&&(t in L||(L[t]=0),(e>L[t]||0===L[t])&&(z[t]=e,L[t]=e))}function X(t,e,n){return window.setTimeout(Ni(t),e,n)}function Y(t){return window.clearTimeout(t)}var q=0,U=0,F=null;function V(){F&&Y(F),F=X(B,U),q=s()}function B(){var t=s();R={gap:t-q},Pr(25),R.gap<3e5?F=X(B,U):Hi&&(j("clarity","suspend"),no(),["mousemove","touchstart"].forEach((function(t){return xi(document,t,Yi)})),["resize","scroll","pageshow"].forEach((function(t){return xi(window,t,Yi)})))}var J=Object.freeze({__proto__:null,get data(){return R},reset:V,start:function(){U=6e4,q=0},stop:function(){Y(F),q=0,U=0}}),G=null;function K(t,e){if(t in G){var n=G[t],a=n[n.length-1];e-a[0]>100?G[t].push([e,0]):a[1]=e-a[0]}else G[t]=[[e,0]]}function Z(){Pr(36)}function Q(){G={}}var $=Object.freeze({__proto__:null,compute:Z,get data(){return G},reset:Q,start:function(){G={}},stop:function(){G={}},track:K}),tt=null;function et(t){Xi()&&o.lean&&(o.lean=!1,tt={key:t},si(),li(),o.upgrade&&o.upgrade(t),Pr(3))}var nt=Object.freeze({__proto__:null,get data(){return tt},start:function(){!o.lean&&o.upgrade&&o.upgrade("Config"),tt=null},stop:function(){tt=null},upgrade:et});function at(t,e,n,a){return new(n||(n=Promise))((function(r,i){function o(t){try{c(a.next(t))}catch(t){i(t)}}function u(t){try{c(a.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,u)}c((a=a.apply(t,e||[])).next())}))}function rt(t,e){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var it=null;function ot(t,e){ct(t,"string"==typeof e?[e]:e)}function ut(t,e,n,a){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===a&&(a=null),at(this,void 0,void 0,(function(){var r,i;return rt(this,(function(o){switch(o.label){case 0:return i={},[4,dt(t)];case 1:return i.userId=o.sent(),i.userHint=a||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(k(u.substring(2),"*","*")):k(u,"*","*")),ct("userId",[(r=i).userId]),ct("userHint",[r.userHint]),ct("userType",[ft(t)]),e&&(ct("sessionId",[e]),r.sessionId=e),n&&(ct("pageId",[n]),r.pageId=n),[2,r]}var u}))}))}function ct(t,e){if(Xi()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in it?it[t]:[]),a=0;a<e.length;a++)"string"==typeof e[a]&&e[a].length<255&&n.push(e[a]);it[t]=n}}function st(){Pr(34)}function lt(){it={}}function dt(t){return at(this,void 0,void 0,(function(){var e;return rt(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 ft(t){return t&&t.indexOf("@")>0?"email":"string"}var ht="CompressionStream"in window;function pt(t){return at(this,void 0,void 0,(function(){var e,n;return rt(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),ht?(e=new ReadableStream({start:function(e){return at(this,void 0,void 0,(function(){return rt(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,vt(e)]):[3,2];case 1:return[2,new(n.apply(Uint8Array,[void 0,a.sent()]))];case 2:return[3,4];case 3:return a.sent(),[3,4];case 4:return[2,null]}}))}))}function vt(t){return at(this,void 0,void 0,(function(){var e,n,a,r,i;return rt(this,(function(o){switch(o.label){case 0:e=t.getReader(),n=[],a=!1,r=[],o.label=1;case 1:return a?[3,3]:[4,e.read()];case 2:return i=o.sent(),a=i.done,r=i.value,a?[2,n]:(n.push.apply(n,r),[3,1]);case 3:return[2,n]}}))}))}var gt=null;function mt(t){try{if(!gt)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){gt(t)}))}catch(t){}}var yt=[D,a,Object.freeze({__proto__:null,compute:st,get data(){return it},identify:ut,reset:lt,set:ot,start:function(){lt()},stop:function(){lt()}}),n,$,r,i,t,J,nt,e];function bt(){L={},z={},H(5),yt.forEach((function(t){return Ni(t.start)()}))}function wt(){yt.slice().reverse().forEach((function(t){return Ni(t.stop)()})),L={},z={}}function kt(){st(),C(),Kr(),Pr(0),Z(),qr(),Dr()}var St,Et=[];function Ot(t,e,n){o.fraud&&null!==t&&n&&n.length>=5&&(St={id:t,target:e,checksum:d(n,28)},Et.indexOf(St.checksum)<0&&(Et.push(St.checksum),yr(41)))}var Tt="load,active,fixed,visible,focus,show,collaps,animat".split(","),Nt={};function Mt(t,e){var n=t.attributes,a=t.prefix?t.prefix[e]:null,r=0===e?"".concat("~").concat(t.position-1):":nth-of-type(".concat(t.position,")");switch(t.tag){case"STYLE":case"TITLE":case"LINK":case"META":case"*T":case"*D":return"";case"HTML":return"HTML";default:if(null===a)return"";a="".concat(a).concat(">"),t.tag=0===t.tag.indexOf("svg:")?t.tag.substr("svg:".length):t.tag;var i="".concat(a).concat(t.tag).concat(r),o="id"in n&&n.id.length>0?n.id:null,u="BODY"!==t.tag&&"class"in n&&n.class.length>0?n.class.trim().split(/\s+/).filter((function(t){return xt(t)})).join("."):null;if(u&&u.length>0)if(0===e){var c="".concat(function(t){for(var e=t.split(">"),n=0;n<e.length;n++){var a=e[n].indexOf("~"),r=e[n].indexOf(".");e[n]=e[n].substring(0,r>0?r:a>0?a:e[n].length)}return e.join(">")}(a)).concat(t.tag).concat(".").concat(u);c in Nt||(Nt[c]=[]),Nt[c].indexOf(t.id)<0&&Nt[c].push(t.id),i="".concat(c).concat("~").concat(Nt[c].indexOf(t.id))}else i="".concat(a).concat(t.tag,".").concat(u).concat(r);return i=o&&xt(o)?"".concat(function(t){var e=t.lastIndexOf("*S"),n=t.lastIndexOf("".concat("iframe:").concat("HTML")),a=Math.max(e,n);if(a<0)return"";return t.substring(0,t.indexOf(">",a)+1)}(a)).concat("#").concat(o):i,i}}function xt(t){if(!t)return!1;if(Tt.some((function(e){return t.toLowerCase().indexOf(e)>=0})))return!1;for(var e=0;e<t.length;e++){var n=t.charCodeAt(e);if(n>=48&&n<=57)return!1}return!0}var _t=1,It=null,Ct=[],Dt=[],At={},jt=[],Rt=[],Lt=[],zt=[],Ht=[],Pt=[],Wt=null,Xt=null,Yt=null,qt=null;function Ut(){Vt(),Bt(document,!0)}function Ft(){Vt()}function Vt(){_t=1,Ct=[],Dt=[],At={},jt=[],Rt=[],Lt="address,password,contact".split(","),zt="password,secret,pass,social,ssn,code,hidden".split(","),Ht="radio,checkbox,range,button,reset,submit".split(","),Pt="INPUT,SELECT,TEXTAREA".split(","),It=new Map,Wt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,qt=new WeakMap,Nt={}}function Bt(t,e){void 0===e&&(e=!1);try{e&&o.unmask.forEach((function(t){return t.indexOf("!")<0?Rt.push(t):jt.push(t.substr(1))})),"querySelectorAll"in t&&(o.regions.forEach((function(e){return t.querySelectorAll(e[1]).forEach((function(t){return Pa(t,"".concat(e[0]))}))})),o.mask.forEach((function(e){return t.querySelectorAll(e).forEach((function(t){return Yt.set(t,3)}))})),o.checksum.forEach((function(e){return t.querySelectorAll(e[1]).forEach((function(t){return qt.set(t,e[0])}))})),Rt.forEach((function(e){return t.querySelectorAll(e).forEach((function(t){return Yt.set(t,0)}))})))}catch(t){kr(5,1,t?t.name:null)}}function Jt(t,e){if(void 0===e&&(e=!1),null===t)return null;var n=Wt.get(t);return!n&&e&&(n=_t++,Wt.set(t,n)),n||null}function Gt(t){var e=!1;if(t.nodeType===Node.ELEMENT_NODE&&"IFRAME"===t.tagName){var n=t;try{n.contentDocument&&(Xt.set(n.contentDocument,n),e=!0)}catch(t){}}return e}function Kt(t){var e=t.nodeType===Node.DOCUMENT_NODE?t:null;return e&&Xt.has(e)?Xt.get(e):null}function Zt(t,e,n){if("object"==typeof t[n]&&"object"==typeof e[n]){for(var a in t[n])if(t[n][a]!==e[n][a])return!0;for(var a in e[n])if(e[n][a]!==t[n][a])return!0;return!1}return t[n]!==e[n]}function Qt(t){var e=t.parent&&t.parent in Ct?Ct[t.parent]:null,n=e?e.selector:null,a=t.data,r=function(t,e){e.metadata.position=1;for(var n=t?t.children.indexOf(e.id):-1;n-- >0;){var a=Ct[t.children[n]];if(e.data.tag===a.data.tag){e.metadata.position=a.metadata.position+1;break}}return e.metadata.position}(e,t),i={id:t.id,tag:a.tag,prefix:n,position:r,attributes:a.attributes};t.selector=[Mt(i,0),Mt(i,1)],t.hash=t.selector.map((function(t){return t?d(t):null})),t.hash.forEach((function(e){return At[e]=t.id}))}function $t(t){var e=te(ne(t));return null!==e&&null!==e.textContent?e.textContent.substr(0,25):""}function te(t){return It.has(t)?It.get(t):null}function ee(t){var e=Jt(t);return e in Ct?Ct[e]:null}function ne(t){return t in At?At[t]:null}function ae(t){return It.has(Jt(t))}function re(){for(var t=[],e=0,n=Dt;e<n.length;e++){var a=n[e];a in Ct&&t.push(Ct[a])}return Dt=[],t}function ie(t){if(It.get(t).nodeType!==Node.DOCUMENT_FRAGMENT_NODE){It.delete(t);var e=t in Ct?Ct[t]:null;if(e&&e.children)for(var n=0,a=e.children;n<a.length;n++){ie(a[n])}}}function oe(t){for(var e=null;null===e&&t.previousSibling;)e=Jt(t.previousSibling),t=t.previousSibling;return e}function ue(t,e,n,a){void 0===n&&(n=!0),void 0===a&&(a=!1);var r=Dt.indexOf(t);r>=0&&1===e&&a?(Dt.splice(r,1),Dt.push(t)):-1===r&&n&&Dt.push(t)}var ce=Object.freeze({__proto__:null,add:function(t,e,n,a){var r,i=Jt(t,!0),u=e?Jt(e):null,c=oe(t),s=null,l=Wa(t)?i:null,d=qt.has(t)?qt.get(t):null,f=o.content?1:3;u>=0&&Ct[u]&&((s=Ct[u]).children.push(i),l=null===l?s.region:l,d=null===d?s.metadata.fraud:d,f=s.metadata.privacy),n.attributes&&"data-clarity-region"in n.attributes&&(Pa(t,n.attributes["data-clarity-region"]),l=i),It.set(i,t),Ct[i]={id:i,parent:u,previous:c,children:[],data:n,selector:null,hash:null,region:l,metadata:{active:!0,suspend:!1,privacy:f,position:null,fraud:d,size:null}},function(t,e,n){var a=e.data,r=e.metadata,i=r.privacy,o=a.attributes||{},u=a.tag.toUpperCase();switch(!0){case Pt.indexOf(u)>=0:var c=o.type,s="",l=["class","style"];Object.keys(o).filter((function(t){return!l.includes(t)})).forEach((function(t){return s+=o[t].toLowerCase()}));var d=zt.some((function(t){return s.indexOf(t)>=0}));r.privacy="INPUT"===u&&Ht.indexOf(c)>=0?i:d?4:2;break;case"data-clarity-mask"in o:r.privacy=3;break;case"data-clarity-unmask"in o:r.privacy=0;break;case Yt.has(t):r.privacy=Yt.get(t);break;case qt.has(t):r.privacy=2;break;case"*T"===u:var f=n&&n.data?n.data.tag:"",h=n&&n.selector?n.selector[1]:"",p=["STYLE","TITLE","svg:style"];r.privacy=p.includes(f)||jt.some((function(t){return h.indexOf(t)>=0}))?0:i;break;case 1===i:r.privacy=function(t,e,n){if(t&&e.some((function(e){return t.indexOf(e)>=0})))return 2;return n.privacy}(o.class,Lt,r)}}(t,Ct[i],s),Qt(Ct[i]),"IMG"===(r=Ct[i]).data.tag&&3===r.metadata.privacy&&(r.metadata.size=[]),ue(i,a)},get:ee,getId:Jt,getNode:te,getValue:function(t){return t in Ct?Ct[t]:null},has:ae,hashText:$t,iframe:Kt,lookup:ne,parse:Bt,sameorigin:Gt,start:Ut,stop:Ft,update:function(t,e,n,a){var r=Jt(t),i=e?Jt(e):null,o=oe(t),u=!1,c=!1;if(r in Ct){var s=Ct[r];if(s.metadata.active=!0,s.previous!==o&&(u=!0,s.previous=o),s.parent!==i){u=!0;var l=s.parent;if(s.parent=i,null!==i&&i>=0){var d=null===o?0:Ct[i].children.indexOf(o)+1;Ct[i].children.splice(d,0,r),s.region=Wa(t)?r:Ct[i].region}else!function(t,e){if(t in Ct){var n=Ct[t];n.metadata.active=!1,n.parent=null,ue(t,e),ie(t)}}(r,a);if(null!==l&&l>=0){var f=Ct[l].children.indexOf(r);f>=0&&Ct[l].children.splice(f,1)}c=!0}for(var h in n)Zt(s.data,n,h)&&(u=!0,s.data[h]=n[h]);Qt(s),ue(r,a,u,c)}},updates:re}),se=5e3,le={},de=[],fe=null,he=null,pe=null;function ve(){le={},de=[],fe=null,he=null}function ge(t,e){return void 0===e&&(e=0),at(this,void 0,void 0,(function(){var n,a,r;return rt(this,(function(i){for(n=0,a=de;n<a.length;n++)if(a[n].task===t)return[2];return r=new Promise((function(n){de[1===e?"unshift":"push"]({task:t,resolve:n,id:oi()})})),null===fe&&null===he&&me(),[2,r]}))}))}function me(){var t=de.shift();t&&(fe=t,t.task().then((function(){t.id===oi()&&(t.resolve(),fe=null,me())})).catch((function(e){t.id===oi()&&(e&&kr(0,1,e.name,e.message,e.stack),fe=null,me())})))}function ye(t){var e=Se(t);return e in le?performance.now()-le[e].start>le[e].yield?0:1:2}function be(t){le[Se(t)]={start:performance.now(),calls:0,yield:o.longTask}}function we(t){var e=performance.now(),n=Se(t),a=e-le[n].start;P(t.cost,a),H(5),le[n].calls>0&&P(4,a)}function ke(t){return at(this,void 0,void 0,(function(){var e,n;return rt(this,(function(a){switch(a.label){case 0:return(e=Se(t))in le?(we(t),n=le[e],[4,Ee()]):[3,2];case 1:n.yield=a.sent().timeRemaining(),function(t){var e=Se(t);if(le&&le[e]){var n=le[e].calls,a=le[e].yield;be(t),le[e].calls=n+1,le[e].yield=a}}(t),a.label=2;case 2:return[2,e in le?1:2]}}))}))}function Se(t){return"".concat(t.id,".").concat(t.cost)}function Ee(){return at(this,void 0,void 0,(function(){return rt(this,(function(t){switch(t.label){case 0:return he?[4,he]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2,new Promise((function(t){Te(t,{timeout:se})}))]}}))}))}var Oe,Te=window.requestIdleCallback||function(t,e){var n=performance.now(),a=new MessageChannel,r=a.port1,i=a.port2;r.onmessage=function(a){var r=performance.now(),u=r-n,c=r-a.data;if(c>o.longTask&&u<e.timeout)requestAnimationFrame((function(){i.postMessage(r)}));else{var s=u>e.timeout;t({didTimeout:s,timeRemaining:function(){return s?o.longTask:Math.max(0,o.longTask-c)}})}},requestAnimationFrame((function(){i.postMessage(performance.now())}))};function Ne(){Oe=null}function Me(){var t=document.body,e=document.documentElement,n=t?t.clientWidth:null,a=t?t.scrollWidth:null,r=t?t.offsetWidth:null,i=e?e.clientWidth:null,o=e?e.scrollWidth:null,u=e?e.offsetWidth:null,c=Math.max(n,a,r,i,o,u),s=t?t.clientHeight:null,l=t?t.scrollHeight:null,d=t?t.offsetHeight:null,f=e?e.clientHeight:null,h=e?e.scrollHeight:null,p=e?e.offsetHeight:null,v=Math.max(s,l,d,f,h,p);null!==Oe&&c===Oe.width&&v===Oe.height||null===c||null===v||(Oe={width:c,height:v},_a(8))}var xe=[];function _e(t){var e=Va(t);if(e){var n=e.value,a=n&&n.length>=5&&o.fraud&&-1==="password,secret,pass,social,ssn,code,hidden".indexOf(e.type)?d(n,28):"";xe.push({time:s(t),event:42,data:{target:Va(t),type:e.type,value:n,checksum:a}}),ge(Ja.bind(this,42))}}function Ie(){xe=[]}function Ce(t){var e={x:0,y:0};if(t&&t.offsetParent)do{var n=t.offsetParent,a=null===n?Kt(t.ownerDocument):null;e.x+=t.offsetLeft,e.y+=t.offsetTop,t=a||n}while(t);return e}var De=["input","textarea","radio","button","canvas"],Ae=[];function je(t){xi(t,"click",Re.bind(this,9,t),!0)}function Re(t,e,n){var a=Kt(e),r=a?a.contentDocument.documentElement:document.documentElement,i="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;if(a){var u=Ce(a);i=i?i+Math.round(u.x):i,o=o?o+Math.round(u.y):o}var c=Va(n),l=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}(c),d=function(t){var e=null,n=document.documentElement;if("function"==typeof t.getBoundingClientRect){var a=t.getBoundingClientRect();a&&a.width>0&&a.height>0&&(e={x:Math.floor(a.left+("pageXOffset"in window?window.pageXOffset:n.scrollLeft)),y:Math.floor(a.top+("pageYOffset"in window?window.pageYOffset:n.scrollTop)),w:Math.floor(a.width),h:Math.floor(a.height)})}return e}(c);0===n.detail&&d&&(i=Math.round(d.x+d.w/2),o=Math.round(d.y+d.h/2));var f=d?Math.max(Math.floor((i-d.x)/d.w*32767),0):0,h=d?Math.max(Math.floor((o-d.y)/d.h*32767),0):0;null!==i&&null!==o&&(Ae.push({time:s(n),event:t,data:{target:c,x:i,y:o,eX:f,eY:h,button:n.button,reaction:ze(c),context:He(l),text:Le(c),link:l?l.href:null,hash:null,trust:n.isTrusted?1:0}}),ge(Ja.bind(this,t)))}function Le(t){var e=null;if(t){var n=t.textContent||String(t.value||"")||t.alt;n&&(e=n.replace(/\s+/g," ").trim().substr(0,25))}return e}function ze(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t.tagName.toLowerCase();if(De.indexOf(e)>=0)return 0}return 1}function He(t){if(t&&t.hasAttribute("target"))switch(t.getAttribute("target")){case"_blank":return 1;case"_parent":return 2;case"_top":return 3}return 0}function Pe(){Ae=[]}var We=[];function Xe(t,e){We.push({time:s(e),event:38,data:{target:Va(e),action:t}}),ge(Ja.bind(this,38))}function Ye(){We=[]}var qe=null,Ue=[];function Fe(t){var e=Va(t),n=ee(e);if(e&&e.type&&n){var a=e.value,r=e.type;switch(e.type){case"radio":case"checkbox":a=e.checked?"true":"false"}var i={target:e,value:a,type:r};Ue.length>0&&Ue[Ue.length-1].data.target===i.target&&Ue.pop(),Ue.push({time:s(t),event:27,data:i}),Y(qe),qe=X(Ve,1e3,27)}}function Ve(t){ge(Ja.bind(this,t))}function Be(){Ue=[]}var Je,Ge=[],Ke=null;function Ze(t,e,n){var a=Kt(e),r=a?a.contentDocument.documentElement:document.documentElement,i="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;if(a){var u=Ce(a);i=i?i+Math.round(u.x):i,o=o?o+Math.round(u.y):o}null!==i&&null!==o&&$e({time:s(n),event:t,data:{target:Va(n),x:i,y:o}})}function Qe(t,e,n){var a=Kt(e),r=a?a.contentDocument.documentElement:document.documentElement,i=n.changedTouches,o=s(n);if(i)for(var u=0;u<i.length;u++){var c=i[u],l="clientX"in c?Math.round(c.clientX+r.scrollLeft):null,d="clientY"in c?Math.round(c.clientY+r.scrollTop):null;l=l&&a?l+Math.round(a.offsetLeft):l,d=d&&a?d+Math.round(a.offsetTop):d;var f="identifier"in c?c.identifier:void 0;null!==l&&null!==d&&$e({time:o,event:t,data:{target:Va(n),x:l,y:d,id:f}})}}function $e(t){switch(t.event){case 12:case 15:case 19:var e=Ge.length,n=e>1?Ge[e-2]:null;n&&function(t,e){var n=t.data.x-e.data.x,a=t.data.y-e.data.y,r=Math.sqrt(n*n+a*a),i=e.time-t.time,o=e.data.target===t.data.target;return e.event===t.event&&o&&r<20&&i<25}(n,t)&&Ge.pop(),Ge.push(t),Y(Ke),Ke=X(tn,500,t.event);break;default:Ge.push(t),tn(t.event)}}function tn(t){ge(Ja.bind(this,t))}function en(){Ge=[]}function nn(){var t=document.documentElement;Je={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},Ja(11)}function an(){Je=null}var rn=[],on=null,un=null,cn=null;function sn(t){void 0===t&&(t=null);var e=window,n=document.documentElement,a=t?Va(t):n;if(a&&a.nodeType===Node.DOCUMENT_NODE){var r=Kt(a);e=r?r.contentWindow:e,a=n=a.documentElement}var i=a===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(a.scrollLeft),o=a===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(a.scrollTop),u=window.innerWidth,c=window.innerHeight,l=u/3,d=u>c?.15*c:.2*c,f=c-d,h=ln(l,d),p=ln(l,f),v={time:s(t),event:10,data:{target:a,x:i,y:o,top:h,bottom:p}};if(null===t&&0===i&&0===o||null===i||null===o)return on=h,void(un=p);var g=rn.length,m=g>1?rn[g-2]:null;m&&function(t,e){var n=t.data.x-e.data.x,a=t.data.y-e.data.y;return n*n+a*a<400&&e.time-t.time<25}(m,v)&&rn.pop(),rn.push(v),Y(cn),cn=X(dn,500,10)}function ln(t,e){var n,a,r;return"caretPositionFromPoint"in document?r=null===(n=document.caretPositionFromPoint(t,e))||void 0===n?void 0:n.offsetNode:"caretRangeFromPoint"in document&&(r=null===(a=document.caretRangeFromPoint(t,e))||void 0===a?void 0:a.startContainer),r||(r=document.elementFromPoint(t,e)),r&&r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r}function dn(t){ge(Ja.bind(this,t))}function fn(){var t,e;if(on){var n=Ba(on,null);Gr(31,null===(t=null==n?void 0:n.hash)||void 0===t?void 0:t.join("."))}if(un){var a=Ba(un,null);Gr(32,null===(e=null==a?void 0:a.hash)||void 0===e?void 0:e.join("."))}}var hn=null,pn=null,vn=null;function gn(t){var e=(t.nodeType===Node.DOCUMENT_NODE?t:document).getSelection();if(null!==e&&!(null===e.anchorNode&&null===e.focusNode||e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset)){var n=hn.start?hn.start:null;null!==pn&&null!==hn.start&&n!==e.anchorNode&&(Y(vn),mn(21)),hn={start:e.anchorNode,startOffset:e.anchorOffset,end:e.focusNode,endOffset:e.focusOffset},pn=e,Y(vn),vn=X(mn,500,21)}}function mn(t){ge(Ja.bind(this,t))}function yn(){pn=null,hn={start:0,startOffset:0,end:0,endOffset:0}}var bn,wn,kn=[];function Sn(t){kn.push({time:s(t),event:39,data:{target:Va(t)}}),ge(Ja.bind(this,39))}function En(){kn=[]}function On(t){bn={name:t.type},Ja(26,s(t)),no()}function Tn(){bn=null}function Nn(t){void 0===t&&(t=null),wn={visible:"visibilityState"in document?document.visibilityState:"default"},Ja(28,s(t))}function Mn(){wn=null}function xn(t){!function(t){var e=Kt(t);xi(e?e.contentWindow:t===document?window:t,"scroll",sn,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(je(t),function(t){xi(t,"cut",Xe.bind(this,0),!0),xi(t,"copy",Xe.bind(this,1),!0),xi(t,"paste",Xe.bind(this,2),!0)}(t),function(t){xi(t,"mousedown",Ze.bind(this,13,t),!0),xi(t,"mouseup",Ze.bind(this,14,t),!0),xi(t,"mousemove",Ze.bind(this,12,t),!0),xi(t,"wheel",Ze.bind(this,15,t),!0),xi(t,"dblclick",Ze.bind(this,16,t),!0),xi(t,"touchstart",Qe.bind(this,17,t),!0),xi(t,"touchend",Qe.bind(this,18,t),!0),xi(t,"touchmove",Qe.bind(this,19,t),!0),xi(t,"touchcancel",Qe.bind(this,20,t),!0)}(t),function(t){xi(t,"input",Fe,!0)}(t),function(t){xi(t,"selectstart",gn.bind(this,t),!0),xi(t,"selectionchange",gn.bind(this,t),!0)}(t),function(t){xi(t,"change",_e,!0)}(t),function(t){xi(t,"submit",Sn,!0)}(t))}var _n=Object.freeze({__proto__:null,observe:xn,start:function(){Ga=[],Za(),Pe(),Ye(),en(),Be(),xi(window,"resize",nn),nn(),xi(document,"visibilitychange",Nn),Nn(),rn=[],sn(),yn(),Ie(),En(),xi(window,"pagehide",On)},stop:function(){Ga=[],Za(),Pe(),Ye(),Y(Ke),Ge.length>0&&tn(Ge[Ge.length-1].event),Y(qe),Be(),an(),Mn(),Y(cn),rn=[],on=null,un=null,yn(),Y(vn),Ie(),En(),Tn()}});function In(t,e,n,a){return at(this,void 0,void 0,(function(){var r,i,o,u,c;return rt(this,(function(s){switch(s.label){case 0:r=[t],s.label=1;case 1:if(!(r.length>0))return[3,4];for(i=r.shift(),o=i.firstChild;o;)r.push(o),o=o.nextSibling;return 0!==(u=ye(e))?[3,3]:[4,ke(e)];case 2:u=s.sent(),s.label=3;case 3:return 2===u?[3,4]:((c=ta(i,n,a))&&r.push(c),[3,1]);case 4:return[2]}}))}))}var Cn=[],Dn=[],An=null,jn=null,Rn=null,Ln=null,zn=null,Hn=[],Pn=null,Wn=null,Xn={};function Yn(){if(Cn=[],Hn=[],Pn=null,Wn=0,Xn={},null===An&&(An=CSSStyleSheet.prototype.insertRule,CSSStyleSheet.prototype.insertRule=function(){return Xi()&&Bn(this.ownerNode),An.apply(this,arguments)}),"CSSMediaRule"in window&&null===Ln&&(Ln=CSSMediaRule.prototype.insertRule,CSSMediaRule.prototype.insertRule=function(){return Xi()&&Bn(this.parentStyleSheet.ownerNode),Ln.apply(this,arguments)}),null===jn&&(jn=CSSStyleSheet.prototype.deleteRule,CSSStyleSheet.prototype.deleteRule=function(){return Xi()&&Bn(this.ownerNode),jn.apply(this,arguments)}),"CSSMediaRule"in window&&null===zn&&(zn=CSSMediaRule.prototype.deleteRule,CSSMediaRule.prototype.deleteRule=function(){return Xi()&&Bn(this.parentStyleSheet.ownerNode),zn.apply(this,arguments)}),null===Rn){Rn=Element.prototype.attachShadow;try{Element.prototype.attachShadow=function(){return Xi()?Bn(Rn.apply(this,arguments)):Rn.apply(this,arguments)}}catch(t){Rn=null}}}function qn(t){var e=s();K(6,e),Dn.push({time:e,mutations:t}),ge(Un,1).then((function(){X(Me),Ni(Xa)()}))}function Un(){return at(this,void 0,void 0,(function(){var t,e,n,a,r,i,u,c,l,d;return rt(this,(function(f){switch(f.label){case 0:be(t={id:oi(),cost:3}),f.label=1;case 1:if(!(Dn.length>0))return[3,8];e=Dn.shift(),n=s(),a=0,r=e.mutations,f.label=2;case 2:return a<r.length?(i=r[a],0!==(u=ye(t))?[3,4]:[4,ke(t)]):[3,6];case 3:u=f.sent(),f.label=4;case 4:if(2===u)return[3,6];switch(c=i.target,l=o.throttleDom?function(t,e,n,a){var r=t.target?ee(t.target.parentNode):null;if(r&&"HTML"!==r.data.tag){var i=a>Wn,o=ee(t.target),u=o&&o.selector?o.selector.join():t.target.nodeName,c=[r.selector?r.selector.join():"",u,t.attributeName,Fn(t.addedNodes),Fn(t.removedNodes)].join();Xn[c]=c in Xn?Xn[c]:[0,n];var s=Xn[c];if(!1===i&&s[0]>=10&&Vn(s[2],2,e,a),s[0]=i?s[1]===n?s[0]:s[0]+1:1,s[1]=n,10===s[0])return s[2]=t.removedNodes,"suspend";if(s[0]>10)return""}return t.type}(i,t,n,e.time):i.type,l&&c&&c.ownerDocument&&Bt(c.ownerDocument),l&&c&&c.nodeType==Node.DOCUMENT_FRAGMENT_NODE&&c.host&&Bt(c),l){case"attributes":ta(c,3,e.time);break;case"characterData":ta(c,4,e.time);break;case"childList":Vn(i.addedNodes,1,t,e.time),Vn(i.removedNodes,2,t,e.time);break;case"suspend":(d=ee(c))&&(d.metadata.suspend=!0)}f.label=5;case 5:return a++,[3,2];case 6:return[4,_a(6,t,e.time)];case 7:return f.sent(),[3,1];case 8:return we(t),[2]}}))}))}function Fn(t){for(var e=[],n=0;t&&n<t.length;n++)e.push(t[n].nodeName);return e.join()}function Vn(t,e,n,a){return at(this,void 0,void 0,(function(){var r,i,o;return rt(this,(function(u){switch(u.label){case 0:r=t?t.length:0,i=0,u.label=1;case 1:return i<r?1!==e?[3,2]:(In(t[i],n,e,a),[3,5]):[3,6];case 2:return 0!==(o=ye(n))?[3,4]:[4,ke(n)];case 3:o=u.sent(),u.label=4;case 4:if(2===o)return[3,6];ta(t[i],e,a),u.label=5;case 5:return i++,[3,1];case 6:return[2]}}))}))}function Bn(t){return Hn.indexOf(t)<0&&Hn.push(t),Pn&&Y(Pn),Pn=X((function(){!function(){for(var t=0,e=Hn;t<e.length;t++){var n=e[t];if(n){var a=n.nodeType===Node.DOCUMENT_FRAGMENT_NODE;if(a&&ae(n))continue;Jn(n,a?"childList":"characterData")}}Hn=[]}()}),33),t}function Jn(t,e){Ni(qn)([{addedNodes:[t],attributeName:null,attributeNamespace:null,nextSibling:null,oldValue:null,previousSibling:null,removedNodes:[],target:t,type:e}])}var Gn=/[^0-9\.]/g;function Kn(t){for(var e=0,n=Object.keys(t);e<n.length;e++){var a=n[e],r=t[a];if("@type"===a&&"string"==typeof r)switch(r=(r=r.toLowerCase()).indexOf("article")>=0||r.indexOf("posting")>=0?"article":r){case"article":case"recipe":Gr(5,t[a]),Gr(8,t.creator),Gr(18,t.headline);break;case"product":Gr(5,t[a]),Gr(10,t.name),Gr(12,t.sku),t.brand&&Gr(6,t.brand.name);break;case"aggregaterating":t.ratingValue&&(W(11,Zn(t.ratingValue,100)),W(18,Zn(t.bestRating)),W(19,Zn(t.worstRating))),W(12,Zn(t.ratingCount)),W(17,Zn(t.reviewCount));break;case"person":Gr(8,t.name);break;case"offer":Gr(7,t.availability),Gr(14,t.itemCondition),Gr(13,t.priceCurrency),Gr(12,t.sku),W(13,Zn(t.price));break;case"brand":Gr(6,t.name)}null!==r&&"object"==typeof r&&Kn(r)}}function Zn(t,e){if(void 0===e&&(e=1),null!==t)switch(typeof t){case"number":return Math.round(t*e);case"string":return Math.round(parseFloat(t.replace(Gn,""))*e)}return null}var Qn=["title","alt","onload","onfocus","onerror","data-drupal-form-submit-last","aria-label"],$n=/[\r\n]+/g;function ta(t,e,n){var a,r=null;if(2===e&&!1===ae(t))return r;0!==e&&t.nodeType===Node.TEXT_NODE&&t.parentElement&&"STYLE"===t.parentElement.tagName&&(t=t.parentNode);var i=!1===ae(t)?"add":"update",o=t.parentElement?t.parentElement:null,u=t.ownerDocument!==document;switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:o=u&&t.parentNode?Kt(t.parentNode):o;var c=t,s={tag:(u?"iframe:":"")+"*D",attributes:{name:c.name?c.name:"HTML",publicId:c.publicId,systemId:c.systemId}};ce[i](t,o,s,e);break;case Node.DOCUMENT_NODE:t===document&&Bt(document),ha(t,n),ea(t);break;case Node.DOCUMENT_FRAGMENT_NODE:var l=t;if(l.host){if(Bt(l),"function"===typeof l.constructor&&l.constructor.toString().indexOf("[native code]")>=0){ea(l);var d={tag:"*S",attributes:{style:""}};ce[i](t,l.host,d,e)}else ce[i](t,l.host,{tag:"*P",attributes:{}},e);ha(t,n)}break;case Node.TEXT_NODE:if(o=o||t.parentNode,"update"===i||o&&ae(o)&&"STYLE"!==o.tagName&&"NOSCRIPT"!==o.tagName){var f={tag:"*T",value:t.nodeValue};ce[i](t,o,f,e)}break;case Node.ELEMENT_NODE:var h=t,p=h.tagName,v=function(t){var e={},n=t.attributes;if(n&&n.length>0)for(var a=0;a<n.length;a++){var r=n[a].name;Qn.indexOf(r)<0&&(e[r]=n[a].value)}"INPUT"===t.tagName&&!("value"in e)&&t.value&&(e.value=t.value);return e}(h);switch(o=t.parentElement?t.parentElement:t.parentNode?t.parentNode:null,"http://www.w3.org/2000/svg"===h.namespaceURI&&(p="svg:"+p),p){case"HTML":o=u&&o?Kt(o):o;var g={tag:(u?"iframe:":"")+p,attributes:v};ce[i](t,o,g,e);break;case"SCRIPT":if("type"in v&&"application/ld+json"===v.type)try{Kn(JSON.parse(h.text.replace($n,"")))}catch(t){}break;case"NOSCRIPT":var m={tag:p,attributes:{},value:""};ce[i](t,o,m,e);break;case"META":var y="property"in v?"property":"name"in v?"name":null;if(y&&"content"in v){var b=v.content;switch(v[y]){case"og:title":Gr(20,b);break;case"og:type":Gr(19,b);break;case"generator":Gr(21,b)}}break;case"HEAD":var w={tag:p,attributes:v},k=u&&(null===(a=t.ownerDocument)||void 0===a?void 0:a.location)?t.ownerDocument.location:location;w.attributes["*B"]=k.protocol+"//"+k.host+k.pathname,ce[i](t,o,w,e);break;case"BASE":var S=ee(t.parentElement);if(S){var E=document.createElement("a");E.href=v.href,S.data.attributes["*B"]=E.protocol+"//"+E.host+E.pathname}break;case"STYLE":var O={tag:p,attributes:v,value:na(h)};ce[i](t,o,O,e);break;case"IFRAME":var T=t,N={tag:p,attributes:v};Gt(T)&&(!function(t){!1===ae(t)&&xi(t,"load",Jn.bind(this,t,"childList"),!0)}(T),N.attributes["*O"]="true",T.contentDocument&&T.contentWindow&&"loading"!==T.contentDocument.readyState&&(r=T.contentDocument)),ce[i](t,o,N,e);break;case"LINK":if(ei&&"stylesheet"===v.rel){for(var M in Object.keys(document.styleSheets)){var x=document.styleSheets[M];if(x.ownerNode==h){var _={tag:"STYLE",attributes:v,value:aa(x)};ce[i](t,o,_,e);break}}break}var I={tag:p,attributes:v};ce[i](t,o,I,e);break;case"VIDEO":case"AUDIO":case"SOURCE":"src"in v&&v.src.startsWith("data:")&&(v.src="");var C={tag:p,attributes:v};ce[i](t,o,C,e);break;default:var D={tag:p,attributes:v};h.shadowRoot&&(r=h.shadowRoot),ce[i](t,o,D,e)}}return r}function ea(t){ae(t)||(!function(t){try{var e=u("MutationObserver"),n=e in window?new window[e](Ni(qn)):null;n&&(n.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),Cn.push(n))}catch(t){kr(2,0,t?t.name:null)}}(t),xn(t))}function na(t){var e=t.textContent?t.textContent.trim():"",n=t.dataset?Object.keys(t.dataset).length:0;return(0===e.length||n>0||t.id.length>0)&&(e=aa(t.sheet)),e}function aa(t){var e="",n=null;try{n=t?t.cssRules:[]}catch(t){if(kr(1,1,t?t.name:null),t&&"SecurityError"!==t.name)throw t}if(null!==n)for(var a=0;a<n.length;a++)e+=n[a].cssText;return e}var ra=[],ia=[],oa=null,ua=null,ca="claritySheetId",sa="claritySheetNum",la={},da={},fa=[];function ha(t,e){if(-1===fa.indexOf(t)&&fa.push(t),e=e||s(),null==t?void 0:t.adoptedStyleSheets){W(36,1);for(var n=[],a=0,r=t.adoptedStyleSheets;a<r.length;a++){var i=r[a],o=$r.pageNum;i[sa]!==o&&(i[sa]=o,i[ca]=hi(),va(e,i[ca],0),va(e,i[ca],2,aa(i))),n.push(i[ca])}var u=Jt(t,!0);la[u]||(la[u]=[]),function(t,e){if(t.length!==e.length)return!1;return t.every((function(t,n){return t===e[n]}))}(n,la[u])||(!function(t,e,n,a){ia.push({time:t,event:45,data:{id:e,operation:n,newIds:a}}),_a(45)}(e,t==document?-1:Jt(t),3,n),la[u]=n,da[u]=e)}}function pa(){ia=[],ra=[]}function va(t,e,n,a){ra.push({time:t,event:46,data:{id:e,operation:n,cssRules:a}}),_a(46)}var ga=[],ma=null,ya=null,ba=null,wa=null,ka=null,Sa="clarityAnimationId",Ea="clarityOperationCount",Oa=20;function Ta(){ga=[]}function Na(t,e,n,a,r,i,o){ga.push({time:t,event:44,data:{id:e,operation:n,keyFrames:a,timing:r,targetId:i,timeline:o}}),_a(44)}function Ma(t,e){null===t&&(t=Animation.prototype[e],Animation.prototype[e]=function(){return xa(this,e),t.apply(this,arguments)})}function xa(t,e){if(Xi()){var n=t.effect,a=Jt(n.target);if(null!==a&&n.getKeyframes&&n.getTiming){if(!t[Sa]){t[Sa]=hi(),t[Ea]=0;var r=n.getKeyframes(),i=n.getTiming();Na(s(),t[Sa],0,JSON.stringify(r),JSON.stringify(i),a)}if(t[Ea]++<Oa){var o=null;switch(e){case"play":o=1;break;case"pause":o=2;break;case"cancel":o=3;break;case"finish":o=4}o&&Na(s(),t[Sa],o)}}}}function _a(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),at(this,void 0,void 0,(function(){var a,r,i,u,c,l,d,f,h,p,v,g,y,b,w,k,S,E,O,T,N,M,I,C,D,A,j,R,L;return rt(this,(function(z){switch(z.label){case 0:switch(a=n||s(),r=[a,t],t){case 8:return[3,1];case 7:return[3,2];case 45:case 46:return[3,3];case 44:return[3,4];case 5:case 6:return[3,5]}return[3,12];case 1:return i=Oe,r.push(i.width),r.push(i.height),x(t,i.width,i.height),sr(r),[3,12];case 2:for(u=0,c=Aa;u<c.length;u++)l=c[u],(r=[l.time,7]).push(l.data.id),r.push(l.data.interaction),r.push(l.data.visibility),r.push(l.data.name),sr(r);return Fa(),[3,12];case 3:for(d=0,f=ia;d<f.length;d++)y=f[d],(r=[y.time,y.event]).push(y.data.id),r.push(y.data.operation),r.push(y.data.newIds),sr(r);for(h=0,p=ra;h<p.length;h++)y=p[h],(r=[y.time,y.event]).push(y.data.id),r.push(y.data.operation),r.push(y.data.cssRules),sr(r);return pa(),[3,12];case 4:for(v=0,g=ga;v<g.length;v++)y=g[v],(r=[y.time,y.event]).push(y.data.id),r.push(y.data.operation),r.push(y.data.keyFrames),r.push(y.data.timing),r.push(y.data.timeline),r.push(y.data.targetId),sr(r);return Ta(),[3,12];case 5:if(2===ye(e))return[3,12];if(!((b=re()).length>0))return[3,11];w=0,k=b,z.label=6;case 6:return w<k.length?(S=k[w],0!==(E=ye(e))?[3,8]:[4,ke(e)]):[3,10];case 7:E=z.sent(),z.label=8;case 8:if(2===E)return[3,10];for(O=S.data,T=S.metadata.active,N=S.metadata.suspend,M=S.metadata.privacy,I=function(t){var e=t.metadata.privacy;return"*T"===t.data.tag&&!(0===e||1===e)}(S),C=0,D=T?["tag","attributes","value"]:["tag"];C<D.length;C++)if(O[A=D[C]])switch(A){case"tag":j=Ia(S),R=I?-1:1,r.push(S.id*R),S.parent&&T&&(r.push(S.parent),S.previous&&r.push(S.previous)),r.push(N?"*M":O[A]),j&&2===j.length&&r.push("".concat("#").concat(Ca(j[0]),".").concat(Ca(j[1])));break;case"attributes":for(L in O[A])void 0!==O[A][L]&&r.push(Da(L,O[A][L],M));break;case"value":Ot(S.metadata.fraud,S.id,O[A]),r.push(m(O[A],O.tag,M,I))}z.label=9;case 9:return w++,[3,6];case 10:6===t&&_(a),sr(function(t){for(var e=[],n={},a=0,r=null,i=0;i<t.length;i++)if("string"==typeof t[i]){var o=t[i],u=n[o]||-1;u>=0?r?r.push(u):(r=[u],e.push(r),a++):(r=null,e.push(o),n[o]=a++)}else r=null,e.push(t[i]),a++;return e}(r),!o.lean),z.label=11;case 11:return[3,12];case 12:return[2]}}))}))}function Ia(t){if(null!==t.metadata.size&&0===t.metadata.size.length){var e=te(t.id);if(e)return[Math.floor(100*e.offsetWidth),Math.floor(100*e.offsetHeight)]}return t.metadata.size}function Ca(t){return t.toString(36)}function Da(t,e,n){return"".concat(t,"=").concat(m(e,0===t.indexOf("data-")?"data-":t,n))}var Aa=[],ja=null,Ra={},La=[],za=!1,Ha=null;function Pa(t,e){!1===ja.has(t)&&(ja.set(t,e),(Ha=null===Ha&&za?new IntersectionObserver(Ya,{threshold:[0,.05,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]}):Ha)&&t&&t.nodeType===Node.ELEMENT_NODE&&Ha.observe(t))}function Wa(t){return ja&&ja.has(t)}function Xa(){for(var t=[],e=0,n=La;e<n.length;e++){var a=n[e],r=Jt(a.node);r?(a.state.data.id=r,Ra[r]=a.state.data,Aa.push(a.state)):t.push(a)}La=t,Aa.length>0&&_a(7)}function Ya(t){for(var e=0,n=t;e<n.length;e++){var a=n[e],r=a.target,i=a.boundingClientRect,o=a.intersectionRect,u=a.rootBounds;if(ja.has(r)&&i.width+i.height>0&&u.width>0&&u.height>0){var c=r?Jt(r):null,s=c in Ra?Ra[c]:{id:c,name:ja.get(r),interaction:16,visibility:0},l=(o?o.width*o.height*1/(u.width*u.height):0)>.05||a.intersectionRatio>.8,d=(l||10==s.visibility)&&Math.abs(i.top)+u.height>i.height;qa(r,s,s.interaction,d?13:l?10:0),s.visibility>=13&&Ha&&Ha.unobserve(r)}}Aa.length>0&&_a(7)}function qa(t,e,n,a){var r=n>e.interaction||a>e.visibility;e.interaction=n>e.interaction?n:e.interaction,e.visibility=a>e.visibility?a:e.visibility,e.id?(e.id in Ra&&r||!(e.id in Ra))&&(Ra[e.id]=e,Aa.push(Ua(e))):La.push({node:t,state:Ua(e)})}function Ua(t){return{time:s(),data:{id:t.id,interaction:t.interaction,visibility:t.visibility,name:t.name}}}function Fa(){Aa=[]}function Va(t){var e=t.composed&&t.composedPath?t.composedPath():null,n=e&&e.length>0?e[0]:t.target;return Wn=s()+3e3,n&&n.nodeType===Node.DOCUMENT_NODE?n.documentElement:n}function Ba(t,e,n){void 0===n&&(n=null);var a={id:0,hash:null,privacy:2,node:t};if(t){var r=ee(t);if(null!==r){var i=r.metadata;a.id=r.id,a.hash=r.hash,a.privacy=i.privacy,r.region&&function(t,e){var n=te(t),a=t in Ra?Ra[t]:{id:t,visibility:0,interaction:16,name:ja.get(n)},r=16;switch(e){case 9:r=20;break;case 27:r=30}qa(n,a,r,a.visibility)}(r.region,e),i.fraud&&Ot(i.fraud,r.id,n||r.data.value)}}return a}function Ja(t,e){return void 0===e&&(e=null),at(this,void 0,void 0,(function(){var n,a,r,i,o,u,c,l,d,f,h,p,v,g,b,w,k,S,E,O,T,N,M,_,C,D,A,j,R,L,z,H,P,W,X;return rt(this,(function(Y){switch(n=e||s(),a=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(r=0,i=Ge;r<i.length;r++)W=i[r],(o=Ba(W.data.target,W.event)).id>0&&((a=[W.time,W.event]).push(o.id),a.push(W.data.x),a.push(W.data.y),void 0!==W.data.id&&a.push(W.data.id),sr(a),x(W.event,W.data.x,W.data.y));en();break;case 9:for(u=0,c=Ae;u<c.length;u++)W=c[u],l=Ba(W.data.target,W.event,W.data.text),a=[W.time,W.event],d=l.hash?l.hash.join("."):"",a.push(l.id),a.push(W.data.x),a.push(W.data.y),a.push(W.data.eX),a.push(W.data.eY),a.push(W.data.button),a.push(W.data.reaction),a.push(W.data.context),a.push(m(W.data.text,"click",l.privacy)),a.push(y(W.data.link)),a.push(d),a.push(W.data.trust),sr(a),Qa(W.time,W.event,d,W.data.x,W.data.y,W.data.reaction,W.data.context);Pe();break;case 38:for(f=0,h=We;f<h.length;f++)W=h[f],a=[W.time,W.event],(z=Ba(W.data.target,W.event)).id>0&&(a.push(z.id),a.push(W.data.action),sr(a));Ye();break;case 11:p=Je,a.push(p.width),a.push(p.height),x(t,p.width,p.height),an(),sr(a);break;case 26:v=bn,a.push(v.name),Tn(),sr(a);break;case 27:for(g=0,b=Ue;g<b.length;g++)W=b[g],w=Ba(W.data.target,W.event,W.data.value),(a=[W.time,W.event]).push(w.id),a.push(m(W.data.value,"input",w.privacy,!1,W.data.type)),sr(a);Be();break;case 21:(k=hn)&&(S=Ba(k.start,t),E=Ba(k.end,t),a.push(S.id),a.push(k.startOffset),a.push(E.id),a.push(k.endOffset),yn(),sr(a));break;case 10:for(O=0,T=rn;O<T.length;O++)W=T[O],N=Ba(W.data.target,W.event),M=Ba(W.data.top,W.event),_=Ba(W.data.bottom,W.event),C=(null==M?void 0:M.hash)?M.hash.join("."):"",D=(null==_?void 0:_.hash)?_.hash.join("."):"",N.id>0&&((a=[W.time,W.event]).push(N.id),a.push(W.data.x),a.push(W.data.y),a.push(C),a.push(D),sr(a),x(W.event,W.data.x,W.data.y,W.time));rn=[],on=null,un=null;break;case 42:for(A=0,j=xe;A<j.length;A++)W=j[A],a=[W.time,W.event],(z=Ba(W.data.target,W.event)).id>0&&((a=[W.time,W.event]).push(z.id),a.push(W.data.type),a.push(m(W.data.value,"change",z.privacy)),a.push(m(W.data.checksum,"checksum",z.privacy)),sr(a));Ie();break;case 39:for(R=0,L=kn;R<L.length;R++)W=L[R],a=[W.time,W.event],(z=Ba(W.data.target,W.event)).id>0&&(a.push(z.id),sr(a));En();break;case 22:for(H=0,P=Ka;H<P.length;H++)W=P[H],(a=[W.time,W.event]).push(W.data.type),a.push(W.data.hash),a.push(W.data.x),a.push(W.data.y),a.push(W.data.reaction),a.push(W.data.context),sr(a,!1);Za();break;case 28:X=wn,a.push(X.visible),sr(a),I(n,X.visible),Mn()}return[2]}))}))}var Ga=[],Ka=[];function Za(){Ka=[]}function Qa(t,e,n,a,r,i,o){void 0===i&&(i=1),void 0===o&&(o=0),Ga.push({time:t,event:22,data:{type:e,hash:n,x:a,y:r,reaction:i,context:o}}),x(e,a,r)}var $a,tr,er,nr,ar,rr=0,ir=0,or=null,ur=0;function cr(){nr=!0,rr=0,ir=0,ur=0,$a=[],tr=[],er={},ar=null}function sr(t,e){if(void 0===e&&(e=!0),nr){var n=s(),a=t.length>1?t[1]:null,r=JSON.stringify(t);switch(a){case 5:rr+=r.length;case 37:case 6:case 43:case 45:case 46:ir+=r.length,$a.push(r);break;default:tr.push(r)}H(25);var i=function(){var t=!1===o.lean&&rr>0?100:wi.sequence*o.delay;return"string"==typeof o.upload?Math.max(Math.min(t,3e4),100):o.delay}();n-ur>2*i&&(Y(or),or=null),e&&null===or&&(25!==a&&V(),or=X(dr,i),ur=n,Xr(ir))}}function lr(){Y(or),dr(!0),rr=0,ir=0,ur=0,$a=[],tr=[],er={},ar=null,nr=!1}function dr(t){return void 0===t&&(t=!1),at(this,void 0,void 0,(function(){var e,n,a,r,i,u,c,s;return rt(this,(function(l){switch(l.label){case 0:return or=null,(e=!1===o.lean&&ir>0&&(ir<1048576||wi.sequence>0))&&W(1,1),Xa(),function(){var t=[];Ka=[];for(var e=wi.start+wi.duration,n=Math.max(e-2e3,0),a=0,r=Ga;a<r.length;a++){var i=r[a];i.time>=n&&(i.time<=e&&Ka.push(i),t.push(i))}Ga=t,Ja(22)}(),kt(),function(){for(var t=0,e=fa;t<e.length;t++){var n=e[t],a=n==document?-1:Jt(n),r=a in da?da[a]:null;ha(document,r)}}(),n=!0===t,a=JSON.stringify(Ei(n)),r="[".concat(tr.join(),"]"),i=e?"[".concat($a.join(),"]"):"",u=function(t){return t.p.length>0?'{"e":'.concat(t.e,',"a":').concat(t.a,',"p":').concat(t.p,"}"):'{"e":'.concat(t.e,',"a":').concat(t.a,"}")}({e:a,a:r,p:i}),n?(s=null,[3,3]):[3,1];case 1:return[4,pt(u)];case 2:s=l.sent(),l.label=3;case 3:return P(2,(c=s)?c.length:u.length),fr(u,c,wi.sequence,n),tr=[],e&&($a=[],ir=0,rr=0),[2]}}))}))}function fr(t,e,n,a){if(void 0===a&&(a=!1),"string"==typeof o.upload){var r=o.upload,i=!1;if(a&&"sendBeacon"in navigator)try{(i=navigator.sendBeacon.bind(navigator)(r,t))&&pr(n)}catch(t){}if(!1===i){n in er?er[n].attempts++:er[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",r,!0),u.timeout=15e3,u.ontimeout=function(){Ti(new Error("".concat("Timeout"," : ").concat(r)))},null!==n&&(u.onreadystatechange=function(){Ni(hr)(u,n)}),u.withCredentials=!0,e?(u.setRequestHeader("Accept","application/x-clarity-gzip"),u.send(e)):u.send(t)}}else if(o.upload){(0,o.upload)(t),pr(n)}}function hr(t,e){var n=er[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Yr(6):(0===t.status&&(o.upload=o.fallback?o.fallback:o.upload),fr(n.data,null,e)):(ar={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&Pr(2),200===t.status&&t.responseText&&function(t){for(var e=t&&t.length>0?t.split("\n"):[],n=0,a=e;n<a.length;n++){var r=a[n],i=r&&r.length>0?r.split(/ (.*)/):[""];switch(i[0]){case"END":Yr(6);break;case"UPGRADE":et("Auto");break;case"ACTION":o.action&&i.length>1&&o.action(i[1]);break;case"EXTRACT":i.length>1&&Ir(i[1]);break;case"SIGNAL":i.length>1&&mt(i[1])}}}(t.responseText),0===t.status&&(fr(n.data,null,e,!0),Yr(3)),t.status>=200&&t.status<=208&&pr(e),delete er[e]))}function pr(t){1===t&&(li(),si())}var vr,gr={};function mr(t){var e=t.error||t;return e.message in gr||(gr[e.message]=0),gr[e.message]++>=5||e&&e.message&&(vr={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},yr(31)),!0}function yr(t){return at(this,void 0,void 0,(function(){var e;return rt(this,(function(n){switch(e=[s(),t],t){case 31:e.push(vr.message),e.push(vr.line),e.push(vr.column),e.push(vr.stack),e.push(y(vr.source)),sr(e);break;case 33:br&&(e.push(br.code),e.push(br.name),e.push(br.message),e.push(br.stack),e.push(br.severity),sr(e,!1));break;case 41:St&&(e.push(St.id),e.push(St.target),e.push(St.checksum),sr(e,!1))}return[2]}))}))}var br,wr={};function kr(t,e,n,a,r){void 0===n&&(n=null),void 0===a&&(a=null),void 0===r&&(r=null);var i=n?"".concat(n,"|").concat(a):"";t in wr&&wr[t].indexOf(i)>=0||(br={code:t,name:n,message:a,stack:r,severity:e},t in wr?wr[t].push(i):wr[t]=[i],yr(33))}var Sr,Er={},Or=new Set,Tr={},Nr={},Mr={},xr={};function _r(){Ar()}function Ir(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=e[0].split(/\|(.*)/),a=parseInt(n[0]),r=n.length>1?n[1]:"",i=e.length>1?JSON.parse(e[1]):{};for(var o in Tr[a]={},Nr[a]={},Mr[a]={},xr[a]=r,i){var u=parseInt(o),c=i[o],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.substring(1,c.length);Tr[a][u]=Lr(l);break;case 2:Nr[a][u]=c;break;case 4:var d=c.substring(1,c.length);Mr[a][u]=d}}}catch(t){kr(8,1,t?t.name:null)}}function Cr(t){return JSON.parse(JSON.stringify(t))}function Dr(){try{for(var t in Tr){var e=parseInt(t);if(""==xr[e]||document.querySelector(xr[e])){var n=Tr[e];for(var a in n){var r=parseInt(a),i=(h=zr(Cr(n[r])))?JSON.stringify(h).substring(0,1e4):h;i&&jr(e,r,i)}var o=Nr[e];for(var u in o){var c=parseInt(u),s=document.querySelectorAll(o[c]);if(s)jr(e,c,Array.from(s).map((function(t){return t.textContent})).join("<SEP>").substring(0,1e4))}var l=Mr[e];for(var d in l){var f=parseInt(d);jr(e,f,$t(l[f]).trim().substring(0,1e4))}}}Or.size>0&&Pr(40)}catch(t){kr(5,1,t?t.name:null)}var h}function Ar(){Or.clear()}function jr(t,e,n){var a,r=!1;t in Er||(Er[t]={},r=!0),a=Mr[t],0==Object.keys(a).length||e in Er[t]&&Er[t][e]==n||(r=!0),Er[t][e]=n,r&&Or.add(t)}function Rr(){Ar()}function Lr(t){for(var e=[],n=t.split(".");n.length>0;){var a=n.shift(),r=a.indexOf("["),i=a.indexOf("{"),o=a.indexOf("}");e.push({name:r>0?a.substring(0,r):i>0?a.substring(0,i):a,type:r>0?1:i>0?2:3,condition:i>0?a.substring(i+1,o):null})}return e}function zr(t,e){if(void 0===e&&(e=window),0==t.length)return e;var n,a=t.shift();if(e&&e[a.name]){var r=e[a.name];if(1!==a.type&&Hr(r,a.condition))n=zr(t,r);else if(Array.isArray(r)){for(var i=[],o=0,u=r;o<u.length;o++){var c=u[o];if(Hr(c,a.condition)){var s=zr(t,c);s&&i.push(s)}}n=i}return n}return null}function Hr(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}function Pr(t){var e=[s(),t];switch(t){case 4:var n=O;n&&((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),sr(e,!1)),M();break;case 25:e.push(R.gap),sr(e);break;case 35:e.push(Sr.check),sr(e,!1);break;case 3:e.push(tt.key),sr(e);break;case 2:e.push(ar.sequence),e.push(ar.attempts),e.push(ar.status),sr(e,!1);break;case 24:A.key&&e.push(A.key),e.push(A.value),sr(e);break;case 34:var a=Object.keys(it);if(a.length>0){for(var r=0,i=a;r<i.length;r++){var o=i[r];e.push(o),e.push(it[o])}lt(),sr(e,!1)}break;case 0:var u=Object.keys(z);if(u.length>0){for(var c=0,l=u;c<l.length;c++){var d=l[c],f=parseInt(d,10);e.push(f),e.push(Math.round(z[d]))}z={},sr(e,!1)}break;case 1:var h=Object.keys(Vr);if(h.length>0){for(var p=0,v=h;p<v.length;p++){var g=v[p];f=parseInt(g,10);e.push(f),e.push(Vr[g])}Zr(),sr(e,!1)}break;case 36:var m=Object.keys(G);if(m.length>0){for(var y=0,b=m;y<b.length;y++){var w=b[y];f=parseInt(w,10);e.push(f),e.push([].concat.apply([],G[w]))}Q(),sr(e,!1)}break;case 40:Or.forEach((function(t){e.push(t);var n=[];for(var a in Er[t]){var r=parseInt(a,10);n.push(r),n.push(Er[t][a])}e.push(n)})),Ar(),sr(e,!1)}}function Wr(){Sr={check:0}}function Xr(t){if(0===Sr.check){var e=Sr.check;e=wi.sequence>=128?1:e,e=wi.pageNum>=128?7:e,e=s()>72e5?2:e,(e=t>10485760?2:e)!==Sr.check&&Yr(e)}}function Yr(t){Sr.check=t,ci(),no()}function qr(){0!==Sr.check&&Pr(35)}function Ur(){Sr=null}var Fr=null,Vr=null;function Br(){Fr={},Vr={}}function Jr(){Fr={},Vr={}}function Gr(t,e){e&&(e="".concat(e),t in Fr||(Fr[t]=[]),Fr[t].indexOf(e)<0&&(Fr[t].push(e),t in Vr||(Vr[t]=[]),Vr[t].push(e),Fr[t].length>128&&Yr(5)))}function Kr(){Pr(1)}function Zr(){Vr={}}function Qr(t){Gr(36,t.toString())}var $r=null,ti=[],ei=0,ni=null;function ai(){var t,e,n;ni=null;var a=navigator&&"userAgent"in navigator?navigator.userAgent:"",r=null!==(n=null===(e=null===(t=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===t?void 0:t.resolvedOptions())||void 0===e?void 0:e.timeZone)&&void 0!==n?n:"",i=(new Date).getTimezoneOffset().toString(),u=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";ei=a.indexOf("Electron")>0?1:0;var s,l=function(){var t={session:hi(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=gi("_clsk");if(e){var n=e.split("|");n.length>=5&&t.ts-pi(n[1])<18e5&&(t.session=n[0],t.count=pi(n[2])+1,t.upgrade=pi(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),f=vi(),h=o.projectId||d(location.host);$r={projectId:h,userId:f.id,sessionId:l.session,pageNum:l.count},o.lean=o.track&&null!==l.upgrade?0===l.upgrade:o.lean,o.upload=o.track&&"string"==typeof o.upload&&l.upload&&l.upload.length>"https://".length?l.upload:o.upload,Gr(0,a),Gr(3,c),Gr(1,y(location.href,!!ei)),Gr(2,document.referrer),Gr(15,function(){var t=hi();if(o.track&&di(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),Gr(16,document.documentElement.lang),Gr(17,document.dir),Gr(26,"".concat(window.devicePixelRatio)),Gr(28,f.dob.toString()),Gr(29,f.version.toString()),Gr(33,u),Gr(34,r),Gr(35,i),W(0,l.ts),W(1,0),W(35,ei),navigator&&(Gr(9,navigator.language),W(33,navigator.hardwareConcurrency),W(32,navigator.maxTouchPoints),W(34,Math.round(navigator.deviceMemory)),(s=navigator.userAgentData)&&s.getHighEntropyValues?s.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;Gr(22,t.platform),Gr(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){Gr(24,t.name+"~"+t.version)})),Gr(25,t.model),W(27,t.mobile?1:0)})):Gr(22,navigator.platform)),screen&&(W(14,Math.round(screen.width)),W(15,Math.round(screen.height)),W(16,Math.round(screen.colorDepth)));for(var p=0,v=o.cookies;p<v.length;p++){var g=v[p],m=gi(g);m&&ot(g,m)}!function(t){Qr(t?1:0)}(o.track),fi(f)}function ri(){ni=null,$r=null,ti.forEach((function(t){t.called=!1}))}function ii(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1);var a=o.lean?0:1,r=!1;$r&&(a||!1===e)&&(t($r,!o.lean),r=!0),!n&&r||ti.push({callback:t,wait:e,recall:n,called:r})}function oi(){return $r?[$r.userId,$r.sessionId,$r.pageNum].join("."):""}function ui(t){if(void 0===t&&(t=!0),!t)return o.track=!1,yi("_clsk","",-Number.MAX_VALUE),yi("_clck","",-Number.MAX_VALUE),no(),void window.setTimeout(eo,250);Xi()&&(o.track=!0,fi(vi(),1),li(),Qr(2))}function ci(){yi("_clsk","",0)}function si(){!function(t){if(ti.length>0)for(var e=0;e<ti.length;e++){var n=ti[e];!n.callback||n.called||n.wait&&!t||(n.callback($r,!o.lean),n.called=!0,n.recall||(ti.splice(e,1),e--))}}(o.lean?0:1)}function li(){if($r){var t=Math.round(Date.now()),e=o.upload&&"string"==typeof o.upload?o.upload.replace("https://",""):"",n=o.lean?0:1;yi("_clsk",[$r.sessionId,t,$r.pageNum,n,e].join("|"),1)}}function di(t,e){try{return!!t[e]}catch(t){return!1}}function fi(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5),a=0===t.dob?null===o.dob?0:o.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==a)&&yi("_clck",[$r.userId,2,n.toString(36),e,a].join("|"),365)}function hi(){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 pi(t,e){return void 0===e&&(e=10),parseInt(t,e)}function vi(){var t={id:hi(),version:0,expiry:null,consent:0,dob:0},e=gi("_clck");if(e&&e.length>0){for(var n=e.split("|"),a=0,r=0,i=document.cookie.split(";");r<i.length;r++){a+="_clck"===i[r].split("=")[0].trim()?1:0}if(1===n.length||a>1){var u="".concat(";").concat("expires=").concat(new Date(0).toUTCString()).concat(";path=/");document.cookie="".concat("_clck","=").concat(u),document.cookie="".concat("_clsk","=").concat(u)}n.length>1&&(t.version=pi(n[1])),n.length>2&&(t.expiry=pi(n[2],36)),n.length>3&&1===pi(n[3])&&(t.consent=1),n.length>4&&pi(n[1])>1&&(t.dob=pi(n[4])),o.track=o.track||1===t.consent,t.id=o.track?n[0]:t.id}return t}function gi(t){var e;if(di(document,"cookie")){var n=document.cookie.split(";");if(n)for(var a=0;a<n.length;a++){var r=n[a].split("=");if(r.length>1&&r[0]&&r[0].trim()===t){for(var i=mi(r[1]),o=i[0],u=i[1];o;)o=(e=mi(u))[0],u=e[1];return u}}}return null}function mi(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}function yi(t,e,n){if((o.track||""==e)&&(navigator&&navigator.cookieEnabled||di(document,"cookie"))){var a=function(t){return encodeURIComponent(t)}(e),r=new Date;r.setDate(r.getDate()+n);var i=r?"expires="+r.toUTCString():"",u="".concat(t,"=").concat(a).concat(";").concat(i).concat(";path=/");try{if(null===ni){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(ni=".".concat(c[s]).concat(ni||""),s<c.length-1&&(document.cookie="".concat(u).concat(";").concat("domain=").concat(ni),gi(t)===e))return;ni=""}}catch(t){ni=""}document.cookie=ni?"".concat(u).concat(";").concat("domain=").concat(ni):u}}var bi,wi=null;function ki(){var t=$r;wi={version:l,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0}}function Si(){wi=null}function Ei(t){return wi.start=wi.start+wi.duration,wi.duration=s()-wi.start,wi.sequence++,wi.upload=t&&"sendBeacon"in navigator?1:0,wi.end=t?1:0,[wi.version,wi.sequence,wi.start,wi.duration,wi.projectId,wi.userId,wi.sessionId,wi.pageNum,wi.upload,wi.end]}function Oi(){bi=[]}function Ti(t){if(bi&&-1===bi.indexOf(t.message)){var e=o.report;if(e&&e.length>0){var n={v:wi.version,p:wi.projectId,u:wi.userId,s:wi.sessionId,n:wi.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var a=new XMLHttpRequest;a.open("POST",e,!0),a.send(JSON.stringify(n)),bi.push(t.message)}}return t}function Ni(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw Ti(t)}var n=performance.now()-e;P(4,n),n>o.longTask&&(H(7),W(6,n))}}var Mi=[];function xi(t,e,n,a){void 0===a&&(a=!1),n=Ni(n);try{t[u("addEventListener")](e,n,a),Mi.push({event:e,target:t,listener:n,capture:a})}catch(t){}}function _i(){for(var t=0,e=Mi;t<e.length;t++){var n=e[t];try{n.target[u("removeEventListener")](n.event,n.listener,n.capture)}catch(t){}}Mi=[]}var Ii=null,Ci=null,Di=null,Ai=0;function ji(){return!(Ai++>20)||(kr(4,0),!1)}function Ri(){Ai=0,Di!==zi()&&(no(),window.setTimeout(Li,250))}function Li(){eo(),W(29,1)}function zi(){return location.href?location.href.replace(location.hash,""):location.href}var Hi=!1;function Pi(){Hi=!0,c=performance.now()+performance.timeOrigin,ve(),_i(),Oi(),Di=zi(),Ai=0,xi(window,"popstate",Ri),null===Ii&&(Ii=history.pushState,history.pushState=function(){Ii.apply(this,arguments),Xi()&&ji()&&Ri()}),null===Ci&&(Ci=history.replaceState,history.replaceState=function(){Ci.apply(this,arguments),Xi()&&ji()&&Ri()})}function Wi(){Di=null,Ai=0,Oi(),_i(),ve(),c=0,Hi=!1}function Xi(){return Hi}function Yi(){eo(),j("clarity","restart")}var qi=Object.freeze({__proto__:null,start:function(){!function(){Et=[],W(26,navigator.webdriver?1:0);try{W(31,window.top==window.self||window.top==window?1:2)}catch(t){W(31,0)}}(),xi(window,"error",mr),gr={},wr={}},stop:function(){wr={}}});function Ui(){return at(this,void 0,void 0,(function(){var t,e;return rt(this,(function(n){switch(n.label){case 0:return t=s(),be(e={id:oi(),cost:3}),[4,In(document,e,0,t)];case 1:return n.sent(),ha(document,t),[4,_a(5,e,t)];case 2:return n.sent(),we(e),[2]}}))}))}var Fi=Object.freeze({__proto__:null,hashText:$t,start:function(){Ne(),Me(),Fa(),Ha=null,ja=new WeakMap,Ra={},La=[],za=!!window.IntersectionObserver,Ut(),o.delayDom?xi(window,"load",(function(){Yn()})):Yn(),ge(Ui,1).then((function(){Ni(Me)(),Ni(Xa)(),Ni(fn)()})),null===oa&&(oa=CSSStyleSheet.prototype.replace,CSSStyleSheet.prototype.replace=function(){return Xi()&&(W(36,1),this[sa]===$r.pageNum&&va(s(),this[ca],1,arguments[0])),oa.apply(this,arguments)}),null===ua&&(ua=CSSStyleSheet.prototype.replaceSync,CSSStyleSheet.prototype.replaceSync=function(){return Xi()&&(W(36,1),this[sa]===$r.pageNum&&va(s(),this[ca],2,arguments[0])),ua.apply(this,arguments)}),function(){if(window.Animation&&window.KeyframeEffect&&window.KeyframeEffect.prototype.getKeyframes&&window.KeyframeEffect.prototype.getTiming&&(Ta(),Ma(ya,"play"),Ma(ba,"pause"),Ma(wa,"cancel"),Ma(ka,"finish"),null===ma&&(ma=Element.prototype.animate,Element.prototype.animate=function(){var t=ma.apply(this,arguments);return xa(t,"play"),t}),document.getAnimations))for(var t=0,e=document.getAnimations();t<e.length;t++){var n=e[t];"finished"===n.playState?xa(n,"finish"):"paused"===n.playState||"idle"===n.playState?xa(n,"pause"):"running"===n.playState&&xa(n,"play")}}()},stop:function(){Fa(),ja=null,Ra={},La=[],Ha&&(Ha.disconnect(),Ha=null),za=!1,Ft(),function(){for(var t=0,e=Cn;t<e.length;t++){var n=e[t];n&&n.disconnect()}Cn=[],Xn={},Dn=[],Hn=[],Wn=0,Pn=null}(),Ne(),la={},da={},fa=[],pa(),Ta()}});var Vi,Bi=null;function Ji(){Bi=null}function Gi(t){Bi={fetchStart:Math.round(t.fetchStart),connectStart:Math.round(t.connectStart),connectEnd:Math.round(t.connectEnd),requestStart:Math.round(t.requestStart),responseStart:Math.round(t.responseStart),responseEnd:Math.round(t.responseEnd),domInteractive:Math.round(t.domInteractive),domComplete:Math.round(t.domComplete),loadEventStart:Math.round(t.loadEventStart),loadEventEnd:Math.round(t.loadEventEnd),redirectCount:Math.round(t.redirectCount),size:t.transferSize?t.transferSize:0,type:t.type,protocol:t.nextHopProtocol,encodedSize:t.encodedBodySize?t.encodedBodySize:0,decodedSize:t.decodedBodySize?t.decodedBodySize:0},function(t){at(this,void 0,void 0,(function(){var e,n;return rt(this,(function(a){return e=s(),n=[e,t],29===t&&(n.push(Bi.fetchStart),n.push(Bi.connectStart),n.push(Bi.connectEnd),n.push(Bi.requestStart),n.push(Bi.responseStart),n.push(Bi.responseEnd),n.push(Bi.domInteractive),n.push(Bi.domComplete),n.push(Bi.loadEventStart),n.push(Bi.loadEventEnd),n.push(Bi.redirectCount),n.push(Bi.size),n.push(Bi.type),n.push(Bi.protocol),n.push(Bi.encodedSize),n.push(Bi.decodedSize),Ji(),sr(n)),[2]}))}))}(29)}var Ki=["navigation","resource","longtask","first-input","layout-shift","largest-contentful-paint","event"];function Zi(){try{Vi&&Vi.disconnect(),Vi=new PerformanceObserver(Ni(Qi));for(var t=0,e=Ki;t<e.length;t++){var n=e[t];PerformanceObserver.supportedEntryTypes.indexOf(n)>=0&&("layout-shift"===n&&P(9,0),Vi.observe({type:n,buffered:!0}))}}catch(t){kr(3,1)}}function Qi(t){!function(t){for(var e=(!("visibilityState"in document)||"visible"===document.visibilityState),n=0;n<t.length;n++){var a=t[n];switch(a.entryType){case"navigation":Gi(a);break;case"resource":var r=a.name;Gr(4,$i(r)),r!==o.upload&&r!==o.fallback||W(28,a.duration);break;case"longtask":H(7);break;case"first-input":e&&W(10,a.processingStart-a.startTime);break;case"event":e&&W(37,a.duration);break;case"layout-shift":e&&!a.hadRecentInput&&P(9,1e3*a.value);break;case"largest-contentful-paint":e&&W(8,a.startTime)}}}(t.getEntries())}function $i(t){var e=document.createElement("a");return e.href=t,e.host}var to=[qi,Fi,_n,Object.freeze({__proto__:null,start:function(){Ji(),function(){navigator&&"connection"in navigator&&Gr(27,navigator.connection.effectiveType),window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?"complete"!==document.readyState?xi(window,"load",X.bind(this,Zi,0)):Zi():kr(3,0)}()},stop:function(){Vi&&Vi.disconnect(),Vi=null,Ji()}})];function eo(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===Hi&&"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||Hi)return!1;for(var e in t)e in o&&(o[e]=t[e])}(t),Pi(),bt(),to.forEach((function(t){return Ni(t.start)()})),null===t&&oo())}function no(){Xi()&&(to.slice().reverse().forEach((function(t){return Ni(t.stop)()})),wt(),Wi(),void 0!==ro&&(ro[io]=function(){(ro[io].q=ro[io].q||[]).push(arguments),"start"===arguments[0]&&ro[io].q.unshift(ro[io].q.pop())&&oo()}))}var ao=Object.freeze({__proto__:null,consent:ui,event:j,hashText:$t,identify:ut,metadata:ii,pause:function(){Xi()&&(j("clarity","pause"),null===he&&(he=new Promise((function(t){pe=t}))))},resume:function(){Xi()&&(he&&(pe(),he=null,null===fe&&me()),j("clarity","resume"))},set:ot,signal:function(t){gt=t},start:eo,stop:no,upgrade:et,version:l}),ro=window,io="clarity";function oo(){if(void 0!==ro){if(ro[io]&&ro[io].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=ro[io]&&ro[io].q||[];for(ro[io]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return ao[t].apply(ao,e)},ro[io].v=l;t.length>0;)ro[io].apply(ro,t.shift())}}oo()}();
|
|
1
|
+
!function(){"use strict";var t=Object.freeze({__proto__:null,get queue(){return sr},get start(){return cr},get stop(){return lr},get track(){return ar}}),e=Object.freeze({__proto__:null,get clone(){return Cr},get compute(){return Dr},get data(){return Er},get keys(){return Or},get reset(){return Ar},get start(){return _r},get stop(){return Rr},get trigger(){return Ir},get update(){return jr}}),n=Object.freeze({__proto__:null,get check(){return Xr},get compute(){return qr},get data(){return Sr},get start(){return Wr},get stop(){return Ur},get trigger(){return Yr}}),a=Object.freeze({__proto__:null,get compute(){return Kr},get data(){return Fr},get log(){return Gr},get reset(){return Zr},get start(){return Br},get stop(){return Jr},get updates(){return Vr}}),r=Object.freeze({__proto__:null,get callback(){return si},get callbacks(){return ti},get clear(){return ci},get consent(){return ui},get data(){return $r},get electron(){return ei},get id(){return oi},get metadata(){return ii},get save(){return li},get shortid(){return hi},get start(){return ai},get stop(){return ri}}),i=Object.freeze({__proto__:null,get data(){return wi},get envelope(){return Ei},get start(){return ki},get stop(){return Si}}),o={projectId:null,delay:1e3,lean:!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,longTask:30};function u(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var c=0;function s(t){void 0===t&&(t=null);var e=t&&t.timeStamp>0?t.timeStamp:performance.now(),n=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(e+n-c),0)}var l="0.7.53";function d(t,e){void 0===e&&(e=null);for(var n,a=5381,r=a,i=0;i<t.length;i+=2){if(a=(a<<5)+a^t.charCodeAt(i),i+1<t.length)r=(r<<5)+r^t.charCodeAt(i+1)}return n=Math.abs(a+11579*r),(e?n%Math.pow(2,e):n).toString(36)}var f=/\S/gi,h=!0,p=null,v=null,g=null;function m(t,e,n,a,r){if(void 0===a&&(a=!1),t){if("input"==e&&("checkbox"===r||"radio"===r))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,a=!1,r=!1,i=!1,o=null;E();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(a=a||c>=48&&c<=57,r=r||64===c,i=9===c||10===c||13===c||32===c,0===u||u===t.length-1||i){if(a||r){null===o&&(o=t.split(""));var s=t.substring(e+1,i?u:u+1);s=h&&null!==g?s.match(g)?s:k(s,"▪","▫"):w(s),o.splice(e+1-n,s.length,s),n+=s.length-1}i&&(a=!1,r=!1,e=u)}}return o?o.join(""):t}(t);case"input":case"change":return S(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return a?b(t):w(t);case"src":case"srcset":case"title":case"alt":return 3===n?"":t;case"value":case"click":case"input":case"change":return S(t);case"placeholder":return w(t)}break;case 4:switch(e){case"*T":case"data-":return a?b(t):w(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 k(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 y(t,e){if(void 0===e&&(e=!1),e)return"".concat("https://").concat("Electron");var n=o.drop;if(n&&n.length>0&&t&&t.indexOf("?")>0){var a=t.split("?"),r=a[0],i=a[1];return r+"?"+i.split("&").map((function(t){return n.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}return t}function b(t){var e=t.trim();if(e.length>0){var n=e[0],a=t.indexOf(n),r=t.substr(0,a),i=t.substr(a+e.length);return"".concat(r).concat(e.length.toString(36)).concat(i)}return t}function w(t){return t.replace(f,"•")}function k(t,e,n){return E(),t?t.replace(v,e).replace(p,n):t}function S(t){for(var e=5*(Math.floor(t.length/5)+1),n="",a=0;a<e;a++)n+=a>0&&a%5==0?" ":"•";return n}function E(){if(h&&null===p)try{p=new RegExp("\\p{N}","gu"),v=new RegExp("\\p{L}","gu"),g=new RegExp("\\p{Sc}","gu")}catch(t){h=!1}}var O=null,T=null,N=!1;function M(){N&&(O={time:s(),event:4,data:{visible:T.visible,docWidth:T.docWidth,docHeight:T.docHeight,screenWidth:T.screenWidth,screenHeight:T.screenHeight,scrollX:T.scrollX,scrollY:T.scrollY,pointerX:T.pointerX,pointerY:T.pointerY,activityTime:T.activityTime,scrollTime:T.scrollTime}}),T=T||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0,scrollTime:0}}function x(t,e,n,a){switch(t){case 8:T.docWidth=e,T.docHeight=n;break;case 11:T.screenWidth=e,T.screenHeight=n;break;case 10:T.scrollX=e,T.scrollY=n,T.scrollTime=a;break;default:T.pointerX=e,T.pointerY=n}N=!0}function _(t){T.activityTime=t}function I(t,e){T.visible="visible"===e?1:0,T.visible||_(t),N=!0}function C(){N&&Pr(4)}var D=Object.freeze({__proto__:null,activity:_,compute:C,reset:M,start:function(){N=!1,M()},get state(){return O},stop:function(){M()},track:x,visibility:I}),A=null;function j(t,e){Xi()&&t&&"string"==typeof t&&t.length<255&&(A=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},Pr(24))}var R,L=null,z=null;function H(t){t in L||(L[t]=0),t in z||(z[t]=0),L[t]++,z[t]++}function P(t,e){null!==e&&(t in L||(L[t]=0),t in z||(z[t]=0),L[t]+=e,z[t]+=e)}function W(t,e){null!==e&&!1===isNaN(e)&&(t in L||(L[t]=0),(e>L[t]||0===L[t])&&(z[t]=e,L[t]=e))}function X(t,e,n){return window.setTimeout(Ni(t),e,n)}function Y(t){return window.clearTimeout(t)}var q=0,U=0,F=null;function V(){F&&Y(F),F=X(B,U),q=s()}function B(){var t=s();R={gap:t-q},Pr(25),R.gap<3e5?F=X(B,U):Hi&&(j("clarity","suspend"),ho(),["mousemove","touchstart"].forEach((function(t){return xi(document,t,Yi)})),["resize","scroll","pageshow"].forEach((function(t){return xi(window,t,Yi)})))}var J=Object.freeze({__proto__:null,get data(){return R},reset:V,start:function(){U=6e4,q=0},stop:function(){Y(F),q=0,U=0}}),G=null;function K(t,e){if(t in G){var n=G[t],a=n[n.length-1];e-a[0]>100?G[t].push([e,0]):a[1]=e-a[0]}else G[t]=[[e,0]]}function Z(){Pr(36)}function Q(){G={}}var $=Object.freeze({__proto__:null,compute:Z,get data(){return G},reset:Q,start:function(){G={}},stop:function(){G={}},track:K}),tt=null;function et(t){Xi()&&o.lean&&(o.lean=!1,tt={key:t},si(),li(),o.upgrade&&o.upgrade(t),Pr(3))}var nt=Object.freeze({__proto__:null,get data(){return tt},start:function(){!o.lean&&o.upgrade&&o.upgrade("Config"),tt=null},stop:function(){tt=null},upgrade:et});function at(t,e,n,a){return new(n||(n=Promise))((function(r,i){function o(t){try{c(a.next(t))}catch(t){i(t)}}function u(t){try{c(a.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,u)}c((a=a.apply(t,e||[])).next())}))}function rt(t,e){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var it=null;function ot(t,e){ct(t,"string"==typeof e?[e]:e)}function ut(t,e,n,a){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===a&&(a=null),at(this,void 0,void 0,(function(){var r,i;return rt(this,(function(o){switch(o.label){case 0:return i={},[4,dt(t)];case 1:return i.userId=o.sent(),i.userHint=a||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(k(u.substring(2),"*","*")):k(u,"*","*")),ct("userId",[(r=i).userId]),ct("userHint",[r.userHint]),ct("userType",[ft(t)]),e&&(ct("sessionId",[e]),r.sessionId=e),n&&(ct("pageId",[n]),r.pageId=n),[2,r]}var u}))}))}function ct(t,e){if(Xi()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in it?it[t]:[]),a=0;a<e.length;a++)"string"==typeof e[a]&&e[a].length<255&&n.push(e[a]);it[t]=n}}function st(){Pr(34)}function lt(){it={}}function dt(t){return at(this,void 0,void 0,(function(){var e;return rt(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 ft(t){return t&&t.indexOf("@")>0?"email":"string"}var ht="CompressionStream"in window;function pt(t){return at(this,void 0,void 0,(function(){var e,n;return rt(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),ht?(e=new ReadableStream({start:function(e){return at(this,void 0,void 0,(function(){return rt(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,vt(e)]):[3,2];case 1:return[2,new(n.apply(Uint8Array,[void 0,a.sent()]))];case 2:return[3,4];case 3:return a.sent(),[3,4];case 4:return[2,null]}}))}))}function vt(t){return at(this,void 0,void 0,(function(){var e,n,a,r,i;return rt(this,(function(o){switch(o.label){case 0:e=t.getReader(),n=[],a=!1,r=[],o.label=1;case 1:return a?[3,3]:[4,e.read()];case 2:return i=o.sent(),a=i.done,r=i.value,a?[2,n]:(n.push.apply(n,r),[3,1]);case 3:return[2,n]}}))}))}var gt=null;function mt(t){try{if(!gt)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){gt(t)}))}catch(t){}}var yt=[D,a,Object.freeze({__proto__:null,compute:st,get data(){return it},identify:ut,reset:lt,set:ot,start:function(){lt()},stop:function(){lt()}}),n,$,r,i,t,J,nt,e];function bt(){L={},z={},H(5),yt.forEach((function(t){return Ni(t.start)()}))}function wt(){yt.slice().reverse().forEach((function(t){return Ni(t.stop)()})),L={},z={}}function kt(){st(),C(),Kr(),Pr(0),Z(),qr(),Dr()}var St,Et=[];function Ot(t,e,n){o.fraud&&null!==t&&n&&n.length>=5&&(St={id:t,target:e,checksum:d(n,28)},Et.indexOf(St.checksum)<0&&(Et.push(St.checksum),yr(41)))}var Tt="load,active,fixed,visible,focus,show,collaps,animat".split(","),Nt={};function Mt(t,e){var n=t.attributes,a=t.prefix?t.prefix[e]:null,r=0===e?"".concat("~").concat(t.position-1):":nth-of-type(".concat(t.position,")");switch(t.tag){case"STYLE":case"TITLE":case"LINK":case"META":case"*T":case"*D":return"";case"HTML":return"HTML";default:if(null===a)return"";a="".concat(a).concat(">"),t.tag=0===t.tag.indexOf("svg:")?t.tag.substr("svg:".length):t.tag;var i="".concat(a).concat(t.tag).concat(r),o="id"in n&&n.id.length>0?n.id:null,u="BODY"!==t.tag&&"class"in n&&n.class.length>0?n.class.trim().split(/\s+/).filter((function(t){return xt(t)})).join("."):null;if(u&&u.length>0)if(0===e){var c="".concat(function(t){for(var e=t.split(">"),n=0;n<e.length;n++){var a=e[n].indexOf("~"),r=e[n].indexOf(".");e[n]=e[n].substring(0,r>0?r:a>0?a:e[n].length)}return e.join(">")}(a)).concat(t.tag).concat(".").concat(u);c in Nt||(Nt[c]=[]),Nt[c].indexOf(t.id)<0&&Nt[c].push(t.id),i="".concat(c).concat("~").concat(Nt[c].indexOf(t.id))}else i="".concat(a).concat(t.tag,".").concat(u).concat(r);return i=o&&xt(o)?"".concat(function(t){var e=t.lastIndexOf("*S"),n=t.lastIndexOf("".concat("iframe:").concat("HTML")),a=Math.max(e,n);if(a<0)return"";return t.substring(0,t.indexOf(">",a)+1)}(a)).concat("#").concat(o):i,i}}function xt(t){if(!t)return!1;if(Tt.some((function(e){return t.toLowerCase().indexOf(e)>=0})))return!1;for(var e=0;e<t.length;e++){var n=t.charCodeAt(e);if(n>=48&&n<=57)return!1}return!0}var _t=1,It=null,Ct=[],Dt=[],At={},jt=[],Rt=[],Lt=[],zt=[],Ht=[],Pt=[],Wt=null,Xt=null,Yt=null,qt=null;function Ut(){Vt(),Bt(document,!0)}function Ft(){Vt()}function Vt(){_t=1,Ct=[],Dt=[],At={},jt=[],Rt=[],Lt="address,password,contact".split(","),zt="password,secret,pass,social,ssn,code,hidden".split(","),Ht="radio,checkbox,range,button,reset,submit".split(","),Pt="INPUT,SELECT,TEXTAREA".split(","),It=new Map,Wt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,qt=new WeakMap,Nt={}}function Bt(t,e){void 0===e&&(e=!1);try{e&&o.unmask.forEach((function(t){return t.indexOf("!")<0?Rt.push(t):jt.push(t.substr(1))})),"querySelectorAll"in t&&(o.regions.forEach((function(e){return t.querySelectorAll(e[1]).forEach((function(t){return Pa(t,"".concat(e[0]))}))})),o.mask.forEach((function(e){return t.querySelectorAll(e).forEach((function(t){return Yt.set(t,3)}))})),o.checksum.forEach((function(e){return t.querySelectorAll(e[1]).forEach((function(t){return qt.set(t,e[0])}))})),Rt.forEach((function(e){return t.querySelectorAll(e).forEach((function(t){return Yt.set(t,0)}))})))}catch(t){kr(5,1,t?t.name:null)}}function Jt(t,e){if(void 0===e&&(e=!1),null===t)return null;var n=Wt.get(t);return!n&&e&&(n=_t++,Wt.set(t,n)),n||null}function Gt(t){var e=!1;if(t.nodeType===Node.ELEMENT_NODE&&"IFRAME"===t.tagName){var n=t;try{n.contentDocument&&(Xt.set(n.contentDocument,n),e=!0)}catch(t){}}return e}function Kt(t){var e=t.nodeType===Node.DOCUMENT_NODE?t:null;return e&&Xt.has(e)?Xt.get(e):null}function Zt(t,e,n){if("object"==typeof t[n]&&"object"==typeof e[n]){for(var a in t[n])if(t[n][a]!==e[n][a])return!0;for(var a in e[n])if(e[n][a]!==t[n][a])return!0;return!1}return t[n]!==e[n]}function Qt(t){var e=t.parent&&t.parent in Ct?Ct[t.parent]:null,n=e?e.selector:null,a=t.data,r=function(t,e){e.metadata.position=1;for(var n=t?t.children.indexOf(e.id):-1;n-- >0;){var a=Ct[t.children[n]];if(e.data.tag===a.data.tag){e.metadata.position=a.metadata.position+1;break}}return e.metadata.position}(e,t),i={id:t.id,tag:a.tag,prefix:n,position:r,attributes:a.attributes};t.selector=[Mt(i,0),Mt(i,1)],t.hash=t.selector.map((function(t){return t?d(t):null})),t.hash.forEach((function(e){return At[e]=t.id}))}function $t(t){var e=te(ne(t));return null!==e&&null!==e.textContent?e.textContent.substr(0,25):""}function te(t){return It.has(t)?It.get(t):null}function ee(t){var e=Jt(t);return e in Ct?Ct[e]:null}function ne(t){return t in At?At[t]:null}function ae(t){return It.has(Jt(t))}function re(){for(var t=[],e=0,n=Dt;e<n.length;e++){var a=n[e];a in Ct&&t.push(Ct[a])}return Dt=[],t}function ie(t){if(It.get(t).nodeType!==Node.DOCUMENT_FRAGMENT_NODE){It.delete(t);var e=t in Ct?Ct[t]:null;if(e&&e.children)for(var n=0,a=e.children;n<a.length;n++){ie(a[n])}}}function oe(t){for(var e=null;null===e&&t.previousSibling;)e=Jt(t.previousSibling),t=t.previousSibling;return e}function ue(t,e,n,a){void 0===n&&(n=!0),void 0===a&&(a=!1);var r=Dt.indexOf(t);r>=0&&1===e&&a?(Dt.splice(r,1),Dt.push(t)):-1===r&&n&&Dt.push(t)}var ce=Object.freeze({__proto__:null,add:function(t,e,n,a){var r,i=Jt(t,!0),u=e?Jt(e):null,c=oe(t),s=null,l=Wa(t)?i:null,d=qt.has(t)?qt.get(t):null,f=o.content?1:3;u>=0&&Ct[u]&&((s=Ct[u]).children.push(i),l=null===l?s.region:l,d=null===d?s.metadata.fraud:d,f=s.metadata.privacy),n.attributes&&"data-clarity-region"in n.attributes&&(Pa(t,n.attributes["data-clarity-region"]),l=i),It.set(i,t),Ct[i]={id:i,parent:u,previous:c,children:[],data:n,selector:null,hash:null,region:l,metadata:{active:!0,suspend:!1,privacy:f,position:null,fraud:d,size:null}},function(t,e,n){var a=e.data,r=e.metadata,i=r.privacy,o=a.attributes||{},u=a.tag.toUpperCase();switch(!0){case Pt.indexOf(u)>=0:var c=o.type,s="",l=["class","style"];Object.keys(o).filter((function(t){return!l.includes(t)})).forEach((function(t){return s+=o[t].toLowerCase()}));var d=zt.some((function(t){return s.indexOf(t)>=0}));r.privacy="INPUT"===u&&Ht.indexOf(c)>=0?i:d?4:2;break;case"data-clarity-mask"in o:r.privacy=3;break;case"data-clarity-unmask"in o:r.privacy=0;break;case Yt.has(t):r.privacy=Yt.get(t);break;case qt.has(t):r.privacy=2;break;case"*T"===u:var f=n&&n.data?n.data.tag:"",h=n&&n.selector?n.selector[1]:"",p=["STYLE","TITLE","svg:style"];r.privacy=p.includes(f)||jt.some((function(t){return h.indexOf(t)>=0}))?0:i;break;case 1===i:r.privacy=function(t,e,n){if(t&&e.some((function(e){return t.indexOf(e)>=0})))return 2;return n.privacy}(o.class,Lt,r)}}(t,Ct[i],s),Qt(Ct[i]),"IMG"===(r=Ct[i]).data.tag&&3===r.metadata.privacy&&(r.metadata.size=[]),ue(i,a)},get:ee,getId:Jt,getNode:te,getValue:function(t){return t in Ct?Ct[t]:null},has:ae,hashText:$t,iframe:Kt,lookup:ne,parse:Bt,sameorigin:Gt,start:Ut,stop:Ft,update:function(t,e,n,a){var r=Jt(t),i=e?Jt(e):null,o=oe(t),u=!1,c=!1;if(r in Ct){var s=Ct[r];if(s.metadata.active=!0,s.previous!==o&&(u=!0,s.previous=o),s.parent!==i){u=!0;var l=s.parent;if(s.parent=i,null!==i&&i>=0){var d=null===o?0:Ct[i].children.indexOf(o)+1;Ct[i].children.splice(d,0,r),s.region=Wa(t)?r:Ct[i].region}else!function(t,e){if(t in Ct){var n=Ct[t];n.metadata.active=!1,n.parent=null,ue(t,e),ie(t)}}(r,a);if(null!==l&&l>=0){var f=Ct[l].children.indexOf(r);f>=0&&Ct[l].children.splice(f,1)}c=!0}for(var h in n)Zt(s.data,n,h)&&(u=!0,s.data[h]=n[h]);Qt(s),ue(r,a,u,c)}},updates:re}),se=5e3,le={},de=[],fe=null,he=null,pe=null;function ve(){le={},de=[],fe=null,he=null}function ge(t,e){return void 0===e&&(e=0),at(this,void 0,void 0,(function(){var n,a,r;return rt(this,(function(i){for(n=0,a=de;n<a.length;n++)if(a[n].task===t)return[2];return r=new Promise((function(n){de[1===e?"unshift":"push"]({task:t,resolve:n,id:oi()})})),null===fe&&null===he&&me(),[2,r]}))}))}function me(){var t=de.shift();t&&(fe=t,t.task().then((function(){t.id===oi()&&(t.resolve(),fe=null,me())})).catch((function(e){t.id===oi()&&(e&&kr(0,1,e.name,e.message,e.stack),fe=null,me())})))}function ye(t){var e=Se(t);return e in le?performance.now()-le[e].start>le[e].yield?0:1:2}function be(t){le[Se(t)]={start:performance.now(),calls:0,yield:o.longTask}}function we(t){var e=performance.now(),n=Se(t),a=e-le[n].start;P(t.cost,a),H(5),le[n].calls>0&&P(4,a)}function ke(t){return at(this,void 0,void 0,(function(){var e,n;return rt(this,(function(a){switch(a.label){case 0:return(e=Se(t))in le?(we(t),n=le[e],[4,Ee()]):[3,2];case 1:n.yield=a.sent().timeRemaining(),function(t){var e=Se(t);if(le&&le[e]){var n=le[e].calls,a=le[e].yield;be(t),le[e].calls=n+1,le[e].yield=a}}(t),a.label=2;case 2:return[2,e in le?1:2]}}))}))}function Se(t){return"".concat(t.id,".").concat(t.cost)}function Ee(){return at(this,void 0,void 0,(function(){return rt(this,(function(t){switch(t.label){case 0:return he?[4,he]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2,new Promise((function(t){Te(t,{timeout:se})}))]}}))}))}var Oe,Te=window.requestIdleCallback||function(t,e){var n=performance.now(),a=new MessageChannel,r=a.port1,i=a.port2;r.onmessage=function(a){var r=performance.now(),u=r-n,c=r-a.data;if(c>o.longTask&&u<e.timeout)requestAnimationFrame((function(){i.postMessage(r)}));else{var s=u>e.timeout;t({didTimeout:s,timeRemaining:function(){return s?o.longTask:Math.max(0,o.longTask-c)}})}},requestAnimationFrame((function(){i.postMessage(performance.now())}))};function Ne(){Oe=null}function Me(){var t=document.body,e=document.documentElement,n=t?t.clientWidth:null,a=t?t.scrollWidth:null,r=t?t.offsetWidth:null,i=e?e.clientWidth:null,o=e?e.scrollWidth:null,u=e?e.offsetWidth:null,c=Math.max(n,a,r,i,o,u),s=t?t.clientHeight:null,l=t?t.scrollHeight:null,d=t?t.offsetHeight:null,f=e?e.clientHeight:null,h=e?e.scrollHeight:null,p=e?e.offsetHeight:null,v=Math.max(s,l,d,f,h,p);null!==Oe&&c===Oe.width&&v===Oe.height||null===c||null===v||(Oe={width:c,height:v},_a(8))}var xe=[];function _e(t){var e=Va(t);if(e){var n=e.value,a=n&&n.length>=5&&o.fraud&&-1==="password,secret,pass,social,ssn,code,hidden".indexOf(e.type)?d(n,28):"";xe.push({time:s(t),event:42,data:{target:Va(t),type:e.type,value:n,checksum:a}}),ge(Ja.bind(this,42))}}function Ie(){xe=[]}function Ce(t){var e={x:0,y:0};if(t&&t.offsetParent)do{var n=t.offsetParent,a=null===n?Kt(t.ownerDocument):null;e.x+=t.offsetLeft,e.y+=t.offsetTop,t=a||n}while(t);return e}var De=["input","textarea","radio","button","canvas"],Ae=[];function je(t){xi(t,"click",Re.bind(this,9,t),!0)}function Re(t,e,n){var a=Kt(e),r=a?a.contentDocument.documentElement:document.documentElement,i="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;if(a){var u=Ce(a);i=i?i+Math.round(u.x):i,o=o?o+Math.round(u.y):o}var c=Va(n),l=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}(c),d=function(t){var e=null,n=document.documentElement;if("function"==typeof t.getBoundingClientRect){var a=t.getBoundingClientRect();a&&a.width>0&&a.height>0&&(e={x:Math.floor(a.left+("pageXOffset"in window?window.pageXOffset:n.scrollLeft)),y:Math.floor(a.top+("pageYOffset"in window?window.pageYOffset:n.scrollTop)),w:Math.floor(a.width),h:Math.floor(a.height)})}return e}(c);0===n.detail&&d&&(i=Math.round(d.x+d.w/2),o=Math.round(d.y+d.h/2));var f=d?Math.max(Math.floor((i-d.x)/d.w*32767),0):0,h=d?Math.max(Math.floor((o-d.y)/d.h*32767),0):0;null!==i&&null!==o&&(Ae.push({time:s(n),event:t,data:{target:c,x:i,y:o,eX:f,eY:h,button:n.button,reaction:ze(c),context:He(l),text:Le(c),link:l?l.href:null,hash:null,trust:n.isTrusted?1:0}}),ge(Ja.bind(this,t)))}function Le(t){var e=null;if(t){var n=t.textContent||String(t.value||"")||t.alt;n&&(e=n.replace(/\s+/g," ").trim().substr(0,25))}return e}function ze(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t.tagName.toLowerCase();if(De.indexOf(e)>=0)return 0}return 1}function He(t){if(t&&t.hasAttribute("target"))switch(t.getAttribute("target")){case"_blank":return 1;case"_parent":return 2;case"_top":return 3}return 0}function Pe(){Ae=[]}var We=[];function Xe(t,e){We.push({time:s(e),event:38,data:{target:Va(e),action:t}}),ge(Ja.bind(this,38))}function Ye(){We=[]}var qe=null,Ue=[];function Fe(t){var e=Va(t),n=ee(e);if(e&&e.type&&n){var a=e.value,r=e.type;switch(e.type){case"radio":case"checkbox":a=e.checked?"true":"false"}var i={target:e,value:a,type:r};Ue.length>0&&Ue[Ue.length-1].data.target===i.target&&Ue.pop(),Ue.push({time:s(t),event:27,data:i}),Y(qe),qe=X(Ve,1e3,27)}}function Ve(t){ge(Ja.bind(this,t))}function Be(){Ue=[]}var Je,Ge=[],Ke=null;function Ze(t,e,n){var a=Kt(e),r=a?a.contentDocument.documentElement:document.documentElement,i="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;if(a){var u=Ce(a);i=i?i+Math.round(u.x):i,o=o?o+Math.round(u.y):o}null!==i&&null!==o&&$e({time:s(n),event:t,data:{target:Va(n),x:i,y:o}})}function Qe(t,e,n){var a=Kt(e),r=a?a.contentDocument.documentElement:document.documentElement,i=n.changedTouches,o=s(n);if(i)for(var u=0;u<i.length;u++){var c=i[u],l="clientX"in c?Math.round(c.clientX+r.scrollLeft):null,d="clientY"in c?Math.round(c.clientY+r.scrollTop):null;l=l&&a?l+Math.round(a.offsetLeft):l,d=d&&a?d+Math.round(a.offsetTop):d;var f="identifier"in c?c.identifier:void 0;null!==l&&null!==d&&$e({time:o,event:t,data:{target:Va(n),x:l,y:d,id:f}})}}function $e(t){switch(t.event){case 12:case 15:case 19:var e=Ge.length,n=e>1?Ge[e-2]:null;n&&function(t,e){var n=t.data.x-e.data.x,a=t.data.y-e.data.y,r=Math.sqrt(n*n+a*a),i=e.time-t.time,o=e.data.target===t.data.target;return e.event===t.event&&o&&r<20&&i<25}(n,t)&&Ge.pop(),Ge.push(t),Y(Ke),Ke=X(tn,500,t.event);break;default:Ge.push(t),tn(t.event)}}function tn(t){ge(Ja.bind(this,t))}function en(){Ge=[]}function nn(){var t=document.documentElement;Je={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},Ja(11)}function an(){Je=null}var rn=[],on=null,un=null,cn=null;function sn(t){void 0===t&&(t=null);var e=window,n=document.documentElement,a=t?Va(t):n;if(a&&a.nodeType===Node.DOCUMENT_NODE){var r=Kt(a);e=r?r.contentWindow:e,a=n=a.documentElement}var i=a===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(a.scrollLeft),o=a===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(a.scrollTop),u=window.innerWidth,c=window.innerHeight,l=u/3,d=u>c?.15*c:.2*c,f=c-d,h=ln(l,d),p=ln(l,f),v={time:s(t),event:10,data:{target:a,x:i,y:o,top:h,bottom:p}};if(null===t&&0===i&&0===o||null===i||null===o)return on=h,void(un=p);var g=rn.length,m=g>1?rn[g-2]:null;m&&function(t,e){var n=t.data.x-e.data.x,a=t.data.y-e.data.y;return n*n+a*a<400&&e.time-t.time<25}(m,v)&&rn.pop(),rn.push(v),Y(cn),cn=X(dn,500,10)}function ln(t,e){var n,a,r;return"caretPositionFromPoint"in document?r=null===(n=document.caretPositionFromPoint(t,e))||void 0===n?void 0:n.offsetNode:"caretRangeFromPoint"in document&&(r=null===(a=document.caretRangeFromPoint(t,e))||void 0===a?void 0:a.startContainer),r||(r=document.elementFromPoint(t,e)),r&&r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r}function dn(t){ge(Ja.bind(this,t))}function fn(){var t,e;if(on){var n=Ba(on,null);Gr(31,null===(t=null==n?void 0:n.hash)||void 0===t?void 0:t.join("."))}if(un){var a=Ba(un,null);Gr(32,null===(e=null==a?void 0:a.hash)||void 0===e?void 0:e.join("."))}}var hn=null,pn=null,vn=null;function gn(t){var e=(t.nodeType===Node.DOCUMENT_NODE?t:document).getSelection();if(null!==e&&!(null===e.anchorNode&&null===e.focusNode||e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset)){var n=hn.start?hn.start:null;null!==pn&&null!==hn.start&&n!==e.anchorNode&&(Y(vn),mn(21)),hn={start:e.anchorNode,startOffset:e.anchorOffset,end:e.focusNode,endOffset:e.focusOffset},pn=e,Y(vn),vn=X(mn,500,21)}}function mn(t){ge(Ja.bind(this,t))}function yn(){pn=null,hn={start:0,startOffset:0,end:0,endOffset:0}}var bn,wn,kn=[];function Sn(t){kn.push({time:s(t),event:39,data:{target:Va(t)}}),ge(Ja.bind(this,39))}function En(){kn=[]}function On(t){bn={name:t.type},Ja(26,s(t)),ho()}function Tn(){bn=null}function Nn(t){void 0===t&&(t=null),wn={visible:"visibilityState"in document?document.visibilityState:"default"},Ja(28,s(t))}function Mn(){wn=null}function xn(t){!function(t){var e=Kt(t);xi(e?e.contentWindow:t===document?window:t,"scroll",sn,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(je(t),function(t){xi(t,"cut",Xe.bind(this,0),!0),xi(t,"copy",Xe.bind(this,1),!0),xi(t,"paste",Xe.bind(this,2),!0)}(t),function(t){xi(t,"mousedown",Ze.bind(this,13,t),!0),xi(t,"mouseup",Ze.bind(this,14,t),!0),xi(t,"mousemove",Ze.bind(this,12,t),!0),xi(t,"wheel",Ze.bind(this,15,t),!0),xi(t,"dblclick",Ze.bind(this,16,t),!0),xi(t,"touchstart",Qe.bind(this,17,t),!0),xi(t,"touchend",Qe.bind(this,18,t),!0),xi(t,"touchmove",Qe.bind(this,19,t),!0),xi(t,"touchcancel",Qe.bind(this,20,t),!0)}(t),function(t){xi(t,"input",Fe,!0)}(t),function(t){xi(t,"selectstart",gn.bind(this,t),!0),xi(t,"selectionchange",gn.bind(this,t),!0)}(t),function(t){xi(t,"change",_e,!0)}(t),function(t){xi(t,"submit",Sn,!0)}(t))}var _n=Object.freeze({__proto__:null,observe:xn,start:function(){Ga=[],Za(),Pe(),Ye(),en(),Be(),xi(window,"resize",nn),nn(),xi(document,"visibilitychange",Nn),Nn(),rn=[],sn(),yn(),Ie(),En(),xi(window,"pagehide",On)},stop:function(){Ga=[],Za(),Pe(),Ye(),Y(Ke),Ge.length>0&&tn(Ge[Ge.length-1].event),Y(qe),Be(),an(),Mn(),Y(cn),rn=[],on=null,un=null,yn(),Y(vn),Ie(),En(),Tn()}});function In(t,e,n,a){return at(this,void 0,void 0,(function(){var r,i,o,u,c;return rt(this,(function(s){switch(s.label){case 0:r=[t],s.label=1;case 1:if(!(r.length>0))return[3,4];for(i=r.shift(),o=i.firstChild;o;)r.push(o),o=o.nextSibling;return 0!==(u=ye(e))?[3,3]:[4,ke(e)];case 2:u=s.sent(),s.label=3;case 3:return 2===u?[3,4]:((c=ta(i,n,a))&&r.push(c),[3,1]);case 4:return[2]}}))}))}var Cn=[],Dn=[],An=null,jn=null,Rn=null,Ln=null,zn=null,Hn=[],Pn=null,Wn=null,Xn={};function Yn(){if(Cn=[],Hn=[],Pn=null,Wn=0,Xn={},null===An&&(An=CSSStyleSheet.prototype.insertRule,CSSStyleSheet.prototype.insertRule=function(){return Xi()&&Bn(this.ownerNode),An.apply(this,arguments)}),"CSSMediaRule"in window&&null===Ln&&(Ln=CSSMediaRule.prototype.insertRule,CSSMediaRule.prototype.insertRule=function(){return Xi()&&Bn(this.parentStyleSheet.ownerNode),Ln.apply(this,arguments)}),null===jn&&(jn=CSSStyleSheet.prototype.deleteRule,CSSStyleSheet.prototype.deleteRule=function(){return Xi()&&Bn(this.ownerNode),jn.apply(this,arguments)}),"CSSMediaRule"in window&&null===zn&&(zn=CSSMediaRule.prototype.deleteRule,CSSMediaRule.prototype.deleteRule=function(){return Xi()&&Bn(this.parentStyleSheet.ownerNode),zn.apply(this,arguments)}),null===Rn){Rn=Element.prototype.attachShadow;try{Element.prototype.attachShadow=function(){return Xi()?Bn(Rn.apply(this,arguments)):Rn.apply(this,arguments)}}catch(t){Rn=null}}}function qn(t){var e=s();K(6,e),Dn.push({time:e,mutations:t}),ge(Un,1).then((function(){X(Me),Ni(Xa)()}))}function Un(){return at(this,void 0,void 0,(function(){var t,e,n,a,r,i,u,c,l,d;return rt(this,(function(f){switch(f.label){case 0:be(t={id:oi(),cost:3}),f.label=1;case 1:if(!(Dn.length>0))return[3,8];e=Dn.shift(),n=s(),a=0,r=e.mutations,f.label=2;case 2:return a<r.length?(i=r[a],0!==(u=ye(t))?[3,4]:[4,ke(t)]):[3,6];case 3:u=f.sent(),f.label=4;case 4:if(2===u)return[3,6];switch(c=i.target,l=o.throttleDom?function(t,e,n,a){var r=t.target?ee(t.target.parentNode):null;if(r&&"HTML"!==r.data.tag){var i=a>Wn,o=ee(t.target),u=o&&o.selector?o.selector.join():t.target.nodeName,c=[r.selector?r.selector.join():"",u,t.attributeName,Fn(t.addedNodes),Fn(t.removedNodes)].join();Xn[c]=c in Xn?Xn[c]:[0,n];var s=Xn[c];if(!1===i&&s[0]>=10&&Vn(s[2],2,e,a),s[0]=i?s[1]===n?s[0]:s[0]+1:1,s[1]=n,10===s[0])return s[2]=t.removedNodes,"suspend";if(s[0]>10)return""}return t.type}(i,t,n,e.time):i.type,l&&c&&c.ownerDocument&&Bt(c.ownerDocument),l&&c&&c.nodeType==Node.DOCUMENT_FRAGMENT_NODE&&c.host&&Bt(c),l){case"attributes":ta(c,3,e.time);break;case"characterData":ta(c,4,e.time);break;case"childList":Vn(i.addedNodes,1,t,e.time),Vn(i.removedNodes,2,t,e.time);break;case"suspend":(d=ee(c))&&(d.metadata.suspend=!0)}f.label=5;case 5:return a++,[3,2];case 6:return[4,_a(6,t,e.time)];case 7:return f.sent(),[3,1];case 8:return we(t),[2]}}))}))}function Fn(t){for(var e=[],n=0;t&&n<t.length;n++)e.push(t[n].nodeName);return e.join()}function Vn(t,e,n,a){return at(this,void 0,void 0,(function(){var r,i,o;return rt(this,(function(u){switch(u.label){case 0:r=t?t.length:0,i=0,u.label=1;case 1:return i<r?1!==e?[3,2]:(In(t[i],n,e,a),[3,5]):[3,6];case 2:return 0!==(o=ye(n))?[3,4]:[4,ke(n)];case 3:o=u.sent(),u.label=4;case 4:if(2===o)return[3,6];ta(t[i],e,a),u.label=5;case 5:return i++,[3,1];case 6:return[2]}}))}))}function Bn(t){return Hn.indexOf(t)<0&&Hn.push(t),Pn&&Y(Pn),Pn=X((function(){!function(){for(var t=0,e=Hn;t<e.length;t++){var n=e[t];if(n){var a=n.nodeType===Node.DOCUMENT_FRAGMENT_NODE;if(a&&ae(n))continue;Jn(n,a?"childList":"characterData")}}Hn=[]}()}),33),t}function Jn(t,e){Ni(qn)([{addedNodes:[t],attributeName:null,attributeNamespace:null,nextSibling:null,oldValue:null,previousSibling:null,removedNodes:[],target:t,type:e}])}var Gn=/[^0-9\.]/g;function Kn(t){for(var e=0,n=Object.keys(t);e<n.length;e++){var a=n[e],r=t[a];if("@type"===a&&"string"==typeof r)switch(r=(r=r.toLowerCase()).indexOf("article")>=0||r.indexOf("posting")>=0?"article":r){case"article":case"recipe":Gr(5,t[a]),Gr(8,t.creator),Gr(18,t.headline);break;case"product":Gr(5,t[a]),Gr(10,t.name),Gr(12,t.sku),t.brand&&Gr(6,t.brand.name);break;case"aggregaterating":t.ratingValue&&(W(11,Zn(t.ratingValue,100)),W(18,Zn(t.bestRating)),W(19,Zn(t.worstRating))),W(12,Zn(t.ratingCount)),W(17,Zn(t.reviewCount));break;case"person":Gr(8,t.name);break;case"offer":Gr(7,t.availability),Gr(14,t.itemCondition),Gr(13,t.priceCurrency),Gr(12,t.sku),W(13,Zn(t.price));break;case"brand":Gr(6,t.name)}null!==r&&"object"==typeof r&&Kn(r)}}function Zn(t,e){if(void 0===e&&(e=1),null!==t)switch(typeof t){case"number":return Math.round(t*e);case"string":return Math.round(parseFloat(t.replace(Gn,""))*e)}return null}var Qn=["title","alt","onload","onfocus","onerror","data-drupal-form-submit-last","aria-label"],$n=/[\r\n]+/g;function ta(t,e,n){var a,r=null;if(2===e&&!1===ae(t))return r;0!==e&&t.nodeType===Node.TEXT_NODE&&t.parentElement&&"STYLE"===t.parentElement.tagName&&(t=t.parentNode);var i=!1===ae(t)?"add":"update",o=t.parentElement?t.parentElement:null,u=t.ownerDocument!==document;switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:o=u&&t.parentNode?Kt(t.parentNode):o;var c=t,s={tag:(u?"iframe:":"")+"*D",attributes:{name:c.name?c.name:"HTML",publicId:c.publicId,systemId:c.systemId}};ce[i](t,o,s,e);break;case Node.DOCUMENT_NODE:t===document&&Bt(document),ha(t,n),ea(t);break;case Node.DOCUMENT_FRAGMENT_NODE:var l=t;if(l.host){if(Bt(l),"function"===typeof l.constructor&&l.constructor.toString().indexOf("[native code]")>=0){ea(l);var d={tag:"*S",attributes:{style:""}};ce[i](t,l.host,d,e)}else ce[i](t,l.host,{tag:"*P",attributes:{}},e);ha(t,n)}break;case Node.TEXT_NODE:if(o=o||t.parentNode,"update"===i||o&&ae(o)&&"STYLE"!==o.tagName&&"NOSCRIPT"!==o.tagName){var f={tag:"*T",value:t.nodeValue};ce[i](t,o,f,e)}break;case Node.ELEMENT_NODE:var h=t,p=h.tagName,v=function(t){var e={},n=t.attributes;if(n&&n.length>0)for(var a=0;a<n.length;a++){var r=n[a].name;Qn.indexOf(r)<0&&(e[r]=n[a].value)}"INPUT"===t.tagName&&!("value"in e)&&t.value&&(e.value=t.value);return e}(h);switch(o=t.parentElement?t.parentElement:t.parentNode?t.parentNode:null,"http://www.w3.org/2000/svg"===h.namespaceURI&&(p="svg:"+p),p){case"HTML":o=u&&o?Kt(o):o;var g={tag:(u?"iframe:":"")+p,attributes:v};ce[i](t,o,g,e);break;case"SCRIPT":if("type"in v&&"application/ld+json"===v.type)try{Kn(JSON.parse(h.text.replace($n,"")))}catch(t){}break;case"NOSCRIPT":var m={tag:p,attributes:{},value:""};ce[i](t,o,m,e);break;case"META":var y="property"in v?"property":"name"in v?"name":null;if(y&&"content"in v){var b=v.content;switch(v[y]){case"og:title":Gr(20,b);break;case"og:type":Gr(19,b);break;case"generator":Gr(21,b)}}break;case"HEAD":var w={tag:p,attributes:v},k=u&&(null===(a=t.ownerDocument)||void 0===a?void 0:a.location)?t.ownerDocument.location:location;w.attributes["*B"]=k.protocol+"//"+k.host+k.pathname,ce[i](t,o,w,e);break;case"BASE":var S=ee(t.parentElement);if(S){var E=document.createElement("a");E.href=v.href,S.data.attributes["*B"]=E.protocol+"//"+E.host+E.pathname}break;case"STYLE":var O={tag:p,attributes:v,value:na(h)};ce[i](t,o,O,e);break;case"IFRAME":var T=t,N={tag:p,attributes:v};Gt(T)&&(!function(t){!1===ae(t)&&xi(t,"load",Jn.bind(this,t,"childList"),!0)}(T),N.attributes["*O"]="true",T.contentDocument&&T.contentWindow&&"loading"!==T.contentDocument.readyState&&(r=T.contentDocument)),ce[i](t,o,N,e);break;case"LINK":if(ei&&"stylesheet"===v.rel){for(var M in Object.keys(document.styleSheets)){var x=document.styleSheets[M];if(x.ownerNode==h){var _={tag:"STYLE",attributes:v,value:aa(x)};ce[i](t,o,_,e);break}}break}var I={tag:p,attributes:v};ce[i](t,o,I,e);break;case"VIDEO":case"AUDIO":case"SOURCE":"src"in v&&v.src.startsWith("data:")&&(v.src="");var C={tag:p,attributes:v};ce[i](t,o,C,e);break;default:var D={tag:p,attributes:v};h.shadowRoot&&(r=h.shadowRoot),ce[i](t,o,D,e)}}return r}function ea(t){ae(t)||(!function(t){try{var e=u("MutationObserver"),n=e in window?new window[e](Ni(qn)):null;n&&(n.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),Cn.push(n))}catch(t){kr(2,0,t?t.name:null)}}(t),xn(t))}function na(t){var e=t.textContent?t.textContent.trim():"",n=t.dataset?Object.keys(t.dataset).length:0;return(0===e.length||n>0||t.id.length>0)&&(e=aa(t.sheet)),e}function aa(t){var e="",n=null;try{n=t?t.cssRules:[]}catch(t){if(kr(1,1,t?t.name:null),t&&"SecurityError"!==t.name)throw t}if(null!==n)for(var a=0;a<n.length;a++)e+=n[a].cssText;return e}var ra=[],ia=[],oa=null,ua=null,ca="claritySheetId",sa="claritySheetNum",la={},da={},fa=[];function ha(t,e){if(-1===fa.indexOf(t)&&fa.push(t),e=e||s(),null==t?void 0:t.adoptedStyleSheets){W(36,1);for(var n=[],a=0,r=t.adoptedStyleSheets;a<r.length;a++){var i=r[a],o=$r.pageNum;i[sa]!==o&&(i[sa]=o,i[ca]=hi(),va(e,i[ca],0),va(e,i[ca],2,aa(i))),n.push(i[ca])}var u=Jt(t,!0);la[u]||(la[u]=[]),function(t,e){if(t.length!==e.length)return!1;return t.every((function(t,n){return t===e[n]}))}(n,la[u])||(!function(t,e,n,a){ia.push({time:t,event:45,data:{id:e,operation:n,newIds:a}}),_a(45)}(e,t==document?-1:Jt(t),3,n),la[u]=n,da[u]=e)}}function pa(){ia=[],ra=[]}function va(t,e,n,a){ra.push({time:t,event:46,data:{id:e,operation:n,cssRules:a}}),_a(46)}var ga=[],ma=null,ya=null,ba=null,wa=null,ka=null,Sa="clarityAnimationId",Ea="clarityOperationCount",Oa=20;function Ta(){ga=[]}function Na(t,e,n,a,r,i,o){ga.push({time:t,event:44,data:{id:e,operation:n,keyFrames:a,timing:r,targetId:i,timeline:o}}),_a(44)}function Ma(t,e){null===t&&(t=Animation.prototype[e],Animation.prototype[e]=function(){return xa(this,e),t.apply(this,arguments)})}function xa(t,e){if(Xi()){var n=t.effect,a=Jt(n.target);if(null!==a&&n.getKeyframes&&n.getTiming){if(!t[Sa]){t[Sa]=hi(),t[Ea]=0;var r=n.getKeyframes(),i=n.getTiming();Na(s(),t[Sa],0,JSON.stringify(r),JSON.stringify(i),a)}if(t[Ea]++<Oa){var o=null;switch(e){case"play":o=1;break;case"pause":o=2;break;case"cancel":o=3;break;case"finish":o=4}o&&Na(s(),t[Sa],o)}}}}function _a(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),at(this,void 0,void 0,(function(){var a,r,i,u,c,l,d,f,h,p,v,g,y,b,w,k,S,E,O,T,N,M,I,C,D,A,j,R,L;return rt(this,(function(z){switch(z.label){case 0:switch(a=n||s(),r=[a,t],t){case 8:return[3,1];case 7:return[3,2];case 45:case 46:return[3,3];case 44:return[3,4];case 5:case 6:return[3,5]}return[3,12];case 1:return i=Oe,r.push(i.width),r.push(i.height),x(t,i.width,i.height),sr(r),[3,12];case 2:for(u=0,c=Aa;u<c.length;u++)l=c[u],(r=[l.time,7]).push(l.data.id),r.push(l.data.interaction),r.push(l.data.visibility),r.push(l.data.name),sr(r);return Fa(),[3,12];case 3:for(d=0,f=ia;d<f.length;d++)y=f[d],(r=[y.time,y.event]).push(y.data.id),r.push(y.data.operation),r.push(y.data.newIds),sr(r);for(h=0,p=ra;h<p.length;h++)y=p[h],(r=[y.time,y.event]).push(y.data.id),r.push(y.data.operation),r.push(y.data.cssRules),sr(r);return pa(),[3,12];case 4:for(v=0,g=ga;v<g.length;v++)y=g[v],(r=[y.time,y.event]).push(y.data.id),r.push(y.data.operation),r.push(y.data.keyFrames),r.push(y.data.timing),r.push(y.data.timeline),r.push(y.data.targetId),sr(r);return Ta(),[3,12];case 5:if(2===ye(e))return[3,12];if(!((b=re()).length>0))return[3,11];w=0,k=b,z.label=6;case 6:return w<k.length?(S=k[w],0!==(E=ye(e))?[3,8]:[4,ke(e)]):[3,10];case 7:E=z.sent(),z.label=8;case 8:if(2===E)return[3,10];for(O=S.data,T=S.metadata.active,N=S.metadata.suspend,M=S.metadata.privacy,I=function(t){var e=t.metadata.privacy;return"*T"===t.data.tag&&!(0===e||1===e)}(S),C=0,D=T?["tag","attributes","value"]:["tag"];C<D.length;C++)if(O[A=D[C]])switch(A){case"tag":j=Ia(S),R=I?-1:1,r.push(S.id*R),S.parent&&T&&(r.push(S.parent),S.previous&&r.push(S.previous)),r.push(N?"*M":O[A]),j&&2===j.length&&r.push("".concat("#").concat(Ca(j[0]),".").concat(Ca(j[1])));break;case"attributes":for(L in O[A])void 0!==O[A][L]&&r.push(Da(L,O[A][L],M));break;case"value":Ot(S.metadata.fraud,S.id,O[A]),r.push(m(O[A],O.tag,M,I))}z.label=9;case 9:return w++,[3,6];case 10:6===t&&_(a),sr(function(t){for(var e=[],n={},a=0,r=null,i=0;i<t.length;i++)if("string"==typeof t[i]){var o=t[i],u=n[o]||-1;u>=0?r?r.push(u):(r=[u],e.push(r),a++):(r=null,e.push(o),n[o]=a++)}else r=null,e.push(t[i]),a++;return e}(r),!o.lean),z.label=11;case 11:return[3,12];case 12:return[2]}}))}))}function Ia(t){if(null!==t.metadata.size&&0===t.metadata.size.length){var e=te(t.id);if(e)return[Math.floor(100*e.offsetWidth),Math.floor(100*e.offsetHeight)]}return t.metadata.size}function Ca(t){return t.toString(36)}function Da(t,e,n){return"".concat(t,"=").concat(m(e,0===t.indexOf("data-")?"data-":t,n))}var Aa=[],ja=null,Ra={},La=[],za=!1,Ha=null;function Pa(t,e){!1===ja.has(t)&&(ja.set(t,e),(Ha=null===Ha&&za?new IntersectionObserver(Ya,{threshold:[0,.05,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]}):Ha)&&t&&t.nodeType===Node.ELEMENT_NODE&&Ha.observe(t))}function Wa(t){return ja&&ja.has(t)}function Xa(){for(var t=[],e=0,n=La;e<n.length;e++){var a=n[e],r=Jt(a.node);r?(a.state.data.id=r,Ra[r]=a.state.data,Aa.push(a.state)):t.push(a)}La=t,Aa.length>0&&_a(7)}function Ya(t){for(var e=0,n=t;e<n.length;e++){var a=n[e],r=a.target,i=a.boundingClientRect,o=a.intersectionRect,u=a.rootBounds;if(ja.has(r)&&i.width+i.height>0&&u.width>0&&u.height>0){var c=r?Jt(r):null,s=c in Ra?Ra[c]:{id:c,name:ja.get(r),interaction:16,visibility:0},l=(o?o.width*o.height*1/(u.width*u.height):0)>.05||a.intersectionRatio>.8,d=(l||10==s.visibility)&&Math.abs(i.top)+u.height>i.height;qa(r,s,s.interaction,d?13:l?10:0),s.visibility>=13&&Ha&&Ha.unobserve(r)}}Aa.length>0&&_a(7)}function qa(t,e,n,a){var r=n>e.interaction||a>e.visibility;e.interaction=n>e.interaction?n:e.interaction,e.visibility=a>e.visibility?a:e.visibility,e.id?(e.id in Ra&&r||!(e.id in Ra))&&(Ra[e.id]=e,Aa.push(Ua(e))):La.push({node:t,state:Ua(e)})}function Ua(t){return{time:s(),data:{id:t.id,interaction:t.interaction,visibility:t.visibility,name:t.name}}}function Fa(){Aa=[]}function Va(t){var e=t.composed&&t.composedPath?t.composedPath():null,n=e&&e.length>0?e[0]:t.target;return Wn=s()+3e3,n&&n.nodeType===Node.DOCUMENT_NODE?n.documentElement:n}function Ba(t,e,n){void 0===n&&(n=null);var a={id:0,hash:null,privacy:2,node:t};if(t){var r=ee(t);if(null!==r){var i=r.metadata;a.id=r.id,a.hash=r.hash,a.privacy=i.privacy,r.region&&function(t,e){var n=te(t),a=t in Ra?Ra[t]:{id:t,visibility:0,interaction:16,name:ja.get(n)},r=16;switch(e){case 9:r=20;break;case 27:r=30}qa(n,a,r,a.visibility)}(r.region,e),i.fraud&&Ot(i.fraud,r.id,n||r.data.value)}}return a}function Ja(t,e){return void 0===e&&(e=null),at(this,void 0,void 0,(function(){var n,a,r,i,o,u,c,l,d,f,h,p,v,g,b,w,k,S,E,O,T,N,M,_,C,D,A,j,R,L,z,H,P,W,X;return rt(this,(function(Y){switch(n=e||s(),a=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(r=0,i=Ge;r<i.length;r++)W=i[r],(o=Ba(W.data.target,W.event)).id>0&&((a=[W.time,W.event]).push(o.id),a.push(W.data.x),a.push(W.data.y),void 0!==W.data.id&&a.push(W.data.id),sr(a),x(W.event,W.data.x,W.data.y));en();break;case 9:for(u=0,c=Ae;u<c.length;u++)W=c[u],l=Ba(W.data.target,W.event,W.data.text),a=[W.time,W.event],d=l.hash?l.hash.join("."):"",a.push(l.id),a.push(W.data.x),a.push(W.data.y),a.push(W.data.eX),a.push(W.data.eY),a.push(W.data.button),a.push(W.data.reaction),a.push(W.data.context),a.push(m(W.data.text,"click",l.privacy)),a.push(y(W.data.link)),a.push(d),a.push(W.data.trust),sr(a),Qa(W.time,W.event,d,W.data.x,W.data.y,W.data.reaction,W.data.context);Pe();break;case 38:for(f=0,h=We;f<h.length;f++)W=h[f],a=[W.time,W.event],(z=Ba(W.data.target,W.event)).id>0&&(a.push(z.id),a.push(W.data.action),sr(a));Ye();break;case 11:p=Je,a.push(p.width),a.push(p.height),x(t,p.width,p.height),an(),sr(a);break;case 26:v=bn,a.push(v.name),Tn(),sr(a);break;case 27:for(g=0,b=Ue;g<b.length;g++)W=b[g],w=Ba(W.data.target,W.event,W.data.value),(a=[W.time,W.event]).push(w.id),a.push(m(W.data.value,"input",w.privacy,!1,W.data.type)),sr(a);Be();break;case 21:(k=hn)&&(S=Ba(k.start,t),E=Ba(k.end,t),a.push(S.id),a.push(k.startOffset),a.push(E.id),a.push(k.endOffset),yn(),sr(a));break;case 10:for(O=0,T=rn;O<T.length;O++)W=T[O],N=Ba(W.data.target,W.event),M=Ba(W.data.top,W.event),_=Ba(W.data.bottom,W.event),C=(null==M?void 0:M.hash)?M.hash.join("."):"",D=(null==_?void 0:_.hash)?_.hash.join("."):"",N.id>0&&((a=[W.time,W.event]).push(N.id),a.push(W.data.x),a.push(W.data.y),a.push(C),a.push(D),sr(a),x(W.event,W.data.x,W.data.y,W.time));rn=[],on=null,un=null;break;case 42:for(A=0,j=xe;A<j.length;A++)W=j[A],a=[W.time,W.event],(z=Ba(W.data.target,W.event)).id>0&&((a=[W.time,W.event]).push(z.id),a.push(W.data.type),a.push(m(W.data.value,"change",z.privacy)),a.push(m(W.data.checksum,"checksum",z.privacy)),sr(a));Ie();break;case 39:for(R=0,L=kn;R<L.length;R++)W=L[R],a=[W.time,W.event],(z=Ba(W.data.target,W.event)).id>0&&(a.push(z.id),sr(a));En();break;case 22:for(H=0,P=Ka;H<P.length;H++)W=P[H],(a=[W.time,W.event]).push(W.data.type),a.push(W.data.hash),a.push(W.data.x),a.push(W.data.y),a.push(W.data.reaction),a.push(W.data.context),sr(a,!1);Za();break;case 28:X=wn,a.push(X.visible),sr(a),I(n,X.visible),Mn()}return[2]}))}))}var Ga=[],Ka=[];function Za(){Ka=[]}function Qa(t,e,n,a,r,i,o){void 0===i&&(i=1),void 0===o&&(o=0),Ga.push({time:t,event:22,data:{type:e,hash:n,x:a,y:r,reaction:i,context:o}}),x(e,a,r)}var $a,tr,er,nr,ar,rr=0,ir=0,or=null,ur=0;function cr(){nr=!0,rr=0,ir=0,ur=0,$a=[],tr=[],er={},ar=null}function sr(t,e){if(void 0===e&&(e=!0),nr){var n=s(),a=t.length>1?t[1]:null,r=JSON.stringify(t);switch(a){case 5:rr+=r.length;case 37:case 6:case 43:case 45:case 46:ir+=r.length,$a.push(r);break;default:tr.push(r)}H(25);var i=function(){var t=!1===o.lean&&rr>0?100:wi.sequence*o.delay;return"string"==typeof o.upload?Math.max(Math.min(t,3e4),100):o.delay}();n-ur>2*i&&(Y(or),or=null),e&&null===or&&(25!==a&&V(),or=X(dr,i),ur=n,Xr(ir))}}function lr(){Y(or),dr(!0),rr=0,ir=0,ur=0,$a=[],tr=[],er={},ar=null,nr=!1}function dr(t){return void 0===t&&(t=!1),at(this,void 0,void 0,(function(){var e,n,a,r,i,u,c,s;return rt(this,(function(l){switch(l.label){case 0:return or=null,(e=!1===o.lean&&ir>0&&(ir<1048576||wi.sequence>0))&&W(1,1),Xa(),function(){var t=[];Ka=[];for(var e=wi.start+wi.duration,n=Math.max(e-2e3,0),a=0,r=Ga;a<r.length;a++){var i=r[a];i.time>=n&&(i.time<=e&&Ka.push(i),t.push(i))}Ga=t,Ja(22)}(),kt(),function(){for(var t=0,e=fa;t<e.length;t++){var n=e[t],a=n==document?-1:Jt(n),r=a in da?da[a]:null;ha(document,r)}}(),n=!0===t,a=JSON.stringify(Ei(n)),r="[".concat(tr.join(),"]"),i=e?"[".concat($a.join(),"]"):"",u=function(t){return t.p.length>0?'{"e":'.concat(t.e,',"a":').concat(t.a,',"p":').concat(t.p,"}"):'{"e":'.concat(t.e,',"a":').concat(t.a,"}")}({e:a,a:r,p:i}),n?(s=null,[3,3]):[3,1];case 1:return[4,pt(u)];case 2:s=l.sent(),l.label=3;case 3:return P(2,(c=s)?c.length:u.length),fr(u,c,wi.sequence,n),tr=[],e&&($a=[],ir=0,rr=0),[2]}}))}))}function fr(t,e,n,a){if(void 0===a&&(a=!1),"string"==typeof o.upload){var r=o.upload,i=!1;if(a&&"sendBeacon"in navigator)try{(i=navigator.sendBeacon.bind(navigator)(r,t))&&pr(n)}catch(t){}if(!1===i){n in er?er[n].attempts++:er[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",r,!0),u.timeout=15e3,u.ontimeout=function(){Ti(new Error("".concat("Timeout"," : ").concat(r)))},null!==n&&(u.onreadystatechange=function(){Ni(hr)(u,n)}),u.withCredentials=!0,e?(u.setRequestHeader("Accept","application/x-clarity-gzip"),u.send(e)):u.send(t)}}else if(o.upload){(0,o.upload)(t),pr(n)}}function hr(t,e){var n=er[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Yr(6):(0===t.status&&(o.upload=o.fallback?o.fallback:o.upload),fr(n.data,null,e)):(ar={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&Pr(2),200===t.status&&t.responseText&&function(t){for(var e=t&&t.length>0?t.split("\n"):[],n=0,a=e;n<a.length;n++){var r=a[n],i=r&&r.length>0?r.split(/ (.*)/):[""];switch(i[0]){case"END":Yr(6);break;case"UPGRADE":et("Auto");break;case"ACTION":o.action&&i.length>1&&o.action(i[1]);break;case"EXTRACT":i.length>1&&Ir(i[1]);break;case"SIGNAL":i.length>1&&mt(i[1])}}}(t.responseText),0===t.status&&(fr(n.data,null,e,!0),Yr(3)),t.status>=200&&t.status<=208&&pr(e),delete er[e]))}function pr(t){1===t&&(li(),si())}var vr,gr={};function mr(t){var e=t.error||t;return e.message in gr||(gr[e.message]=0),gr[e.message]++>=5||e&&e.message&&(vr={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},yr(31)),!0}function yr(t){return at(this,void 0,void 0,(function(){var e;return rt(this,(function(n){switch(e=[s(),t],t){case 31:e.push(vr.message),e.push(vr.line),e.push(vr.column),e.push(vr.stack),e.push(y(vr.source)),sr(e);break;case 33:br&&(e.push(br.code),e.push(br.name),e.push(br.message),e.push(br.stack),e.push(br.severity),sr(e,!1));break;case 41:St&&(e.push(St.id),e.push(St.target),e.push(St.checksum),sr(e,!1))}return[2]}))}))}var br,wr={};function kr(t,e,n,a,r){void 0===n&&(n=null),void 0===a&&(a=null),void 0===r&&(r=null);var i=n?"".concat(n,"|").concat(a):"";t in wr&&wr[t].indexOf(i)>=0||(br={code:t,name:n,message:a,stack:r,severity:e},t in wr?wr[t].push(i):wr[t]=[i],yr(33))}var Sr,Er={},Or=new Set,Tr={},Nr={},Mr={},xr={};function _r(){Ar()}function Ir(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=e[0].split(/\|(.*)/),a=parseInt(n[0]),r=n.length>1?n[1]:"",i=e.length>1?JSON.parse(e[1]):{};for(var o in Tr[a]={},Nr[a]={},Mr[a]={},xr[a]=r,i){var u=parseInt(o),c=i[o],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.substring(1,c.length);Tr[a][u]=Lr(l);break;case 2:Nr[a][u]=c;break;case 4:var d=c.substring(1,c.length);Mr[a][u]=d}}}catch(t){kr(8,1,t?t.name:null)}}function Cr(t){return JSON.parse(JSON.stringify(t))}function Dr(){try{for(var t in Tr){var e=parseInt(t);if(""==xr[e]||document.querySelector(xr[e])){var n=Tr[e];for(var a in n){var r=parseInt(a),i=(h=zr(Cr(n[r])))?JSON.stringify(h).substring(0,1e4):h;i&&jr(e,r,i)}var o=Nr[e];for(var u in o){var c=parseInt(u),s=document.querySelectorAll(o[c]);if(s)jr(e,c,Array.from(s).map((function(t){return t.textContent})).join("<SEP>").substring(0,1e4))}var l=Mr[e];for(var d in l){var f=parseInt(d);jr(e,f,$t(l[f]).trim().substring(0,1e4))}}}Or.size>0&&Pr(40)}catch(t){kr(5,1,t?t.name:null)}var h}function Ar(){Or.clear()}function jr(t,e,n){var a,r=!1;t in Er||(Er[t]={},r=!0),a=Mr[t],0==Object.keys(a).length||e in Er[t]&&Er[t][e]==n||(r=!0),Er[t][e]=n,r&&Or.add(t)}function Rr(){Ar()}function Lr(t){for(var e=[],n=t.split(".");n.length>0;){var a=n.shift(),r=a.indexOf("["),i=a.indexOf("{"),o=a.indexOf("}");e.push({name:r>0?a.substring(0,r):i>0?a.substring(0,i):a,type:r>0?1:i>0?2:3,condition:i>0?a.substring(i+1,o):null})}return e}function zr(t,e){if(void 0===e&&(e=window),0==t.length)return e;var n,a=t.shift();if(e&&e[a.name]){var r=e[a.name];if(1!==a.type&&Hr(r,a.condition))n=zr(t,r);else if(Array.isArray(r)){for(var i=[],o=0,u=r;o<u.length;o++){var c=u[o];if(Hr(c,a.condition)){var s=zr(t,c);s&&i.push(s)}}n=i}return n}return null}function Hr(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}function Pr(t){var e=[s(),t];switch(t){case 4:var n=O;n&&((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),sr(e,!1)),M();break;case 25:e.push(R.gap),sr(e);break;case 35:e.push(Sr.check),sr(e,!1);break;case 3:e.push(tt.key),sr(e);break;case 2:e.push(ar.sequence),e.push(ar.attempts),e.push(ar.status),sr(e,!1);break;case 24:A.key&&e.push(A.key),e.push(A.value),sr(e);break;case 34:var a=Object.keys(it);if(a.length>0){for(var r=0,i=a;r<i.length;r++){var o=i[r];e.push(o),e.push(it[o])}lt(),sr(e,!1)}break;case 0:var u=Object.keys(z);if(u.length>0){for(var c=0,l=u;c<l.length;c++){var d=l[c],f=parseInt(d,10);e.push(f),e.push(Math.round(z[d]))}z={},sr(e,!1)}break;case 1:var h=Object.keys(Vr);if(h.length>0){for(var p=0,v=h;p<v.length;p++){var g=v[p];f=parseInt(g,10);e.push(f),e.push(Vr[g])}Zr(),sr(e,!1)}break;case 36:var m=Object.keys(G);if(m.length>0){for(var y=0,b=m;y<b.length;y++){var w=b[y];f=parseInt(w,10);e.push(f),e.push([].concat.apply([],G[w]))}Q(),sr(e,!1)}break;case 40:Or.forEach((function(t){e.push(t);var n=[];for(var a in Er[t]){var r=parseInt(a,10);n.push(r),n.push(Er[t][a])}e.push(n)})),Ar(),sr(e,!1)}}function Wr(){Sr={check:0}}function Xr(t){if(0===Sr.check){var e=Sr.check;e=wi.sequence>=128?1:e,e=wi.pageNum>=128?7:e,e=s()>72e5?2:e,(e=t>10485760?2:e)!==Sr.check&&Yr(e)}}function Yr(t){Sr.check=t,ci(),ho()}function qr(){0!==Sr.check&&Pr(35)}function Ur(){Sr=null}var Fr=null,Vr=null;function Br(){Fr={},Vr={}}function Jr(){Fr={},Vr={}}function Gr(t,e){e&&(e="".concat(e),t in Fr||(Fr[t]=[]),Fr[t].indexOf(e)<0&&(Fr[t].push(e),t in Vr||(Vr[t]=[]),Vr[t].push(e),Fr[t].length>128&&Yr(5)))}function Kr(){Pr(1)}function Zr(){Vr={}}function Qr(t){Gr(36,t.toString())}var $r=null,ti=[],ei=0,ni=null;function ai(){var t,e,n;ni=null;var a=navigator&&"userAgent"in navigator?navigator.userAgent:"",r=null!==(n=null===(e=null===(t=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===t?void 0:t.resolvedOptions())||void 0===e?void 0:e.timeZone)&&void 0!==n?n:"",i=(new Date).getTimezoneOffset().toString(),u=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";ei=a.indexOf("Electron")>0?1:0;var s,l=function(){var t={session:hi(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=gi("_clsk");if(e){var n=e.split("|");n.length>=5&&t.ts-pi(n[1])<18e5&&(t.session=n[0],t.count=pi(n[2])+1,t.upgrade=pi(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),f=vi(),h=o.projectId||d(location.host);$r={projectId:h,userId:f.id,sessionId:l.session,pageNum:l.count},o.lean=o.track&&null!==l.upgrade?0===l.upgrade:o.lean,o.upload=o.track&&"string"==typeof o.upload&&l.upload&&l.upload.length>"https://".length?l.upload:o.upload,Gr(0,a),Gr(3,c),Gr(1,y(location.href,!!ei)),Gr(2,document.referrer),Gr(15,function(){var t=hi();if(o.track&&di(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),Gr(16,document.documentElement.lang),Gr(17,document.dir),Gr(26,"".concat(window.devicePixelRatio)),Gr(28,f.dob.toString()),Gr(29,f.version.toString()),Gr(33,u),Gr(34,r),Gr(35,i),W(0,l.ts),W(1,0),W(35,ei),navigator&&(Gr(9,navigator.language),W(33,navigator.hardwareConcurrency),W(32,navigator.maxTouchPoints),W(34,Math.round(navigator.deviceMemory)),(s=navigator.userAgentData)&&s.getHighEntropyValues?s.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;Gr(22,t.platform),Gr(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){Gr(24,t.name+"~"+t.version)})),Gr(25,t.model),W(27,t.mobile?1:0)})):Gr(22,navigator.platform)),screen&&(W(14,Math.round(screen.width)),W(15,Math.round(screen.height)),W(16,Math.round(screen.colorDepth)));for(var p=0,v=o.cookies;p<v.length;p++){var g=v[p],m=gi(g);m&&ot(g,m)}!function(t){Qr(t?1:0)}(o.track),fi(f)}function ri(){ni=null,$r=null,ti.forEach((function(t){t.called=!1}))}function ii(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1);var a=o.lean?0:1,r=!1;$r&&(a||!1===e)&&(t($r,!o.lean),r=!0),!n&&r||ti.push({callback:t,wait:e,recall:n,called:r})}function oi(){return $r?[$r.userId,$r.sessionId,$r.pageNum].join("."):""}function ui(t){if(void 0===t&&(t=!0),!t)return o.track=!1,yi("_clsk","",-Number.MAX_VALUE),yi("_clck","",-Number.MAX_VALUE),ho(),void window.setTimeout(fo,250);Xi()&&(o.track=!0,fi(vi(),1),li(),Qr(2))}function ci(){yi("_clsk","",0)}function si(){!function(t){if(ti.length>0)for(var e=0;e<ti.length;e++){var n=ti[e];!n.callback||n.called||n.wait&&!t||(n.callback($r,!o.lean),n.called=!0,n.recall||(ti.splice(e,1),e--))}}(o.lean?0:1)}function li(){if($r){var t=Math.round(Date.now()),e=o.upload&&"string"==typeof o.upload?o.upload.replace("https://",""):"",n=o.lean?0:1;yi("_clsk",[$r.sessionId,t,$r.pageNum,n,e].join("|"),1)}}function di(t,e){try{return!!t[e]}catch(t){return!1}}function fi(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5),a=0===t.dob?null===o.dob?0:o.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==a)&&yi("_clck",[$r.userId,2,n.toString(36),e,a].join("|"),365)}function hi(){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 pi(t,e){return void 0===e&&(e=10),parseInt(t,e)}function vi(){var t={id:hi(),version:0,expiry:null,consent:0,dob:0},e=gi("_clck");if(e&&e.length>0){for(var n=e.split("|"),a=0,r=0,i=document.cookie.split(";");r<i.length;r++){a+="_clck"===i[r].split("=")[0].trim()?1:0}if(1===n.length||a>1){var u="".concat(";").concat("expires=").concat(new Date(0).toUTCString()).concat(";path=/");document.cookie="".concat("_clck","=").concat(u),document.cookie="".concat("_clsk","=").concat(u)}n.length>1&&(t.version=pi(n[1])),n.length>2&&(t.expiry=pi(n[2],36)),n.length>3&&1===pi(n[3])&&(t.consent=1),n.length>4&&pi(n[1])>1&&(t.dob=pi(n[4])),o.track=o.track||1===t.consent,t.id=o.track?n[0]:t.id}return t}function gi(t){var e;if(di(document,"cookie")){var n=document.cookie.split(";");if(n)for(var a=0;a<n.length;a++){var r=n[a].split("=");if(r.length>1&&r[0]&&r[0].trim()===t){for(var i=mi(r[1]),o=i[0],u=i[1];o;)o=(e=mi(u))[0],u=e[1];return u}}}return null}function mi(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}function yi(t,e,n){if((o.track||""==e)&&(navigator&&navigator.cookieEnabled||di(document,"cookie"))){var a=function(t){return encodeURIComponent(t)}(e),r=new Date;r.setDate(r.getDate()+n);var i=r?"expires="+r.toUTCString():"",u="".concat(t,"=").concat(a).concat(";").concat(i).concat(";path=/");try{if(null===ni){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(ni=".".concat(c[s]).concat(ni||""),s<c.length-1&&(document.cookie="".concat(u).concat(";").concat("domain=").concat(ni),gi(t)===e))return;ni=""}}catch(t){ni=""}document.cookie=ni?"".concat(u).concat(";").concat("domain=").concat(ni):u}}var bi,wi=null;function ki(){var t=$r;wi={version:l,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0}}function Si(){wi=null}function Ei(t){return wi.start=wi.start+wi.duration,wi.duration=s()-wi.start,wi.sequence++,wi.upload=t&&"sendBeacon"in navigator?1:0,wi.end=t?1:0,[wi.version,wi.sequence,wi.start,wi.duration,wi.projectId,wi.userId,wi.sessionId,wi.pageNum,wi.upload,wi.end]}function Oi(){bi=[]}function Ti(t){if(bi&&-1===bi.indexOf(t.message)){var e=o.report;if(e&&e.length>0){var n={v:wi.version,p:wi.projectId,u:wi.userId,s:wi.sessionId,n:wi.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var a=new XMLHttpRequest;a.open("POST",e,!0),a.send(JSON.stringify(n)),bi.push(t.message)}}return t}function Ni(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw Ti(t)}var n=performance.now()-e;P(4,n),n>o.longTask&&(H(7),W(6,n))}}var Mi=[];function xi(t,e,n,a){void 0===a&&(a=!1),n=Ni(n);try{t[u("addEventListener")](e,n,a),Mi.push({event:e,target:t,listener:n,capture:a})}catch(t){}}function _i(){for(var t=0,e=Mi;t<e.length;t++){var n=e[t];try{n.target[u("removeEventListener")](n.event,n.listener,n.capture)}catch(t){}}Mi=[]}var Ii=null,Ci=null,Di=null,Ai=0;function ji(){return!(Ai++>20)||(kr(4,0),!1)}function Ri(){Ai=0,Di!==zi()&&(ho(),window.setTimeout(Li,250))}function Li(){fo(),W(29,1)}function zi(){return location.href?location.href.replace(location.hash,""):location.href}var Hi=!1;function Pi(){Hi=!0,c=performance.now()+performance.timeOrigin,ve(),_i(),Oi(),Di=zi(),Ai=0,xi(window,"popstate",Ri),null===Ii&&(Ii=history.pushState,history.pushState=function(){Ii.apply(this,arguments),Xi()&&ji()&&Ri()}),null===Ci&&(Ci=history.replaceState,history.replaceState=function(){Ci.apply(this,arguments),Xi()&&ji()&&Ri()})}function Wi(){Di=null,Ai=0,Oi(),_i(),ve(),c=0,Hi=!1}function Xi(){return Hi}function Yi(){fo(),j("clarity","restart")}var qi=Object.freeze({__proto__:null,start:function(){!function(){Et=[],W(26,navigator.webdriver?1:0);try{W(31,window.top==window.self||window.top==window?1:2)}catch(t){W(31,0)}}(),xi(window,"error",mr),gr={},wr={}},stop:function(){wr={}}});function Ui(){return at(this,void 0,void 0,(function(){var t,e;return rt(this,(function(n){switch(n.label){case 0:return t=s(),be(e={id:oi(),cost:3}),[4,In(document,e,0,t)];case 1:return n.sent(),ha(document,t),[4,_a(5,e,t)];case 2:return n.sent(),we(e),[2]}}))}))}var Fi=Object.freeze({__proto__:null,hashText:$t,start:function(){Ne(),Me(),Fa(),Ha=null,ja=new WeakMap,Ra={},La=[],za=!!window.IntersectionObserver,Ut(),o.delayDom?xi(window,"load",(function(){Yn()})):Yn(),ge(Ui,1).then((function(){Ni(Me)(),Ni(Xa)(),Ni(fn)()})),null===oa&&(oa=CSSStyleSheet.prototype.replace,CSSStyleSheet.prototype.replace=function(){return Xi()&&(W(36,1),this[sa]===$r.pageNum&&va(s(),this[ca],1,arguments[0])),oa.apply(this,arguments)}),null===ua&&(ua=CSSStyleSheet.prototype.replaceSync,CSSStyleSheet.prototype.replaceSync=function(){return Xi()&&(W(36,1),this[sa]===$r.pageNum&&va(s(),this[ca],2,arguments[0])),ua.apply(this,arguments)}),function(){if(window.Animation&&window.KeyframeEffect&&window.KeyframeEffect.prototype.getKeyframes&&window.KeyframeEffect.prototype.getTiming&&(Ta(),Ma(ya,"play"),Ma(ba,"pause"),Ma(wa,"cancel"),Ma(ka,"finish"),null===ma&&(ma=Element.prototype.animate,Element.prototype.animate=function(){var t=ma.apply(this,arguments);return xa(t,"play"),t}),document.getAnimations))for(var t=0,e=document.getAnimations();t<e.length;t++){var n=e[t];"finished"===n.playState?xa(n,"finish"):"paused"===n.playState||"idle"===n.playState?xa(n,"pause"):"running"===n.playState&&xa(n,"play")}}()},stop:function(){Fa(),ja=null,Ra={},La=[],Ha&&(Ha.disconnect(),Ha=null),za=!1,Ft(),function(){for(var t=0,e=Cn;t<e.length;t++){var n=e[t];n&&n.disconnect()}Cn=[],Xn={},Dn=[],Hn=[],Wn=0,Pn=null}(),Ne(),la={},da={},fa=[],pa(),Ta()}});var Vi=null;function Bi(){Vi=null}function Ji(t){Vi={fetchStart:Math.round(t.fetchStart),connectStart:Math.round(t.connectStart),connectEnd:Math.round(t.connectEnd),requestStart:Math.round(t.requestStart),responseStart:Math.round(t.responseStart),responseEnd:Math.round(t.responseEnd),domInteractive:Math.round(t.domInteractive),domComplete:Math.round(t.domComplete),loadEventStart:Math.round(t.loadEventStart),loadEventEnd:Math.round(t.loadEventEnd),redirectCount:Math.round(t.redirectCount),size:t.transferSize?t.transferSize:0,type:t.type,protocol:t.nextHopProtocol,encodedSize:t.encodedBodySize?t.encodedBodySize:0,decodedSize:t.decodedBodySize?t.decodedBodySize:0},function(t){at(this,void 0,void 0,(function(){var e,n;return rt(this,(function(a){return e=s(),n=[e,t],29===t&&(n.push(Vi.fetchStart),n.push(Vi.connectStart),n.push(Vi.connectEnd),n.push(Vi.requestStart),n.push(Vi.responseStart),n.push(Vi.responseEnd),n.push(Vi.domInteractive),n.push(Vi.domComplete),n.push(Vi.loadEventStart),n.push(Vi.loadEventEnd),n.push(Vi.redirectCount),n.push(Vi.size),n.push(Vi.type),n.push(Vi.protocol),n.push(Vi.encodedSize),n.push(Vi.decodedSize),Bi(),sr(n)),[2]}))}))}(29)}var Gi,Ki=0,Zi=1/0,Qi=0,$i=0,to=[],eo=new Map,no=function(){return Ki||0},ao=function(){if(!to.length)return-1;var t=Math.min(to.length-1,Math.floor((no()-$i)/50));return to[t].latency},ro=function(){$i=no(),to.length=0,eo.clear()},io=function(t){if(t.interactionId&&!(t.duration<40)){!function(t){"interactionCount"in performance?Ki=performance.interactionCount:t.interactionId&&(Zi=Math.min(Zi,t.interactionId),Qi=Math.max(Qi,t.interactionId),Ki=Qi?(Qi-Zi)/7+1:0)}(t);var e=to[to.length-1],n=eo.get(t.interactionId);if(n||to.length<10||t.duration>(null==e?void 0:e.latency)){if(n)t.duration>n.latency&&(n.latency=t.duration);else{var a={id:t.interactionId,latency:t.duration};eo.set(a.id,a),to.push(a)}to.sort((function(t,e){return e.latency-t.latency})),to.length>10&&to.splice(10).forEach((function(t){return eo.delete(t.id)}))}}},oo=["navigation","resource","longtask","first-input","layout-shift","largest-contentful-paint","event"];function uo(){try{Gi&&Gi.disconnect(),Gi=new PerformanceObserver(Ni(co));for(var t=0,e=oo;t<e.length;t++){var n=e[t];PerformanceObserver.supportedEntryTypes.indexOf(n)>=0&&("layout-shift"===n&&P(9,0),Gi.observe({type:n,buffered:!0}))}}catch(t){kr(3,1)}}function co(t){!function(t){for(var e=(!("visibilityState"in document)||"visible"===document.visibilityState),n=0;n<t.length;n++){var a=t[n];switch(a.entryType){case"navigation":Ji(a);break;case"resource":var r=a.name;Gr(4,so(r)),r!==o.upload&&r!==o.fallback||W(28,a.duration);break;case"longtask":H(7);break;case"first-input":e&&W(10,a.processingStart-a.startTime);break;case"event":e&&"PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&(io(a),Gr(37,ao().toString()));break;case"layout-shift":e&&!a.hadRecentInput&&P(9,1e3*a.value);break;case"largest-contentful-paint":e&&W(8,a.startTime)}}}(t.getEntries())}function so(t){var e=document.createElement("a");return e.href=t,e.host}var lo=[qi,Fi,_n,Object.freeze({__proto__:null,start:function(){Bi(),function(){navigator&&"connection"in navigator&&Gr(27,navigator.connection.effectiveType),window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?"complete"!==document.readyState?xi(window,"load",X.bind(this,uo,0)):uo():kr(3,0)}()},stop:function(){Gi&&Gi.disconnect(),Gi=null,ro(),Bi()}})];function fo(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===Hi&&"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||Hi)return!1;for(var e in t)e in o&&(o[e]=t[e])}(t),Pi(),bt(),lo.forEach((function(t){return Ni(t.start)()})),null===t&&mo())}function ho(){Xi()&&(lo.slice().reverse().forEach((function(t){return Ni(t.stop)()})),wt(),Wi(),void 0!==vo&&(vo[go]=function(){(vo[go].q=vo[go].q||[]).push(arguments),"start"===arguments[0]&&vo[go].q.unshift(vo[go].q.pop())&&mo()}))}var po=Object.freeze({__proto__:null,consent:ui,event:j,hashText:$t,identify:ut,metadata:ii,pause:function(){Xi()&&(j("clarity","pause"),null===he&&(he=new Promise((function(t){pe=t}))))},resume:function(){Xi()&&(he&&(pe(),he=null,null===fe&&me()),j("clarity","resume"))},set:ot,signal:function(t){gt=t},start:fo,stop:ho,upgrade:et,version:l}),vo=window,go="clarity";function mo(){if(void 0!==vo){if(vo[go]&&vo[go].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=vo[go]&&vo[go].q||[];for(vo[go]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return po[t].apply(po,e)},vo[go].v=l;t.length>0;)vo[go].apply(vo,t.shift())}}mo()}();
|
package/build/clarity.module.js
CHANGED
|
@@ -163,7 +163,7 @@ function stop$F() {
|
|
|
163
163
|
startTime = 0;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
var version$1 = "0.7.
|
|
166
|
+
var version$1 = "0.7.53";
|
|
167
167
|
|
|
168
168
|
// tslint:disable: no-bitwise
|
|
169
169
|
function hash (input, precision) {
|
|
@@ -5273,6 +5273,100 @@ function compute(entry) {
|
|
|
5273
5273
|
encode(29 /* Event.Navigation */);
|
|
5274
5274
|
}
|
|
5275
5275
|
|
|
5276
|
+
// Estimate variables to keep track of interactions
|
|
5277
|
+
var interactionCountEstimate = 0;
|
|
5278
|
+
var minKnownInteractionId = Infinity;
|
|
5279
|
+
var maxKnownInteractionId = 0;
|
|
5280
|
+
var prevInteractionCount = 0; // Used to track interaction count between pages
|
|
5281
|
+
var MAX_INTERACTIONS_TO_CONSIDER = 10; // Maximum number of interactions we consider for INP
|
|
5282
|
+
var DEFAULT_DURATION_THRESHOLD = 40; // Threshold to ignore very short interactions
|
|
5283
|
+
// List to store the longest interaction events
|
|
5284
|
+
var longestInteractionList = [];
|
|
5285
|
+
// Map to track interactions by their ID, ensuring we handle duplicates
|
|
5286
|
+
var longestInteractionMap = new Map();
|
|
5287
|
+
/**
|
|
5288
|
+
* Update the approx number of interactions estimate count if the interactionCount is not supported.
|
|
5289
|
+
* The difference between `maxKnownInteractionId` and `minKnownInteractionId` gives us a rough range of how many interactions have occurred.
|
|
5290
|
+
* Dividing by 7 helps approximate the interaction count more accurately, since interaction IDs are spread out across a large range.
|
|
5291
|
+
*/
|
|
5292
|
+
var countInteractions = function (entry) {
|
|
5293
|
+
if ('interactionCount' in performance) {
|
|
5294
|
+
interactionCountEstimate = performance.interactionCount;
|
|
5295
|
+
return;
|
|
5296
|
+
}
|
|
5297
|
+
if (entry.interactionId) {
|
|
5298
|
+
minKnownInteractionId = Math.min(minKnownInteractionId, entry.interactionId);
|
|
5299
|
+
maxKnownInteractionId = Math.max(maxKnownInteractionId, entry.interactionId);
|
|
5300
|
+
interactionCountEstimate = maxKnownInteractionId
|
|
5301
|
+
? (maxKnownInteractionId - minKnownInteractionId) / 7 + 1
|
|
5302
|
+
: 0;
|
|
5303
|
+
}
|
|
5304
|
+
};
|
|
5305
|
+
var getInteractionCount = function () {
|
|
5306
|
+
return interactionCountEstimate || 0;
|
|
5307
|
+
};
|
|
5308
|
+
var getInteractionCountForNavigation = function () {
|
|
5309
|
+
return getInteractionCount() - prevInteractionCount;
|
|
5310
|
+
};
|
|
5311
|
+
/**
|
|
5312
|
+
* Estimates the 98th percentile (P98) of the longest interactions by selecting
|
|
5313
|
+
* the candidate interaction based on the current interaction count.
|
|
5314
|
+
* Dividing by 50 is a heuristic to estimate the 98th percentile (P98) interaction.
|
|
5315
|
+
* This assumes one out of every 50 interactions represents the P98 interaction.
|
|
5316
|
+
* By dividing the total interaction count by 50, we get an index to approximate
|
|
5317
|
+
* the slowest 2% of interactions, helping identify a likely P98 candidate.
|
|
5318
|
+
*/
|
|
5319
|
+
var estimateP98LongestInteraction = function () {
|
|
5320
|
+
if (!longestInteractionList.length) {
|
|
5321
|
+
return -1;
|
|
5322
|
+
}
|
|
5323
|
+
var candidateInteractionIndex = Math.min(longestInteractionList.length - 1, Math.floor(getInteractionCountForNavigation() / 50));
|
|
5324
|
+
return longestInteractionList[candidateInteractionIndex].latency;
|
|
5325
|
+
};
|
|
5326
|
+
/**
|
|
5327
|
+
* Resets the interaction tracking, usually called after navigation to a new page.
|
|
5328
|
+
*/
|
|
5329
|
+
var resetInteractions = function () {
|
|
5330
|
+
prevInteractionCount = getInteractionCount();
|
|
5331
|
+
longestInteractionList.length = 0;
|
|
5332
|
+
longestInteractionMap.clear();
|
|
5333
|
+
};
|
|
5334
|
+
/**
|
|
5335
|
+
* Processes a PerformanceEventTiming entry by updating the longest interaction list.
|
|
5336
|
+
*/
|
|
5337
|
+
var processInteractionEntry = function (entry) {
|
|
5338
|
+
// Ignore entries with 0 interactionId or very short durations
|
|
5339
|
+
if (!entry.interactionId || entry.duration < DEFAULT_DURATION_THRESHOLD) {
|
|
5340
|
+
return;
|
|
5341
|
+
}
|
|
5342
|
+
countInteractions(entry);
|
|
5343
|
+
var minLongestInteraction = longestInteractionList[longestInteractionList.length - 1];
|
|
5344
|
+
var existingInteraction = longestInteractionMap.get(entry.interactionId);
|
|
5345
|
+
// Either update existing, add new, or replace shortest interaction if necessary
|
|
5346
|
+
if (existingInteraction ||
|
|
5347
|
+
longestInteractionList.length < MAX_INTERACTIONS_TO_CONSIDER ||
|
|
5348
|
+
entry.duration > (minLongestInteraction === null || minLongestInteraction === void 0 ? void 0 : minLongestInteraction.latency)) {
|
|
5349
|
+
if (!existingInteraction) {
|
|
5350
|
+
var interaction = {
|
|
5351
|
+
id: entry.interactionId,
|
|
5352
|
+
latency: entry.duration,
|
|
5353
|
+
};
|
|
5354
|
+
longestInteractionMap.set(interaction.id, interaction);
|
|
5355
|
+
longestInteractionList.push(interaction);
|
|
5356
|
+
}
|
|
5357
|
+
else if (entry.duration > existingInteraction.latency) {
|
|
5358
|
+
existingInteraction.latency = entry.duration;
|
|
5359
|
+
}
|
|
5360
|
+
longestInteractionList.sort(function (a, b) { return b.latency - a.latency; });
|
|
5361
|
+
// Trim the list to the maximum number of interactions to consider
|
|
5362
|
+
if (longestInteractionList.length > MAX_INTERACTIONS_TO_CONSIDER) {
|
|
5363
|
+
longestInteractionList
|
|
5364
|
+
.splice(MAX_INTERACTIONS_TO_CONSIDER)
|
|
5365
|
+
.forEach(function (i) { return longestInteractionMap.delete(i.id); });
|
|
5366
|
+
}
|
|
5367
|
+
}
|
|
5368
|
+
};
|
|
5369
|
+
|
|
5276
5370
|
var observer;
|
|
5277
5371
|
var types = ["navigation" /* Constant.Navigation */, "resource" /* Constant.Resource */, "longtask" /* Constant.LongTask */, "first-input" /* Constant.FID */, "layout-shift" /* Constant.CLS */, "largest-contentful-paint" /* Constant.LCP */, "event" /* Constant.PerformanceEventTiming */];
|
|
5278
5372
|
function start$2() {
|
|
@@ -5351,8 +5445,10 @@ function process(entries) {
|
|
|
5351
5445
|
}
|
|
5352
5446
|
break;
|
|
5353
5447
|
case "event" /* Constant.PerformanceEventTiming */:
|
|
5354
|
-
if (visible) {
|
|
5355
|
-
|
|
5448
|
+
if (visible && 'PerformanceEventTiming' in window && 'interactionId' in PerformanceEventTiming.prototype) {
|
|
5449
|
+
processInteractionEntry(entry);
|
|
5450
|
+
// Logging it as dimension because we're always looking for the last value.
|
|
5451
|
+
log(37 /* Dimension.InteractionNextPaint */, estimateP98LongestInteraction().toString());
|
|
5356
5452
|
}
|
|
5357
5453
|
break;
|
|
5358
5454
|
case "layout-shift" /* Constant.CLS */:
|
|
@@ -5374,6 +5470,7 @@ function stop$2() {
|
|
|
5374
5470
|
observer.disconnect();
|
|
5375
5471
|
}
|
|
5376
5472
|
observer = null;
|
|
5473
|
+
resetInteractions();
|
|
5377
5474
|
}
|
|
5378
5475
|
function host(url) {
|
|
5379
5476
|
var a = document.createElement("a");
|