window.IMPACT = window.IMPACT || {};IMPACT.impact_id = 5;IMPACT.sample_rates = [];IMPACT.event_url = "https://rum.impactcommerce.io/event/boconcept"; !function(){"use strict";var t,e,n=function(){var t=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart(e||100)-1)return n||o;if(n=n?o+">"+n:o,r.id)break;t=r.parentNode}}catch(t){}return n},a=-1,c=function(){return a},s=function(t){addEventListener("pageshow",(function(e){e.persisted&&(a=e.timeStamp,t(e))}),!0)},u=function(){var t=n();return t&&t.activationStart||0},l=function(t,e){var r=n(),i="navigate";return c()>=0?i="back-forward-cache":r&&(document.prerendering||u()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},d=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver((function(t){Promise.resolve().then((function(){e(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},f=function(t,e,n,r){var i,o;return function(a){e.value>=0&&(a||r)&&((o=e.value-(i||0))||void 0===i)&&(i=e.value,e.delta=o,e.rating=function(t,e){return t>e[1]?"poor":t>e[0]?"needs-improvement":"good"}(e.value,n),t(e))}},p=function(t){requestAnimationFrame((function(){return requestAnimationFrame((function(){return t()}))}))},m=function(t){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t()}))},v=function(t){var e=!1;return function(){e||(t(),e=!0)}},g=-1,h=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},y=function(t){"hidden"===document.visibilityState&&g>-1&&(g="visibilitychange"===t.type?t.timeStamp:0,b())},T=function(){addEventListener("visibilitychange",y,!0),addEventListener("prerenderingchange",y,!0)},b=function(){removeEventListener("visibilitychange",y,!0),removeEventListener("prerenderingchange",y,!0)},S=function(){return g<0&&(g=h(),T(),s((function(){setTimeout((function(){g=h(),T()}),0)}))),{get firstHiddenTime(){return g}}},E=function(t){document.prerendering?addEventListener("prerenderingchange",(function(){return t()}),!0):t()},w=[1800,3e3],D=function(t,e){!function(t,e){e=e||{},E((function(){var n,r=S(),i=l("FCP"),o=d("paint",(function(t){t.forEach((function(t){"first-contentful-paint"===t.name&&(o.disconnect(),t.startTimee.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===n.entries[0].startTime&&n.entries.push(t);else{var r={id:t.interactionId,latency:t.duration,entries:[t]};A.set(r.id,r),x.push(r)}x.sort((function(t,e){return e.latency-t.latency})),x.length>10&&x.splice(10).forEach((function(t){return A.delete(t.id)}))}}},F=function(t){var e=self.requestIdleCallback||self.setTimeout,n=-1;return t=v(t),"hidden"===document.visibilityState?t():(n=e(t),m(t)),n},R=[200,500],j=function(t,e){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(e=e||{},E((function(){var n;P();var r,i=l("INP"),o=function(t){F((function(){t.forEach(q);var e=function(){var t=Math.min(x.length-1,Math.floor((L()-B)/50));return x[t]}();e&&e.latency!==i.value&&(i.value=e.latency,i.entries=e.entries,r())}))},a=d("event",o,{durationThreshold:null!==(n=e.durationThreshold)&&void 0!==n?n:40});r=f(t,i,R,e.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),m((function(){o(a.takeRecords()),r(!0)})),s((function(){B=L(),x.length=0,A.clear(),i=l("INP"),r=f(t,i,R,e.reportAllChanges)})))})))},N=[],U=[],$=0,_=new WeakMap,z=new Map,W=-1,H=function(t){N=N.concat(t),V()},V=function(){W<0&&(W=F(G))},G=function(){z.size>10&&z.forEach((function(t,e){A.has(e)||z.delete(e)}));var t=x.map((function(t){return _.get(t.entries[0])})),e=U.length-50;U=U.filter((function(n,r){return r>=e||t.includes(n)}));for(var n=new Set,r=0;r$&&e>o||n.has(t)})),W=-1};O.push((function(t){t.interactionId&&t.target&&!z.has(t.interactionId)&&z.set(t.interactionId,t.target)}),(function(t){var e,n=t.startTime+t.duration;$=Math.max($,t.processingEnd);for(var r=U.length-1;r>=0;r--){var i=U[r];if(Math.abs(n-i.renderTime)<=8){(e=i).startTime=Math.min(t.startTime,e.startTime),e.processingStart=Math.min(t.processingStart,e.processingStart),e.processingEnd=Math.max(t.processingEnd,e.processingEnd),e.entries.push(t);break}}e||(e={startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,renderTime:n,entries:[t]},U.push(e)),(t.interactionId||"first-input"===t.entryType)&&_.set(t,e),V()}));var J=function(t,e){for(var n,r=[],i=0;n=N[i];i++)if(!(n.startTime+n.duratione)break;r.push(n)}return r},K=[2500,4e3],Q={},X=[800,1800],Y=function t(e){document.prerendering?E((function(){return t(e)})):"complete"!==document.readyState?addEventListener("load",(function(){return t(e)}),!0):setTimeout(e,0)},Z=function(t,e){e=e||{};var r=l("TTFB"),i=f(t,r,X,e.reportAllChanges);Y((function(){var o=n();o&&(r.value=Math.max(o.responseStart-u(),0),r.entries=[o],i(!0),s((function(){r=l("TTFB",0),(i=f(t,r,X,e.reportAllChanges))(!0)})))}))};function tt(t){const e=[],n=["password","token","code","fbclid","twclid","gclid","state","auth"];return new URLSearchParams(t).forEach(((t,r)=>{const i=r.toLowerCase();n.includes(i)||e.push(t?`${r}=${t}`:r)})),e.join("&")}function et(){if(self&&self.crypto&&"function"==typeof self.crypto.randomUUID)return crypto.randomUUID();const t=new Uint8Array(16);crypto.getRandomValues(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;const e=t=>t.toString(16).padStart(2,"0");return[e(t[0])+e(t[1])+e(t[2])+e(t[3]),e(t[4])+e(t[5]),e(t[6])+e(t[7]),e(t[8])+e(t[9]),e(t[10])+e(t[11])+e(t[12])+e(t[13])+e(t[14])+e(t[15])].join("-")}function nt(t=null,e=0){return t?Number(Number(t).toFixed(e)):null}function rt(t){return{returning:t,timestamp:new Date,title:(document.title||"").slice(0,100),origin:window.origin,path:location.pathname.slice(0,100),query:tt(location.search),screenWidth:screen.width,windowWidth:10*Math.round(window.outerWidth/10),windowHeight:10*Math.round(window.outerHeight/10)}}function it(t=null){t||(t={});let e=t.ua;if(e||"undefined"==typeof navigator||(e=navigator.userAgent),e&&e.headers&&"string"==typeof e.headers["user-agent"]&&(e=e.headers["user-agent"]),"string"!=typeof e)return"desktop";const n=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)&&!/CrOS/.test(e),r=/android(?!.*mobile)|ipad|playbook|silk/i.test(e),i="undefined"!=typeof navigator&&navigator.maxTouchPoints>1&&e.includes("Macintosh")&&e.includes("Safari");return n?"mobile":r||i?"tablet":"desktop"}function ot(t){const{lcp:e,inp:n}=t,r=Array.from(performance.getEntriesByType("resource")).filter((t=>""!==t.name)),i=r.filter((t=>{if(t.startTime>8e3)return!1;const n=null==e?void 0:e.value;if(n){return t.startTime+t.duration{var n;return st(e,null===(n=null==t?void 0:t.lcp)||void 0===n?void 0:n.url)})),c=at(i.filter(ct),(t=>t.responseEnd),3),s=at(i.filter(ct),(t=>t.duration),2),u=at(i,(t=>t.duration),2),l=at(i,(t=>t.transferSize),2),d=i.find((t=>"img"===t.initiatorType)),f=i.find((t=>"script"===t.initiatorType)),p=n?r.filter((t=>t.startTime>n.startTime&&t.startTimem.has(t))).map((e=>{var n;return function(t,e){try{const n=function(t){const e=Math.round(t.domainLookupEnd-t.domainLookupStart),n=t.secureConnectionStart||t.connectEnd,r=Math.round(n-t.connectStart),i=t.secureConnectionStart?Math.round(t.connectEnd-t.secureConnectionStart):0,o=Math.round(t.responseStart-(t.connectEnd||t.requestStart)),a=Math.max(0,Math.round(t.responseEnd-(t.responseStart||t.startTime))),c=Math.round(t.redirectEnd),s=t.redirectEnd?Math.round((t.domainLookupStart||t.fetchStart)-t.redirectEnd-t.startTime):Math.round((t.domainLookupStart||t.fetchStart)-t.startTime);return{start:Math.round(t.startTime),sw:s,redirect:c,dns:e,tcp:r,tls:i,req:o,download:a}}(t),r=function(t){const{name:e}=t;if(!e.startsWith(location.origin))return e;try{const t=new URL(e);return`${t.hostname}${t.pathname}`}catch(t){return e}}(t),i=ct(t),o=st(t,e),a={};if(i&&(a.blocking=!0),o&&(a.lcp=!0),"cache"===t.deliveryType&&(a.cache=!0),"link"===t.initiatorType){const e=document.querySelector(`link[href="${t.name}"]`);e&&("preload"===e.rel&&(a.preload=!0),"high"===e.fetchPriority&&(a.highPriority=!0))}if("img"===t.initiatorType){const e=document.querySelector(`img[src="${t.name}"]`);e&&"high"===e.fetchPriority&&(a.highPriority=!0)}const c={url:function(t){try{let e,n;if(/^https?:\/\//.test(t)){const r=new URL(t);e=r.hostname.slice(0,25);const i=r.pathname.split("/").filter(Boolean);if(r.pathname.length<30)n=r.pathname;else{n=`…/${i.pop()}`}}else{const r=t.split("/").filter(Boolean);if(e=r[0].slice(0,25),t.length<30)n=t;else{n=`…/${r.pop()}`}}return e+(n.startsWith("/")?n:`/${n}`)}catch(e){return t.slice(0,20)}}(r),start:n.start,sw:n.sw+n.redirect,dns:n.dns,tcp:n.tcp,tls:n.tls,req:n.req,download:n.download,size:t.transferSize,type:t.initiatorType||0};return Object.keys(a).length>0&&(c.attr=a),c}catch(t){return console.error(t),null}}(e,null===(n=null==t?void 0:t.lcp)||void 0===n?void 0:n.url)})).filter((t=>Boolean(t)))}function at(t,e,n){return t.slice().sort(((t,n)=>e(n)-e(t))).slice(0,n)}function ct(t){return"blocking"===t.renderBlockingStatus}function st(t,e){return t.name===e}const ut=t=>{const e=t.nodeName;return 1===t.nodeType?e.toLowerCase():e.toUpperCase().replace(/^#/,"")};const lt=(t,e=100)=>{var n,r;let i="";try{for(;t&&9!==t.nodeType;){const o=t,a=null===(r=null===(n=o.classList)||void 0===n?void 0:n.value)||void 0===r?void 0:r.trim(),c=a?a.split(/\s+/).map((t=>t.replace(/:/g,"\\:"))).join("."):"",s=o.id?"#"+CSS.escape(o.id):ut(o)+(c?"."+c:"");if(i.length+s.length>e-1)return i||s;if(i=i?s+">"+i:s,o.id)break;t=o.parentNode}}catch(t){}return i};let dt;function ft(t){return["click","pointerdown","pointerup"].includes(t)?"pointer":["keydown","keyup"].includes(t)?"keyboard":"other"}function pt(t){var e,n,r;const i=null===(e=null==t?void 0:t.lcpEntry)||void 0===e?void 0:e.element,o="IMG"===(null==i?void 0:i.tagName),a="link"===(null===(n=null==t?void 0:t.lcpResourceEntry)||void 0===n?void 0:n.initiatorType)||"early-hints"===(null===(r=null==t?void 0:t.lcpResourceEntry)||void 0===r?void 0:r.initiatorType),c="high"===(null==i?void 0:i.fetchPriority),s=i&&("lazy"===i.loading||"data-src"in i.dataset);let u="text";o?u="image":"VIDEO"===(null==i?void 0:i.tagName)?u="video":(null==t?void 0:t.url)&&(u="background-image");let l=null;return(o||"background-image"===u)&&(l=a?1:c?2:s?4:3),{prio:l,type:u}}(()=>{var t,i,a,c,g;const h=window.IMPACT||{},y={};let T="https://rum.impactcommerce.io/event";h.event_url&&(T=h.event_url);let b=!0;const w=null!==(i=null===(t=h.sample_rates)||void 0===t?void 0:t[window.location.origin])&&void 0!==i?i:100;if(!(100==w||100*Math.random(){var e,n,r;for(const i of t.getEntries())if("layout-shift"===i.entryType){const t=i,o=nt(null==t?void 0:t.value,2);if(!t.hadRecentInput&&o&&o>0){const i=null!==(r=null===(n=null===(e=t.sources)||void 0===e?void 0:e[0])||void 0===n?void 0:n.node)&&void 0!==r?r:null,a=lt(i);y.cls||(y.cls={total:0,elements:[]}),y.cls.total=nt((y.cls.total||0)+t.value,2),y.cls.elements.push({id:et(),cls:o,el:a,meta:rt(k)})}}}));I.observe({type:"layout-shift",buffered:!0}),function(t,n){e||(e=d("long-animation-frame",H)),j((function(e){var n=function(t){var e=t.entries[0],n=_.get(e),i=e.processingStart,a=n.processingEnd,c=n.entries.sort((function(t,e){return t.processingStart-e.processingStart})),s=J(e.startTime,a),u=t.entries.find((function(t){return t.target})),l=u&&u.target||z.get(e.interactionId),d=[e.startTime+e.duration,a].concat(s.map((function(t){return t.startTime+t.duration}))),f=Math.max.apply(Math,d),p={interactionTarget:o(l),interactionTargetElement:l,interactionType:e.name.startsWith("key")?"keyboard":"pointer",interactionTime:e.startTime,nextPaintTime:f,processedEventEntries:c,longAnimationFrameEntries:s,inputDelay:i-e.startTime,processingDuration:a-i,presentationDelay:Math.max(f-a,0),loadState:r(e.startTime)};return Object.assign(t,{attribution:p})}(e);t(n)}),n)}((({name:t,value:e,rating:n,attribution:r})=>{y.interactions||(y.interactions=[]),y.interactions.push({id:et(),value:nt(e),el:r.interactionTarget,delay:nt(r.inputDelay),loadState:r.loadState,interactionType:r.interactionType,startTime:nt(r.interactionTime),processingDuration:nt(r.processingDuration),presentationDelay:nt(r.presentationDelay),inp:!0,meta:rt(k)})}),{reportAllChanges:!0}),function(t,e=40){if("undefined"!=typeof PerformanceObserver)try{dt=new PerformanceObserver((n=>{for(const r of n.getEntries())if("event"===r.entryType&&r.duration>e&&"scroll"!==r.name&&r.interactionId>0){const e=r.duration,n={interactionId:r.interactionId,interactionTarget:r.target?lt(r.target):null,interactionType:ft(r.name),interactionTime:r.startTime,inputDelay:r.processingStart-r.startTime,processingDuration:r.processingEnd-r.processingStart,presentationDelay:r.duration-(r.processingEnd-r.startTime),loadState:document.readyState};t({name:"INP",value:e,rating:e<200?"good":e<500?"needs-improvement":"poor",attribution:n,entries:[r]})}})),dt.observe({type:"event",buffered:!0,durationThreshold:e})}catch(t){}}((({name:t,value:e,rating:n,attribution:r})=>{if(0===nt(e)||!r.interactionTarget||void 0===r.interactionId)return;const i={id:et(),value:nt(e),el:r.interactionTarget,delay:nt(r.inputDelay),loadState:r.loadState,interactionType:r.interactionType,startTime:nt(r.interactionTime),processingDuration:nt(r.processingDuration),presentationDelay:nt(r.presentationDelay),inp:!1,meta:rt(k),interactionId:r.interactionId};y.interactions||(y.interactions=[]);const o=y.interactions.findIndex((t=>t.interactionId===r.interactionId));-1===o?y.interactions.push(i):(null==i?void 0:i.value)&&i.value>y.interactions[o].value&&(y.interactions[o]=i)})),function(t,e){Z((function(e){var n=function(t){var e={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(t.entries.length){var n=t.entries[0],r=n.activationStart||0,i=Math.max((n.workerStart||n.fetchStart)-r,0),o=Math.max(n.domainLookupStart-r,0),a=Math.max(n.connectStart-r,0),c=Math.max(n.connectEnd-r,0);e={waitingDuration:i,cacheDuration:o-i,dnsDuration:a-o,connectionDuration:c-a,requestDuration:t.value-c,navigationEntry:n}}return Object.assign(t,{attribution:e})}(e);t(n)}),e)}((({name:t,value:e,rating:n,attribution:r})=>{var i;y.ttfb={ttfb:nt(e),connection:nt(r.connectionDuration),cache:nt(r.cacheDuration),requestDuration:nt(r.requestDuration),dns:nt(r.dnsDuration),waiting:nt(r.waitingDuration),redirects:null===(i=r.navigationEntry)||void 0===i?void 0:i.redirectCount}}),{reportAllChanges:!0}),function(t,e){!function(t,e){e=e||{},E((function(){var n,r=S(),i=l("LCP"),o=function(t){e.reportAllChanges||(t=t.slice(-1)),t.forEach((function(t){t.startTime{y.lcp={lcp:nt(e),el:r.element,ttfb:nt(r.timeToFirstByte),renderdelay:nt(r.elementRenderDelay),loaddelay:nt(r.resourceLoadDelay),loadtime:nt(r.resourceLoadDuration),prio:pt(r).prio,url:r.url,type:pt(r).type}}),{reportAllChanges:!0}),D((({name:t,value:e,rating:n,attribution:r})=>{y.fcp=nt(e)}),{reportAllChanges:!0}),addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&function(){y.event.id=et();if(0===Object.keys(y).filter((t=>"event"!==t)).length)return;if(b){y.load=function(){const t=performance.getEntriesByType("navigation");if(t.length>0){const e=t[0];return{load:nt(e.loadEventStart),domload:nt(e.domContentLoadedEventStart)}}return null}();const t={lcp:y.lcp,inp:y.interactions};y.requests=ot(t)}const t=JSON.stringify(y);navigator.sendBeacon&&navigator.sendBeacon(T,t)||fetch(T,{method:"POST",headers:{"Content-Type":"application/json"},body:t,keepalive:!0}),b=!1;for(const t in y)"event"!==t&&delete y[t]}()}))})()}();