PageSourceSearch

https://passion.com/www/guest/20260924T124310/chunk-OE4NN4TA.js?20260924T124310

js passion.com collected 2026-09-26 03:53:33 UTC 44,369 bytes, 3 lines download raw bytes

1import{i as e}from"./rolldown-runtime.js";import{M as t}from"./useI18n.js";import{i as n}from"./vendor.js";import{n as r,t as i}from"./objectSpread2.js";r();function a(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function o(e,t){if(e==null)return{};var n,r,i=a(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var s=e(n(),1),c=`modulepreload`,l=function(e){return`/www/guest/`+e},u={},d=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute(`nonce`));function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=l(t,n),t in u)return;u[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:c,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},f=[`page`],p=[`page`,`matches`],m=[`page`,`matches`],h=[`onClick`,`discover`,`prefetch`,`relative`,`reloadDocument`,`replace`,`unstable_mask`,`state`,`target`,`to`,`preventScrollReset`,`viewTransition`,`unstable_defaultShouldRevalidate`],g=[`aria-current`,`caseSensitive`,`className`,`end`,`style`,`to`,`viewTransition`,`children`],_=[`discover`,`fetcherKey`,`navigate`,`reloadDocument`,`replace`,`state`,`method`,`action`,`onSubmit`,`relative`,`preventScrollReset`,`viewTransition`,`unstable_defaultShouldRevalidate`],v=[`getKey`,`storageKey`],y=`popstate`;function b(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function x(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=O(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),E(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:D(t))}function r(e,t){C(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return k(t,n,r,e)}function S(e,t){if(e===!1||e==null)throw Error(t)}function C(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch(e){}}}function w(){return Math.random().toString(36).substring(2,10)}function T(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function E(e,t,n=null,r,a){return i(i({pathname:typeof e==`string`?e:e.pathname,search:``,hash:``},typeof t==`string`?O(t):t),{},{state:n,key:t&&t.key||r||w(),unstable_mask:a})}function D({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function O(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function k(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,s=a.history,c=`POP`,l=null,u=d();u==null&&(u=0,s.replaceState(i(i({},s.state),{},{idx:u}),``));function d(){return(s.state||{idx:null}).idx}function f(){c=`POP`;let e=d(),t=e==null?null:e-u;u=e,l&&l({action:c,location:g.location,delta:t})}function p(e,t){c=`PUSH`;let r=b(e)?e:E(g.location,e,t);n&&n(r,e),u=d()+1;let i=T(r,u),f=g.createHref(r.unstable_mask||r);try{s.pushState(i,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;a.location.assign(f)}o&&l&&l({action:c,location:g.location,delta:1})}function m(e,t){c=`REPLACE`;let r=b(e)?e:E(g.location,e,t);n&&n(r,e),u=d();let i=T(r,u),a=g.createHref(r.unstable_mask||r);s.replaceState(i,``,a),o&&l&&l({action:c,location:g.location,delta:0})}function h(e){return A(e)}let g={get action(){return c},get location(){return e(a,s)},listen(e){if(l)throw Error(`A history only accepts one active listener`);return a.addEventListener(y,f),l=e,()=>{a.removeEventListener(y,f),l=null}},createHref(e){return t(a,e)},createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:p,replace:m,go(e){return s.go(e)}};return g}function A(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),S(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:D(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function ee(e,t,n=`/`){return te(e,t,n,!1)}function te(e,t,n,r){let i=N((typeof t==`string`?O(t):t).pathname||`/`,n);if(i==null)return null;let a=j(e);ie(a);let o=null;for(let e=0;o==null&&e<a.length;++e){let t=ge(i);o=me(a[e],t,r)}return o}function ne(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function j(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;S(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}
1" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=F([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(S(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),j(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:fe(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{var n;if(e.path===``||!((n=e.path)!=null&&n.includes(`?`)))a(e,t);else for(let n of re(e.path))a(e,t,!0,n)}),t}function re(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=re(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function ie(e){e.sort((e,t)=>e.score===t.score?pe(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ae=/^:[\w-]+$/,oe=3,se=2,ce=1,le=10,ue=-2,de=e=>e===`*`;function fe(e,t){let n=e.split(`/`),r=n.length;return n.some(de)&&(r+=ue),t&&(r+=se),n.filter(e=>!de(e)).reduce((e,t)=>e+(ae.test(t)?oe:t===``?ce:le),r)}function pe(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function me(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=M({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=M({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;
1Object.assign(i,u.params),o.push({params:i,pathname:F([a,u.pathname]),pathnameBase:we(F([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=F([a,u.pathnameBase]))}return o}function M(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=he(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function he(e,t=!1,n=!0){C(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 r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ge(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return C(!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 N(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var _e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ve(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?O(e):e,a;return n?(n=Ce(n),a=n.startsWith(`/`)?ye(n.substring(1),`/`):ye(n,t)):a=t,{pathname:a,search:Te(r),hash:Ee(i)}}function ye(e,t){let n=I(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function be(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` 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((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Se(e){let t=xe(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function P(e,t,n,r=!1){let a;typeof e==`string`?a=O(e):(a=i({},e),S(!a.pathname||!a.pathname.includes(`?`),be(`?`,`pathname`,`search`,a)),S(!a.pathname||!a.pathname.includes(`#`),be(`#`,`pathname`,`hash`,a)),S(!a.search||!a.search.includes(`#`),be(`#`,`search`,`hash`,a)));let o=e===``||a.pathname===``,s=o?`/`:a.pathname,c;if(s==null)c=n;else{let e=t.length-1;if(!r&&s.startsWith(`..`)){let t=s.split(`/`);for(;t[0]===`..`;)t.shift(),--e;a.pathname=t.join(`/`)}c=e>=0?t[e]:`/`}let l=ve(a,c),u=s&&s!==`/`&&s.endsWith(`/`),d=(o||s===`.`)&&n.endsWith(`/`);return!l.pathname.endsWith(`/`)&&(u||d)&&(l.pathname+=`/`),l}var Ce=e=>e.replace(/\/\/+/g,`/`),F=e=>Ce(e.join(`/`)),I=e=>e.replace(/\/+$/,``),we=e=>I(e).replace(/^\/*/,`/`),Te=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Ee=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,De=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Oe(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function ke(e){return F(e.map(e=>e.route.path).filter(Boolean))||`/`}var Ae=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function je(e,t){let n=e;if(typeof n!=`string`||!_e.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ae)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=N(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch(e){C(!1,`<Link to="${n}">
1 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Me=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Me);var Ne=[`GET`,...Me];new Set(Ne);var L=s.createContext(null);L.displayName=`DataRouter`;var R=s.createContext(null);R.displayName=`DataRouterState`;var Pe=s.createContext(!1);function Fe(){return s.useContext(Pe)}var Ie=s.createContext({isTransitioning:!1});Ie.displayName=`ViewTransition`;var Le=s.createContext(new Map);Le.displayName=`Fetchers`;var Re=s.createContext(null);Re.displayName=`Await`;var z=s.createContext(null);z.displayName=`Navigation`;var B=s.createContext(null);B.displayName=`Location`;var V=s.createContext({outlet:null,matches:[],isDataRoute:!1});V.displayName=`Route`;var ze=s.createContext(null);ze.displayName=`RouteError`;var Be=`REACT_ROUTER_ERROR`,Ve=`REDIRECT`,He=`ROUTE_ERROR_RESPONSE`;function Ue(e){if(e.startsWith(`${Be}:${Ve}:{`))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(e){}}function We(e){if(e.startsWith(`${Be}:${He}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new De(t.status,t.statusText,t.data)}catch(e){}}function Ge(e,{relative:t}={}){S(H(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=s.useContext(z),{hash:i,pathname:a,search:o}=G(e,{relative:t}),c=a;return n!==`/`&&(c=a===`/`?n:F([n,a])),r.createHref({pathname:c,search:o,hash:i})}function H(){return s.useContext(B)!=null}function U(){return S(H(),`useLocation() may be used only in the context of a <Router> component.`),s.useContext(B).location}var Ke=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function qe(e){s.useContext(z).static||s.useLayoutEffect(e)}function W(){let{isDataRoute:e}=s.useContext(V);return e?mt():Je()}function Je(){S(H(),`useNavigate() may be used only in the context of a <Router> component.`);let e=s.useContext(L),{basename:t,navigator:n}=s.useContext(z),{matches:r}=s.useContext(V),{pathname:i}=U(),a=JSON.stringify(Se(r)),o=s.useRef(!1);return qe(()=>{o.current=!0}),s.useCallback((r,s={})=>{if(C(o.current,Ke),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=P(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:F([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}s.createContext(null);function Ye(){let{matches:e}=s.useContext(V),t=e[e.length-1];return t?t.params:{}}function G(e,{relative:t}={}){let{matches:n}=s.useContext(V),{pathname:r}=U(),i=JSON.stringify(Se(n));return s.useMemo(()=>P(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Xe(e,t){return Ze(e,t)}function Ze(e,t,n){S(H(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=s.useContext(z),{matches:a}=s.useContext(V),o=a[a.length-1],c=o?o.params:{},l=o?o.pathname:`/`,u=o?o.pathnameBase:`/`,d=o&&o.route;{let e=d&&d.path||``;gt(l,!d||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) 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="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let f=U(),p;if(t){var m;let e=typeof t==`string`?O(t):t;S(u===`/`||((m=e.pathname)==null?void 0:m.startsWith(u)),`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 "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=f;let h=p.pathname||`/`,g=h;if(u!==`/`){let e=u.replace(/^\//,``).split(`/`);g=`/`+h.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let _=ee(e,{pathname:g});C(d||_!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),C(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.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=it(_&&_.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:F([u,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?u:F([u,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),a,n);return t&&v?s.createElement(B.Provider,{value:{location:i({pathname:`/`,search:``,hash:``,state:null,key:`default`,unstable_mask:void 0},p),navigationType:`POP`}},v):v}function Qe(){let e=pt(),t=Oe(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=s.createElement(s.Fragment,null,s.createElement(`p`,null,`💿 Hey developer 👋`),s.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,s.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,s.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),s.createElement(s.Fragment,null,s.createElement(`h2`,null,`Unexpected Application 
3Error!`),s.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?s.createElement(`pre`,{style:i},n):null,o)}var $e=s.createElement(Qe,null),et=class extends s.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?t.error:e.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`){let t=We(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:s.createElement(V.Provider,{value:this.props.routeContext},s.createElement(ze.Provider,{value:e,children:this.props.component}));return this.context?s.createElement(nt,{error:e},t):t}};et.contextType=Pe;var tt=new WeakMap;function nt({children:e,error:t}){let{basename:n}=s.useContext(z);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Ue(t.digest);if(e){let r=tt.get(t);if(r)throw r;let i=je(e.location,n);if(Ae&&!tt.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw tt.set(t,n),n}return s.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function rt({routeContext:e,match:t,children:n}){let r=s.useContext(L);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),s.createElement(V.Provider,{value:e},n)}function it(e,t=[],n){let r=n==null?void 0:n.state;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 i=e,a=r==null?void 0:r.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&(a==null?void 0:a[e.route.id])!==void 0);S(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,c=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:a}=r,s=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||s){n.isStatic&&(o=!0),i=c>=0?i.slice(0,c+1):[i[0]];break}}}}let l=n==null?void 0:n.onError,u=r&&l?(e,t)=>{var n,i;l(e,{location:r.location,params:(n=(i=r.matches)==null||(i=i[0])==null?void 0:i.params)==null?{}:n,unstable_pattern:ke(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,l)=>{let d,f=!1,p=null,m=null;r&&(d=a&&n.route.id?a[n.route.id]:void 0,p=n.route.errorElement||$e,o&&(c<0&&l===0?(gt(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):c===l&&(f=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,l+1)),g=()=>{let t;return t=d?p:f?m:n.route.Component?s.createElement(n.route.Component,null):n.route.element?n.route.element:e,s.createElement(rt,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||l===0)?s.createElement(et,{location:r.location,revalidation:r.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()},null)}function at(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ot(e){let t=s.useContext(L);return S(t,at(e)),t}function st(e){let t=s.useContext(R);return S(t,at(e)),t}function ct(e){let t=s.useContext(V);return S(t,at(e)),t}function lt(e){let t=ct(e),n=t.matches[t.matches.length-1];return S(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function ut(){return lt(`useRouteId`)}function dt(){return st(`useNavigation`).navigation}function ft(){let{matches:e,loaderData:t}=st(`useMatches`);return s.useMemo(()=>e.map(e=>ne(e,t)),[e,t])}function pt(){var e;let t=s.useContext(ze),n=st(`useRouteError`),r=lt(`useRouteError`);return t===void 0?(e=n.errors)==null?void 0:e[r]:t}function mt(){let{router:e}
3=ot(`useNavigate`),n=lt(`useNavigate`),r=s.useRef(!1);return qe(()=>{r.current=!0}),s.useCallback(function(){var a=t(function*(t,a={}){C(r.current,Ke),r.current&&(typeof t==`number`?yield e.navigate(t):yield e.navigate(t,i({fromRouteId:n},a)))});return function(e){return a.apply(this,arguments)}}(),[e,n])}var ht={};function gt(e,t,n){!t&&!ht[e]&&(ht[e]=!0,C(!1,n))}s.useOptimistic,s.memo(_t);function _t({routes:e,future:t,state:n,isStatic:r,onError:i}){return Ze(e,void 0,{state:n,isStatic:r,onError:i,future:t})}function vt({to:e,replace:t,state:n,relative:r}){S(H(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=s.useContext(z);C(!i,`<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:a}=s.useContext(V),{pathname:o}=U(),c=W(),l=P(e,Se(a),o,r===`path`),u=JSON.stringify(l);return s.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function yt(e){S(!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 bt({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,unstable_useTransitions:o}){S(!H(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let c=e.replace(/^\/*/,`/`),l=s.useMemo(()=>({basename:c,navigator:i,static:a,unstable_useTransitions:o,future:{}}),[c,i,a,o]);typeof n==`string`&&(n=O(n));let{pathname:u=`/`,search:d=``,hash:f=``,state:p=null,key:m=`default`,unstable_mask:h}=n,g=s.useMemo(()=>{let e=N(u,c);return e==null?null:{location:{pathname:e,search:d,hash:f,state:p,key:m,unstable_mask:h},navigationType:r}},[c,u,d,f,p,m,r,h]);return C(g!=null,`<Router basename="${c}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:s.createElement(z.Provider,{value:l},s.createElement(B.Provider,{children:t,value:g}))}function xt({children:e,location:t}){return Xe(St(e),t)}s.Component;function St(e,t=[]){let n=[];return s.Children.forEach(e,(e,r)=>{if(!s.isValidElement(e))return;let i=[...t,r];if(e.type===s.Fragment){n.push.apply(n,St(e.props.children,i));return}S(e.type===yt,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),S(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=St(e.props.children,i)),n.push(a)}),n}var K=`get`,q=`application/x-www-form-urlencoded`;function J(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Ct(e){return J(e)&&e.tagName.toLowerCase()===`button`}function wt(e){return J(e)&&e.tagName.toLowerCase()===`form`}function Tt(e){return J(e)&&e.tagName.toLowerCase()===`input`}function Et(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Dt(e,t){return e.button===0&&(!t||t===`_self`)&&!Et(e)}function Ot(e=``){return new URLSearchParams(typeof e==`string`||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]])},[]))}function kt(e,t){let n=Ot(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Y=null;
3function At(){if(Y===null)try{new FormData(document.createElement(`form`),0),Y=!1}catch(e){Y=!0}return Y}var jt=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Mt(e){return e!=null&&!jt.has(e)?(C(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${q}"`),null):e}function Nt(e,t){let n,r,i,a,o;if(wt(e)){let o=e.getAttribute(`action`);r=o?N(o,t):null,n=e.getAttribute(`method`)||K,i=Mt(e.getAttribute(`enctype`))||q,a=new FormData(e)}else if(Ct(e)||Tt(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?N(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||K,i=Mt(e.getAttribute(`formenctype`))||Mt(o.getAttribute(`enctype`))||q,a=new FormData(o,e),!At()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(J(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=K,r=null,i=q,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Pt={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Ft=/[&><\u2028\u2029]/g;function It(e){return e.replace(Ft,e=>Pt[e])}function Lt(e,t){if(e===!1||e==null)throw Error(t)}function Rt(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&N(i.pathname,t)===`/`?i.pathname=`${I(t)}/_root.${r}`:i.pathname=`${I(i.pathname)}.${r}`,i}function zt(e,t){return Bt.apply(this,arguments)}function Bt(){return Bt=t(function*(e,t){if(e.id in t)return t[e.id];try{let n=yield d(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}),Bt.apply(this,arguments)}function Vt(e){return e!=null&&typeof e.page==`string`}function Ht(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`}function Ut(e,t,n){return Wt.apply(this,arguments)}function Wt(){return Wt=t(function*(e,n,r){return Yt((yield Promise.all(e.map(function(){var e=t(function*(e){let t=n.routes[e.route.id];if(t){let e=yield zt(t,r);return e.links?e.links():[]}return[]});return function(t){return e.apply(this,arguments)}}()))).flat(1).filter(Ht).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?i(i({},e),{},{rel:`prefetch`,as:`style`}):i(i({},e),{},{rel:`prefetch`})))}),Wt.apply(this,arguments)}function Gt(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>{var r;return n[t].pathname!==e.pathname||((r=n[t].route.path)==null?void 0:r.endsWith(`*`))&&n[t].params[`*`]!==e.params[`*`]};return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){var l;let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((l=n[0])==null?void 0:l.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Kt(e,t,{includeHydrateFallback:n}={}){return qt(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function qt(e){return[...new Set(e)]}function Jt(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Yt(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Vt(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Jt(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function X(){let e=s.useContext(L);return Lt(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Xt(){let e=s.useContext(R);return Lt(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Z=s.createContext(void 0);Z.displayName=`FrameworkContext`;function Zt(){let e=s.useContext(Z);return Lt(e,`You must render this element inside a <HydratedRouter> element`),e}function Qt(e,t){let n=s.useContext(Z),[r,i]=s.useState(!1),[a,o]=s.useState(!1),{onFocus:c,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=s.useRef(null);s.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>
3{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),s.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{i(!0)},h=()=>{i(!1),o(!1)};return n?e===`intent`?[a,p,{onFocus:Q(c,m),onBlur:Q(l,h),onMouseEnter:Q(u,m),onMouseLeave:Q(d,h),onTouchStart:Q(f,m)}]:[a,p,{}]:[!1,p,{}]}function Q(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function $t(e){let{page:t}=e,n=o(e,f),r=Fe(),{router:a}=X(),c=s.useMemo(()=>ee(a.routes,t,a.basename),[a.routes,t,a.basename]);return c?r?s.createElement(tn,i({page:t,matches:c},n)):s.createElement(nn,i({page:t,matches:c},n)):null}function en(e){let{manifest:t,routeModules:n}=Zt(),[r,i]=s.useState([]);return s.useEffect(()=>{let r=!1;return Ut(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function tn(e){let{page:t,matches:n}=e,r=o(e,p),a=U(),{future:c}=Zt(),{basename:l}=X(),u=s.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let e=Rt(t,l,c.unstable_trailingSlashAwareDataRequests,`rsc`),r=!1,i=[];for(let e of n)typeof e.route.shouldRevalidate==`function`?r=!0:i.push(e.route.id);return r&&i.length>0&&e.searchParams.set(`_routes`,i.join(`,`)),[e.pathname+e.search]},[l,c.unstable_trailingSlashAwareDataRequests,t,a,n]);return s.createElement(s.Fragment,null,u.map(e=>s.createElement(`link`,i({key:e,rel:`prefetch`,as:`fetch`,href:e},r))))}function nn(e){let{page:t,matches:n}=e,r=o(e,m),a=U(),{future:c,manifest:l,routeModules:u}=Zt(),{basename:d}=X(),{loaderData:f,matches:p}=Xt(),h=s.useMemo(()=>Gt(t,n,p,l,a,`data`),[t,n,p,l,a]),g=s.useMemo(()=>Gt(t,n,p,l,a,`assets`),[t,n,p,l,a]),_=s.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let e=new Set,r=!1;if(n.forEach(t=>{var n;let i=l.routes[t.route.id];!i||!i.hasLoader||(!h.some(e=>e.route.id===t.route.id)&&t.route.id in f&&(n=u[t.route.id])!=null&&n.shouldRevalidate||i.hasClientLoader?r=!0:e.add(t.route.id))}),e.size===0)return[];let i=Rt(t,d,c.unstable_trailingSlashAwareDataRequests,`data`);return r&&e.size>0&&i.searchParams.set(`_routes`,n.filter(t=>e.has(t.route.id)).map(e=>e.route.id).join(`,`)),[i.pathname+i.search]},[d,c.unstable_trailingSlashAwareDataRequests,f,a,l,h,n,t,u]),v=s.useMemo(()=>Kt(g,l),[g,l]),y=en(g);return s.createElement(s.Fragment,null,_.map(e=>s.createElement(`link`,i({key:e,rel:`prefetch`,as:`fetch`,href:e},r))),v.map(e=>s.createElement(`link`,i({key:e,rel:`modulepreload`,href:e},r))),y.map(({key:e,link:t})=>{var n;return s.createElement(`link`,i(i({key:e,nonce:r.nonce},t),{},{crossOrigin:(n=t.crossOrigin)==null?r.crossOrigin:n}))}))}function rn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}s.Component;var an=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{an&&(window.__reactRouterVersion=`7.14.1`)}catch(e){}function on({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=s.useRef();i.current==null&&(i.current=x({window:r,v5Compat:!0}));let a=i.current,[o,c]=s.useState({action:a.action,location:a.location}),l=s.useCallback(e=>{n===!1?c(e):s.startTransition(()=>c(e))},[n]);return s.useLayoutEffect(()=>a.listen(l),[a,l]),s.createElement(bt,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,unstable_useTransitions:n})}function sn({basename:e,children:t,history:n,unstable_useTransitions:r}){let[i,a]=s.useState({action:n.action,location:n.location}),o=s.useCallback(e=>{r===!1?a(e):s.startTransition(()=>a(e))},[r]);return s.useLayoutEffect(()=>n.listen(o),[n,o]),s.createElement(bt,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,unstable_useTransitions:r})}sn.displayName=`unstable_HistoryRouter`;var cn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ln=s.forwardRef(function(e,t){let{onClick:n,discover:r=`render`,prefetch:a=`none`,relative:c,reloadDocument:l,replace:u,unstable_mask:d,state:f,target:p,to:m,preventScrollReset:g,viewTransition:_,unstable_defaultShouldRevalidate:v}=e,y=o(e,h),{basename:b,navigator:x,unstable_useTransitions:S}=s.useContext(z),C=typeof m==`string`&&cn.test(m),w=je(m,b);m=w.to;let T=Ge(m,{relative:c}
3),E=U(),D=null;if(d){let e=P(d,[],E.unstable_mask?E.unstable_mask.pathname:`/`,!0);b!==`/`&&(e.pathname=e.pathname===`/`?b:F([b,e.pathname])),D=x.createHref(e)}let[O,k,A]=Qt(a,y),ee=gn(m,{replace:u,unstable_mask:d,state:f,target:p,preventScrollReset:g,relative:c,viewTransition:_,unstable_defaultShouldRevalidate:v,unstable_useTransitions:S});function te(e){n&&n(e),e.defaultPrevented||ee(e)}let ne=!(w.isExternal||l),j=s.createElement(`a`,i(i(i({},y),A),{},{href:(ne?D:void 0)||w.absoluteURL||T,onClick:ne?te:n,ref:rn(t,k),target:p,"data-discover":!C&&r===`render`?`true`:void 0}));return O&&!C?s.createElement(s.Fragment,null,j,s.createElement($t,{page:T})):j});ln.displayName=`Link`;var un=s.forwardRef(function(e,t){let{"aria-current":n=`page`,caseSensitive:r=!1,className:a=``,end:c=!1,style:l,to:u,viewTransition:d,children:f}=e,p=o(e,g),m=G(u,{relative:p.relative}),h=U(),_=s.useContext(R),{navigator:v,basename:y}=s.useContext(z),b=_!=null&&En(m)&&d===!0,x=v.encodeLocation?v.encodeLocation(m).pathname:m.pathname,S=h.pathname,C=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;r||(S=S.toLowerCase(),C=C?C.toLowerCase():null,x=x.toLowerCase()),C&&y&&(C=N(C,y)||C);let w=x!==`/`&&x.endsWith(`/`)?x.length-1:x.length,T=S===x||!c&&S.startsWith(x)&&S.charAt(w)===`/`,E=C!=null&&(C===x||!c&&C.startsWith(x)&&C.charAt(x.length)===`/`),D={isActive:T,isPending:E,isTransitioning:b},O=T?n:void 0,k;k=typeof a==`function`?a(D):[a,T?`active`:null,E?`pending`:null,b?`transitioning`:null].filter(Boolean).join(` `);let A=typeof l==`function`?l(D):l;return s.createElement(ln,i(i({},p),{},{"aria-current":O,className:k,ref:t,style:A,to:u,viewTransition:d}),typeof f==`function`?f(D):f)});un.displayName=`NavLink`;var dn=s.forwardRef((e,t)=>{let{discover:n=`render`,fetcherKey:r,navigate:a,reloadDocument:c,replace:l,state:u,method:d=K,action:f,onSubmit:p,relative:m,preventScrollReset:h,viewTransition:g,unstable_defaultShouldRevalidate:v}=e,y=o(e,_),{unstable_useTransitions:b}=s.useContext(z),x=bn(),S=xn(f,{relative:m}),C=d.toLowerCase()===`get`?`get`:`post`,w=typeof f==`string`&&cn.test(f);return s.createElement(`form`,i(i({ref:t,method:C,action:S,onSubmit:c?p:e=>{if(p&&p(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(t==null?void 0:t.getAttribute(`formmethod`))||d,i=()=>x(t||e.currentTarget,{fetcherKey:r,method:n,navigate:a,replace:l,state:u,relative:m,preventScrollReset:h,viewTransition:g,unstable_defaultShouldRevalidate:v});b&&a!==!1?s.startTransition(()=>i()):i()}},y),{},{"data-discover":!w&&n===`render`?`true`:void 0}))});dn.displayName=`Form`;function fn(e){let{getKey:t,storageKey:n}=e,r=o(e,v),a=s.useContext(Z),{basename:c}=s.useContext(z),l=U(),u=ft();wn({getKey:t,storageKey:n});let d=s.useMemo(()=>{if(!a||!t)return null;let e=Cn(l,u,c,t);return e===l.key?null:e},[]);if(!a||a.isSpaMode)return null;let f=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];
3typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return s.createElement(`script`,i(i({},r),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${f})(${It(JSON.stringify(n||Sn))}, ${It(JSON.stringify(d))})`}}))}fn.displayName=`ScrollRestoration`;function pn(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function mn(e){let t=s.useContext(L);return S(t,pn(e)),t}function hn(e){let t=s.useContext(R);return S(t,pn(e)),t}function gn(e,{target:t,replace:n,unstable_mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:c,unstable_defaultShouldRevalidate:l,unstable_useTransitions:u}={}){let d=W(),f=U(),p=G(e,{relative:o});return s.useCallback(m=>{if(Dt(m,t)){m.preventDefault();let t=n===void 0?D(f)===D(p):n,h=()=>d(e,{replace:t,unstable_mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:c,unstable_defaultShouldRevalidate:l});u?s.startTransition(()=>h()):h()}},[f,d,p,n,r,i,t,e,a,o,c,l,u])}function _n(e){C(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=s.useRef(Ot(e)),n=s.useRef(!1),r=U(),i=s.useMemo(()=>kt(r.search,n.current?null:t.current),[r.search]),a=W();return[i,s.useCallback((e,t)=>{let r=Ot(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var vn=0,yn=()=>`__${String(++vn)}__`;function bn(){let{router:e}=mn(`useSubmit`),{basename:n}=s.useContext(z),r=ut(),i=e.fetch,a=e.navigate;return s.useCallback(function(){var e=t(function*(e,t={}){let{action:o,method:s,encType:c,formData:l,body:u}=Nt(e,n);t.navigate===!1?yield i(t.fetcherKey||yn(),r,t.action||o,{unstable_defaultShouldRevalidate:t.unstable_defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:l,body:u,formMethod:t.method||s,formEncType:t.encType||c,flushSync:t.flushSync}):yield a(t.action||o,{unstable_defaultShouldRevalidate:t.unstable_defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:l,body:u,formMethod:t.method||s,formEncType:t.encType||c,replace:t.replace,state:t.state,fromRouteId:r,flushSync:t.flushSync,viewTransition:t.viewTransition})});return function(t){return e.apply(this,arguments)}}(),[i,a,n,r])}function xn(e,{relative:t}={}){let{basename:n}=s.useContext(z),r=s.useContext(V);S(r,`useFormAction must be used inside a RouteContext`);let[a]=r.matches.slice(-1),o=i({},G(e||`.`,{relative:t})),c=U();if(e==null){o.search=c.search;let e=new URLSearchParams(o.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();o.search=n?`?${n}`:``}}return(!e||e===`.`)&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(o.pathname=o.pathname===`/`?n:F([n,o.pathname])),D(o)}var Sn=`react-router-scroll-positions`,$={};function Cn(e,t,n,r){let a=null;return r&&(a=r(n===`/`?e:i(i({},e),{},{pathname:N(e.pathname,n)||e.pathname}),t)),a==null&&(a=e.key),a}function wn({getKey:e,storageKey:t}={}){let{router:n}=mn(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=hn(`useScrollRestoration`),{basename:a}=s.useContext(z),o=U(),c=ft(),l=dt();s.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Tn(s.useCallback(()=>{if(l.state===`idle`){let t=Cn(o,c,a,e);$[t]=window.scrollY}try{sessionStorage.setItem(t||Sn,JSON.stringify($))}catch(e){C(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[l.state,e,a,o,c,t])),typeof document<`u`&&(s.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Sn);e&&($=JSON.parse(e))}catch(e){}},[t]),s.useLayoutEffect(()=>{let t=n==null?void 0:n.enableScrollRestoration($,()=>window.scrollY,e?(t,n)=>Cn(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),s.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch(e){C(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Tn(e,t){let{capture:n}=t||{};s.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function En(e,{relative:t}={}){let n=s.useContext(Ie);S(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=mn(`useViewTransitionState`),i=G(e,{relative:t});if(!n.isTransitioning)return!1;let a=N(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=N(n.nextLocation.pathname,r)||n.nextLocation.pathname;return M(i.pathname,o)!=null||M(i.pathname,a)!=null}export{xt as a,Ye as c,o as d,yt as i,_n as l,ln as n,U as o,vt as r,W as s,on as t,d 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.