"use strict";(globalThis.webpackChunkextract_css=globalThis.webpackChunkextract_css||[]).push([["25368"],{534103:function(N,w){Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var h;(function(s){s.MAIN_CONTENT=1,s.CONTENT_COLLECTION=1,s.PAGE=2,s.SPLASH_PAGE=3,s.CONTENT_ITEM=50,s.NOT_FOUND=100,s.ERROR=101,s.SEARCH=102,s.LOCK_SCREEN=103,s.POPUP_OVERLAY=104,s.PROTECTED_CONTENT=105,s.MEMBER_AREA_ACCESS_DENIED=106,s.PAYWALL=107,s.SHOW_CART=200,s.CHECKOUT=201,s.ORDER_CONFIRMED=202,s.DONATE=203,s.CONTRIBUTION_CONFIRMED=204,s.COMMERCE_CART_V2=205,s.SUBSCRIPTION_CONFIRMED=206,s.ORDER_RECEIVED=207,s.MEMBERSHIP_CONFIRMED=208,s.REVIEWS_REQUEST=209,s.DIGITAL_PRODUCT_COMPOSER_PREVIEW=210,s.ORDER_STATUS=211,s.NEWSLETTER_UNSUBSCRIBE=300,s.COMMERCE_EMAIL_PREVIEW=301,s.SSO_PAGE=400})(h||(h={}));var y=w.default=h;N.exports=w.default},986166:function(N,w,h){var y=h(413019),s=h(534103),S=h.n(s),O=h(180909);const U={"commerce-cart":1,"v7-user-sites":1,"v7_1-user-sites":1},m=window.Static&&window.Static.SQUARESPACE_CONTEXT,R=window.top!==window,P=!!m&&Object.keys(m).length>0,I=Object.freeze({[S().COMMERCE_CART_V2]:"commerce-cart"});function B(){return{releaseVariant:"default",inFrame:R,templateId:m.templateId||"",impersonatedSession:!!m.impersonatedSession,pageType:typeof m.pageType=="number"?m.pageType:-1}}function F(){const{website:d={}}=m;return{authenticUrl:d.authenticUrl||"",cloneable:!!d.cloneable,developerMode:!!d.developerMode,isHstsEnabled:!!d.isHstsEnabled,language:d.language||"",timeZone:d.timeZone||"",websiteId:d.id||"",websiteType:d.websiteType||-1}}function J(){const{collection:d={}}=m;return{collectionType:d.type||-1}}function H(){const d=document.querySelectorAll('link[rel=preconnect][href*="gstatic.com"]').length>0,C=document.querySelectorAll('script[src*="typekit"][async]').length>0,D=document.querySelectorAll("style[data-customfonts]").length>0;return{google_fonts_enabled:d,typekit_fonts_enabled:C,custom_fonts_enabled:D}}function j(){var d;return{global_animations_enabled:(m==null||(d=m.tweakJSON)===null||d===void 0?void 0:d["tweak-global-animations-enabled"])==="true"}}function _(){return m.hasOwnProperty("templateVersion")?m.templateVersion.replace(".","_"):null}function f(d){const C=U[d]??0;return Math.random()<=C}function p(d){const D={appName:I[m.pageType]||`v${d}-user-sites`,context:{...B(),...F(),...J(),...j(),...H()},captureException:(K,X)=>{(0,O.$e)(q=>{q.setTag("product_area","rum-collector"),X!==void 0&&q.setExtra("extras",X),(0,O.Tb)(K)})}};return f(D.appName)&&(D.serviceURL="https://performance.squarespace.com/api/v1/records"),D}function b(){if(!P||m.env!=="PRODUCTION")return;const d=_();if(d===null)return;const C=p(d);(0,y.S1)(C)}b()},180909:function(N,w,h){h.d(w,{$e:()=>H,Cr:()=>m,Tb:()=>F,nZ:()=>j,n_:()=>I,uT:()=>B});var y;const s=()=>{},S=_=>function(f){for(var p=arguments.length,b=new Array(p>1?p-1:0),d=1;d{let{category:f,message:p}=_;console.log(`[Sentry][addBreadcrumb] (${f}) ${p}`)};let m=!1;function R(){return new Proxy({},{get:()=>s})}const P=function(){for(var _=arguments.length,f=new Array(_),p=0;p<_;p++)f[p]=arguments[p];const b=f.length===2?f[1]:f[0],d=R();return b(d)},{addBreadcrumb:I,captureMessage:B,captureException:F,captureEvent:J,withScope:H,getCurrentScope:j}=((y=window)===null||y===void 0?void 0:y.SQUARESPACE_SENTRY)??{addBreadcrumb:O?U:s,captureMessage:S("captureMessage"),captureException:S("captureException"),captureEvent:S("captureEvent"),getCurrentScope:R,withScope:P};window.SQUARESPACE_SENTRY&&(m=!0)},413019:function(N,w,h){h.d(w,{$s:()=>On,B1:()=>mn,L8:()=>fn,S1:()=>ut,le:()=>Rn,lv:()=>$});var y=Object.defineProperty,s=Object.getOwnPropertyNames,S=(e,t)=>function(){return e&&(t=(0,e[s(e)[0]])(e=0)),t},O=(e,t)=>{for(var n in t)y(e,n,{get:t[n],enumerable:!0})},U,m=S({"../../node_modules/.pnpm/nanoid@5.0.1/node_modules/nanoid/url-alphabet/index.js"(){"use strict";U="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"}}),R={};O(R,{customAlphabet:()=>B,customRandom:()=>I,nanoid:()=>F,random:()=>P,urlAlphabet:()=>U});var P,I,B,F,J=S({"../../node_modules/.pnpm/nanoid@5.0.1/node_modules/nanoid/index.browser.js"(){"use strict";m(),P=e=>crypto.getRandomValues(new Uint8Array(e)),I=(e,t,n)=>{let r=(2<{let o="";for(;;){let c=n(a),u=a;for(;u--;)if(o+=e[c[u]&r]||"",o.length===i)return o}}},B=(e,t=21)=>I(e,t,P),F=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"")}}),H={};O(H,{getCumulativeLayoutShift:()=>Vt,getDomainLookup:()=>pt,getFirstContentfulPaint:()=>Wt,getFirstInputDelay:()=>$t,getInteractionToNextPaint:()=>jt,getLargestContentfulPaint:()=>Kt,getNavigationTimingType:()=>gt,getServerTiming:()=>ht,getTcpConnection:()=>Et,getTlsNegotiation:()=>wt});var j="/api/1/performance/records",_="load",f="visibilitychange",p=["Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"," ","Enter"],b="SS_MID",d="SS_ANALYTICS_ID",C=3e4,D=/(iPhone|iPod|iPad) OS ((1[0-2])|[2-9])_\d+.*AppleWebKit(?!.*Safari)/i,K=200,X="4.14.0",q=e=>(...t)=>new Promise((n,r)=>{try{e(a=>{n(a)},...t)}catch(a){r(a)}}),he=e=>q(setTimeout)(e),Ee=()=>q(e=>{const t=n=>{(n.type==="pagehide"||document.visibilityState==="hidden")&&(e(n),removeEventListener("visibilitychange",t,!0),removeEventListener("pagehide",t,!0))};window.addEventListener("visibilitychange",t,!0),window.addEventListener("pagehide",t,!0)})(),lt=e=>{document.readyState==="complete"?window.setTimeout(e,0):window.addEventListener("pageshow",e,{once:!0})},vt=()=>q(lt),mt=()=>{const e={entryType:"navigation",startTime:0},t=performance.timing;for(const n in t)if(n!=="navigationStart"&&n!=="toJSON"){const r=Math.max(t[n]-t.navigationStart,0);e[n]=r}return e},oe=async()=>{await vt();const[e]=window.performance.getEntriesByType("navigation");return e??mt()},k=async e=>{const n=(await oe())[e];if(!(typeof n!="number"||n<0||n>2147483647))return Math.round(n)},ft=async()=>(await oe()).serverTiming,we=async e=>{const n=(await oe())[e];if(typeof n=="string")return n},ce=(e,t)=>{if(typeof e=="number"&&typeof t=="number"&&e>=t)return e-t},pt=e=>Promise.all([k("domainLookupEnd"),k("domainLookupStart")]).then(([t,n])=>{e({domainLookup:ce(t,n)})}),gt=e=>we("type").then(t=>{e({navigationTimingType:t})}),ht=e=>ft().then(t=>{e({serverTiming:JSON.stringify(t)})}),Et=e=>Promise.all([k("connectEnd"),k("connectStart")]).then(([t,n])=>{e({tcpConnection:ce(t,n)})}),wt=e=>Promise.all([k("connectEnd"),k("secureConnectionStart")]).then(([t,n])=>{e({tlsNegotiation:ce(t,n)})}),L,Y,ye,Z,se,_e=-1,G=function(e){addEventListener("pageshow",function(t){t.persisted&&(_e=t.timeStamp,e(t))},!0)},Te=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Se=function(){var e=Te();return e&&e.activationStart||0},A=function(e,t){var n=Te(),r="navigate";return _e>=0?r="back-forward-cache":n&&(document.prerendering||Se()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},Q=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(a){Promise.resolve().then(function(){t(a.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},M=function(e,t,n,r){var a,i;return function(o){t.value>=0&&(o||r)&&((i=t.value-(a||0))||a===void 0)&&(a=t.value,t.delta=i,t.rating=function(c,u){return c>u[1]?"poor":c>u[0]?"needs-improvement":"good"}(t.value,n),e(t))}},be=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},ue=function(e){var t=function(n){n.type!=="pagehide"&&document.visibilityState!=="hidden"||e(n)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},Ce=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},V=-1,Le=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},ee=function(e){document.visibilityState==="hidden"&&V>-1&&(V=e.type==="visibilitychange"?e.timeStamp:0,yt())},Ae=function(){addEventListener("visibilitychange",ee,!0),addEventListener("prerenderingchange",ee,!0)},yt=function(){removeEventListener("visibilitychange",ee,!0),removeEventListener("prerenderingchange",ee,!0)},Me=function(){return V<0&&(V=Le(),Ae(),G(function(){setTimeout(function(){V=Le(),Ae()},0)})),{get firstHiddenTime(){return V}}},de=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},Ne=[1800,3e3],Oe=function(e,t){t=t||{},de(function(){var n,r=Me(),a=A("FCP"),i=Q("paint",function(o){o.forEach(function(c){c.name==="first-contentful-paint"&&(i.disconnect(),c.startTimer.value&&(r.value=a,r.entries=i,n())},c=Q("layout-shift",o);c&&(n=M(e,r,Re,t.reportAllChanges),ue(function(){o(c.takeRecords()),n(!0)}),G(function(){a=0,r=A("CLS",0),n=M(e,r,Re,t.reportAllChanges),be(function(){return n()})}),setTimeout(n,0))}))},z={passive:!0,capture:!0},Tt=new Date,Pe=function(e,t){L||(L=t,Y=e,ye=new Date,De(removeEventListener),Ie())},Ie=function(){if(Y>=0&&Y1e12?new Date:performance.now())-e.timeStamp;e.type=="pointerdown"?function(n,r){var a=function(){Pe(n,r),o()},i=function(){o()},o=function(){removeEventListener("pointerup",a,z),removeEventListener("pointercancel",i,z)};addEventListener("pointerup",a,z),addEventListener("pointercancel",i,z)}(t,e):Pe(t,e)}},De=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,St,z)})},ke=[100,300],bt=function(e,t){t=t||{},de(function(){var n,r=Me(),a=A("FID"),i=function(u){u.startTimet.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};ve[r.id]=r,T.push(r)}T.sort(function(a,i){return i.latency-a.latency}),T.splice(10).forEach(function(a){delete ve[a.id]})}},At=function(e,t){t=t||{},de(function(){var n;Lt();var r,a=A("INP"),i=function(c){c.forEach(function(v){v.interactionId&&qe(v),v.entryType==="first-input"&&!T.some(function(g){return g.entries.some(function(E){return v.duration===E.duration&&v.startTime===E.startTime})})&&qe(v)});var u,l=(u=Math.min(T.length-1,Math.floor(He()/50)),T[u]);l&&l.latency!==a.value&&(a.value=l.latency,a.entries=l.entries,r())},o=Q("event",i,{durationThreshold:(n=t.durationThreshold)!==null&&n!==void 0?n:40});r=M(e,a,Be,t.reportAllChanges),o&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),ue(function(){i(o.takeRecords()),a.value<0&&He()>0&&(a.value=0,a.entries=[]),r(!0)}),G(function(){T=[],Fe=Ue(),a=A("INP"),r=M(e,a,Be,t.reportAllChanges)}))})},me=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Mt=function(e){var t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},Nt=function(e,t){var n="";try{for(;e&&e.nodeType!==9;){var r=e,a=r.id?"#"+r.id:Mt(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+a.length>(t||100)-1)return n||a;if(n=n?a+">"+n:a,r.id)break;e=r.parentNode}}catch{}return n},Ve=-1,Ot=function(){return Ve},We=function(e){addEventListener("pageshow",function(t){t.persisted&&(Ve=t.timeStamp,e(t))},!0)},$e=function(){var e=me();return e&&e.activationStart||0},je=function(e,t){var n=me(),r="navigate";return Ot()>=0?r="back-forward-cache":n&&(document.prerendering||$e()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},Rt=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(a){Promise.resolve().then(function(){t(a.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Ke=function(e,t,n,r){var a,i;return function(o){t.value>=0&&(o||r)&&((i=t.value-(a||0))||a===void 0)&&(a=t.value,t.delta=i,t.rating=function(c,u){return c>u[1]?"poor":c>u[0]?"needs-improvement":"good"}(t.value,n),e(t))}},Pt=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},It=function(e){var t=function(n){n.type!=="pagehide"&&document.visibilityState!=="hidden"||e(n)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},Dt=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},W=-1,Ye=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},ne=function(e){document.visibilityState==="hidden"&&W>-1&&(W=e.type==="visibilitychange"?e.timeStamp:0,kt())},Ge=function(){addEventListener("visibilitychange",ne,!0),addEventListener("prerenderingchange",ne,!0)},kt=function(){removeEventListener("visibilitychange",ne,!0),removeEventListener("prerenderingchange",ne,!0)},xt=function(){return W<0&&(W=Ye(),Ge(),We(function(){setTimeout(function(){W=Ye(),Ge()},0)})),{get firstHiddenTime(){return W}}},Ut=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},Pn=null,Qe=[2500,4e3],fe={},Bt=function(e,t){(function(n,r){r=r||{},Ut(function(){var a,i=xt(),o=je("LCP"),c=function(v){var g=v[v.length-1];g&&g.startTime{const t=e.getAttribute("elementtiming");if(t!==null)return t;const n=e.tagName;if(n==="IMG"){const r=e.getAttribute("data-loader");if(r!==null)return`unknown-image-component-${r}`;if(e.getAttribute("data-src")!==null)return"unknown-imageloader"}return`unknown-${n}`},ze=e=>{var i;let t="";t+=e.tagName;let n=e,r=-1;do n=n.previousElementSibling,r+=1;while(n!==null);t+="["+r+"]";const a=(i=e.classList.value)==null?void 0:i.trim().replace(/\s+/g,".");return a&&(t+="."+a),t},Je=e=>e.substring(0,K-3)+"...",Ht=e=>{let t=ze(e);if(t.length>K)return Je(t);let n=e.parentElement;for(;n!==null&&n.tagName!=="BODY";){const r="<"+ze(n);if(t+=r,t.length>K)return Je(t);n=n.parentElement}return t},qt=e=>{var n;const t=(n=e.attribution.lcpEntry)==null?void 0:n.element;return{largestContentfulPaint:Math.round(e.value),lcpElementName:t?Ft(t):void 0,lcpElementPath:t?Ht(t):void 0,lcpElementRenderDelay:Math.round(e.attribution.elementRenderDelay),lcpResourceLoadDelay:Math.round(e.attribution.resourceLoadDelay),lcpResourceLoadTime:Math.round(e.attribution.resourceLoadTime),lcpTtfb:Math.round(e.attribution.timeToFirstByte)}},Vt=e=>{_t(t=>{e({cumulativeLayoutShift:t.value})},{reportAllChanges:!0})},Wt=e=>{Oe(t=>{e({firstContentfulPaint:Math.round(t.value)})})},$t=e=>{bt(t=>{e({firstInputDelay:Math.round(t.value)})})},jt=e=>{At(t=>{e({interactionToNextPaint:Math.round(t.value)})})},Kt=e=>{Bt(t=>{e(qt(t))})},Yt=["connectEnd","connectStart","decodedBodySize","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","encodedBodySize","fetchStart","loadEventEnd","loadEventStart","redirectCount","redirectEnd","redirectStart","responseStart","responseEnd","responseStatus","secureConnectionStart","transferSize","unloadEventEnd","unloadEventStart","workerStart"],Gt=["initiatorType","nextHopProtocol"],Xe=(e,t)=>async n=>{var r,a;try{t({[n]:await e(n)})}catch(i){(a=(r=window==null?void 0:window.SQUARESPACE_SENTRY)==null?void 0:r.captureException)==null||a.call(r,i)}};function Ze(e){Object.values(H).forEach(async t=>{var n,r;try{await t(e)}catch(a){(r=(n=window==null?void 0:window.SQUARESPACE_SENTRY)==null?void 0:n.captureException)==null||r.call(n,a)}}),Yt.forEach(Xe(k,e)),Gt.forEach(Xe(we,e))}var Qt=["more","less","custom"],zt=()=>Qt.find(e=>window.matchMedia(`prefers-contrast: ${e}`).matches)??"no-preference",Jt=()=>{var e;return{forceColors:window.matchMedia("(forced-colors: active)").matches,networkInformationType:(e=navigator.connection)==null?void 0:e.type,prefersContrast:zt(),prefersReducedMotion:window.matchMedia("(prefers-reduced-motion: reduce)").matches,primaryInputHasHover:window.matchMedia("(hover: hover)").matches,keyboardUsage:!1}},Xt=e=>{const t=Jt(),n=()=>{e(t,"a11y")},r=i=>{var o;["INPUT","TEXTAREA"].includes((o=i.target)==null?void 0:o.tagName)||!p.includes(i.key)||(t.keyboardUsage=!0,document.removeEventListener("keydown",r))};document.addEventListener("keydown",r);const a=()=>{document.visibilityState==="hidden"&&(n(),document.removeEventListener("keydown",r),document.removeEventListener(f,a))};document.addEventListener(f,a)};function et(e){const t=new RegExp(`(^| )${e}=([^;]+)`),n=document.cookie.match(t);return n?n[2]:""}function Zt(){return!!(window.PerformanceMeasure&&window.PerformanceMark)}function tt(){if(!Object.prototype.hasOwnProperty.call(window,"PerformanceObserver"))return!1;try{const e=new window.PerformanceObserver(()=>null);e.observe({entryTypes:["mark"]}),e.disconnect()}catch{return!1}return!0}function nt(){var e;return typeof((e=window.navigator)==null?void 0:e.sendBeacon)=="function"&&!D.test(window.navigator.userAgent)}var re=e=>{const t=Number(e);return Number.isNaN(t)?void 0:t};function en(e={}){var t,n,r,a,i,o,c;return{context:e,analyticsId:et(d),marketingId:et(b),memberId:(r=(n=(t=window.Static)==null?void 0:t.SQUARESPACE_CONTEXT)==null?void 0:n.authenticatedAccount)==null?void 0:r.id,version:X,downlink:re((a=navigator.connection)==null?void 0:a.downlink),effectiveType:(i=navigator.connection)==null?void 0:i.effectiveType,rtt:re((o=navigator.connection)==null?void 0:o.rtt),saveData:Number(((c=navigator.connection)==null?void 0:c.saveData)||0),deliveryType:nt()?"beacon":"xhr",devicePixelRatio:window.devicePixelRatio,screenHeight:window.screen.height,screenWidth:window.screen.width,viewportHeight:window.innerHeight,viewportWidth:window.innerWidth,deviceMemory:re(navigator.deviceMemory),hardwareConcurrency:re(navigator.hardwareConcurrency),hash:window.location.hash||"",hostname:window.location.hostname||"",pathname:window.location.pathname||"/"}}var tn=async e=>{const t=en(e),n={};return Ze(r=>{Object.assign(n,r)}),await Promise.race([he(6e4),Ee()]),{...t,...n}},nn=async(e,t)=>{const n=await tn(t);e(n,"page_speed")},rn=["media-www.sqspcdn.com","images.squarespace-cdn.com","static1.squarespace.com"],an=e=>rn.some(t=>e.includes(t)),on=e=>e.hasAttribute("data-loader")?2:e.hasAttribute("data-src")?1:0,cn=(e,t)=>{var r;if(e.hasAttribute("data-image-resolution"))return Number((r=e.getAttribute("data-image-resolution"))==null?void 0:r.replace("w",""));const n=t.indexOf("format=");return n!==-1?Number(t.slice(n+7).replace(/w.*/,"")):NaN},sn=(e,t,n)=>{if(n===1&&e instanceof HTMLImageElement&&e.naturalHeight===0){const r=document.querySelector(`div[style*="${t}"]`);if(r)return r}return e},un=e=>{if(e instanceof HTMLImageElement){const{naturalHeight:a,naturalWidth:i,width:o,height:c}=e;return{naturalHeight:a,naturalWidth:i,width:o,height:c}}const t=e.getBoundingClientRect(),n=Math.floor(t.width);return{naturalHeight:Math.floor(t.height),naturalWidth:n}},dn=async(e,t)=>{const n=cn(t,e.name),r=on(t),a=t.getAttribute("data-loader"),i=t.getAttribute("elementtiming"),{serverTiming:o,workerTiming:c,...u}=e.toJSON();for(const[g,E]of Object.entries(u))typeof E=="number"&&(u[g]=Math.floor(E));const l=sn(t,e.name,r),v=un(l);return new Promise(g=>{const E=new IntersectionObserver(ge=>{ge.forEach(ie=>{if(ie.target===l)return E.disconnect(),g({visibleOnLoad:ie.isIntersecting,observationTime:Math.floor(ie.time),intersectionRatio:ie.intersectionRatio,squarespaceSize:n,imageType:r,imageLoaderType:a,elementTiming:i,serverTiming:o||[],...v,...u})})});E.observe(l)})},ln=async({resource:e,deliverMetrics:t})=>{if(!(e instanceof PerformanceResourceTiming&&e.initiatorType==="img")||!an(e.name))return;const n=e.name.replace(/\?.*/,""),r=Array.from(document.querySelectorAll(`img[src="${e.name}"], img[data-src*="${n}"], img[srcset*="${e.name}"]`));if(document.querySelectorAll(`picture > source[srcset*="${e.name}"]`).forEach(i=>{const o=i.parentElement;o!==null&&r.push(o.lastElementChild)}),r.length!==1)return;const a=await dn(e,r[0]);t(a,"image")},vn=async e=>{if(!tt())return;const t=r=>ln({resource:r,deliverMetrics:e});performance.getEntriesByType("resource").forEach(t),new PerformanceObserver(r=>{r.getEntries().forEach(t)}).observe({entryTypes:["resource"]})},x,pe=({spanName:e,tracer:t,startTime:n,spanAttributes:r={}})=>{x===void 0&&(x=new Map);const a=t.startSpan(e,{startTime:n});a.setAttributes(r),x.set(e,a)},rt=({spanName:e,spanAttributes:t={},updateName:n})=>{if(x===void 0||!x.has(e))return;const r=x.get(e);r.setAttributes(t),n!==void 0&&r.updateName(n),r.end(),x.delete(e)},$="rum-",at=e=>{var t;typeof((t=window==null?void 0:window.SQUARESPACE_SENTRY)==null?void 0:t.captureException)=="function"?window.SQUARESPACE_SENTRY.captureException(e):console.warn(`@sqs/rum-collector: user timing exception: ${e}`)};function mn(e,t={}){try{if(!it())return;const n=$+e;window.performance.clearMarks(n);const r=window.performance.mark(n,{detail:t.detail,startTime:t.startTime});if(t.tracer!==void 0){const[a]=window.performance.getEntriesByName(n,"mark").slice(-1);pe({spanName:n,tracer:t.tracer,startTime:a.startTime,spanAttributes:t.spanAttributes})}return r}catch(n){at(n)}}function fn(e,t={requireStart:!1}){try{if(!(it()&&pn()))return;const n=$+e,r={detail:t.detail,duration:t.duration};if(t.start===void 0?window.performance.getEntriesByName(n,"mark").length>0&&(r.start=n):typeof t.start=="string"?r.start=$+t.start:r.start=t.start,r.end=typeof t.end=="string"?$+t.end:t.end,t.requireStart&&typeof r.start!="string")return;if(t.tracer!==void 0){const i={measureName:n,...t.spanAttributes};typeof r.start=="number"?(pe({spanName:n,tracer:t.tracer,startTime:r.start}),rt({spanName:n,spanAttributes:i})):(window.performance.getEntriesByName(r.start??n,"mark").length===0&&pe({spanName:r.start??n,tracer:t.tracer,startTime:0}),rt({spanName:r.start??n,spanAttributes:i,updateName:r.start!==n?n:void 0}))}return hn(n,r),gn(n)}catch(n){at(n)}}function pn(){return"performance"in window&&"getEntries"in window.performance&&"getEntriesByType"in window.performance&&"getEntriesByName"in window.performance}function it(){return"mark"in window.performance&&"measure"in window.performance}function gn(e){const t=window.performance.getEntriesByName(e,"measure");return t[t.length-1]}function hn(e,t){try{window.performance.measure(e,t)}catch{const r=typeof t.start=="string"?t.start:e,a=typeof t.end=="string"?t.end:void 0;try{window.performance.measure(e,r,a)}catch(i){if(!(i instanceof DOMException))throw i;try{window.performance.measure(e,"navigationStart")}catch(o){if(!(o instanceof DOMException))throw o;window.performance.measure(e)}}}}function En(e){return typeof e=="string"&&e.substring(0,4)===$}var ot=new Set,wn=e=>{if(!Zt())return;const t=n=>{n.map(a=>a.entryType==="measure"?{duration:Math.floor(a.duration),detail:a.detail||null,startTime:Math.floor(a.startTime),name:a.name}:{}).forEach(a=>{if(a.name&&!En(a.name))return;const i=`${a.name}|${a.duration}`;ot.has(i)||(e(a,"user"),ot.add(i))})};t(window.performance.getEntriesByType("measure")),tt()?new window.PerformanceObserver(r=>t(r.getEntries())).observe({entryTypes:["measure"]}):document.addEventListener(f,()=>{document.visibilityState==="hidden"&&t(window.performance.getEntriesByType("measure"))})},ct,ae=[],yn=e=>{ae.push(e)};function _n(e,t){try{return navigator.sendBeacon(e,t)}catch(n){if(n instanceof TypeError&&n.message==="Illegal invocation")return!1;throw n}}function Tn(e,t){if(nt()&&_n(e,t))return;const n=new XMLHttpRequest;n.open("POST",e,!0),n.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),n.send(t)}function st(e){if(ae.length){const t=JSON.stringify(ae);Tn(e,t),ae=[]}}function Sn(e){window.addEventListener(_,()=>{ct=window.setTimeout(()=>st(e),C)}),document.addEventListener(f,()=>{document.visibilityState==="hidden"&&(window.clearTimeout(ct),st(e))})}function bn(e){yn({raw:!0,...e})}var Cn=(e,t)=>(n,r)=>{const a={app:e,data:n,event:r,pageLoadId:t,ts:Date.now()};bn(a)},Ln=e=>(...t)=>{e&&e(...t)},An=e=>({appName:e.appName||"",context:e.context||{},enabled:typeof e.enabled=="boolean"?e.enabled:!0,serviceURL:e.serviceURL||j,captureException:Ln(e.captureException)});async function ut(e){const t=An(e);if(!t.enabled)return;const n=(await Promise.resolve().then(()=>(J(),R))).nanoid();try{const r=Cn(t.appName,n);nn(r,t.context),wn(r),vn(r),Xt(r),Sn(t.serviceURL)}catch(r){t.captureException(r,{pageLoadId:n,parsedOptions:t})}}var Mn={action:"load",actor:"user",event_owner_team:"web_performance",event_source:"web",object_type:"website"},Nn=()=>{const e=/^qa\d+.sqsp.net/g,t=/^stage.sqsp.net/g,n=/(dev.squarespace.net|localhost|127.0.0.1|0.0.0.0)/g,r=window.location.hostname.substr(window.location.hostname.indexOf(".")+1);return t.test(r)||e.test(r)?"staging":n.test(r)?"dev":"prod"},On=(e,t=Nn())=>new e({customSchemaName:"Performance",sourceEnvironment:t},Mn),dt=Object.freeze({cumulativeLayoutShift:"cumulative_layout_shift",decodedBodySize:"decoded_body_size_bytes",domContentLoadedEventEnd:"dom_content_loaded_event_end_ms",domContentLoadedEventStart:"dom_content_loaded_event_start_ms",domainLookup:"domain_lookup_ms",encodedBodySize:"encoded_body_size_bytes",firstContentfulPaint:"first_contentful_paint_ms",firstInputDelay:"first_input_delay_ms",interactionToNextPaint:"interaction_to_next_paint_ms",largestContentfulPaint:"largest_contentful_paint_ms",loadEventEnd:"load_event_end_ms",loadEventStart:"load_event_start_ms",responseStart:"response_start_ms",tcpConnection:"tcp_connection_ms",tlsNegotiation:"tls_negotiation_ms"}),Rn=async e=>{const t={};Ze(n=>{Object.entries(n).forEach(([r,a])=>{Object.prototype.hasOwnProperty.call(dt,r)&&(t[dt[r]]=a)})}),await Promise.race([he(6e4),Ee()]),e(t)};function In(...e){return console.warn("@sqs/rum-collector default export is deprecated. Use named export `init` instead."),ut(...e)}}},function(N){var w=function(y){return N(N.s=y)},h=w(986166)}]); //# sourceMappingURL=https://sourcemaps.squarespace.net/universal/scripts-compressed/sourcemaps/f9426faa05bae51c/performance-9e9becad3f889213-min.en-US.js.map