/*! For license information please see vendors~atlas.4570aa45f5fb796b6adf.js.LICENSE.txt */ (self.webpackChunk_klaviyo_onsite_modules=self.webpackChunk_klaviyo_onsite_modules||[]).push([[9951],{26954:function(e,t,r){"use strict";var n=r(18359);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,s=n.useEffect,a=n.useLayoutEffect,c=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,u=n[1];return a((function(){o.value=r,o.getSnapshot=t,l(o)&&u({inst:o})}),[e,r,t]),s((function(){return l(o)&&u({inst:o}),e((function(){l(o)&&u({inst:o})}))}),[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},95612:function(e,t,r){"use strict";e.exports=r(26954)},11569:function(e,t){var r,n,o;n=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r="boolean"==typeof(new RegExp).sticky;function n(e){return e&&"[object RegExp]"===t.call(e)}function o(e){return e&&"object"==typeof e&&!n(e)&&!Array.isArray(e)}function i(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(e){return new RegExp("|"+e).exec("").length-1}function a(e){return"("+e+")"}function c(e){return e.length?"(?:"+e.map((function(e){return"(?:"+e+")"})).join("|")+")":"(?!)"}function l(e){if("string"==typeof e)return"(?:"+i(e)+")";if(n(e)){if(e.ignoreCase)throw new Error("RegExp /i flag not allowed");if(e.global)throw new Error("RegExp /g flag is implied");if(e.sticky)throw new Error("RegExp /y flag is implied");if(e.multiline)throw new Error("RegExp /m flag is implied");return e.source}throw new Error("Not a pattern: "+e)}function u(e,t){return e.length>t?e:Array(t-e.length+1).join(" ")+e}function f(e,t){for(var r=e.length,n=0;;){var o=e.lastIndexOf("\n",r-1);if(-1===o)break;if(r=o,++n===t)break;if(0===r)break}var i=n0)throw new Error("RegExp has capture groups: "+b+"\nUse (?: … ) instead");if(!g.lineBreaks&&b.test("\n"))throw new Error("Rule should declare lineBreaks: "+b);h.push(a(k))}}var E=o&&o.fallback,x=r&&!E?"ym":"gm",_=r||E?"":"|";return!0===f&&(x+="u"),{regexp:new RegExp(c(h)+_,x),groups:d,fast:i,error:o||m}}function w(e){var t=y(g(e));return new E({start:t},"start")}function v(e,t,r){var n=e&&(e.push||e.next);if(n&&!r[n])throw new Error("Missing state '"+n+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!=+e.pop)throw new Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}function k(e,t){var r=e.$all?g(e.$all):[];delete e.$all;var n=Object.getOwnPropertyNames(e);t||(t=n[0]);for(var o=Object.create(null),i=0;i"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^']|'')*'(?!')/u,value:e=>e.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:e=>e.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:e=>e.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:e=>e.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:e=>e.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:e=>e.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:e=>e.substring(0,e.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},t.lexer=o.default.states(t.states)},38659:function(e,t,r){"use strict";t.Qc=function(e,t={}){return new l(e,t).parse()};const n=r(67169),o=e=>({offset:e.offset,line:e.line,col:e.col,text:e.text,lineBreaks:e.lineBreaks}),i=e=>"plural"===e||"select"===e||"selectordinal"===e;const s=["number","date","time","spellout","ordinal","duration"],a=["zero","one","two","few","many","other"];class c extends Error{constructor(e,t){super(n.lexer.formatError(e,t))}}class l{constructor(e,t){var r,o,i,s;this.lexer=n.lexer.reset(e),this.cardinalKeys=null!==(r=null==t?void 0:t.cardinal)&&void 0!==r?r:a,this.ordinalKeys=null!==(o=null==t?void 0:t.ordinal)&&void 0!==o?o:a,this.strict=null!==(i=null==t?void 0:t.strict)&&void 0!==i&&i,this.strictPluralKeys=null===(s=null==t?void 0:t.strictPluralKeys)||void 0===s||s}parse(){return this.parseBody(!1,!0)}checkSelectKey(e,t,r){if("="===r[0]){if("select"===t)throw new c(e,`The case ${r} is not valid with select`)}else if("select"!==t){const n="plural"===t?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&n.length>0&&!n.includes(r)){throw new c(e,`The ${t} case ${r} is not valid in this locale`)}}}parseSelect({value:e},t,r,n){const i={type:n,arg:e,cases:[],ctx:r};"plural"===n||"selectordinal"===n?t=!0:this.strict&&(t=!1);for(const e of this.lexer)switch(e.type){case"offset":if("select"===n)throw new c(e,"Unexpected plural offset for select");if(i.cases.length>0)throw new c(e,"Plural offset must be set before cases");i.pluralOffset=Number(e.value),r.text+=e.text,r.lineBreaks+=e.lineBreaks;break;case"case":this.checkSelectKey(e,n,e.value),i.cases.push({key:e.value,tokens:this.parseBody(t),ctx:o(e)});break;case"end":return i;default:throw new c(e,`Unexpected lexer token: ${e.type}`)}throw new c(null,"Unexpected message end")}parseArgToken(e,t){const r=o(e),n=this.lexer.next();if(!n)throw new c(null,"Unexpected message end");if(r.text+=n.text,r.lineBreaks+=n.lineBreaks,this.strict&&("func-simple"===n.type||"func-args"===n.type)&&!s.includes(n.value)){const t=`Invalid strict mode function arg type: ${n.value}`;throw new c(e,t)}switch(n.type){case"end":return{type:"argument",arg:e.value,ctx:r};case"func-simple":{const t=this.lexer.next();if(!t)throw new c(null,"Unexpected message end");if("end"!==t.type)throw new c(t,`Unexpected lexer token: ${t.type}`);if(r.text+=t.text,i(n.value.toLowerCase()))throw new c(n,`Invalid type identifier: ${n.value}`);return{type:"function",arg:e.value,key:n.value,ctx:r}}case"func-args":{if(i(n.value.toLowerCase())){const e=`Invalid type identifier: ${n.value}`;throw new c(n,e)}let o=this.parseBody(!this.strict&&t);return this.strict&&o.length>0&&(o=function(e,t){let r="",n="";for(const o of t){const t=o.ctx.text;switch(n+=t,o.type){case"content":r+=o.value;break;case"argument":case"function":case"octothorpe":r+=t;break;default:throw new c(e,`Unsupported part in strict mode function arg style: ${t}`)}}return[{type:"content",value:r.trim(),ctx:Object.assign({},t[0].ctx,{text:n})}]}(e,o)),{type:"function",arg:e.value,key:n.value,param:o,ctx:r}}case"select":if(i(n.value))return this.parseSelect(e,t,r,n.value);throw new c(n,`Unexpected select type ${n.value}`);default:throw new c(n,`Unexpected lexer token: ${n.type}`)}}parseBody(e,t){const r=[];let n=null;for(const i of this.lexer)if("argument"===i.type)n&&(n=null),r.push(this.parseArgToken(i,e));else if("octothorpe"===i.type&&e)n&&(n=null),r.push({type:"octothorpe",ctx:o(i)});else{if("end"===i.type&&!t)return r;{let t=i.value;if(!e&&"quoted"===i.type&&"#"===t[0]){if(t.includes("{")){throw new c(i,`Unsupported escape pattern: ${t}`)}t=i.text}n?(n.value+=t,n.ctx.text+=i.text,n.ctx.lineBreaks+=i.lineBreaks):(n={type:"content",value:t,ctx:o(i)},r.push(n))}}if(t)return r;throw new c(null,"Unexpected message end")}}},64928:function(e,t,r){"use strict";r.d(t,{E5:function(){return x}});var n=r(24441);const o=e=>"string"==typeof e,i=new Map,s="en";function a(e){return[...Array.isArray(e)?e:[e],s]}function c(e,t,r){const n=a(e);let i;if(r||(r="default"),"string"==typeof r)switch(i={day:"numeric",month:"short",year:"numeric"},r){case"full":i.weekday="long";case"long":i.month="long";break;case"short":i.month="numeric"}else i=r;return d((()=>h("date",n,r)),(()=>new Intl.DateTimeFormat(n,i))).format(o(t)?new Date(t):t)}function l(e,t,r){let n;if(r||(r="default"),"string"==typeof r)switch(n={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":n.timeZoneName="short";break;case"short":delete n.second}else n=r;return c(e,t,n)}function u(e,t,r){const n=a(e);return d((()=>h("number",n,r)),(()=>new Intl.NumberFormat(n,r))).format(t)}function f(e,t,r,{offset:n=0,...o}){const i=a(e),s=t?d((()=>h("plural-ordinal",i)),(()=>new Intl.PluralRules(i,{type:"ordinal"}))):d((()=>h("plural-cardinal",i)),(()=>new Intl.PluralRules(i,{type:"cardinal"})));return o[r]??o[s.select(r-n)]??o.other}function d(e,t){const r=e();let n=i.get(r);return n||(n=t(),i.set(r,n)),n}function h(e,t,r){return`${e}-${t.join("-")}-${JSON.stringify(r)}`}const p=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,g="%__lingui_octothorpe__%",m=(e,t)=>t[e]??t.other;function y(e,t,r){return(i={},s)=>{const a=((e,t,r={})=>{const n=t||e,o=e=>"object"==typeof e?e:r[e],i=(e,t)=>{const i=Object.keys(r).length?o("number"):void 0,s=u(n,e,i);return t.replace(new RegExp(g,"g"),s)};return{plural:(e,t)=>{const{offset:r=0}=t,o=f(n,!1,e,t);return i(e-r,o)},selectordinal:(e,t)=>{const{offset:r=0}=t,o=f(n,!0,e,t);return i(e-r,o)},select:m,number:(e,t)=>u(n,e,o(t)||{style:t}),date:(e,t)=>c(n,e,o(t)||t),time:(e,t)=>l(n,e,o(t)||t)}})(t,r,s),d=(e,t=!1)=>Array.isArray(e)?e.reduce(((e,r)=>{if("#"===r&&t)return e+g;if(o(r))return e+r;const[n,s,c]=r;let l,u={};if("plural"===s||"selectordinal"===s||"select"===s?Object.entries(c).forEach((([e,t])=>{u[e]=d(t,"plural"===s||"selectordinal"===s)})):u=c,s){l=(0,a[s])(i[n],u)}else l=i[n];return null==l?e:e+l}),""):e,h=d(e);return o(h)&&p.test(h)?(0,n.S6)(h):o(h)?h:h?String(h):""}}var w=Object.defineProperty,v=(e,t,r)=>(((e,t,r)=>{t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);var k=Object.defineProperty,b=(e,t,r)=>(((e,t,r)=>{t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);class E extends class{constructor(){v(this,"_events",{})}on(e,t){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){const r=this._getListeners(e);if(!r)return;const n=r.indexOf(t);~n&&r.splice(n,1)}emit(e,...t){const r=this._getListeners(e);r&&r.map((e=>e.apply(this,t)))}_getListeners(e){const t=this._events[e];return!!Array.isArray(t)&&t}}{constructor(e){super(),b(this,"_locale",""),b(this,"_locales"),b(this,"_localeData",{}),b(this,"_messages",{}),b(this,"_missing"),b(this,"_messageCompiler"),b(this,"t",this._.bind(this)),null!=e.missing&&(this._missing=e.missing),null!=e.messages&&this.load(e.messages),null!=e.localeData&&this.loadLocaleData(e.localeData),("string"==typeof e.locale||e.locales)&&this.activate(e.locale??s,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(e,t){const r=this._localeData[e];r?Object.assign(r,t):this._localeData[e]=t}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,t){"string"==typeof e?this._loadLocaleData(e,t):Object.keys(e).forEach((t=>this._loadLocaleData(t,e[t]))),this.emit("change")}_load(e,t){const r=this._messages[e];r?Object.assign(r,t):this._messages[e]=t}load(e,t){"string"==typeof e&&"object"==typeof t?this._load(e,t):Object.entries(e).forEach((([e,t])=>this._load(e,t))),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:r}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t,r){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let n=r?.message;e||(e=""),o(e)||(t=e.values||t,n=e.message,e=e.id);const i=this.messages[e],s=void 0===i,a=this._missing;if(a&&s)return"function"==typeof a?a(this._locale,e):a;s&&this.emit("missing",{id:e,locale:this._locale});let c=i||n||e;return o(c)&&(this._messageCompiler?c=this._messageCompiler(c):console.warn(`Uncompiled message detected! Message:\n\n> ${c}\n\nThat means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.\nICU features such as interpolation and plurals will not work properly for that message. \n\nPlease compile your catalog first. \n`)),o(c)&&p.test(c)?JSON.parse(`"${c}"`):o(c)?c:y(c,this._locale,this._locales)(t,r?.formats)}date(e,t){return c(this._locales||this._locale,e,t)}number(e,t){return u(this._locales||this._locale,e,t)}}function x(e={}){return new E(e)}x()},17804:function(e,t,r){"use strict";r.d(t,{bd:function(){return p},cC:function(){return g},mV:function(){return h}});var n=r(18359);const o=/<([a-zA-Z0-9]+)>([\s\S]*?)<\/\1>|<([a-zA-Z0-9]+)\/>/,i={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0};function s(e,t={}){const r=c(0,"$lingui$"),l=e.split(o);if(1===l.length)return e;const u=[],f=l.shift();f&&u.push(f);for(const[e,o,c]of a(l)){let a=void 0!==e?t[e]:void 0;(!a||i[a.type]&&o)&&(a?console.error(`${a.type} is a void element tag therefore it must have no children`):console.error(`Can't use element at index '${e}' as it is not declared in the original translation`),a=n.createElement(n.Fragment)),Array.isArray(a)&&(a=n.createElement(n.Fragment,{},a)),u.push(n.cloneElement(a,{key:r()},o?s(o,t):a.props.children)),c&&u.push(c)}return 1===u.length?u[0]:u}function a(e){if(!e.length)return[];const[t,r,n,o]=e.slice(0,4);return[[t||n,r||"",o]].concat(a(e.slice(4,e.length)))}const c=(e=0,t="")=>()=>`${t}_${e++}`;function l(e){const{render:t,component:r,id:o,message:i,formats:a,lingui:{i18n:c,defaultComponent:l}}=e,f={...e.values},d={...e.components};f&&Object.keys(f).forEach((e=>{const t=Object.keys(d).length;"string"!=typeof f[e]&&"number"!=typeof f[e]&&(d[t]=n.createElement(n.Fragment,null,f[e]),f[e]=`<${t}/>`)}));const h=c&&"function"==typeof c._?c._(o,f,{message:i,formats:a}):o,p=h?s(h,d):null;if(null===t||null===r)return p;const g=l||u,m={id:o,message:i,translation:p,children:p};if(t&&r)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(t&&"function"!=typeof t)console.error(`Invalid value supplied to prop \`render\`. It must be a function, provided ${t}`);else if(r&&"function"!=typeof r)return console.error(`Invalid value supplied to prop \`component\`. It must be a React component, provided ${r}`),n.createElement(g,m,p);if("function"==typeof t)return t(m);const y=r||g;return n.createElement(y,m,p)}const u=({children:e})=>n.createElement(n.Fragment,null,e),f=n.createContext(null),d=e=>n.useContext(f);function h(){return d()}const p=({i18n:e,defaultComponent:t,children:r})=>{const o=n.useRef(e.locale),i=n.useCallback((()=>({i18n:e,defaultComponent:t,_:e.t.bind(e)})),[e,t]),[s,a]=n.useState(i());return n.useEffect((()=>{const t=()=>{o.current=e.locale,a(i())},r=e.on("change",t);return o.current!==e.locale&&t(),r}),[e,i]),o.current?n.createElement(f.Provider,{value:s},r):null};function g(e){const t=d();return n.createElement(l,{...e,lingui:t})}},26877:function(e,t,r){"use strict";r.d(t,{$l:function(){return s},BN:function(){return I},DY:function(){return h},Fs:function(){return P},J$:function(){return F},JN:function(){return v},LI:function(){return R},PM:function(){return l},UG:function(){return W},W6:function(){return O},i_:function(){return i},kY:function(){return G},ko:function(){return Y},kw:function(){return T},mf:function(){return c},o8:function(){return a},qC:function(){return A},s6:function(){return J},sj:function(){return L},u3:function(){return D},u_:function(){return U},w6:function(){return S},xD:function(){return Q}});var n=r(18359);const o=()=>{},i=o(),s=Object,a=e=>e===i,c=e=>"function"==typeof e,l=(e,t)=>({...e,...t}),u=new WeakMap;let f=0;const d=e=>{const t=typeof e,r=e&&e.constructor,n=r==Date;let o,i;if(s(e)!==e||n||r==RegExp)o=n?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=u.get(e),o)return o;if(o=++f+"~",u.set(e,o),r==Array){for(o="@",i=0;i{const r=h.get(e);return[()=>!a(t)&&e.get(t)||p,n=>{if(!a(t)){const o=e.get(t);t in g||(g[t]=o),r[5](t,l(o,n),o||p)}},r[6],()=>!a(t)&&t in g?g[t]:!a(t)&&e.get(t)||p]};let k=!0;const[b,E]=y&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],x={isOnline:()=>k,isVisible:()=>{const e=w&&document.visibilityState;return a(e)||"hidden"!==e}},_={initFocus:e=>(w&&document.addEventListener("visibilitychange",e),b("focus",e),()=>{w&&document.removeEventListener("visibilitychange",e),E("focus",e)}),initReconnect:e=>{const t=()=>{k=!0,e()},r=()=>{k=!1};return b("online",t),b("offline",r),()=>{E("online",t),E("offline",r)}}},S=!n.useId,O=!y||"Deno"in window,T=e=>y&&typeof window.requestAnimationFrame!=m?window.requestAnimationFrame(e):setTimeout(e,1),R=O?n.useEffect:n.useLayoutEffect,C="undefined"!=typeof navigator&&navigator.connection,M=!O&&C&&(["slow-2g","2g"].includes(C.effectiveType)||C.saveData),A=e=>{if(c(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?d(e):"",t]};let $=0;const D=()=>++$;var L={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function I(...e){const[t,r,n,o]=e,s=l({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let u=s.populateCache;const f=s.rollbackOnError;let d=s.optimisticData;const p=s.throwOnError;if(c(r)){const e=r,n=[],o=t.keys();for(const r of o)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&n.push(r);return Promise.all(n.map(g))}return g(r);async function g(r){const[o]=A(r);if(!o)return;const[l,g]=v(t,o),[m,y,w,k]=h.get(t),b=()=>{const e=m[o];return(c(s.revalidate)?s.revalidate(l().data,r):!1!==s.revalidate)&&(delete w[o],delete k[o],e&&e[0])?e[0](2).then((()=>l().data)):l().data};if(e.length<3)return b();let E,x=n;const _=D();y[o]=[_,0];const S=!a(d),O=l(),T=O.data,R=O._c,C=a(R)?T:R;if(S&&(d=c(d)?d(C,T):d,g({data:d,_c:C})),c(x))try{x=x(C)}catch(e){E=e}if(x&&c(x.then)){if(x=await x.catch((e=>{E=e})),_!==y[o][0]){if(E)throw E;return x}E&&S&&(e=>"function"==typeof f?f(e):!1!==f)(E)&&(u=!0,g({data:C,_c:i}))}if(u&&!E)if(c(u)){const e=u(x,C);g({data:e,error:i,_c:i})}else g({data:x,error:i,_c:i});if(y[o][1]=D(),Promise.resolve(b()).then((()=>{g({_c:i})})),!E)return x;if(p)throw E}}const j=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},N=(e,t)=>{if(!h.has(e)){const r=l(_,t),n={},s=I.bind(i,e);let a=o;const c={},u=(e,t)=>{const r=c[e]||[];return c[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},f=(t,r,n)=>{e.set(t,r);const o=c[t];if(o)for(const e of o)e(r,n)},d=()=>{if(!h.has(e)&&(h.set(e,[n,{},{},{},s,f,u]),!O)){const t=r.initFocus(setTimeout.bind(i,j.bind(i,n,0))),o=r.initReconnect(setTimeout.bind(i,j.bind(i,n,1)));a=()=>{t&&t(),o&&o(),h.delete(e)}}};return d(),[e,s,d,a]}return[e,h.get(e)[4]]},[P,q]=N(new Map),U=l({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,r,n,o)=>{const i=r.errorRetryCount,s=o.retryCount,c=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;!a(i)&&s>i||setTimeout(n,c,o)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:M?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:M?5e3:3e3,compare:(e,t)=>d(e)==d(t),isPaused:()=>!1,cache:P,mutate:q,fallback:{}},x),V=(e,t)=>{const r=l(e,t);if(t){const{use:n,fallback:o}=e,{use:i,fallback:s}=t;n&&i&&(r.use=n.concat(i)),o&&s&&(r.fallback=l(o,s))}return r},B=(0,n.createContext)({}),F=e=>{const{value:t}=e,r=(0,n.useContext)(B),o=c(t),s=(0,n.useMemo)((()=>o?t(r):t),[o,r,t]),a=(0,n.useMemo)((()=>o?s:V(r,s)),[o,r,s]),u=s&&s.provider,f=(0,n.useRef)(i);u&&!f.current&&(f.current=N(u(a.cache||P),s));const d=f.current;return d&&(a.cache=d[0],a.mutate=d[1]),R((()=>{if(d)return d[2]&&d[2](),d[3]}),[]),(0,n.createElement)(B.Provider,l(e,{value:a}))},W="$inf$",z=y&&window.__SWR_DEVTOOLS_USE__,Z=z?window.__SWR_DEVTOOLS_USE__:[],H=e=>c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],G=()=>l(U,(0,n.useContext)(B)),K=Z.concat((e=>(t,r,n)=>e(t,r&&((...e)=>{const[n]=A(t),[,,,o]=h.get(P);if(n.startsWith(W))return r(...e);const i=o[n];return a(i)?r(...e):(delete o[n],i)}),n))),J=e=>function(...t){const r=G(),[n,o,i]=H(t),s=V(r,i);let a=e;const{use:c}=s,l=(c||[]).concat(K);for(let e=l.length;e--;)a=l[e](a);return a(n,o||s.fetcher||null,s)},Y=(e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},Q=(e,t)=>(...r)=>{const[n,o,i]=H(r),s=(i.use||[]).concat(t);return e(n,o,{...i,use:s})};z&&(window.__SWR_DEVTOOLS_REACT__=n)},52901:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},kY:function(){return i.kY}});var n=r(18359),o=r(95612),i=r(26877);const s=n.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),a={dedupe:!0},c=(i.$l.defineProperty(i.J$,"defaultValue",{value:i.u_}),(0,i.s6)(((e,t,r)=>{const{cache:c,compare:l,suspense:u,fallbackData:f,revalidateOnMount:d,revalidateIfStale:h,refreshInterval:p,refreshWhenHidden:g,refreshWhenOffline:m,keepPreviousData:y}=r,[w,v,k,b]=i.DY.get(c),[E,x]=(0,i.qC)(e),_=(0,n.useRef)(!1),S=(0,n.useRef)(!1),O=(0,n.useRef)(E),T=(0,n.useRef)(t),R=(0,n.useRef)(r),C=()=>R.current,M=()=>C().isVisible()&&C().isOnline(),[A,$,D,L]=(0,i.JN)(c,E),I=(0,n.useRef)({}).current,j=(0,i.o8)(f)?r.fallback[E]:f,N=(e,t)=>{for(const r in I){const n=r;if("data"===n){if(!l(e[n],t[n])){if(!(0,i.o8)(e[n]))return!1;if(!l(Z,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},P=(0,n.useMemo)((()=>{const e=!!E&&!!t&&((0,i.o8)(d)?!C().isPaused()&&!u&&(!!(0,i.o8)(h)||h):d),r=t=>{const r=(0,i.PM)(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},n=A(),o=L(),s=r(n),a=n===o?s:r(o);let c=s;return[()=>{const e=r(A());return N(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>a]}),[c,E]),q=(0,o.useSyncExternalStore)((0,n.useCallback)((e=>D(E,((t,r)=>{N(r,t)||e()}))),[c,E]),P[0],P[1]),U=!_.current,V=w[E]&&w[E].length>0,B=q.data,F=(0,i.o8)(B)?j:B,W=q.error,z=(0,n.useRef)(F),Z=y?(0,i.o8)(B)?z.current:B:F,H=!(V&&!(0,i.o8)(W))&&(U&&!(0,i.o8)(d)?d:!C().isPaused()&&(u?!(0,i.o8)(F)&&h:(0,i.o8)(F)||h)),G=!!(E&&t&&U&&H),K=(0,i.o8)(q.isValidating)?G:q.isValidating,J=(0,i.o8)(q.isLoading)?G:q.isLoading,Y=(0,n.useCallback)((async e=>{const t=T.current;if(!E||!t||S.current||C().isPaused())return!1;let n,o,s=!0;const a=e||{},c=!k[E]||!a.dedupe,u=()=>i.w6?!S.current&&E===O.current&&_.current:E===O.current,f={isValidating:!1,isLoading:!1},d=()=>{$(f)},h=()=>{const e=k[E];e&&e[1]===o&&delete k[E]},p={isValidating:!0};(0,i.o8)(A().data)&&(p.isLoading=!0);try{if(c&&($(p),r.loadingTimeout&&(0,i.o8)(A().data)&&setTimeout((()=>{s&&u()&&C().onLoadingSlow(E,r)}),r.loadingTimeout),k[E]=[t(x),(0,i.u3)()]),[n,o]=k[E],n=await n,c&&setTimeout(h,r.dedupingInterval),!k[E]||k[E][1]!==o)return c&&u()&&C().onDiscarded(E),!1;f.error=i.i_;const e=v[E];if(!(0,i.o8)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return d(),c&&u()&&C().onDiscarded(E),!1;const a=A().data;f.data=l(a,n)?a:n,c&&u()&&C().onSuccess(n,E,r)}catch(e){h();const t=C(),{shouldRetryOnError:r}=t;t.isPaused()||(f.error=e,c&&u()&&(t.onError(e,E,t),(!0===r||(0,i.mf)(r)&&r(e))&&(C().revalidateOnFocus&&C().revalidateOnReconnect&&!M()||t.onErrorRetry(e,E,t,(e=>{const t=w[E];t&&t[0]&&t[0](i.sj.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0}))))}return s=!1,d(),!0}),[E,c]),Q=(0,n.useCallback)(((...e)=>(0,i.BN)(c,O.current,...e)),[]);if((0,i.LI)((()=>{T.current=t,R.current=r,(0,i.o8)(B)||(z.current=B)})),(0,i.LI)((()=>{if(!E)return;const e=Y.bind(i.i_,a);let t=0;const r=(0,i.ko)(E,w,((r,n={})=>{if(r==i.sj.FOCUS_EVENT){const r=Date.now();C().revalidateOnFocus&&r>t&&M()&&(t=r+C().focusThrottleInterval,e())}else if(r==i.sj.RECONNECT_EVENT)C().revalidateOnReconnect&&M()&&e();else{if(r==i.sj.MUTATE_EVENT)return Y();if(r==i.sj.ERROR_REVALIDATE_EVENT)return Y(n)}}));return S.current=!1,O.current=E,_.current=!0,$({_k:x}),H&&((0,i.o8)(F)||i.W6?e():(0,i.kw)(e)),()=>{S.current=!0,r()}}),[E]),(0,i.LI)((()=>{let e;function t(){const t=(0,i.mf)(p)?p(A().data):p;t&&-1!==e&&(e=setTimeout(r,t))}function r(){A().error||!g&&!C().isVisible()||!m&&!C().isOnline()?t():Y(a).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[p,g,m,E]),(0,n.useDebugValue)(Z),u&&(0,i.o8)(F)&&E){if(!i.w6&&i.W6)throw new Error("Fallback data is required when using suspense in SSR.");T.current=t,R.current=r,S.current=!1;const e=b[E];if(!(0,i.o8)(e)){const t=Q(e);s(t)}if(!(0,i.o8)(W))throw W;{const e=Y(a);(0,i.o8)(Z)||(e.status="fulfilled",e.value=!0),s(e)}}return{mutate:Q,get data(){return I.data=!0,Z},get error(){return I.error=!0,W},get isValidating(){return I.isValidating=!0,K},get isLoading(){return I.isLoading=!0,J}}})))},47803:function(e,t,r){"use strict";r.d(t,{S:function(){return m}});var n=r(38659);class o extends Error{constructor(e,t,r){super(e),this.token=t,this.type=r||"error"}}const i=e=>e<4?"short":4===e?"long":"narrow",s=e=>e%2==0?"2-digit":"numeric";function a(e,t){switch(e.width){case 1:return"numeric";case 2:return"2-digit";case 3:return"short";case 4:return"long";case 5:return"narrow";default:return void t(`${e.desc} is not supported with width ${e.width}`)}}function c(e,t){const{char:r,desc:n,width:o}=e;return"d"===r?s(o):void t(`${n} is not supported`)}function l(e,t){const{char:r,desc:n,width:s}=e;if(("c"===r||"e"===r)&&s<3){t(`Numeric value is not supported for ${n}; falling back to weekday:short`,o.WARNING)}return i(s)}function u(e,t){const{char:r,desc:n,width:o}=e;switch(r){case"v":case"z":return 4===o?"long":"short";case"V":return 4===o?"long":void t(`${n} is not supported with width ${o}`);case"X":return void t(`${n} is not supported`)}return"short"}function f(e,t){switch(e.field){case"era":return{era:i(e.width)};case"year":return function(e,t){switch(e.char){case"y":return{year:s(e.width)};case"r":return{calendar:"gregory",year:"numeric"};default:return t(`${e.desc} is not supported; falling back to year:numeric`,o.WARNING),{year:"numeric"}}}(e,t);case"month":return{month:a(e,t)};case"day":return{day:c(e,t)};case"weekday":return{weekday:l(e,t)};case"period":return;case"hour":return function(e){const t=s(e.width);let r;switch(e.char){case"h":r="h12";break;case"H":r="h23";break;case"k":r="h24";break;case"K":r="h11"}return r?{hour:t,hourCycle:r}:{hour:t}}(e);case"min":return{minute:s(e.width)};case"sec":return{second:s(e.width)};case"tz":return{timeZoneName:u(e,t)};case"quarter":case"week":case"sec-frac":case"ms":t(`${e.desc} is not supported`)}}const d={G:{field:"era",desc:"Era"},y:{field:"year",desc:"Year"},Y:{field:"year",desc:'Year of "Week of Year"'},u:{field:"year",desc:"Extended year"},U:{field:"year",desc:"Cyclic year name"},r:{field:"year",desc:"Related Gregorian year"},Q:{field:"quarter",desc:"Quarter"},q:{field:"quarter",desc:"Stand-alone quarter"},M:{field:"month",desc:"Month in year"},L:{field:"month",desc:"Stand-alone month in year"},w:{field:"week",desc:"Week of year"},W:{field:"week",desc:"Week of month"},d:{field:"day",desc:"Day in month"},D:{field:"day",desc:"Day of year"},F:{field:"day",desc:"Day of week in month"},g:{field:"day",desc:"Modified julian day"},E:{field:"weekday",desc:"Day of week"},e:{field:"weekday",desc:"Local day of week"},c:{field:"weekday",desc:"Stand-alone local day of week"},a:{field:"period",desc:"AM/PM marker"},b:{field:"period",desc:"AM/PM/noon/midnight marker"},B:{field:"period",desc:"Flexible day period"},h:{field:"hour",desc:"Hour in AM/PM (1~12)"},H:{field:"hour",desc:"Hour in day (0~23)"},k:{field:"hour",desc:"Hour in day (1~24)"},K:{field:"hour",desc:"Hour in AM/PM (0~11)"},j:{field:"hour",desc:"Hour in preferred cycle"},J:{field:"hour",desc:"Hour in preferred cycle without marker"},C:{field:"hour",desc:"Hour in preferred cycle with flexible marker"},m:{field:"min",desc:"Minute in hour"},s:{field:"sec",desc:"Second in minute"},S:{field:"sec-frac",desc:"Fractional second"},A:{field:"ms",desc:"Milliseconds in day"},z:{field:"tz",desc:"Time Zone: specific non-location"},Z:{field:"tz",desc:"Time Zone"},O:{field:"tz",desc:"Time Zone: localized"},v:{field:"tz",desc:"Time Zone: generic non-location"},V:{field:"tz",desc:"Time Zone: ID"},X:{field:"tz",desc:"Time Zone: ISO8601 with Z"},x:{field:"tz",desc:"Time Zone: ISO8601"}},h=e=>e>="A"&&e<="Z"||e>="a"&&e<="z";function p(e,t){const r=e[t];if(!r)return null;if(h(r))return function(e,t){const r=e[t];let n=1;for(;e[++t]===r;)++n;const o=d[r];if(!o)return{char:r,error:new Error(`The letter ${r} is not a valid field identifier`),width:n};return{char:r,field:o.field,desc:o.desc,width:n}}(e,t);if("'"===r)return function(e,t){let r=e[++t],n=2;if("'"===r)return{char:"'",str:r,width:n};for(;;){const o=e[++t];if(++n,void 0===o)return{char:"'",error:new Error(`Unterminated quoted literal in pattern: ${r||e}`),str:r,width:n};if("'"===o){if("'"!==e[++t])return{char:"'",str:r,width:n};++n}r+=o}}(e,t);let n=r,o=1;for(;;){const i=e[++t];if(!i||h(i)||"'"===i)return{char:r,str:n,width:o};n+=i,o+=1}}function g(e,t){return e.filter((e=>"content"!==e.type)).length?e.map((e=>{if("content"===e.type)return t(e.value);if("octothorpe"===e.type)return"#";if("argument"===e.type)return[e.arg];if("function"===e.type){const t=e?.param?.[0];if("date"===e.key&&t){const r=function(e,t){if(/^::/.test(e)){const r=function(e){const t=[];let r=0;for(;;){const n=p(e,r);if(!n)return t;t.push(n),r+=n.width}}(e.substring(2));return function(e,t,r=(e=>{throw e})){const n={timeZone:t},i=[];for(const t of e){const{error:e,field:s,str:a}=t;if(e){const n=new o(e.message,t);n.stack=e.stack,r(n)}a&&r(new o(`Ignoring string part: ${a}`,t,o.WARNING)),s&&(-1===i.indexOf(s)?i.push(s):r(new o(`Duplicate ${s} token`,t)));const c=f(t,((e,n)=>r(new o(e,t,n))));c&&Object.assign(n,c)}return n}(r,void 0,t)}return e}(t.value.trim(),(e=>{throw new Error(`Unable to compile date expression: ${e.message}`)}));return[e.arg,e.key,r]}return t?[e.arg,e.key,t.value.trim()]:[e.arg,e.key]}const r=e.pluralOffset,n={};return e.cases.forEach((({key:e,tokens:r})=>{const o="="===e[0]?e.slice(1):e;n[o]=g(r,t)})),[e.arg,e.type,{offset:r,...n}]})):e.map((e=>t(e.value)))}function m(e,t=(e=>e)){try{return function(e,t=(e=>e)){return g((0,n.Qc)(e),t)}(e,t)}catch(t){return console.error(`${t.message} \n\nMessage: ${e}`),[e]}}}}]);