PageSourceSearch

https://nimstrata.com/assets/errorBoundaries-DX22NDIU.js

js nimstrata.com collected 2026-10-01 12:11:46 UTC 33,324 bytes, 16 lines download raw bytes

1import{$ as e,A as t,B as n,D as r,F as i,J as a,L as o,M as s,O as c,P as l,R as u,W as d,d as f,g as p,j as m,k as h,s as g,v as ee,w as te,y as _}from"./components-DaDH3s2k.js";function v(e,t){if(e===!1||e==null)throw Error(t)}var ne={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},re=/[&><\u2028\u2029]/g;function y(e){return e.replace(re,e=>ne[e])}var b=class{promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function ie(){let e=new TextDecoder,t=``;return new TransformStream({transform(n,r){let i=e.decode(n,{stream:!0}),a=(t+i).split(`
2`);t=a.pop()||``;for(let e of a)r.enqueue(e)},flush(e){t&&e.enqueue(t)}})}var x=typeof window<`u`?window:typeof globalThis<`u`?globalThis:void 0;function S(e){let{hydrated:t,values:n}=this;if(typeof e==`number`)return ae.call(this,e);if(!Array.isArray(e)||!e.length)throw SyntaxError();let r=n.length;for(let t of e)n.push(t);return t.length=n.length,ae.call(this,r)}function ae(e){let{hydrated:n,values:r,deferred:i,plugins:a}=this,o,s=[[e,e=>{o=e}]],c=[];for(;s.length>0;){let[e,o]=s.pop();switch(e){case-7:o(void 0);continue;case-5:o(null);continue;case-2:o(NaN);continue;case-6:o(1/0);continue;case-3:o(-1/0);continue;case-4:o(-0);continue}if(n[e]){o(n[e]);continue}let l=r[e];if(!l||typeof l!=`object`){n[e]=l,o(l);continue}if(Array.isArray(l))if(typeof l[0]==`string`){let[r,u,d]=l;switch(r){case`D`:o(n[e]=new Date(u));continue;case`U`:o(n[e]=new URL(u));continue;case`B`:o(n[e]=BigInt(u));continue;case`R`:o(n[e]=new RegExp(u,d));continue;case`Y`:o(n[e]=Symbol.for(u));continue;case`S`:let r=new Set;n[e]=r;for(let e=l.length-1;e>0;e--)s.push([l[e],e=>{r.add(e)}]);o(r);continue;case`M`:let f=new Map;n[e]=f;for(let e=l.length-2;e>0;e-=2){let t=[];s.push([l[e+1],e=>{t[1]=e}]),s.push([l[e],e=>{t[0]=e}]),c.push(()=>{f.set(t[0],t[1])})}o(f);continue;case`N`:let p=Object.create(null);n[e]=p;for(let e of Object.keys(u).reverse()){let t=[];s.push([u[e],e=>{t[1]=e}]),s.push([Number(e.slice(1)),e=>{t[0]=e}]),c.push(()=>{p[t[0]]=t[1]})}o(p);continue;case`P`:if(n[u])o(n[e]=n[u]);else{let t=new b;i[u]=t,o(n[e]=t.promise)}continue;case`E`:let[,m,h]=l,g=h&&x&&t.includes(h)&&h in x&&typeof x[h]==`function`?new x[h](m):Error(m);n[e]=g,o(g);continue;case`Z`:o(n[e]=n[u]);continue;default:if(Array.isArray(a)){let t=[],r=l.slice(1);for(let e=0;e<r.length;e++){let n=r[e];s.push([n,n=>{t[e]=n}])}c.push(()=>{for(let r of a){let i=r(l[0],...t);if(i){o(n[e]=i.value);return}}throw SyntaxError()});continue}throw SyntaxError()}}else{let t=[];n[e]=t;for(let e=0;e<l.length;e++){let n=l[e];n!==-1&&s.push([n,n=>{t[e]=n}])}o(t);continue}else{let t={};n[e]=t;for(let e of Object.keys(l).reverse()){let n=[];s.push([l[e],e=>{n[1]=e}]),s.push([Number(e.slice(1)),e=>{n[0]=e}]),c.push(()=>{t[n[0]]=n[1]})}o(t);continue}}for(;c.length>0;)c.pop()();return o}async function oe(e,t){let{plugins:n}=t??{},r=new b,i=e.pipeThrough(ie()).getReader(),a={values:[],hydrated:[],deferred:{},plugins:n},o=await se.call(a,i),s=r.promise;return o.done?r.resolve():s=ce.call(a,i).then(r.resolve).catch(e=>{for(let t of Object.values(a.deferred))t.reject(e);r.reject(e)}),{done:s.then(()=>i.closed),value:o.value}}async function se(e){let t=await e.read();if(!t.value)throw SyntaxError();let n;try{n=JSON.parse(t.value)}catch{throw SyntaxError()}return{done:t.done,value:S.call(this,n)}}async function ce(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;let n=t.value;switch(n[0]){case`P`:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=S.call(this,a);r.resolve(o);break}case`E`:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=S.call(this,a);r.reject(o);break}default:throw SyntaxError()}t=await e.read()}}async function le(e){let t={signal:e.signal};if(e.method!==`GET`){t.method=e.method;let n=e.headers.get(`Content-Type`);n&&/\bapplication\/json\b/.test(n)?(t.headers={"Content-Type":n},t.body=JSON.stringify(await e.json())):n&&/\btext\/plain\b/.test(n)?(t.headers={"Content-Type":n},t.body=await e.text()):n&&/\bapplication\/x-www-form-urlencoded\b/.test(n)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}var C=e(a(),1),w=Symbol(`SingleFetchRedirect`),ue=class extends 
2Error{},de=new Set([100,101,204,205]);function fe(e,t,n,r){let i=pe(e,e=>{let n=t.routes[e.route.id];return v(n,`Route not found in manifest`),{hasLoader:n.hasLoader,hasClientLoader:n.hasClientLoader}},be,r);return async e=>e.runClientMiddleware(i)}function pe(e,t,n,r,i=()=>!0){return async a=>{let{request:o,matches:s,fetcherKey:c}=a,l=e();if(o.method!==`GET`)return me(a,n);let u=s.some(e=>{let{hasLoader:n,hasClientLoader:r}=t(e);return e.shouldCallHandler()&&n&&!r});return!r&&!u?he(a,t,n):c?ve(a,n):ge(a,l,t,n,r,i)}}async function me(e,t){let n=e.matches.find(e=>e.shouldCallHandler());v(n,`No action match found`);let i,a=await n.resolve(async r=>await r(async()=>{let{data:r,status:a}=await t(e,[n.route.id]);return i=a,E(r,n.route.id)}));return c(a.result)||l(a.result)||r(a.result)?{[n.route.id]:a}:{[n.route.id]:{type:a.type,result:s(a.result,i)}}}async function he(e,t,n){let r=e.matches.filter(e=>e.shouldCallHandler()),i={};return await Promise.all(r.map(r=>r.resolve(async a=>{try{let{hasClientLoader:o}=t(r),s=r.route.id,c=o?await a(async()=>{let{data:t}=await n(e,[s]);return E(t,s)}):await a();i[r.route.id]={type:`data`,result:c}}catch(e){i[r.route.id]={type:`error`,result:e}}}))),i}async function ge(e,t,n,r,i,a=()=>!0){let o=new Set,s=!1,c=e.matches.map(()=>D()),l=D(),u={},d=Promise.all(e.matches.map(async(t,i)=>t.resolve(async d=>{c[i].resolve();let f=t.route.id,{hasLoader:p,hasClientLoader:m}=n(t),h=!t.shouldRevalidateArgs||t.shouldRevalidateArgs.actionStatus==null||t.shouldRevalidateArgs.actionStatus<400;if(!t.shouldCallHandler(h)){s||=t.shouldRevalidateArgs!=null&&p;return}if(a(t)&&m){p&&(s=!0);try{u[f]={type:`data`,result:await d(async()=>{let{data:t}=await r(e,[f]);return E(t,f)})}}catch(e){u[f]={type:`error`,result:e}}return}p&&o.add(f);try{u[f]={type:`data`,result:await d(async()=>E(await l.promise,f))}}catch(e){u[f]={type:`error`,result:e}}})));if(await Promise.all(c.map(e=>e.promise)),(!t.state.initialized&&t.state.navigation.state===`idle`||o.size===0)&&!window.__reactRouterHdrActive)l.resolve({routes:{}});else{let t=i&&s&&o.size>0?[...o.keys()]:void 0;try{let n=await r(e,t);l.resolve(n.data)}catch(e){l.reject(e)}}return await d,await _e(l.promise,e.matches,o,u),u}async function _e(e,t,n,r){try{let i,a=await e;if(`routes`in a){for(let e of t)if(e.route.id in a.routes){let t=a.routes[e.route.id];if(`error`in t){i=t.error,r[e.route.id]?.result??(r[e.route.id]={type:`error`,result:i});break}}}i!==void 0&&Array.from(n.values()).forEach(e=>{r[e].result instanceof ue&&(r[e].result=i)})}catch{}}async function ve(e,t){let n=e.matches.find(e=>e.shouldCallHandler());v(n,`No fetcher match found`);let r=n.route.id,i=await n.resolve(async n=>n(async()=>{let{data:n}=await t(e,[r]);return E(n,r)}));return{[n.route.id]:i}}function ye(e){let t=e.searchParams.getAll(`index`);e.searchParams.delete(`index`);let n=[];for(let e of t)e&&n.push(e);for(let t of n)e.searchParams.append(`index`,t);return e}function T(e,t){let n=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n.pathname.endsWith(`/`)?n.pathname=`${n.pathname}_.${t}`:n.pathname=`${n.pathname}.${t}`,n}async function be(e,t){let{request:n}=e,r=T(n.url,`data`);n.method===`GET`&&(r=ye(r),t&&r.searchParams.set(`_routes`,t.join(`,`)));let i=await fetch(r,await le(n));if(i.status>=400&&!i.headers.has(`X-Remix-Response`))throw new h(i.status,i.statusText,await i.text());if(i.status===204&&i.headers.has(`X-Remix-Redirect`))return{status:202,data:{redirect:{redirect:i.headers.get(`X-Remix-Redirect`),status:Number(i.headers.get(`X-Remix-Status`)||`302`),revalidate:i.headers.get(`X-Remix-Revalidate`)===`true`,reload:i.headers.get(`X-Remix-Reload-Document`)===`true`,replace:i.headers.get(`X-Remix-Replace`)===`true`}}};if(de.has(i.status)){let e={};return t&&n.method!==`GET`&&(e[t[0]]={data:void 0}),{status:i.status,data:{routes:e}}}v(i.body,`No response body to decode`);try{let e=await xe(i.body,window),r;if(n.method===`GET`){let t=e.value;r=w in t?{redirect:t[w]}:{routes:t}}else{let n=e.value,i=t?.[0];v(i,`No routeId found for single fetch call decoding`),r=`redirect`in n?{redirect:n}:{routes:{[i]:n}}}return{status:i.status,data:r}}catch{throw Error(`Unable to decode turbo-stream response`)}}function xe(e,n){return oe(e,{plugins:[(e,...r)=>{if(e===`SanitizedError`){let[e,i,a]=r,o=Error;
2e&&t.includes(e)&&e in n&&typeof n[e]==`function`&&(o=n[e]);let s=new o(i);return s.stack=a,{value:s}}if(e===`ErrorResponse`){let[e,t,n]=r;return{value:new h(t,n,e)}}if(e===`SingleFetchRedirect`)return{value:{[w]:r[0]}};if(e===`SingleFetchClassInstance`)return{value:r[0]};if(e===`SingleFetchFallback`)return{value:void 0}}]})}function E(e,t){if(`redirect`in e){let{redirect:t,revalidate:r,reload:i,replace:a,status:o}=e.redirect;throw n(t,{status:o,headers:{...r?{"X-Remix-Revalidate":`yes`}:null,...i?{"X-Remix-Reload-Document":`yes`}:null,...a?{"X-Remix-Replace":`yes`}:null}})}let r=e.routes[t];if(r==null)throw new ue(`No result found for routeId "${t}"`);if(`error`in r)throw r.error;if(`data`in r)return r.data;throw Error(`Invalid response found for routeId "${t}"`)}function D(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Se=`modulepreload`,Ce=function(e){return`/`+e},O={},k=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?.nonce||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=Ce(t,n),t in O)return;O[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`:Se,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)})};async function we(e,t){if(e.id in t)return t[e.id];try{let n=await k(()=>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(()=>{})}}function Te(e,t,n){return N(e.map(e=>{let r=t[e.route.id],i=n.routes[e.route.id];return[i&&i.css?i.css.map(e=>({rel:`stylesheet`,href:e})):[],r?.links?.()||[]]}).flat(2),M(e,n))}function Ee(e){return e.css?e.css.map(e=>({rel:`stylesheet`,href:e})):[]}async function De(e){if(!e.css)return;let t=Ee(e);await Promise.all(t.map(ke))}async function Oe(e,t){if(!e.css&&!t.links||!Pe())return;let n=[];if(e.css&&n.push(...Ee(e)),t.links&&n.push(...t.links()),n.length===0)return;let r=[];for(let e of n)!A(e)&&e.rel===`stylesheet`&&r.push({...e,rel:`preload`,as:`style`});await Promise.all(r.map(ke))}async function ke(e){return new Promise(t=>{if(e.media&&!window.matchMedia(e.media).matches||document.querySelector(`link[rel="stylesheet"][href="${e.href}"]`))return t();let n=document.createElement(`link`);Object.assign(n,e);function r(){document.head.contains(n)&&document.head.removeChild(n)}n.onload=()=>{r(),t()},n.onerror=()=>{r(),t()},document.head.appendChild(n)})}function A(e){return e!=null&&typeof e.page==`string`}function Ae(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function je(e,t,n){return N((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await we(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Ae).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function j(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>
2o(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){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function M(e,t,{includeHydrateFallback:n}={}){return Me(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 Me(e){return[...new Set(e)]}function Ne(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function N(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!A(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Ne(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var P;function Pe(){if(P!==void 0)return P;let e=document.createElement(`link`);return P=e.relList.supports(`preload`),e=null,P}function Fe(){let{nonce:e}=J();return C.createElement($,{title:`Loading...`,renderScripts:!0},null)}function F(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function Ie(e,t,n){let r=B(t),i=t.HydrateFallback&&(!n||e.id===`root`)?t.HydrateFallback:e.id===`root`?Fe:void 0,a=t.ErrorBoundary?t.ErrorBoundary:e.id===`root`?()=>C.createElement(lt,{error:p()}):void 0;return e.id===`root`&&t.Layout?{...r?{element:C.createElement(t.Layout,null,C.createElement(r,null))}:{Component:r},...a?{errorElement:C.createElement(t.Layout,null,C.createElement(a,null))}:{ErrorBoundary:a},...i?{hydrateFallbackElement:C.createElement(t.Layout,null,C.createElement(i,null))}:{HydrateFallback:i}}:{Component:r,ErrorBoundary:a,HydrateFallback:i}}function Le(e,t,n,r,i,a){return R(t,n,r,i,a,``,F(t),e)}function I(e,t){if(e===`loader`&&!t.hasLoader||e===`action`&&!t.hasAction){let n=`You are trying to call ${e===`action`?`serverAction()`:`serverLoader()`} on a route that does not have a server ${e} (routeId: "${t.id}")`;throw console.error(n),new h(400,`Bad Request`,Error(n),!0)}}function L(e,t){let n=e===`clientAction`?`a`:`an`,r=`Route "${t}" does not have ${n} ${e}, but you are trying to submit to it. To fix this, please add ${n} \`${e}\` function to the route`;throw console.error(r),new h(405,`Method Not Allowed`,Error(r),!0)}function R(e,t,n,r,i,a=``,o=F(e),s){return(o[a]||[]).map(a=>{let c=t[a.id];function l(e){return v(typeof e==`function`,`No single fetch function available for route handler`),e()}function u(e){return a.hasLoader?l(e):Promise.resolve(null)}function d(e){if(!a.hasAction)throw L(`action`,a.id);return l(e)}function f(e){k(()=>import(e),[])}function p(e){e.clientActionModule&&f(e.clientActionModule),e.clientLoaderModule&&f(e.clientLoaderModule)}async function m(e){let n=t[a.id],r=n?Oe(a,n):Promise.resolve();try{return e()}finally{await r}}let h={id:a.id,index:a.index,path:a.path};if(c){Object.assign(h,{...h,...Ie(a,c,i),middleware:c.clientMiddleware,handle:c.handle,shouldRevalidate:z(h.path,c,a,r,s)});let e=n&&n.loaderData&&a.id in n.loaderData,t=e?n?.loaderData?.[a.id]:void 0,o=n&&n.errors&&a.id in n.errors,l=o?n?.errors?.[a.id]:void 0,f=s==null&&(c.clientLoader?.hydrate===!0||!a.hasLoader);h.loader=async({request:n,params:r,context:i,pattern:s,url:d},p)=>{let h=f;return f=!1,await m(async()=>(v(c,"No `routeModule` available for critical-route loader"),c.clientLoader?c.clientLoader({request:n,params:r,context:i,pattern:s,url:d,async serverLoader(){if
2(I(`loader`,a),h){if(e)return t;if(o)throw l}return u(p)}}):u(p)))},h.loader.hydrate=V(a.id,c.clientLoader,a.hasLoader,i),h.action=({request:e,params:t,context:n,pattern:r,url:o},s)=>m(async()=>{if(v(c,"No `routeModule` available for critical-route action"),!c.clientAction){if(i)throw L(`clientAction`,a.id);return d(s)}return c.clientAction({request:e,params:t,context:n,pattern:r,url:o,async serverAction(){return I(`action`,a),d(s)}})})}else{a.hasClientLoader||(h.loader=(e,t)=>m(()=>u(t))),a.hasClientAction||(h.action=(e,t)=>m(()=>{if(i)throw L(`clientAction`,a.id);return d(t)}));let e;async function n(){return e||=(async()=>{(a.clientLoaderModule||a.clientActionModule)&&await new Promise(e=>setTimeout(e,0));let e=ze(a,t);return p(a),await e})(),await e}h.lazy={loader:a.hasClientLoader?async()=>{let{clientLoader:e}=a.clientLoaderModule?await k(()=>import(a.clientLoaderModule),[]):await n();return v(e,"No `clientLoader` export found"),(t,n)=>e({...t,async serverLoader(){return I(`loader`,a),u(n)}})}:void 0,action:a.hasClientAction?async()=>{let e=a.clientActionModule?k(()=>import(a.clientActionModule),[]):n();p(a);let{clientAction:t}=await e;return v(t,"No `clientAction` export found"),(e,n)=>t({...e,async serverAction(){return I(`action`,a),d(n)}})}:void 0,middleware:a.hasClientMiddleware?async()=>{let{clientMiddleware:e}=a.clientMiddlewareModule?await k(()=>import(a.clientMiddlewareModule),[]):await n();return v(e,"No `clientMiddleware` export found"),e}:void 0,shouldRevalidate:async()=>{let e=await n();return z(h.path,e,a,r,s)},handle:async()=>(await n()).handle,Component:async()=>(await n()).Component,ErrorBoundary:a.hasErrorBoundary?async()=>(await n()).ErrorBoundary:void 0}}let g=R(e,t,n,r,i,a.id,o,s);return g.length>0&&(h.children=g),h})}function z(e,t,n,r,i){if(i)return Re(n.id,t.shouldRevalidate,i);if(!r&&n.hasLoader&&!n.hasClientLoader){let n=e?m(e)[1].map(e=>e.paramName):[],r=e=>n.some(t=>e.currentParams[t]!==e.nextParams[t]);if(t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:r(t)})}else return e=>r(e)}return t.shouldRevalidate}function Re(e,t,n){let r=!1;return i=>r?t?t(i):i.defaultShouldRevalidate:(r=!0,n.has(e))}async function ze(e,t){let n=we(e,t),r=De(e),i=await n;return await Promise.all([r,Oe(e,i)]),{Component:B(i),ErrorBoundary:i.ErrorBoundary,clientMiddleware:i.clientMiddleware,clientAction:i.clientAction,clientLoader:i.clientLoader,handle:i.handle,links:i.links,meta:i.meta,shouldRevalidate:i.shouldRevalidate}}function B(e){if(e.default!=null&&!(typeof e.default==`object`&&Object.keys(e.default).length===0))return e.default}function V(e,t,n,r){return r&&e!==`root`||t!=null&&(t.hydrate===!0||n!==!0)}var H=new Set,Be=1e3,U=new Set;function Ve(e){let t=new Set;return e.forEach(e=>{e.startsWith(`/`)||(e=`/${e}`);for(let n=1;n<e.length;n++)e[n]===`/`&&t.add(e.slice(0,n));t.add(e)}),Array.from(t)}function W(e,t){return e.mode===`lazy`&&t===!0}function He({sri:e,...t},n){let r=new Set(n.state.matches.map(e=>e.route.id)),i=n.state.location.pathname.split(`/`).filter(Boolean),a=[`/`];for(i.pop();i.length>0;)a.push(`/${i.join(`/`)}`),i.pop();a.forEach(e=>{let t=u(n.routes,e,n.basename||`/`,!1,n.branches);t&&t.forEach(e=>r.add(e.route.id))});let o=[...r].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});return{...t,routes:o,sri:e?!0:void 0}}function Ue(e,t,n,r,i,a,o){if(W(i,r))return async({path:s,patch:c,signal:l,fetcherKey:u})=>{if(U.has(s))return;let{state:f}=e();await qe([s],u?window.location.href:d(f.navigation.location||f.location),t,n,r,a,o,i.manifestPath,c,l)}}function We(e,t,n,r,i,a){C.useEffect(()=>{if(!W(i,r)||window.navigator?.connection?.saveData===!0)return;function o(e){let t=e.tagName===`FORM`?e.getAttribute(`action`):e.getAttribute(`href`);if(!t)return;let n=e.tagName===`A`?e.pathname:new URL(t,window.location.origin).pathname;U.has(n)||H.add(n)}async function s(){document.querySelectorAll(`a[data-discover], form[data-discover]`).forEach(o);let s=Array.from(H.keys()).filter(e=>U.has(e)?(H.delete(e),!1):!0);if(s.length!==0)try{await qe(s,null,t,n,r,a,e.basename,i.manifestPath,e.patchRoutes)}catch(e){console.error(`Failed to fetch manifest patches`,e)}}let c=Ye(s,100);s();let l=new MutationObserver(()=>c());return l.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-discover`,`href`,`action`]}),()=>l.disconnect()},[r,a,t,n,e,i])}function Ge(e,t){let n=e||`/__manifest`;return t==null?n:i([t,n])}var G=`react-router-manifest-version`;async function Ke(e,t,n){if(!e){try{sessionStorage.removeItem(G)}catch{}return!1}if(!n)return console.warn(`Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a 
2new document navigation to sync up with the latest manifest.`),!0;try{if(sessionStorage.getItem(G)===t)return console.error(`Unable to discover routes due to manifest version mismatch.`),!0;sessionStorage.setItem(G,t)}catch{}return window.location.href=n,console.warn(`Detected manifest version mismatch, reloading...`),await new Promise(()=>{}),!0}async function qe(e,t,n,r,i,a,o,s,c,l){e=Ve(e);let u=new URLSearchParams;u.set(`paths`,e.sort().join(`,`)),u.set(`version`,n.version);let d=new URL(Ge(s,o),window.location.origin);if(d.search=u.toString(),d.toString().length>7680){H.clear();return}let f;try{let e=await fetch(d,{signal:l});if(!e.ok)throw Error(`${e.status} ${e.statusText}`);if(await Ke(e.status===204&&e.headers.has(`X-Remix-Reload-Document`),n.version,t))return;f=await e.json()}catch(e){if(l?.aborted)return;throw e}let p=new Set(Object.keys(n.routes)),m=Object.values(f).reduce((e,t)=>(t&&!p.has(t.id)&&(e[t.id]=t),e),{});Object.assign(n.routes,m),e.forEach(e=>Je(e,U));let h=new Set;Object.values(m).forEach(e=>{e&&(!e.parentId||!m[e.parentId])&&h.add(e.parentId)}),h.forEach(e=>c(e||null,R(m,r,null,i,a,e)))}function Je(e,t){if(t.size>=Be){let e=t.values().next().value;e!==void 0&&t.delete(e)}t.add(e)}function Ye(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function Xe(){let e=C.useContext(ee);return v(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function K(){let e=C.useContext(_);return v(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var q=C.createContext(void 0);q.displayName=`FrameworkContext`;function J(){let e=C.useContext(q);return v(e,`You must render this element inside a <HydratedRouter> element`),e}function Ze(e,t){let n=C.useContext(q),[r,i]=C.useState(!1),[a,o]=C.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=C.useRef(null);C.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),C.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Y(s,p),onBlur:Y(c,m),onMouseEnter:Y(l,p),onMouseLeave:Y(u,m),onTouchStart:Y(d,p)}]:[a,f,{}]:[!1,f,{}]}function Y(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function X(e,t,n){if(n&&!Q)return[e[0]];if(t){let n=e.findIndex(e=>t[e.route.id]!==void 0);return e.slice(0,n+1)}return e}var Qe=`data-react-router-critical-css`;function $e({nonce:e,crossOrigin:t}){let{isSpaMode:n,manifest:r,routeModules:i,criticalCss:a,nonce:o}=J(),{errors:s,matches:c}=K(),l=X(c,s,n),u=C.useMemo(()=>Te(l,i,r),[l,i,r]);return e==null&&o&&(e=o),C.createElement(C.Fragment,null,typeof a==`string`?C.createElement(`style`,{[Qe]:``,nonce:e,dangerouslySetInnerHTML:{__html:a}}):null,typeof a==`object`?C.createElement(`link`,{[Qe]:``,rel:`stylesheet`,href:a.href,nonce:e,crossOrigin:t}):null,u.map(({key:n,link:r})=>A(r)?C.createElement(Z,{key:n,nonce:e,...r,crossOrigin:r.crossOrigin??t}):C.createElement(`link`,{key:n,nonce:e,...r,crossOrigin:r.crossOrigin??t})))}function Z({page:e,...t}){let n=te(),{nonce:r}=J(),{router:i}=Xe(),a=C.useMemo(()=>o(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?C.createElement(tt,{page:e,matches:a,...t}):C.createElement(nt,{page:e,matches:a,...t})):null}function et(e){let{manifest:t,routeModules:n}=J(),[r,i]=C.useState([]);return C.useEffect(()=>{let r=!1;return je(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function tt({page:e,matches:t,...n}){let r=f(),i=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=T(e,`rsc`),i=!1,a=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?i=!0:a.push(e.route.id);return i&&a.length>0&&n.searchParams.set(`_routes`,a.join(`,`)),[n.pathname+n.search]},[e,r,t]);return C.createElement(C.Fragment,null,i.map(e=>C.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function nt({page:e,matches:t,...n}){let r=f(),{manifest:i,routeModules:a}=J(),{loaderData:o,matches:s}=K(),c=C.useMemo(()=>j(e,t,s,i,r,`data`),[e,t,s,i,r]),l=C.useMemo(()=>j(e,t,s,i,r,`assets`),[e,t,s,i,r]),u=C.useMemo(()=>
2{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,s=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];!t||!t.hasLoader||(!c.some(t=>t.route.id===e.route.id)&&e.route.id in o&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?s=!0:n.add(e.route.id))}),n.size===0)return[];let l=T(e,`data`);return s&&n.size>0&&l.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[l.pathname+l.search]},[o,r,i,c,t,e,a]),d=C.useMemo(()=>M(l,i),[l,i]),p=et(l);return C.createElement(C.Fragment,null,u.map(e=>C.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),d.map(e=>C.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),p.map(({key:e,link:t})=>C.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function rt(){let{isSpaMode:e,routeModules:t}=J(),{errors:n,matches:r,loaderData:i}=K(),a=f(),o=X(r,n,e),s=null;n&&(s=n[o[o.length-1].route.id]);let c=[],l=null,u=[];for(let e=0;e<o.length;e++){let n=o[e],r=n.route.id,d=i[r],f=n.params,p=t[r],m=[],h={id:r,loaderData:d,meta:[],params:n.params,pathname:n.pathname,handle:n.route.handle,error:s};if(u[e]=h,p?.meta?m=typeof p.meta==`function`?p.meta({loaderData:d,params:f,location:a,matches:u,error:s}):Array.isArray(p.meta)?[...p.meta]:p.meta:l&&(m=[...l]),m||=[],!Array.isArray(m))throw Error(`The route at `+n.route.path+` returns an invalid value. All route meta functions must return an array of meta objects.
3
4To reference the meta function API, see https://reactrouter.com/start/framework/route-module#meta`);h.meta=m,u[e]=h,c=[...m],l=c}return C.createElement(C.Fragment,null,c.flat().map(e=>{if(!e)return null;if(`tagName`in e){let{tagName:t,...n}=e;if(!it(t))return console.warn(`A meta object uses an invalid tagName: ${t}. Expected either 'link' or 'meta'`),null;let r=t;return C.createElement(r,{key:JSON.stringify(n),...n})}if(`title`in e)return C.createElement(`title`,{key:`title`},String(e.title));if(`charset`in e&&(e.charSet??=e.charset,delete e.charset),`charSet`in e&&e.charSet!=null)return typeof e.charSet==`string`?C.createElement(`meta`,{key:`charSet`,charSet:e.charSet}):null;if(`script:ld+json`in e)try{let t=JSON.stringify(e[`script:ld+json`]);return C.createElement(`script`,{key:`script:ld+json:${t}`,type:`application/ld+json`,dangerouslySetInnerHTML:{__html:y(t)}})}catch{return null}return C.createElement(`meta`,{key:JSON.stringify(e),...e})}))}function it(e){return typeof e==`string`&&/^(meta|link)$/.test(e)}var Q=!1;function at(){Q=!0}function ot(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:i,routeDiscovery:a,ssr:o,nonce:s}=J(),{router:c,static:l,staticContext:u}=Xe(),{matches:d}=K(),f=te(),p=W(a,o);e.nonce==null&&s&&(e={...e,nonce:s}),i&&(i.didRenderScripts=!0);let m=X(d,null,r);C.useEffect(()=>{at()},[]);let h=C.useMemo(()=>{if(f)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:` `,i=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:``}${p?``:`import ${JSON.stringify(t.url)}`};
5${m.map((e,n)=>{let r=`route${n}`,i=t.routes[e.route.id];v(i,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:o,clientMiddlewareModule:s,hydrateFallbackModule:c,module:l}=i,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...o?[{module:o,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...c?[{module:c,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return u.length===1?`import * as ${r} from ${JSON.stringify(l)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join(`
6`),`const ${r} = {${u.map(e=>`...${e.varName}`).join(`,`)}};`].join(`
7`)}).join(`
8`)}
9  ${p?`window.__reactRouterManifest = ${JSON.stringify(He(t,c),null,2)};`:``}
10  window.__reactRouterRouteModules = {${m.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(`,`)}};
11
12import(${JSON.stringify(t.entry.module)});`:` `;return C.createElement(C.Fragment,null,C.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),C.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:`module`,async:!0}))},[]),ee=Q||f?[]:[...new Set(t.entry.imports.concat(M(m,t,{includeHydrateFallback:!0})))],_=typeof t.sri==`object`?t.sri:{};return g(!f,`The <Scripts /> element is a no-op when using RSC and can be safely removed.`),Q||f?null:C.createElement(C.Fragment,null,typeof t.sri==`object`?C.createElement(`script`,{...e,"rr-importmap":``,type:`importmap`,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:_})}}):null,p?null:C.createElement(`link`,{rel:`modulepreload`,href:t.url,crossOrigin:e.crossOrigin,integrity:_[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),C.createElement(`link`,{rel:`modulepreload`,href:t.entry.module,crossOrigin:e.crossOrigin,integrity:_[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),ee.map(t=>C.createElement(`link`,{key:t,rel:`modulepreload`,href:t,crossOrigin:e.crossOrigin,integrity:_[t],nonce:e.nonce,suppressHydrationWarning:!0})),h)}function st(...e){return t=>
12{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var ct=class extends C.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location===e.location?{error:e.error||t.error,location:t.location}:{error:e.error||null,location:e.location}}render(){return this.state.error?C.createElement(lt,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function lt({error:e,isOutsideRemixApp:t}){let{nonce:n}=J();console.error(e);let r=C.createElement(`script`,{nonce:n,dangerouslySetInnerHTML:{__html:`
13        console.log(
14          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
15        );
16      `}});if(l(e))return C.createElement($,{title:`Unhandled Thrown Response!`},C.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),null);let i;if(e instanceof Error)i=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);i=Error(t)}return C.createElement($,{title:`Application Error!`,isOutsideRemixApp:t},C.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),C.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},i.stack),r)}function $({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=J();return i.root?.Layout&&!n?r:C.createElement(`html`,{lang:`en`},C.createElement(`head`,null,C.createElement(`meta`,{charSet:`utf-8`}),C.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),C.createElement(`title`,null,e)),C.createElement(`body`,null,C.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},r,t?C.createElement(ot,null):null)))}export{y as _,Z as a,Ze as c,R as d,Le as f,fe as g,xe as h,rt as i,Ue as l,k as m,q as n,ot as o,V as p,$e as r,st as s,ct as t,We 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.