(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5431],{40248:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return u},ACTION_RESTORE:function(){return l},ACTION_SERVER_PATCH:function(){return f},ACTION_PREFETCH:function(){return a},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return i}});let o="refresh",u="navigate",l="restore",f="server-patch",a="prefetch",c="fast-refresh",i="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4451:function(e,t){"use strict";function n(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27626:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return C}});let r=n(8266),o=r._(n(50959)),u=n(40313),l=n(79513),f=n(63129),a=n(87211),c=n(41253),i=n(51886),s=n(83010),d=n(67018),p=n(4451),h=n(66713),y=n(40248),_=new Set;function v(e,t,n,r,o,u){if(!u&&!(0,l.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let o=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,u=t+"%"+n+"%"+o;if(_.has(u))return;_.add(u)}let f=u?e.prefetch(t,o):e.prefetch(t,n,r);Promise.resolve(f).catch(e=>{})}function b(e){return"string"==typeof e?e:(0,f.formatUrl)(e)}let E=o.default.forwardRef(function(e,t){let n,r;let{href:f,as:_,children:E,prefetch:C=null,passHref:O,replace:T,shallow:P,scroll:R,locale:A,onClick:g,onMouseEnter:j,onTouchStart:m,legacyBehavior:M=!1,...k}=e;n=E,M&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let L=o.default.useContext(i.RouterContext),N=o.default.useContext(s.AppRouterContext),S=null!=L?L:N,I=!L,x=!1!==C,U=null===C?y.PrefetchKind.AUTO:y.PrefetchKind.FULL,{href:K,as:F}=o.default.useMemo(()=>{if(!L){let e=b(f);return{href:e,as:_?b(_):e}}let[e,t]=(0,u.resolveHref)(L,f,!0);return{href:e,as:_?(0,u.resolveHref)(L,_):t||e}},[L,f,_]),H=o.default.useRef(K),w=o.default.useRef(F);M&&(r=o.default.Children.only(n));let D=M?r&&"object"==typeof r&&r.ref:t,[V,B,G]=(0,d.useIntersection)({rootMargin:"200px"}),Y=o.default.useCallback(e=>{(w.current!==F||H.current!==K)&&(G(),w.current=F,H.current=K),V(e),D&&("function"==typeof D?D(e):"object"==typeof D&&(D.current=e))},[F,D,K,G,V]);o.default.useEffect(()=>{S&&B&&x&&v(S,K,F,{locale:A},{kind:U},I)},[F,K,B,A,x,null==L?void 0:L.locale,S,I,U]);let q={ref:Y,onClick(e){M||"function"!=typeof g||g(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),S&&!e.defaultPrevented&&function(e,t,n,r,u,f,a,c,i,s){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!i&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let h=()=>{"beforePopState"in t?t[u?"replace":"push"](n,r,{shallow:f,locale:c,scroll:a}):t[u?"replace":"push"](r||n,{forceOptimisticNavigation:!s})};i?o.default.startTransition(h):h()}(e,S,K,F,T,P,R,A,I,x)},onMouseEnter(e){M||"function"!=typeof j||j(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),S&&(x||!I)&&v(S,K,F,{locale:A,priority:!0,bypassPrefetchedCheck:!0},{kind:U},I)},onTouchStart(e){M||"function"!=typeof m||m(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),S&&(x||!I)&&v(S,K,F,{locale:A,priority:!0,bypassPrefetchedCheck:!0},{kind:U},I)}};if((0,a.isAbsoluteUrl)(F))q.href=F;else if(!M||O||"a"===r.type&&!("href"in r.props)){let e=void 0!==A?A:null==L?void 0:L.locale,t=(null==L?void 0:L.isLocaleDomain)&&(0,p.getDomainLocale)(F,e,null==L?void 0:L.locales,null==L?void 0:L.domainLocales);q.href=t||(0,h.addBasePath)((0,c.addLocale)(F,e,null==L?void 0:L.defaultLocale))}return M?o.default.cloneElement(r,q):o.default.createElement("a",{...k,...q},n)}),C=E;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25431:function(e,t,n){e.exports=n(27626)}}]);