/*! For license information please see 0fadd37e00072821e4c0.js.LICENSE.txt */ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[191],{79655:(e,t,n)=>{var r;n.d(t,{OL:()=>w,VK:()=>h,lr:()=>R,rU:()=>m});var a=n(67294),o=n(89250),i=n(12599);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}function s(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const u=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],f=["aria-current","caseSensitive","className","end","style","to","children"];const p=(r||(r=n.t(a,2))).startTransition;function h(e){let{basename:t,children:n,future:r,window:c}=e,l=a.useRef();null==l.current&&(l.current=(0,i.lX)({window:c,v5Compat:!0}));let s=l.current,[u,f]=a.useState({action:s.action,location:s.location}),{v7_startTransition:h}=r||{},v=a.useCallback((e=>{h&&p?p((()=>f(e))):f(e)}),[f,h]);return a.useLayoutEffect((()=>s.listen(v)),[s,v]),a.createElement(o.F0,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:s})}const v="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,d=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,m=a.forwardRef((function(e,t){let n,{onClick:r,relative:s,reloadDocument:f,replace:p,state:h,target:m,to:w,preventScrollReset:g}=e,y=l(e,u),{basename:R}=a.useContext(o.Us),b=!1;if("string"==typeof w&&d.test(w)&&(n=w,v))try{let e=new URL(window.location.href),t=w.startsWith("//")?new URL(e.protocol+w):new URL(w),n=(0,i.Zn)(t.pathname,R);t.origin===e.origin&&null!=n?w=n+t.search+t.hash:b=!0}catch(e){}let S=(0,o.oQ)(w,{relative:s}),U=function(e,t){let{target:n,replace:r,state:c,preventScrollReset:l,relative:s}=void 0===t?{}:t,u=(0,o.s0)(),f=(0,o.TH)(),p=(0,o.WU)(e,{relative:s});return a.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,i.Ep)(f)===(0,i.Ep)(p);u(e,{replace:n,state:c,preventScrollReset:l,relative:s})}}),[f,u,p,r,c,n,e,l,s])}(w,{replace:p,state:h,target:m,preventScrollReset:g,relative:s});return a.createElement("a",c({},y,{href:n||S,onClick:b||f?r:function(e){r&&r(e),e.defaultPrevented||U(e)},ref:t,target:m}))}));const w=a.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:i="",end:s=!1,style:u,to:p,children:h}=e,v=l(e,f),d=(0,o.WU)(p,{relative:v.relative}),w=(0,o.TH)(),g=a.useContext(o.FR),{navigator:y}=a.useContext(o.Us),R=y.encodeLocation?y.encodeLocation(d).pathname:d.pathname,b=w.pathname,S=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(b=b.toLowerCase(),S=S?S.toLowerCase():null,R=R.toLowerCase());let U,C=b===R||!s&&b.startsWith(R)&&"/"===b.charAt(R.length),k=null!=S&&(S===R||!s&&S.startsWith(R)&&"/"===S.charAt(R.length)),L=C?n:void 0;U="function"==typeof i?i({isActive:C,isPending:k}):[i,C?"active":null,k?"pending":null].filter(Boolean).join(" ");let A="function"==typeof u?u({isActive:C,isPending:k}):u;return a.createElement(m,c({},v,{"aria-current":L,className:U,ref:t,style:A,to:p}),"function"==typeof h?h({isActive:C,isPending:k}):h)}));var g,y;function R(e){let t=a.useRef(s(e)),n=a.useRef(!1),r=(0,o.TH)(),i=a.useMemo((()=>function(e,t){let n=s(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),c=(0,o.s0)(),l=a.useCallback(((e,t)=>{const r=s("function"==typeof e?e(i):e);n.current=!0,c("?"+r,t)}),[c,i]);return[i,l]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(g||(g={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(y||(y={}))}}]);