PageSourceSearch

https://growtika.com/assets/router-DC17JV-w.js

js growtika.com collected 2026-10-03 21:21:58 UTC 35,862 bytes, 12 lines download raw bytes

1import{r as i}from"./react-vendor--0RGCJ5T.js";/**
2 * react-router v7.12.0
3 *
4 * Copyright (c) Remix Software Inc.
5 *
6 * This source code is licensed under the MIT license found in the
7 * LICENSE.md file in the root directory of this source tree.
8 *
9 * @license MIT
10 */var le="popstate";function Ne(e={}){function t(n,a){let{pathname:o,search:l,hash:s}=n.location;return X("",{pathname:o,search:l,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:_(a)}return Oe(t,r,null,e)}function E(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function P(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function De(){return Math.random().toString(36).substring(2,10)}function ie(e,t){return{usr:e.state,key:e.key,idx:t}}function X(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?O(t):t,state:r,key:t&&t.key||n||De()}}function _({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function O(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function Oe(e,t,r,n={}){let{window:a=document.defaultView,v5Compat:o=!1}=n,l=a.history,s="POP",u=null,c=d();c==null&&(c=0,l.replaceState({...l.state,idx:c},""));function d(){return(l.state||{idx:null}).idx}function f(){s="POP";let m=d(),v=m==null?null:m-c;c=m,u&&u({action:s,location:g.location,delta:v})}function h(m,v){s="PUSH";let w=X(g.location,m,v);c=d()+1;let p=ie(w,c),C=g.createHref(w);try{l.pushState(p,"",C)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;a.location.assign(C)}o&&u&&u({action:s,location:g.location,delta:1})}function y(m,v){s="REPLACE";let w=X(g.location,m,v);c=d();let p=ie(w,c),C=g.createHref(w);l.replaceState(p,"",C),o&&u&&u({action:s,location:g.location,delta:0})}function R(m){return Ie(m)}let g={get action(){return s},get location(){return e(a,l)},listen(m){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(le,f),u=m,()=>{a.removeEventListener(le,f),u=null}},createHref(m){return t(a,m)},createURL:R,encodeLocation(m){let v=R(m);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:y,go(m){return l.go(m)}};return g}function Ie(e,t=!1){let r="http://localhost";
10typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),E(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:_(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function de(e,t,r="/"){return Be(e,t,r,!1)}function Be(e,t,r,n){let a=typeof t=="string"?O(t):t,o=k(a.pathname||"/",r);if(o==null)return null;let l=he(e);Me(l);let s=null;for(let u=0;s==null&&u<l.length;++u){let c=Ye(o);s=Je(l[u],c,n)}return s}function he(e,t=[],r=[],n="",a=!1){let o=(l,s,u=a,c)=>{let d={relativePath:c===void 0?l.path||"":c,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(n)&&u)return;E(d.relativePath.startsWith(n),`Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(n.length)}let f=$([n,d.relativePath]),h=r.concat(d);l.children&&l.children.length>0&&(E(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),he(l.children,t,h,f,u)),!(l.path==null&&!l.index)&&t.push({path:f,score:ze(f,l.index),routesMeta:h})};return e.forEach((l,s)=>{var u;if(l.path===""||!((u=l.path)!=null&&u.includes("?")))o(l,s);else for(let c of pe(l.path))o(l,s,!0,c)}),t}function pe(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let l=pe(n.join("/")),s=[];return s.push(...l.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...l),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Me(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Ve(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Ue=/^:[\w-]+$/,_e=3,Ae=2,We=1,He=10,je=-2,se=e=>e==="*";function ze(e,t){let r=e.split("/"),n=r.length;return r.some(se)&&(n+=je),t&&(n+=Ae),r.filter(a=>!se(a)).reduce((a,o)=>a+(Ue.test(o)?_e:o===""?We:He),n)}function Ve(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function Je(e,t,r=!1){let{routesMeta:n}=e,a={},o="/",l=[];for(let s=0;s<n.length;++s){let u=n[s],c=s===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",f=V({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},d),h=u.route;if(!f&&c&&r&&!n[n.length-1].route.index&&(f=V({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},d)),!f)return null;
10Object.assign(a,f.params),l.push({params:a,pathname:$([o,f.pathname]),pathnameBase:Qe($([o,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(o=$([o,f.pathnameBase]))}return l}function V(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Ke(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((c,{paramName:d,isOptional:f},h)=>{if(d==="*"){let R=s[h]||"";l=o.slice(0,o.length-R.length).replace(/(.)\/+$/,"$1")}const y=s[h];return f&&!y?c[d]=void 0:c[d]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:l,pattern:e}}function Ke(e,t=!1,r=!0){P(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function Ye(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return P(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function k(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var me=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ge=e=>me.test(e);function qe(e,t="/"){let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?O(e):e,o;if(r)if(Ge(r))o=r;else{if(r.includes("//")){let l=r;r=r.replace(/\/\/+/g,"/"),P(!1,`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${r}`)}r.startsWith("/")?o=ue(r.substring(1),"/"):o=ue(r,t)}else o=t;return{pathname:o,search:Ze(n),hash:et(a)}}function ue(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Y(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Xe(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Z(e){let t=Xe(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function ee(e,t,r,n=!1){let a;typeof e=="string"?a=O(e):(a={...e},E(!a.pathname||!a.pathname.includes("?"),Y("?","pathname","search",a)),E(!a.pathname||!a.pathname.includes("#"),Y("#","pathname","hash",a)),E(!a.search||!a.search.includes("#"),Y("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,s;if(l==null)s=r;else{let f=t.length-1;if(!n&&l.startsWith("..")){let h=l.split("/");for(;h[0]==="..";)h.shift(),f-=1;a.pathname=h.join("/")}s=f>=0?t[f]:"/"}let u=qe(a,s),c=l&&l!=="/"&&l.endsWith("/"),d=(o||l===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}var $=e=>e.join("/").replace(/\/\/+/g,"/"),Qe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ze=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,et=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,tt=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function rt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function nt(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ye=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ge(e,t){let r=e;if(typeof r!="string"||!me.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,a=!1;if(ye)try{let o=new URL(window.location.href),l=r.startsWith("//")?new URL(o.protocol+r):new URL(r),s=k(l.pathname,t);l.origin===o.origin&&s!=null?r=s+l.search+l.hash:a=!0}catch{P(!1,`<Link to="${r}">
10 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:a,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ve=["POST","PUT","PATCH","DELETE"];new Set(ve);var at=["GET",...ve];new Set(at);var I=i.createContext(null);I.displayName="DataRouter";var J=i.createContext(null);J.displayName="DataRouterState";var ot=i.createContext(!1),we=i.createContext({isTransitioning:!1});we.displayName="ViewTransition";var lt=i.createContext(new Map);lt.displayName="Fetchers";var it=i.createContext(null);it.displayName="Await";var b=i.createContext(null);b.displayName="Navigation";var A=i.createContext(null);A.displayName="Location";var S=i.createContext({outlet:null,matches:[],isDataRoute:!1});S.displayName="Route";var te=i.createContext(null);te.displayName="RouteError";var Re="REACT_ROUTER_ERROR",st="REDIRECT",ut="ROUTE_ERROR_RESPONSE";function ct(e){if(e.startsWith(`${Re}:${st}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function ft(e){if(e.startsWith(`${Re}:${ut}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new tt(t.status,t.statusText,t.data)}catch{}}function dt(e,{relative:t}={}){E(B(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=i.useContext(b),{hash:a,pathname:o,search:l}=W(e,{relative:t}),s=o;return r!=="/"&&(s=o==="/"?r:$([r,o])),n.createHref({pathname:s,search:l,hash:a})}function B(){return i.useContext(A)!=null}function T(){return E(B(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(A).location}var Ee="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xe(e){i.useContext(b).static||i.useLayoutEffect(e)}function Ce(){let{isDataRoute:e}=i.useContext(S);return e?Pt():ht()}function ht(){E(B(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(I),{basename:t,navigator:r}=i.useContext(b),{matches:n}=i.useContext(S),{pathname:a}=T(),o=JSON.stringify(Z(n)),l=i.useRef(!1);return xe(()=>{l.current=!0}),i.useCallback((u,c={})=>{if(P(l.current,Ee),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=ee(u,JSON.parse(o),a,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:$([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,o,a,e])}i.createContext(null);function sr(){let{matches:e}=i.useContext(S),t=e[e.length-1];return t?t.params:{}}function W(e,{relative:t}={}){let{matches:r}=i.useContext(S),{pathname:n}=T(),a=JSON.stringify(Z(r));return i.useMemo(()=>ee(e,JSON.parse(a),n,t==="path"),[e,a,n,t])}function pt(e,t){return be(e,t)}function be(e,t,r,n,a){var w;E(B(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=i.useContext(b),{matches:l}=i.useContext(S),s=l[l.length-1],u=s?s.params:{},c=s?s.pathname:"/",d=s?s.pathnameBase:"/",f=s&&s.route;{let p=f&&f.path||"";Se(c,!f||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${p}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
11
12Please change the parent <Route path="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let h=T(),y;if(t){let p=typeof t=="string"?O(t):t;E(d==="/"||((w=p.pathname)==null?void 0:w.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${p.pathname}" was given in the \`location\` prop.`),y=p}else y=h;let R=y.pathname||"/",g=R;if(d!=="/"){let p=d.replace(/^\//,"").split("/");g="/"+R.replace(/^\//,"").split("/").slice(p.length).join("/")}let m=de(e,{pathname:g});P(f||m!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),P(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=wt(m&&m.map(p=>Object.assign({},p,{params:Object.assign({},u,p.params),pathname:$([d,o.encodeLocation?o.encodeLocation(p.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?d:$([d,o.encodeLocation?o.encodeLocation(p.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathnameBase])})),l,r,n,a);return t&&v?i.createElement(A.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},v):v}function mt(){let e=bt(),t=rt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:o},"ErrorBoundary")," or"," ",i.createElement("code",{style:o},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application 
12Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:a},r):null,l)}var yt=i.createElement(mt,null),Pe=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=ft(e.digest);r&&(e=r)}let t=e!==void 0?i.createElement(S.Provider,{value:this.props.routeContext},i.createElement(te.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement(gt,{error:e},t):t}};Pe.contextType=ot;var G=new WeakMap;function gt({children:e,error:t}){let{basename:r}=i.useContext(b);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=ct(t.digest);if(n){let a=G.get(t);if(a)throw a;let o=ge(n.location,r);if(ye&&!G.get(t))if(o.isExternal||n.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:n.replace}));throw G.set(t,l),l}return i.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function vt({routeContext:e,match:t,children:r}){let n=i.useContext(I);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(S.Provider,{value:e},r)}function wt(e,t=[],r=null,n=null,a=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,l=r==null?void 0:r.errors;if(l!=null){let d=o.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);E(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,d+1))}let s=!1,u=-1;if(r)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:h,errors:y}=r,R=f.route.loader&&!h.hasOwnProperty(f.route.id)&&(!y||y[f.route.id]===void 0);if(f.route.lazy||R){s=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}let c=r&&n?(d,f)=>{var h,y;n(d,{location:r.location,params:((y=(h=r.matches)==null?void 0:h[0])==null?void 0:y.params)??{},unstable_pattern:nt(r.matches),errorInfo:f})}:void 0;return o.reduceRight((d,f,h)=>{let y,R=!1,g=null,m=null;r&&(y=l&&f.route.id?l[f.route.id]:void 0,g=f.route.errorElement||yt,s&&(u<0&&h===0?(Se("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,m=null):u===h&&(R=!0,m=f.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,h+1)),w=()=>{let p;return y?p=g:R?p=m:f.route.Component?p=i.createElement(f.route.Component,null):f.route.element?p=f.route.element:p=d,i.createElement(vt,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:r!=null},children:p})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?i.createElement(Pe,{location:r.location,revalidation:r.revalidation,component:g,error:y,children:w(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:c}):w()},null)}function re(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rt(e){let t=i.useContext(I);return E(t,re(e)),t}function Et(e){let t=i.useContext(J);return E(t,re(e)),t}function xt(e){let t=i.useContext(S);return E(t,re(e)),t}function ne(e){let t=xt(e),r=t.matches[t.matches.length-1];return E(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Ct(){return ne("useRouteId")}function bt(){var n;let e=i.useContext(te),t=Et("useRouteError"),r=ne("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function Pt(){let{router:e}=Rt("useNavigate"),t=ne("useNavigate"),r=i.useRef(!1);return xe(()=>{r.current=!0}),i.useCallback(async(a,o={})=>{P(r.current,Ee),r.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var ce={};function Se(e,t,r){!t&&!ce[e]&&(ce[e]=!0,P(!1,r))}i.memo(St);function St({routes:e,future:t,state:r,onError:n}){return be(e,void 0,r,n,t)}function ur({to:e,replace:t,state:r,relative:n}){E(B(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=i.useContext(b);P(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=i.useContext(S),{pathname:l}=T(),s=Ce(),u=ee(e,Z(o),l,n==="path"),c=JSON.stringify(u);return i.useEffect(()=>{s(JSON.parse(c),{replace:t,state:r,relative:n})},[s,c,n,t,r]),null}function Lt(e){E(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function $t({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:a,static:o=!1,unstable_useTransitions:l}){E(!B(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),u=i.useMemo(()=>({basename:s,navigator:a,static:o,unstable_useTransitions:l,future:{}}),[s,a,o,l]);typeof r=="string"&&(r=O(r));let{pathname:c="/",search:d="",hash:f="",state:h=null,key:y="default"}=r,R=i.useMemo(()=>{let g=k(c,s);return g==null?null:{location:{pathname:g,search:d,hash:f,state:h,key:y},navigationType:n}},[s,c,d,f,h,y,n]);
12return P(R!=null,`<Router basename="${s}"> is not able to match the URL "${c}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:i.createElement(b.Provider,{value:u},i.createElement(A.Provider,{children:t,value:R}))}function cr({children:e,location:t}){return pt(Q(e),t)}function Q(e,t=[]){let r=[];return i.Children.forEach(e,(n,a)=>{if(!i.isValidElement(n))return;let o=[...t,a];if(n.type===i.Fragment){r.push.apply(r,Q(n.props.children,o));return}E(n.type===Lt,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),E(!n.props.index||!n.props.children,"An index route cannot have child routes.");let l={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=Q(n.props.children,o)),r.push(l)}),r}var j="get",z="application/x-www-form-urlencoded";function K(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function kt(e){return K(e)&&e.tagName.toLowerCase()==="button"}function Tt(e){return K(e)&&e.tagName.toLowerCase()==="form"}function Ft(e){return K(e)&&e.tagName.toLowerCase()==="input"}function Nt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Dt(e,t){return e.button===0&&(!t||t==="_self")&&!Nt(e)}var H=null;function Ot(){if(H===null)try{new FormData(document.createElement("form"),0),H=!1}catch{H=!0}return H}var It=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function q(e){return e!=null&&!It.has(e)?(P(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${z}"`),null):e}function Bt(e,t){let r,n,a,o,l;if(Tt(e)){let s=e.getAttribute("action");n=s?k(s,t):null,r=e.getAttribute("method")||j,a=q(e.getAttribute("enctype"))||z,o=new FormData(e)}else if(kt(e)||Ft(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||s.getAttribute("action");if(n=u?k(u,t):null,r=e.getAttribute("formmethod")||s.getAttribute("method")||j,a=q(e.getAttribute("formenctype"))||q(s.getAttribute("enctype"))||z,o=new FormData(s,e),!Ot()){let{name:c,type:d,value:f}=e;if(d==="image"){let h=c?`${c}.`:"";o.append(`${h}x`,"0"),o.append(`${h}y`,"0")}else c&&o.append(c,f)}}else{if(K(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=j,n=null,a=z,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mt(e,t,r,n){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${n}`:a.pathname=`${a.pathname}.${n}`:a.pathname==="/"?a.pathname=`_root.${n}`:t&&k(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${n}`,a}async function Ut(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function _t(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function At(e,t,r){let n=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await Ut(o,r);return l.links?l.links():[]}return[]}));return zt(n.flat(1).filter(_t).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function fe(e,t,r,n,a,o){let l=(u,c)=>r[c]?u.route.id!==r[c].route.id:!0,s=(u,c)=>{var d;return r[c].pathname!==u.pathname||((d=r[c].route.path)==null?void 0:d.endsWith("*"))&&r[c].params["*"]!==u.params["*"]};return o==="assets"?t.filter((u,c)=>l(u,c)||s(u,c)):o==="data"?t.filter((u,c)=>{var f;let d=n.routes[u.route.id];if(!d||!d.hasLoader)return!1;if(l(u,c)||s(u,c))return!0;
12if(u.route.shouldRevalidate){let h=u.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((f=r[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function Wt(e,t,{includeHydrateFallback:r}={}){return Ht(e.map(n=>{let a=t.routes[n.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),r&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function Ht(e){return[...new Set(e)]}function jt(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function zt(e,t){let r=new Set;return new Set(t),e.reduce((n,a)=>{let o=JSON.stringify(jt(a));return r.has(o)||(r.add(o),n.push({key:o,link:a})),n},[])}function Le(){let e=i.useContext(I);return ae(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Vt(){let e=i.useContext(J);return ae(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var oe=i.createContext(void 0);oe.displayName="FrameworkContext";function $e(){let e=i.useContext(oe);return ae(e,"You must render this element inside a <HydratedRouter> element"),e}function Jt(e,t){let r=i.useContext(oe),[n,a]=i.useState(!1),[o,l]=i.useState(!1),{onFocus:s,onBlur:u,onMouseEnter:c,onMouseLeave:d,onTouchStart:f}=t,h=i.useRef(null);i.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let g=v=>{v.forEach(w=>{l(w.isIntersecting)})},m=new IntersectionObserver(g,{threshold:.5});return h.current&&m.observe(h.current),()=>{m.disconnect()}}},[e]),i.useEffect(()=>{if(n){let g=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(g)}}},[n]);let y=()=>{a(!0)},R=()=>{a(!1),l(!1)};return r?e!=="intent"?[o,h,{}]:[o,h,{onFocus:U(s,y),onBlur:U(u,R),onMouseEnter:U(c,y),onMouseLeave:U(d,R),onTouchStart:U(f,y)}]:[!1,h,{}]}function U(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Kt({page:e,...t}){let{router:r}=Le(),n=i.useMemo(()=>de(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?i.createElement(Gt,{page:e,matches:n,...t}):null}function Yt(e){let{manifest:t,routeModules:r}=$e(),[n,a]=i.useState([]);return i.useEffect(()=>{let o=!1;return At(e,t,r).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,r]),n}function Gt({page:e,matches:t,...r}){let n=T(),{future:a,manifest:o,routeModules:l}=$e(),{basename:s}=Le(),{loaderData:u,matches:c}=Vt(),d=i.useMemo(()=>fe(e,t,c,o,n,"data"),[e,t,c,o,n]),f=i.useMemo(()=>fe(e,t,c,o,n,"assets"),[e,t,c,o,n]),h=i.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let g=new Set,m=!1;if(t.forEach(w=>{var C;let p=o.routes[w.route.id];!p||!p.hasLoader||(!d.some(x=>x.route.id===w.route.id)&&w.route.id in u&&((C=l[w.route.id])!=null&&C.shouldRevalidate)||p.hasClientLoader?m=!0:g.add(w.route.id))}),g.size===0)return[];let v=Mt(e,s,a.unstable_trailingSlashAwareDataRequests,"data");return m&&g.size>0&&v.searchParams.set("_routes",t.filter(w=>g.has(w.route.id)).map(w=>w.route.id).join(",")),[v.pathname+v.search]},[s,a.unstable_trailingSlashAwareDataRequests,u,n,o,d,t,e,l]),y=i.useMemo(()=>Wt(f,o),[f,o]),R=Yt(f);return i.createElement(i.Fragment,null,h.map(g=>i.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})),y.map(g=>i.createElement("link",{key:g,rel:"modulepreload",href:g,...r})),R.map(({key:g,link:m})=>i.createElement("link",{key:g,nonce:r.nonce,...m})))}function qt(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Xt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Xt&&(window.__reactRouterVersion="7.12.0")}catch{}function fr({basename:e,children:t,unstable_useTransitions:r,window:n}){let a=i.useRef();a.current==null&&(a.current=Ne({window:n,v5Compat:!0}));let o=a.current,[l,s]=i.useState({action:o.action,location:o.location}),u=i.useCallback(c=>{r===!1?s(c):i.startTransition(()=>s(c))},[r]);return i.useLayoutEffect(()=>o.listen(u),[o,u]),i.createElement($t,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:o,unstable_useTransitions:r})}var ke=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Te=i.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:a,reloadDocument:o,replace:l,state:s,target:u,to:c,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:h,...y},R){let{basename:g,unstable_useTransitions:m}=i.useContext(b),v=typeof c=="string"&&ke.test(c),w=ge(c,g);c=w.to;let p=dt(c,{relative:a}),[C,x,L]=Jt(n,y),F=tr(c,{replace:l,state:s,target:u,preventScrollReset:d,relative:a,viewTransition:f,unstable_defaultShouldRevalidate:h,unstable_useTransitions:m});function N(M){t&&t(M),M.defaultPrevented||F(M)}let D=i.createElement("a",{...y,...L,href:w.absoluteURL||p,onClick:w.isExternal||o?t:N,ref:qt(R,x),target:u,"data-discover":!v&&r==="render"?"true":void 0});return C&&!v?i.createElement(i.Fragment,null,D,i.createElement(Kt,{page:p})):D});Te.displayName="Link";var Qt=i.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,
vendor: 1,267 bytes, line 12
12className:n="",end:a=!1,style:o,to:l,viewTransition:s,children:u,...c},d){let f=W(l,{relative:c.relative}),h=T(),y=i.useContext(J),{navigator:R,basename:g}=i.useContext(b),m=y!=null&&lr(f)&&s===!0,v=R.encodeLocation?R.encodeLocation(f).pathname:f.pathname,w=h.pathname,p=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;r||(w=w.toLowerCase(),p=p?p.toLowerCase():null,v=v.toLowerCase()),p&&g&&(p=k(p,g)||p);const C=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let x=w===v||!a&&w.startsWith(v)&&w.charAt(C)==="/",L=p!=null&&(p===v||!a&&p.startsWith(v)&&p.charAt(v.length)==="/"),F={isActive:x,isPending:L,isTransitioning:m},N=x?t:void 0,D;typeof n=="function"?D=n(F):D=[n,x?"active":null,L?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let M=typeof o=="function"?o(F):o;return i.createElement(Te,{...c,"aria-current":N,className:D,ref:d,style:M,to:l,viewTransition:s},typeof u=="function"?u(F):u)});Qt.displayName="NavLink";var Zt=i.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:a,state:o,method:l=j,action:s,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:h,...y},R)=>{let{unstable_useTransitions:g}=i.useContext(b),m=ar(),v=or(s,{relative:c}
12),w=l.toLowerCase()==="get"?"get":"post",p=typeof s=="string"&&ke.test(s),C=x=>{if(u&&u(x),x.defaultPrevented)return;x.preventDefault();let L=x.nativeEvent.submitter,F=(L==null?void 0:L.getAttribute("formmethod"))||l,N=()=>m(L||x.currentTarget,{fetcherKey:t,method:F,navigate:r,replace:a,state:o,relative:c,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:h});g&&r!==!1?i.startTransition(()=>N()):N()};return i.createElement("form",{ref:R,method:w,action:v,onSubmit:n?u:C,...y,"data-discover":!p&&e==="render"?"true":void 0})});Zt.displayName="Form";function er(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fe(e){let t=i.useContext(I);return E(t,er(e)),t}function tr(e,{target:t,replace:r,state:n,preventScrollReset:a,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:s,unstable_useTransitions:u}={}){let c=Ce(),d=T(),f=W(e,{relative:o});return i.useCallback(h=>{if(Dt(h,t)){h.preventDefault();let y=r!==void 0?r:_(d)===_(f),R=()=>c(e,{replace:y,state:n,preventScrollReset:a,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:s});u?i.startTransition(()=>R()):R()}},[d,c,f,r,n,t,e,a,o,l,s,u])}var rr=0,nr=()=>`__${String(++rr)}__`;function ar(){let{router:e}=Fe("useSubmit"),{basename:t}=i.useContext(b),r=Ct(),n=e.fetch,a=e.navigate;return i.useCallback(async(o,l={})=>{let{action:s,method:u,encType:c,formData:d,body:f}=Bt(o,t);if(l.navigate===!1){let h=l.fetcherKey||nr();await n(h,r,l.action||s,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:d,body:f,formMethod:l.method||u,formEncType:l.encType||c,flushSync:l.flushSync})}else await a(l.action||s,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:d,body:f,formMethod:l.method||u,formEncType:l.encType||c,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[n,a,t,r])}function or(e,{relative:t}={}){let{basename:r}=i.useContext(b),n=i.useContext(S);E(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),o={...W(e||".",{relative:t})},l=T();if(e==null){o.search=l.search;let s=new URLSearchParams(o.search),u=s.getAll("index");if(u.some(d=>d==="")){s.delete("index"),u.filter(f=>f).forEach(f=>s.append("index",f));let d=s.toString();o.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:$([r,o.pathname])),_(o)}function lr(e,{relative:t}={}){let r=i.useContext(we);E(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Fe("useViewTransitionState"),a=W(e,{relative:t});if(!r.isTransitioning)return!1;let o=k(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=k(r.nextLocation.pathname,n)||r.nextLocation.pathname;return V(a.pathname,l)!=null||V(a.pathname,o)!=null}export{fr as B,Te as L,ur as N,cr as R,Ce as a,Lt as b,sr as c,T as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.