PageSourceSearch

https://socialnarratives.ai/assets/react-router-oAHNt2ka.js

js socialnarratives.ai collected 2026-10-05 15:07:53 UTC 42,805 bytes, 3 lines download raw bytes

vendor: 4,217 bytes, line 1
1import{r as et,g as tt,a as u}from"./i18n-BCZ_8xSB.js";var Z={exports:{}},x={};var Ee;function rt(){if(Ee)return x;Ee=1;var e=et();function t(l){var o="https://react.dev/errors/"+l;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)o+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+l+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(l,o,f){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:d==null?null:""+d,children:l,containerInfo:o,implementation:f}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(l,o){if(l==="font")return"";if(typeof o=="string")return o==="use-credentials"?o:""}return x.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,x.createPortal=function(l,o){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)throw Error(t(299));return i(l,o,null,f)},x.flushSync=function(l){var o=s.T,f=n.p;try{if(s.T=null,n.p=2,l)return l()}finally{s.T=o,n.p=f,n.d.f()}},x.preconnect=function(l,o){typeof l=="string"&&(o?(o=o.crossOrigin,o=typeof o=="string"?o==="use-credentials"?o:"":void 0):o=null,n.d.C(l,o))},x.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},x.preinit=function(l,o){if(typeof l=="string"&&o&&typeof o.as=="string"){var f=o.as,d=c(f,o.crossOrigin),m=typeof o.integrity=="string"?o.integrity:void 0,g=typeof o.fetchPriority=="string"?o.fetchPriority:void 0;f==="style"?n.d.S(l,typeof o.precedence=="string"?o.precedence:void 0,{crossOrigin:d,integrity:m,fetchPriority:g}):f==="script"&&n.d.X(l,{crossOrigin:d,integrity:m,fetchPriority:g,nonce:typeof o.nonce=="string"?o.nonce:void 0})}},x.preinitModule=function(l,o){if(typeof l=="string")if(typeof o=="object"&&o!==null){if(o.as==null||o.as==="script"){var f=c(o.as,o.crossOrigin);n.d.M(l,{crossOrigin:f,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0})}}else o==null&&n.d.M(l)},x.preload=function(l,o){if(typeof l=="string"&&typeof o=="object"&&o!==null&&typeof o.as=="string"){var f=o.as,d=c(f,o.crossOrigin);n.d.L(l,f,{crossOrigin:d,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0,type:typeof o.type=="string"?o.type:void 0,fetchPriority:typeof o.fetchPriority=="string"?o.fetchPriority:void 0,referrerPolicy:typeof o.referrerPolicy=="string"?o.referrerPolicy:void 0,imageSrcSet:typeof o.imageSrcSet=="string"?o.imageSrcSet:void 0,imageSizes:typeof o.imageSizes=="string"?o.imageSizes:void 0,media:typeof o.media=="string"?o.media:void 0})}},x.preloadModule=function(l,o){if(typeof l=="string")if(o){var f=c(o.as,o.crossOrigin);n.d.m(l,{as:typeof o.as=="string"&&o.as!=="script"?o.as:void 0,crossOrigin:f,integrity:typeof o.integrity=="string"?o.integrity:void 0})}else n.d.m(l)},x.requestFormReset=function(l){n.d.r(l)},x.unstable_batchedUpdates=function(l,o){return l(o)},x.useFormState=function(l,o,f){return s.H.useFormState(l,o,f)},x.useFormStatus=function(){return s.H.useHostTransitionStatus()},x.version="19.2.4",x}var we;function nt(){if(we)return Z.exports;we=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Z.exports=rt(),Z.exports}var at=nt();const Fr=tt(at);var le=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Te=/^[\\/]{2}/;function ot(e,t){return t+e.replace(/\\/g,"/")}var Se="popstate";function xe(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function it(e={}){function t(n,a){let i=a.state?.masked,{pathname:s,search:c,hash:l}=i||n.location;return ae("",{pathname:s,search:c,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default",i?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}
1function r(n,a){return typeof a=="string"?a:N(a)}return st(t,r,null,e)}function w(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 lt(){return Math.random().toString(36).substring(2,10)}function Ce(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ae(e,t,r=null,n,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?F(t):t,state:r,key:t&&t.key||n||lt(),mask:a}}function N({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 F(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 st(e,t,r,n={}){let{window:a=document.defaultView,v5Compat:i=!1}=n,s=a.history,c="POP",l=null,o=f();o==null&&(o=0,s.replaceState({...s.state,idx:o},""));function f(){return(s.state||{idx:null}).idx}function d(){c="POP";let h=f(),v=h==null?null:h-o;o=h,l&&l({action:c,location:p.location,delta:v})}function m(h,v){c="PUSH";let R=xe(h)?h:ae(p.location,h,v);o=f()+1;let E=Ce(R,o),C=p.createHref(R.mask||R);try{s.pushState(E,"",C)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(C)}i&&l&&l({action:c,location:p.location,delta:1})}function g(h,v){c="REPLACE";let R=xe(h)?h:ae(p.location,h,v);o=f();let E=Ce(R,o),C=p.createHref(R.mask||R);s.replaceState(E,"",C),i&&l&&l({action:c,location:p.location,delta:0})}function y(h){return ut(a,h)}let p={get action(){return c},get location(){return e(a,s)},listen(h){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(Se,d),l=h,()=>{a.removeEventListener(Se,d),l=null}},createHref(h){return t(a,h)},createURL:y,encodeLocation(h){let v=y(h);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:g,go(h){return s.go(h)}};return p}function ut(e,t,r=!1){let n="http://localhost";e&&(n=e.location.origin!=="null"?e.location.origin:e.location.href),w(n,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:N(t);return a=a.replace(/ $/,"%20"),!r&&Te.test(a)&&(a=n+a),new URL(a,n)}function Oe(e,t,r="/"){return ct(e,t,r,!1)}function ct(e,t,r,n,a){let i=typeof t=="string"?F(t):t,s=T(i.pathname||"/",r);if(s==null)return null;let c=ft(e),l=null,o=Ie(s);for(let f=0;l==null&&f<c.length;++f)l=wt(c[f],o,n);return l}function ft(e){let t=De(e);return dt(t),t}function De(e,t=[],r=[],n="",a=!1){let i=(s,c,l=a,o)=>{let f={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(n)&&l)return;w(f.relativePath.startsWith(n),`Absolute route path "${f.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(n.length)}let d=_([n,f.relativePath]),m=r.concat(f);s.children&&s.children.length>0&&(w(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),De(s.children,t,m,d,l)),!(s.path==null&&!s.index)&&t.push({path:d,score:Rt(d,s.index),routesMeta:m.map((g,y)=>{let[p,h]=Ae(g.relativePath,g.caseSensitive,y===m.length-1);return{...g,matcher:p,compiledParams:h}})})};return e.forEach((s,c)=>{if(s.path===""||!s.path?.includes("?"))i(s,c);else for(let l of $e(s.path))i(s,c,!0,l)}),t}function $e(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let s=$e(n.join("/")),c=[];return c.push(...s.map(l=>l===""?i:[i,l].join("/"))),a&&c.push(...s),c.map(l=>e.startsWith("/")&&l===""?"/":l)}function dt(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Et(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var ht=/^:[\w-]+$/,mt=3,pt=2,gt=1,yt=10,vt=-2,be=e=>e==="*";function Rt(e,t){let r=e.split("/"),n=r.length;
1return r.some(be)&&(n+=vt),t&&(n+=pt),r.filter(a=>!be(a)).reduce((a,i)=>a+(ht.test(i)?mt:i===""?gt:yt),n)}function Et(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 wt(e,t,r=!1){let{routesMeta:n}=e,a={},i="/",s=[];for(let c=0;c<n.length;++c){let l=n[c],o=c===n.length-1,f=i==="/"?t:t.slice(i.length)||"/",d={path:l.relativePath,caseSensitive:l.caseSensitive,end:o},m=l.matcher&&l.compiledParams?Ne(d,f,l.matcher,l.compiledParams):W(d,f),g=l.route;if(!m&&o&&r&&!n[n.length-1].route.index&&(m=W({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},f)),!m)return null;Object.assign(a,m.params),s.push({params:a,pathname:_([i,m.pathname]),pathnameBase:Ct(_([i,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(i=_([i,m.pathnameBase]))}return s}function W(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Ae(e.path,e.caseSensitive,e.end);return Ne(e,t,r,n)}function Ne(e,t,r,n){let a=t.match(r);if(!a)return null;let i=a[0],s=U(i,1),c=a.slice(1);return{params:n.reduce((o,{paramName:f,isOptional:d},m)=>{if(f==="*"){let y=c[m]||"";s=U(i.slice(0,i.length-y.length),1)}const g=c[m];return d&&!g?o[f]=void 0:o[f]=(g||"").replace(/%2F/g,"/"),o},{}),pathname:i,pathnameBase:s,pattern:e}}function Ae(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,(s,c,l,o,f)=>{if(n.push({paramName:c,isOptional:l!=null}),l){let d=f.charAt(o+s.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).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 Ie(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 T(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)||"/"}function St(e,t="/"){let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?F(e):e,i;return r?(r=Ue(r),r.startsWith("/")||r.startsWith("\\")?i=Pe(r.substring(1),"/"):i=Pe(r,t)):i=t,{pathname:i,search:bt(n),hash:Pt(a)}}function Pe(e,t){let r=U(t).split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function ee(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 xt(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function se(e){let t=xt(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function J(e,t,r,n=!1){let a;typeof e=="string"?a=F(e):(a={...e},w(!a.pathname||!a.pathname.includes("?"),ee("?","pathname","search",a)),w(!a.pathname||!a.pathname.includes("#"),ee("#","pathname","hash",a)),w(!a.search||!a.search.includes("#"),ee("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,c;if(s==null)c=r;else{let d=t.length-1;if(!n&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),d-=1;a.pathname=m.join("/")}c=d>=0?t[d]:"/"}let l=St(a,c),o=s&&s!=="/"&&s.endsWith("/"),f=(i||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(o||f)&&(l.pathname+="/"),l}var Ue=e=>e.replace(/[\\/]{2,}/g,"/"),_=e=>Ue(e.join("/"));function U(e,t=0){let r=e.length;for(;r>t&&e.charCodeAt(r-1)===47;)r--;return r===e.length?e:e.slice(0,r)}var Ct=e=>U(e).replace(/^\/*/,"/"),bt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Pt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Lt=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 _t(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function kt(e){let t=e.map(r=>
1r.route.path).filter(Boolean);return _(t)||"/"}var Fe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Me(e,t){let r=e;if(typeof r!="string"||!le.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,a=!1;if(Fe)try{let i=new URL(window.location.href),s=Te.test(r)?new URL(ot(r,i.protocol)):new URL(r),c=T(s.pathname,t);s.origin===i.origin&&c!=null?r=c+s.search+s.hash:a=!0}catch{P(!1,`<Link to="${r}"> 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 Le=new URL("http://localhost");function ue(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),Le)}catch{return Le}}function te(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}function Tt(e,t){if(e.startsWith("//"))return!0;let r=t.protocol.toLowerCase();return e.toLowerCase().startsWith(r)?t.host===""||e.slice(r.length).startsWith("//"):!1}function ce(e,t,r,n){let a=null;try{a=e==null?null:new URL(e,r)}catch{}let i=new URL(t,r),s=a!=null&&!te(a,r),c=!te(i,r);if(n==="reject"){if(s||c)throw new Error("External navigation is not allowed")}else if(c&&(a==null||!Tt(e,a)||!te(a,i)))throw new Error("External navigation is not allowed")}var Be=["POST","PUT","PATCH","DELETE"];new Set(Be);var Ot=["GET",...Be];new Set(Ot);var Dt=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function $t(e){try{return Dt.includes(new URL(e).protocol)}catch{return!1}}var M=u.createContext(null);M.displayName="DataRouter";var K=u.createContext(null);K.displayName="DataRouterState";var He=u.createContext(!1);function Nt(){return u.useContext(He)}var We=u.createContext({isTransitioning:!1});We.displayName="ViewTransition";var At=u.createContext(new Map);At.displayName="Fetchers";var It=u.createContext(null);It.displayName="Await";var b=u.createContext(null);b.displayName="Navigation";var j=u.createContext(null);j.displayName="Location";var k=u.createContext({outlet:null,matches:[],isDataRoute:!1});k.displayName="Route";var fe=u.createContext(null);fe.displayName="RouteError";var je="REACT_ROUTER_ERROR",Ut="REDIRECT",Ft="ROUTE_ERROR_RESPONSE";function Mt(e){if(e.startsWith(`${je}:${Ut}:{`))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 Bt(e){if(e.startsWith(`${je}:${Ft}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Lt(t.status,t.statusText,t.data)}catch{}}function Ht(e,{relative:t}={}){w(A(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=u.useContext(b),{hash:a,pathname:i,search:s}=V(e,{relative:t}),c=i;return r!=="/"&&(c=i==="/"?r:_([r,i])),n.createHref({pathname:c,search:s,hash:a})}function A(){return u.useContext(j)!=null}function L(){return w(A(),"useLocation() may be used only in the context of a <Router> component."),u.useContext(j).location}function Mr(e){w(A(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=L();return u.useMemo(()=>W(e,Ie(t)),[t,e])}var Ve="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ze(e){u.useContext(b).static||u.useLayoutEffect(e)}function de(){let{isDataRoute:e}=u.useContext(k);return e?er():Wt()}function Wt(){w(A(),"useNavigate() may be used only in the context of a <Router> component.");let e=u.useContext(M),{basename:t,navigator:r}=u.useContext(b),{matches:n}=u.useContext(k),{pathname:a}=L(),i=JSON.stringify(se(n)),s=u.useRef(!1);return ze(()=>{s.current=!0}),u.useCallback((l,o={})=>{if(P(s.current,Ve),!s.current)return;if(typeof l=="number"){r.go(l);return}let f=J(l,JSON.parse(i),a,o.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:_([t,f.pathname])),ce(typeof l=="string"?l:N(l),r.createHref(f),ue(r),"reject"),(o.replace?r.replace:r.push)(f,o.state,o)},[t,r,i,a,e])}u.createContext(null);function Br(){let{matches:e}=u.useContext(k);return e[e.length-1]?.params??{}}function V(e,{relative:t}={}){let{matches:r}=u.useContext(k),{pathname:n}=L(),a=JSON.stringify(se(r));return u.useMemo(()=>J(e,JSON.parse(a),n,t==="path"),[e,a,n,t])}function jt(e,t){return qe(e,t)}function qe(e,t,r){w(A(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=u.useContext(b),{matches:a}=u.useContext(k),i=a[a.length-1],s=i?i.params:{},c=i?i.pathname:"/",l=i?i.pathnameBase:"/",o=i&&i.route;{let h=o&&o.path||"";Je(c,!o||h.endsWith("*")||h.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${h}">) 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.
2
3Please change the parent <Route path="${h}"> to <Route path="${h==="/"?"*":`${h}/*`}">.`)}let f=L(),d;if(t){let h=typeof t=="string"?F(t):t;w(l==="/"||h.pathname?.startsWith(l),`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 "${l}" but pathname "${h.pathname}" was given in the \`location\` prop.`),d=h}else d=f;let m=d.pathname||"/",g=m;if(l!=="/"){let h=l.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(h.length).join("/")}let y=r&&r.state.matches.length?r.state.matches.map(h=>Object.assign(h,{route:r.manifest[h.route.id]||h.route})):Oe(e,{pathname:g});P(o||y!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),P(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.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 p=Jt(y&&y.map(h=>Object.assign({},h,{params:Object.assign({},s,h.params),pathname:_([l,n.encodeLocation?n.encodeLocation(h.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?l:_([l,n.encodeLocation?n.encodeLocation(h.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:h.pathnameBase])})),a,r);return t&&p?u.createElement(j.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},p):p}
3function Vt(){let e=Zt(),t=_t(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},i={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=u.createElement(u.Fragment,null,u.createElement("p",null,"💿 Hey developer 👋"),u.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",u.createElement("code",{style:i},"ErrorBoundary")," or"," ",u.createElement("code",{style:i},"errorElement")," prop on your route.")),u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),r?u.createElement("pre",{style:a},r):null,s)}var zt=u.createElement(Vt,null),Ge=class extends u.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=Bt(e.digest);r&&(e=r)}let t=e!==void 0?u.createElement(k.Provider,{value:this.props.routeContext},u.createElement(fe.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?u.createElement(qt,{error:e},t):t}};Ge.contextType=He;var re=new WeakMap;function qt({children:e,error:t}){let{basename:r,navigator:n}=u.useContext(b);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=Mt(t.digest);if(a){let i=re.get(t);if(i)throw i;let s=Me(a.location,r),c=s.absoluteURL||s.to;if(ce(a.location,c,ue(n),"allow-explicit"),$t(c))throw new Error("Invalid redirect location");if(Fe&&!re.get(t))if(s.isExternal||a.reloadDocument)window.location.href=c;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:a.replace}));throw re.set(t,l),l}return u.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c}`})}}return e}function Gt({routeContext:e,match:t,children:r}){let n=u.useContext(M);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),u.createElement(k.Provider,{value:e},r)}function Jt(e,t=[],r){let n=r?.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,i=n?.errors;if(i!=null){let f=a.findIndex(d=>d.route.id&&i?.[d.route.id]!==void 0);w(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,c=-1;if(r&&n){s=n.renderFallback;for(let f=0;f<a.length;f++){let d=a[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=f),d.route.id){let{loaderData:m,errors:g}=n,y=d.route.loader&&!m.hasOwnProperty(d.route.id)&&(!g||g[d.route.id]===void 0);if(d.route.lazy||y){r.isStatic&&(s=!0),c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}}let l=r?.onError,o=n&&l?(f,d)=>{l(f,{location:n.location,params:n.matches?.[0]?.params??{},pattern:kt(n.matches),errorInfo:d})}:void 0;return a.reduceRight((f,d,m)=>{let g,y=!1,p=null,h=null;n&&(g=i&&d.route.id?i[d.route.id]:void 0,p=d.route.errorElement||zt,s&&(c<0&&m===0?(Je("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,h=null):c===m&&(y=!0,h=d.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,m+1)),R=()=>{let E;return g?E=p:y?E=h:d.route.Component?E=u.createElement(d.route.Component,null):d.route.element?E=d.route.element:E=f,u.createElement(Gt,{match:d,routeC
3ontext:{outlet:f,matches:v,isDataRoute:n!=null},children:E})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?u.createElement(Ge,{location:n.location,revalidation:n.revalidation,component:p,error:g,children:R(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:o}):R()},null)}function he(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Kt(e){let t=u.useContext(M);return w(t,he(e)),t}function Yt(e){let t=u.useContext(K);return w(t,he(e)),t}function Xt(e){let t=u.useContext(k);return w(t,he(e)),t}function me(e){let t=Xt(e),r=t.matches[t.matches.length-1];return w(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Qt(){return me("useRouteId")}function Zt(){let e=u.useContext(fe),t=Yt("useRouteError"),r=me("useRouteError");return e!==void 0?e:t.errors?.[r]}function er(){let{router:e}=Kt("useNavigate"),t=me("useNavigate"),r=u.useRef(!1);return ze(()=>{r.current=!0}),u.useCallback(async(a,i={})=>{P(r.current,Ve),r.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var _e={};function Je(e,t,r){!t&&!_e[e]&&(_e[e]=!0,P(!1,r))}u.memo(tr);function tr({routes:e,manifest:t,future:r,state:n,isStatic:a,onError:i}){return qe(e,void 0,{manifest:t,state:n,isStatic:a,onError:i})}function Hr({to:e,replace:t,state:r,relative:n}){w(A(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a,navigator:i}=u.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:s}=u.useContext(k),{pathname:c}=L(),l=de(),o=J(e,se(s),c,n==="path");ce(typeof e=="string"?e:N(e),i.createHref(o),ue(i),"reject");let f=JSON.stringify(o);return u.useEffect(()=>{l(JSON.parse(f),{replace:t,state:r,relative:n})},[l,f,n,t,r]),null}function rr(e){w(!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 nr({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:a,static:i=!1,useTransitions:s}){w(!A(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),l=u.useMemo(()=>({basename:c,navigator:a,static:i,useTransitions:s,future:{}}),[c,a,i,s]);typeof r=="string"&&(r=F(r));let{pathname:o="/",search:f="",hash:d="",state:m=null,key:g="default",mask:y}=r,p=u.useMemo(()=>{let h=T(o,c);return h==null?null:{location:{pathname:h,search:f,hash:d,state:m,key:g,mask:y},navigationType:n}},[c,o,f,d,m,g,n,y]);return P(p!=null,`<Router basename="${c}"> is not able to match the URL "${o}${f}${d}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:u.createElement(b.Provider,{value:l},u.createElement(j.Provider,{children:t,value:p}))}function Wr({children:e,location:t}){return jt(oe(e),t)}function oe(e,t=[]){let r=[];return u.Children.forEach(e,(n,a)=>{if(!u.isValidElement(n))return;let i=[...t,a];if(n.type===u.Fragment){r.push.apply(r,oe(n.props.children,i));return}w(n.type===rr,`[${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>`),w(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||i.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&&(s.children=oe(n.props.children,i)),r.push(s)}),r}var q="get",G="application/x-www-form-urlencoded";function Y(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function ar(e){return Y(e)&&e.tagName.toLowerCase()==="button"}function or(e){return Y(e)&&e.tagName.toLowerCase()==="form"}function ir(e){return Y(e)&&e.tagName.toLowerCase()==="input"}function lr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sr(e,t){return e.button===0&&(!t||t==="_self")&&!lr(e)}function ie(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function ur(e,t){let r=ie(e);return t&&t.forEach((n,a)=>
3{r.has(a)||t.getAll(a).forEach(i=>{r.append(a,i)})}),r}var z=null;function cr(){if(z===null)try{new FormData(document.createElement("form"),0),z=!1}catch{z=!0}return z}var fr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ne(e){return e!=null&&!fr.has(e)?(P(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${G}"`),null):e}function dr(e,t){let r,n,a,i,s;if(or(e)){let c=e.getAttribute("action");n=c?T(c,t):null,r=e.getAttribute("method")||q,a=ne(e.getAttribute("enctype"))||G,i=new FormData(e)}else if(ar(e)||ir(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||c.getAttribute("action");if(n=l?T(l,t):null,r=e.getAttribute("formmethod")||c.getAttribute("method")||q,a=ne(e.getAttribute("formenctype"))||ne(c.getAttribute("enctype"))||G,i=new FormData(c,e),!cr()){let{name:o,type:f,value:d}=e;if(f==="image"){let m=o?`${o}.`:"";i.append(`${m}x`,"0"),i.append(`${m}y`,"0")}else o&&i.append(o,d)}}else{if(Y(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=q,n=null,a=G,s=e}return i&&a==="text/plain"&&(s=i,i=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ke(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&&T(a.pathname,t)==="/"?a.pathname=`${U(t)}/_root.${n}`:a.pathname=`${U(a.pathname)}.${n}`,a}async function hr(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 mr(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 pr(e,t,r){let n=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let s=await hr(i,r);return s.links?s.links():[]}return[]}));return Rr(n.flat(1).filter(mr).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function ke(e,t,r,n,a,i){let s=(l,o)=>r[o]?l.route.id!==r[o].route.id:!0,c=(l,o)=>r[o].pathname!==l.pathname||r[o].route.path?.endsWith("*")&&r[o].params["*"]!==l.params["*"];return i==="assets"?t.filter((l,o)=>s(l,o)||c(l,o)):i==="data"?t.filter((l,o)=>{let f=n.routes[l.route.id];if(!f||!f.hasLoader)return!1;if(s(l,o)||c(l,o))return!0;if(l.route.shouldRevalidate){let d=l.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function gr(e,t,{includeHydrateFallback:r}={}){return yr(e.map(n=>{let a=t.routes[n.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),r&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function yr(e){return[...new Set(e)]}function vr(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function Rr(e,t){let r=new Set;return new Set(t),e.reduce((n,a)=>{let i=JSON.stringify(vr(a));return r.has(i)||(r.add(i),n.push({key:i,link:a})),n},[])}function ge(){let e=u.useContext(M);return pe(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Er(){let e=u.useContext(K);return pe(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ye=u.createContext(void 0);ye.displayName="FrameworkContext";function X(){let e=u.useContext(ye);return pe(e,"You must render this element inside a <HydratedRouter> element"),e}function wr(e,t){let r=u.useContext(ye),[n,a]=u.useState(!1),[i,s]=u.useState(!1),{onFocus:c,onBlur:l,onMouseEnter:o,onMouseLeave:f,onTouchStart:d}=t,m=u.useRef(null);u.useEffect(()=>
3{if(e==="render"&&s(!0),e==="viewport"){let p=v=>{v.forEach(R=>{s(R.isIntersecting)})},h=new IntersectionObserver(p,{threshold:.5});return m.current&&h.observe(m.current),()=>{h.disconnect()}}},[e]),u.useEffect(()=>{if(n){let p=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(p)}}},[n]);let g=()=>{a(!0)},y=()=>{a(!1),s(!1)};return r?e!=="intent"?[i,m,{}]:[i,m,{onFocus:H(c,g),onBlur:H(l,y),onMouseEnter:H(o,g),onMouseLeave:H(f,y),onTouchStart:H(d,g)}]:[!1,m,{}]}function H(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Sr({page:e,...t}){let r=Nt(),{nonce:n}=X(),{router:a}=ge(),i=u.useMemo(()=>Oe(a.routes,e,a.basename),[a.routes,e,a.basename]);return i?(t.nonce==null&&n&&(t={...t,nonce:n}),r?u.createElement(Cr,{page:e,matches:i,...t}):u.createElement(br,{page:e,matches:i,...t})):null}function xr(e){let{manifest:t,routeModules:r}=X(),[n,a]=u.useState([]);return u.useEffect(()=>{let i=!1;return pr(e,t,r).then(s=>{i||a(s)}),()=>{i=!0}},[e,t,r]),n}function Cr({page:e,matches:t,...r}){let n=L(),{future:a}=X(),{basename:i}=ge(),s=u.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let c=Ke(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),l=!1,o=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?l=!0:o.push(f.route.id);return l&&o.length>0&&c.searchParams.set("_routes",o.join(",")),[c.pathname+c.search]},[i,a.v8_trailingSlashAwareDataRequests,e,n,t]);return u.createElement(u.Fragment,null,s.map(c=>u.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...r})))}function br({page:e,matches:t,...r}){let n=L(),{future:a,manifest:i,routeModules:s}=X(),{basename:c}=ge(),{loaderData:l,matches:o}=Er(),f=u.useMemo(()=>ke(e,t,o,i,n,"data"),[e,t,o,i,n]),d=u.useMemo(()=>ke(e,t,o,i,n,"assets"),[e,t,o,i,n]),m=u.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let p=new Set,h=!1;if(t.forEach(R=>{let E=i.routes[R.route.id];!E||!E.hasLoader||(!f.some(C=>C.route.id===R.route.id)&&R.route.id in l&&s[R.route.id]?.shouldRevalidate||E.hasClientLoader?h=!0:p.add(R.route.id))}),p.size===0)return[];let v=Ke(e,c,a.v8_trailingSlashAwareDataRequests,"data");return h&&p.size>0&&v.searchParams.set("_routes",t.filter(R=>p.has(R.route.id)).map(R=>R.route.id).join(",")),[v.pathname+v.search]},[c,a.v8_trailingSlashAwareDataRequests,l,n,i,f,t,e,s]),g=u.useMemo(()=>gr(d,i),[d,i]),y=xr(d);return u.createElement(u.Fragment,null,m.map(p=>u.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...r})),g.map(p=>u.createElement("link",{key:p,rel:"modulepreload",href:p,...r})),y.map(({key:p,link:h})=>u.createElement("link",{key:p,nonce:r.nonce,...h,crossOrigin:h.crossOrigin??r.crossOrigin})))}function Pr(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Lr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Lr&&(window.__reactRouterVersion="7.18.4")}catch{}function jr({basename:e,children:t,useTransitions:r,window:n}){let a=u.useRef();a.current==null&&(a.current=it({window:n,v5Compat:!0}));let i=a.current,[s,c]=u.useState({action:i.action,location:i.location}),l=u.useCallback(o=>{r===!1?c(o):u.startTransition(()=>c(o))},[r]);return u.useLayoutEffect(()=>i.listen(l),[i,l]),u.createElement(nr,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,useTransitions:r})}var Ye=u.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:a,reloadDocument:i,replace:s,mask:c,state:l,target:o,to:f,preventScrollReset:d,viewTransition:m,defaultShouldRevalidate:g,...y},p){let{basename:h,navigator:v,useTransitions:R}=u.useContext(b),E=typeof f=="string"&&le.test(f),C=Me(f,h);f=C.to;let S=Ht(f,{relative:a}),O=L(),D=null;if(c){let $=J(c,[],O.mask?O.mask.pathname:"/",!0);h!=="/"&&($.pathname=$.pathname==="/"?h:_([h,$.pathname])),D=v.createHref($)}let[I,B,Q]=wr(n,y),Qe=Or(f,{replace:s,mask:c,state:l,target:o,preventScrollReset:d,relative:a,viewTransition:m,defaultShouldRevalidate:g,useTransitions:R});function Ze($){t&&t($),$.defaultPrevented||Qe($)}let ve=!(C.isExternal||i),Re=u.createElement("a",{...y,...Q,href:(ve?D:void 0)||C.absoluteURL||S,onClick:ve?Ze:t,ref:Pr(p,B),target:o,"data-discover":!E&&r==="render"?"true":void 0});return I&&!E?u.createElement(u.Fragment,null,Re,u.createElement(Sr,{page:S})):Re});Ye.displayName="Link";var _r=u.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,
3className:n="",end:a=!1,style:i,to:s,viewTransition:c,children:l,...o},f){let d=V(s,{relative:o.relative}),m=L(),g=u.useContext(K),{navigator:y,basename:p}=u.useContext(b),h=g!=null&&Ir(d)&&c===!0,v=y.encodeLocation?y.encodeLocation(d).pathname:d.pathname,R=m.pathname,E=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(R=R.toLowerCase(),E=E?E.toLowerCase():null,v=v.toLowerCase()),E&&p&&(E=T(E,p)||E);const C=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let S=R===v||!a&&R.startsWith(v)&&R.charAt(C)==="/",O=E!=null&&(E===v||!a&&E.startsWith(v)&&E.charAt(v.length)==="/"),D={isActive:S,isPending:O,isTransitioning:h},I=S?t:void 0,B;typeof n=="function"?B=n(D):B=[n,S?"active":null,O?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let Q=typeof i=="function"?i(D):i;return u.createElement(Ye,{...o,"aria-current":I,className:B,ref:f,style:Q,to:s,viewTransition:c},typeof l=="function"?l(D):l)});_r.displayName="NavLink";var kr=u.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:a,state:i,method:s=q,action:c,onSubmit:l,relative:o,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:m,...g},y)=>{let{useTransitions:p}=u.useContext(b),h=Nr(),v=Ar(c,{relative:o}),R=s.toLowerCase()==="get"?"get":"post",E=typeof c=="string"&&le.test(c),C=S=>{if(l&&l(S),S.defaultPrevented)return;S.preventDefault();let O=S.nativeEvent.submitter,D=O?.getAttribute("formmethod")||s,I=()=>h(O||S.currentTarget,{fetcherKey:t,method:D,navigate:r,replace:a,state:i,relative:o,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:m});p&&r!==!1?u.startTransition(()=>I()):I()};return u.createElement("form",{ref:y,method:R,action:v,onSubmit:n?l:C,...g,"data-discover":!E&&e==="render"?"true":void 0})});kr.displayName="Form";function Tr(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Xe(e){let t=u.useContext(M);return w(t,Tr(e)),t}function Or(e,{target:t,replace:r,mask:n,state:a,preventScrollReset:i,relative:s,viewTransition:c,defaultShouldRevalidate:l,useTransitions:o}={}){let f=de(),d=L(),m=V(e,{relative:s});return u.useCallback(g=>{if(sr(g,t)){g.preventDefault();let y=r!==void 0?r:N(d)===N(m),p=()=>f(e,{replace:y,mask:n,state:a,preventScrollReset:i,relative:s,viewTransition:c,defaultShouldRevalidate:l});o?u.startTransition(()=>p()):p()}},[d,f,m,r,n,a,t,e,i,s,c,l,o])}function Vr(e){P(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=u.useRef(ie(e)),r=u.useRef(!1),n=L(),a=u.useMemo(()=>ur(n.search,r.current?null:t.current),[n.search]),i=de(),s=u.useCallback((c,l)=>{const o=ie(typeof c=="function"?c(new URLSearchParams(a)):c);r.current=!0,i("?"+o,l)},[i,a]);return[a,s]}var Dr=0,$r=()=>`__${String(++Dr)}__`;function Nr(){let{router:e}=Xe("useSubmit"),{basename:t}=u.useContext(b),r=Qt(),n=e.fetch,a=e.navigate;return u.useCallback(async(i,s={})=>{let{action:c,method:l,encType:o,formData:f,body:d}=dr(i,t);if(s.navigate===!1){let m=s.fetcherKey||$r();await n(m,r,s.action||c,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:f,body:d,formMethod:s.method||l,formEncType:s.encType||o,flushSync:s.flushSync})}else await a(s.action||c,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:f,body:d,formMethod:s.method||l,formEncType:s.encType||o,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,a,t,r])}function Ar(e,{relative:t}={}){let{basename:r}=u.useContext(b),n=u.useContext(k);w(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),i={...V(e||".",{relative:t})},s=L();if(e==null){i.search=s.search;let c=new URLSearchParams(i.search),l=c.getAll("index");if(l.some(f=>f==="")){c.delete("index"),l.filter(d=>d).forEach(d=>c.append("index",d));let f=c.toString();i.search=f?`?${f}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:_([r,i.pathname])),N(i)}function Ir(e,{relative:t}={}){let r=u.useContext(We);w(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Xe("useViewTransitionState"),a=V(e,{relative:t});if(!r.isTransitioning)return!1;let i=T(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=T(r.nextLocation.pathname,n)||r.nextLocation.pathname;return W(a.pathname,s)!=null||W(a.pathname,i)!=null}export{jr as B,Ye as L,_r as N,Wr as R,at as a,de as b,Mr as c,rr as d,Hr as e,Br as f,Vr as g,Fr as h,nt as r,L 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.