(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9109],{61957:(e,t,r)=>{"use strict";function n(){return"undefined"!=typeof window}function i(){return(n()?window.vam:"production")||"production"}function o(){return"production"===i()}function u(e,t,r){var u,a;if(!n()){let e="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(o())console.warn(e);else throw Error(e);return}if(!t){null==(u=window.va)||u.call(window,"event",{name:e,options:r});return}try{let n=function(e,t){if(!e)return;let r=e,n=[];for(let[i,o]of Object.entries(e))"object"==typeof o&&null!==o&&(t.strip?r=function(e,{[e]:t,...r}){return r}(i,r):n.push(i));if(n.length>0&&!t.strip)throw Error(`The following properties are not valid: ${n.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return r}(t,{strip:o()});null==(a=window.va)||a.call(window,"event",{name:e,data:n,options:r})}catch(e){e instanceof Error&&"development"===i()&&console.error(e)}}r.d(t,{u4:()=>u}),r(73124)},39466:e=>{function t(e){return e&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return e}function n(e,n){let i=(n=n||{}).delimiter||".",o=n.maxDepth,u=n.transformKey||r,a={};return!function e(r,l,s){s=s||1,Object.keys(r).forEach(function(c){let f=r[c],d=n.safe&&Array.isArray(f),b=Object.prototype.toString.call(f),p=t(f),g=l?l+i+u(c):u(c);if(!d&&!p&&("[object Object]"===b||"[object Array]"===b)&&Object.keys(f).length&&(!n.maxDepth||s0&&(n=c(r.shift()),f=c(r[0]))}d[n]=e(i[t],o)}),s}},17730:(e,t,r)=>{"use strict";r.d(t,{default:()=>i.a});var n=r(40731),i=r.n(n)},27897:(e,t,r)=>{"use strict";r.d(t,{$X:()=>c,BE:()=>H,Es:()=>k,Ht:()=>Q,Tn:()=>l,X3:()=>j,ZH:()=>o,aw:()=>G,b0:()=>a,bZ:()=>p,bu:()=>x,dO:()=>S,lK:()=>C,lg:()=>D,mF:()=>F,mf:()=>V,qm:()=>z,qv:()=>u,r9:()=>m,rL:()=>s,sb:()=>W});var n=r(20282);let i=()=>{},o=i(),u=Object,a=e=>e===o,l=e=>"function"==typeof e,s=(e,t)=>({...e,...t}),c=e=>l(e.then),f=new WeakMap,d=0,b=e=>{let t,r;let n=typeof e,i=e&&e.constructor,o=i==Date;if(u(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=f.get(e))return t;if(t=++d+"~",f.set(e,t),i==Array){for(r=0,t="@";rw&&typeof window.requestAnimationFrame!=v,m=(e,t)=>{let r=p.get(e);return[()=>!a(t)&&e.get(t)||g,n=>{if(!a(t)){let i=e.get(t);t in E||(E[t]=i),r[5](t,s(i,n),i||g)}},r[6],()=>!a(t)&&t in E?E[t]:!a(t)&&e.get(t)||g]},O=!0,[_,R]=w&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i,i],T={initFocus:e=>(y&&document.addEventListener("visibilitychange",e),_("focus",e),()=>{y&&document.removeEventListener("visibilitychange",e),R("focus",e)}),initReconnect:e=>{let t=()=>{O=!0,e()},r=()=>{O=!1};return _("online",t),_("offline",r),()=>{R("online",t),R("offline",r)}}},S=!n.useId,j=!w||"Deno"in window,V=e=>h()?window.requestAnimationFrame(e):setTimeout(e,1),k=j?n.useEffect:n.useLayoutEffect,L="undefined"!=typeof navigator&&navigator.connection,A=!j&&L&&(["slow-2g","2g"].includes(L.effectiveType)||L.saveData),C=e=>{if(l(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?b(e):"",t]},N=0,D=()=>++N;var x={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function F(...e){let[t,r,n,i]=e,u=s({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),f=u.populateCache,d=u.rollbackOnError,b=u.optimisticData,g=e=>"function"==typeof d?d(e):!1!==d,E=u.throwOnError;if(l(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(v))}return v(r);async function v(r){let i;let[s]=C(r);if(!s)return;let[d,v]=m(t,s),[w,y,h,O]=p.get(t),_=()=>{let e=w[s];return(l(u.revalidate)?u.revalidate(d().data,r):!1!==u.revalidate)&&(delete h[s],delete O[s],e&&e[0])?e[0](2).then(()=>d().data):d().data};if(e.length<3)return _();let R=n,T=D();y[s]=[T,0];let S=!a(b),j=d(),V=j.data,k=j._c,L=a(k)?V:k;if(S&&v({data:b=l(b)?b(L,V):b,_c:L}),l(R))try{R=R(L)}catch(e){i=e}if(R&&c(R)){if(R=await R.catch(e=>{i=e}),T!==y[s][0]){if(i)throw i;return R}i&&S&&g(i)&&(f=!0,v({data:L,_c:o}))}if(f&&!i&&(l(f)?v({data:f(R,L),error:o,_c:o}):v({data:R,error:o,_c:o})),y[s][1]=D(),Promise.resolve(_()).then(()=>{v({_c:o})}),i){if(E)throw i;return}return R}}let I=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},P=(e,t)=>{if(!p.has(e)){let r=s(T,t),n={},u=F.bind(o,e),a=i,l={},c=(e,t)=>{let r=l[e]||[];return l[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},f=(t,r,n)=>{e.set(t,r);let i=l[t];if(i)for(let e of i)e(r,n)},d=()=>{if(!p.has(e)&&(p.set(e,[n,{},{},{},u,f,c]),!j)){let t=r.initFocus(setTimeout.bind(o,I.bind(o,n,0))),i=r.initReconnect(setTimeout.bind(o,I.bind(o,n,1)));a=()=>{t&&t(),i&&i(),p.delete(e)}}};return d(),[e,u,d,a]}return[e,p.get(e)[4]]},[M,q]=P(new Map),W=s({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:(e,t,r,n,i)=>{let o=r.errorRetryCount,u=i.retryCount,l=~~((Math.random()+.5)*(1<<(u<8?u:8)))*r.errorRetryInterval;(a(o)||!(u>o))&&setTimeout(n,l,i)},onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:A?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:A?5e3:3e3,compare:(e,t)=>b(e)==b(t),isPaused:()=>!1,cache:M,mutate:q,fallback:{}},{isOnline:()=>O,isVisible:()=>{let e=y&&document.visibilityState;return a(e)||"hidden"!==e}}),$=(e,t)=>{let r=s(e,t);if(t){let{use:n,fallback:i}=e,{use:o,fallback:u}=t;n&&o&&(r.use=n.concat(o)),i&&u&&(r.fallback=s(i,u))}return r},U=(0,n.createContext)({}),H=e=>{let{value:t}=e,r=(0,n.useContext)(U),i=l(t),u=(0,n.useMemo)(()=>i?t(r):t,[i,r,t]),a=(0,n.useMemo)(()=>i?u:$(r,u),[i,r,u]),c=u&&u.provider,f=(0,n.useRef)(o);c&&!f.current&&(f.current=P(c(a.cache||M),u));let d=f.current;return d&&(a.cache=d[0],a.mutate=d[1]),k(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,n.createElement)(U.Provider,s(e,{value:a}))},X=w&&window.__SWR_DEVTOOLS_USE__,Z=X?window.__SWR_DEVTOOLS_USE__:[],B=e=>l(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>s(W,(0,n.useContext)(U)),J=Z.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=C(t),[,,,i]=p.get(M);if(n.startsWith("$inf$"))return r(...e);let o=i[n];return a(o)?r(...e):(delete i[n],o)});return e(t,i,n)}),z=e=>function(...t){let r=K(),[n,i,o]=B(t),u=$(r,o),a=e,{use:l}=u,s=(l||[]).concat(J);for(let e=s.length;e--;)a=s[e](a);return a(n,i||u.fetcher||null,u)},G=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},Q=(e,t)=>(...r)=>{let[n,i,o]=B(r),u=(o.use||[]).concat(t);return e(n,i,{...o,use:u})};X&&(window.__SWR_DEVTOOLS_REACT__=n)},64681:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(20282),i=r(12434),o=r(27897);let u=n.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),a={dedupe:!0};o.qv.defineProperty(o.BE,"defaultValue",{value:o.sb});let l=(0,o.qm)((e,t,r)=>{let{cache:l,compare:s,suspense:c,fallbackData:f,revalidateOnMount:d,revalidateIfStale:b,refreshInterval:p,refreshWhenHidden:g,refreshWhenOffline:E,keepPreviousData:v}=r,[w,y,h,m]=o.bZ.get(l),[O,_]=(0,o.lK)(e),R=(0,n.useRef)(!1),T=(0,n.useRef)(!1),S=(0,n.useRef)(O),j=(0,n.useRef)(t),V=(0,n.useRef)(r),k=()=>V.current,L=()=>k().isVisible()&&k().isOnline(),[A,C,N,D]=(0,o.r9)(l,O),x=(0,n.useRef)({}).current,F=(0,o.b0)(f)?r.fallback[O]:f;F&&(0,o.$X)(F)&&(F=u(F));let I=(e,t)=>{for(let r in x)if("data"===r){if(!s(e[r],t[r])&&(!(0,o.b0)(e[r])||!s(Z,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},P=(0,n.useMemo)(()=>{let e=!!O&&!!t&&((0,o.b0)(d)?!k().isPaused()&&!c&&(!!(0,o.b0)(b)||b):d),r=t=>{let r=(0,o.rL)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=A(),i=D(),u=r(n),a=n===i?u:r(i),l=u;return[()=>{let e=r(A());return I(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>a]},[l,O]),M=(0,i.useSyncExternalStore)((0,n.useCallback)(e=>N(O,(t,r)=>{I(r,t)||e()}),[l,O]),P[0],P[1]),q=!R.current,W=w[O]&&w[O].length>0,$=M.data,U=(0,o.b0)($)?F:$,H=M.error,X=(0,n.useRef)(U),Z=v?(0,o.b0)($)?X.current:$:U,B=(!W||!!(0,o.b0)(H))&&(q&&!(0,o.b0)(d)?d:!k().isPaused()&&(c?!(0,o.b0)(U)&&b:(0,o.b0)(U)||b)),K=!!(O&&t&&q&&B),J=(0,o.b0)(M.isValidating)?K:M.isValidating,z=(0,o.b0)(M.isLoading)?K:M.isLoading,G=(0,n.useCallback)(async e=>{let t,n;let i=j.current;if(!O||!i||T.current||k().isPaused())return!1;let u=!0,a=e||{},l=!h[O]||!a.dedupe,c=()=>o.dO?!T.current&&O===S.current&&R.current:O===S.current,f={isValidating:!1,isLoading:!1},d=()=>{C(f)},b=()=>{let e=h[O];e&&e[1]===n&&delete h[O]},p={isValidating:!0};(0,o.b0)(A().data)&&(p.isLoading=!0);try{if(l&&(C(p),r.loadingTimeout&&(0,o.b0)(A().data)&&setTimeout(()=>{u&&c()&&k().onLoadingSlow(O,r)},r.loadingTimeout),h[O]=[i(_),(0,o.lg)()]),[t,n]=h[O],t=await t,l&&setTimeout(b,r.dedupingInterval),!h[O]||h[O][1]!==n)return l&&c()&&k().onDiscarded(O),!1;f.error=o.ZH;let e=y[O];if(!(0,o.b0)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return d(),l&&c()&&k().onDiscarded(O),!1;let a=A().data;f.data=s(a,t)?a:t,l&&c()&&k().onSuccess(t,O,r)}catch(r){b();let e=k(),{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=r,l&&c()&&(e.onError(r,O,e),(!0===t||(0,o.Tn)(t)&&t(r))&&(!k().revalidateOnFocus||!k().revalidateOnReconnect||L())&&e.onErrorRetry(r,O,e,e=>{let t=w[O];t&&t[0]&&t[0](o.bu.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return u=!1,d(),!0},[O,l]),Q=(0,n.useCallback)((...e)=>(0,o.mF)(l,S.current,...e),[]);if((0,o.Es)(()=>{j.current=t,V.current=r,(0,o.b0)($)||(X.current=$)}),(0,o.Es)(()=>{if(!O)return;let e=G.bind(o.ZH,a),t=0,r=(0,o.aw)(O,w,(r,n={})=>{if(r==o.bu.FOCUS_EVENT){let r=Date.now();k().revalidateOnFocus&&r>t&&L()&&(t=r+k().focusThrottleInterval,e())}else if(r==o.bu.RECONNECT_EVENT)k().revalidateOnReconnect&&L()&&e();else if(r==o.bu.MUTATE_EVENT)return G();else if(r==o.bu.ERROR_REVALIDATE_EVENT)return G(n)});return T.current=!1,S.current=O,R.current=!0,C({_k:_}),B&&((0,o.b0)(U)||o.X3?e():(0,o.mf)(e)),()=>{T.current=!0,r()}},[O]),(0,o.Es)(()=>{let e;function t(){let t=(0,o.Tn)(p)?p(A().data):p;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!A().error&&(g||k().isVisible())&&(E||k().isOnline())?G(a).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[p,g,E,O]),(0,n.useDebugValue)(Z),c&&(0,o.b0)(U)&&O){if(!o.dO&&o.X3)throw Error("Fallback data is required when using suspense in SSR.");j.current=t,V.current=r,T.current=!1;let e=m[O];if((0,o.b0)(e)||u(Q(e)),(0,o.b0)(H)){let e=G(a);(0,o.b0)(Z)||(e.status="fulfilled",e.value=!0),u(e)}else throw H}return{mutate:Q,get data(){return x.data=!0,Z},get error(){return x.error=!0,H},get isValidating(){return x.isValidating=!0,J},get isLoading(){return x.isLoading=!0,z}}}),s=(0,o.Ht)(l,e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(t,r,n)))},23227:(e,t,r)=>{"use strict";var n=r(20282),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,u=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a(function(){i.value=r,i.getSnapshot=t,s(i)&&c({inst:i})},[e,r,t]),u(function(){return s(i)&&c({inst:i}),e(function(){s(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},12434:(e,t,r)=>{"use strict";e.exports=r(23227)}}]);