Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tanstack/react-router

Package Overview
Dependencies
Maintainers
2
Versions
649
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/react-router - npm Package Compare versions

Comparing version 0.0.1-beta.184 to 0.0.1-beta.185

190

build/stats-react.json

@@ -14,15 +14,15 @@ {

"name": "@tanstack+store@0.0.1/node_modules/@tanstack/store/build/esm/index.js",
"uid": "497b-159"
"uid": "4e91-159"
},
{
"name": "@tanstack+react-store@0.0.1/node_modules/@tanstack/react-store/build/esm/index.js",
"uid": "497b-161"
"uid": "4e91-161"
},
{
"name": "tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
"uid": "497b-163"
"uid": "4e91-163"
},
{
"name": "tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
"uid": "497b-165"
"uid": "4e91-165"
}

@@ -36,3 +36,3 @@ ]

"name": "router-core/build/esm/index.js",
"uid": "497b-167"
"uid": "4e91-167"
},

@@ -43,15 +43,15 @@ {

{
"uid": "497b-171",
"uid": "4e91-171",
"name": "react.tsx"
},
{
"uid": "497b-173",
"uid": "4e91-173",
"name": "scroll-restoration.tsx"
},
{
"uid": "497b-175",
"uid": "4e91-175",
"name": "awaited.tsx"
},
{
"uid": "497b-177",
"uid": "4e91-177",
"name": "index.tsx"

@@ -64,3 +64,3 @@ }

{
"uid": "497b-169",
"uid": "4e91-169",
"name": "\u0000rollupPluginBabelHelpers.js"

@@ -74,68 +74,68 @@ }

"nodeParts": {
"497b-159": {
"4e91-159": {
"renderedLength": 1843,
"gzipLength": 644,
"brotliLength": 0,
"mainUid": "497b-158"
"mainUid": "4e91-158"
},
"497b-161": {
"4e91-161": {
"renderedLength": 1006,
"gzipLength": 479,
"brotliLength": 0,
"mainUid": "497b-160"
"mainUid": "4e91-160"
},
"497b-163": {
"4e91-163": {
"renderedLength": 181,
"gzipLength": 129,
"brotliLength": 0,
"mainUid": "497b-162"
"mainUid": "4e91-162"
},
"497b-165": {
"4e91-165": {
"renderedLength": 44,
"gzipLength": 62,
"brotliLength": 0,
"mainUid": "497b-164"
"mainUid": "4e91-164"
},
"497b-167": {
"renderedLength": 64443,
"4e91-167": {
"renderedLength": 64450,
"gzipLength": 15232,
"brotliLength": 0,
"mainUid": "497b-166"
"mainUid": "4e91-166"
},
"497b-169": {
"4e91-169": {
"renderedLength": 429,
"gzipLength": 238,
"brotliLength": 0,
"mainUid": "497b-168"
"mainUid": "4e91-168"
},
"497b-171": {
"4e91-171": {
"renderedLength": 17084,
"gzipLength": 3790,
"brotliLength": 0,
"mainUid": "497b-170"
"mainUid": "4e91-170"
},
"497b-173": {
"4e91-173": {
"renderedLength": 466,
"gzipLength": 228,
"brotliLength": 0,
"mainUid": "497b-172"
"mainUid": "4e91-172"
},
"497b-175": {
"4e91-175": {
"renderedLength": 641,
"gzipLength": 305,
"brotliLength": 0,
"mainUid": "497b-174"
"mainUid": "4e91-174"
},
"497b-177": {
"4e91-177": {
"renderedLength": 0,
"gzipLength": 0,
"brotliLength": 0,
"mainUid": "497b-176"
"mainUid": "4e91-176"
}
},
"nodeMetas": {
"497b-158": {
"4e91-158": {
"id": "/node_modules/.pnpm/@tanstack+store@0.0.1/node_modules/@tanstack/store/build/esm/index.js",
"moduleParts": {
"index.production.js": "497b-159"
"index.production.js": "4e91-159"
},

@@ -145,20 +145,20 @@ "imported": [],

{
"uid": "497b-160"
"uid": "4e91-160"
},
{
"uid": "497b-166"
"uid": "4e91-166"
}
]
},
"497b-160": {
"4e91-160": {
"id": "/node_modules/.pnpm/@tanstack+react-store@0.0.1/node_modules/@tanstack/react-store/build/esm/index.js",
"moduleParts": {
"index.production.js": "497b-161"
"index.production.js": "4e91-161"
},
"imported": [
{
"uid": "497b-178"
"uid": "4e91-178"
},
{
"uid": "497b-158"
"uid": "4e91-158"
}

@@ -168,13 +168,13 @@ ],

{
"uid": "497b-176"
"uid": "4e91-176"
},
{
"uid": "497b-170"
"uid": "4e91-170"
}
]
},
"497b-162": {
"4e91-162": {
"id": "/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
"moduleParts": {
"index.production.js": "497b-163"
"index.production.js": "4e91-163"
},

@@ -184,13 +184,13 @@ "imported": [],

{
"uid": "497b-166"
"uid": "4e91-166"
},
{
"uid": "497b-170"
"uid": "4e91-170"
}
]
},
"497b-164": {
"4e91-164": {
"id": "/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
"moduleParts": {
"index.production.js": "497b-165"
"index.production.js": "4e91-165"
},

@@ -200,23 +200,23 @@ "imported": [],

{
"uid": "497b-166"
"uid": "4e91-166"
},
{
"uid": "497b-170"
"uid": "4e91-170"
}
]
},
"497b-166": {
"4e91-166": {
"id": "/packages/router-core/build/esm/index.js",
"moduleParts": {
"index.production.js": "497b-167"
"index.production.js": "4e91-167"
},
"imported": [
{
"uid": "497b-162"
"uid": "4e91-162"
},
{
"uid": "497b-164"
"uid": "4e91-164"
},
{
"uid": "497b-158"
"uid": "4e91-158"
}

@@ -226,19 +226,19 @@ ],

{
"uid": "497b-176"
"uid": "4e91-176"
},
{
"uid": "497b-170"
"uid": "4e91-170"
},
{
"uid": "497b-172"
"uid": "4e91-172"
},
{
"uid": "497b-174"
"uid": "4e91-174"
}
]
},
"497b-168": {
"4e91-168": {
"id": "\u0000rollupPluginBabelHelpers.js",
"moduleParts": {
"index.production.js": "497b-169"
"index.production.js": "4e91-169"
},

@@ -248,29 +248,29 @@ "imported": [],

{
"uid": "497b-170"
"uid": "4e91-170"
}
]
},
"497b-170": {
"4e91-170": {
"id": "/packages/react-router/src/react.tsx",
"moduleParts": {
"index.production.js": "497b-171"
"index.production.js": "4e91-171"
},
"imported": [
{
"uid": "497b-168"
"uid": "4e91-168"
},
{
"uid": "497b-179"
"uid": "4e91-179"
},
{
"uid": "497b-160"
"uid": "4e91-160"
},
{
"uid": "497b-162"
"uid": "4e91-162"
},
{
"uid": "497b-164"
"uid": "4e91-164"
},
{
"uid": "497b-166"
"uid": "4e91-166"
}

@@ -280,26 +280,26 @@ ],

{
"uid": "497b-176"
"uid": "4e91-176"
},
{
"uid": "497b-172"
"uid": "4e91-172"
},
{
"uid": "497b-174"
"uid": "4e91-174"
}
]
},
"497b-172": {
"4e91-172": {
"id": "/packages/react-router/src/scroll-restoration.tsx",
"moduleParts": {
"index.production.js": "497b-173"
"index.production.js": "4e91-173"
},
"imported": [
{
"uid": "497b-179"
"uid": "4e91-179"
},
{
"uid": "497b-166"
"uid": "4e91-166"
},
{
"uid": "497b-170"
"uid": "4e91-170"
}

@@ -309,17 +309,17 @@ ],

{
"uid": "497b-176"
"uid": "4e91-176"
}
]
},
"497b-174": {
"4e91-174": {
"id": "/packages/react-router/src/awaited.tsx",
"moduleParts": {
"index.production.js": "497b-175"
"index.production.js": "4e91-175"
},
"imported": [
{
"uid": "497b-166"
"uid": "4e91-166"
},
{
"uid": "497b-170"
"uid": "4e91-170"
}

@@ -329,26 +329,26 @@ ],

{
"uid": "497b-176"
"uid": "4e91-176"
}
]
},
"497b-176": {
"4e91-176": {
"id": "/packages/react-router/src/index.tsx",
"moduleParts": {
"index.production.js": "497b-177"
"index.production.js": "4e91-177"
},
"imported": [
{
"uid": "497b-160"
"uid": "4e91-160"
},
{
"uid": "497b-166"
"uid": "4e91-166"
},
{
"uid": "497b-170"
"uid": "4e91-170"
},
{
"uid": "497b-172"
"uid": "4e91-172"
},
{
"uid": "497b-174"
"uid": "4e91-174"
}

@@ -359,3 +359,3 @@ ],

},
"497b-178": {
"4e91-178": {
"id": "use-sync-external-store/shim/with-selector",

@@ -366,3 +366,3 @@ "moduleParts": {},

{
"uid": "497b-160"
"uid": "4e91-160"
}

@@ -372,3 +372,3 @@ ],

},
"497b-179": {
"4e91-179": {
"id": "react",

@@ -379,6 +379,6 @@ "moduleParts": {},

{
"uid": "497b-170"
"uid": "4e91-170"
},
{
"uid": "497b-172"
"uid": "4e91-172"
}

@@ -385,0 +385,0 @@ ],

@@ -42,3 +42,3 @@ /**

*/
const h="pushstate",u="popstate",l="beforeunload",d=t=>(t.preventDefault(),t.returnValue=""),p=()=>{removeEventListener(l,d,{capture:!0})};function f(t){let e=t.getLocation(),r=()=>{},s=new Set,o=[],n=[];const a=()=>{if(o.length)o[0]?.(a,(()=>{o=[],p()}));else{for(;n.length;)n.shift()?.();t.subscriber||c()}},i=t=>{n.push(t),a()},c=()=>{e=t.getLocation(),s.forEach((t=>t()))};return{get location(){return e},subscribe:e=>(0===s.size&&(r="function"==typeof t.subscriber?t.subscriber(c):()=>{}),s.add(e),()=>{s.delete(e),0===s.size&&r()}),push:(e,r)=>{i((()=>{t.pushState(e,r)}))},replace:(e,r)=>{i((()=>{t.replaceState(e,r)}))},go:e=>{i((()=>{t.go(e)}))},back:()=>{i((()=>{t.back()}))},forward:()=>{i((()=>{t.forward()}))},createHref:e=>t.createHref(e),block:t=>(o.push(t),1===o.length&&addEventListener(l,d,{capture:!0}),()=>{o=o.filter((e=>e!==t)),o.length||p()})}}function m(t){const e=t?.getHref??(()=>`${window.location.pathname}${window.location.search}${window.location.hash}`),r=t?.createHref??(t=>t);return f({getLocation:()=>g(e(),history.state),subscriber:t=>{window.addEventListener(h,t),window.addEventListener(u,t);var e=window.history.pushState;window.history.pushState=function(){let r=e.apply(history,arguments);return t(),r};var r=window.history.replaceState;return window.history.replaceState=function(){let e=r.apply(history,arguments);return t(),e},()=>{window.history.pushState=e,window.history.replaceState=r,window.removeEventListener(h,t),window.removeEventListener(u,t)}},pushState:(t,e)=>{window.history.pushState({...e,key:w()},"",r(t))},replaceState:(t,e)=>{window.history.replaceState({...e,key:w()},"",r(t))},back:()=>window.history.back(),forward:()=>window.history.forward(),go:t=>window.history.go(t),createHref:t=>r(t)})}function y(t={initialEntries:["/"]}){const e=t.initialEntries;let r=t.initialIndex??e.length-1,s={};return f({getLocation:()=>g(e[r],s),subscriber:!1,pushState:(t,o)=>{s={...o,key:w()},e.push(t),r++},replaceState:(t,o)=>{s={...o,key:w()},e[r]=t},back:()=>{r--},forward:()=>{r=Math.min(r+1,e.length-1)},go:t=>window.history.go(t),createHref:t=>t})}function g(t,e){let r=t.indexOf("#"),s=t.indexOf("?");return{href:t,pathname:t.substring(0,r>0?s>0?Math.min(r,s):r:s>0?s:t.length),hash:r>-1?t.substring(r):"",search:s>-1?t.slice(s,-1===r?void 0:r):"",state:e}}function w(){return(Math.random()+1).toString(36).substring(7)}function v(t){return t[t.length-1]}function b(t,e){return"function"==typeof t?t(e):t}function S(t,e){return e.reduce(((e,r)=>(e[r]=t[r],e)),{})}function x(t,e){if(t===e)return t;const r=e,s=Array.isArray(t)&&Array.isArray(r);if(s||R(t)&&R(r)){const e=s?t.length:Object.keys(t).length,o=s?r:Object.keys(r),n=o.length,a=s?[]:{};let i=0;for(let e=0;e<n;e++){const n=s?e:o[e];a[n]=x(t[n],r[n]),a[n]===t[n]&&i++}return e===n&&i===e?t:a}return r}function R(t){if(!E(t))return!1;const e=t.constructor;if(void 0===e)return!0;const r=e.prototype;return!!E(r)&&!!r.hasOwnProperty("isPrototypeOf")}function E(t){return"[object Object]"===Object.prototype.toString.call(t)}function _(t,e){return t===e||typeof t==typeof e&&(R(t)&&R(e)?!Object.keys(e).some((r=>!_(t[r],e[r]))):!(!Array.isArray(t)||!Array.isArray(e))&&(t.length===e.length&&t.every(((t,r)=>_(t,e[r])))))}function I(t){return M(t.filter(Boolean).join("/"))}function M(t){return t.replace(/\/{2,}/g,"/")}function P(t){return"/"===t?t:t.replace(/^\/{1,}/,"")}function C(t){return"/"===t?t:t.replace(/\/{1,}$/,"")}function L(t){return C(P(t))}function A(t,e,r){e=e.replace(new RegExp(`^${t}`),"/"),r=r.replace(new RegExp(`^${t}`),"/");let s=O(e);const o=O(r);o.forEach(((t,e)=>{if("/"===t.value)e?e===o.length-1&&s.push(t):s=[t];else if(".."===t.value)s.length>1&&"/"===v(s)?.value&&s.pop(),s.pop();else{if("."===t.value)return;s.push(t)}}));return M(I([t,...s.map((t=>t.value))]))}function O(t){if(!t)return[];const e=[];if("/"===(t=M(t)).slice(0,1)&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),!t)return e;const r=t.split("/").filter(Boolean);return e.push(...r.map((t=>"$"===t||"*"===t?{type:"wildcard",value:t}:"$"===t.charAt(0)?{type:"param",value:t}:{type:"pathname",value:t}))),"/"===t.slice(-1)&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),e}function j(t,e,r=!1){return I(O(t).map((t=>{if("wildcard"===t.type){const s=e[t.value];return r?`${t.value}${s??""}`:s}return"param"===t.type?e[t.value.substring(1)]??"":t.value})))}function D(t,e,r){const s=k(t,e,r);if(!r.to||s)return s??{}}function k(t,e,r){e="/"!=t?e.substring(t.length):e;const s=`${r.to??"$"}`,o=O(e),n=O(s);e.startsWith("/")||o.unshift({type:"pathname",value:"/"}),s.startsWith("/")||n.unshift({type:"pathname",value:"/"});const a={};return(()=>{for(let t=0;t<Math.max(o.length,n.length);t++){const e=o[t],s=n[t],i=t>=o.length-1,c=t>=n.length-1;if(s){if("wildcard"===s.type)return!!e?.value&&(a["*"]=I(o.slice(t).map((t=>t.value))),!0);if("pathname"===s.type){if("/"===s.value&&!e?.value)return!0;if(e)if(r.caseSensitive){if(s.value!==e.value)return!1}else if(s.value.toLowerCase()!==e.value.toLowerCase())return!1}if(!e)return!1;if("param"===s.type){if("/"===e?.value)return!1;"$"!==e.value.charAt(0)&&(a[s.value.substring(1)]=e.value)}}if(!i&&c)return!!r.fuzzy}return!0})()?a:void 0}function B(t,e){var r,s,o,n="";for(r in t)if(void 0!==(o=t[r]))if(Array.isArray(o))for(s=0;s<o.length;s++)n&&(n+="&"),n+=encodeURIComponent(r)+"="+encodeURIComponent(o[s]);else n&&(n+="&"),n+=encodeURIComponent(r)+"="+encodeURIComponent(o);return(e||"")+n}function T(t){if(!t)return"";var e=decodeURIComponent(t);return"false"!==e&&("true"===e||(0*+e==0&&+e+""===e?+e:e))}function $(t){for(var e,r,s={},o=t.split("&");e=o.shift();)void 0!==s[r=(e=e.split("=")).shift()]?s[r]=[].concat(s[r],T(e.shift())):s[r]=T(e.shift());return s}const H="__root__";class N{constructor(t){this.options=t||{},this.isRoot=!t?.getParentRoute,N.__onInit(this)}init=t=>{this.originalIndex=t.originalIndex,this.router=t.router;const e=this.options,r=!e?.path&&!e?.id;this.parentRoute=this.options?.getParentRoute?.(),r?this.path=H:c(this.parentRoute);let s=r?H:e.path;s&&"/"!==s&&(s=L(s));const o=e?.id||s;let n=r?H:I([this.parentRoute.id===H?"":this.parentRoute.id,o]);s===H&&(s="/"),n!==H&&(n=I(["/",n]));const a=n===H?"/":I([this.parentRoute.fullPath,s]);this.path=s,this.id=n,this.fullPath=a,this.to=a};addChildren=t=>(this.children=t,this);update=t=>(Object.assign(this.options,t),this);static __onInit=t=>{}}class F extends N{constructor(t){super(t)}}const W=U(JSON.parse),z=Y(JSON.stringify,JSON.parse);function U(t){return e=>{"?"===e.substring(0,1)&&(e=e.substring(1));let r=$(e);for(let e in r){const s=r[e];if("string"==typeof s)try{r[e]=t(s)}catch(t){}}return r}}function Y(t,e){return r=>{(r={...r})&&Object.keys(r).forEach((s=>{const o=r[s];void 0===o||void 0===o?delete r[s]:r[s]=function(r){if("object"==typeof r&&null!==r)try{return t(r)}catch(t){}else if("string"==typeof r&&"function"==typeof e)try{return e(r),t(r)}catch(t){}return r}(o)}));const s=B(r).toString();return s?`?${s}`:""}}const J=["component","errorComponent","pendingComponent"],q="visibilitychange",K="focus",X="Error preloading route! ☝️";const V="undefined"==typeof window||!window.document.createElement;function G(){return{status:"idle",isFetching:!1,resolvedLocation:null,location:null,matchesById:{},matchIds:[],pendingMatchIds:[],matches:[],pendingMatches:[],renderedMatchIds:[],renderedMatches:[],lastUpdated:Date.now()}}function Q(t){return!!t?.isRedirect}class Z extends Error{}class tt extends Error{}function et(t,e){const r=Date.now();return!!t.invalid||(e?.preload?!(t.preloadMaxAge<0)&&t.updatedAt+t.preloadMaxAge<r:!(t.maxAge<0)&&t.updatedAt+t.maxAge<r)}const rt="window",st="___";let ot,nt={},at=!1;const it="undefined"!=typeof window&&window.sessionStorage,ct=t=>t.key;function ht(t,e){const r=e?.getKey||ct;it&&(ot||(ot=(()=>{const t="tsr-scroll-restoration-v1",e=JSON.parse(window.sessionStorage.getItem(t)||"{}");return{current:e,set:(r,s)=>{e[r]=s,window.sessionStorage.setItem(t,JSON.stringify(ot))}}})()));const{history:s}=window;s.scrollRestoration&&(s.scrollRestoration="manual");const o=e=>{const s=r(t.state.resolvedLocation);nt[s]||(nt[s]=new WeakSet);const o=nt[s];if(o.has(e.target))return;o.add(e.target);const a=[s,e.target===document||e.target===window?rt:n(e.target)].join(st);ot.current[a]||ot.set(a,{scrollX:NaN,scrollY:NaN})},n=t=>{let e,r=[];for(;e=t.parentNode;)r.unshift(`${t.tagName}:nth-child(${[].indexOf.call(e.children,t)+1})`),t=e;return`${r.join(" > ")}`.toLowerCase()};"undefined"!=typeof document&&document.addEventListener("scroll",o,!0);const a=t.subscribe("onBeforeLoad",(t=>{t.pathChanged&&(t=>{const e=r(t);for(const t in ot.current){const r=ot.current[t],[s,o]=t.split(st);if(e===s){if(o===rt)r.scrollX=window.scrollX||0,r.scrollY=window.scrollY||0;else if(o){const t=document.querySelector(o);r.scrollX=t?.scrollLeft||0,r.scrollY=t?.scrollTop||0}ot.set(t,r)}}})(t.from)})),i=t.subscribe("onLoad",(t=>{t.pathChanged&&(at=!0)}));return()=>{document.removeEventListener("scroll",o),a(),i()}}function ut(t,e){if(at){if(!t.resetNextScroll)return;at=!1;const r=(e?.getKey||ct)(t.state.location);let s=!1;for(const t in ot.current){const e=ot.current[t],[o,n]=t.split(st);if(o===r)if(n===rt)s=!0,window.scrollTo(e.scrollX,e.scrollY);else if(n){const t=document.querySelector(n);t&&(t.scrollLeft=e.scrollX,t.scrollTop=e.scrollY)}}s||window.scrollTo(0,0)}}function lt(t){return"object"==typeof t&&null!==t&&!(t instanceof Promise)&&!t.then&&"__deferredState"in t}function dt(){return dt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},dt.apply(this,arguments)}function pt(t){const e=vt(),{type:r,children:s,target:n,activeProps:a=(()=>({className:"active"})),inactiveProps:i=(()=>({})),activeOptions:c,disabled:h,hash:u,search:l,params:d,to:p=".",preload:f,preloadDelay:m,replace:y,style:g,className:w,onClick:v,onFocus:S,onMouseEnter:x,onMouseLeave:R,onTouchStart:E,..._}=t,I=e.buildLink(t);if("external"===I.type){const{href:t}=I;return{href:t}}const{handleClick:M,handleFocus:P,handleEnter:C,handleLeave:L,handleTouchStart:A,isActive:O,next:j}=I,D=t=>e=>{e.persist&&e.persist(),t.filter(Boolean).forEach((t=>{e.defaultPrevented||t(e)}))},k=O?b(a,{})??{}:{},B=O?{}:b(i,{})??{};return{...k,...B,..._,href:h?void 0:j.href,onClick:D([v,e=>{(t.startTransition??1)&&(o.startTransition||(t=>t))((()=>{M(e)}))}]),onFocus:D([S,P]),onMouseEnter:D([x,C]),onMouseLeave:D([R,L]),onTouchStart:D([E,A]),target:n,style:{...g,...k.style,...B.style},className:[w,k.className,B.className].filter(Boolean).join(" ")||void 0,...h?{role:"link","aria-disabled":!0}:void 0,"data-status":O?"active":void 0}}N.__onInit=t=>{Object.assign(t,{useMatch:(e={})=>bt({...e,from:t.id}),useLoader:(e={})=>St({...e,from:t.id}),useContext:(e={})=>bt({...e,from:t.id,select:t=>e?.select?e.select(t.context):t.context}),useRouteContext:(e={})=>bt({...e,from:t.id,select:t=>e?.select?e.select(t.routeContext):t.routeContext}),useSearch:(e={})=>xt({...e,from:t.id}),useParams:(e={})=>Rt({...e,from:t.id})})};const ft=o.forwardRef(((t,e)=>{const r=pt(t);return o.createElement("a",dt({ref:e},r,{children:"function"==typeof t.children?t.children({isActive:"active"===r["data-status"]}):t.children}))}));const mt=o.createContext(null),yt=o.createContext(null);function gt(t){return a(vt().__store,t?.select)}function wt(){const t=vt(),e=gt({select:t=>t.renderedMatchIds});return o.createElement(mt.Provider,{value:[void 0,...e]},o.createElement(Lt,{errorComponent:Ot,route:t.getRoute(H),onCatch:()=>{}},o.createElement(_t,null)))}function vt(){return o.useContext(yt)}function bt(t){const e=vt(),r=o.useContext(mt)[0],s=e.getRouteMatch(r)?.routeId,n=gt({select:e=>(t?.from?e.renderedMatches.find((e=>e.routeId===t?.from)):e.renderedMatches.find((t=>t.id===r))).routeId});(t?.strict??1)&&c(s==n);return gt({select:e=>{const s=t?.from?e.renderedMatches.find((e=>e.routeId===t?.from)):e.renderedMatches.find((t=>t.id===r));return c(s,t?.from&&t.from),t?.select?t.select(s):s}})}function St(t){return bt({...t,select:e=>t?.select?t?.select(e.loaderData):e.loaderData})}function xt(t){return bt({...t,select:e=>t?.select?t.select(e.search):e.search})}function Rt(t){return gt({select:e=>{const r=v(e.renderedMatches)?.params;return t?.select?t.select(r):r}})}function Et(){const t=vt();return o.useCallback((e=>{const{pending:r,caseSensitive:s,...o}=e;return t.matchRoute(o,{pending:r,caseSensitive:s})}),[])}function _t(){const t=o.useContext(mt).slice(1);return t[0]?o.createElement(Mt,{matchIds:t}):null}const It=()=>null;function Mt({matchIds:t}){const e=vt(),r=t[0],s=e.getRouteMatch(r).routeId,n=e.getRoute(s),a=n.options.pendingComponent??e.options.defaultPendingComponent??It,i=n.options.errorComponent??e.options.defaultErrorComponent??Ot,c=n.options.wrapInSuspense??!n.isRoot?o.Suspense:Ct,h=i?Lt:Ct;return o.createElement(mt.Provider,{value:t},o.createElement(c,{fallback:o.createElement(a,{useMatch:n.useMatch,useContext:n.useContext,useRouteContext:n.useRouteContext,useSearch:n.useSearch,useParams:n.useParams})},o.createElement(h,{key:n.id,errorComponent:i,route:n,onCatch:()=>{}},o.createElement(Pt,{matchId:r,PendingComponent:a}))))}function Pt({matchId:t,PendingComponent:e}){const r=vt(),s=gt({select:e=>S(e.matchesById[t],["status","loadPromise","routeId","error"])}),n=r.getRoute(s.routeId);if("error"===s.status)throw s.error;if("pending"===s.status)return o.createElement(e,{useLoader:n.useLoader,useMatch:n.useMatch,useContext:n.useContext,useRouteContext:n.useRouteContext,useSearch:n.useSearch,useParams:n.useParams});if("success"===s.status){let t=n.options.component??r.options.defaultComponent;return t?o.createElement(t,{useLoader:n.useLoader,useMatch:n.useMatch,useContext:n.useContext,useRouteContext:n.useRouteContext,useSearch:n.useSearch,useParams:n.useParams}):o.createElement(_t,null)}c(!1)}function Ct(t){return o.createElement(o.Fragment,null,t.children)}class Lt extends o.Component{state={error:!1,info:void 0};componentDidCatch(t,e){this.props.onCatch(t,e),this.setState({error:t,info:e})}render(){return o.createElement(At,dt({},this.props,{errorState:this.state,reset:()=>this.setState({})}))}}function At(t){const e=gt({select:t=>t.resolvedLocation.key}),[r,s]=o.useState(t.errorState),n=t.errorComponent??Ot,a=o.useRef("");return o.useEffect((()=>{r&&e!==a.current&&s({}),a.current=e}),[r,e]),o.useEffect((()=>{t.errorState.error&&s(t.errorState)}),[t.errorState.error]),t.errorState.error&&r.error?o.createElement(n,{...r,useMatch:t.route.useMatch,useContext:t.route.useContext,useRouteContext:t.route.useRouteContext,useSearch:t.route.useSearch,useParams:t.route.useParams}):t.children}function Ot({error:t}){const[e,r]=o.useState(!1);return o.createElement("div",{style:{padding:".5rem",maxWidth:"100%"}},o.createElement("div",{style:{display:"flex",alignItems:"center",gap:".5rem"}},o.createElement("strong",{style:{fontSize:"1rem"}},"Something went wrong!"),o.createElement("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>r((t=>!t))},e?"Hide Error":"Show Error")),o.createElement("div",{style:{height:".25rem"}}),e?o.createElement("div",null,o.createElement("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"}},t.message?o.createElement("code",null,t.message):null)):null)}function jt(t,e=!0){const r=vt();o.useEffect((()=>{if(!e)return;let s=r.history.block(((e,r)=>{window.confirm(t)&&(s(),e())}));return s}))}const Dt="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function kt(t){const e=vt();Dt((()=>ht(e,t)),[]),Dt((()=>{ut(e,t)}))}function Bt({promise:t}){const e=vt();let r=t.__deferredState;const s=`__TSR__DEFERRED__${r.uid}`;if(lt(t)&&(r=e.hydrateData(s),(t=Promise.resolve(r.data)).__deferredState=r),"pending"===r.status)throw t;if("error"===r.status)throw r.error;return e.dehydrateData(s,r),[r.data]}t.Await=function(t){const e=Bt(t);return t.children(...e)},t.Block=function({message:t,condition:e,children:r}){return jt(t,e),r??null},t.ErrorComponent=Ot,t.FileRoute=class{constructor(t){this.path=t}createRoute=t=>{const e=new N(t);return e.isRoot=!1,e}},t.Link=ft,t.MatchRoute=function(t){const e=Et()(t);return"function"==typeof t.children?t.children(e):e?t.children:null},t.Navigate=function(t){const e=vt();return o.useLayoutEffect((()=>{e.navigate(t)}),[]),null},t.Outlet=_t,t.PathParamError=tt,t.RootRoute=F,t.Route=N,t.Router=class{#t;resetNextScroll=!1;constructor(t){this.options={defaultPreloadDelay:50,context:void 0,...t,stringifySearch:t?.stringifySearch??z,parseSearch:t?.parseSearch??W},this.__store=new n(G(),{onUpdate:()=>{const t=this.state,e=this.__store.state,r=t.matchesById!==e.matchesById;let s,o;if(r||(s=t.matchIds.length!==e.matchIds.length||t.matchIds.some(((t,r)=>t!==e.matchIds[r])),o=t.pendingMatchIds.length!==e.pendingMatchIds.length||t.pendingMatchIds.some(((t,r)=>t!==e.pendingMatchIds[r]))),(r||s)&&(e.matches=e.matchIds.map((t=>e.matchesById[t]))),(r||o)&&(e.pendingMatches=e.pendingMatchIds.map((t=>e.matchesById[t]))),r||s||o){const t=e.pendingMatches.some((t=>!!this.getRoute(t.routeId)?.options.pendingComponent));e.renderedMatchIds=t?e.pendingMatchIds:e.matchIds,e.renderedMatches=e.renderedMatchIds.map((t=>e.matchesById[t]))}e.isFetching=[...e.matches,...e.pendingMatches].some((t=>t.isFetching)),this.state=e},defaultPriority:"low"}),this.state=this.__store.state,this.update(t);const e=this.buildNext({hash:!0,fromCurrent:!0,search:!0,state:!0});this.state.location.href!==e.href&&this.#e({...e,replace:!0})}subscribers=new Set;subscribe=(t,e)=>{const r={eventType:t,fn:e};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}};#r=t=>{this.subscribers.forEach((e=>{e.eventType===t.type&&e.fn(t)}))};reset=()=>{this.__store.setState((t=>Object.assign(t,G())))};mount=()=>("undefined"!=typeof window&&window.addEventListener&&(window.addEventListener(q,this.#s,!1),window.addEventListener(K,this.#s,!1)),this.safeLoad(),()=>{"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener(q,this.#s),window.removeEventListener(K,this.#s))});#s=()=>{(this.options.refetchOnWindowFocus??1)&&this.invalidate()};update=t=>{if(this.options={...this.options,...t,context:{...this.options.context,...t?.context}},!this.history||this.options.history&&this.options.history!==this.history){this.#t&&this.#t(),this.history=this.options.history??(V?y():m());const t=this.#o();this.__store.setState((e=>({...e,resolvedLocation:t,location:t}))),this.#t=this.history.subscribe((()=>{this.safeLoad({next:this.#o(this.state.location)})}))}const{basepath:e,routeTree:r}=this.options;return this.basepath=`/${L(e??"")??""}`,r&&r!==this.routeTree&&this.#n(r),this};buildNext=t=>{const e=this.#a(t),r=this.matchRoutes(e.pathname,e.search);return this.#a({...t,__matches:r})};cancelMatches=()=>{this.state.matches.forEach((t=>{this.cancelMatch(t.id)}))};cancelMatch=t=>{this.getRouteMatch(t)?.abortController?.abort()};safeLoad=async t=>{try{return this.load(t)}catch(t){}};latestLoadPromise=Promise.resolve();load=async t=>{const e=new Promise((async(r,s)=>{const o=this.state.resolvedLocation,n=!(!t?.next||o.href===t.next.href);let a;const i=()=>this.latestLoadPromise!==e?this.latestLoadPromise:void 0;let c;this.#r({type:"onBeforeLoad",from:o,to:t?.next??this.state.location,pathChanged:n}),this.__store.batch((()=>{t?.next&&this.__store.setState((e=>({...e,location:t.next}))),c=this.matchRoutes(this.state.location.pathname,this.state.location.search,{throwOnError:t?.throwOnError,debug:!0}),this.__store.setState((t=>({...t,status:"pending",pendingMatchIds:c.map((t=>t.id)),matchesById:this.#i(t.matchesById,c)})))}));try{try{await this.loadMatches(c)}catch(t){}if(a=i())return a;const t=this.state.matchIds.filter((t=>!this.state.pendingMatchIds.includes(t))),e=this.state.pendingMatchIds.filter((t=>!this.state.matchIds.includes(t))),s=this.state.matchIds.filter((t=>this.state.pendingMatchIds.includes(t)));this.__store.setState((t=>({...t,status:"idle",resolvedLocation:t.location,matchIds:t.pendingMatchIds,pendingMatchIds:[]}))),[[t,"onLeave"],[e,"onEnter"],[s,"onTransition"]].forEach((([t,e])=>{t.forEach((t=>{const r=this.getRouteMatch(t);this.getRoute(r.routeId).options[e]?.(r)}))})),this.#r({type:"onLoad",from:o,to:this.state.location,pathChanged:n}),r()}catch(t){if(a=i())return a;s(t)}}));return this.latestLoadPromise=e,this.latestLoadPromise.then((()=>{this.cleanMatches()})),this.latestLoadPromise};#i=(t,e)=>({...t,...Object.fromEntries(e.map((t=>[t.id,t])))});getRoute=t=>{const e=this.routesById[t];return c(e),e};preloadRoute=async(t=this.state.location)=>{const e=this.buildNext(t),r=this.matchRoutes(e.pathname,e.search,{throwOnError:!0});return this.__store.setState((t=>({...t,matchesById:this.#i(t.matchesById,r)}))),await this.loadMatches(r,{preload:!0,maxAge:t.maxAge}),r};cleanMatches=()=>{const t=Date.now(),e=Object.values(this.state.matchesById).filter((e=>{const r=this.getRoute(e.routeId);return!(this.state.matchIds.includes(e.id)||this.state.pendingMatchIds.includes(e.id)||e.preloadMaxAge>-1&&!(e.updatedAt+e.preloadMaxAge<t)||r.options.gcMaxAge&&!(e.updatedAt+r.options.gcMaxAge<t))})).map((t=>t.id));e.length&&this.__store.setState((t=>{const r={...t.matchesById};return e.forEach((t=>{delete r[t]})),{...t,matchesById:r}}))};matchRoutes=(t,e,r)=>{let s={},o=this.flatRoutes.find((e=>{const r=D(this.basepath,C(t),{to:e.fullPath,caseSensitive:e.options.caseSensitive??this.options.caseSensitive});return!!r&&(s=r,!0)}))||this.routesById.__root__,n=[o];for(;o?.parentRoute;)o=o.parentRoute,o&&n.unshift(o);const a=n.map((t=>{let e;if(t.options.parseParams)try{const e=t.options.parseParams(s);Object.assign(s,e)}catch(t){if(e=new tt(t.message,{cause:t}),r?.throwOnError)throw e;return e}})),i=n.map(((t,r)=>{const o=j(t.path,s),n=t.options.key?t.options.key({params:s,search:e})??"":"",i=n?JSON.stringify(n):"",c=j(t.id,s,!0)+i,h=this.getRouteMatch(c);if(h)return{...h};const u=!(!t.options.loader&&!J.some((e=>t.options[e]?.preload)));return{id:c,key:i,routeId:t.id,params:s,pathname:I([this.basepath,o]),updatedAt:Date.now(),maxAge:-1,preloadMaxAge:-1,routeSearch:{},search:{},status:u?"pending":"success",isFetching:!1,invalid:!1,error:void 0,paramsError:a[r],searchError:void 0,loaderData:void 0,loadPromise:Promise.resolve(),routeContext:void 0,context:void 0,abortController:new AbortController,fetchedAt:0}}));return i.forEach(((t,s)=>{const o=i[s-1],n=this.getRoute(t.routeId),a=(()=>{const s={search:o?.search??e,routeSearch:o?.routeSearch??e};try{let e=("object"==typeof n.options.validateSearch?n.options.validateSearch.parse:n.options.validateSearch)?.(s.search)??{},r={...s.search,...e};return e=x(t.routeSearch,e),r=x(t.search,r),{routeSearch:e,search:r,searchDidChange:t.routeSearch!==e}}catch(e){if(t.searchError=new Z(e.message,{cause:e}),r?.throwOnError)throw t.searchError;return s}})();Object.assign(t,a)})),i};loadMatches=async(t,e)=>{const r=()=>t.map((t=>this.getRouteMatch(t.id)));let s;e?.preload||r().forEach((t=>{this.setRouteMatch(t.id,(e=>({...e,routeSearch:t.routeSearch,search:t.search,routeContext:t.routeContext,context:t.context,error:t.error,paramsError:t.paramsError,searchError:t.searchError,params:t.params,preloadMaxAge:0})))}));try{for(const[t,o]of r().entries()){const n=r()[t-1],a=this.getRoute(o.routeId),i=(e,r)=>{if(e.routerCode=r,s=s??t,Q(e))throw e;try{a.options.onError?.(e)}catch(t){if(e=t,Q(t))throw t}this.setRouteMatch(o.id,(t=>({...t,error:e,status:"error",updatedAt:Date.now()})))};o.paramsError&&i(o.paramsError,"PARSE_PARAMS"),o.searchError&&i(o.searchError,"VALIDATE_SEARCH");let c=!1;try{const t=await(a.options.beforeLoad?.({...o,preload:!!e?.preload,parentContext:n?.routeContext??{},context:n?.context??this?.options.context??{}}))??{},r={...n?.context??this?.options.context,...t};this.setRouteMatch(o.id,(e=>({...e,context:r,routeContext:t})))}catch(t){i(t,"BEFORE_LOAD"),c=!0}if(c)break}}catch(t){throw e?.preload||this.navigate(t),t}const o=r().slice(0,s),n=[];o.forEach(((t,r)=>{n.push((async()=>{const s=n[r-1],o=this.getRoute(t.routeId);if(t.isFetching||"success"===t.status&&!et(t,{preload:e?.preload}))return this.getRouteMatch(t.id)?.loadPromise;const a=Date.now(),i=()=>{const e=this.getRouteMatch(t.id);return e&&e.fetchedAt!==a?e.loadPromise:void 0},c=t=>!!Q(t)&&(e?.preload||this.navigate(t),!0),h=async()=>{let r;try{const n=Promise.all(J.map((async t=>{const e=o.options[t];e?.preload&&await e.preload()}))),a=o.options.loader?.({...t,preload:!!e?.preload,parentMatchPromise:s}),[c,h]=await Promise.all([n,a]);if(r=i())return await r;this.setRouteMatchData(t.id,(()=>h),e)}catch(e){if(r=i())return await r;if(c(e))return;try{o.options.onError?.(e)}catch(t){if(e=t,c(t))return}this.setRouteMatch(t.id,(t=>({...t,error:e,status:"error",isFetching:!1,updatedAt:Date.now()})))}};let u;this.__store.batch((()=>{this.setRouteMatch(t.id,(t=>({...t,isFetching:!0,fetchedAt:a,invalid:!1}))),u=h(),this.setRouteMatch(t.id,(t=>({...t,loadPromise:u})))})),await u})())})),await Promise.all(n)};resolvePath=(t,e)=>A(this.basepath,t,M(e));navigate=async({from:t,to:e="",search:r,hash:s,replace:o,params:n,resetScroll:a})=>{const i=String(e),h=void 0===t?t:String(t);let u;try{new URL(`${i}`),u=!0}catch(t){}return c(!u),this.#e({from:h,to:i,search:r,hash:s,replace:o,params:n,resetScroll:a})};matchRoute=(t,e)=>{t={...t,to:t.to?this.resolvePath(t.from??"",t.to):void 0};const r=this.buildNext(t);if(e?.pending&&"pending"!==this.state.status)return!1;const s=e?.pending?this.state.location:this.state.resolvedLocation;if(!s)return!1;const o=D(this.basepath,s.pathname,{...e,to:r.pathname});return!!o&&(e?.includeSearch??1?!!_(s.search,r.search)&&o:o)};buildLink=({from:t,to:e=".",search:r,params:s,hash:o,target:n,replace:a,activeOptions:i,preload:c,preloadDelay:h,disabled:u,state:l,resetScroll:d})=>{try{return new URL(`${e}`),{type:"external",href:e}}catch(t){}const p={from:t,to:e,search:r,params:s,hash:o,replace:a,state:l,resetScroll:d},f=this.buildNext(p);c=c??this.options.defaultPreload;const m=h??this.options.defaultPreloadDelay??0,y=this.state.location.pathname.split("/"),g=f.pathname.split("/").every(((t,e)=>t===y[e])),w=i?.exact?this.state.location.pathname===f.pathname:g,v=!i?.includeHash||this.state.location.hash===f.hash,b=!(i?.includeSearch??1)||_(this.state.location.search,f.search);return{type:"internal",next:f,handleFocus:t=>{c&&this.preloadRoute(p).catch((t=>{console.warn(t),console.warn(X)}))},handleClick:t=>{u||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||t.defaultPrevented||n&&"_self"!==n||0!==t.button||(t.preventDefault(),this.#e(p))},handleEnter:t=>{const e=t.target||{};if(c){if(e.preloadTimeout)return;e.preloadTimeout=setTimeout((()=>{e.preloadTimeout=null,this.preloadRoute(p).catch((t=>{console.warn(t),console.warn(X)}))}),m)}},handleLeave:t=>{const e=t.target||{};e.preloadTimeout&&(clearTimeout(e.preloadTimeout),e.preloadTimeout=null)},handleTouchStart:t=>{this.preloadRoute(p).catch((t=>{console.warn(t),console.warn(X)}))},isActive:w&&v&&b,disabled:u}};dehydrate=()=>({state:{matchIds:this.state.matchIds,dehydratedMatches:this.state.matches.map((t=>S(t,["fetchedAt","invalid","preloadMaxAge","maxAge","id","loaderData","status","updatedAt"])))}});hydrate=async t=>{let e=t;"undefined"!=typeof document&&(e=window.__TSR_DEHYDRATED__),c(e);const r=e;this.dehydratedData=r.payload,this.options.hydrate?.(r.payload);const s=r.router.state;let o=this.matchRoutes(this.state.location.pathname,this.state.location.search).map((t=>{const e=s.dehydratedMatches.find((e=>e.id===t.id));return c(e,t.id),e?{...t,...e}:t}));this.__store.setState((t=>({...t,matchIds:s.matchIds,matches:o,matchesById:this.#i(t.matchesById,o)})))};injectedHtml=[];injectHtml=async t=>{this.injectedHtml.push(t)};dehydrateData=(t,e)=>{if("undefined"==typeof document){const r="string"==typeof t?t:JSON.stringify(t);return this.injectHtml((async()=>{const t=`__TSR_DEHYDRATED__${r}`,s="function"==typeof e?await e():e;return`<script id='${t}' suppressHydrationWarning>window["__TSR_DEHYDRATED__${o=r,o.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/"/g,'\\"')}"] = ${JSON.stringify(s)}\n ;(() => {\n var el = document.getElementById('${t}')\n el.parentElement.removeChild(el)\n })()\n <\/script>`;var o})),()=>this.hydrateData(t)}return()=>{}};hydrateData=t=>{if("undefined"!=typeof document){const e="string"==typeof t?t:JSON.stringify(t);return window[`__TSR_DEHYDRATED__${e}`]}};#n=t=>{this.routeTree=t,this.routesById={},this.routesByPath={},this.flatRoutes=[];const e=t=>{t.forEach(((t,r)=>{t.init({originalIndex:r,router:this});if(c(!this.routesById[t.id],String(t.id)),this.routesById[t.id]=t,!t.isRoot&&t.path){const e=C(t.fullPath);this.routesByPath[e]&&!t.fullPath.endsWith("/")||(this.routesByPath[e]=t)}const s=t.children;s?.length&&e(s)}))};e([t]),this.flatRoutes=Object.values(this.routesByPath).map(((t,e)=>{const r=L(t.fullPath),s=O(r);for(;s.length>1&&"/"===s[0]?.value;)s.shift();const o=s.map((t=>"param"===t.type?.5:"wildcard"===t.type?.25:1));return{child:t,trimmed:r,parsed:s,index:e,score:o}})).sort(((t,e)=>{let r="/"===t.trimmed?1:"/"===e.trimmed?-1:0;if(0!==r)return r;const s=Math.min(t.score.length,e.score.length);if(t.score.length!==e.score.length)return e.score.length-t.score.length;for(let r=0;r<s;r++)if(t.score[r]!==e.score[r])return e.score[r]-t.score[r];for(let r=0;r<s;r++)if(t.parsed[r].value!==e.parsed[r].value)return t.parsed[r].value>e.parsed[r].value?1:-1;return t.trimmed!==e.trimmed?t.trimmed>e.trimmed?1:-1:t.index-e.index})).map(((t,e)=>(t.child.rank=e,t.child)))};#o=t=>{let{pathname:e,search:r,hash:s,state:o}=this.history.location;const n=this.options.parseSearch(r);return{pathname:e,searchStr:r,search:x(t?.search,n),hash:s.split("#").reverse()[0]??"",href:`${e}${r}${s}`,state:o,key:o?.key||"__init__"}};#a=(t={})=>{t.fromCurrent=t.fromCurrent??""===t.to;const e=t.fromCurrent?this.state.location.pathname:t.from??this.state.location.pathname;let r=A(this.basepath??"/",e,`${t.to??""}`);const s={...v(this.matchRoutes(this.state.location.pathname,this.state.location.search))?.params};let o=!0===(t.params??!0)?s:b(t.params,s);o&&t.__matches?.map((t=>this.getRoute(t.routeId).options.stringifyParams)).filter(Boolean).forEach((t=>{o={...o,...t(o)}})),r=j(r,o??{});const n=t.__matches?.map((t=>this.getRoute(t.routeId).options.preSearchFilters??[])).flat().filter(Boolean)??[],a=t.__matches?.map((t=>this.getRoute(t.routeId).options.postSearchFilters??[])).flat().filter(Boolean)??[],i=n?.length?n?.reduce(((t,e)=>e(t)),this.state.location.search):this.state.location.search,c=!0===t.search?i:t.search?b(t.search,i)??{}:n?.length?i:{},h=a?.length?a.reduce(((t,e)=>e(t)),c):c,u=x(this.state.location.search,h),l=this.options.stringifySearch(u),d=!0===t.hash?this.state.location.hash:b(t.hash,this.state.location.hash),p=d?`#${d}`:"";return{pathname:r,search:u,searchStr:l,state:!0===t.state?this.state.location.state:b(t.state,this.state.location.state),hash:d,href:this.history.createHref(`${r}${l}${p}`),key:t.key}};#e=async t=>{const e=this.buildNext(t);this.navigateTimeout&&clearTimeout(this.navigateTimeout);let r="replace";t.replace||(r="push");this.state.location.href===e.href&&!e.key&&(r="replace");const s=`${e.pathname}${e.searchStr}${e.hash?`#${e.hash}`:""}`;return this.history["push"===r?"push":"replace"](s,e.state),this.resetNextScroll=t.resetScroll??!0,this.latestLoadPromise};getRouteMatch=t=>this.state.matchesById[t];setRouteMatch=(t,e)=>{this.__store.setState((r=>r.matchesById[t]?{...r,matchesById:{...r.matchesById,[t]:e(r.matchesById[t])}}:r))};setRouteMatchData=(t,e,r)=>{const s=this.getRouteMatch(t);if(!s)return;const o=this.getRoute(s.routeId),n=r?.updatedAt??Date.now(),a=r?.maxAge??o.options.preloadMaxAge??this.options.defaultPreloadMaxAge??5e3,i=r?.maxAge??o.options.maxAge??this.options.defaultMaxAge??-1;this.setRouteMatch(t,(t=>({...t,error:void 0,status:"success",isFetching:!1,updatedAt:n,loaderData:b(e,t.loaderData),preloadMaxAge:a,maxAge:i})))};invalidate=async t=>{if(t?.matchId){this.setRouteMatch(t.matchId,(t=>({...t,invalid:!0})));const e=this.state.matches.findIndex((e=>e.id===t.matchId)),r=this.state.matches[e+1];if(r)return this.invalidate({matchId:r.id,reload:!1})}else this.__store.batch((()=>{Object.values(this.state.matchesById).forEach((t=>{this.setRouteMatch(t.id,(t=>({...t,invalid:!0})))}))}));if(t?.reload??1)return this.navigate({fromCurrent:!0,replace:!0,search:!0})}},t.RouterContext=class{constructor(){}createRootRoute=t=>new F(t)},t.RouterProvider=function({router:t,...e}){t.update(e),o.useEffect((()=>{let e;return o.startTransition((()=>{e=t.mount()})),e}),[t]);const r=t.options.Wrap||o.Fragment;return o.createElement(r,null,o.createElement(yt.Provider,{value:t},o.createElement(wt,null)))},t.ScrollRestoration=function(t){return kt(t),null},t.SearchParamError=Z,t.cleanPath=M,t.componentTypes=J,t.createBrowserHistory=m,t.createHashHistory=function(){return m({getHref:()=>window.location.hash.substring(1),createHref:t=>`#${t}`})},t.createMemoryHistory=y,t.decode=$,t.defaultParseSearch=W,t.defaultStringifySearch=z,t.defer=function(t){const e=t;if(!e.__deferredState){e.__deferredState={uid:Math.random().toString(36).slice(2),status:"pending"};const t=e.__deferredState;e.then((e=>{t.status="success",t.data=e})).catch((e=>{t.status="error",t.error=e}))}return e},t.encode=B,t.functionalUpdate=b,t.interpolatePath=j,t.invariant=c,t.isDehydratedDeferred=lt,t.isMatchInvalid=et,t.isPlainObject=R,t.isRedirect=Q,t.joinPaths=I,t.last=v,t.lazyFn=function(t,e){return async(...r)=>(await t())[e||"default"](...r)},t.lazyRouteComponent=function(t,e){let r;const s=()=>(r||(r=t()),r),n=o.lazy((async()=>({default:(await s())[e??"default"]})));return n.preload=s,n},t.matchByPath=k,t.matchIdsContext=mt,t.matchPathname=D,t.parsePathname=O,t.parseSearchWith=U,t.partialDeepEqual=_,t.pick=S,t.redirect=function(t){return t.isRedirect=!0,t},t.replaceEqualDeep=x,t.resolvePath=A,t.restoreScrollPositions=ut,t.rootRouteId=H,t.routerContext=yt,t.shallow=function(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(let s=0;s<r.length;s++)if(!Object.prototype.hasOwnProperty.call(e,r[s])||!Object.is(t[r[s]],e[r[s]]))return!1;return!0},t.stringifySearchWith=Y,t.trimPath=L,t.trimPathLeft=P,t.trimPathRight=C,t.useAwaited=Bt,t.useBlocker=jt,t.useDehydrate=function(){const t=vt();return o.useCallback((function(e,r){return t.dehydrateData(e,r)}),[])},t.useHydrate=function(){const t=vt();return function(e){return t.hydrateData(e)}},t.useInjectHtml=function(){const t=vt();return o.useCallback((e=>{t.injectHtml(e)}),[])},t.useLinkProps=pt,t.useLoader=St,t.useMatch=bt,t.useMatchRoute=Et,t.useMatches=function(t){const e=o.useContext(mt);return gt({select:r=>{const s=r.renderedMatches.slice(r.renderedMatches.findIndex((t=>t.id===e[0])));return t?.select?t.select(s):s}})},t.useNavigate=function(t){const e=vt();return o.useCallback((r=>e.navigate({...t,...r})),[])},t.useParams=Rt,t.useRouteContext=function(t){return bt({...t,select:e=>t?.select?t.select(e.routeContext):e.routeContext})},t.useRouter=vt,t.useRouterContext=function(t){return bt({...t,select:e=>t?.select?t.select(e.context):e.context})},t.useRouterState=gt,t.useScrollRestoration=kt,t.useSearch=xt,t.useStore=a,t.warning=function(t,e){},t.watchScrollPositions=ht,Object.defineProperty(t,"__esModule",{value:!0})}));
const h="pushstate",u="popstate",l="beforeunload",d=t=>(t.preventDefault(),t.returnValue=""),p=()=>{removeEventListener(l,d,{capture:!0})};function f(t){let e=t.getLocation(),r=()=>{},s=new Set,o=[],n=[];const a=()=>{if(o.length)o[0]?.(a,(()=>{o=[],p()}));else{for(;n.length;)n.shift()?.();t.subscriber||c()}},i=t=>{n.push(t),a()},c=()=>{e=t.getLocation(),s.forEach((t=>t()))};return{get location(){return e},subscribe:e=>(0===s.size&&(r="function"==typeof t.subscriber?t.subscriber(c):()=>{}),s.add(e),()=>{s.delete(e),0===s.size&&r()}),push:(e,r)=>{i((()=>{t.pushState(e,r)}))},replace:(e,r)=>{i((()=>{t.replaceState(e,r)}))},go:e=>{i((()=>{t.go(e)}))},back:()=>{i((()=>{t.back()}))},forward:()=>{i((()=>{t.forward()}))},createHref:e=>t.createHref(e),block:t=>(o.push(t),1===o.length&&addEventListener(l,d,{capture:!0}),()=>{o=o.filter((e=>e!==t)),o.length||p()})}}function m(t){const e=t?.getHref??(()=>`${window.location.pathname}${window.location.search}${window.location.hash}`),r=t?.createHref??(t=>t);return f({getLocation:()=>g(e(),window.history.state),subscriber:t=>{window.addEventListener(h,t),window.addEventListener(u,t);var e=window.history.pushState;window.history.pushState=function(){let r=e.apply(history,arguments);return t(),r};var r=window.history.replaceState;return window.history.replaceState=function(){let e=r.apply(history,arguments);return t(),e},()=>{window.history.pushState=e,window.history.replaceState=r,window.removeEventListener(h,t),window.removeEventListener(u,t)}},pushState:(t,e)=>{window.history.pushState({...e,key:w()},"",r(t))},replaceState:(t,e)=>{window.history.replaceState({...e,key:w()},"",r(t))},back:()=>window.history.back(),forward:()=>window.history.forward(),go:t=>window.history.go(t),createHref:t=>r(t)})}function y(t={initialEntries:["/"]}){const e=t.initialEntries;let r=t.initialIndex??e.length-1,s={};return f({getLocation:()=>g(e[r],s),subscriber:!1,pushState:(t,o)=>{s={...o,key:w()},e.push(t),r++},replaceState:(t,o)=>{s={...o,key:w()},e[r]=t},back:()=>{r--},forward:()=>{r=Math.min(r+1,e.length-1)},go:t=>window.history.go(t),createHref:t=>t})}function g(t,e){let r=t.indexOf("#"),s=t.indexOf("?");return{href:t,pathname:t.substring(0,r>0?s>0?Math.min(r,s):r:s>0?s:t.length),hash:r>-1?t.substring(r):"",search:s>-1?t.slice(s,-1===r?void 0:r):"",state:e}}function w(){return(Math.random()+1).toString(36).substring(7)}function v(t){return t[t.length-1]}function b(t,e){return"function"==typeof t?t(e):t}function S(t,e){return e.reduce(((e,r)=>(e[r]=t[r],e)),{})}function x(t,e){if(t===e)return t;const r=e,s=Array.isArray(t)&&Array.isArray(r);if(s||R(t)&&R(r)){const e=s?t.length:Object.keys(t).length,o=s?r:Object.keys(r),n=o.length,a=s?[]:{};let i=0;for(let e=0;e<n;e++){const n=s?e:o[e];a[n]=x(t[n],r[n]),a[n]===t[n]&&i++}return e===n&&i===e?t:a}return r}function R(t){if(!E(t))return!1;const e=t.constructor;if(void 0===e)return!0;const r=e.prototype;return!!E(r)&&!!r.hasOwnProperty("isPrototypeOf")}function E(t){return"[object Object]"===Object.prototype.toString.call(t)}function _(t,e){return t===e||typeof t==typeof e&&(R(t)&&R(e)?!Object.keys(e).some((r=>!_(t[r],e[r]))):!(!Array.isArray(t)||!Array.isArray(e))&&(t.length===e.length&&t.every(((t,r)=>_(t,e[r])))))}function I(t){return M(t.filter(Boolean).join("/"))}function M(t){return t.replace(/\/{2,}/g,"/")}function P(t){return"/"===t?t:t.replace(/^\/{1,}/,"")}function C(t){return"/"===t?t:t.replace(/\/{1,}$/,"")}function L(t){return C(P(t))}function A(t,e,r){e=e.replace(new RegExp(`^${t}`),"/"),r=r.replace(new RegExp(`^${t}`),"/");let s=O(e);const o=O(r);o.forEach(((t,e)=>{if("/"===t.value)e?e===o.length-1&&s.push(t):s=[t];else if(".."===t.value)s.length>1&&"/"===v(s)?.value&&s.pop(),s.pop();else{if("."===t.value)return;s.push(t)}}));return M(I([t,...s.map((t=>t.value))]))}function O(t){if(!t)return[];const e=[];if("/"===(t=M(t)).slice(0,1)&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),!t)return e;const r=t.split("/").filter(Boolean);return e.push(...r.map((t=>"$"===t||"*"===t?{type:"wildcard",value:t}:"$"===t.charAt(0)?{type:"param",value:t}:{type:"pathname",value:t}))),"/"===t.slice(-1)&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),e}function j(t,e,r=!1){return I(O(t).map((t=>{if("wildcard"===t.type){const s=e[t.value];return r?`${t.value}${s??""}`:s}return"param"===t.type?e[t.value.substring(1)]??"":t.value})))}function D(t,e,r){const s=k(t,e,r);if(!r.to||s)return s??{}}function k(t,e,r){e="/"!=t?e.substring(t.length):e;const s=`${r.to??"$"}`,o=O(e),n=O(s);e.startsWith("/")||o.unshift({type:"pathname",value:"/"}),s.startsWith("/")||n.unshift({type:"pathname",value:"/"});const a={};return(()=>{for(let t=0;t<Math.max(o.length,n.length);t++){const e=o[t],s=n[t],i=t>=o.length-1,c=t>=n.length-1;if(s){if("wildcard"===s.type)return!!e?.value&&(a["*"]=I(o.slice(t).map((t=>t.value))),!0);if("pathname"===s.type){if("/"===s.value&&!e?.value)return!0;if(e)if(r.caseSensitive){if(s.value!==e.value)return!1}else if(s.value.toLowerCase()!==e.value.toLowerCase())return!1}if(!e)return!1;if("param"===s.type){if("/"===e?.value)return!1;"$"!==e.value.charAt(0)&&(a[s.value.substring(1)]=e.value)}}if(!i&&c)return!!r.fuzzy}return!0})()?a:void 0}function B(t,e){var r,s,o,n="";for(r in t)if(void 0!==(o=t[r]))if(Array.isArray(o))for(s=0;s<o.length;s++)n&&(n+="&"),n+=encodeURIComponent(r)+"="+encodeURIComponent(o[s]);else n&&(n+="&"),n+=encodeURIComponent(r)+"="+encodeURIComponent(o);return(e||"")+n}function T(t){if(!t)return"";var e=decodeURIComponent(t);return"false"!==e&&("true"===e||(0*+e==0&&+e+""===e?+e:e))}function $(t){for(var e,r,s={},o=t.split("&");e=o.shift();)void 0!==s[r=(e=e.split("=")).shift()]?s[r]=[].concat(s[r],T(e.shift())):s[r]=T(e.shift());return s}const H="__root__";class N{constructor(t){this.options=t||{},this.isRoot=!t?.getParentRoute,N.__onInit(this)}init=t=>{this.originalIndex=t.originalIndex,this.router=t.router;const e=this.options,r=!e?.path&&!e?.id;this.parentRoute=this.options?.getParentRoute?.(),r?this.path=H:c(this.parentRoute);let s=r?H:e.path;s&&"/"!==s&&(s=L(s));const o=e?.id||s;let n=r?H:I([this.parentRoute.id===H?"":this.parentRoute.id,o]);s===H&&(s="/"),n!==H&&(n=I(["/",n]));const a=n===H?"/":I([this.parentRoute.fullPath,s]);this.path=s,this.id=n,this.fullPath=a,this.to=a};addChildren=t=>(this.children=t,this);update=t=>(Object.assign(this.options,t),this);static __onInit=t=>{}}class F extends N{constructor(t){super(t)}}const W=U(JSON.parse),z=Y(JSON.stringify,JSON.parse);function U(t){return e=>{"?"===e.substring(0,1)&&(e=e.substring(1));let r=$(e);for(let e in r){const s=r[e];if("string"==typeof s)try{r[e]=t(s)}catch(t){}}return r}}function Y(t,e){return r=>{(r={...r})&&Object.keys(r).forEach((s=>{const o=r[s];void 0===o||void 0===o?delete r[s]:r[s]=function(r){if("object"==typeof r&&null!==r)try{return t(r)}catch(t){}else if("string"==typeof r&&"function"==typeof e)try{return e(r),t(r)}catch(t){}return r}(o)}));const s=B(r).toString();return s?`?${s}`:""}}const J=["component","errorComponent","pendingComponent"],q="visibilitychange",K="focus",X="Error preloading route! ☝️";const V="undefined"==typeof window||!window.document.createElement;function G(){return{status:"idle",isFetching:!1,resolvedLocation:null,location:null,matchesById:{},matchIds:[],pendingMatchIds:[],matches:[],pendingMatches:[],renderedMatchIds:[],renderedMatches:[],lastUpdated:Date.now()}}function Q(t){return!!t?.isRedirect}class Z extends Error{}class tt extends Error{}function et(t,e){const r=Date.now();return!!t.invalid||(e?.preload?!(t.preloadMaxAge<0)&&t.updatedAt+t.preloadMaxAge<r:!(t.maxAge<0)&&t.updatedAt+t.maxAge<r)}const rt="window",st="___";let ot,nt={},at=!1;const it="undefined"!=typeof window&&window.sessionStorage,ct=t=>t.key;function ht(t,e){const r=e?.getKey||ct;it&&(ot||(ot=(()=>{const t="tsr-scroll-restoration-v1",e=JSON.parse(window.sessionStorage.getItem(t)||"{}");return{current:e,set:(r,s)=>{e[r]=s,window.sessionStorage.setItem(t,JSON.stringify(ot))}}})()));const{history:s}=window;s.scrollRestoration&&(s.scrollRestoration="manual");const o=e=>{const s=r(t.state.resolvedLocation);nt[s]||(nt[s]=new WeakSet);const o=nt[s];if(o.has(e.target))return;o.add(e.target);const a=[s,e.target===document||e.target===window?rt:n(e.target)].join(st);ot.current[a]||ot.set(a,{scrollX:NaN,scrollY:NaN})},n=t=>{let e,r=[];for(;e=t.parentNode;)r.unshift(`${t.tagName}:nth-child(${[].indexOf.call(e.children,t)+1})`),t=e;return`${r.join(" > ")}`.toLowerCase()};"undefined"!=typeof document&&document.addEventListener("scroll",o,!0);const a=t.subscribe("onBeforeLoad",(t=>{t.pathChanged&&(t=>{const e=r(t);for(const t in ot.current){const r=ot.current[t],[s,o]=t.split(st);if(e===s){if(o===rt)r.scrollX=window.scrollX||0,r.scrollY=window.scrollY||0;else if(o){const t=document.querySelector(o);r.scrollX=t?.scrollLeft||0,r.scrollY=t?.scrollTop||0}ot.set(t,r)}}})(t.from)})),i=t.subscribe("onLoad",(t=>{t.pathChanged&&(at=!0)}));return()=>{document.removeEventListener("scroll",o),a(),i()}}function ut(t,e){if(at){if(!t.resetNextScroll)return;at=!1;const r=(e?.getKey||ct)(t.state.location);let s=!1;for(const t in ot.current){const e=ot.current[t],[o,n]=t.split(st);if(o===r)if(n===rt)s=!0,window.scrollTo(e.scrollX,e.scrollY);else if(n){const t=document.querySelector(n);t&&(t.scrollLeft=e.scrollX,t.scrollTop=e.scrollY)}}s||window.scrollTo(0,0)}}function lt(t){return"object"==typeof t&&null!==t&&!(t instanceof Promise)&&!t.then&&"__deferredState"in t}function dt(){return dt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},dt.apply(this,arguments)}function pt(t){const e=vt(),{type:r,children:s,target:n,activeProps:a=(()=>({className:"active"})),inactiveProps:i=(()=>({})),activeOptions:c,disabled:h,hash:u,search:l,params:d,to:p=".",preload:f,preloadDelay:m,replace:y,style:g,className:w,onClick:v,onFocus:S,onMouseEnter:x,onMouseLeave:R,onTouchStart:E,..._}=t,I=e.buildLink(t);if("external"===I.type){const{href:t}=I;return{href:t}}const{handleClick:M,handleFocus:P,handleEnter:C,handleLeave:L,handleTouchStart:A,isActive:O,next:j}=I,D=t=>e=>{e.persist&&e.persist(),t.filter(Boolean).forEach((t=>{e.defaultPrevented||t(e)}))},k=O?b(a,{})??{}:{},B=O?{}:b(i,{})??{};return{...k,...B,..._,href:h?void 0:j.href,onClick:D([v,e=>{(t.startTransition??1)&&(o.startTransition||(t=>t))((()=>{M(e)}))}]),onFocus:D([S,P]),onMouseEnter:D([x,C]),onMouseLeave:D([R,L]),onTouchStart:D([E,A]),target:n,style:{...g,...k.style,...B.style},className:[w,k.className,B.className].filter(Boolean).join(" ")||void 0,...h?{role:"link","aria-disabled":!0}:void 0,"data-status":O?"active":void 0}}N.__onInit=t=>{Object.assign(t,{useMatch:(e={})=>bt({...e,from:t.id}),useLoader:(e={})=>St({...e,from:t.id}),useContext:(e={})=>bt({...e,from:t.id,select:t=>e?.select?e.select(t.context):t.context}),useRouteContext:(e={})=>bt({...e,from:t.id,select:t=>e?.select?e.select(t.routeContext):t.routeContext}),useSearch:(e={})=>xt({...e,from:t.id}),useParams:(e={})=>Rt({...e,from:t.id})})};const ft=o.forwardRef(((t,e)=>{const r=pt(t);return o.createElement("a",dt({ref:e},r,{children:"function"==typeof t.children?t.children({isActive:"active"===r["data-status"]}):t.children}))}));const mt=o.createContext(null),yt=o.createContext(null);function gt(t){return a(vt().__store,t?.select)}function wt(){const t=vt(),e=gt({select:t=>t.renderedMatchIds});return o.createElement(mt.Provider,{value:[void 0,...e]},o.createElement(Lt,{errorComponent:Ot,route:t.getRoute(H),onCatch:()=>{}},o.createElement(_t,null)))}function vt(){return o.useContext(yt)}function bt(t){const e=vt(),r=o.useContext(mt)[0],s=e.getRouteMatch(r)?.routeId,n=gt({select:e=>(t?.from?e.renderedMatches.find((e=>e.routeId===t?.from)):e.renderedMatches.find((t=>t.id===r))).routeId});(t?.strict??1)&&c(s==n);return gt({select:e=>{const s=t?.from?e.renderedMatches.find((e=>e.routeId===t?.from)):e.renderedMatches.find((t=>t.id===r));return c(s,t?.from&&t.from),t?.select?t.select(s):s}})}function St(t){return bt({...t,select:e=>t?.select?t?.select(e.loaderData):e.loaderData})}function xt(t){return bt({...t,select:e=>t?.select?t.select(e.search):e.search})}function Rt(t){return gt({select:e=>{const r=v(e.renderedMatches)?.params;return t?.select?t.select(r):r}})}function Et(){const t=vt();return o.useCallback((e=>{const{pending:r,caseSensitive:s,...o}=e;return t.matchRoute(o,{pending:r,caseSensitive:s})}),[])}function _t(){const t=o.useContext(mt).slice(1);return t[0]?o.createElement(Mt,{matchIds:t}):null}const It=()=>null;function Mt({matchIds:t}){const e=vt(),r=t[0],s=e.getRouteMatch(r).routeId,n=e.getRoute(s),a=n.options.pendingComponent??e.options.defaultPendingComponent??It,i=n.options.errorComponent??e.options.defaultErrorComponent??Ot,c=n.options.wrapInSuspense??!n.isRoot?o.Suspense:Ct,h=i?Lt:Ct;return o.createElement(mt.Provider,{value:t},o.createElement(c,{fallback:o.createElement(a,{useMatch:n.useMatch,useContext:n.useContext,useRouteContext:n.useRouteContext,useSearch:n.useSearch,useParams:n.useParams})},o.createElement(h,{key:n.id,errorComponent:i,route:n,onCatch:()=>{}},o.createElement(Pt,{matchId:r,PendingComponent:a}))))}function Pt({matchId:t,PendingComponent:e}){const r=vt(),s=gt({select:e=>S(e.matchesById[t],["status","loadPromise","routeId","error"])}),n=r.getRoute(s.routeId);if("error"===s.status)throw s.error;if("pending"===s.status)return o.createElement(e,{useLoader:n.useLoader,useMatch:n.useMatch,useContext:n.useContext,useRouteContext:n.useRouteContext,useSearch:n.useSearch,useParams:n.useParams});if("success"===s.status){let t=n.options.component??r.options.defaultComponent;return t?o.createElement(t,{useLoader:n.useLoader,useMatch:n.useMatch,useContext:n.useContext,useRouteContext:n.useRouteContext,useSearch:n.useSearch,useParams:n.useParams}):o.createElement(_t,null)}c(!1)}function Ct(t){return o.createElement(o.Fragment,null,t.children)}class Lt extends o.Component{state={error:!1,info:void 0};componentDidCatch(t,e){this.props.onCatch(t,e),this.setState({error:t,info:e})}render(){return o.createElement(At,dt({},this.props,{errorState:this.state,reset:()=>this.setState({})}))}}function At(t){const e=gt({select:t=>t.resolvedLocation.key}),[r,s]=o.useState(t.errorState),n=t.errorComponent??Ot,a=o.useRef("");return o.useEffect((()=>{r&&e!==a.current&&s({}),a.current=e}),[r,e]),o.useEffect((()=>{t.errorState.error&&s(t.errorState)}),[t.errorState.error]),t.errorState.error&&r.error?o.createElement(n,{...r,useMatch:t.route.useMatch,useContext:t.route.useContext,useRouteContext:t.route.useRouteContext,useSearch:t.route.useSearch,useParams:t.route.useParams}):t.children}function Ot({error:t}){const[e,r]=o.useState(!1);return o.createElement("div",{style:{padding:".5rem",maxWidth:"100%"}},o.createElement("div",{style:{display:"flex",alignItems:"center",gap:".5rem"}},o.createElement("strong",{style:{fontSize:"1rem"}},"Something went wrong!"),o.createElement("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>r((t=>!t))},e?"Hide Error":"Show Error")),o.createElement("div",{style:{height:".25rem"}}),e?o.createElement("div",null,o.createElement("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"}},t.message?o.createElement("code",null,t.message):null)):null)}function jt(t,e=!0){const r=vt();o.useEffect((()=>{if(!e)return;let s=r.history.block(((e,r)=>{window.confirm(t)&&(s(),e())}));return s}))}const Dt="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function kt(t){const e=vt();Dt((()=>ht(e,t)),[]),Dt((()=>{ut(e,t)}))}function Bt({promise:t}){const e=vt();let r=t.__deferredState;const s=`__TSR__DEFERRED__${r.uid}`;if(lt(t)&&(r=e.hydrateData(s),(t=Promise.resolve(r.data)).__deferredState=r),"pending"===r.status)throw t;if("error"===r.status)throw r.error;return e.dehydrateData(s,r),[r.data]}t.Await=function(t){const e=Bt(t);return t.children(...e)},t.Block=function({message:t,condition:e,children:r}){return jt(t,e),r??null},t.ErrorComponent=Ot,t.FileRoute=class{constructor(t){this.path=t}createRoute=t=>{const e=new N(t);return e.isRoot=!1,e}},t.Link=ft,t.MatchRoute=function(t){const e=Et()(t);return"function"==typeof t.children?t.children(e):e?t.children:null},t.Navigate=function(t){const e=vt();return o.useLayoutEffect((()=>{e.navigate(t)}),[]),null},t.Outlet=_t,t.PathParamError=tt,t.RootRoute=F,t.Route=N,t.Router=class{#t;resetNextScroll=!1;constructor(t){this.options={defaultPreloadDelay:50,context:void 0,...t,stringifySearch:t?.stringifySearch??z,parseSearch:t?.parseSearch??W},this.__store=new n(G(),{onUpdate:()=>{const t=this.state,e=this.__store.state,r=t.matchesById!==e.matchesById;let s,o;if(r||(s=t.matchIds.length!==e.matchIds.length||t.matchIds.some(((t,r)=>t!==e.matchIds[r])),o=t.pendingMatchIds.length!==e.pendingMatchIds.length||t.pendingMatchIds.some(((t,r)=>t!==e.pendingMatchIds[r]))),(r||s)&&(e.matches=e.matchIds.map((t=>e.matchesById[t]))),(r||o)&&(e.pendingMatches=e.pendingMatchIds.map((t=>e.matchesById[t]))),r||s||o){const t=e.pendingMatches.some((t=>!!this.getRoute(t.routeId)?.options.pendingComponent));e.renderedMatchIds=t?e.pendingMatchIds:e.matchIds,e.renderedMatches=e.renderedMatchIds.map((t=>e.matchesById[t]))}e.isFetching=[...e.matches,...e.pendingMatches].some((t=>t.isFetching)),this.state=e},defaultPriority:"low"}),this.state=this.__store.state,this.update(t);const e=this.buildNext({hash:!0,fromCurrent:!0,search:!0,state:!0});this.state.location.href!==e.href&&this.#e({...e,replace:!0})}subscribers=new Set;subscribe=(t,e)=>{const r={eventType:t,fn:e};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}};#r=t=>{this.subscribers.forEach((e=>{e.eventType===t.type&&e.fn(t)}))};reset=()=>{this.__store.setState((t=>Object.assign(t,G())))};mount=()=>("undefined"!=typeof window&&window.addEventListener&&(window.addEventListener(q,this.#s,!1),window.addEventListener(K,this.#s,!1)),this.safeLoad(),()=>{"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener(q,this.#s),window.removeEventListener(K,this.#s))});#s=()=>{(this.options.refetchOnWindowFocus??1)&&this.invalidate()};update=t=>{if(this.options={...this.options,...t,context:{...this.options.context,...t?.context}},!this.history||this.options.history&&this.options.history!==this.history){this.#t&&this.#t(),this.history=this.options.history??(V?y():m());const t=this.#o();this.__store.setState((e=>({...e,resolvedLocation:t,location:t}))),this.#t=this.history.subscribe((()=>{this.safeLoad({next:this.#o(this.state.location)})}))}const{basepath:e,routeTree:r}=this.options;return this.basepath=`/${L(e??"")??""}`,r&&r!==this.routeTree&&this.#n(r),this};buildNext=t=>{const e=this.#a(t),r=this.matchRoutes(e.pathname,e.search);return this.#a({...t,__matches:r})};cancelMatches=()=>{this.state.matches.forEach((t=>{this.cancelMatch(t.id)}))};cancelMatch=t=>{this.getRouteMatch(t)?.abortController?.abort()};safeLoad=async t=>{try{return this.load(t)}catch(t){}};latestLoadPromise=Promise.resolve();load=async t=>{const e=new Promise((async(r,s)=>{const o=this.state.resolvedLocation,n=!(!t?.next||o.href===t.next.href);let a;const i=()=>this.latestLoadPromise!==e?this.latestLoadPromise:void 0;let c;this.#r({type:"onBeforeLoad",from:o,to:t?.next??this.state.location,pathChanged:n}),this.__store.batch((()=>{t?.next&&this.__store.setState((e=>({...e,location:t.next}))),c=this.matchRoutes(this.state.location.pathname,this.state.location.search,{throwOnError:t?.throwOnError,debug:!0}),this.__store.setState((t=>({...t,status:"pending",pendingMatchIds:c.map((t=>t.id)),matchesById:this.#i(t.matchesById,c)})))}));try{try{await this.loadMatches(c)}catch(t){}if(a=i())return a;const t=this.state.matchIds.filter((t=>!this.state.pendingMatchIds.includes(t))),e=this.state.pendingMatchIds.filter((t=>!this.state.matchIds.includes(t))),s=this.state.matchIds.filter((t=>this.state.pendingMatchIds.includes(t)));this.__store.setState((t=>({...t,status:"idle",resolvedLocation:t.location,matchIds:t.pendingMatchIds,pendingMatchIds:[]}))),[[t,"onLeave"],[e,"onEnter"],[s,"onTransition"]].forEach((([t,e])=>{t.forEach((t=>{const r=this.getRouteMatch(t);this.getRoute(r.routeId).options[e]?.(r)}))})),this.#r({type:"onLoad",from:o,to:this.state.location,pathChanged:n}),r()}catch(t){if(a=i())return a;s(t)}}));return this.latestLoadPromise=e,this.latestLoadPromise.then((()=>{this.cleanMatches()})),this.latestLoadPromise};#i=(t,e)=>({...t,...Object.fromEntries(e.map((t=>[t.id,t])))});getRoute=t=>{const e=this.routesById[t];return c(e),e};preloadRoute=async(t=this.state.location)=>{const e=this.buildNext(t),r=this.matchRoutes(e.pathname,e.search,{throwOnError:!0});return this.__store.setState((t=>({...t,matchesById:this.#i(t.matchesById,r)}))),await this.loadMatches(r,{preload:!0,maxAge:t.maxAge}),r};cleanMatches=()=>{const t=Date.now(),e=Object.values(this.state.matchesById).filter((e=>{const r=this.getRoute(e.routeId);return!(this.state.matchIds.includes(e.id)||this.state.pendingMatchIds.includes(e.id)||e.preloadMaxAge>-1&&!(e.updatedAt+e.preloadMaxAge<t)||r.options.gcMaxAge&&!(e.updatedAt+r.options.gcMaxAge<t))})).map((t=>t.id));e.length&&this.__store.setState((t=>{const r={...t.matchesById};return e.forEach((t=>{delete r[t]})),{...t,matchesById:r}}))};matchRoutes=(t,e,r)=>{let s={},o=this.flatRoutes.find((e=>{const r=D(this.basepath,C(t),{to:e.fullPath,caseSensitive:e.options.caseSensitive??this.options.caseSensitive});return!!r&&(s=r,!0)}))||this.routesById.__root__,n=[o];for(;o?.parentRoute;)o=o.parentRoute,o&&n.unshift(o);const a=n.map((t=>{let e;if(t.options.parseParams)try{const e=t.options.parseParams(s);Object.assign(s,e)}catch(t){if(e=new tt(t.message,{cause:t}),r?.throwOnError)throw e;return e}})),i=n.map(((t,r)=>{const o=j(t.path,s),n=t.options.key?t.options.key({params:s,search:e})??"":"",i=n?JSON.stringify(n):"",c=j(t.id,s,!0)+i,h=this.getRouteMatch(c);if(h)return{...h};const u=!(!t.options.loader&&!J.some((e=>t.options[e]?.preload)));return{id:c,key:i,routeId:t.id,params:s,pathname:I([this.basepath,o]),updatedAt:Date.now(),maxAge:-1,preloadMaxAge:-1,routeSearch:{},search:{},status:u?"pending":"success",isFetching:!1,invalid:!1,error:void 0,paramsError:a[r],searchError:void 0,loaderData:void 0,loadPromise:Promise.resolve(),routeContext:void 0,context:void 0,abortController:new AbortController,fetchedAt:0}}));return i.forEach(((t,s)=>{const o=i[s-1],n=this.getRoute(t.routeId),a=(()=>{const s={search:o?.search??e,routeSearch:o?.routeSearch??e};try{let e=("object"==typeof n.options.validateSearch?n.options.validateSearch.parse:n.options.validateSearch)?.(s.search)??{},r={...s.search,...e};return e=x(t.routeSearch,e),r=x(t.search,r),{routeSearch:e,search:r,searchDidChange:t.routeSearch!==e}}catch(e){if(t.searchError=new Z(e.message,{cause:e}),r?.throwOnError)throw t.searchError;return s}})();Object.assign(t,a)})),i};loadMatches=async(t,e)=>{const r=()=>t.map((t=>this.getRouteMatch(t.id)));let s;e?.preload||r().forEach((t=>{this.setRouteMatch(t.id,(e=>({...e,routeSearch:t.routeSearch,search:t.search,routeContext:t.routeContext,context:t.context,error:t.error,paramsError:t.paramsError,searchError:t.searchError,params:t.params,preloadMaxAge:0})))}));try{for(const[t,o]of r().entries()){const n=r()[t-1],a=this.getRoute(o.routeId),i=(e,r)=>{if(e.routerCode=r,s=s??t,Q(e))throw e;try{a.options.onError?.(e)}catch(t){if(e=t,Q(t))throw t}this.setRouteMatch(o.id,(t=>({...t,error:e,status:"error",updatedAt:Date.now()})))};o.paramsError&&i(o.paramsError,"PARSE_PARAMS"),o.searchError&&i(o.searchError,"VALIDATE_SEARCH");let c=!1;try{const t=await(a.options.beforeLoad?.({...o,preload:!!e?.preload,parentContext:n?.routeContext??{},context:n?.context??this?.options.context??{}}))??{},r={...n?.context??this?.options.context,...t};this.setRouteMatch(o.id,(e=>({...e,context:r,routeContext:t})))}catch(t){i(t,"BEFORE_LOAD"),c=!0}if(c)break}}catch(t){throw e?.preload||this.navigate(t),t}const o=r().slice(0,s),n=[];o.forEach(((t,r)=>{n.push((async()=>{const s=n[r-1],o=this.getRoute(t.routeId);if(t.isFetching||"success"===t.status&&!et(t,{preload:e?.preload}))return this.getRouteMatch(t.id)?.loadPromise;const a=Date.now(),i=()=>{const e=this.getRouteMatch(t.id);return e&&e.fetchedAt!==a?e.loadPromise:void 0},c=t=>!!Q(t)&&(e?.preload||this.navigate(t),!0),h=async()=>{let r;try{const n=Promise.all(J.map((async t=>{const e=o.options[t];e?.preload&&await e.preload()}))),a=o.options.loader?.({...t,preload:!!e?.preload,parentMatchPromise:s}),[c,h]=await Promise.all([n,a]);if(r=i())return await r;this.setRouteMatchData(t.id,(()=>h),e)}catch(e){if(r=i())return await r;if(c(e))return;try{o.options.onError?.(e)}catch(t){if(e=t,c(t))return}this.setRouteMatch(t.id,(t=>({...t,error:e,status:"error",isFetching:!1,updatedAt:Date.now()})))}};let u;this.__store.batch((()=>{this.setRouteMatch(t.id,(t=>({...t,isFetching:!0,fetchedAt:a,invalid:!1}))),u=h(),this.setRouteMatch(t.id,(t=>({...t,loadPromise:u})))})),await u})())})),await Promise.all(n)};resolvePath=(t,e)=>A(this.basepath,t,M(e));navigate=async({from:t,to:e="",search:r,hash:s,replace:o,params:n,resetScroll:a})=>{const i=String(e),h=void 0===t?t:String(t);let u;try{new URL(`${i}`),u=!0}catch(t){}return c(!u),this.#e({from:h,to:i,search:r,hash:s,replace:o,params:n,resetScroll:a})};matchRoute=(t,e)=>{t={...t,to:t.to?this.resolvePath(t.from??"",t.to):void 0};const r=this.buildNext(t);if(e?.pending&&"pending"!==this.state.status)return!1;const s=e?.pending?this.state.location:this.state.resolvedLocation;if(!s)return!1;const o=D(this.basepath,s.pathname,{...e,to:r.pathname});return!!o&&(e?.includeSearch??1?!!_(s.search,r.search)&&o:o)};buildLink=({from:t,to:e=".",search:r,params:s,hash:o,target:n,replace:a,activeOptions:i,preload:c,preloadDelay:h,disabled:u,state:l,resetScroll:d})=>{try{return new URL(`${e}`),{type:"external",href:e}}catch(t){}const p={from:t,to:e,search:r,params:s,hash:o,replace:a,state:l,resetScroll:d},f=this.buildNext(p);c=c??this.options.defaultPreload;const m=h??this.options.defaultPreloadDelay??0,y=this.state.location.pathname.split("/"),g=f.pathname.split("/").every(((t,e)=>t===y[e])),w=i?.exact?this.state.location.pathname===f.pathname:g,v=!i?.includeHash||this.state.location.hash===f.hash,b=!(i?.includeSearch??1)||_(this.state.location.search,f.search);return{type:"internal",next:f,handleFocus:t=>{c&&this.preloadRoute(p).catch((t=>{console.warn(t),console.warn(X)}))},handleClick:t=>{u||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||t.defaultPrevented||n&&"_self"!==n||0!==t.button||(t.preventDefault(),this.#e(p))},handleEnter:t=>{const e=t.target||{};if(c){if(e.preloadTimeout)return;e.preloadTimeout=setTimeout((()=>{e.preloadTimeout=null,this.preloadRoute(p).catch((t=>{console.warn(t),console.warn(X)}))}),m)}},handleLeave:t=>{const e=t.target||{};e.preloadTimeout&&(clearTimeout(e.preloadTimeout),e.preloadTimeout=null)},handleTouchStart:t=>{this.preloadRoute(p).catch((t=>{console.warn(t),console.warn(X)}))},isActive:w&&v&&b,disabled:u}};dehydrate=()=>({state:{matchIds:this.state.matchIds,dehydratedMatches:this.state.matches.map((t=>S(t,["fetchedAt","invalid","preloadMaxAge","maxAge","id","loaderData","status","updatedAt"])))}});hydrate=async t=>{let e=t;"undefined"!=typeof document&&(e=window.__TSR_DEHYDRATED__),c(e);const r=e;this.dehydratedData=r.payload,this.options.hydrate?.(r.payload);const s=r.router.state;let o=this.matchRoutes(this.state.location.pathname,this.state.location.search).map((t=>{const e=s.dehydratedMatches.find((e=>e.id===t.id));return c(e,t.id),e?{...t,...e}:t}));this.__store.setState((t=>({...t,matchIds:s.matchIds,matches:o,matchesById:this.#i(t.matchesById,o)})))};injectedHtml=[];injectHtml=async t=>{this.injectedHtml.push(t)};dehydrateData=(t,e)=>{if("undefined"==typeof document){const r="string"==typeof t?t:JSON.stringify(t);return this.injectHtml((async()=>{const t=`__TSR_DEHYDRATED__${r}`,s="function"==typeof e?await e():e;return`<script id='${t}' suppressHydrationWarning>window["__TSR_DEHYDRATED__${o=r,o.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/"/g,'\\"')}"] = ${JSON.stringify(s)}\n ;(() => {\n var el = document.getElementById('${t}')\n el.parentElement.removeChild(el)\n })()\n <\/script>`;var o})),()=>this.hydrateData(t)}return()=>{}};hydrateData=t=>{if("undefined"!=typeof document){const e="string"==typeof t?t:JSON.stringify(t);return window[`__TSR_DEHYDRATED__${e}`]}};#n=t=>{this.routeTree=t,this.routesById={},this.routesByPath={},this.flatRoutes=[];const e=t=>{t.forEach(((t,r)=>{t.init({originalIndex:r,router:this});if(c(!this.routesById[t.id],String(t.id)),this.routesById[t.id]=t,!t.isRoot&&t.path){const e=C(t.fullPath);this.routesByPath[e]&&!t.fullPath.endsWith("/")||(this.routesByPath[e]=t)}const s=t.children;s?.length&&e(s)}))};e([t]),this.flatRoutes=Object.values(this.routesByPath).map(((t,e)=>{const r=L(t.fullPath),s=O(r);for(;s.length>1&&"/"===s[0]?.value;)s.shift();const o=s.map((t=>"param"===t.type?.5:"wildcard"===t.type?.25:1));return{child:t,trimmed:r,parsed:s,index:e,score:o}})).sort(((t,e)=>{let r="/"===t.trimmed?1:"/"===e.trimmed?-1:0;if(0!==r)return r;const s=Math.min(t.score.length,e.score.length);if(t.score.length!==e.score.length)return e.score.length-t.score.length;for(let r=0;r<s;r++)if(t.score[r]!==e.score[r])return e.score[r]-t.score[r];for(let r=0;r<s;r++)if(t.parsed[r].value!==e.parsed[r].value)return t.parsed[r].value>e.parsed[r].value?1:-1;return t.trimmed!==e.trimmed?t.trimmed>e.trimmed?1:-1:t.index-e.index})).map(((t,e)=>(t.child.rank=e,t.child)))};#o=t=>{let{pathname:e,search:r,hash:s,state:o}=this.history.location;const n=this.options.parseSearch(r);return{pathname:e,searchStr:r,search:x(t?.search,n),hash:s.split("#").reverse()[0]??"",href:`${e}${r}${s}`,state:o,key:o?.key||"__init__"}};#a=(t={})=>{t.fromCurrent=t.fromCurrent??""===t.to;const e=t.fromCurrent?this.state.location.pathname:t.from??this.state.location.pathname;let r=A(this.basepath??"/",e,`${t.to??""}`);const s={...v(this.matchRoutes(this.state.location.pathname,this.state.location.search))?.params};let o=!0===(t.params??!0)?s:b(t.params,s);o&&t.__matches?.map((t=>this.getRoute(t.routeId).options.stringifyParams)).filter(Boolean).forEach((t=>{o={...o,...t(o)}})),r=j(r,o??{});const n=t.__matches?.map((t=>this.getRoute(t.routeId).options.preSearchFilters??[])).flat().filter(Boolean)??[],a=t.__matches?.map((t=>this.getRoute(t.routeId).options.postSearchFilters??[])).flat().filter(Boolean)??[],i=n?.length?n?.reduce(((t,e)=>e(t)),this.state.location.search):this.state.location.search,c=!0===t.search?i:t.search?b(t.search,i)??{}:n?.length?i:{},h=a?.length?a.reduce(((t,e)=>e(t)),c):c,u=x(this.state.location.search,h),l=this.options.stringifySearch(u),d=!0===t.hash?this.state.location.hash:b(t.hash,this.state.location.hash),p=d?`#${d}`:"";return{pathname:r,search:u,searchStr:l,state:!0===t.state?this.state.location.state:b(t.state,this.state.location.state),hash:d,href:this.history.createHref(`${r}${l}${p}`),key:t.key}};#e=async t=>{const e=this.buildNext(t);this.navigateTimeout&&clearTimeout(this.navigateTimeout);let r="replace";t.replace||(r="push");this.state.location.href===e.href&&!e.key&&(r="replace");const s=`${e.pathname}${e.searchStr}${e.hash?`#${e.hash}`:""}`;return this.history["push"===r?"push":"replace"](s,e.state),this.resetNextScroll=t.resetScroll??!0,this.latestLoadPromise};getRouteMatch=t=>this.state.matchesById[t];setRouteMatch=(t,e)=>{this.__store.setState((r=>r.matchesById[t]?{...r,matchesById:{...r.matchesById,[t]:e(r.matchesById[t])}}:r))};setRouteMatchData=(t,e,r)=>{const s=this.getRouteMatch(t);if(!s)return;const o=this.getRoute(s.routeId),n=r?.updatedAt??Date.now(),a=r?.maxAge??o.options.preloadMaxAge??this.options.defaultPreloadMaxAge??5e3,i=r?.maxAge??o.options.maxAge??this.options.defaultMaxAge??-1;this.setRouteMatch(t,(t=>({...t,error:void 0,status:"success",isFetching:!1,updatedAt:n,loaderData:b(e,t.loaderData),preloadMaxAge:a,maxAge:i})))};invalidate=async t=>{if(t?.matchId){this.setRouteMatch(t.matchId,(t=>({...t,invalid:!0})));const e=this.state.matches.findIndex((e=>e.id===t.matchId)),r=this.state.matches[e+1];if(r)return this.invalidate({matchId:r.id,reload:!1})}else this.__store.batch((()=>{Object.values(this.state.matchesById).forEach((t=>{this.setRouteMatch(t.id,(t=>({...t,invalid:!0})))}))}));if(t?.reload??1)return this.navigate({fromCurrent:!0,replace:!0,search:!0})}},t.RouterContext=class{constructor(){}createRootRoute=t=>new F(t)},t.RouterProvider=function({router:t,...e}){t.update(e),o.useEffect((()=>{let e;return o.startTransition((()=>{e=t.mount()})),e}),[t]);const r=t.options.Wrap||o.Fragment;return o.createElement(r,null,o.createElement(yt.Provider,{value:t},o.createElement(wt,null)))},t.ScrollRestoration=function(t){return kt(t),null},t.SearchParamError=Z,t.cleanPath=M,t.componentTypes=J,t.createBrowserHistory=m,t.createHashHistory=function(){return m({getHref:()=>window.location.hash.substring(1),createHref:t=>`#${t}`})},t.createMemoryHistory=y,t.decode=$,t.defaultParseSearch=W,t.defaultStringifySearch=z,t.defer=function(t){const e=t;if(!e.__deferredState){e.__deferredState={uid:Math.random().toString(36).slice(2),status:"pending"};const t=e.__deferredState;e.then((e=>{t.status="success",t.data=e})).catch((e=>{t.status="error",t.error=e}))}return e},t.encode=B,t.functionalUpdate=b,t.interpolatePath=j,t.invariant=c,t.isDehydratedDeferred=lt,t.isMatchInvalid=et,t.isPlainObject=R,t.isRedirect=Q,t.joinPaths=I,t.last=v,t.lazyFn=function(t,e){return async(...r)=>(await t())[e||"default"](...r)},t.lazyRouteComponent=function(t,e){let r;const s=()=>(r||(r=t()),r),n=o.lazy((async()=>({default:(await s())[e??"default"]})));return n.preload=s,n},t.matchByPath=k,t.matchIdsContext=mt,t.matchPathname=D,t.parsePathname=O,t.parseSearchWith=U,t.partialDeepEqual=_,t.pick=S,t.redirect=function(t){return t.isRedirect=!0,t},t.replaceEqualDeep=x,t.resolvePath=A,t.restoreScrollPositions=ut,t.rootRouteId=H,t.routerContext=yt,t.shallow=function(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(let s=0;s<r.length;s++)if(!Object.prototype.hasOwnProperty.call(e,r[s])||!Object.is(t[r[s]],e[r[s]]))return!1;return!0},t.stringifySearchWith=Y,t.trimPath=L,t.trimPathLeft=P,t.trimPathRight=C,t.useAwaited=Bt,t.useBlocker=jt,t.useDehydrate=function(){const t=vt();return o.useCallback((function(e,r){return t.dehydrateData(e,r)}),[])},t.useHydrate=function(){const t=vt();return function(e){return t.hydrateData(e)}},t.useInjectHtml=function(){const t=vt();return o.useCallback((e=>{t.injectHtml(e)}),[])},t.useLinkProps=pt,t.useLoader=St,t.useMatch=bt,t.useMatchRoute=Et,t.useMatches=function(t){const e=o.useContext(mt);return gt({select:r=>{const s=r.renderedMatches.slice(r.renderedMatches.findIndex((t=>t.id===e[0])));return t?.select?t.select(s):s}})},t.useNavigate=function(t){const e=vt();return o.useCallback((r=>e.navigate({...t,...r})),[])},t.useParams=Rt,t.useRouteContext=function(t){return bt({...t,select:e=>t?.select?t.select(e.routeContext):e.routeContext})},t.useRouter=vt,t.useRouterContext=function(t){return bt({...t,select:e=>t?.select?t.select(e.context):e.context})},t.useRouterState=gt,t.useScrollRestoration=kt,t.useSearch=xt,t.useStore=a,t.warning=function(t,e){},t.watchScrollPositions=ht,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=index.production.js.map
{
"name": "@tanstack/react-router",
"author": "Tanner Linsley",
"version": "0.0.1-beta.184",
"version": "0.0.1-beta.185",
"license": "MIT",

@@ -47,3 +47,3 @@ "repository": "tanstack/router",

"@gisatcz/cross-package-react-context": "^0.2.0",
"@tanstack/router-core": "0.0.1-beta.184"
"@tanstack/router-core": "0.0.1-beta.185"
},

@@ -50,0 +50,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc