"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["vendors-node_modules_react-router-dom_dist_index_js"],{79655:(e,t,n)=>{n.d(t,{OL:()=>x,aj:()=>w,fW:()=>h,gs:()=>k,lr:()=>C,pG:()=>T,rU:()=>_,yq:()=>U});var i,r,a,o,s=n(67294),l=n(73935),c=n(89250),u=n(12599);/** * React Router DOM v6.20.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(r[n]=e[n]);return r}function h(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 i=e[n];return t.concat(Array.isArray(i)?i.map(e=>[n,e]):[[n,i]])},[]))}let v=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],p=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];function w(e,t){var n;let i;return(0,u.p7)({basename:null==t?void 0:t.basename,future:f({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,u.lX)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||((i=null==(n=window)?void 0:n.__staticRouterHydrationData)&&i.errors&&(i=f({},i,{errors:function(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,i]of t)if(i&&"RouteErrorResponse"===i.__type)n[e]=new u.OF(i.status,i.statusText,i.data,!0===i.internal);else if(i&&"Error"===i.__type){if(i.__subType){let t=window[i.__subType];if("function"==typeof t)try{let r=new t(i.message);r.stack="",n[e]=r}catch(e){}}if(null==n[e]){let t=Error(i.message);t.stack="",n[e]=t}}else n[e]=i;return n}(i.errors)})),i),routes:e,mapRouteProperties:c.us,window:null==t?void 0:t.window}).initialize()}let m=s.createContext({isTransitioning:!1}),y=s.createContext(new Map),g=(i||(i=n.t(s,2))).startTransition,L=(r||(r=n.t(l,2))).flushSync;function b(e){L?L(e):e()}let Deferred=class Deferred{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}};function T(e){let{fallbackElement:t,router:n,future:i}=e,[r,a]=s.useState(n.state),[o,l]=s.useState(),[u,f]=s.useState({isTransitioning:!1}),[d,h]=s.useState(),[v,p]=s.useState(),[w,L]=s.useState(),T=s.useRef(new Map),{v7_startTransition:E}=i||{},R=s.useCallback(e=>{E&&g?g(e):e()},[E]),_=s.useCallback((e,t)=>{let{deletedFetchers:i,unstable_flushSync:r,unstable_viewTransitionOpts:o}=t;i.forEach(e=>T.current.delete(e)),e.fetchers.forEach((e,t)=>{void 0!==e.data&&T.current.set(t,e.data)});let s=null==n.window||"function"!=typeof n.window.document.startViewTransition;if(!o||s){r?b(()=>a(e)):R(()=>a(e));return}if(r){b(()=>{v&&(d&&d.resolve(),v.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})});let t=n.window.document.startViewTransition(()=>{b(()=>a(e))});t.finished.finally(()=>{b(()=>{h(void 0),p(void 0),l(void 0),f({isTransitioning:!1})})}),b(()=>p(t));return}v?(d&&d.resolve(),v.skipTransition(),L({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(l(e),f({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))},[n.window,v,d,T,R]);s.useLayoutEffect(()=>n.subscribe(_),[n,_]),s.useEffect(()=>{u.isTransitioning&&!u.flushSync&&h(new Deferred)},[u]),s.useEffect(()=>{if(d&&o&&n.window){let e=d.promise,t=n.window.document.startViewTransition(async()=>{R(()=>a(o)),await e});t.finished.finally(()=>{h(void 0),p(void 0),l(void 0),f({isTransitioning:!1})}),p(t)}},[R,o,d,n.window]),s.useEffect(()=>{d&&o&&r.location.key===o.location.key&&d.resolve()},[d,v,r.location,o]),s.useEffect(()=>{!u.isTransitioning&&w&&(l(w.state),f({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),L(void 0))},[u.isTransitioning,w]);let x=s.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,i)=>n.navigate(e,{state:t,preventScrollReset:null==i?void 0:i.preventScrollReset}),replace:(e,t,i)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==i?void 0:i.preventScrollReset})}),[n]),k=n.basename||"/",C=s.useMemo(()=>({router:n,navigator:x,static:!1,basename:k}),[n,x,k]);return s.createElement(s.Fragment,null,s.createElement(c.w3.Provider,{value:C},s.createElement(c.FR.Provider,{value:r},s.createElement(y.Provider,{value:T.current},s.createElement(m.Provider,{value:u},s.createElement(c.F0,{basename:k,location:r.location,navigationType:r.historyAction,navigator:x},r.initialized?s.createElement(S,{routes:n.routes,state:r}):t))))),null)}function S(e){let{routes:t,state:n}=e;return(0,c.DY)(t,void 0,n)}let E="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,R=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_=s.forwardRef(function(e,t){let n,{onClick:i,relative:r,reloadDocument:a,replace:o,state:l,target:h,to:p,preventScrollReset:w,unstable_viewTransition:m}=e,y=d(e,v),{basename:g}=s.useContext(c.Us),L=!1;if("string"==typeof p&&R.test(p)&&(n=p,E))try{let e=new URL(window.location.href),t=new URL(p.startsWith("//")?e.protocol+p:p),n=(0,u.Zn)(t.pathname,g);t.origin===e.origin&&null!=n?p=n+t.search+t.hash:L=!0}catch(e){}let b=(0,c.oQ)(p,{relative:r}),T=k(p,{replace:o,state:l,target:h,preventScrollReset:w,relative:r,unstable_viewTransition:m});return s.createElement("a",f({},y,{href:n||b,onClick:L||a?i:function(e){i&&i(e),e.defaultPrevented||T(e)},ref:t,target:h}))}),x=s.forwardRef(function(e,t){let n,{"aria-current":i="page",caseSensitive:r=!1,className:o="",end:l=!1,style:h,to:v,unstable_viewTransition:w,children:y}=e,g=d(e,p),L=(0,c.WU)(v,{relative:g.relative}),b=(0,c.TH)(),T=s.useContext(c.FR),{navigator:S}=s.useContext(c.Us),E=null!=T&&function(e,t){var n;let i;void 0===t&&(t={});let r=s.useContext(m);null!=r||(0,u.J0)(!1);let{basename:o}=(n=a.useViewTransitionState,(i=s.useContext(c.w3))||(0,u.J0)(!1),i),l=(0,c.WU)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let f=(0,u.Zn)(r.currentLocation.pathname,o)||r.currentLocation.pathname,d=(0,u.Zn)(r.nextLocation.pathname,o)||r.nextLocation.pathname;return null!=(0,u.LX)(l.pathname,d)||null!=(0,u.LX)(l.pathname,f)}(L)&&!0===w,R=S.encodeLocation?S.encodeLocation(L).pathname:L.pathname,x=b.pathname,k=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;r||(x=x.toLowerCase(),k=k?k.toLowerCase():null,R=R.toLowerCase());let C="/"!==R&&R.endsWith("/")?R.length-1:R.length,U=x===R||!l&&x.startsWith(R)&&"/"===x.charAt(C),F=null!=k&&(k===R||!l&&k.startsWith(R)&&"/"===k.charAt(R.length)),j={isActive:U,isPending:F,isTransitioning:E},O=U?i:void 0;n="function"==typeof o?o(j):[o,U?"active":null,F?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let P="function"==typeof h?h(j):h;return s.createElement(_,f({},g,{"aria-current":O,className:n,ref:t,style:P,to:v,unstable_viewTransition:w}),"function"==typeof y?y(j):y)});function k(e,t){let{target:n,replace:i,state:r,preventScrollReset:a,relative:o,unstable_viewTransition:l}=void 0===t?{}:t,f=(0,c.s0)(),d=(0,c.TH)(),h=(0,c.WU)(e,{relative:o});return s.useCallback(t=>{0!==t.button||n&&"_self"!==n||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),f(e,{replace:void 0!==i?i:(0,u.Ep)(d)===(0,u.Ep)(h),state:r,preventScrollReset:a,relative:o,unstable_viewTransition:l}))},[d,f,h,i,r,n,e,a,o,l])}function C(e){let t=s.useRef(h(e)),n=s.useRef(!1),i=(0,c.TH)(),r=s.useMemo(()=>{var e,r;let a;return e=i.search,r=n.current?null:t.current,a=h(e),r&&r.forEach((e,t)=>{a.has(t)||r.getAll(t).forEach(e=>{a.append(t,e)})}),a},[i.search]),a=(0,c.s0)(),o=s.useCallback((e,t)=>{let i=h("function"==typeof e?e(r):e);n.current=!0,a("?"+i,t)},[a,r]);return[r,o]}!function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(a||(a={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(o||(o={}));function U(e,t){let{capture:n}=t||{};s.useEffect(()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,n])}}}]); //# sourceMappingURL=vendors-node_modules_react-router-dom_dist_index_js-f63a66d11bb9.js.map