!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="18eb6002-61ef-4a6c-a7a7-e6ee1edbd697",e._sentryDebugIdIdentifier="sentry-dbid-18eb6002-61ef-4a6c-a7a7-e6ee1edbd697")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[582],{57303:(e,t,r)=>{"use strict";r.d(t,{Gr:()=>eB,Ny:()=>eC});var i,s,n=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,a={revert:function(){}},c=new Map,o=new Set;function u(e){var t=c.get(e);return t||(t={element:e,attributes:{}},c.set(e,t)),t}function l(e,t,r,i,s){var n=r(e),a={isDirty:!1,originalValue:n,virtualValue:n,mutations:[],el:e,_positionTimeout:null,observer:new MutationObserver(function(){if("position"!==t||!a._positionTimeout){"position"===t&&(a._positionTimeout=setTimeout(function(){a._positionTimeout=null},1e3));var i=r(e);("position"!==t||i.parentNode!==a.virtualValue.parentNode||i.insertBeforeNode!==a.virtualValue.insertBeforeNode)&&i!==a.virtualValue&&(a.originalValue=i,s(a))}}),mutationRunner:s,setValue:i,getCurrentValue:r};return"position"===t&&e.parentNode?a.observer.observe(e.parentNode,{childList:!0,subtree:!0,attributes:!1,characterData:!1}):a.observer.observe(e,"html"===t?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[t]}),a}function d(e,t){var r=t.getCurrentValue(t.el);t.virtualValue=e,e&&"string"!=typeof e?r&&e.parentNode===r.parentNode&&e.insertBeforeNode===r.insertBeforeNode||(t.isDirty=!0,F()):e!==r&&(t.isDirty=!0,F())}function h(e){var t,r=e.originalValue;e.mutations.forEach(function(e){return r=e.mutate(r)}),d((t=r,i||(i=document.createElement("div")),i.innerHTML=t,i.innerHTML),e)}function f(e){var t=new Set(e.originalValue.split(/\s+/).filter(Boolean));e.mutations.forEach(function(e){return e.mutate(t)}),d(Array.from(t).filter(Boolean).join(" "),e)}function p(e){var t=e.originalValue;e.mutations.forEach(function(e){return t=e.mutate(t)}),d(t,e)}function m(e){var t=e.originalValue;e.mutations.forEach(function(e){t=function(e){var t=e.parentSelector,r=e.insertBeforeSelector,i=document.querySelector(t);if(!i)return null;var s=r?document.querySelector(r):null;return r&&!s?null:{parentNode:i,insertBeforeNode:s}}(e.mutate())||t}),d(t,e)}var g=function(e){return e.innerHTML},y=function(e,t){return e.innerHTML=t};function _(e){var t=u(e);return t.html||(t.html=l(e,"html",g,y,h)),t.html}var v=function(e){return{parentNode:e.parentElement,insertBeforeNode:e.nextElementSibling}},b=function(e,t){(!t.insertBeforeNode||t.parentNode.contains(t.insertBeforeNode))&&t.parentNode.insertBefore(e,t.insertBeforeNode)};function k(e){var t=u(e);return t.position||(t.position=l(e,"position",v,b,m)),t.position}var x=function(e,t){return t?e.className=t:e.removeAttribute("class")},w=function(e){return e.className};function A(e){var t=u(e);return t.classes||(t.classes=l(e,"class",w,x,f)),t.classes}function E(e,t){var r=u(e);return r.attributes[t]||(r.attributes[t]=l(e,t,function(e){var r;return null!=(r=e.getAttribute(t))?r:null},function(e,r){return null!==r?e.setAttribute(t,r):e.removeAttribute(t)},p)),r.attributes[t]}function S(e,t,r){if(r.isDirty){r.isDirty=!1;var i,s,n,a,o,u,l,d,h,f,p=r.virtualValue;!r.mutations.length&&(f=c.get(e))&&("html"===t?(null==(i=f.html)||null==(s=i.observer)||s.disconnect(),delete f.html):"class"===t?(null==(n=f.classes)||null==(a=n.observer)||a.disconnect(),delete f.classes):"position"===t?(null==(o=f.position)||null==(u=o.observer)||u.disconnect(),delete f.position):(null==(l=f.attributes)||null==(d=l[t])||null==(h=d.observer)||h.disconnect(),delete f.attributes[t])),r.setValue(e,p)}}function B(e,t){e.html&&S(t,"html",e.html),e.classes&&S(t,"class",e.classes),e.position&&S(t,"position",e.position),Object.keys(e.attributes).forEach(function(r){S(t,r,e.attributes[r])})}function F(){c.forEach(B)}function R(e){if("position"!==e.kind||1!==e.elements.size){var t=new Set(e.elements);document.querySelectorAll(e.selector).forEach(function(r){if(!t.has(r)){var i;e.elements.add(r),i=null,"html"===e.kind?i=_(r):"class"===e.kind?i=A(r):"attribute"===e.kind?i=E(r,e.attribute):"position"===e.kind&&(i=k(r)),i&&(i.mutations.push(e),i.mutationRunner(i))}})}}function C(){o.forEach(R)}function T(e){return"undefined"==typeof document?a:(o.add(e),R(e),{revert:function(){e.elements.forEach(function(t){return function(e,t){var r=null;if("html"===e.kind?r=_(t):"class"===e.kind?r=A(t):"attribute"===e.kind?r=E(t,e.attribute):"position"===e.kind&&(r=k(t)),r){var i=r.mutations.indexOf(e);-1!==i&&r.mutations.splice(i,1),r.mutationRunner(r)}}(e,t)}),e.elements.clear(),o.delete(e)}})}function V(e,t){return T({kind:"html",elements:new Set,mutate:t,selector:e})}function N(e,t){return T({kind:"class",elements:new Set,mutate:t,selector:e})}function I(e,t,r){return n.test(t)?"class"===t||"className"===t?N(e,function(e){var t=r(Array.from(e).join(" "));e.clear(),t&&t.split(/\s+/g).filter(Boolean).forEach(function(t){return e.add(t)})}):T({kind:"attribute",attribute:t,elements:new Set,mutate:r,selector:e}):a}"undefined"!=typeof document&&(s||(s=new MutationObserver(function(){C()})),C(),s.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}));let P={declarative:function(e){var t,r=e.selector,i=e.action,s=e.value,n=e.attribute,c=e.parentSelector,o=e.insertBeforeSelector;if("html"===n){if("append"===i)return V(r,function(e){return e+(null!=s?s:"")});if("set"===i)return V(r,function(){return null!=s?s:""})}else if("class"===n){if("append"===i)return N(r,function(e){s&&e.add(s)});if("remove"===i)return N(r,function(e){s&&e.delete(s)});if("set"===i)return N(r,function(e){e.clear(),s&&e.add(s)})}else if("position"===n){if("set"===i&&c)return t=function(){return{insertBeforeSelector:o,parentSelector:c}},T({kind:"position",elements:new Set,mutate:t,selector:r})}else{if("append"===i)return I(r,n,function(e){return null!==e?e+(null!=s?s:""):null!=s?s:""});if("set"===i)return I(r,n,function(){return null!=s?s:""});if("remove"===i)return I(r,n,function(){return null})}return a}},O={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource};function D(e){let t=0x811c9dc5,r=e.length;for(let i=0;i>>0}function $(e,t,r){return 2===r?D(D(e+t)+"")%1e4/1e4:1===r?D(t+e)%1e3/1e3:null}function K(e,t){return e>=t[0]&&e{i.push([e.searchParams.get(r)||"",t,!1])}),!i.some(e=>!function(e,t,r){try{let i=t.replace(/[*.+?^${}()|[\]\\]/g,"\\$&").replace(/_____/g,".*");return r&&(i="\\/?"+i.replace(/(^\/|\/$)/g,"")+"\\/?"),RegExp("^"+i+"$","i").test(e)}catch(e){return!1}}(e[0],e[1],e[2]))}catch(e){return!1}}(i,r);return!1}catch(e){return!1}}(e,t[s].type,t[s].pattern);if(!1===t[s].include){if(n)return!1}else r=!0,n&&(i=!0)}return i||!r}let j=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0));async function U(e,t,r){if(t=t||"",!(r=r||globalThis.crypto&&globalThis.crypto.subtle||O.SubtleCrypto))throw Error("No SubtleCrypto implementation found");try{let i=await r.importKey("raw",j(t),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[s,n]=e.split("."),a=await r.decrypt({name:"AES-CBC",iv:j(s)},i,j(n));return new TextDecoder().decode(a)}catch(e){throw Error("Failed to decrypt")}}function H(e){return"string"==typeof e?e:JSON.stringify(e)}function q(e){"number"==typeof e&&(e+=""),e&&"string"==typeof e||(e="0");let t=e.replace(/(^v|\+.*$)/g,"").split(/[-.]/);return 3===t.length&&t.push("~"),t.map(e=>e.match(/^[0-9]+$/)?e.padStart(5," "):e).join("-")}function J(e){return"object"==typeof e&&null!==e}function z(e){return e.urlPatterns&&e.variations.some(e=>J(e)&&"urlRedirect"in e)?"redirect":e.variations.some(e=>J(e)&&(e.domMutations||"js"in e||"css"in e))?"visual":"unknown"}async function G(e,t){return new Promise(r=>{let i,s=!1,n=e=>{s||(s=!0,i&&clearTimeout(i),r(e||null))};t&&(i=setTimeout(()=>n(),t)),e.then(e=>n(e)).catch(()=>n())})}let Z={};function Q(e,t,r){for(let[i,s]of(r=r||{},Object.entries(t)))switch(i){case"$or":if(!Y(e,s,r))return!1;break;case"$nor":if(Y(e,s,r))return!1;break;case"$and":if(!function(e,t,r){for(let i=0;iq(i);case"$vgte":return q(r)>=q(i);case"$vlt":return q(r)i;case"$gte":return r>=i;case"$exists":return i?null!=r:null==r;case"$in":if(!Array.isArray(i))return!1;return X(r,i);case"$inGroup":return X(r,s[i]||[]);case"$notInGroup":return!X(r,s[i]||[]);case"$nin":if(!Array.isArray(i))return!1;return!X(r,i);case"$not":return!e(i,r,s);case"$size":if(!Array.isArray(r))return!1;return e(i,r.length,s);case"$elemMatch":return function(t,r,i){if(!Array.isArray(t))return!1;let s=W(r)?t=>e(r,t,i):e=>Q(e,r,i);for(let e=0;e0&&t.filter(e=>"$"===e[0]).length===t.length}function X(e,t){return Array.isArray(e)?e.some(e=>t.includes(e)):t.includes(e)}function Y(e,t,r){if(!t.length)return!0;for(let i=0;i{let{host:t,clientKey:r,headers:i}=e;return O.fetch("".concat(t,"/api/features/").concat(r),{headers:i})},fetchRemoteEvalCall:e=>{let{host:t,clientKey:r,payload:i,headers:s}=e,n={method:"POST",headers:{"Content-Type":"application/json",...s},body:JSON.stringify(i)};return O.fetch("".concat(t,"/api/eval/").concat(r),n)},eventSourceCall:e=>{let{host:t,clientKey:r,headers:i}=e;return i?new O.EventSource("".concat(t,"/sub/").concat(r),{headers:i}):new O.EventSource("".concat(t,"/sub/").concat(r))},startIdleListener:()=>{let e;if(!("undefined"!=typeof window&&"undefined"!=typeof document))return;let t=()=>{"visible"===document.visibilityState?(window.clearTimeout(e),ea.forEach(e=>{e&&"idle"===e.state&&ew(e)})):"hidden"===document.visibilityState&&(e=window.setTimeout(el,ee.idleStreamInterval))};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},stopIdleListener:()=>{}};try{globalThis.localStorage&&(O.localStorage=globalThis.localStorage)}catch(e){}let er=new Map,ei=!1,es=new Map,en=new Map,ea=new Map,ec=new Set;async function eo(e){let{instance:t,timeout:r,skipCache:i,allowStale:s,backgroundSync:n}=e;return n||(ee.backgroundSync=!1),eh({instance:t,allowStale:s,timeout:r,skipCache:i})}function eu(e){let t=ef(e),r=er.get(t)||new Set;r.add(e),er.set(t,r)}function el(){ea.forEach(e=>{e&&(e.state="idle",ex(e))})}async function ed(){try{if(!O.localStorage)return;await O.localStorage.setItem(ee.cacheKey,JSON.stringify(Array.from(es.entries())))}catch(e){}}async function eh(e){let{instance:t,allowStale:r,timeout:i,skipCache:s}=e,n=ef(t),a=ep(t),c=new Date,o=new Date(c.getTime()-ee.maxAge+ee.staleTTL);await em();let u=ee.disableCache||s?void 0:es.get(a);return u&&(r||u.staleAt>c)&&u.staleAt>o?(u.sse&&ec.add(n),u.staleAt{s[e]=r[e]});let n=e.getForcedVariations(),a=e.getUrl();return"".concat(t,"||").concat(JSON.stringify({ca:s,fv:n,url:a}))}async function em(){if(!ei){ei=!0;try{if(O.localStorage){let e=await O.localStorage.getItem(ee.cacheKey);if(!ee.disableCache&&e){let t=JSON.parse(e);t&&Array.isArray(t)&&t.forEach(e=>{let[t,r]=e;es.set(t,{...r,staleAt:new Date(r.staleAt)})}),eg()}}}catch(e){}if(!ee.disableIdleStreams){let e=et.startIdleListener();e&&(et.stopIdleListener=e)}}}function eg(){let e=Array.from(es.entries()).map(e=>{let[t,r]=e;return{key:t,staleAt:r.staleAt.getTime()}}).sort((e,t)=>e.staleAt-t.staleAt),t=Math.min(Math.max(0,es.size-ee.maxEntries),es.size);for(let r=0;re_(e,r))}async function e_(e,t){await e.setPayload(t||e.getPayload())}async function ev(e){let{apiHost:t,apiRequestHeaders:r}=e.getApiHosts(),i=e.getClientKey(),s=e.isRemoteEval(),n=ef(e),a=ep(e),c=en.get(a);return c||(c=(s?et.fetchRemoteEvalCall({host:t,clientKey:i,payload:{attributes:e.getAttributes(),forcedVariations:e.getForcedVariations(),forcedFeatures:Array.from(e.getForcedFeatures().entries()),url:e.getUrl()},headers:r}):et.fetchFeaturesCall({host:t,clientKey:i,headers:r})).then(e=>{if(!e.ok)throw Error("HTTP error: ".concat(e.status));return"enabled"===e.headers.get("x-sse-support")&&ec.add(n),e.json()}).then(t=>(ey(n,a,t),eb(e),en.delete(a),{data:t,success:!0,source:"network"})).catch(e=>(en.delete(a),{data:null,source:"error",success:!1,error:e})),en.set(a,c)),c}function eb(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=ef(e),i=ep(e),{streamingHost:s,streamingHostRequestHeaders:n}=e.getApiHosts(),a=e.getClientKey();if(t&&ec.add(r),ee.backgroundSync&&ec.has(r)&&O.EventSource){if(ea.has(r))return;let e={src:null,host:s,clientKey:a,headers:n,cb:t=>{try{if("features-updated"===t.type){let e=er.get(r);e&&e.forEach(e=>{ev(e)})}else if("features"===t.type){let e=JSON.parse(t.data);ey(r,i,e)}e.errors=0}catch(t){ek(e)}},errors:0,state:"active"};ea.set(r,e),ew(e)}}function ek(e){if("idle"!==e.state&&(e.errors++,e.errors>3||e.src&&2===e.src.readyState)){let t=Math.pow(3,e.errors-3)*(1e3+1e3*Math.random());ex(e),setTimeout(()=>{["idle","active"].includes(e.state)||ew(e)},Math.min(t,3e5))}}function ex(e){e.src&&(e.src.onopen=null,e.src.onerror=null,e.src.close(),e.src=null,"active"===e.state&&(e.state="disabled"))}function ew(e){e.src=et.eventSourceCall({host:e.host,clientKey:e.clientKey,headers:e.headers}),e.state="active",e.src.addEventListener("features",e.cb),e.src.addEventListener("features-updated",e.cb),e.src.onerror=()=>ek(e),e.src.onopen=()=>{e.errors=0}}function eA(e,t){ex(e),ea.delete(t)}let eE="undefined"!=typeof window&&"undefined"!=typeof document,eS=function(){let e;try{e="1.2.1"}catch(t){e=""}return e}();class eB{constructor(e){if(e=e||{},this.version=eS,this._ctx=this.context=e,this._renderer=e.renderer||null,this._trackedExperiments=new Set,this._completedChangeIds=new Set,this._trackedFeatures={},this.debug=!!e.debug,this._subscriptions=new Set,this._rtQueue=[],this._rtTimer=0,this.ready=!1,this._assigned=new Map,this._forcedFeatureValues=new Map,this._attributeOverrides={},this._activeAutoExperiments=new Map,this._triggeredExpKeys=new Set,this._initialized=!1,this._redirectedUrl="",this._deferredTrackingCalls=new Map,this._autoExperimentsAllowed=!e.disableExperimentsOnLoad,e.remoteEval){if(e.decryptionKey)throw Error("Encryption is not available for remoteEval");if(!e.clientKey)throw Error("Missing clientKey");let t=!1;try{t=!!new URL(e.apiHost||"").hostname.match(/growthbook\.io$/i)}catch(e){}if(t)throw Error("Cannot use remoteEval on GrowthBook Cloud")}else if(e.cacheKeyAttributes)throw Error("cacheKeyAttributes are only used for remoteEval");if(e.features&&(this.ready=!0),eE&&e.enableDevMode&&(window._growthbook=this,document.dispatchEvent(new Event("gbloaded"))),e.experiments&&(this.ready=!0,this._updateAllAutoExperiments()),this._ctx.stickyBucketService&&this._ctx.stickyBucketAssignmentDocs)for(let e in this._ctx.stickyBucketAssignmentDocs){let t=this._ctx.stickyBucketAssignmentDocs[e];t&&this._ctx.stickyBucketService.saveAssignments(t).catch(()=>{})}this.ready&&this.refreshStickyBuckets(this.getPayload())}async setPayload(e){this._payload=e;let t=await this.decryptPayload(e);this._decryptedPayload=t,await this.refreshStickyBuckets(t),t.features&&(this._ctx.features=t.features),t.savedGroups&&(this._ctx.savedGroups=t.savedGroups),t.experiments&&(this._ctx.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,this._render()}initSync(e){this._initialized=!0;let t=e.payload;if(t.encryptedExperiments||t.encryptedFeatures)throw Error("initSync does not support encrypted payloads");if(this._ctx.stickyBucketService&&!this._ctx.stickyBucketAssignmentDocs)throw Error("initSync requires you to pass stickyBucketAssignmentDocs into the GrowthBook constructor");if(this._payload=t,this._decryptedPayload=t,t.features&&(this._ctx.features=t.features),t.experiments&&(this._ctx.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,e.streaming){if(!this._ctx.clientKey)throw Error("Must specify clientKey to enable streaming");eb(this,!0),eu(this)}return this}async init(e){if(this._initialized=!0,(e=e||{}).cacheSettings&&(Object.assign(ee,e.cacheSettings),ee.backgroundSync||(ec.clear(),ea.forEach(eA),er.clear(),et.stopIdleListener())),e.payload){if(await this.setPayload(e.payload),e.streaming){if(!this._ctx.clientKey)throw Error("Must specify clientKey to enable streaming");eb(this,!0),eu(this)}return{success:!0,source:"init"}}{let{data:t,...r}=await this._refresh({...e,allowStale:!0});return e.streaming&&eu(this),await this.setPayload(t||{}),r}}async loadFeatures(e){this._initialized=!0,(e=e||{}).autoRefresh&&(this._ctx.subscribeToChanges=!0);let{data:t}=await this._refresh({...e,allowStale:!0});await this.setPayload(t||{}),this._canSubscribe()&&eu(this)}async refreshFeatures(e){let t=await this._refresh({...e||{},allowStale:!1});t.data&&await this.setPayload(t.data)}getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){let e=this._ctx.apiHost||"https://cdn.growthbook.io";return{apiHost:e.replace(/\/*$/,""),streamingHost:(this._ctx.streamingHost||e).replace(/\/*$/,""),apiRequestHeaders:this._ctx.apiHostRequestHeaders,streamingHostRequestHeaders:this._ctx.streamingHostRequestHeaders}}getClientKey(){return this._ctx.clientKey||""}getPayload(){return this._payload||{features:this.getFeatures(),experiments:this.getExperiments()}}getDecryptedPayload(){return this._decryptedPayload||this.getPayload()}isRemoteEval(){return this._ctx.remoteEval||!1}getCacheKeyAttributes(){return this._ctx.cacheKeyAttributes}async _refresh(e){var t;let{timeout:r,skipCache:i,allowStale:s,streaming:n}=e;if(!this._ctx.clientKey)throw Error("Missing clientKey");return eo({instance:this,timeout:r,skipCache:i||this._ctx.disableCache,allowStale:s,backgroundSync:null===(t=null!=n?n:this._ctx.backgroundSync)||void 0===t||t})}_render(){if(this._renderer)try{this._renderer()}catch(e){console.error("Failed to render",e)}}setFeatures(e){this._ctx.features=e,this.ready=!0,this._render()}async setEncryptedFeatures(e,t,r){let i=await U(e,t||this._ctx.decryptionKey,r);this.setFeatures(JSON.parse(i))}setExperiments(e){this._ctx.experiments=e,this.ready=!0,this._updateAllAutoExperiments()}async setEncryptedExperiments(e,t,r){let i=await U(e,t||this._ctx.decryptionKey,r);this.setExperiments(JSON.parse(i))}async decryptPayload(e,t,r){if((e={...e}).encryptedFeatures){try{e.features=JSON.parse(await U(e.encryptedFeatures,t||this._ctx.decryptionKey,r))}catch(e){console.error(e)}delete e.encryptedFeatures}if(e.encryptedExperiments){try{e.experiments=JSON.parse(await U(e.encryptedExperiments,t||this._ctx.decryptionKey,r))}catch(e){console.error(e)}delete e.encryptedExperiments}if(e.encryptedSavedGroups){try{e.savedGroups=JSON.parse(await U(e.encryptedSavedGroups,t||this._ctx.decryptionKey,r))}catch(e){console.error(e)}delete e.encryptedSavedGroups}return e}async setAttributes(e){if(this._ctx.attributes=e,this._ctx.stickyBucketService&&await this.refreshStickyBuckets(),this._ctx.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}async updateAttributes(e){return this.setAttributes({...this._ctx.attributes,...e})}async setAttributeOverrides(e){if(this._attributeOverrides=e,this._ctx.stickyBucketService&&await this.refreshStickyBuckets(),this._ctx.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}async setForcedVariations(e){if(this._ctx.forcedVariations=e||{},this._ctx.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}setForcedFeatures(e){this._forcedFeatureValues=e,this._render()}async setURL(e){if(e!==this._ctx.url){if(this._ctx.url=e,this._redirectedUrl="",this._ctx.remoteEval){await this._refreshForRemoteEval(),this._updateAllAutoExperiments(!0);return}this._updateAllAutoExperiments(!0)}}getAttributes(){return{...this._ctx.attributes,...this._attributeOverrides}}getForcedVariations(){return this._ctx.forcedVariations||{}}getForcedFeatures(){return this._forcedFeatureValues||new Map}getStickyBucketAssignmentDocs(){return this._ctx.stickyBucketAssignmentDocs||{}}getUrl(){return this._ctx.url||""}getFeatures(){return this._ctx.features||{}}getExperiments(){return this._ctx.experiments||[]}getCompletedChangeIds(){return Array.from(this._completedChangeIds)}subscribe(e){return this._subscriptions.add(e),()=>{this._subscriptions.delete(e)}}_canSubscribe(){var e;return(null===(e=this._ctx.backgroundSync)||void 0===e||e)&&this._ctx.subscribeToChanges}async _refreshForRemoteEval(){if(!this._ctx.remoteEval||!this._initialized)return;let e=await this._refresh({allowStale:!1});e.data&&await this.setPayload(e.data)}getAllResults(){return new Map(this._assigned)}destroy(){var e;this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._completedChangeIds.clear(),this._deferredTrackingCalls.clear(),this._trackedFeatures={},this._rtQueue=[],this._payload=void 0,this._rtTimer&&clearTimeout(this._rtTimer),e=this,er.forEach(t=>t.delete(e)),eE&&window._growthbook===this&&delete window._growthbook,this._activeAutoExperiments.forEach(e=>{e.undo()}),this._activeAutoExperiments.clear(),this._triggeredExpKeys.clear()}setRenderer(e){this._renderer=e}forceVariation(e,t){if(this._ctx.forcedVariations=this._ctx.forcedVariations||{},this._ctx.forcedVariations[e]=t,this._ctx.remoteEval){this._refreshForRemoteEval();return}this._updateAllAutoExperiments(),this._render()}run(e){let{result:t}=this._run(e,null);return this._fireSubscriptions(e,t),t}triggerExperiment(e){return(this._triggeredExpKeys.add(e),this._ctx.experiments)?this._ctx.experiments.filter(t=>t.key===e).map(e=>this._runAutoExperiment(e)).filter(e=>null!==e):null}triggerAutoExperiments(){this._autoExperimentsAllowed=!0,this._updateAllAutoExperiments(!0)}_runAutoExperiment(e,t){let r,i;let s=this._activeAutoExperiments.get(e);if(e.manual&&!this._triggeredExpKeys.has(e.key)&&!s)return null;this._isAutoExperimentBlockedByContext(e)?r=this._getResult(e,-1,!1,""):({result:r,trackingCall:i}=this._run(e,null),this._fireSubscriptions(e,r));let n=JSON.stringify(r.value);if(!t&&r.inExperiment&&s&&s.valueHash===n)return r;if(s&&this._undoActiveAutoExperiment(e),r.inExperiment){let t=z(e);if("redirect"===t&&r.value.urlRedirect&&e.urlPatterns){let t=e.persistQueryString?function(e,t){let r,i;try{r=new URL(e),i=new URL(t)}catch(e){return console.error("Unable to merge query strings: ".concat(e)),t}return r.searchParams.forEach((e,t)=>{i.searchParams.has(t)||i.searchParams.set(t,e)}),i.toString()}(this._getContextUrl(),r.value.urlRedirect):r.value.urlRedirect;if(M(t,e.urlPatterns))return this.log("Skipping redirect because original URL matches redirect URL",{id:e.key}),r;this._redirectedUrl=t;let{navigate:s,delay:n}=this._getNavigateFunction();if(s){if(eE){var a;Promise.all([...i?[G(i,null!==(a=this._ctx.maxNavigateDelay)&&void 0!==a?a:1e3)]:[],new Promise(e=>{var t;return window.setTimeout(e,null!==(t=this._ctx.navigateDelay)&&void 0!==t?t:n)})]).then(()=>{try{s(t)}catch(e){console.error(e)}})}else try{s(t)}catch(e){console.error(e)}}}else if("visual"===t){let t=this._ctx.applyDomChangesCallback?this._ctx.applyDomChangesCallback(r.value):this._applyDOMChanges(r.value);t&&this._activeAutoExperiments.set(e,{undo:t,valueHash:n})}}return r}_undoActiveAutoExperiment(e){let t=this._activeAutoExperiments.get(e);t&&(t.undo(),this._activeAutoExperiments.delete(e))}_updateAllAutoExperiments(e){if(!this._autoExperimentsAllowed)return;let t=this._ctx.experiments||[],r=new Set(t);for(let i of(this._activeAutoExperiments.forEach((e,t)=>{r.has(t)||(e.undo(),this._activeAutoExperiments.delete(t))}),t)){let t=this._runAutoExperiment(i,e);if(null!=t&&t.inExperiment&&"redirect"===z(i))break}}_fireSubscriptions(e,t){let r=e.key,i=this._assigned.get(r);i&&i.result.inExperiment===t.inExperiment&&i.result.variationId===t.variationId||(this._assigned.set(r,{experiment:e,result:t}),this._subscriptions.forEach(r=>{try{r(e,t)}catch(e){console.error(e)}}))}_trackFeatureUsage(e,t){if("override"===t.source)return;let r=JSON.stringify(t.value);if(this._trackedFeatures[e]!==r){if(this._trackedFeatures[e]=r,this._ctx.onFeatureUsage)try{this._ctx.onFeatureUsage(e,t)}catch(e){}eE&&window.fetch&&(this._rtQueue.push({key:e,on:t.on}),this._rtTimer||(this._rtTimer=window.setTimeout(()=>{this._rtTimer=0;let e=[...this._rtQueue];this._rtQueue=[],this._ctx.realtimeKey&&window.fetch("https://rt.growthbook.io/?key=".concat(this._ctx.realtimeKey,"&events=").concat(encodeURIComponent(JSON.stringify(e))),{cache:"no-cache",mode:"no-cors"}).catch(()=>{})},this._ctx.realtimeInterval||2e3)))}}_getFeatureResult(e,t,r,i,s,n){let a={value:t,on:!!t,off:!t,source:r,ruleId:i||""};return s&&(a.experiment=s),n&&(a.experimentResult=n),this._trackFeatureUsage(e,a),a}isOn(e){return this.evalFeature(e).on}isOff(e){return this.evalFeature(e).off}getFeatureValue(e,t){let r=this.evalFeature(e).value;return null===r?t:r}feature(e){return this.evalFeature(e)}evalFeature(e){return this._evalFeature(e)}_evalFeature(e,t){if((t=t||{evaluatedFeatures:new Set}).evaluatedFeatures.has(e))return this._getFeatureResult(e,null,"cyclicPrerequisite");if(t.evaluatedFeatures.add(e),t.id=e,this._forcedFeatureValues.has(e))return this._getFeatureResult(e,this._forcedFeatureValues.get(e),"override");if(!this._ctx.features||!this._ctx.features[e])return this._getFeatureResult(e,null,"unknownFeature");let r=this._ctx.features[e];if(r.rules)e:for(let i of r.rules){if(i.parentConditions)for(let r of i.parentConditions){let i=this._evalFeature(r.id,t);if("cyclicPrerequisite"===i.source)return this._getFeatureResult(e,null,"cyclicPrerequisite");if(!Q({value:i.value},r.condition||{})){if(r.gate)return this._getFeatureResult(e,null,"prerequisite");continue e}}if(i.filters&&this._isFilteredOut(i.filters))continue;if("force"in i){if(i.condition&&!this._conditionPasses(i.condition)||!this._isIncludedInRollout(i.seed||e,i.hashAttribute,this._ctx.stickyBucketService&&!i.disableStickyBucketing?i.fallbackAttribute:void 0,i.range,i.coverage,i.hashVersion))continue;return i.tracks&&i.tracks.forEach(e=>{this._track(e.experiment,e.result)}),this._getFeatureResult(e,i.force,"force",i.id)}if(!i.variations)continue;let r={variations:i.variations,key:i.key||e};"coverage"in i&&(r.coverage=i.coverage),i.weights&&(r.weights=i.weights),i.hashAttribute&&(r.hashAttribute=i.hashAttribute),i.fallbackAttribute&&(r.fallbackAttribute=i.fallbackAttribute),i.disableStickyBucketing&&(r.disableStickyBucketing=i.disableStickyBucketing),void 0!==i.bucketVersion&&(r.bucketVersion=i.bucketVersion),void 0!==i.minBucketVersion&&(r.minBucketVersion=i.minBucketVersion),i.namespace&&(r.namespace=i.namespace),i.meta&&(r.meta=i.meta),i.ranges&&(r.ranges=i.ranges),i.name&&(r.name=i.name),i.phase&&(r.phase=i.phase),i.seed&&(r.seed=i.seed),i.hashVersion&&(r.hashVersion=i.hashVersion),i.filters&&(r.filters=i.filters),i.condition&&(r.condition=i.condition);let{result:s}=this._run(r,e);if(this._fireSubscriptions(r,s),s.inExperiment&&!s.passthrough)return this._getFeatureResult(e,s.value,"experiment",i.id,r,s)}return this._getFeatureResult(e,void 0===r.defaultValue?null:r.defaultValue,"defaultValue")}_isIncludedInRollout(e,t,r,i,s,n){if(!i&&void 0===s)return!0;if(!i&&0===s)return!1;let{hashValue:a}=this._getHashAttribute(t,r);if(!a)return!1;let c=$(e,a,n||1);return null!==c&&(i?K(c,i):void 0===s||c<=s)}_conditionPasses(e){return Q(this.getAttributes(),e,this._ctx.savedGroups||{})}_isFilteredOut(e){return e.some(e=>{let{hashValue:t}=this._getHashAttribute(e.attribute);if(!t)return!0;let r=$(e.seed,t,e.hashVersion||2);return null===r||!e.ranges.some(e=>K(r,e))})}_run(e,t){let r=e.key,i=e.variations.length;if(i<2||!1===this._ctx.enabled||(e=this._mergeOverrides(e)).urlPatterns&&!M(this._getContextUrl(),e.urlPatterns))return{result:this._getResult(e,-1,!1,t)};let s=function(e,t,r){if(!t)return null;let i=t.split("?")[1];if(!i)return null;let s=i.replace(/#.*/,"").split("&").map(e=>e.split("=",2)).filter(t=>{let[r]=t;return r===e}).map(e=>{let[,t]=e;return parseInt(t)});return s.length>0&&s[0]>=0&&s[0]=0,c=t,u=!!r}if(!o){if(e.filters){if(this._isFilteredOut(e.filters))return{result:this._getResult(e,-1,!1,t)}}else if(e.namespace&&!function(e,t){let r=$("__"+t[0],e,1);return null!==r&&r>=t[1]&&r1&&(t=1);let i=e<=0?[]:Array(e).fill(1/e);(r=r||i).length!==e&&(r=i);let s=r.reduce((e,t)=>t+e,0);(s<.99||s>1.01)&&(r=i);let n=0;return r.map(e=>{let r=n;return n+=e,[r,r+t*e]})}(i,void 0===e.coverage?1:e.coverage,e.weights))),u)return{result:this._getResult(e,-1,!1,t,void 0,!0)};if(c<0)return{result:this._getResult(e,-1,!1,t)};if("force"in e)return{result:this._getResult(e,void 0===e.force?-1:e.force,!1,t)};if(this._ctx.qaMode||"stopped"===e.status)return{result:this._getResult(e,-1,!1,t)};let d=this._getResult(e,c,!0,t,l,o);if(this._ctx.stickyBucketService&&!e.disableStickyBucketing){let{changed:t,key:r,doc:i}=this._generateStickyBucketAssignmentDoc(n,H(a),{[this._getStickyBucketExperimentKey(e.key,e.bucketVersion)]:d.key});t&&(this._ctx.stickyBucketAssignmentDocs=this._ctx.stickyBucketAssignmentDocs||{},this._ctx.stickyBucketAssignmentDocs[r]=i,this._ctx.stickyBucketService.saveAssignments(i))}let h=this._track(e,d);return"changeId"in e&&e.changeId&&this._completedChangeIds.add(e.changeId),{result:d,trackingCall:h}}log(e,t){this.debug&&(this._ctx.log?this._ctx.log(e,t):console.log(e,t))}getDeferredTrackingCalls(){return Array.from(this._deferredTrackingCalls.values())}setDeferredTrackingCalls(e){this._deferredTrackingCalls=new Map(e.filter(e=>e&&e.experiment&&e.result).map(e=>[this._getTrackKey(e.experiment,e.result),e]))}async fireDeferredTrackingCalls(){if(!this._ctx.trackingCallback)return;let e=[];this._deferredTrackingCalls.forEach(t=>{t&&t.experiment&&t.result?e.push(this._track(t.experiment,t.result)):console.error("Invalid deferred tracking call",{call:t})}),this._deferredTrackingCalls.clear(),await Promise.all(e)}setTrackingCallback(e){this._ctx.trackingCallback=e,this.fireDeferredTrackingCalls()}_getTrackKey(e,t){return t.hashAttribute+t.hashValue+e.key+t.variationId}async _track(e,t){let r=this._getTrackKey(e,t);if(!this._ctx.trackingCallback){this._deferredTrackingCalls.has(r)||this._deferredTrackingCalls.set(r,{experiment:e,result:t});return}if(!this._trackedExperiments.has(r)){this._trackedExperiments.add(r);try{await this._ctx.trackingCallback(e,t)}catch(e){console.error(e)}}}_mergeOverrides(e){let t=e.key,r=this._ctx.overrides;return r&&r[t]&&"string"==typeof(e=Object.assign({},e,r[t])).url&&(e.url=L(e.url)),e}_getHashAttribute(e,t){let r=e||"id",i="";return this._attributeOverrides[r]?i=this._attributeOverrides[r]:this._ctx.attributes?i=this._ctx.attributes[r]||"":this._ctx.user&&(i=this._ctx.user[r]||""),!i&&t&&(this._attributeOverrides[t]?i=this._attributeOverrides[t]:this._ctx.attributes?i=this._ctx.attributes[t]||"":this._ctx.user&&(i=this._ctx.user[t]||""),i&&(r=t)),{hashAttribute:r,hashValue:i}}_getResult(e,t,r,i,s,n){let a=!0;(t<0||t>=e.variations.length)&&(t=0,a=!1);let{hashAttribute:c,hashValue:o}=this._getHashAttribute(e.hashAttribute,this._ctx.stickyBucketService&&!e.disableStickyBucketing?e.fallbackAttribute:void 0),u=e.meta?e.meta[t]:{},l={key:u.key||""+t,featureId:i,inExperiment:a,hashUsed:r,variationId:t,value:e.variations[t],hashAttribute:c,hashValue:o,stickyBucketUsed:!!n};return u.name&&(l.name=u.name),void 0!==s&&(l.bucket=s),u.passthrough&&(l.passthrough=u.passthrough),l}_getContextUrl(){return this._ctx.url||(eE?window.location.href:"")}_urlIsValid(e){let t=this._getContextUrl();if(!t)return!1;let r=t.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!(e.test(t)||e.test(r))}_hasGroupOverlap(e){let t=this._ctx.groups||{};for(let r=0;re.js))return!0}else{if("redirect"!==t||this._ctx.disableUrlRedirectExperiments)return!0;try{let t=new URL(this._getContextUrl());for(let r of e.variations){if(!r||!r.urlRedirect)continue;let e=new URL(r.urlRedirect);if(this._ctx.disableCrossOriginUrlRedirectExperiments&&(e.protocol!==t.protocol||e.host!==t.host))return!0}}catch(t){return this.log("Error parsing current or redirect URL",{id:e.key,error:t}),!0}}return!!(e.changeId&&(this._ctx.blockedChangeIds||[]).includes(e.changeId))}getRedirectUrl(){return this._redirectedUrl}_getNavigateFunction(){return this._ctx.navigate?{navigate:this._ctx.navigate,delay:0}:eE?{navigate:e=>{window.location.replace(e)},delay:100}:{navigate:null,delay:0}}_applyDOMChanges(e){if(!eE)return;let t=[];if(e.css){let r=document.createElement("style");r.innerHTML=e.css,document.head.appendChild(r),t.push(()=>r.remove())}if(e.js){let r=document.createElement("script");r.innerHTML=e.js,this._ctx.jsInjectionNonce&&(r.nonce=this._ctx.jsInjectionNonce),document.head.appendChild(r),t.push(()=>r.remove())}return e.domMutations&&e.domMutations.forEach(e=>{t.push(P.declarative(e).revert)}),()=>{t.forEach(e=>e())}}_deriveStickyBucketIdentifierAttributes(e){let t=new Set,r=e&&e.features?e.features:this.getFeatures(),i=e&&e.experiments?e.experiments:this.getExperiments();return Object.keys(r).forEach(e=>{let i=r[e];if(i.rules)for(let e of i.rules)e.variations&&(t.add(e.hashAttribute||"id"),e.fallbackAttribute&&t.add(e.fallbackAttribute))}),i.map(e=>{t.add(e.hashAttribute||"id"),e.fallbackAttribute&&t.add(e.fallbackAttribute)}),Array.from(t)}async refreshStickyBuckets(e){if(this._ctx.stickyBucketService){let t=this._getStickyBucketAttributes(e);this._ctx.stickyBucketAssignmentDocs=await this._ctx.stickyBucketService.getAllAssignments(t)}}_getStickyBucketAssignments(e,t){if(!this._ctx.stickyBucketAssignmentDocs)return{};let{hashAttribute:r,hashValue:i}=this._getHashAttribute(e),s="".concat(r,"||").concat(H(i)),{hashAttribute:n,hashValue:a}=this._getHashAttribute(t),c=a?"".concat(n,"||").concat(H(a)):null,o={};return c&&this._ctx.stickyBucketAssignmentDocs[c]&&Object.assign(o,this._ctx.stickyBucketAssignmentDocs[c].assignments||{}),this._ctx.stickyBucketAssignmentDocs[s]&&Object.assign(o,this._ctx.stickyBucketAssignmentDocs[s].assignments||{}),o}_getStickyBucketVariation(e){let{expKey:t,expBucketVersion:r,expHashAttribute:i,expFallbackAttribute:s,expMinBucketVersion:n,expMeta:a}=e;r=r||0,n=n||0,i=i||"id",a=a||[];let c=this._getStickyBucketExperimentKey(t,r),o=this._getStickyBucketAssignments(i,s);if(n>0){for(let e=0;e<=n;e++)if(void 0!==o[this._getStickyBucketExperimentKey(t,e)])return{variation:-1,versionIsBlocked:!0}}let u=o[c];if(void 0===u)return{variation:-1};let l=a.findIndex(e=>e.key===u);return l<0?{variation:-1}:{variation:l}}_getStickyBucketExperimentKey(e,t){return t=t||0,"".concat(e,"__").concat(t)}_getStickyBucketAttributes(e){let t={};return this._ctx.stickyBucketIdentifierAttributes=this._deriveStickyBucketIdentifierAttributes(e),this._ctx.stickyBucketIdentifierAttributes.forEach(e=>{let{hashValue:r}=this._getHashAttribute(e);t[e]=H(r)}),t}_generateStickyBucketAssignmentDoc(e,t,r){let i="".concat(e,"||").concat(t),s=this._ctx.stickyBucketAssignmentDocs&&this._ctx.stickyBucketAssignmentDocs[i]&&this._ctx.stickyBucketAssignmentDocs[i].assignments||{},n={...s,...r},a=JSON.stringify(s)!==JSON.stringify(n);return{key:i,doc:{attributeName:e,attributeValue:t,assignments:n},changed:a}}}var eF=r(54982);let eR=eF.createContext({}),eC=({children:e,growthbook:t})=>{let[r,i]=eF.useState(0);return eF.useEffect(()=>{if(t&&t.setRenderer)return t.setRenderer(()=>{i(e=>e+1)}),()=>{t.setRenderer(()=>{})}},[t]),eF.createElement(eR.Provider,{value:{growthbook:t}},e)}},998:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var i=r(54982);let s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let c=(0,i.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:u="",children:l,iconNode:d,...h}=e;return(0,i.createElement)("svg",{ref:t,...a,width:s,height:s,stroke:r,strokeWidth:o?24*Number(c)/Number(s):c,className:n("lucide",u),...h},[...d.map(e=>{let[t,r]=e;return(0,i.createElement)(t,r)}),...Array.isArray(l)?l:[l]])}),o=(e,t)=>{let r=(0,i.forwardRef)((r,a)=>{let{className:o,...u}=r;return(0,i.createElement)(c,{ref:a,iconNode:t,className:n("lucide-".concat(s(e)),o),...u})});return r.displayName="".concat(e),r}},99188:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});let i=(0,r(998).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},39122:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});let i=(0,r(998).Z)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},18643:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});let i=(0,r(998).Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},62194:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});let i=(0,r(998).Z)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},89963:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});let i=(0,r(998).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},53607:(e,t,r)=>{"use strict";r.d(t,{default:()=>s.a});var i=r(59261),s=r.n(i)},68233:(e,t,r)=>{"use strict";r.d(t,{default:()=>s.a});var i=r(64489),s=r.n(i)},94498:(e,t,r)=>{"use strict";var i=r(74623);r.o(i,"useParams")&&r.d(t,{useParams:function(){return i.useParams}}),r.o(i,"usePathname")&&r.d(t,{usePathname:function(){return i.usePathname}}),r.o(i,"useRouter")&&r.d(t,{useRouter:function(){return i.useRouter}}),r.o(i,"useSearchParams")&&r.d(t,{useSearchParams:function(){return i.useSearchParams}})},59261:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getImageProps:function(){return c}});let i=r(91180),s=r(68004),n=r(16789),a=i._(r(93567));function c(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let o=n.Image},63813:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_d65c78"}},40915:e=>{e.exports={style:{fontFamily:"'spectralBoldFont', 'spectralBoldFont Fallback'"},className:"__className_8ce16a",variable:"__variable_8ce16a"}},16910:e=>{e.exports={style:{fontFamily:"'spectralExtraBoldFont', 'spectralExtraBoldFont Fallback'"},className:"__className_5ba8a3",variable:"__variable_5ba8a3"}},12978:e=>{e.exports={style:{fontFamily:"'spectralLightFont', 'spectralLightFont Fallback'"},className:"__className_65541d",variable:"__variable_65541d"}},52634:e=>{e.exports={style:{fontFamily:"'spectralRegularFont', 'spectralRegularFont Fallback'"},className:"__className_a550ee",variable:"__variable_a550ee"}},68624:(e,t,r)=>{"use strict";r.d(t,{Analytics:()=>o});var i=r(54982),s=()=>{window.va||(window.va=function(){for(var e=arguments.length,t=Array(e),r=0;r{!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debug:!0};if(!n())return;(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";if("auto"===e){window.vam=a();return}window.vam=e})(t.mode),s(),t.beforeSend&&(null==(e=window.va)||e.call(window,"beforeSend",t.beforeSend));let r=t.scriptSrc||(c()?"https://va.vercel-scripts.com/v1/script.debug.js":"/_vercel/insights/script.js");if(document.head.querySelector('script[src*="'.concat(r,'"]')))return;let i=document.createElement("script");i.src=r,i.defer=!0,i.dataset.sdkn="@vercel/analytics"+(t.framework?"/".concat(t.framework):""),i.dataset.sdkv="1.3.2",t.disableAutoTrack&&(i.dataset.disableAutoTrack="1"),t.endpoint&&(i.dataset.endpoint=t.endpoint),t.dsn&&(i.dataset.dsn=t.dsn),i.onerror=()=>{let e=c()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log("[Vercel Web Analytics] Failed to load script from ".concat(r,". ").concat(e))},c()&&!1===t.debug&&(i.dataset.debug="false"),document.head.appendChild(i)}({framework:e.framework||"react",...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,i.useEffect)(()=>{e.route&&e.path&&function(e){var t;let{route:r,path:i}=e;null==(t=window.va)||t.call(window,"pageview",{route:r,path:i})}({route:e.route,path:e.path})},[e.route,e.path]),null}},96450:(e,t,r)=>{"use strict";r.d(t,{SpeedInsights:()=>p});var i=r(54982),s=r(94498),n=()=>{window.si||(window.si=function(){for(var e=arguments.length,t=Array(e),r=0;r{if(t.current)e.route&&t.current(e.route);else{let r=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!("undefined"!=typeof window)||null===t.route)return null;n();let r=!!t.dsn,i=t.scriptSrc||(r?u:"/_vercel/speed-insights/script.js");if(document.head.querySelector('script[src*="'.concat(i,'"]')))return null;t.beforeSend&&(null==(e=window.si)||e.call(window,"beforeSend",t.beforeSend));let s=document.createElement("script");return s.src=i,s.defer=!0,s.dataset.sdkn="@vercel/speed-insights"+(t.framework?"/".concat(t.framework):""),s.dataset.sdkv="1.0.14",t.sampleRate&&(s.dataset.sampleRate=t.sampleRate.toString()),t.route&&(s.dataset.route=t.route),t.endpoint&&(s.dataset.endpoint=t.endpoint),t.dsn&&(s.dataset.dsn=t.dsn),s.onerror=()=>{console.log("[Vercel Speed Insights] Failed to load script from ".concat(i,". Please check if any content blockers are enabled and try again."))},document.head.appendChild(s),{setRoute:e=>{s.dataset.route=null!=e?e:void 0}}}({framework:e.framework||"react",...e});r&&(t.current=r.setRoute)}},[e.route]),null}var h=()=>{let e=(0,s.useParams)(),t=(0,s.useSearchParams)()||new URLSearchParams,r=(0,s.usePathname)(),i={...Object.fromEntries(t.entries()),...e||{}};return e?function(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,i]of e)if(!Array.isArray(i)){let e=c(i);e.test(r)&&(r=r.replace(e,"/[".concat(t,"]")))}for(let[t,i]of e)if(Array.isArray(i)){let e=c(i.join("/"));e.test(r)&&(r=r.replace(e,"/[...".concat(t,"]")))}return r}catch(t){return e}}(r,i):null};function f(e){let t=h();return i.createElement(d,{route:t,...e,framework:"next"})}function p(e){return i.createElement(i.Suspense,{fallback:null},i.createElement(f,{...e}))}}}]);