PageSourceSearch

https://photobucket.com/mfe/marketing/assets/_virtual_mf___mfe_int…router_mf_2_dom__loadShare__.js-C2Tr3Ybk.js

js photobucket.com collected 2026-10-01 07:25:07 UTC 160,810 bytes, 1 lines download raw bytes

1var ts=Object.defineProperty,rs=Object.defineProperties;var as=Object.getOwnPropertyDescriptors;var Qt=Object.getOwnPropertySymbols;var en=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable;var Mr=(e,t,r)=>t in e?ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))en.call(t,r)&&Mr(e,r,t[r]);if(Qt)for(var r of Qt(t))tn.call(t,r)&&Mr(e,r,t[r]);return e},O=(e,t)=>rs(e,as(t));var $e=(e,t)=>{var r={};for(var a in e)en.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&Qt)for(var a of Qt(e))t.indexOf(a)<0&&tn.call(e,a)&&(r[a]=e[a]);return r};var Zt=(e,t,r)=>Mr(e,typeof t!="symbol"?t+"":t,r);import{f as gr,g as Pe,h as E,e as xe,a as ie,i as pe,j as vt,k as Ee,d as z,l as se,c as te,b as re,m as On,n as pa,o as ns,p as os,q as is,r as ss}from"./_virtual_mf___mfe_internal__marketing__mf_owner__1__loadShare__react__loadShare__.js-8iAD5CNk.js";import{_ as ls}from"./_virtual_mf___mfe_internal__marketing__mf_owner__1__loadShare__react_mf_2_dom__loadShare__.js-kCIkldVF.js";var Tn=-1,$n=-2,Un=-3,Mn=-4,ya=-5,Hn=-6,In=-7,jn="B",zn="D",pt="E",Wr="M",Bn="N",yt="P",Vn="R",Jr="S",Wn="Y",Jn="U",Yr="Z",Yn=class{constructor(){Zt(this,"promise");Zt(this,"resolve");Zt(this,"reject");this.promise=new Promise((t,r)=>{this.resolve=t,this.reject=r})}};function us(){const e=new TextDecoder;let t="";return new TransformStream({transform(r,a){const n=e.decode(r,{stream:!0}),o=(t+n).split("\n");t=o.pop()||"";for(const s of o)a.enqueue(s)},flush(r){t&&r.enqueue(t)}})}function Se(e){const{indices:t}=this,r=t.get(e);if(r)return[r];if(e===void 0)return In;if(e===null)return ya;if(Number.isNaN(e))return $n;if(e===Number.POSITIVE_INFINITY)return Hn;if(e===Number.NEGATIVE_INFINITY)return Un;if(e===0&&1/e<0)return Mn;const a=this.index++;return t.set(e,a),cs.call(this,e,a),a}function cs(e,t){const{deferred:r,plugins:a,postPlugins:n}=this,o=this.stringified,s=[[e,t]];for(;s.length>0;){const[i,l]=s.pop(),u=f=>Object.keys(f).map(d=>'"_'.concat(Se.call(this,d),'":').concat(Se.call(this,f[d]))).join(",");let c=null;switch(typeof i){case"boolean":case"number":case"string":o[l]=JSON.stringify(i);break;case"bigint":o[l]='["'.concat(jn,'","').concat(i,'"]');break;case"symbol":{const f=Symbol.keyFor(i);f?o[l]='["'.concat(Wn,'",').concat(JSON.stringify(f),"]"):c=new Error("Cannot encode symbol unless created with Symbol.for()");break}case"object":{if(!i){o[l]="".concat(ya);break}const f=Array.isArray(i);let d=!1;if(!f&&a)for(const h of a){const p=h(i);if(Array.isArray(p)){d=!0;const[g,...b]=p;o[l]="[".concat(JSON.stringify(g)),b.length>0&&(o[l]+=",".concat(b.map(R=>Se.call(this,R)).join(","))),o[l]+="]";break}}if(!d){let h=f?"[":"{";if(f){for(let p=0;p<i.length;p++)h+=(p?",":"")+(p in i?Se.call(this,i[p]):Tn);o[l]="".concat(h,"]")}else i instanceof Date?o[l]='["'.concat(zn,'",').concat(i.getTime(),"]"):i instanceof URL?o[l]='["'.concat(Jn,'",').concat(JSON.stringify(i.href),"]"):i instanceof RegExp?o[l]='["'.concat(Vn,'",').concat(JSON.stringify(i.source),",").concat(JSON.stringify(i.flags),"]"):i instanceof Set?i.size>0?o[l]='["'.concat(Jr,'",').concat([...i].map(p=>Se.call(this,p)).join(","),"]"):o[l]='["'.concat(Jr,'"]'):i instanceof Map?i.size>0?o[l]='["'.concat(Wr,'",').concat([...i].flatMap(([p,g])=>[Se.call(this,p),Se.call(this,g)]).join(","),"]"):o[l]='["'.concat(Wr,'"]'):i instanceof Promise?(o[l]='["'.concat(yt,'",').concat(l,"]"),r[l]=i):i instanceof Error?(o[l]='["'.concat(pt,'",').concat(JSON.stringify(i.message)),i.name!=="Error"&&(o[l]+=",".concat(JSON.stringify(i.name))),o[l]+="]"):Object.getPrototypeOf(i)===null?o[l]='["'.concat(Bn,'",{').concat(u(i),"}]"):fs(i)?o[l]="{".concat(u(i),"}"):c=new Error("Cannot encode object with prototype")}break}default:{const f=Array.isArray(i);let d=!1;if(!f&&a)for(const h of a){const p=h(i);if(Array.isArray(p)){d=!0;const[g,...b]=p;o[l]="[".concat(JSON.stringify(g)),b.length>0&&(o[l]+=",".concat(b.map(R=>Se.call(this,R)).join(","))),o[l]+="]";break}}
1d||(c=new Error("Cannot encode function or unexpected type"))}}if(c){let f=!1;if(n)for(const d of n){const h=d(i);if(Array.isArray(h)){f=!0;const[p,...g]=h;o[l]="[".concat(JSON.stringify(p)),g.length>0&&(o[l]+=",".concat(g.map(b=>Se.call(this,b)).join(","))),o[l]+="]";break}}if(!f)throw c}}}var ds=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function fs(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===ds}var Hr=typeof window<"u"?window:typeof globalThis<"u"?globalThis:void 0;function Kr(e){const{hydrated:t,values:r}=this;if(typeof e=="number")return rn.call(this,e);if(!Array.isArray(e)||!e.length)throw new SyntaxError;const a=r.length;for(const n of e)r.push(n);return t.length=r.length,rn.call(this,a)}function rn(e){const{hydrated:t,values:r,deferred:a,plugins:n}=this;let o;const s=[[e,l=>{o=l}]];let i=[];for(;s.length>0;){const[l,u]=s.pop();switch(l){case In:u(void 0);continue;case ya:u(null);continue;case $n:u(NaN);continue;case Hn:u(1/0);continue;case Un:u(-1/0);continue;case Mn:u(-0);continue}if(t[l]){u(t[l]);continue}const c=r[l];if(!c||typeof c!="object"){t[l]=c,u(c);continue}if(Array.isArray(c))if(typeof c[0]=="string"){const[f,d,h]=c;switch(f){case zn:u(t[l]=new Date(d));continue;case Jn:u(t[l]=new URL(d));continue;case jn:u(t[l]=BigInt(d));continue;case Vn:u(t[l]=new RegExp(d,h));continue;case Wn:u(t[l]=Symbol.for(d));continue;case Jr:const p=new Set;t[l]=p;for(let D=1;D<c.length;D++)s.push([c[D],m=>{p.add(m)}]);u(p);continue;case Wr:const g=new Map;t[l]=g;for(let D=1;D<c.length;D+=2){const m=[];s.push([c[D+1],L=>{m[1]=L}]),s.push([c[D],L=>{m[0]=L}]),i.push(()=>{g.set(m[0],m[1])})}u(g);continue;case Bn:const b=Object.create(null);t[l]=b;for(const D of Object.keys(d).reverse()){const m=[];s.push([d[D],L=>{m[1]=L}]),s.push([Number(D.slice(1)),L=>{m[0]=L}]),i.push(()=>{b[m[0]]=m[1]})}u(b);continue;case yt:if(t[d])u(t[l]=t[d]);else{const D=new Yn;a[d]=D,u(t[l]=D.promise)}continue;case pt:const[,R,_]=c;let w=_&&Hr&&Hr[_]?new Hr[_](R):new Error(R);t[l]=w,u(w);continue;case Yr:u(t[l]=t[d]);continue;default:if(Array.isArray(n)){const D=[],m=c.slice(1);for(let L=0;L<m.length;L++){const U=m[L];s.push([U,H=>{D[L]=H}])}i.push(()=>{for(const L of n){const U=L(c[0],...D);if(U){u(t[l]=U.value);return}}throw new SyntaxError});continue}throw new SyntaxError}}else{const f=[];t[l]=f;for(let d=0;d<c.length;d++){const h=c[d];h!==Tn&&s.push([h,p=>{f[d]=p}])}u(f);continue}else{const f={};t[l]=f;for(const d of Object.keys(c).reverse()){const h=[];s.push([c[d],p=>{h[1]=p}]),s.push([Number(d.slice(1)),p=>{h[0]=p}]),i.push(()=>{f[h[0]]=h[1]})}u(f);continue}}for(;i.length>0;)i.pop()();return o}async function hs(e,t){const{plugins:r}=t!=null?t:{},a=new Yn,n=e.pipeThrough(us()).getReader(),o={values:[],hydrated:[],deferred:{},plugins:r},s=await ms.call(o,n);let i=a.promise;return s.done?a.resolve():i=ps.call(o,n).then(a.resolve).catch(l=>{for(const u of Object.values(o.deferred))u.reject(l);a.reject(l)}),{done:i.then(()=>n.closed),value:s.value}}async function ms(e){const t=await e.read();if(!t.value)throw new SyntaxError;let r;try{r=JSON.parse(t.value)}catch(a){throw new SyntaxError}return{done:t.done,value:Kr.call(this,r)}}async function ps(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;const r=t.value;switch(r[0]){case yt:{const a=r.indexOf(":"),n=Number(r.slice(1,a)),o=this.deferred[n];if(!o)throw new Error("Deferred ID ".concat(n," not found in stream"));const s=r.slice(a+1);let i;try{i=JSON.parse(s)}catch(u){throw new SyntaxError}const l=Kr.call(this,i);o.resolve(l);break}case pt:{const a=r.indexOf(":"),n=Number(r.slice(1,a)),o=this.deferred[n];if(!o)throw new Error("Deferred ID ".concat(n," not found in stream"));const s=r.slice(a+1);let i;try{i=JSON.parse(s)}catch(u){throw new SyntaxError}const l=Kr.call(this,i);o.reject(l);break}default:throw new SyntaxError}t=await e.read()}}function ys(e,t){const{plugins:r,postPlugins:a,signal:n}=t!=null?t:{},o={deferred:{},index:0,indices:new Map,stringified:[],plugins:r,postPlugins:a,signal:n},s=new TextEncoder;let i=0;return new ReadableStream({async start(u){const c=Se.call(o,e);if(Array.isArray(c))throw new Error("This should never happen");c<0?u.enqueue(s.encode("".concat(c,"\n"))):(u.enqueue(s.encode("[".concat(o.stringified.join(","),"]\n"))),i=o.stringified.length-1);const f=new WeakSet;for(;Object.keys(o.deferred).length>0;){for(const[d,h]of Object.entries(o.deferred))f.has(h)||f.add(o.deferred[Number(d)]=gs(h,o.signal).then(p=>{const g=Se.call(o,p);if(Array.isArray(g))u.enqueue(s.encode("".concat(yt).concat(d,':[["').concat(Yr,'",').concat(g[0],"]]\n"))),o.index++,i++;else if(g<0)u.enqueue(s.encode("".concat(yt).concat(d,":").concat(g,"\n")));
1else{const b=o.stringified.slice(i+1).join(",");u.enqueue(s.encode("".concat(yt).concat(d,":[").concat(b,"]\n"))),i=o.stringified.length-1}},p=>{(!p||typeof p!="object"||!(p instanceof Error))&&(p=new Error("An unknown error occurred"));const g=Se.call(o,p);if(Array.isArray(g))u.enqueue(s.encode("".concat(pt).concat(d,':[["').concat(Yr,'",').concat(g[0],"]]\n"))),o.index++,i++;else if(g<0)u.enqueue(s.encode("".concat(pt).concat(d,":").concat(g,"\n")));else{const b=o.stringified.slice(i+1).join(",");u.enqueue(s.encode("".concat(pt).concat(d,":[").concat(b,"]\n"))),i=o.stringified.length-1}}).finally(()=>{delete o.deferred[Number(d)]}));await Promise.race(Object.values(o.deferred))}await Promise.all(Object.values(o.deferred)),u.close()}})}function gs(e,t){if(!t)return e;if(t.aborted)return Promise.reject(t.reason||new Error("Signal was aborted."));const r=new Promise((a,n)=>{t.addEventListener("abort",o=>{n(t.reason||new Error("Signal was aborted."))}),e.then(a).catch(n)});return r.catch(()=>{}),Promise.race([r,e])}var Me={};Object.defineProperty(Me,"__esModule",{value:!0});Me.parseCookie=Qn;var vs=Me.parse=Qn;Me.stringifyCookie=Es;Me.stringifySetCookie=vr;var Kn=Me.serialize=vr;Me.parseSetCookie=xs;Me.stringifySetCookie=vr;Kn=Me.serialize=vr;const Gn=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,Xn=/^[\u0021-\u003A\u003C-\u007E]*$/,ws=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,_s=/^[\u0020-\u003A\u003D-\u007E]*$/,Rs=/^-?\d+$/,Ss=Object.prototype.toString,bs=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function Qn(e,t){const r=new bs,a=e.length;if(a<2)return r;const n=(t==null?void 0:t.decode)||Zn;let o=0;do{const s=Xr(e,o,a);if(s===-1)break;const i=Gr(e,o,a);if(s>i){o=e.lastIndexOf(";",s-1)+1;continue}const l=Be(e,o,s);r[l]===void 0&&(r[l]=n(Be(e,s+1,i))),o=i+1}while(o<a);return r}function Es(e,t){const r=(t==null?void 0:t.encode)||encodeURIComponent,a=[];for(const n of Object.keys(e)){const o=e[n];if(o===void 0)continue;if(!Gn.test(n))throw new TypeError("cookie name is invalid: ".concat(n));const s=r(o);if(!Xn.test(s))throw new TypeError("cookie val is invalid: ".concat(o));a.push("".concat(n,"=").concat(s))}return a.join("; ")}function vr(e,t,r){const a=typeof e=="object"?e:O(P({},r),{name:e,value:String(t)}),n=typeof t=="object"?t:r,o=(n==null?void 0:n.encode)||encodeURIComponent;if(!Gn.test(a.name))throw new TypeError("argument name is invalid: ".concat(a.name));const s=a.value?o(a.value):"";if(!Xn.test(s))throw new TypeError("argument val is invalid: ".concat(a.value));let i=a.name+"="+s;if(a.maxAge!==void 0){if(!Number.isInteger(a.maxAge))throw new TypeError("option maxAge is invalid: ".concat(a.maxAge));i+="; Max-Age="+a.maxAge}if(a.domain){if(!ws.test(a.domain))throw new TypeError("option domain is invalid: ".concat(a.domain));i+="; Domain="+a.domain}if(a.path){if(!_s.test(a.path))throw new TypeError("option path is invalid: ".concat(a.path));i+="; Path="+a.path}if(a.expires){if(!Ps(a.expires)||!Number.isFinite(a.expires.valueOf()))throw new TypeError("option expires is invali
1d: ".concat(a.expires));i+="; Expires="+a.expires.toUTCString()}if(a.httpOnly&&(i+="; HttpOnly"),a.secure&&(i+="; Secure"),a.partitioned&&(i+="; Partitioned"),a.priority)switch(typeof a.priority=="string"?a.priority.toLowerCase():void 0){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError("option priority is invalid: ".concat(a.priority))}if(a.sameSite)switch(typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid: ".concat(a.sameSite))}return i}function xs(e,t){const r=(t==null?void 0:t.decode)||Zn,a=e.length,n=Gr(e,0,a),o=Xr(e,0,n),s=o===-1?{name:"",value:r(Be(e,0,n))}:{name:Be(e,0,o),value:r(Be(e,o+1,n))};let i=n+1;for(;i<a;){const l=Gr(e,i,a),u=Xr(e,i,l),c=u===-1?Be(e,i,l):Be(e,i,u),f=u===-1?void 0:Be(e,u+1,l);switch(c.toLowerCase()){case"httponly":s.httpOnly=!0;break;case"secure":s.secure=!0;break;case"partitioned":s.partitioned=!0;break;case"domain":s.domain=f;break;case"path":s.path=f;break;case"max-age":f&&Rs.test(f)&&(s.maxAge=Number(f));break;case"expires":if(!f)break;const d=new Date(f);Number.isFinite(d.valueOf())&&(s.expires=d);break;case"priority":if(!f)break;const h=f.toLowerCase();(h==="low"||h==="medium"||h==="high")&&(s.priority=h);break;case"samesite":if(!f)break;const p=f.toLowerCase();(p==="lax"||p==="strict"||p==="none")&&(s.sameSite=p);break}i=l+1}return s}function Gr(e,t,r){const a=e.indexOf(";",t);return a===-1?r:a}function Xr(e,t,r){const a=e.indexOf("=",t);return a<r?a:-1}function Be(e,t,r){let a=t,n=r;do{const o=e.charCodeAt(a);if(o!==32&&o!==9)break}while(++a<n);for(;n>a;){const o=e.charCodeAt(n-1);if(o!==32&&o!==9)break;n--}return e.slice(a,n)}function Zn(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch(t){return e}}function Ps(e){return Ss.call(e)==="[object Date]"}var wr={exports:{}},cr={decodeValues:!0,map:!1,silent:!1};function Qr(e){return typeof e!="string"||e in{}}function Zr(){return Object.create(null)}function qr(e){return typeof e=="string"&&!!e.trim()}function ea(e,t){var r=e.split(";").filter(qr),a=r.shift(),n=Cs(a),o=n.name,s=n.value;if(t=t?Object.assign({},cr,t):cr,Qr(o))return null;try{s=t.decodeValues?decodeURIComponent(s):s}catch(l){console.error("set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",l)}var i=Zr();return i.name=o,i.value=s,r.forEach(function(l){var u=l.split("="),c=u.shift().trimLeft().toLowerCase();if(!Qr(c)){var f=u.join("=");if(c==="expires")i.expires=new Date(f);else if(c==="max-age"){var d=parseInt(f,10);Number.isNaN(d)||(i.maxAge=d)}else c==="secure"?i.secure=!0:c==="httponly"?i.httpOnly=!0:c==="samesite"?i.sameSite=f:c==="partitioned"?i.partitioned=!0:c&&(i[c]=f)}}),i}function Cs(e){var t="",r="",a=e.split("=");return a.length>1?(t=a.shift(),r=a.join("=")):r=e,{name:t,value:r}}function qn(e,t){if(t=t?Object.assign({},cr,t):cr,!e)return t.map?Zr():[];if(e.headers)if(typeof e.headers.getSetCookie=="function")e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var r=e.headers[Object.keys(e.headers).find(function(n){return n.toLowerCase()==="set-cookie"})];!r&&e.headers.cookie&&!t.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=r}if(Array.isArray(e)||(e=[e]),t.map){var a=Zr();return e.filter(qr).reduce(function(n,o){var s=ea(o,t);return s&&!Qr(s.name)&&(n[s.name]=s),n},a)}else return e.filter(qr).map(function(n){return ea(n,t)}).filter(Boolean)}function Ls(e){if(Array.isArray(e))return e;if(typeof e!="string")return[];var t=[],r=0,a,n,o,s,i;function l(){for(;r<e.length&&/\s/.test(e.charAt(r));)r+=1;return r<e.length}function u(){return n=e.charAt(r),n!=="="&&n!==";"&&n!==","}for(;r<e.length;){for(a=r,i=!1;l();)if(n=e.charAt(r),n===","){for(o=r,r+=1,l(),s=r;r<e.length&&u();)r+=1;r<e.length&&e.charAt(r)==="="?(i=!0,r=s,t.push(e.substring(a,o)),a=r):r=o+1}else r+=1;(!i||r>=e.length)&&t.push(e.substring(a,e.length))}return t}wr.exports=qn;wr.exports.parse=qn;wr.exports.parseString=ea;var Ds=wr.exports.splitCookiesString=Ls;var eo=(e=>(e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE",e))(eo||{}),an="popstate";function to(e={}){let{initialEntries:t=["/"],initialIndex:r,v5Compat:a=!1}=e,n;n=t.map((h,p)=>c(h,typeof h=="string"?null:h.state,p===0?"default":void 0));let o=l(r==null?n.length-1:r),s="POP",i=null;function l(h){return Math.min(Math.max(h,0),n.length-1)}function u(){return n[o]}function c(h,p=null,g){let b=Ue(n?u().pathname:"/",h,p,g);return G(b.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: ".concat(JSON.stringify(h))),b}function f(h){return typeof h=="string"?h:fe(h)}return{get index(){return o},get action(){return s},get location(){return u()},createHref:f,createURL(h){return new URL(f(h),"http://localhost")},encodeLocation(h){let p=typeof h=="string"?Re(h):h;return{pathname:p.pathname||"",search:p.search||"",hash:p.hash||""}},push(h,p){s="PUSH";let g=c(h,p);o+=1,n.splice(o,n.length,g),a&&i&&i({action:s,location:g,delta:1})},replace(h,p){s="REPLACE";let g=c(h,p);n[o]=g,a&&i&&i({action:s,location:g,delta:0})},go(h){s="POP";let p=l(o+h),g=n[p];o=p,i&&i({action:s,location:g,delta:h})},listen(h){return i=h,()=>{i=null}}}}function _r(e={}){function t(a,n){let{pathname:o,search:s,hash:i}=a.location;return Ue("",{pathname:o,search:s,hash:i},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function r(a,n){return typeof n=="string"?n:fe(n)}return ao(t,r,null,e)}function ro(e={}){function t(n,o){let{pathname:s="/",search:i="",hash:l=""}=Re(n.location.hash.substring(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),Ue("",{pathname:s,search:i,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){let s=n.document.querySelector("base"),i="";if(s&&s.getAttribute("href")){let l=n.location.href,u=l.indexOf("#");i=u===-1?l:l.slice(0,u)}
1return i+"#"+(typeof o=="string"?o:fe(o))}function a(n,o){G(n.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push(".concat(JSON.stringify(o),")"))}return ao(t,r,a,e)}function $(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function G(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch(r){}}}function Ns(){return Math.random().toString(36).substring(2,10)}function nn(e,t){return{usr:e.state,key:e.key,idx:t}}function Ue(e,t,r=null,a){return O(P({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Re(t):t),{state:r,key:t&&t.key||a||Ns()})}function fe({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Re(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function ao(e,t,r,a={}){let{window:n=document.defaultView,v5Compat:o=!1}=a,s=n.history,i="POP",l=null,u=c();u==null&&(u=0,s.replaceState(O(P({},s.state),{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){i="POP";let b=c(),R=b==null?null:b-u;u=b,l&&l({action:i,location:g.location,delta:R})}function d(b,R){i="PUSH";let _=Ue(g.location,b,R);r&&r(_,b),u=c()+1;let w=nn(_,u),D=g.createHref(_);try{s.pushState(w,"",D)}catch(m){if(m instanceof DOMException&&m.name==="DataCloneError")throw m;n.location.assign(D)}o&&l&&l({action:i,location:g.location,delta:1})}function h(b,R){i="REPLACE";let _=Ue(g.location,b,R);r&&r(_,b),u=c();let w=nn(_,u),D=g.createHref(_);s.replaceState(w,"",D),o&&l&&l({action:i,location:g.location,delta:0})}function p(b){let R=n.location.origin!=="null"?n.location.origin:n.location.href,_=typeof b=="string"?b:fe(b);return _=_.replace(/ $/,"%20"),$(R,"No window.location.(origin|href) available to create URL for href: ".concat(_)),new URL(_,R)}let g={get action(){return i},get location(){return e(n,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return n.addEventListener(an,f),l=b,()=>{n.removeEventListener(an,f),l=null}},createHref(b){return t(n,b)},createURL:p,encodeLocation(b){let R=p(b);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:d,replace:h,go(b){return s.go(b)}};return g}var Fs=new Set(["lazy","caseSensitive","path","id","index","children"]);function As(e){return e.index===!0}function it(e,t,r=[],a={}){return e.map((n,o)=>{let s=[...r,String(o)],i=typeof n.id=="string"?n.id:s.join("-");if($(n.index!==!0||!n.children,"Cannot specify children on an index route"),$(!a[i],'Found a route id collision on i
1d "'.concat(i,"\".  Route id's must be globally unique within Data Router usages")),As(n)){let l=O(P(P({},n),t(n)),{id:i});return a[i]=l,l}else{let l=O(P(P({},n),t(n)),{id:i,children:void 0});return a[i]=l,n.children&&(l.children=it(n.children,t,s,a)),l}})}function me(e,t,r="/"){return nr(e,t,r,!1)}function nr(e,t,r,a){let n=typeof t=="string"?Re(t):t,o=he(n.pathname||"/",r);if(o==null)return null;let s=oo(e);ks(s);let i=null;for(let l=0;i==null&&l<s.length;++l){let u=so(o);i=zs(s[l],u,a)}return i}function no(e,t){let{route:r,pathname:a,params:n}=e;return{id:r.id,pathname:a,params:n,data:t[r.id],handle:r.handle}}function oo(e,t=[],r=[],a=""){let n=(o,s,i)=>{let l={relativePath:i===void 0?o.path||"":i,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&($(l.relativePath.startsWith(a),'Absolute route path "'.concat(l.relativePath,'" nested under path "').concat(a,'" is not valid. An absolute child route path must start with the combined path of all its parent routes.')),l.relativePath=l.relativePath.slice(a.length));let u=Ne([a,l.relativePath]),c=r.concat(l);o.children&&o.children.length>0&&($(o.index!==!0,'Index routes must not have child routes. Please remove all child routes from route path "'.concat(u,'".')),oo(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Is(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var i;if(o.path===""||!((i=o.path)!=null&&i.includes("?")))n(o,s);else for(let l of io(o.path))n(o,s,l)}),t}function io(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,n=r.endsWith("?"),o=r.replace(/\?$/,"");if(a.length===0)return n?[o,""]:[o];let s=io(a.join("/")),i=[];return i.push(...s.map(l=>l===""?o:[o,l].join("/"))),n&&i.push(...s),i.map(l=>e.startsWith("/")&&l===""?"/":l)}function ks(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:js(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var Os=/^:[\w-]+$/,Ts=3,$s=2,Us=1,Ms=10,Hs=-2,on=e=>e==="*";function Is(e,t){let r=e.split("/"),a=r.length;return r.some(on)&&(a+=Hs),t&&(a+=$s),r.filter(n=>!on(n)).reduce((n,o)=>n+(Os.test(o)?Ts:o===""?Us:Ms),a)}function js(e,t){return e.length===t.length&&e.slice(0,-1).every((a,n)=>a===t[n])?e[e.length-1]-t[t.length-1]:0}function zs(e,t,r=!1){let{routesMeta:a}=e,n={},o="/",s=[];for(let i=0;i<a.length;++i){let l=a[i],u=i===a.length-1,c=o==="/"?t:t.slice(o.length)||"/",f=wt({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),d=l.route;if(!f&&u&&r&&!a[a.length-1].route.index&&(f=wt({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;
1Object.assign(n,f.params),s.push({params:n,pathname:Ne([o,f.pathname]),pathnameBase:Js(Ne([o,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(o=Ne([o,f.pathnameBase]))}return s}function Bs(e,t={}){let r=e;r.endsWith("*")&&r!=="*"&&!r.endsWith("/*")&&(G(!1,'Route path "'.concat(r,'" will be treated as if it were "').concat(r.replace(/\*$/,"/*"),'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "').concat(r.replace(/\*$/,"/*"),'".')),r=r.replace(/\*$/,"/*"));const a=r.startsWith("/")?"/":"",n=s=>s==null?"":typeof s=="string"?s:String(s),o=r.split(/\/+/).map((s,i,l)=>{if(i===l.length-1&&s==="*")return n(t["*"]);const c=s.match(/^:([\w-]+)(\??)$/);if(c){const[,f,d]=c;let h=t[f];return $(d==="?"||h!=null,'Missing ":'.concat(f,'" param')),n(h)}return s.replace(/\?$/g,"")}).filter(s=>!!s);return a+o.join("/")}function wt(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=Vs(e.path,e.caseSensitive,e.end),n=t.match(r);if(!n)return null;let o=n[0],s=o.replace(/(.)\/+$/,"$1"),i=n.slice(1);return{params:a.reduce((u,{paramName:c,isOptional:f},d)=>{if(c==="*"){let p=i[d]||"";s=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}const h=i[d];return f&&!h?u[c]=void 0:u[c]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function Vs(e,t=!1,r=!0){G(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'.concat(e,'" will be treated as if it were "').concat(e.replace(/\*$/,"/*"),'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "').concat(e.replace(/\*$/,"/*"),'".'));let a=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,i,l)=>(a.push({paramName:i,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),a]}function so(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return G(!1,'The URL path "'.concat(e,'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (').concat(t,").")),e}}function he(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function lo(e,t="/"){let{pathname:r,search:a="",hash:n=""}=typeof e=="string"?Re(e):e;return{pathname:r?r.startsWith("/")?r:Ws(r,t):t,search:Ys(a),hash:Ks(n)}}function Ws(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function Ir(e,t,r,a){return"Cannot include a '".concat(e,"' character in a manually specified `to.").concat(t,"` field [").concat(JSON.stringify(a),"].  Please separate it out to the `to.").concat(r,'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.')}function uo(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Rr(e){let t=uo(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function Sr(e,t,r,a=!1){let n;typeof e=="string"?n=Re(e):(n=P({},e),$(!n.pathname||!n.pathname.includes("?"),Ir("?","pathname","search",n)),$(!n.pathname||!n.pathname.includes("#"),Ir("#","pathname","hash",n)),$(!n.search||!n.search.includes("#"),Ir("#","search","hash",n)));let o=e===""||n.pathname==="",s=o?"/":n.pathname,i;if(s==null)i=r;else{let f=t.length-1;if(!a&&s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),f-=1;n.pathname=d.join("/")}i=f>=0?t[f]:"/"}let l=lo(n,i),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var Ne=e=>e.join("/").replace(/\/\/+/g,"/"),Js=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ys=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ks=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Gs=class{constructor(e,t){this.type="DataWithResponseInit",this.data=e,this.init=t||null}};function co(e,t){return new Gs(e,typeof t=="number"?{status:t}:t)}var br=(e,t=302)=>{let r=t;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let a=new Headers(r.headers);return a.set("Location",e),new Response(null,O(P({},r),{headers:a}))},Xs=(e,t)=>{let r=br(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},Qs=(e,t)=>{let r=br(e,t);return r.headers.set("X-Remix-Replace","true"),r},_e=class{constructor(e,t,r,a=!1){this.status=e,this.statusText=t||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function ue(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var fo=["POST","PUT","PATCH","DELETE"],Zs=new Set(fo),qs=["GET",...fo],el=new Set(qs),ho=new Set([301,302,303,307,308]),tl=new Set([307,308]),Ft={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Er={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ve={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ga=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mo=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),po="remix-router-transitions",yo=Symbol("ResetLoaderData");function Ut(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";$(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a=e.mapRouteProperties||mo,n={},o=it(e.routes,a,void 0,n),s,i=e.basename||"/",l=e.dataStrategy||wo,u=e.patchRoutesOnNavigation,c=P({},e.future),f=null,d=new Set,h=null,p=null,g=null,b=e.hydrationData!=null,R=me(o,e.history.location,i),_=null;if(R==null&&!u){let y=q(404,{pathname:e.history.location.pathname}),{matches:v,route:S}=dr(o);R=v,_={[S.id]:y}}R&&!e.hydrationData&&Jt(R,o,e.history.location.pathname).active&&(R=null);let w;if(R)if(R.some(y=>y.route.lazy))w=!1;else if(!R.some(y=>y.route.loader))w=!0;else{let y=e.hydrationData?e.hydrationData.loaderData:null,v=e.hydrationData?e.hydrationData.errors:null;if(v){let S=R.findIndex(C=>v[C.route.id]!==void 0);w=R.slice(0,S+1).every(C=>!aa(C.route,y,v))}else w=R.every(S=>!aa(S.route,y,v))}else{w=!1,R=[];let y=Jt(null,o,e.history.location.pathname);y.active&&y.matches&&(R=y.matches)}let D,m={historyAction:e.history.action,location:e.history.location,matches:R,initialized:w,navigation:Ft,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},L="POP",U=!1,H,V=!1,Q=new Map,X=null,we=!1,Ce=!1,zt=new Set,ae=new Map,Bt=0,St=-1,ut=new Map,Ae=new Set,ct=ne
1w Map,bt=new Map,ke=new Set,qe=new Map,Vt,et=null;function Mi(){if(f=e.history.listen(({action:y,location:v,delta:S})=>{if(Vt){Vt(),Vt=void 0;return}G(qe.size===0||S!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let C=Xa({currentLocation:m.location,nextLocation:v,historyAction:y});if(C&&S!=null){let F=new Promise(T=>{Vt=T});e.history.go(S*-1),Wt(C,{state:"blocked",location:v,proceed(){Wt(C,{state:"proceeding",proceed:void 0,reset:void 0,location:v}),F.then(()=>e.history.go(S))},reset(){let T=new Map(m.blockers);T.set(C,Ve),ce({blockers:T})}});return}return tt(y,v)}),r){fl(t,Q);let y=()=>hl(t,Q);t.addEventListener("pagehide",y),X=()=>t.removeEventListener("pagehide",y)}return m.initialized||tt("POP",m.location,{initialHydration:!0}),D}function Hi(){f&&f(),X&&X(),d.clear(),H&&H.abort(),m.fetchers.forEach((y,v)=>Tr(v)),m.blockers.forEach((y,v)=>Ga(v))}function Ii(y){return d.add(y),()=>d.delete(y)}function ce(y,v={}){m=P(P({},m),y);let S=[],C=[];m.fetchers.forEach((F,T)=>{F.state==="idle"&&(ke.has(T)?S.push(T):C.push(T))}),[...d].forEach(F=>F(m,{deletedFetchers:S,viewTransitionOpts:v.viewTransitionOpts,flushSync:v.flushSync===!0})),S.forEach(F=>Tr(F)),C.forEach(F=>m.fetchers.delete(F))}function dt(y,v,{flushSync:S}={}){var N,j;let C=m.actionData!=null&&m.navigation.formMethod!=null&&be(m.navigation.formMethod)&&m.navigation.state==="loading"&&((N=y.state)==null?void 0:N._isRedirect)!==!0,F;v.actionData?Object.keys(v.actionData).length>0?F=v.actionData:F=null:C?F=m.actionData:F=null;let T=v.loaderData?pn(m.loaderData,v.loaderData,v.matches||[],v.errors):m.loaderData,I=m.blockers;I.size>0&&(I=new Map(I),I.forEach((B,Y)=>I.set(Y,Ve)));let A=U===!0||m.navigation.formMethod!=null&&be(m.navigation.formMethod)&&((j=y.state)==null?void 0:j._isRedirect)!==!0;s&&(o=s,s=void 0),we||L==="POP"||(L==="PUSH"?e.history.push(y,y.state):L==="REPLACE"&&e.history.replace(y,y.state));let k;if(L==="POP"){let B=Q.get(m.location.pathname);B&&B.has(y.pathname)?k={currentLocation:m.location,nextLocation:y}:Q.has(y.pathname)&&(k={currentLocation:y,nextLocation:m.location})}else if(V){let B=Q.get(m.location.pathname);B?B.add(y.pathname):(B=new Set([y.pathname]),Q.set(m.location.pathname,B)),k={currentLocation:m.location,nextLocation:y}}ce(O(P({},v),{actionData:F,loaderData:T,historyAction:L,location:y,initialized:!0,navigation:Ft,revalidation:"idle",restoreScrollPosition:Za(y,v.matches||m.matches),preventScrollReset:A,blockers:I}),{viewTransitionOpts:k,flushSync:S===!0}),L="POP",U=!1,V=!1,we=!1,Ce=!1,et==null||et.resolve(),et=null}async function za(y,v){if(typeof y=="number"){e.history.go(y);return}let S=ta(m.location,m.matches,i,y,v==null?void 0:v.fromRouteId,v==null?void 0:v.relative),{path:C,submission:F,error:T}=ln(!1,S,v),I=m.location,A=Ue(m.location,C,v&&v.state);A=P(P({},A),e.history.encodeLocation(A));let k=v&&v.replace!=null?v.replace:void 0,N="PUSH";k===!0?N="REPLACE":k===!1||F!=null&&be(F.formMethod)&&F.formAction===m.location.pathname+m.location.search&&(N="REPLACE");let j=v&&"preventScrollReset"in v?v.preventScrollReset===!0:void 0,B=(v&&v.flushSync)===!0,Y=Xa({currentLocation:I,nextLocation:A,historyAction:N});if(Y){Wt(Y,{state:"blocked",location:A,proceed(){Wt(Y,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),za(y,v)},reset(){let ne=new Map(m.blockers);ne.set(Y,Ve),ce({blockers:ne})}});return}await tt(N,A,{submission:F,pendingError:T,preventScrollReset:j,replace:v&&v.replace,enableViewTransition:v&&v.viewTransition,flushSync:B})}function ji(){et||(et=ml()),Or(),ce({revalidation:"loading"});let y=et.promise;return m.navigation.state==="submitting"?y:m.navigation.state==="idle"?(tt(m.historyAction,m.location,{startUninterruptedRevalidation:!0}),y):(tt(L||m.historyAction,m.navigation.location,{overrideNavigation:m.navigation,enableViewTransition:V===!0}),y)}async function tt(y,v,S){H&&H.abort(),H=null,L=y,we=(S&&S.startUninterruptedRevalidation)===!0,Qi(m.location,m.matches),U=(S&&S.preventScrollReset)===!0,V=(S&&S.enableViewTransition)===!0;let C=s||o,F=S&&S.overrideNavigation,T=me(C,v,i),I=(S&&S.flushSync)===!0,A=Jt(T,C,v.pathname);if(A.active&&A.matches&&(T=A.matches),!T){let{error:K,notFoundMatches:J,route:ee}=$r(v.pathname);dt(v,{matches:J,loaderData:{},errors:{[ee.id]:K}},{flushSync:I});return}if(m.initialized&&!Ce&&ll(m.location,v)&&!(S&&S.submission&&be(S.submission.formMethod))){dt(v,{matches:T},{flushSync:I});return}H=new AbortController;let k=mt(e.history,v,H.signal,S&&S.submission),N;if(S&&S.pendingError)N=[We(T).route.id,{type:"error",error:S.pendingError}];else if(S&&S.submission&&be(S.submission.formMethod)){let K=await zi(k,v,S.submission,T,A.active,{replace:S.replace,flushSync:I});if(K.shortCircuited)return;if(K.pendingActionResult){let[J,ee]=K.pendingActionResult;if(oe(ee)&&ue(ee.error)&&ee.error.status===404){H=null,dt(v,{matches:K.matches,loaderData:{},errors:{[J]:ee.error}});return}}T=K.matches||T,N=K.pendingActionResult,F=jr(v,S.submission),I=!1,A.active=!1,k=mt(e.history,k.url,k.signal)}let{shortCircuited:j,matches:B,loaderData:Y,errors:ne}=await Bi(k,v,T,A.active,F,S&&S.submission,S&&S.fetcherSubmission,S&&S.replace,S&&S.initialHydration===!0,I,N);j||(H=null,dt(v,O(P({matches:B||T},yn(N)),{loaderData:Y,errors:ne})))}async function zi(y,v,S,C,F,T={}){Or();let I=cl(v,S);if(ce({navigation:I},{flushSync:T.flushSync===!0}),F){let N=await Yt(C,v.pathname,y.signal);if(N.type==="aborted")return{shortCircuited:!0};if(N.type==="error"){let j=We(N.partialMatches).route.id;
1return{matches:N.partialMatches,pendingActionResult:[j,{type:"error",error:N.error}]}}else if(N.matches)C=N.matches;else{let{notFoundMatches:j,error:B,route:Y}=$r(v.pathname);return{matches:j,pendingActionResult:[Y.id,{type:"error",error:B}]}}}let A,k=ot(C,v);if(!k.route.action&&!k.route.lazy)A={type:"error",error:q(405,{method:y.method,pathname:v.pathname,routeId:k.route.id})};else if(A=(await Et("action",m,y,[k],C,null))[k.route.id],y.signal.aborted)return{shortCircuited:!0};if(Je(A)){let N;return T&&T.replace!=null?N=T.replace:N=fn(A.response.headers.get("Location"),new URL(y.url),i)===m.location.pathname+m.location.search,await rt(y,A,!0,{submission:S,replace:N}),{shortCircuited:!0}}if(oe(A)){let N=We(C,k.route.id);return(T&&T.replace)!==!0&&(L="PUSH"),{matches:C,pendingActionResult:[N.route.id,A]}}return{matches:C,pendingActionResult:[k.route.id,A]}}async function Bi(y,v,S,C,F,T,I,A,k,N,j){let B=F||jr(v,T),Y=T||I||gn(B),ne=!we&&!k;if(C){if(ne){let le=Ba(j);ce(P({navigation:B},le!==void 0?{actionData:le}:{}),{flushSync:N})}let W=await Yt(S,v.pathname,y.signal);if(W.type==="aborted")return{shortCircuited:!0};if(W.type==="error"){let le=We(W.partialMatches).route.id;return{matches:W.partialMatches,loaderData:{},errors:{[le]:W.error}}}else if(W.matches)S=W.matches;else{let{error:le,notFoundMatches:Xt,route:Ct}=$r(v.pathname);return{matches:Xt,loaderData:{},errors:{[Ct.id]:le}}}}let K=s||o,[J,ee]=un(e.history,m,S,Y,v,k===!0,Ce,zt,ke,ct,Ae,K,i,j);if(St=++Bt,J.length===0&&ee.length===0){let W=Ya();return dt(v,P(P({matches:S,loaderData:{},errors:j&&oe(j[1])?{[j[0]]:j[1].error}:null},yn(j)),W?{fetchers:new Map(m.fetchers)}:{}),{flushSync:N}),{shortCircuited:!0}}if(ne){let W={};if(!C){W.navigation=B;let le=Ba(j);le!==void 0&&(W.actionData=le)}ee.length>0&&(W.fetchers=Vi(ee)),ce(W,{flushSync:N})}ee.forEach(W=>{je(W.key),W.controller&&ae.set(W.key,W.controller)});let ft=()=>ee.forEach(W=>je(W.key));H&&H.signal.addEventListener("abort",ft);let{loaderResults:xt,fetcherResults:Te}=await Va(m,S,J,ee,y);if(y.signal.aborted)return{shortCircuited:!0};H&&H.signal.removeEventListener("abort",ft),ee.forEach(W=>ae.delete(W.key));let Le=qt(xt);if(Le)return await rt(y,Le.result,!0,{replace:A}),{shortCircuited:!0};if(Le=qt(Te),Le)return Ae.add(Le.key),await rt(y,Le.result,!0,{replace:A}),{shortCircuited:!0};let{loaderData:Ur,errors:Pt}=mn(m,S,xt,j,ee,Te);k&&m.errors&&(Pt=P(P({},m.errors),Pt));let at=Ya(),Kt=Ka(St),Gt=at||Kt||ee.length>0;return P({matches:S,loaderData:Ur,errors:Pt},Gt?{fetchers:new Map(m.fetchers)}:{})}function Ba(y){if(y&&!oe(y[1]))return{[y[0]]:y[1].data};if(m.actionData)return Object.keys(m.actionData).length===0?null:m.actionData}function Vi(y){return y.forEach(v=>{let S=m.fetchers.get(v.key),C=Lt(void 0,S?S.data:void 0);m.fetchers.set(v.key,C)}),new Map(m.fetchers)}async function Wi(y,v,S,C){je(y);let F=(C&&C.flushSync)===!0,T=s||o,I=ta(m.location,m.matches,i,S,v,C==null?void 0:C.relative),A=me(T,I,i),k=Jt(A,T,I);if(k.active&&k.matches&&(A=k.matches),!A){Oe(y,v,q(404,{pathname:I}),{flushSync:F});return}let{path:N,submission:j,error:B}=ln(!0,I,C);if(B){Oe(y,v,B,{flushSync:F});return}let Y=ot(A,N),ne=(C&&C.preventScrollReset)===!0;if(j&&be(j.formMethod)){await Ji(y,v,N,Y,A,k.active,F,ne,j);return}ct.set(y,{routeId:v,path:N}),await Yi(y,v,N,Y,A,k.active,F,ne,j)}async function Ji(y,v,S,C,F,T,I,A,k){Or(),ct.delete(y);function N(Z){if(!Z.route.action&&!Z.route.lazy){let ht=q(405,{method:k.formMethod,pathname:S,routeId:v});return Oe(y,v,ht,{flushSync:I}),!0}return!1}if(!T&&N(C))return;let j=m.fetchers.get(y);Ie(y,dl(k,j),{flushSync:I});let B=new AbortController,Y=mt(e.history,S,B.signal,k);if(T){let Z=await Yt(F,S,Y.signal);if(Z.type==="aborted")return;if(Z.type==="error"){Oe(y,v,Z.error,{flushSync:I});return}else if(Z.matches){if(F=Z.matches,C=ot(F,S),N(C))return}else{Oe(y,v,q(404,{pathname:S}),{flushSync:I});return}}ae.set(y,B);let ne=Bt,J=(await Et("action",m,Y,[C],F,y))[C.route.id];if(Y.signal.aborted){ae.get(y)===B&&ae.delete(y);return}if(ke.has(y)){if(Je(J)||oe(J)){Ie(y,ze(void 0));return}}else{if(Je(J))if(ae.delete(y),St>ne){Ie(y,ze(void 0));return}else return Ae.add(y),Ie(y,Lt(k)),rt(Y,J,!1,{fetcherSubmission:k,preventScrollReset:A});if(oe(J)){Oe(y,v,J.error);return}}let ee=m.navigation.location||m.location,ft=mt(e.history,ee,B.signal),xt=s||o,Te=m.navigation.state!=="idle"?me(xt,m.navigation.location,i):m.matches;$(Te,"Didn't find any matches after fetcher action");let Le=++Bt;ut.set(y,Le);let Ur=Lt(k,J.data);m.fetchers.set(y,Ur);let[Pt,at]=un(e.history,m,Te,k,ee,!1,Ce,zt,ke,ct,Ae,xt,i,[C.route.id,J]);at.filter(Z=>
vendor: 2,783 bytes, line 1
1Z.key!==y).forEach(Z=>{let ht=Z.key,qa=m.fetchers.get(ht),es=Lt(void 0,qa?qa.data:void 0);m.fetchers.set(ht,es),je(ht),Z.controller&&ae.set(ht,Z.controller)}),ce({fetchers:new Map(m.fetchers)});let Kt=()=>at.forEach(Z=>je(Z.key));B.signal.addEventListener("abort",Kt);let{loaderResults:Gt,fetcherResults:W}=await Va(m,Te,Pt,at,ft);if(B.signal.aborted)return;B.signal.removeEventListener("abort",Kt),ut.delete(y),ae.delete(y),at.forEach(Z=>ae.delete(Z.key));let le=qt(Gt);if(le)return rt(ft,le.result,!1,{preventScrollReset:A});if(le=qt(W),le)return Ae.add(le.key),rt(ft,le.result,!1,{preventScrollReset:A});let{loaderData:Xt,errors:Ct}=mn(m,Te,Gt,void 0,at,W);if(m.fetchers.has(y)){let Z=ze(J.data);m.fetchers.set(y,Z)}Ka(Le),m.navigation.state==="loading"&&Le>St?($(L,"Expected pending action"),H&&H.abort(),dt(m.navigation.location,{matches:Te,loaderData:Xt,errors:Ct,fetchers:new Map(m.fetchers)})):(ce({errors:Ct,loaderData:pn(m.loaderData,Xt,Te,Ct),fetchers:new Map(m.fetchers)}),Ce=!1)}async function Yi(y,v,S,C,F,T,I,A,k){let N=m.fetchers.get(y);Ie(y,Lt(k,N?N.data:void 0),{flushSync:I});let j=new AbortController,B=mt(e.history,S,j.signal);if(T){let J=await Yt(F,S,B.signal);if(J.type==="aborted")return;if(J.type==="error"){Oe(y,v,J.error,{flushSync:I});return}else if(J.matches)F=J.matches,C=ot(F,S);else{Oe(y,v,q(404,{pathname:S}),{flushSync:I});return}}ae.set(y,j);let Y=Bt,K=(await Et("loader",m,B,[C],F,y))[C.route.id];if(ae.get(y)===j&&ae.delete(y),!B.signal.aborted){if(ke.has(y)){Ie(y,ze(void 0));return}if(Je(K))if(St>Y){Ie(y,ze(void 0));return}else{Ae.add(y),await rt(B,K,!1,{preventScrollReset:A});return}if(oe(K)){Oe(y,v,K.error);return}Ie(y,ze(K.data))}}async function rt(y,v,S,{submission:C,fetcherSubmission:F,preventScrollReset:T,replace:I}={}){v.response.headers.has("X-Remix-Revalidate")&&(Ce=!0);let A=v.response.headers.get("Location");$(A,"Expected a Location header on the redirect Response"),A=fn(A,new URL(y.url),i);let k=Ue(m.location,A,{_isRedirect:!0});if(r){let K=!1;if(v.response.headers.has("X-Remix-Reload-Document"))K=!0;else if(ga.test(A)){const J=e.history.createURL(A);K=J.origin!==t.location.origin||he(J.pathname,i)==null}if(K){I?t.location.replace(A):t.location.assign(A);return}}H=null;let N=I===!0||v.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:j,formAction:B,formEncType:Y}=m.navigation;!C&&!F&&j&&B&&Y&&(C=gn(m.navigation));let ne=C||F;if(tl.has(v.response.status)&&ne&&be(ne.formMethod))await tt(N,k,{submission:O(P({},ne),{formAction:A}),preventScrollReset:T||U,enableViewTransition:S?V:void 0});else{let K=jr(k,C);await tt(N,k,{overrideNavigation:K,fetcherSubmission:F,preventScrollReset:T||U,enableViewTransition:S?V:void 0})}}async function Et(y,v,S,C,F,T){let I,A={};try{I=await _o(l,y,v,S,C,F,T,n,a)}
1catch(k){return C.forEach(N=>{A[N.route.id]={type:"error",error:k}}),A}for(let[k,N]of Object.entries(I))if(xo(N)){let j=N.result;A[k]={type:"redirect",response:So(j,S,k,F,i)}}else A[k]=await Ro(N);return A}async function Va(y,v,S,C,F){let T=Et("loader",y,F,S,v,null),I=Promise.all(C.map(async N=>{if(N.matches&&N.match&&N.controller){let B=(await Et("loader",y,mt(e.history,N.path,N.controller.signal),[N.match],N.matches,N.key))[N.match.route.id];return{[N.key]:B}}else return Promise.resolve({[N.key]:{type:"error",error:q(404,{pathname:N.path})}})})),A=await T,k=(await I).reduce((N,j)=>Object.assign(N,j),{});return{loaderResults:A,fetcherResults:k}}function Or(){Ce=!0,ct.forEach((y,v)=>{ae.has(v)&&zt.add(v),je(v)})}function Ie(y,v,S={}){m.fetchers.set(y,v),ce({fetchers:new Map(m.fetchers)},{flushSync:(S&&S.flushSync)===!0})}function Oe(y,v,S,C={}){let F=We(m.matches,v);Tr(y),ce({errors:{[F.route.id]:S},fetchers:new Map(m.fetchers)},{flushSync:(C&&C.flushSync)===!0})}function Wa(y){return bt.set(y,(bt.get(y)||0)+1),ke.has(y)&&ke.delete(y),m.fetchers.get(y)||Er}function Tr(y){let v=m.fetchers.get(y);ae.has(y)&&!(v&&v.state==="loading"&&ut.has(y))&&je(y),ct.delete(y),ut.delete(y),Ae.delete(y),ke.delete(y),zt.delete(y),m.fetchers.delete(y)}function Ki(y){let v=(bt.get(y)||0)-1;v<=0?(bt.delete(y),ke.add(y)):bt.set(y,v),ce({fetchers:new Map(m.fetchers)})}function je(y){let v=ae.get(y);v&&(v.abort(),ae.delete(y))}function Ja(y){for(let v of y){let S=Wa(v),C=ze(S.data);m.fetchers.set(v,C)}}function Ya(){let y=[],v=!1;for(let S of Ae){let C=m.fetchers.get(S);$(C,"Expected fetcher: ".concat(S)),C.state==="loading"&&(Ae.delete(S),y.push(S),v=!0)}return Ja(y),v}function Ka(y){let v=[];for(let[S,C]of ut)if(C<y){let F=m.fetchers.get(S);$(F,"Expected fetcher: ".concat(S)),F.state==="loading"&&(je(S),ut.delete(S),v.push(S))}return Ja(v),v.length>0}function Gi(y,v){let S=m.blockers.get(y)||Ve;return qe.get(y)!==v&&qe.set(y,v),S}function Ga(y){m.blockers.delete(y),qe.delete(y)}function Wt(y,v){let S=m.blockers.get(y)||Ve;$(S.state==="unblocked"&&v.state==="blocked"||S.state==="blocked"&&v.state==="blocked"||S.state==="blocked"&&v.state==="proceeding"||S.state==="blocked"&&v.state==="unblocked"||S.state==="proceeding"&&v.state==="unblocked","Invalid blocker state transition: ".concat(S.state," -> ").concat(v.state));let C=new Map(m.blockers);C.set(y,v),ce({blockers:C})}function Xa({currentLocation:y,nextLocation:v,historyAction:S}){if(qe.size===0)return;qe.size>1&&G(!1,"A router only supports one blocker at a time");let C=Array.from(qe.entries()),[F,T]=C[C.length-1],I=m.blockers.get(F);if(!(I&&I.state==="proceeding")&&T({currentLocation:y,nextLocation:v,historyAction:S}))return F}function $r(y){let v=q(404,{pathname:y}),S=s||o,{matches:C,route:F}=dr(S);return{notFoundMatches:C,route:F,error:v}}function Xi(y,v,S){if(h=y,g=v,p=S||null,!b&&m.navigation===Ft){b=!0;let C=Za(m.location,m.matches);C!=null&&ce({restoreScrollPosition:C})}return()=>{h=null,g=null,p=null}}function Qa(y,v){return p&&p(y,v.map(C=>no(C,m.loaderData)))||y.key}function Qi(y,v){if(h&&g){let S=Qa(y,v);h[S]=g()}}function Za(y,v){if(h){let S=Qa(y,v),C=h[S];if(typeof C=="number")return C}return null}function Jt(y,v,S){if(u)if(y){if(Object.keys(y[0].params).length>0)return{active:!0,matches:nr(v,S,i,!0)}}else return{active:!0,matches:nr(v,S,i,!0)||[]};return{active:!1,matches:null}}async function Yt(y,v,S){if(!u)return{type:"success",matches:y};let C=y;for(;;){let F=s==null,T=s||o,I=n;try{await u({path:v,matches:C,patch:(N,j)=>{S.aborted||dn(N,j,T,I,a)}})}catch(N){return{type:"error",error:N,partialMatches:C}}finally{F&&!S.aborted&&(o=[...o])}if(S.aborted)return{type:"aborted"};let A=me(T,v,i);if(A)return{type:"success",matches:A};let k=nr(T,v,i,!0);if(!k||C.length===k.length&&C.every((N,j)=>N.route.id===k[j].route.id))return{type:"success",matches:null};C=k}}function Zi(y){n={},s=it(y,a,void 0,n)}function qi(y,v){let S=s==null;dn(y,v,s||o,n,a),S&&(o=[...o],ce({}))}return D={get basename(){return i},get future(){return c},get state(){return m},get routes(){return o},get window(){return t},initialize:Mi,subscribe:Ii,enableScrollRestoration:Xi,navigate:za,fetch:Wi,revalidate:ji,createHref:y=>e.history.createHref(y),encodeLocation:y=>e.history.encodeLocation(y),getFetcher:Wa,deleteFetcher:Ki,dispose:Hi,getBlocker:Gi,deleteBlocker:Ga,patchRoutes:qi,_internalFetchControllers:ae,_internalSetRoutes:Zi},D}function go(e,t){$(e.length>0,"You must provide a non-empty routes array to createStaticHandler");let r={},a=(t?t.basename:null)||"/",n=(t==null?void 0:t.mapRouteProperties)||mo,o=it(e,n,void 0,r);async function s(d,{requestContext:h,skipLoaderErrorBubbling:p,dataStrategy:g}={}){let b=new URL(d.url),R=d.method,_=Ue("",fe(b),null,"default"),w=me(o,_,a);if(!ia(R)&&R!=="HEAD"){let m=q(405,{method:R}),{matches:L,route:U}=dr(o);return{basename:a,location:_,matches:L,loaderData:{},actionData:null,errors:{[U.id]:m},statusCode:m.status,loaderHeaders:{},actionHeaders:{}}}else if(!w){let m=q(404,{pathname:_.pathname}),{matches:L,route:U}=dr(o);return{basename:a,location:_,matches:L,loaderData:{},actionData:null,errors:{[U.id]:m},statusCode:m.status,loaderHeaders:{},actionHeaders:{}}}let D=await l(d,_,w,h,g||null,p===!0,null);return de(D)?D:P({location:_,basename:a},D)}async function i(d,{routeId:h,requestContext:p,dataStrategy:g}={}){let b=new URL(d.url),R=d.method,_=Ue("",fe(b),null,"default"),w=me(o,_,a);if(!ia(R)&&R!=="HEAD"&&R!=="OPTIONS")throw q(405,{method:R});if(!w)throw q(404,{pathname:_.pathname});let D=h?w.find(U=>U.route.id===h):ot(w,_);if(h&&!D)throw q(403,{pathname:_.pathname,routeId:h});if(!D)throw q(404,{pathname:_.pathname});let m=await l(d,_,w,p,g||null,!1,D);if(de(m))return m;let L=m.errors?Object.values(m.errors)[0]:void 0;if(L!==void 0)throw L;if(m.actionData)return Object.values(m.actionData)[0];if(m.loaderData)return Object.values(m.loaderData)[0]}async function l(d,h,p,g,b,R,_){$(d.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(be(d.method))return await u(d,p,_||ot(p,h),g,b,R,_!=null);let w=await c(d,p,g,b,R,_);return de(w)?w:O(P({},w),{actionData:null,actionHeaders:{}})}catch(w){if(ul(w)&&de(w.result)){if(w.type==="error")throw w.result;return w.result}if(Po(w))return w;throw w}}async function u(d,h,p,g,b,R,_){let w;if(!p.route.action&&!p.route.lazy){let L=q(405,{method:d.method,pathname:new URL(d.url).pathname,routeId:p.route.id});if(_)throw L;w={type:"error",error:L}}else w=(await f("action",d,[p],h,_,g,b))[p.route.id],d.signal.aborted&&sn(d,_);if(Je(w))throw new Response(null,{status:w.response.status,headers:{Location:w.response.headers.get("Location")}});if(_){if(oe(w))throw w.error;return{matches:[p],loaderData:{},actionData:{[p.route.id]:w.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{}}}
1let D=new Request(d.url,{headers:d.headers,redirect:d.redirect,signal:d.signal});if(oe(w)){let L=R?p:We(h,p.route.id),U=await c(D,h,g,b,R,null,[L.route.id,w]);return O(P({},U),{statusCode:ue(w.error)?w.error.status:w.statusCode!=null?w.statusCode:500,actionData:null,actionHeaders:P({},w.headers?{[p.route.id]:w.headers}:{})})}let m=await c(D,h,g,b,R,null);return O(P(O(P({},m),{actionData:{[p.route.id]:w.data}}),w.statusCode?{statusCode:w.statusCode}:{}),{actionHeaders:w.headers?{[p.route.id]:w.headers}:{}})}async function c(d,h,p,g,b,R,_){let w=R!=null;if(w&&!(R!=null&&R.route.loader)&&!(R!=null&&R.route.lazy))throw q(400,{method:d.method,pathname:new URL(d.url).pathname,routeId:R==null?void 0:R.route.id});let m=(R?[R]:_&&oe(_[1])?ra(h,_[0]):h).filter(V=>V.route.loader||V.route.lazy);if(m.length===0)return{matches:h,loaderData:h.reduce((V,Q)=>Object.assign(V,{[Q.route.id]:null}),{}),errors:_&&oe(_[1])?{[_[0]]:_[1].error}:null,statusCode:200,loaderHeaders:{}};let L=await f("loader",d,m,h,w,p,g);d.signal.aborted&&sn(d,w);let U=bo(h,L,_,!0,b),H=new Set(m.map(V=>V.route.id));return h.forEach(V=>{H.has(V.route.id)||(U.loaderData[V.route.id]=null)}),O(P({},U),{matches:h})}async function f(d,h,p,g,b,R,_){let w=await _o(_||wo,d,null,h,p,g,null,r,n,R),D={};return await Promise.all(g.map(async m=>{if(!(m.route.id in w))return;let L=w[m.route.id];if(xo(L)){let U=L.result;throw So(U,h,m.route.id,g,a)}if(de(L.result)&&b)throw L;D[m.route.id]=await Ro(L)})),D}return{dataRoutes:o,query:s,queryRoute:i}}function rl(e,t,r){return O(P({},t),{statusCode:ue(r)?r.status:500,errors:{[t._deepestRenderedBoundaryId||e[0].id]:r}})}function sn(e,t){if(e.signal.reason!==void 0)throw e.signal.reason;let r=t?"queryRoute":"query";throw new Error("".concat(r,"() call aborted without an `AbortSignal.reason`: ").concat(e.method," ").concat(e.url))}function al(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function ta(e,t,r,a,n,o){let s,i;if(n){s=[];for(let u of t)if(s.push(u),u.route.id===n){i=u;break}}else s=t,i=t[t.length-1];let l=Sr(a||".",Rr(s),he(e.pathname,r)||e.pathname,o==="path");if(a==null&&(l.search=e.search,l.hash=e.hash),(a==null||a===""||a===".")&&i){let u=va(l.search);if(i.route.index&&!u)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!i.route.index&&u){let c=new URLSearchParams(l.search),f=c.getAll("index");c.delete("index"),f.filter(h=>h).forEach(h=>c.append("index",h));let d=c.toString();l.search=d?"?".concat(d):""}}return r!=="/"&&(l.pathname=l.pathname==="/"?r:Ne([r,l.pathname])),fe(l)}function ln(e,t,r){if(!r||!al(r))return{path:t};if(r.formMethod&&!ia(r.formMethod))return{path:t,error:q(405,{method:r.formMethod})};let a=()=>({path:t,error:q(400,{type:"invalid-body"})}),o=(r.formMethod||"get").toUpperCase(),s=Eo(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!be(o))return a();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((d,[h,p])=>"".concat(d).concat(h,"=").concat(p,"\n"),""):String(r.body);return{path:t,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!be(o))return a();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch(f){return a()}}}$(typeof FormData=="function","FormData is not available in this environment");let i,l;if(r.formData)i=na(r.formData),l=r.formData;else if(r.body instanceof FormData)i=na(r.body),l=r.body;else if(r.body instanceof URLSearchParams)i=r.body,l=hn(i);else if(r.body==null)i=new URLSearchParams,l=new FormData;else try{i=new URLSearchParams(r.body),l=hn(i)}catch(f){return a()}let u={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(be(u.formMethod))return{path:t,submission:u};let c=Re(t);return e&&c.search&&va(c.search)&&i.append("index",""),c.search="?".concat(i),{path:fe(c),submission:u}}function ra(e,t,r=!1){let a=e.findIndex(n=>n.route.id===t);return a>=0?e.slice(0,r?a+1:a):e}function un(e,t,r,a,n,o,s,i,l,u,c,f,d,h){let p=h?oe(h[1])?h[1].error:h[1].data:void 0,g=e.createURL(t.location),b=e.createURL(n),R=r;o&&t.errors?R=ra(r,Object.keys(t.errors)[0],!0):h&&oe(h[1])&&(R=ra(r,h[0]));let _=h?h[1].statusCode:void 0,w=_&&_>=400,D=R.filter((L,U)=>{let{route:H}=L;if(H.lazy)return!0;
1if(H.loader==null)return!1;if(o)return aa(H,t.loaderData,t.errors);if(nl(t.loaderData,t.matches[U],L))return!0;let V=t.matches[U],Q=L;return cn(L,O(P({currentUrl:g,currentParams:V.params,nextUrl:b,nextParams:Q.params},a),{actionResult:p,actionStatus:_,defaultShouldRevalidate:w?!1:s||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||ol(V,Q)}))}),m=[];return u.forEach((L,U)=>{if(o||!r.some(we=>we.route.id===L.routeId)||l.has(U))return;let H=me(f,L.path,d);if(!H){m.push({key:U,routeId:L.routeId,path:L.path,matches:null,match:null,controller:null});return}let V=t.fetchers.get(U),Q=ot(H,L.path),X=!1;c.has(U)?X=!1:i.has(U)?(i.delete(U),X=!0):V&&V.state!=="idle"&&V.data===void 0?X=s:X=cn(Q,O(P({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},a),{actionResult:p,actionStatus:_,defaultShouldRevalidate:w?!1:s})),X&&m.push({key:U,routeId:L.routeId,path:L.path,matches:H,match:Q,controller:new AbortController})}),[D,m]}function aa(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let a=t!=null&&t[e.id]!==void 0,n=r!=null&&r[e.id]!==void 0;return!a&&n?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!a&&!n}function nl(e,t,r){let a=!t||r.route.id!==t.route.id,n=!e.hasOwnProperty(r.route.id);return a||n}function ol(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function cn(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function dn(e,t,r,a,n){let o;if(e){let l=a[e];$(l,"No route found to patch children into: routeId = ".concat(e)),l.children||(l.children=[]),o=l.children}else o=r;let s=t.filter(l=>!o.some(u=>vo(l,u))),i=it(s,n,[e||"_","patch",String((o==null?void 0:o.length)||"0")],a);o.push(...i)}function vo(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,a)=>{var n;return(n=t.children)==null?void 0:n.some(o=>vo(r,o))}):!1}async function il(e,t,r){if(!e.lazy)return;let a=await e.lazy();if(!e.lazy)return;let n=r[e.id];$(n,"No route found in manifest");let o={};for(let s in a){let l=n[s]!==void 0&&s!=="hasErrorBoundary";G(!l,'Route "'.concat(n.id,'" has a static property "').concat(s,'" defined but its lazy function is also returning a value for this property. The lazy route property "').concat(s,'" will be ignored.')),!l&&!Fs.has(s)&&(o[s]=a[s])}Object.assign(n,o),Object.assign(n,O(P({},t(n)),{lazy:void 0}))}async function wo({matches:e}){let t=e.filter(a=>a.shouldLoad);return(await Promise.all(t.map(a=>a.resolve()))).reduce((a,n,o)=>Object.assign(a,{[t[o].route.id]:n}
1),{})}async function _o(e,t,r,a,n,o,s,i,l,u){let c=o.map(h=>h.route.lazy?il(h.route,l,i):void 0),f=o.map((h,p)=>{let g=c[p],b=n.some(_=>_.route.id===h.route.id),R=async _=>(_&&a.method==="GET"&&(h.route.lazy||h.route.loader)&&(b=!0),b?sl(t,a,h,g,_,u):Promise.resolve({type:"data",result:void 0}));return O(P({},h),{shouldLoad:b,resolve:R})}),d=await e({matches:f,request:a,params:o[0].params,fetcherKey:s,context:u});try{await Promise.all(c)}catch(h){}return d}async function sl(e,t,r,a,n,o){let s,i,l=u=>{let c,f=new Promise((p,g)=>c=g);i=()=>c(),t.signal.addEventListener("abort",i);let d=p=>typeof u!="function"?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'.concat(e,'" [routeId: ').concat(r.route.id,"]"))):u({request:t,params:r.params,context:o},...p!==void 0?[p]:[]),h=(async()=>{try{return{type:"data",result:await(n?n(g=>d(g)):d())}}catch(p){return{type:"error",result:p}}})();return Promise.race([h,f])};try{let u=r.route[e];if(a)if(u){let c,[f]=await Promise.all([l(u).catch(d=>{c=d}),a]);if(c!==void 0)throw c;s=f}else if(await a,u=r.route[e],u)s=await l(u);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw q(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:"data",result:void 0};else if(u)s=await l(u);else{let c=new URL(t.url),f=c.pathname+c.search;throw q(404,{pathname:f})}}catch(u){return{type:"error",result:u}}finally{i&&t.signal.removeEventListener("abort",i)}return s}async function Ro(e){var a,n,o,s;let{result:t,type:r}=e;if(de(t)){let i;try{let l=t.headers.get("Content-Type");l&&/\bapplication\/json\b/.test(l)?t.body==null?i=null:i=await t.json():i=await t.text()}catch(l){return{type:"error",error:l}}return r==="error"?{type:"error",error:new _e(t.status,t.statusText,i),statusCode:t.status,headers:t.headers}:{type:"data",data:i,statusCode:t.status,headers:t.headers}}if(r==="error"){if(oa(t)){if(t.data instanceof Error)return{type:"error",error:t.data,statusCode:(a=t.init)==null?void 0:a.status};t=new _e(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:"error",error:t,statusCode:ue(t)?t.status:void 0}}return oa(t)?{type:"data",data:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function So(e,t,r,a,n){let o=e.headers.get("Location");if($(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!ga.test(o)){let s=a.slice(0,a.findIndex(i=>i.route.id===r)+1);o=ta(new URL(t.url),s,n,o),e.headers.set("Location",o)}return e}function fn(e,t,r){if(ga.test(e)){let a=e,n=a.startsWith("//")?new URL(t.protocol+a):new URL(a),o=he(n.pathname,r)!=null;if(n.origin===t.origin&&o)return n.pathname+n.search+n.hash}return e}function mt(e,t,r,a){let n=e.createURL(Eo(t)).toString(),o={signal:r};if(a&&be(a.formMethod)){let{formMethod:s,formEncType:i}=a;o.method=s.toUpperCase(),i==="application/json"?(o.headers=new Headers({"Content-Type":i}),o.body=JSON.stringify(a.json)):i==="text/plain"?o.body=a.text:i==="application/x-www-form-urlencoded"&&a.formData?o.body=na(a.formData):o.body=a.formData}return new Request(n,o)}function na(e){let t=new URLSearchParams;for(let[r,a]of e.entries())t.append(r,typeof a=="string"?a:a.name);return t}function hn(e){let t=new FormData;for(let[r,a]of e.entries())t.append(r,a);return t}function bo(e,t,r,a=!1,n=!1){let o={},s=null,i,l=!1,u={},c=r&&oe(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let d=f.route.id,h=t[d];if($(!Je(h),"Cannot handle redirect results in processLoaderData"),oe(h)){let p=h.error;if(c!==void 0&&(p=c,c=void 0),s=s||{},n)s[d]=p;else{let g=We(e,d);s[g.route.id]==null&&(s[g.route.id]=p)}a||(o[d]=yo),l||(l=!0,i=ue(h.error)?h.error.status:500),h.headers&&(u[d]=h.headers)}else o[d]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(i=h.statusCode),h.headers&&(u[d]=h.headers)}),c!==void 0&&r&&(s={[r[0]]:c},o[r[0]]=void 0),{loaderData:o,errors:s,statusCode:i||200,loaderHeaders:u}}function mn(e,t,r,a,n,o){let{loaderData:s,errors:i}=bo(t,r,a);return n.forEach(l=>{let{key:u,match:c,controller:f}=l,d=o[u];if($(d,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(oe(d)){let h=We(e.matches,c==null?void 0:c.route.id);i&&i[h.route.id]||(i=O(P({},i),{[h.route.id]:d.error})),e.fetchers.delete(u)}else if(Je(d))$(!1,"Unhandled fetcher revalidation redirect");else{let h=ze(d.data);e.fetchers.set(u,h)}}),{loaderData:s,errors:i}}function pn(e,t,r,a){let n=Object.entries(t).filter(([,o])=>o!==yo).reduce((o,[s,i])=>(o[s]=i,o),{});for(let o of r){let s=o.route.id;if(!t.hasOwnProperty(s)&&e.hasOwnProperty(s)&&o.route.loader&&(n[s]=e[s]),a&&a.hasOwnProperty(s))break}return n}function yn(e){return e?oe(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function We(e,t){return(t?e.slice(0,e.findIndex(a=>a.route.id===t)+1):[...e]).reverse().find(a=>a.route.hasErrorBoundary===!0)||e[0]}function dr(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function q(e,{pathname:t,routeId:r,method:a,type:n,message:o}={}){let s="Unknown Server Error",i="Unknown @remix-run/router error";return e===400?(s="Bad Request",a&&t&&r?i="You made a ".concat(a,' request to "').concat(t,'" but did not provide a `loader` for route "').concat(r,'", so there is no way to handle the request.'):n==="invalid-body"&&(i="Unable to encode submission body")):e===403?(s="Forbidden",i='Route "'.concat(r,'" does not match URL "').concat(t,'"')):e===404?(s="Not Found",i='No route matches URL "'.concat(t,'"')):e===405&&(s="Method Not Allowed",a&&t&&r?i="You made a ".concat(a.toUpperCase(),' request to "').concat(t,'" but did not provide an `action` for route "').concat(r,'", so there is no way to handle the request.'):a&&(i='Invalid request method "'.concat(a.toUpperCase(),'"'))),new _e(e||500,s,new Error(i),!0)}function qt(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[a,n]=t[r];
1if(Je(n))return{key:a,result:n}}}function Eo(e){let t=typeof e=="string"?Re(e):e;return fe(O(P({},t),{hash:""}))}function ll(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function ul(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function xo(e){return de(e.result)&&ho.has(e.result.status)}function oe(e){return e.type==="error"}function Je(e){return(e&&e.type)==="redirect"}function oa(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function de(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function xr(e){return ho.has(e)}function Po(e){return de(e)&&xr(e.status)&&e.headers.has("Location")}function ia(e){return el.has(e.toUpperCase())}function be(e){return Zs.has(e.toUpperCase())}function va(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ot(e,t){let r=typeof t=="string"?Re(t).search:t.search;if(e[e.length-1].route.index&&va(r||""))return e[e.length-1];let a=uo(e);return a[a.length-1]}function gn(e){let{formMethod:t,formAction:r,formEncType:a,text:n,formData:o,json:s}=e;if(!(!t||!r||!a)){if(n!=null)return{formMethod:t,formAction:r,formEncType:a,formData:void 0,json:void 0,text:n};if(o!=null)return{formMethod:t,formAction:r,formEncType:a,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:r,formEncType:a,formData:void 0,json:s,text:void 0}}}function jr(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function cl(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Lt(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function dl(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ze(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function fl(e,t){try{let r=e.sessionStorage.getItem(po);if(r){let a=JSON.parse(r);for(let[n,o]of Object.entries(a||{}))o&&Array.isArray(o)&&t.set(n,new Set(o||[]))}}catch(r){}}function hl(e,t){if(t.size>0){let r={};for(let[a,n]of t)r[a]=[...n];try{e.sessionStorage.setItem(po,JSON.stringify(r))}catch(a){G(!1,"Failed to save applied view transitions in sessionStorage (".concat(a,")."))}}}function ml(){let e,t,r=new Promise((a,n)=>{e=async o=>{a(o);try{await r}catch(s){}},t=async o=>{n(o);try{await r}catch(s){}}});return{promise:r,resolve:e,reject:t}}var He=Pe(null);He.displayName="DataRouter";var Ke=Pe(null);Ke.displayName="DataRouterState";var Mt=Pe({isTransitioning:!1});Mt.displayName="ViewTransition";var Ht=Pe(new Map);Ht.displayName="Fetchers";var kt=Pe(null);kt.displayName="Await";var ye=Pe(null);ye.displayName="Navigation";var st=Pe(null);st.displayName="Location";var ge=Pe({outlet:null,matches:[],isDataRoute:!1});ge.displayName="Route";var wa=Pe(null);wa.displayName="RouteError";function Co(e,{relative:t}={}){$(Ge(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=z(ye),{hash:n,pathname:o,search:s}=_t(e,{relative:t}),i=o;return r!=="/"&&(i=o==="/"?r:Ne([r,o])),a.createHref({pathname:i,search:s,hash:n})}function Ge(){return z(st)!=null}function ve(){return $(Ge(),"useLocation() may be used only in the context of a <Router> component."),z(st).location}function pl(){return z(st).navigationType}function yl(e){$(Ge(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=ve();return te(()=>wt(e,so(t)),[t,e])}var Lo="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Do(e){z(ye).static||Ee(e)}function Pr(){let{isDataRoute:e}=z(ge);return e?Al():gl()}function gl(){$(Ge(),"useNavigate() may be used only in the context of a <Router> component.");let e=z(He),{basename:t,navigator:r}=z(ye),{matches:a}=z(ge),{pathname:n}=ve(),o=JSON.stringify(Rr(a)),s=xe(!1);return Do(()=>{s.current=!0}),pe((l,u={})=>
1{if(G(s.current,Lo),!s.current)return;if(typeof l=="number"){r.go(l);return}let c=Sr(l,JSON.parse(o),n,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Ne([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,o,n,e])}var No=Pe(null);function vl(){return z(No)}function Fo(e){let t=z(ge).outlet;return t&&E(No.Provider,{value:e},t)}function wl(){let{matches:e}=z(ge),t=e[e.length-1];return t?t.params:{}}function _t(e,{relative:t}={}){let{matches:r}=z(ge),{pathname:a}=ve(),n=JSON.stringify(Rr(r));return te(()=>Sr(e,JSON.parse(n),a,t==="path"),[e,n,a,t])}function Ao(e,t){return _a(e,t)}function _a(e,t,r,a){var R;$(Ge(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=z(ye),{matches:o}=z(ge),s=o[o.length-1],i=s?s.params:{},l=s?s.pathname:"/",u=s?s.pathnameBase:"/",c=s&&s.route;{let _=c&&c.path||"";Uo(l,!c||_.endsWith("*")||_.endsWith("*?"),'You rendered descendant <Routes> (or called `useRoutes()`) at "'.concat(l,'" (under <Route path="').concat(_,'">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won\'t match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="').concat(_,'"> to <Route path="').concat(_==="/"?"*":"".concat(_,"/*"),'">.'))}let f=ve(),d;if(t){let _=typeof t=="string"?Re(t):t;$(u==="/"||((R=_.pathname)==null?void 0:R.startsWith(u)),'When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "'.concat(u,'" but pathname "').concat(_.pathname,'" was given in the `location` prop.')),d=_}else d=f;let h=d.pathname||"/",p=h;if(u!=="/"){let _=u.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(_.length).join("/")}let g=me(e,{pathname:p});G(c||g!=null,'No routes matched location "'.concat(d.pathname).concat(d.search).concat(d.hash,'" ')),G(g==null||g[g.length-1].route.element!==void 0||g[g.length-1].route.Component!==void 0||g[g.length-1].route.lazy!==void 0,'Matched leaf route at location "'.concat(d.pathname).concat(d.search).concat(d.hash,'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let b=ko(g&&g.map(_=>Object.assign({},_,{params:Object.assign({},i,_.params),pathname:Ne([u,n.encodeLocation?n.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?u:Ne([u,n.encodeLocation?n.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),o,r,a);return t&&b?E(st.Provider,{value:{location:P({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:"POP"}},b):b}function _l(){let e=Ea(),t=ue(e)?"".concat(e.status," ").concat(e.statusText):e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=E(se,null,E("p",null,"💿 Hey developer 👋"),E("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E("code",{style:o},"ErrorBoundary")," or"," ",E("code",{style:o},"errorElement")," prop on your route.")),E(se,null,E("h2",null,"Unexpected Application Error!"),E("h3",{style:{fontStyle:"italic"}},t),r?E("pre",{style:n},r):null,s)}var Rl=E(_l,null),Sl=class extends pa{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?E(ge.Provider,{value:this.props.routeContext},E(wa.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function bl({routeContext:e,match:t,children:r}){let a=z(He);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),E(ge.Provider,{value:e},r)}function ko(e,t=[],r=null,a=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let n=e,o=r==null?void 0:r.errors;if(o!=null){let l=n.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id])!==void 0);$(l>=0,"Could not find a matching route for errors on route IDs: ".concat(Object.keys(o).join(","))),n=n.slice(0,Math.min(n.length,l+1))}let s=!1,i=-1;
1if(r)for(let l=0;l<n.length;l++){let u=n[l];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(i=l),u.route.id){let{loaderData:c,errors:f}=r,d=u.route.loader&&!c.hasOwnProperty(u.route.id)&&(!f||f[u.route.id]===void 0);if(u.route.lazy||d){s=!0,i>=0?n=n.slice(0,i+1):n=[n[0]];break}}}return n.reduceRight((l,u,c)=>{let f,d=!1,h=null,p=null;r&&(f=o&&u.route.id?o[u.route.id]:void 0,h=u.route.errorElement||Rl,s&&(i<0&&c===0?(Uo("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):i===c&&(d=!0,p=u.route.hydrateFallbackElement||null)));let g=t.concat(n.slice(0,c+1)),b=()=>{let R;return f?R=h:d?R=p:u.route.Component?R=E(u.route.Component,null):u.route.element?R=u.route.element:R=l,E(bl,{match:u,routeContext:{outlet:l,matches:g,isDataRoute:r!=null},children:R})};return r&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?E(Sl,{location:r.location,revalidation:r.revalidation,component:h,error:f,children:b(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):b()},null)}function Ra(e){return"".concat(e," must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.")}function Sa(e){let t=z(He);return $(t,Ra(e)),t}function Xe(e){let t=z(Ke);return $(t,Ra(e)),t}function El(e){let t=z(ge);return $(t,Ra(e)),t}function It(e){let t=El(e),r=t.matches[t.matches.length-1];return $(r.route.id,"".concat(e,' can only be used on routes that contain a unique "id"')),r.route.id}function xl(){return It("useRouteId")}function Oo(){return Xe("useNavigation").navigation}function Pl(){let e=Sa("useRevalidator"),t=Xe("useRevalidator");return te(()=>({async revalidate(){await e.router.revalidate()},state:t.revalidation}),[e.router,t.revalidation])}function ba(){let{matches:e,loaderData:t}=Xe("useMatches");return te(()=>e.map(r=>no(r,t)),[e,t])}function Cl(){let e=Xe("useLoaderData"),t=It("useLoaderData");return e.loaderData[t]}function Ll(e){return Xe("useRouteLoaderData").loaderData[e]}function Dl(){let e=Xe("useActionData"),t=It("useLoaderData");return e.actionData?e.actionData[t]:void 0}function Ea(){var a;let e=z(wa),t=Xe("useRouteError"),r=It("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[r]}function To(){let e=z(kt);return e==null?void 0:e._data}function Nl(){let e=z(kt);return e==null?void 0:e._error}var Fl=0;function $o(e){let{router:t,basename:r}=Sa("useBlocker"),a=Xe("useBlocker"),[n,o]=ie(""),s=pe(i=>{if(typeof e!="function")return!!e;if(r==="/")return e(i);let{currentLocation:l,nextLocation:u,historyAction:c}=i;return e({currentLocation:O(P({},l),{pathname:he(l.pathname,r)||l.pathname}),nextLocation:O(P({},u),{pathname:he(u.pathname,r)||u.pathname}),historyAction:c})},[r,e]);return re(()=>{let i=String(++Fl);return o(i),()=>t.deleteBlocker(i)},[t]),re(()=>{n!==""&&t.getBlocker(n,s)},[t,n,s]),n&&a.blockers.has(n)?a.blockers.get(n):Ve}function Al(){let{router:e}=Sa("useNavigate"),t=It("useNavigate"),r=xe(!1);return Do(()=>{r.current=!0}),pe(async(n,o={})=>{G(r.current,Lo),r.current&&(typeof n=="number"?e.navigate(n):await e.navigate(n,P({fromRouteId:t},o)))},[e,t])}var vn={};function Uo(e,t,r){!t&&!vn[e]&&(vn[e]=!0,G(!1,r))}var wn={};function fr(e,t){!e&&!wn[t]&&(wn[t]=!0,console.warn(t))}function lt(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&G(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:E(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&G(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:E(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&G(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:E(e.ErrorBoundary),ErrorBoundary:void 0})),t}function Mo(e,t){return Ut({basename:t==null?void 0:t.basename,future:t==null?void 0:t.future,history:to({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:lt,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation}).initialize()}var kl=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>
1{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",t(r))}})}};function Ho({router:e,flushSync:t}){let[r,a]=ie(e.state),[n,o]=ie(),[s,i]=ie({isTransitioning:!1}),[l,u]=ie(),[c,f]=ie(),[d,h]=ie(),p=xe(new Map),g=pe((w,{deletedFetchers:D,flushSync:m,viewTransitionOpts:L})=>{D.forEach(H=>p.current.delete(H)),w.fetchers.forEach((H,V)=>{H.data!==void 0&&p.current.set(V,H.data)}),fr(m===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let U=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(fr(L==null||U,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!L||!U){t&&m?t(()=>a(w)):vt(()=>a(w));return}if(t&&m){t(()=>{c&&(l&&l.resolve(),c.skipTransition()),i({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let H=e.window.document.startViewTransition(()=>{t(()=>a(w))});H.finished.finally(()=>{t(()=>{u(void 0),f(void 0),o(void 0),i({isTransitioning:!1})})}),t(()=>f(H));return}c?(l&&l.resolve(),c.skipTransition(),h({state:w,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(o(w),i({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[e.window,t,c,l]);Ee(()=>e.subscribe(g),[e,g]),re(()=>{s.isTransitioning&&!s.flushSync&&u(new kl)},[s]),re(()=>{if(l&&n&&e.window){let w=n,D=l.promise,m=e.window.document.startViewTransition(async()=>{vt(()=>a(w)),await D});m.finished.finally(()=>{u(void 0),f(void 0),o(void 0),i({isTransitioning:!1})}),f(m)}},[n,l,e.window]),re(()=>{l&&n&&r.location.key===n.location.key&&l.resolve()},[l,c,r.location,n]),re(()=>{!s.isTransitioning&&d&&(o(d.state),i({isTransitioning:!0,flushSync:!1,currentLocation:d.currentLocation,nextLocation:d.nextLocation}),h(void 0))},[s.isTransitioning,d]);let b=te(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:w=>e.navigate(w),push:(w,D,m)=>e.navigate(w,{state:D,preventScrollReset:m==null?void 0:m.preventScrollReset}),replace:(w,D,m)=>e.navigate(w,{replace:!0,state:D,preventScrollReset:m==null?void 0:m.preventScrollReset})}),[e]),R=e.basename||"/",_=te(()=>({router:e,navigator:b,static:!1,basename:R}),[e,b,R]);return E(se,null,E(He.Provider,{value:_},E(Ke.Provider,{value:r},E(Ht.Provider,{value:p.current},E(Mt.Provider,{value:s},E(Qe,{basename:R,location:r.location,navigationType:r.historyAction,navigator:b},E(Ol,{routes:e.routes,future:e.future,state:r})))))),null)}var Ol=ss(Tl);function Tl({routes:e,future:t,state:r}){return _a(e,void 0,r,t)}function $l({basename:e,children:t,initialEntries:r,initialIndex:a}){let n=xe();n.current==null&&(n.current=to({initialEntries:r,initialIndex:a,v5Compat:!0}));let o=n.current,[s,i]=ie({action:o.action,location:o.location}),l=pe(u=>{vt(()=>i(u))},[i]);return Ee(()=>o.listen(l),[o,l]),E(Qe,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}function Ul({to:e,replace:t,state:r,relative:a}){$(Ge(),"<Navigate> may be used only in the context of a <Router> component.");let{static:n}=z(ye);G(!n,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=z(ge),{pathname:s}=ve(),i=Pr(),l=Sr(e,Rr(o),s,a==="path"),u=JSON.stringify(l);return re(()=>{i(JSON.parse(u),{replace:t,state:r,relative:a})},[i,u,a,t,r]),null}function Io(e){return Fo(e.context)}function jo(e){$(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Qe({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:n,static:o=!1}){$(!Ge(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),i=te(()=>({basename:s,navigator:n,static:o,future:{}}
1),[s,n,o]);typeof r=="string"&&(r=Re(r));let{pathname:l="/",search:u="",hash:c="",state:f=null,key:d="default"}=r,h=te(()=>{let p=he(l,s);return p==null?null:{location:{pathname:p,search:u,hash:c,state:f,key:d},navigationType:a}},[s,l,u,c,f,d,a]);return G(h!=null,'<Router basename="'.concat(s,'"> is not able to match the URL "').concat(l).concat(u).concat(c,"\" because it does not start with the basename, so the <Router> won't render anything.")),h==null?null:E(ye.Provider,{value:i},E(st.Provider,{children:t,value:h}))}function Ml({children:e,location:t}){return Ao(Ot(e),t)}function Hl({children:e,errorElement:t,resolve:r}){return E(Il,{resolve:r,errorElement:t},E(jl,null,e))}var Il=class extends pa{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,a=null,n=0;if(!(r instanceof Promise))n=1,a=Promise.resolve(),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_data",{get:()=>r});else if(this.state.error){n=2;let o=this.state.error;a=Promise.reject().catch(()=>{}),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_error",{get:()=>o})}else r._tracked?(a=r,n="_error"in a?2:"_data"in a?1:0):(n=0,Object.defineProperty(r,"_tracked",{get:()=>!0}),a=r.then(o=>Object.defineProperty(r,"_data",{get:()=>o}),o=>Object.defineProperty(r,"_error",{get:()=>o})));if(n===2&&!t)throw a._error;if(n===2)return E(kt.Provider,{value:a,children:t});if(n===1)return E(kt.Provider,{value:a,children:e});throw a}};function jl({children:e}){let t=To(),r=typeof e=="function"?e(t):e;return E(se,null,r)}function Ot(e,t=[]){let r=[];return ns.forEach(e,(a,n)=>{if(!os(a))return;let o=[...t,n];if(a.type===se){r.push.apply(r,Ot(a.props.children,o));return}$(a.type===jo,"[".concat(typeof a.type=="string"?a.type:a.type.name,"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>")),$(!a.props.index||!a.props.children,"An index route cannot have child routes.");let s={id:a.props.id||o.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(s.children=Ot(a.props.children,o)),r.push(s)}),r}var zl=Ot;function Bl(e){return ko(e)}var or="get",ir="application/x-www-form-urlencoded";function Cr(e){return e!=null&&typeof e.tagName=="string"}function Vl(e){return Cr(e)&&e.tagName.toLowerCase()==="button"}function Wl(e){return Cr(e)&&e.tagName.toLowerCase()==="form"}function Jl(e){return Cr(e)&&e.tagName.toLowerCase()==="input"}function Yl(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Kl(e,t){return e.button===0&&(!t||t==="_self")&&!Yl(e)}function hr(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let a=e[r];return t.concat(Array.isArray(a)?a.map(n=>[r,n]):[[r,a]])},[]))}function Gl(e,t){let r=hr(e);return t&&t.forEach((a,n)=>{r.has(n)||t.getAll(n).forEach(o=>{r.append(n,o)})}),r}var er=null;function Xl(){if(er===null)try{new FormData(document.createElement("form"),0),er=!1}catch(e){er=!0}return er}var Ql=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zr(e){return e!=null&&!Ql.has(e)?(G(!1,'"'.concat(e,'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` and will default to "').concat(ir,'"')),null):e}function Zl(e,t){let r,a,n,o,s;if(Wl(e)){let i=e.getAttribute("action");a=i?he(i,t):null,r=e.getAttribute("method")||or,n=zr(e.getAttribute("enctype"))||ir,o=new FormData(e)}else if(Vl(e)||Jl(e)&&(e.type==="submit"||e.type==="image")){let i=e.form;if(i==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(a=l?he(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||or,n=zr(e.getAttribute("formenctype"))||zr(i.getAttribute("enctype"))||ir,o=new FormData(i,e),!Xl()){let{name:u,type:c,value:f}=e;if(c==="image"){let d=u?"".concat(u,"."):"";o.append("".concat(d,"x"),"0"),o.append("".concat(d,"y"),"0")}else u&&o.append(u,f)}}else{if(Cr(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=or,a=null,n=ir,s=e}return o&&n==="text/plain"&&(s=o,o=void 0),{action:a,method:r.toLowerCase(),encType:n,formData:o,body:s}}function Fe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function zo(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error("Error loading route module `".concat(e.module,"`, reloading page...")),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.
1isSpaMode,window.location.reload(),new Promise(()=>{})}}function ql(e,t,r){let a=e.map(o=>{var l;let s=t[o.route.id],i=r.routes[o.route.id];return[i&&i.css?i.css.map(u=>({rel:"stylesheet",href:u})):[],((l=s==null?void 0:s.links)==null?void 0:l.call(s))||[]]}).flat(2),n=nu(e,r);return Wo(a,n)}async function Bo(e,t){if(!e.css&&!t.links||!iu())return;let r=[];if(e.css&&r.push(...e.css.map(o=>({rel:"stylesheet",href:o}))),t.links&&r.push(...t.links()),r.length===0)return;let a=[];for(let o of r)!xa(o)&&o.rel==="stylesheet"&&a.push(O(P({},o),{rel:"preload",as:"style"}));let n=a.filter(o=>(!o.media||window.matchMedia(o.media).matches)&&!document.querySelector('link[rel="stylesheet"][href="'.concat(o.href,'"]')));await Promise.all(n.map(eu))}async function eu(e){return new Promise(t=>{let r=document.createElement("link");Object.assign(r,e);function a(){document.head.contains(r)&&document.head.removeChild(r)}r.onload=()=>{a(),t()},r.onerror=()=>{a(),t()},document.head.appendChild(r)})}function xa(e){return e!=null&&typeof e.page=="string"}function tu(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 ru(e,t,r){let a=await Promise.all(e.map(async n=>{let o=t.routes[n.route.id];if(o){let s=await zo(o,r);return s.links?s.links():[]}return[]}));return Wo(a.flat(1).filter(tu).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?O(P({},n),{rel:"prefetch",as:"style"}):O(P({},n),{rel:"prefetch"})))}function _n(e,t,r,a,n,o){let s=(l,u)=>r[u]?l.route.id!==r[u].route.id:!0,i=(l,u)=>{var c;return r[u].pathname!==l.pathname||((c=r[u].route.path)==null?void 0:c.endsWith("*"))&&r[u].params["*"]!==l.params["*"]};return o==="assets"?t.filter((l,u)=>s(l,u)||i(l,u)):o==="data"?t.filter((l,u)=>{var f;let c=a.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(s(l,u)||i(l,u))return!0;if(l.route.shouldRevalidate){let d=l.route.shouldRevalidate({currentUrl:new URL(n.pathname+n.search+n.hash,window.origin),currentParams:((f=r[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function au(e,t){return Vo(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let n=[a.module];return a.imports&&(n=n.concat(a.imports)),n}).flat(1))}function nu(e,t){return Vo(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let n=[a.module];return a.imports&&(n=n.concat(a.imports)),n}).flat(1))}function Vo(e){return[...new Set(e)]}function ou(e){let t={},r=Object.keys(e).sort();for(let a of r)t[a]=e[a];return t}function Wo(e,t){let r=new Set,a=new Set(t);return e.reduce((n,o)=>{if(t&&!xa(o)&&o.as==="script"&&o.href&&a.has(o.href))return n;let i=JSON.stringify(ou(o));return r.has(i)||(r.add(i),n.push({key:i,link:o})),n},[])}var tr;function iu(){if(tr!==void 0)return tr;let e=document.createElement("link");return tr=e.relList.supports("preload"),e=null,tr}var su={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},lu=/[&><\u2028\u2029]/g;function uu(e){return e.replace(lu,t=>su[t])}function Rn(e){return{__html:e}}async function Pa(e){let t={signal:e.signal};if(e.method!=="GET"){t.method=e.method;let r=e.headers.get("Content-Type");r&&/\bapplication\/json\b/.test(r)?(t.headers={"Content-Type":r},t.body=JSON.stringify(await e.json())):r&&/\btext\/plain\b/.test(r)?(t.headers={"Content-Type":r},t.body=await e.text()):r&&/\bapplication\/x-www-form-urlencoded\b/.test(r)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}var Ye=Symbol("SingleFetchRedirect");function Jo({context:e,identifier:t,reader:r,textDecoder:a,nonce:n}){if(!e.renderMeta||!e.renderMeta.didRenderScripts)return null;e.renderMeta.streamCache||(e.renderMeta.streamCache={});let{streamCache:o}=e.renderMeta,s=o[t];if(s||(s=o[t]=r.read().then(c=>{o[t].result={done:c.done,value:a.decode(c.value,{stream:!0})}}).catch(c=>{o[t].error=c})),s.error)throw s.error;if(s.result===void 0)throw s;let{done:i,value:l}=s.result,u=l?E("script",{nonce:n,dangerouslySetInnerHTML:{__html:"window.__reactRouterContext.streamController.enqueue(".concat(uu(JSON.stringify(l)),");")}}):null;return i?E(se,null,u,E("script",{nonce:n,dangerouslySetInnerHTML:{__html:"window.__reactRouterContext.streamController.close();"}})):E(se,null,u,E(On,null,E(Jo,{context:e,identifier:t+1,reader:r,textDecoder:a,nonce:n})))}function Yo(e,t,r){return async({request:a,matches:n,fetcherKey:o})=>a.method!=="GET"?cu(a,n):o?fu(a,n):du(e,t,r(),a,n)}async function cu(e,t){let r=t.find(o=>o.shouldLoad);Fe(r,"No action match found");let a,n=await r.resolve(async o=>await o(async()=>{let i=Lr(e.url),l=await Pa(e),{data:u,status:c}=await Ca(i,l);return a=c,sa(u,r.route.id)}));return de(n.result)||ue(n.result)?{[r.route.id]:n}:{[r.route.id]:{type:n.type,result:co(n.result,a)}}}async function du(e,t,r,a,n){let o=new Set,s=!1,i=n.map(()=>Sn()),l=Promise.all(i.map(p=>p.promise)),u=Sn(),c=Go(Lr(a.url)),f=await Pa(a),d={},h=Promise.all(n.map(async(p,g)=>p.resolve(async b=>{var _;i[g].resolve();let R=e.routes[p.route.id];if(!p.shouldLoad){if(!r.state.initialized)return;if(p.route.id in r.state.loaderData&&R&&R.hasLoader&&((_=t[p.route.id])!=null&&_.shouldRevalidate)){s=!0;return}}
1if(R&&R.hasClientLoader){R.hasLoader&&(s=!0);try{let w=await Ko(b,c,f,p.route.id);d[p.route.id]={type:"data",result:w}}catch(w){d[p.route.id]={type:"error",result:w}}return}R&&R.hasLoader&&o.add(p.route.id);try{let w=await b(async()=>{let D=await u.promise;return Xo(D,p.route.id)});d[p.route.id]={type:"data",result:w}}catch(w){d[p.route.id]={type:"error",result:w}}})));if(await l,(!r.state.initialized||o.size===0)&&!window.__reactRouterHdrActive)u.resolve({});else try{s&&o.size>0&&c.searchParams.set("_routes",n.filter(g=>o.has(g.route.id)).map(g=>g.route.id).join(","));let p=await Ca(c,f);u.resolve(p.data)}catch(p){u.reject(p)}return await h,d}async function fu(e,t){let r=t.find(n=>n.shouldLoad);Fe(r,"No fetcher match found");let a=await r.resolve(async n=>{let o=Go(Lr(e.url)),s=await Pa(e);return Ko(n,o,s,r.route.id)});return{[r.route.id]:a}}function Ko(e,t,r,a){return e(async()=>{let n=new URL(t);n.searchParams.set("_routes",a);let{data:o}=await Ca(n,r);return Xo(o,a)})}function Go(e){let t=e.searchParams.getAll("index");e.searchParams.delete("index");let r=[];for(let a of t)a&&r.push(a);for(let a of r)e.searchParams.append("index",a);return e}function Lr(e){let t=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t.pathname==="/"?t.pathname="_root.data":t.pathname="".concat(t.pathname.replace(/\/$/,""),".data"),t}async function Ca(e,t){let r=await fetch(e,t);if(r.status===404&&!r.headers.has("X-Remix-Response"))throw new _e(404,"Not Found",!0);Fe(r.body,"No response body to decode");try{let a=await Dr(r.body,window);return{status:r.status,data:a.value}}catch(a){throw new Error("Unable to decode turbo-stream response")}}function Dr(e,t){return hs(e,{plugins:[(r,...a)=>{if(r==="SanitizedError"){let[n,o,s]=a,i=Error;n&&n in t&&typeof t[n]=="function"&&(i=t[n]);let l=new i(o);return l.stack=s,{value:l}}if(r==="ErrorResponse"){let[n,o,s]=a;return{value:new _e(o,s,n)}}if(r==="SingleFetchRedirect")return{value:{[Ye]:a[0]}};if(r==="SingleFetchClassInstance")return{value:a[0]};if(r==="SingleFetchFallback")return{value:void 0}}]})}function Xo(e,t){let r=e[Ye];return r?sa(r,t):e[t]!==void 0?sa(e[t],t):null}function sa(e,t){if("error"in e)throw e.error;if("redirect"in e){let r={};throw e.revalidate&&(r["X-Remix-Revalidate"]="yes"),e.reload&&(r["X-Remix-Reload-Document"]="yes"),e.replace&&(r["X-Remix-Replace"]="yes"),br(e.redirect,{status:e.status,headers:r})}else{if("data"in e)return e.data;throw new Error('No response found for routeId "'.concat(t,'"'))}}function Sn(){let e,t,r=new Promise((a,n)=>{e=async o=>{a(o);try{await r}catch(s){}},t=async o=>{n(o);try{await r}catch(s){}}});return{promise:r,resolve:e,reject:t}}var La=class extends pa{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||null,location:e.location}:{error:e.error||t.error,location:t.location}}render(){return this.state.error?E(Qo,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function Qo({error:e,isOutsideRemixApp:t}){console.error(e);let r=E("script",{dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://remix.run/guides/errors for more information."\n        );\n      '}});if(ue(e))return E(la,{title:"Unhandled Thrown Response!"},E("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);let a;if(e instanceof Error)a=e;else{let n=e==null?"Unknown Error":typeof e=="object"&&"toString"in e?e.toString():JSON.stringify(e);a=new Error(n)}return E(la,{title:"Application Error!",isOutsideRemixApp:t},E("h1",{style:{fontSize:"24px"}},"Application Error"),E("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},a.stack),r)}function la({title:e,renderScripts:t,isOutsideRemixApp:r,children:a}){var o;let{routeModules:n}=Rt();return(o=n.root)!=null&&o.Layout&&!r?a:E("html",{lang:"en"},E("head",null,E("meta",{charSet:"utf-8"}),E("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),E("title",null,e)),E("body",null,E("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},a,t?E(ii,null):null)))}function hu(){return E(la,{title:"Loading...",renderScripts:!0},E("script",{dangerouslySetInnerHTML:{__html:'\n              console.log(\n                "💿 Hey developer 👋. You can provide a way better UX than this " +\n                "when your app is loading JS modules and/or running `clientLoader` " +\n                "functions. Check out https://remix.run/route/hydrate-fallback " +\n                "for more information."\n              );\n            '}}))}function Da(e){let t={};return Object.values(e).forEach(r=>{if(r){let a=r.parentId||"";t[a]||(t[a]=[]),t[a].push(r)}}),t}function Zo(e,t,r){let a=ti(t),n=t.HydrateFallback&&(!r||e.id==="root")?t.HydrateFallback:e.id==="root"?hu:void 0,o=t.ErrorBoundary?t.ErrorBoundary:e.id==="root"?()=>E(Qo,{error:Ea()}):void 0;return e.id==="root"&&t.Layout?P(P(P({},a?{element:E(t.Layout,null,E(a,null))}:{Component:a}),o?{errorElement:E(t.Layout,null,E(o,null))}:{ErrorBoundary:o}),n?{hydrateFallbackElement:E(t.Layout,null,E(n,null))}:{HydrateFallback:n}):{Component:a,ErrorBoundary:o,HydrateFallback:n}}function qo(e,t,r,a,n="",o=Da(e),s=Promise.resolve({Component:()=>null})){return(o[n]||[]).map(i=>{let l=t[i.id];Fe(l,"No `routeModule` available to create server routes");let u=O(P({},Zo(i,l,a)),{caseSensitive:i.caseSensitive,id:i.id,index:i.index,path:i.path,handle:l.handle,lazy:a?()=>s:void 0,loader:i.hasLoader||i.hasClientLoader?()=>null:void 0}),c=qo(e,t,r,a,i.id,o,s);return c.length>0&&(u.children=c),u})}function ei(e,t,r,a,n,o){return jt(t,r,a,o,"",Da(t),e)}function rr(e,t,r){if(r){let o=e==="action"?"serverAction()":"serverLoader()",s="You cannot call ".concat(o,' in SPA Mode (routeId: "').concat(t.id,'")');throw console.error(s),new _e(400,"Bad Request",new Error(s),!0)}let a=e==="action"?"serverAction()":"serverLoader()",n="You are trying to call ".concat(a," on a route that does not have a server ").concat(e,' 
1(routeId: "').concat(t.id,'")');if(e==="loader"&&!t.hasLoader||e==="action"&&!t.hasAction)throw console.error(n),new _e(400,"Bad Request",new Error(n),!0)}function Br(e,t){let r=e==="clientAction"?"a":"an",a='Route "'.concat(t,'" does not have ').concat(r," ").concat(e,", but you are trying to submit to it. To fix this, please add ").concat(r," `").concat(e,"` function to the route");throw console.error(a),new _e(405,"Method Not Allowed",new Error(a),!0)}function jt(e,t,r,a,n="",o=Da(e),s){return(o[n]||[]).map(i=>{var g,b,R;let l=t[i.id];function u(_){return Fe(typeof _=="function","No single fetch function available for route handler"),_()}function c(_){return i.hasLoader?u(_):Promise.resolve(null)}function f(_){if(!i.hasAction)throw Br("action",i.id);return u(_)}async function d(_){let w=t[i.id],D=w?Bo(i,w):Promise.resolve();try{return _()}finally{await D}}let h={id:i.id,index:i.index,path:i.path};if(l){Object.assign(h,O(P(P({},h),Zo(i,l,a)),{handle:l.handle,shouldRevalidate:bn(l,i.id,s)}));let _=r&&r.loaderData&&i.id in r.loaderData,w=_?(g=r==null?void 0:r.loaderData)==null?void 0:g[i.id]:void 0,D=r&&r.errors&&i.id in r.errors,m=D?(b=r==null?void 0:r.errors)==null?void 0:b[i.id]:void 0,L=s==null&&(((R=l.clientLoader)==null?void 0:R.hydrate)===!0||!i.hasLoader);h.loader=async({request:U,params:H},V)=>{try{return await d(async()=>(Fe(l,"No `routeModule` available for critical-route loader"),l.clientLoader?l.clientLoader({request:U,params:H,async serverLoader(){if
1(rr("loader",i,a),L){if(_)return w;if(D)throw m}return c(V)}}):a?null:c(V)))}finally{L=!1}},h.loader.hydrate=Nr(i,l,a),h.action=({request:U,params:H},V)=>d(async()=>{if(Fe(l,"No `routeModule` available for critical-route action"),!l.clientAction){if(a)throw Br("clientAction",i.id);return f(V)}return l.clientAction({request:U,params:H,async serverAction(){return rr("action",i,a),f(V)}})})}else i.hasClientLoader||(h.loader=({request:_},w)=>d(()=>a?Promise.resolve(null):c(w))),i.hasClientAction||(h.action=({request:_},w)=>d(()=>{if(a)throw Br("clientAction",i.id);return f(w)})),h.lazy=async()=>{let _=await pu(i,t),w=P({},_);if(_.clientLoader){let D=_.clientLoader;w.loader=(m,L)=>D(O(P({},m),{async serverLoader(){return rr("loader",i,a),c(L)}}))}if(_.clientAction){let D=_.clientAction;w.action=(m,L)=>D(O(P({},m),{async serverAction(){return rr("action",i,a),f(L)}}))}return O(P(P({},w.loader?{loader:w.loader}:{}),w.action?{action:w.action}:{}),{hasErrorBoundary:w.hasErrorBoundary,shouldRevalidate:bn(w,i.id,s),handle:w.handle,Component:w.Component,ErrorBoundary:w.ErrorBoundary})};let p=jt(e,t,r,a,i.id,o,s);return p.length>0&&(h.children=p),h})}function bn(e,t,r){if(r)return mu(t,e.shouldRevalidate,r);if(e.shouldRevalidate){let a=e.shouldRevalidate;return n=>a(O(P({},n),{defaultShouldRevalidate:!0}))}return e.shouldRevalidate}function mu(e,t,r){let a=!1;return n=>a?t?t(n):n.defaultShouldRevalidate:(a=!0,r.has(e))}async function pu(e,t){let r=await zo(e,t);return await Bo(e,r),{Component:ti(r),ErrorBoundary:r.ErrorBoundary,clientAction:r.clientAction,clientLoader:r.clientLoader,handle:r.handle,links:r.links,meta:r.meta,shouldRevalidate:r.shouldRevalidate}}function ti(e){if(e.default==null)return;if(!(typeof e.default=="object"&&Object.keys(e.default).length===0))return e.default}function Nr(e,t,r){return r&&e.id!=="root"||t.clientLoader!=null&&(t.clientLoader.hydrate===!0||e.hasLoader!==!0)}var sr=new Set,yu=1e3,mr=new Set,gu=7680;function Na(e){return!e}function vu(e,t){let r=new Set(t.state.matches.map(s=>s.route.id)),a=t.state.location.pathname.split("/").filter(Boolean),n=["/"];for(a.pop();a.length>0;)n.push("/".concat(a.join("/"))),a.pop();n.forEach(s=>{let i=me(t.routes,s,t.basename);i&&i.forEach(l=>r.add(l.route.id))});let o=[...r].reduce((s,i)=>Object.assign(s,{[i]:e.routes[i]}),{});return O(P({},e),{routes:o})}function ri(e,t,r,a){if(Na(r))return async({path:n,patch:o})=>{mr.has(n)||await ni([n],e,t,r,a,o)}}function ai(e,t,r,a){re(()=>{var u;if(!Na(a)||((u=navigator.connection)==null?void 0:u.saveData)===!0)return;function n(c){let f=c.tagName==="FORM"?c.getAttribute("action"):c.getAttribute("href");if(!f)return;let d=new URL(f,window.location.origin);mr.has(d.pathname)||sr.add(d.pathname)}async function o(){let c=Array.from(sr.keys()).filter(f=>mr.has(f)?(sr.delete(f),!1):!0);if(c.length!==0)try{await ni(c,t,r,a,e.basename,e.patchRoutes)}catch(f){console.error("Failed to fetch manifest patches",f)}}
1document.body.querySelectorAll("a[data-discover], form[data-discover]").forEach(c=>n(c)),o();let s=_u(o,100);function i(c){return c.nodeType===Node.ELEMENT_NODE}let l=new MutationObserver(c=>{let f=new Set;c.forEach(d=>{[d.target,...d.addedNodes].forEach(h=>{i(h)&&((h.tagName==="A"&&h.getAttribute("data-discover")||h.tagName==="FORM"&&h.getAttribute("data-discover"))&&f.add(h),h.tagName!=="A"&&h.querySelectorAll("a[data-discover], form[data-discover]").forEach(p=>f.add(p)))})}),f.forEach(d=>n(d)),s()});return l.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-discover","href","action"]}),()=>l.disconnect()},[a,t,r,e])}async function ni(e,t,r,a,n,o){let s="".concat(n!=null?n:"/","/__manifest").replace(/\/+/g,"/"),i=new URL(s,window.location.origin);if(e.sort().forEach(h=>i.searchParams.append("p",h)),i.searchParams.set("version",t.version),i.toString().length>gu){sr.clear();return}let l=await fetch(i);if(l.ok){if(l.status>=400)throw new Error(await l.text())}else throw new Error("".concat(l.status," ").concat(l.statusText));let u=await l.json(),c=new Set(Object.keys(t.routes)),f=Object.values(u).reduce((h,p)=>(p&&!c.has(p.id)&&(h[p.id]=p),h),{});Object.assign(t.routes,f),e.forEach(h=>wu(h,mr));let d=new Set;Object.values(f).forEach(h=>{h&&(!h.parentId||!f[h.parentId])&&d.add(h.parentId)}),d.forEach(h=>o(h||null,jt(f,r,null,a,h)))}function wu(e,t){if(t.size>=yu){let r=t.values().next().value;t.delete(r)}t.add(e)}function _u(e,t){let r;return(...a)=>{window.clearTimeout(r),r=window.setTimeout(()=>e(...a),t)}}function oi(){let e=z(He);return Fe(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Fr(){let e=z(Ke);return Fe(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ze=Pe(void 0);Ze.displayName="FrameworkContext";function Rt(){let e=z(Ze);return Fe(e,"You must render this element inside a <HydratedRouter> element"),e}function Ru(e,t){let r=z(Ze),[a,n]=ie(!1),[o,s]=ie(!1),{onFocus:i,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:f}=t,d=xe(null);re(()=>{if(e==="render"&&s(!0),e==="viewport"){let g=R=>{R.forEach(_=>{s(_.isIntersecting)})},b=new IntersectionObserver(g,{threshold:.5});return d.current&&b.observe(d.current),()=>{b.disconnect()}}},[e]),re(()=>{if(a){let g=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(g)}}},[a]);let h=()=>{n(!0)},p=()=>{n(!1),s(!1)};return r?e!=="intent"?[o,d,{}]:[o,d,{onFocus:Dt(i,h),onBlur:Dt(l,p),onMouseEnter:Dt(u,h),onMouseLeave:Dt(c,p),onTouchStart:Dt(f,h)}]:[!1,d,{}]}function Dt(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Fa(e,t,r){if(r&&!lr)return[e[0]];if(t){let a=e.findIndex(n=>t[n.route.id]!==void 0);return e.slice(0,a+1)}return e}function Su(){let{isSpaMode:e,manifest:t,routeModules:r,criticalCss:a}=Rt(),{errors:n,matches:o}=Fr(),s=Fa(o,n,e),i=te(()=>ql(s,r,t),[s,r,t]);return E(se,null,a?E("style",{dangerouslySetInnerHTML:{__html:a}}):null,i.map(({key:l,link:u})=>xa(u)?E(Aa,P({key:l},u)):E("link",P({key:l},u))))}function Aa(r){var a=r,{page:e}=a,t=$e(a,["page"]);let{router:n}=oi(),o=te(()=>me(n.routes,e,n.basename),[n.routes,e,n.basename]);return o?E(Eu,P({page:e,matches:o},t)):null}function bu(e){let{manifest:t,routeModules:r}=Rt(),[a,n]=ie([]);return re(()=>{let o=!1;return ru(e,t,r).then(s=>{o||n(s)}),()=>{o=!0}},[e,t,r]),a}function Eu(a){var n=a,{page:e,matches:t}=n,r=$e(n,["page","matches"]);let o=ve(),{manifest:s,routeModules:i}=Rt(),{loaderData:l,matches:u}=Fr(),c=te(()=>_n(e,t,u,s,o,"data"),[e,t,u,s,o]),f=te(()=>_n(e,t,u,s,o,"assets"),[e,t,u,s,o]),d=te(()=>{if(e===o.pathname+o.search+o.hash)return[];let g=new Set,b=!1;if(t.forEach(_=>{var D;let w=s.routes[_.route.id];!w||!w.hasLoader||(!c.some(m=>m.route.id===_.route.id)&&_.route.id in l&&((D=i[_.route.id])!=null&&D.shouldRevalidate)||w.hasClientLoader?b=!0:g.add(_.route.id))}),g.size===0)return[];let R=Lr(e);return b&&g.size>0&&R.searchParams.set("_routes",t.filter(_=>g.has(_.route.id)).map(_=>_.route.id).join(",")),[R.pathname+R.search]},[l,o,s,c,t,e,i]),h=te(()=>au(f,s),[f,s]),p=bu(f);return E(se,null,d.map(g=>E("link",P({key:g,rel:"prefetch",as:"fetch",href:g},r))),h.map(g=>E("link",P({key:g,rel:"modulepreload",href:g},r))),p.map(({key:g,link:b})=>E("link",P({key:g},b))))}
1function xu(){let{isSpaMode:e,routeModules:t}=Rt(),{errors:r,matches:a,loaderData:n}=Fr(),o=ve(),s=Fa(a,r,e),i=null;r&&(i=r[s[s.length-1].route.id]);let l=[],u=null,c=[];for(let f=0;f<s.length;f++){let d=s[f],h=d.route.id,p=n[h],g=d.params,b=t[h],R=[],_={id:h,data:p,meta:[],params:d.params,pathname:d.pathname,handle:d.route.handle,error:i};if(c[f]=_,b!=null&&b.meta?R=typeof b.meta=="function"?b.meta({data:p,params:g,location:o,matches:c,error:i}):Array.isArray(b.meta)?[...b.meta]:b.meta:u&&(R=[...u]),R=R||[],!Array.isArray(R))throw new Error("The route at "+d.route.path+" returns an invalid value. All route meta functions must return an array of meta objects.\n\nTo reference the meta function API, see https://remix.run/route/meta");_.meta=R,c[f]=_,l=[...R],u=l}return E(se,null,l.flat().map(f=>{var h;if(!f)return null;if("tagName"in f){let d=f,{tagName:p}=d,g=$e(d,["tagName"]);return Pu(p)?E(p,P({key:JSON.stringify(g)},g)):(console.warn("A meta object uses an invalid tagName: ".concat(p,". Expected either 'link' or 'meta'")),null)}if("title"in f)return E("title",{key:"title"},String(f.title));if("charset"in f&&((h=f.charSet)!=null||(f.charSet=f.charset),delete f.charset),"charSet"in f&&f.charSet!=null)return typeof f.charSet=="string"?E("meta",{key:"charSet",charSet:f.charSet}):null;if("script:ld+json"in f)try{let p=JSON.stringify(f["script:ld+json"]);return E("script",{key:"script:ld+json:".concat(p),type:"application/ld+json",dangerouslySetInnerHTML:{__html:p}})}catch(p){return null}return E("meta",P({key:JSON.stringify(f)},f))}))}function Pu(e){return typeof e=="string"&&/^(meta|link)$/.test(e)}var lr=!1;function ii(e){let{manifest:t,serverHandoffString:r,isSpaMode:a,renderMeta:n}=Rt(),{router:o,static:s,staticContext:i}=oi(),{matches:l}=Fr(),u=Na(a);n&&(n.didRenderScripts=!0);let c=Fa(l,null,a);re(()=>{lr=!0},[]);let f=te(()=>{var R;let g=i?"window.__reactRouterContext = ".concat(r,";").concat("window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());"):" ",b=s?"".concat((R=t.hmr)!=null&&R.runtime?"import ".concat(JSON.stringify(t.hmr.runtime),";"):"").concat(u?"":"import ".concat(JSON.stringify(t.url)),";\n").concat(c.map((_,w)=>"import * as route".concat(w," from ").concat(JSON.stringify(t.routes[_.route.id].module),";")).join("\n"),"\n  ").concat(u?"window.__reactRouterManifest = ".concat(JSON.stringify(vu(t,o),null,2),";"):"","\n  window.__reactRouterRouteModules = {").concat(c.map((_,w)=>"".concat(JSON.stringify(_.route.id),":route").concat(w)).join(","),"};\n\nimport(").concat(JSON.stringify(t.entry.module),");"):" ";return E(se,null,E("script",O(P({},e),{suppressHydrationWarning:!0,dangerouslySetInnerHTML:Rn(g),type:void 0})),E("script",O(P({},e),{suppressHydrationWarning:!0,dangerouslySetInnerHTML:Rn(b),type:"module",async:!0})))},[]),d=c.map(p=>{let g=t.routes[p.route.id];return g?(g.imports||[]).concat([g.module]):[]}).flat(1),h=lr?[]:t.entry.imports.concat(d);return lr?null:E(se,null,u?null:E("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin}),E("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin}),Cu(h).map(p=>E("link",{key:p,rel:"modulepreload",href:p,crossOrigin:e.crossOrigin})),f)}function Cu(e){return[...new Set(e)]}function Lu(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var si=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{si&&(window.__reactRouterVersion="7.1.1")}catch(e){}function Du(e,t){return Ut({basename:t==null?void 0:t.basename,future:t==null?void 0:t.future,history:_r({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||li(),routes:e,mapRouteProperties:lt,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function Nu(e,t){return Ut({basename:t==null?void 0:t.basename,future:t==null?void 0:t.future,history:ro({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||li(),routes:e,mapRouteProperties:lt,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function li(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e=O(P({},e),{errors:Fu(e.errors)})),e}function Fu(e){if(!e)return null;let t=Object.entries(e),r={};for(let[a,n]of t)if(n&&n.__type==="RouteErrorResponse")r[a]=new _e(n.status,n.statusText,n.data,n.internal===!0);else if(n&&n.__type==="Error"){if(n.__subType){let o=window[n.__subType];if(typeof o=="function")try{let s=new o(n.message);s.stack="",r[a]=s}catch(s){}}if(r[a]==null){let o=new Error(n.message);o.stack="",r[a]=o}}else r[a]=n;return r}function Au({basename:e,children:t,window:r}){let a=xe();a.current==null&&(a.current=_r({window:r,v5Compat:!0}));let n=a.current,[o,s]=ie({action:n.action,location:n.location}),i=pe(l=>{vt(()=>s(l))},[s]);return Ee(()=>n.listen(i),[n,i]),E(Qe,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:n})}function ku({basename:e,children:t,window:r}){let a=xe();a.current==null&&(a.current=ro({window:r,v5Compat:!0}));let n=a.current,[o,s]=ie({action:n.action,location:n.location}),i=pe(l=>{vt(()=>s(l))},[s]);return Ee(()=>n.listen(i),[n,i]),E(Qe,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:n})}function ui({basename:e,children:t,history:r}){let[a,n]=ie({action:r.action,location:r.location}),o=pe(s=>{vt(()=>n(s))},[n]);return Ee(()=>r.listen(o),[r,o]),E(Qe,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:r})}ui.displayName="unstable_HistoryRouter";var ci=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ka=gr(function(p,h){var g=p,{onClick:t,discover:r="render",prefetch:a="none",relative:n,reloadDocument:o,replace:s,state:i,target:l,to:u,preventScrollReset:c,viewTransition:f}=g,d=$e(g,["onClick","discover","prefetch","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"]);let{basename:b}=z(ye),R=typeof u=="string"&&ci.test(u),_,w=!1;if(typeof u=="string"&&R&&(_=u,si))try{let X=new URL(window.location.href),we=u.startsWith("//")?new URL(X.protocol+u):new URL(u),Ce=he(we.pathname,b);we.origin===X.origin&&Ce!=null?u=Ce+we.search+we.hash:w=!0}catch(X){G(!1,'<Link to="'.concat(u,'">
1 contains an invalid URL which will probably break when clicked - please update to a valid URL path.'))}let D=Co(u,{relative:n}),[m,L,U]=Ru(a,d),H=mi(u,{replace:s,state:i,target:l,preventScrollReset:c,relative:n,viewTransition:f});function V(X){t&&t(X),X.defaultPrevented||H(X)}let Q=E("a",O(P(P({},d),U),{href:_||D,onClick:w||o?t:V,ref:Lu(h,L),target:l,"data-discover":!R&&r==="render"?"true":void 0}));return m&&!R?E(se,null,Q,E(Aa,{page:D})):Q});ka.displayName="Link";var di=gr(function(f,c){var d=f,{"aria-current":t="page",caseSensitive:r=!1,className:a="",end:n=!1,style:o,to:s,viewTransition:i,children:l}=d,u=$e(d,["aria-current","caseSensitive","className","end","style","to","viewTransition","children"]);let h=_t(s,{relative:u.relative}),p=ve(),g=z(Ke),{navigator:b,basename:R}=z(ye),_=g!=null&&gi(h)&&i===!0,w=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,D=p.pathname,m=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(D=D.toLowerCase(),m=m?m.toLowerCase():null,w=w.toLowerCase()),m&&R&&(m=he(m,R)||m);const L=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let U=D===w||!n&&D.startsWith(w)&&D.charAt(L)==="/",H=m!=null&&(m===w||!n&&m.startsWith(w)&&m.charAt(w.length)==="/"),V={isActive:U,isPending:H,isTransitioning:_},Q=U?t:void 0,X;typeof a=="function"?X=a(V):X=[a,U?"active":null,H?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let we=typeof o=="function"?o(V):o;return E(ka,O(P({},u),{"aria-current":Q,className:X,ref:c,style:we,to:s,viewTransition:i}),typeof l=="function"?l(V):l)});di.displayName="NavLink";var Oa=gr((p,h)=>{var g=p,{discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:n,state:o,method:s=or,action:i,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:f}=g,d=$e(g,["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"]);let b=$a(),R=pi(i,{relative:u}),_=s.toLowerCase()==="get"?"get":"post",w=typeof i=="string"&&ci.test(i);return E("form",O(P({ref:h,method:_,action:R,onSubmit:a?l:m=>{if(l&&l(m),m.defaultPrevented)return;m.preventDefault();let L=m.nativeEvent.submitter,U=(L==null?void 0:L.getAttribute("formmethod"))||s;b(L||m.currentTarget,{fetcherKey:t,method:U,navigate:r,replace:n,state:o,relative:u,preventScrollReset:c,viewTransition:f})}},d),{"data-discover":!w&&e==="render"?"true":void 0}))});Oa.displayName="Form";function fi(a){var n=a,{getKey:e,storageKey:t}=n,r=$e(n,["getKey","storageKey"]);let o=z(Ze),{basename:s}=z(ye),i=ve(),l=ba();yi({getKey:e,storageKey:t});let u=te(()=>{if(!o||!e)return null;let f=ca(i,l,s,e);return f!==i.key?f:null},[]);if(!o||o.isSpaMode)return null;let c=((f,d)=>{if(!window.history.state||!window.history.state.key){let h=Math.random().toString(32).slice(2);window.history.replaceState({key:h},"")}try{let p=JSON.parse(sessionStorage.getItem(f)||"{}")[d||window.history.state.key];typeof p=="number"&&window.scrollTo(0,p)}catch(h){console.error(h),sessionStorage.removeItem(f)}}).toString();return E("script",O(P({},r),{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"(".concat(c,")(").concat(JSON.stringify(t||ua),", ").concat(JSON.stringify(u),")")}}))}fi.displayName="ScrollRestoration";function hi(e){return"".concat(e," must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.")}function Ar(e){let t=z(He);return $(t,hi(e)),t}function Ta(e){let t=z(Ke);return $(t,hi(e)),t}function mi(e,{target:t,replace:r,state:a,preventScrollReset:n,relative:o,viewTransition:s}={}){let i=Pr(),l=ve(),u=_t(e,{relative:o});return pe(c=>{if(Kl(c,t)){c.preventDefault();let f=r!==void 0?r:fe(l)===fe(u);i(e,{replace:f,state:a,preventScrollReset:n,relative:o,viewTransition:s})}},[l,i,u,r,a,t,e,n,o,s])}function Ou(e){G(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=xe(hr(e)),r=xe(!1),a=ve(),n=te(()=>Gl(a.search,r.current?null:t.current),[a.search]),o=Pr(),s=pe((i,l)=>{const u=hr(typeof i=="function"?i(n):i);r.current=!0,o("?"+u,l)},[o,n]);return[n,s]}var Tu=0,$u=()=>"__".concat(String(++Tu),"__");function $a(){let{router:e}=Ar("useSubmit"),{basename:t}=z(ye),r=xl();return pe(async(a,n={})=>{let{action:o,method:s,encType:i,formData:l,body:u}=Zl(a,t);if(n.navigate===!1){let c=n.fetcherKey||$u();await e.fetch(c,r,n.action||o,{preventScrollReset:n.preventScrollReset,formData:l,body:u,formMethod:n.method||s,formEncType:n.encType||i,flushSync:n.flushSync})}else await e.navigate(n.action||o,{preventScrollReset:n.preventScrollReset,formData:l,body:u,formMethod:n.method||s,formEncType:n.encType||i,replace:n.replace,state:n.state,fromRouteId:r,flushSync:n.flushSync,viewTransition:n.viewTransition})},[e,t,r])}function pi(e,{relative:t}={}){let{basename:r}=z(ye),a=z(ge);$(a,"useFormAction must be used inside a RouteContext");let[n]=a.matches.slice(-1),o=P({},_t(e||".",{relative:t})),s=ve();if(e==null){o.search=s.search;let i=new URLSearchParams(o.search),l=i.getAll("index");if(l.some(c=>
1c==="")){i.delete("index"),l.filter(f=>f).forEach(f=>i.append("index",f));let c=i.toString();o.search=c?"?".concat(c):""}}return(!e||e===".")&&n.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:Ne([r,o.pathname])),fe(o)}function Uu({key:e}={}){var b;let{router:t}=Ar("useFetcher"),r=Ta("useFetcher"),a=z(Ht),n=z(ge),o=(b=n.matches[n.matches.length-1])==null?void 0:b.route.id;$(a,"useFetcher must be used inside a FetchersContext"),$(n,"useFetcher must be used inside a RouteContext"),$(o!=null,'useFetcher can only be used on routes that contain a unique "id"');let s=is(),[i,l]=ie(e||s);e&&e!==i&&l(e),re(()=>(t.getFetcher(i),()=>t.deleteFetcher(i)),[t,i]);let u=pe(async(R,_)=>{$(o,"No routeId available for fetcher.load()"),await t.fetch(i,o,R,_)},[i,o,t]),c=$a(),f=pe(async(R,_)=>{await c(R,O(P({},_),{navigate:!1,fetcherKey:i}))},[i,c]),d=te(()=>{let R=gr((_,w)=>E(Oa,O(P({},_),{navigate:!1,fetcherKey:i,ref:w})));return R.displayName="fetcher.Form",R},[i]),h=r.fetchers.get(i)||Er,p=a.get(i);return te(()=>O(P({Form:d,submit:f,load:u},h),{data:p}),[d,f,u,h,p])}function Mu(){let e=Ta("useFetchers");return Array.from(e.fetchers.entries()).map(([t,r])=>O(P({},r),{key:t}))}var ua="react-router-scroll-positions",ar={};function ca(e,t,r,a){let n=null;return a&&(r!=="/"?n=a(O(P({},e),{pathname:he(e.pathname,r)||e.pathname}),t):n=a(e,t)),n==null&&(n=e.key),n}function yi({getKey:e,storageKey:t}={}){let{router:r}=Ar("useScrollRestoration"),{restoreScrollPosition:a,preventScrollReset:n}=Ta("useScrollRestoration"),{basename:o}=z(ye),s=ve(),i=ba(),l=Oo();re(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Iu(pe(()=>{if(l.state==="idle"){let u=ca(s,i,o,e);ar[u]=window.scrollY}try{sessionStorage.setItem(t||ua,JSON.stringify(ar))}catch(u){G(!1,"Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (".concat(u,")."))}window.history.scrollRestoration="auto"},[l.state,e,o,s,i,t])),typeof document<"u"&&(Ee(()=>{try{let u=sessionStorage.getItem(t||ua);u&&(ar=JSON.parse(u))}catch(u){}},[t]),Ee(()=>{let u=r==null?void 0:r.enableScrollRestoration(ar,()=>window.scrollY,e?(c,f)=>ca(c,f,o,e):void 0);return()=>u&&u()},[r,o,e]),Ee(()=>{if(a!==!1){if(typeof a=="number"){window.scrollTo(0,a);return}if(s.hash){let u=document.getElementById(decodeURIComponent(s.hash.slice(1)));if(u){u.scrollIntoView();return}}n!==!0&&window.scrollTo(0,0)}},[s,a,n]))}function Hu(e,t){let{capture:r}=t||{};re(()=>{let a=r!=null?{capture:r}:void 0;return window.addEventListener("beforeunload",e,a),()=>{window.removeEventListener("beforeunload",e,a)}},[e,r])}function Iu(e,t){let{capture:r}={};re(()=>{let a=r!=null?{capture:r}:void 0;return window.addEventListener("pagehide",e,a),()=>{window.removeEventListener("pagehide",e,a)}},[e,r])}function ju({when:e,message:t}){let r=$o(e);re(()=>{r.state==="blocked"&&(window.confirm(t)?setTimeout(r.proceed,0):r.reset())},[r,t]),re(()=>{r.state==="blocked"&&!e&&r.reset()},[r,e])}function gi(e,t={}){let r=z(Mt);$(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Ar("useViewTransitionState"),n=_t(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=he(r.currentLocation.pathname,a)||r.currentLocation.pathname,s=he(r.nextLocation.pathname,a)||r.nextLocation.pathname;return wt(n.pathname,s)!=null||wt(n.pathname,o)!=null}function zu({basename:e,children:t,location:r="/"}){typeof r=="string"&&(r=Re(r));let a="POP",n={pathname:r.pathname||"/",search:r.search||"",hash:r.hash||"",state:r.state!=null?r.state:null,key:r.key||"default"},o=wi();return E(Qe,{basename:e,children:t,location:n,navigationType:a,navigator:o,static:!0})}function vi({context:e,router:t,hydrate:r=!0,nonce:a}){$(t&&e,"You must provide `router` and `context` to <StaticRouterProvider>");let n={router:t,navigator:wi(),static:!0,staticContext:e,basename:e.basename||"/"},o=new Map,s="";if(r!==!1){let l={loaderData:e.loaderData,actionData:e.actionData,errors:Vu(e.errors)},u=Gu(JSON.stringify(JSON.stringify(l)));s="window.__staticRouterHydrationData = JSON.parse(".concat(u,");")}let{state:i}=n.router;return E(se,null,E(He.Provider,{value:n},E(Ke.Provider,{value:i},E(Ht.Provider,{value:o},E(Mt.Provider,{value:{isTransitioning:!1}}
1,E(Qe,{basename:n.basename,location:i.location,navigationType:i.historyAction,navigator:n.navigator,static:n.static},E(Bu,{routes:t.routes,future:t.future,state:i})))))),s?E("script",{suppressHydrationWarning:!0,nonce:a,dangerouslySetInnerHTML:{__html:s}}):null)}function Bu({routes:e,future:t,state:r}){return _a(e,void 0,r,t)}function Vu(e){if(!e)return null;let t=Object.entries(e),r={};for(let[a,n]of t)ue(n)?r[a]=O(P({},n),{__type:"RouteErrorResponse"}):n instanceof Error?r[a]=P({message:n.message,__type:"Error"},n.name!=="Error"?{__subType:n.name}:{}):r[a]=n;return r}function wi(){return{createHref:Ri,encodeLocation:Si,push(e){throw new Error("You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a `navigate(".concat(JSON.stringify(e),")` somewhere in your app."))},replace(e){throw new Error("You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a `navigate(".concat(JSON.stringify(e),", { replace: true })` somewhere in your app."))},go(e){throw new Error("You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a `navigate(".concat(e,")` somewhere in your app."))},back(){throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.")},forward(){throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.")}}}
1function Wu(e,t){return go(e,O(P({},t),{mapRouteProperties:lt}))}function _i(e,t,r={}){let a={},n=it(e,lt,void 0,a),o=t.matches.map(i=>{let l=a[i.route.id]||i.route;return O(P({},i),{route:l})}),s=i=>"You cannot use router.".concat(i,"() on the server because it is a stateless environment");return{get basename(){return t.basename},get future(){return P({},r==null?void 0:r.future)},get state(){return{historyAction:"POP",location:t.location,matches:o,loaderData:t.loaderData,actionData:t.actionData,errors:t.errors,initialized:!0,navigation:Ft,restoreScrollPosition:null,preventScrollReset:!1,revalidation:"idle",fetchers:new Map,blockers:new Map}},get routes(){return n},get window(){},initialize(){throw s("initialize")},subscribe(){throw s("subscribe")},enableScrollRestoration(){throw s("enableScrollRestoration")},navigate(){throw s("navigate")},fetch(){throw s("fetch")},revalidate(){throw s("revalidate")},createHref:Ri,encodeLocation:Si,getFetcher(){return Er},deleteFetcher(){throw s("deleteFetcher")},dispose(){throw s("dispose")},getBlocker(){return Ve},deleteBlocker(){throw s("deleteBlocker")},patchRoutes(){throw s("patchRoutes")},_internalFetchControllers:new Map,_internalSetRoutes(){throw s("_internalSetRoutes")}}}function Ri(e){return typeof e=="string"?e:fe(e)}function Si(e){let t=typeof e=="string"?e:fe(e);t=t.replace(/ $/,"%20");let r=Ju.test(t)?new URL(t):new URL(t,"http://localhost");return{pathname:r.pathname,search:r.search,hash:r.hash}}var Ju=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yu={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Ku=/[&><\u2028\u2029]/g;function Gu(e){return e.replace(Ku,t=>Yu[t])}function Xu({context:e,url:t,nonce:r}){typeof t=="string"&&(t=new URL(t));let{manifest:a,routeModules:n,criticalCss:o,serverHandoffString:s}=e,i=qo(a.routes,n,e.future,e.isSpaMode);e.staticHandlerContext.loaderData=P({},e.staticHandlerContext.loaderData);for(let u of e.staticHandlerContext.matches){let c=u.route.id,f=n[c],d=e.manifest.routes[c];f&&d&&Nr(d,f,e.isSpaMode)&&(f.HydrateFallback||!d.hasLoader)&&delete e.staticHandlerContext.loaderData[c]}let l=_i(i,e.staticHandlerContext);return E(se,null,E(Ze.Provider,{value:{manifest:a,routeModules:n,criticalCss:o,serverHandoffString:s,future:e.future,isSpaMode:e.isSpaMode,serializeError:e.serializeError,renderMeta:e.renderMeta}},E(La,{location:l.state.location},E(vi,{router:l,context:e.staticHandlerContext,hydrate:!1}))),e.serverHandoffStream?E(On,null,E(Jo,{context:e,identifier:0,reader:e.serverHandoffStream.getReader(),textDecoder:new TextDecoder,nonce:r})):null)}function Qu(e,t={}){return function({initialEntries:a,initialIndex:n,hydrationData:o,future:s}){let i=xe(),l=xe();if(i.current==null){l.current={future:{},manifest:{routes:{},entry:{imports:[],module:""},url:"",version:""},routeModules:{},isSpaMode:!1};let u=bi(it(e,c=>c),t,l.current.manifest,l.current.routeModules);i.current=Mo(u,{initialEntries:a,initialIndex:n,hydrationData:o})}return E(Ze.Provider,{value:l.current},E(Ho,{router:i.current}))}}function bi(e,t,r,a,n){return e.map(o=>{if(!o.id)throw new Error("Expected a route.id in @remix-run/testing processRoutes() function");let{loader:s,action:i}=o,l={id:o.id,path:o.path,index:o.index,Component:o.Component,HydrateFallback:o.HydrateFallback,ErrorBoundary:o.ErrorBoundary,action:i?c=>i(O(P({},c),{context:t})):void 0,loader:s?c=>s(O(P({},c),{context:t})):void 0,handle:o.handle,shouldRevalidate:o.shouldRevalidate},u={id:o.id,path:o.path,index:o.index,parentId:n,hasAction:o.action!=null,hasLoader:o.loader!=null,hasClientAction:!1,hasClientLoader:!1,hasErrorBoundary:o.ErrorBoundary!=null,module:"build/stub-path-to-module.js"};return r.routes[l.id]=u,a[o.id]={default:o.Component||Io,ErrorBoundary:o.ErrorBoundary||void 0,handle:o.handle,links:o.links,meta:o.meta,shouldRevalidate:o.shouldRevalidate},o.children&&(l.children=bi(o.children,t,r,a,l.id)),l})}var Ua=new TextEncoder,Zu=async(e,t)=>{let r=Ua.encode(e),a=await Ei(t,["sign"]),n=await crypto.subtle.sign("HMAC",a,r),o=btoa(String.fromCharCode(...new Uint8Array(n))).replace(/=+$/,"");return e+"."+o},qu=async(e,t)=>{let r=e.lastIndexOf("."),a=e.slice(0,r),n=e.slice(r+1),o=Ua.encode(a),s=await Ei(t,["verify"]),i=ec(atob(n));return await crypto.subtle.verify("HMAC",s,i,o)?a:!1},Ei=async(e,t)=>crypto.subtle.importKey("raw",Ua.encode(e),{name:"HMAC",hash:"SHA-256"},!1,t);function ec(e){let t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}var Ma=(e,t={})=>{let n=P({path:"/",sameSite:"lax"},t),{secrets:r=[]}=n,a=$e(n,["secrets"]);return ic(e,a.expires),{get name(){return e},get isSigned(){return r.length>0},get expires(){return typeof a.maxAge<"u"?new Date(Date.now()+a.maxAge*1e3):a.expires},async parse(o,s){if(!o)return null;let i=vs(o,P(P({},a),s));if(e in i){let l=i[e];return typeof l=="string"&&l!==""?await rc(l,r):""}else return null},async serialize(o,s){return Kn(e,o===""?"":await tc(o,r),P(P({},a),s))}}},Ha=e=>e!=null&&typeof e.name=="string"&&typeof e.isSigned=="boolean"&&typeof e.parse=="function"&&typeof e.serialize=="function";async function tc(e,t){let r=ac(e);return t.length>0&&(r=await Zu(r,t[0])),r}async function rc(e,t){if(t.length>0){for(let r of t){let a=await qu(e,r);if(a!==!1)return En(a)}return null}return En(e)}function ac(e){return btoa(oc(encodeURIComponent(JSON.stringify(e))))}function En(e){try{return JSON.parse(decodeURIComponent(nc(atob(e)))
1)}catch(t){return{}}}function nc(e){let t=e.toString(),r="",a=0,n,o;for(;a<t.length;)n=t.charAt(a++),/[\w*+\-./@]/.exec(n)?r+=n:(o=n.charCodeAt(0),o<256?r+="%"+xn(o,2):r+="%u"+xn(o,4).toUpperCase());return r}function xn(e,t){let r=e.toString(16);for(;r.length<t;)r="0"+r;return r}function oc(e){let t=e.toString(),r="",a=0,n,o;for(;a<t.length;){if(n=t.charAt(a++),n==="%"){if(t.charAt(a)==="u"){if(o=t.slice(a+1,a+5),/^[\da-f]{4}$/i.exec(o)){r+=String.fromCharCode(parseInt(o,16)),a+=5;continue}}else if(o=t.slice(a,a+2),/^[\da-f]{2}$/i.exec(o)){r+=String.fromCharCode(parseInt(o,16)),a+=2;continue}}r+=n}return r}function ic(e,t){fr(!t,'The "'.concat(e,'" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use `commitSession(session, { expires })` if using a session storage object, or `cookie.serialize("value", { expires })` if you\'re using the cookie directly.'))}function sc(e){return Object.keys(e).reduce((t,r)=>{let a=e[r];return a&&(t[r]=a.module),t},{})}var xi=(e=>(e.Development="development",e.Production="production",e.Test="test",e))(xi||{});function lc(e){return e==="development"||e==="production"||e==="test"}function kr(e,t){if(e instanceof Error&&t!=="development"){let r=new Error("Unexpected Server Error");return r.stack=void 0,r}return e}function pr(e,t){return Object.entries(e).reduce((r,[a,n])=>Object.assign(r,{[a]:kr(n,t)}),{})}function Pi(e,t){let r=kr(e,t);return{message:r.message,stack:r.stack}}function Pn(e,t){if(!e)return null;let r=Object.entries(e),a={};for(let[n,o]of r)if(ue(o))a[n]=O(P({},o),{__type:"RouteErrorResponse"});else if(o instanceof Error){let s=kr(o,t);a[n]=P({message:s.message,stack:s.stack,__type:"Error"},s.name!=="Error"?{__subType:s.name}:{})}else a[n]=o;return a}function da(e,t,r){let a=me(e,t,r);return a?a.map(n=>({params:n.params,pathname:n.pathname,route:n.route})):null}async function Cn(e,t){let r=await e({request:cc(uc(t.request)),params:t.params,context:t.context});if(oa(r)&&r.init&&r.init.status&&xr(r.init.status))throw new Response(null,r.init);return r}function uc(e){let t=new URL(e.url),r=t.searchParams.getAll("index");t.searchParams.delete("index");let a=[];for(let o of r)o&&a.push(o);for(let o of a)t.searchParams.append("index",o);let n={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return n.body&&(n.duplex="half"),new Request(t.href,n)}function cc(e){let t=new URL(e.url);t.searchParams.delete("_routes");let r={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return r.body&&(r.duplex="half"),new Request(t.href,r)}function At(e,t){if(e===!1||e===null||typeof e>"u")throw console.error("The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose"),new Error(t)}function Ci(e){let t={};return Object.values(e).forEach(r=>{if(r){let a=r.parentId||"";t[a]||(t[a]=[]),t[a].push(r)}}),t}function Li(e,t="",r=Ci(e)){return(r[t]||[]).map(a=>O(P({},a),{children:Li(e,a.id,r)}))}function Di(e,t,r="",a=Ci(e)){return(a[r]||[]).map(n=>{let o={hasErrorBoundary:n.id==="root"||n.module.ErrorBoundary!=null,id:n.id,path:n.path,loader:n.module.loader?async s=>{if(s.request.headers.has("X-React-Router-Prerender-Data")){const l=s.request.headers.get("X-React-Router-Prerender-Data");let u=l&&decodeURI(l);At(u,"Missing prerendered data for route");let c=new TextEncoder().encode(u),f=new ReadableStream({start(g){g.enqueue(c),g.close()}}),h=(await Dr(f,global)).value;At(h&&n.id in h,"Unable to decode prerendered data");let p=h[n.id];return At("data"in p,"Unable to process prerendered data"),p.data}return await Cn(n.module.loader,s)}:void 0,action:n.module.action?s=>Cn(n.module.action,s):void 0,handle:n.module.handle};return n.index?P({index:!0},o):P({caseSensitive:n.caseSensitive,children:Di(e,t,n.id,a)},o)})}var dc={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},fc=/[&><\u2028\u2029]/g;function hc(e){return e.replace(fc,t=>dc[t])}function Ln(e){return hc(JSON.stringify(e))}var Ni="__reactRouterDevServerHooks";function mc(e){globalThis[Ni]=e}function Dn(){return globalThis[Ni]}function Ia(e,t){let r=t.errors?t.matches.findIndex(o=>t.errors[o.route.id]):-1,a=r>=0?t.matches.slice(0,r+1):t.matches,n;if(r>=0){let{actionHeaders:o,actionData:s,loaderHeaders:i,loaderData:l}=t;t.matches.slice(r).some(u=>{let c=u.route.id;return o[c]&&(!s||!s.hasOwnProperty(c))?n=o[c]:i[c]&&!l.hasOwnProperty(c)&&(n=i[c]),n!=null})}return a.reduce((o,s,i)=>{let{id:l}=s.route,u=e.routes[l];At(u,'Route with id "'.concat(l,'" not found in build'));let c=u.module,f=t.loaderHeaders[l]||new Headers,d=t.actionHeaders[l]||new Headers,h=n!=null&&i===a.length-1,p=h&&n!==f&&n!==d;if(c.headers==null){let b=new Headers(o);return p&&nt(n,b),nt(d,b),nt(f,b),b}let g=new Headers(c.headers?typeof c.headers=="function"?c.headers({loaderHeaders:f,parentHeaders:o,actionHeaders:d,errorHeaders:h?n:void 0}):c.headers:void 0);return p&&nt(n,g),nt(d,g),nt(f,g),nt(o,g),g},new Headers)}function nt(e,t){let r=e.get("Set-Cookie");r&&Ds(r).forEach(n=>{t.append("Set-Cookie",n)})}var Tt=202;function Fi({isActionDataRequest:e,loadRouteIds:t}={}){return async({request:r,matches:a})=>{if(e&&r.method==="GET")return{};let n=t?a.filter(s=>t.includes(s.route.id)):a;return(await Promise.all(n.map(s=>s.resolve()))).reduce((s,i,l)=>Object.assign(s,{[n[l].route.id]:i}),{})}}
1async function pc(e,t,r,a,n,o,s){try{let i=new Request(n,P({method:a.method,body:a.body,headers:a.headers,signal:a.signal},a.body?{duplex:"half"}:void 0)),l=await r.query(i,{requestContext:o,skipLoaderErrorBubbling:!0,dataStrategy:Fi({isActionDataRequest:!0})});if(de(l))return{result:$t(l.status,l.headers,e.basename),headers:l.headers,status:Tt};let u=l,c=Ia(e,u);if(xr(u.statusCode)&&c.has("Location"))return{result:$t(u.statusCode,c,e.basename),headers:c,status:Tt};u.errors&&(Object.values(u.errors).forEach(d=>{(!ue(d)||d.error)&&s(d)}),u.errors=pr(u.errors,t));let f;return u.errors?f={error:Object.values(u.errors)[0]}:f={data:Object.values(u.actionData||{})[0]},{result:f,headers:c,status:u.statusCode}}catch(i){return s(i),{result:{error:i},headers:new Headers,status:500}}}async function yc(e,t,r,a,n,o,s){var i;try{let l=new Request(n,{headers:a.headers,signal:a.signal}),u=((i=new URL(a.url).searchParams.get("_routes"))==null?void 0:i.split(","))||void 0,c=await r.query(l,{requestContext:o,skipLoaderErrorBubbling:!0,dataStrategy:Fi({loadRouteIds:u})});if(de(c))return{result:{[Ye]:$t(c.status,c.headers,e.basename)},headers:c.headers,status:Tt};let f=c,d=Ia(e,f);if(xr(f.statusCode)&&d.has("Location"))return{result:{[Ye]:$t(f.statusCode,d,e.basename)},headers:d,status:Tt};f.errors&&(Object.values(f.errors).forEach(g=>{(!ue(g)||g.error)&&s(g)}),f.errors=pr(f.errors,t));let h={};return(u?f.matches.filter(g=>g.route.loader&&u.includes(g.route.id)):f.matches).forEach(g=>{let{id:b}=g.route;f.errors&&f.errors.hasOwnProperty(b)?h[b]={error:f.errors[b]}:f.loaderData.hasOwnProperty(b)&&(h[b]={data:f.loaderData[b]})}),{result:h,headers:d,status:f.statusCode}}catch(l){return s(l),{result:{root:{error:l}},headers:new Headers,status:500}}}function $t(e,t,r){let a=t.get("Location");return r&&(a=he(a,r)||a),{redirect:a,status:e,revalidate:t.has("X-Remix-Revalidate")||t.has("Set-Cookie"),reload:t.has("X-Remix-Reload-Document"),replace:t.has("X-Remix-Replace")}}function yr(e,t,r,a){let n=new AbortController,o=setTimeout(()=>n.abort(new Error("Server Timeout")),typeof r=="number"?r:4950);return t.addEventListener("abort",()=>clearTimeout(o)),ys(e,{signal:n.signal,plugins:[s=>{if(s instanceof Error){let{name:i,message:l,stack:u}=a==="production"?kr(s,a):s;return["SanitizedError",i,l,u]}if(s instanceof _e){let{data:i,status:l,statusText:u}=s;return["ErrorResponse",i,l,u]}if(s&&typeof s=="object"&&Ye in s)return["SingleFetchRedirect",s[Ye]]}],postPlugins:[s=>{if(s&&typeof s=="object")return["SingleFetchClassInstance",Object.fromEntries(Object.entries(s))]},()=>["SingleFetchFallback"]]})}function Nn(e,t){let r=Li(e.routes),a=Di(e.routes,e.future),n=lc(t)?t:"production",o=go(a,{basename:e.basename}),s=e.entry.module.handleError||((i,{request:l})=>{n!=="test"&&!l.signal.aborted&&console.error(ue(i)&&i.error?i.error:i)});return{routes:r,dataRoutes:a,serverMode:n,staticHandler:o,errorHandler:s}}var gc=(e,t)=>{let r,a,n,o,s;return async function(l,u={}){var b,R,_;if(r=typeof e=="function"?await e():e,typeof e=="function"){let w=Nn(r,t);a=w.routes,n=w.serverMode,o=w.staticHandler,s=w.errorHandler}else if(!a||!n||!o||!s){let w=Nn(r,t);a=w.routes,n=w.serverMode,o=w.staticHandler,s=w.errorHandler}let c=new URL(l.url),f={},d=w=>{var D,m;t==="development"&&((m=(D=Dn())==null?void 0:D.processRequestError)==null||m.call(D,w)),s(w,{context:u,params:f,request:l})},h="".concat((b=r.basename)!=null?b:"/","/__manifest").replace(/\/+/g,"/");if(c.pathname===h)try{return await vc(r,a,c)}catch(w){return d(w),new Response("Unknown Server Error",{status:500})}let p=da(a,c.pathname,r.basename);p&&p.length>0&&Object.assign(f,p[0].params);let g;if(c.pathname.endsWith(".data")){let w=new URL(l.url);w.pathname=w.pathname.replace(/\.data$/,"").replace(/^\/_root$/,"/");let D=da(a,w.pathname,r.basename);if(g=await wc(n,r,o,l,w,u,d),r.entry.module.handleDataRequest&&(g=await r.entry.module.handleDataRequest(g,{context:u,params:D?D[0].params:{},request:l}),Po(g))){let m=$t(g.status,g.headers,r.basename);l.method==="GET"&&(m={[Ye]:m});let L=new Headers(g.headers);return L.set("Content-Type","text/x-script"),new Response(yr(m,l.signal,r.entry.module.streamTimeout,n),{status:Tt,headers:L})}}else if(p&&p[p.length-1].route.module.default==null&&p[p.length-1].route.module.ErrorBoundary==null)g=await Rc(n,o,p.slice(-1)[0].route.id,l,u,d);else{let w=t==="development"?await((_=(R=Dn())==null?void 0:R.getCriticalCss)==null?void 0:_.call(R,r,c.pathname)):void 0;g=await _c(n,r,o,l,u,d,w)}return l.method==="HEAD"?new Response(null,{headers:g.headers,status:g.status,statusText:g.statusText}):g}};async function vc(e,t,r){let a={};if(r.searchParams.has("p")){for(let n of r.searchParams.getAll("p")){let o=da(t,n,e.basename);if(o)for(let s of o){let i=s.route.id,l=e.assets.routes[i];l&&(a[i]=l)}}return Response.json(a,{headers:{"Cache-Control":"public, max-age=31536000, immutable"}})}return new Response("Invalid Request",{status:400})}async function wc(e,t,r,a,n,o,s){let{result:i,headers:l,status:u}=a.method!=="GET"?await pc(t,e,r,a,n,o,s):await yc(t,e,r,a,n,o,s),c=new Headers(l);return c.set("X-Remix-Response","yes"),u===304?new Response(null,{status:304,headers:c}):(c.set("Content-Type","text/x-script"),new Response(yr(i,a.signal,t.entry.module.streamTimeout,e),{status:u||200,headers:c}))}async function _c(e,t,r,a,n,o,s){let i;try{i=await r.query(a,{requestContext:n})}catch(d){return o(d),new Response(null,{status:500})}if(de(i))return i;let l=Ia(t,i);if(i.statusCode===304)return new Response(null,{status:304,headers:l});
1i.errors&&(Object.values(i.errors).forEach(d=>{(!ue(d)||d.error)&&o(d)}),i.errors=pr(i.errors,e));let u={loaderData:i.loaderData,actionData:i.actionData,errors:Pn(i.errors,e)},c={manifest:t.assets,routeModules:sc(t.routes),staticHandlerContext:i,criticalCss:s,serverHandoffString:Ln({basename:t.basename,criticalCss:s,future:t.future,isSpaMode:t.isSpaMode}),serverHandoffStream:yr(u,a.signal,t.entry.module.streamTimeout,e),renderMeta:{},future:t.future,isSpaMode:t.isSpaMode,serializeError:d=>Pi(d,e)},f=t.entry.module.default;try{return await f(a,i.statusCode,l,c,n)}catch(d){o(d);let h=d;if(de(d))try{let g=await bc(d);h=new _e(d.status,d.statusText,g)}catch(g){}i=rl(r.dataRoutes,i,h),i.errors&&(i.errors=pr(i.errors,e));let p={loaderData:i.loaderData,actionData:i.actionData,errors:Pn(i.errors,e)};c=O(P({},c),{staticHandlerContext:i,serverHandoffString:Ln({basename:t.basename,future:t.future,isSpaMode:t.isSpaMode}),serverHandoffStream:yr(p,a.signal,t.entry.module.streamTimeout,e),renderMeta:{}});try{return await f(a,i.statusCode,l,c,n)}catch(g){return o(g),Ai(g,e)}}}async function Rc(e,t,r,a,n,o){try{let s=await t.queryRoute(a,{routeId:r,requestContext:n});return At(de(s),"Expected a Response to be returned from resource route handler"),s}catch(s){return de(s)?(s.headers.set("X-Remix-Catch","yes"),s):ue(s)?(s&&o(s),Sc(s,e)):(o(s),Ai(s,e))}}function Sc(e,t){return Response.json(Pi(e.error||new Error("Unexpected Server Error"),t),{status:e.status,statusText:e.statusText,headers:{"X-Remix-Error":"yes"}})}function Ai(e,t){let r="Unexpected Server Error";return t!=="production"&&(r+="\n\n".concat(String(e))),new Response(r,{status:500,headers:{"Content-Type":"text/plain"}})}function bc(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}function Vr(e){return"__flash_".concat(e,"__")}var ja=(e={},t="")=>{let r=new Map(Object.entries(e));return{get id(){return t},get data(){return Object.fromEntries(r)},has(a){return r.has(a)||r.has(Vr(a))},get(a){if(r.has(a))return r.get(a);let n=Vr(a);if(r.has(n)){let o=r.get(n);return r.delete(n),o}},set(a,n){r.set(a,n)},flash(a,n){r.set(Vr(a),n)},unset(a){r.delete(a)}}},Ec=e=>e!=null&&typeof e.id=="string"&&typeof e.data<"u"&&typeof e.has=="function"&&typeof e.get=="function"&&typeof e.set=="function"&&typeof e.flash=="function"&&typeof e.unset=="function";function ki({cookie:e,createData:t,readData:r,updateData:a,deleteData:n}){let o=Ha(e)?e:Ma((e==null?void 0:e.name)||"__session",e);return Oi(o),{async getSession(s,i){let l=s&&await o.parse(s,i),u=l&&await r(l);return ja(u||{},l||"")},async commitSession(s,i){let{id:l,data:u}=s,c=(i==null?void 0:i.maxAge)!=null?new Date(Date.now()+i.maxAge*1e3):(i==null?void 0:i.expires)!=null?i.expires:o.expires;return l?await a(l,u,c):l=await t(u,c),o.serialize(l,i)},async destroySession(s,i){return await n(s.id),o.serialize("",O(P({},i),{maxAge:void 0,expires:new Date(0)}))}}}function Oi(e){fr(e.isSigned,'The "'.concat(e.name,'" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://remix.run/utils/cookies#signing-cookies for more information.'))}function xc({cookie:e}={}){let t=Ha(e)?e:Ma((e==null?void 0:e.name)||"__session",e);return Oi(t),{async getSession(r,a){return ja(r&&await t.parse(r,a)||{})},async commitSession(r,a){let n=await t.serialize(r.data,a);if(n.length>4096)throw new Error("Cookie length will exceed browser maximum. Length: "+n.length);return n},async destroySession(r,a){return t.serialize("",O(P({},a),{maxAge:void 0,expires:new Date(0)}))}}}function Pc({cookie:e}={}){let t=new Map;return ki({cookie:e,async createData(r,a){let n=Math.random().toString(36).substring(2,10);return t.set(n,{data:r,expires:a}),n},async readData(r){if(t.has(r)){let{data:a,expires:n}=t.get(r);if(!n||n>new Date)return a;n&&t.delete(r)}return null},async updateData(r,a,n){t.set(r,{data:a,expires:n})},async deleteData(r){t.delete(r)}})}function Ti(e){if(!e)return null;let t=Object.entries(e),r={};for(let[a,n]of t)if(n&&n.__type==="RouteErrorResponse")r[a]=new _e(n.status,n.statusText,n.data,n.internal===!0);else if(n&&n.__type==="Error"){if(n.__subType){let o=window[n.__subType];if(typeof o=="function")try{let s=new o(n.message);s.stack=n.stack,r[a]=s}catch(s){}}if(r[a]==null){let o=new Error(n.message);o.stack=n.stack,r[a]=o}}else r[a]=n;return r}function $i(e){return E(Ho,P({flushSync:ls},e))}var M=null,Nt=null;function Cc(){!M&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules&&(M={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1})}function Lc(){var n;if(Cc(),!M)throw new Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<
1RouterProvider>`");let e=M;if(!M.stateDecodingPromise){let o=M.context.stream;$(o,"No stream found for single fetch decoding"),M.context.stream=void 0,M.stateDecodingPromise=Dr(o,window).then(s=>{M.context.state=s.value,e.stateDecodingPromise.value=!0}).catch(s=>{e.stateDecodingPromise.error=s})}if(M.stateDecodingPromise.error)throw M.stateDecodingPromise.error;if(!M.stateDecodingPromise.value)throw M.stateDecodingPromise;let t=jt(M.manifest.routes,M.routeModules,M.context.state,M.context.isSpaMode),r;if(!M.context.isSpaMode){r=O(P({},M.context.state),{loaderData:P({},M.context.state.loaderData)});let o=me(t,window.location,(n=window.__reactRouterContext)==null?void 0:n.basename);if(o)for(let s of o){let i=s.route.id,l=M.routeModules[i],u=M.manifest.routes[i];l&&u&&Nr(u,l,M.context.isSpaMode)&&(l.HydrateFallback||!u.hasLoader)?delete r.loaderData[i]:u&&!u.hasLoader&&(r.loaderData[i]=null)}r&&r.errors&&(r.errors=Ti(r.errors))}let a=Ut({routes:t,history:_r(),basename:M.context.basename,hydrationData:r,mapRouteProperties:lt,dataStrategy:Yo(M.manifest,M.routeModules,()=>a),patchRoutesOnNavigation:ri(M.manifest,M.routeModules,M.context.isSpaMode,M.context.basename)});return M.router=a,a.state.initialized&&(M.routerInitialized=!0,a.initialize()),a.createRoutesForHMR=ei,window.__reactRouterDataRouter=a,a}function Dc(){Nt||(Nt=Lc());let[e,t]=ie(void 0),[r,a]=ie(Nt.state.location);return Ee(()=>{M&&M.router&&!M.routerInitialized&&(M.routerInitialized=!0,M.router.initialize())},[]),Ee(()=>{if(M&&M.router)return M.router.subscribe(n=>{n.location!==r&&a(n.location)})},[r]),$(M,"ssrInfo unavailable for HydratedRouter"),ai(Nt,M.manifest,M.routeModules,M.context.isSpaMode),E(se,null,E(Ze.Provider,{value:{manifest:M.manifest,routeModules:M.routeModules,future:M.context.future,criticalCss:e,isSpaMode:M.context.isSpaMode}},E(La,{location:r},E($i,{router:Nt}))),E(se,null))}const fa=Object.freeze(Object.defineProperty({__proto__:null,Await:Hl,BrowserRouter:Au,Form:Oa,HashRouter:ku,HydratedRouter:Dc,IDLE_BLOCKER:Ve,IDLE_FETCHER:Er,IDLE_NAVIGATION:Ft,Link:ka,Links:Su,MemoryRouter:$l,Meta:xu,NavLink:di,Navigate:Ul,NavigationType:eo,Outlet:Io,PrefetchPageLinks:Aa,Route:jo,Router:Qe,RouterProvider:$i,Routes:Ml,Scripts:ii,ScrollRestoration:fi,ServerRouter:Xu,StaticRouter:zu,StaticRouterProvider:vi,UNSAFE_DataRouterContext:He,UNSAFE_DataRouterStateContext:Ke,UNSAFE_ErrorResponseImpl:_e,UNSAFE_FetchersContext:Ht,UNSAFE_FrameworkContext:Ze,UNSAFE_LocationContext:st,UNSAFE_NavigationContext:ye,UNSAFE_RemixErrorBoundary:La,UNSAFE_RouteContext:ge,UNSAFE_ServerMode:xi,UNSAFE_SingleFetchRedirectSymbol:Ye,UNSAFE_ViewTransitionContext:Mt,UNSAFE_createBrowserHistory:_r,UNSAFE_createClientRoutes:jt,UNSAFE_createClientRoutesWithHMRRevalidationOptOut:ei,UNSAFE_createRouter:Ut,UNSAFE_decodeViaTurboStream:Dr,UNSAFE_deserializeErrors:Ti,UNSAFE_getPatchRoutesOnNavigationFunction:ri,UNSAFE_getSingleFetchDataStrategy:Yo,UNSAFE_invariant:$,UNSAFE_mapRouteProperties:lt,UNSAFE_shouldHydrateRouteLoader:Nr,UNSAFE_useFogOFWarDiscovery:ai,UNSAFE_useScrollRestoration:yi,createBrowserRouter:Du,createCookie:Ma,createCookieSessionStorage:xc,createHashRouter:Nu,createMemoryRouter:Mo,createMemorySessionStorage:Pc,createPath:fe,createRequestHandler:gc,createRoutesFromChildren:Ot,createRoutesFromElements:zl,createRoutesStub:Qu,createSearchParams:hr,createSession:ja,createSessionStorage:ki,createStaticHandler:Wu,createStaticRouter:_i,data:co,generatePath:Bs,isCookie:Ha,isRouteErrorResponse:ue,isSession:Ec,matchPath:wt,matchRoutes:me,parsePath:Re,redirect:br,redirectDocument:Xs,renderMatches:Bl,replace:Qs,resolvePath:lo,unstable_HistoryRouter:ui,unstable_setDevServerHooks:mc,unstable_usePrompt:ju,useActionData:Dl,useAsyncError:Nl,useAsyncValue:To,useBeforeUnload:Hu,useBlocker:$o,useFetcher:Uu,useFetchers:Mu,useFormAction:pi,useHref:Co,useInRouterContext:Ge,useLinkClickHandler:mi,useLoaderData:Cl,useLocation:ve,useMatch:yl,useMatches:ba,useNavigate:Pr,useNavigation:Oo,useNavigationType:pl,useOutlet:Fo,useOutletContext:vl,useParams:wl,useResolvedPath:_t,useRevalidator:Pl,useRouteError:Ea,useRouteLoaderData:Ll,useRoutes:Ao,useSearchParams:Ou,useSubmit:$a,useViewTransitionState:gi},Symbol.toStringTag,{value:"Module"})),x=fa,Nc=x.HydratedRouter,Fc=x.RouterProvider,Ac=x.Await,kc=x.BrowserRouter,Oc=x.Form,Tc=x.HashRouter,$c=x.IDLE_BLOCKER,Uc=x.IDLE_FETCHER,Mc=x.IDLE_NAVIGATION,Hc=x.Link,Ic=x.Links,jc=x.MemoryRouter,zc=x.Meta,Bc=x.NavLink,Vc=x.Navigate,Wc=x.NavigationType,Jc=x.Outlet,Yc=x.PrefetchPageLinks,Kc=x.Route,Gc=x.Router,Xc=x.Routes,Qc=x.Scripts,Zc=x.ScrollRestoration,qc=x.ServerRouter,ed=x.StaticRouter,td=x.StaticRouterProvider,rd=x.UNSAFE_DataRouterContext,ad=x.UNSAFE_DataRouterStateContext,nd=x.UNSAFE_ErrorResponseImpl,od=x.UNSAFE_FetchersContext,id=x.UNSAFE_FrameworkContext,sd=x.UNSAFE_LocationContext,ld=x.UNSAFE_NavigationContext,ud=x.UNSAFE_RemixErrorBoundary,cd=x.UNSAFE_RouteContext,dd=x.UNSAFE_ServerMode,fd=x.UNSAFE_SingleFetchRedirectSymbol,hd=x.UNSAFE_ViewTransitionContext,md=x.UNSAFE_createBrowserHistory,pd=x.UNSAFE_createClientRoutes,yd=x.UNSAFE_createClientRoutesWithHMRRevalidationOptOut,gd=x.UNSAFE_createRouter,vd=x.UNSAFE_decodeViaTurboStream,wd=x.UNSAFE_de
1serializeErrors,_d=x.UNSAFE_getPatchRoutesOnNavigationFunction,Rd=x.UNSAFE_getSingleFetchDataStrategy,Sd=x.UNSAFE_invariant,bd=x.UNSAFE_mapRouteProperties,Ed=x.UNSAFE_shouldHydrateRouteLoader,xd=x.UNSAFE_useFogOFWarDiscovery,Pd=x.UNSAFE_useScrollRestoration,Cd=x.createBrowserRouter,Ld=x.createCookie,Dd=x.createCookieSessionStorage,Nd=x.createHashRouter,Fd=x.createMemoryRouter,Ad=x.createMemorySessionStorage,kd=x.createPath,Od=x.createRequestHandler,Td=x.createRoutesFromChildren,$d=x.createRoutesFromElements,Ud=x.createRoutesStub,Md=x.createSearchParams,Hd=x.createSession,Id=x.createSessionStorage,jd=x.createStaticHandler,zd=x.createStaticRouter,Bd=x.data,Vd=x.generatePath,Wd=x.isCookie,Jd=x.isRouteErrorResponse,Yd=x.isSession,Kd=x.matchPath,Gd=x.matchRoutes,Xd=x.parsePath,Qd=x.redirect,Zd=x.redirectDocument,qd=x.renderMatches,ef=x.replace,tf=x.resolvePath,rf=x.unstable_HistoryRouter,af=x.unstable_setDevServerHooks,nf=x.unstable_usePrompt,of=x.useActionData,sf=x.useAsyncError,lf=x.useAsyncValue,uf=x.useBeforeUnload,cf=x.useBlocker,df=x.useFetcher,ff=x.useFetchers,hf=x.useFormAction,mf=x.useHref,pf=x.useInRouterContext,yf=x.useLinkClickHandler,gf=x.useLoaderData,vf=x.useLocation,wf=x.useMatch,_f=x.useMatches,Rf=x.useNavigate,Sf=x.useNavigation,bf=x.useNavigationType,Ef=x.useOutlet,xf=x.useOutletContext,Pf=x.useParams,Cf=x.useResolvedPath,Lf=x.useRevalidator,Df=x.useRouteError,Nf=x.useRouteLoaderData,Ff=x.useRoutes,Af=x.useSearchParams,kf=x.useSubmit,Of=x.useViewTransitionState;var Fn;const Tf=(Fn=Reflect.get(fa,"default"))!=null?Fn:fa,$f=Object.freeze(Object.defineProperty({__proto__:null,Await:Ac,BrowserRouter:kc,Form:Oc,HashRouter:Tc,HydratedRouter:Nc,IDLE_BLOCKER:$c,IDLE_FETCHER:Uc,IDLE_NAVIGATION:Mc,Link:Hc,Links:Ic,MemoryRouter:jc,Meta:zc,NavLink:Bc,Navigate:Vc,NavigationType:Wc,Outlet:Jc,PrefetchPageLinks:Yc,Route:Kc,Router:Gc,RouterProvider:Fc,Routes:Xc,Scripts:Qc,ScrollRestoration:Zc,ServerRouter:qc,StaticRouter:ed,StaticRouterProvider:td,UNSAFE_DataRouterContext:rd,UNSAFE_DataRouterStateContext:ad,UNSAFE_ErrorResponseImpl:nd,UNSAFE_FetchersContext:od,UNSAFE_FrameworkContext:id,UNSAFE_LocationContext:sd,UNSAFE_NavigationContext:ld,UNSAFE_RemixErrorBoundary:ud,UNSAFE_RouteContext:cd,UNSAFE_ServerMode:dd,UNSAFE_SingleFetchRedirectSymbol:fd,UNSAFE_ViewTransitionContext:hd,UNSAFE_createBrowserHistory:md,UNSAFE_createClientRoutes:pd,UNSAFE_createClientRoutesWithHMRRevalidationOptOut:yd,UNSAFE_createRouter:gd,UNSAFE_decodeViaTurboStream:vd,UNSAFE_de
1serializeErrors:wd,UNSAFE_getPatchRoutesOnNavigationFunction:_d,UNSAFE_getSingleFetchDataStrategy:Rd,UNSAFE_invariant:Sd,UNSAFE_mapRouteProperties:bd,UNSAFE_shouldHydrateRouteLoader:Ed,UNSAFE_useFogOFWarDiscovery:xd,UNSAFE_useScrollRestoration:Pd,createBrowserRouter:Cd,createCookie:Ld,createCookieSessionStorage:Dd,createHashRouter:Nd,createMemoryRouter:Fd,createMemorySessionStorage:Ad,createPath:kd,createRequestHandler:Od,createRoutesFromChildren:Td,createRoutesFromElements:$d,createRoutesStub:Ud,createSearchParams:Md,createSession:Hd,createSessionStorage:Id,createStaticHandler:jd,createStaticRouter:zd,data:Bd,default:Tf,generatePath:Vd,isCookie:Wd,isRouteErrorResponse:Jd,isSession:Yd,matchPath:Kd,matchRoutes:Gd,parsePath:Xd,redirect:Qd,redirectDocument:Zd,renderMatches:qd,replace:ef,resolvePath:tf,unstable_HistoryRouter:rf,unstable_setDevServerHooks:af,unstable_usePrompt:nf,useActionData:of,useAsyncError:sf,useAsyncValue:lf,useBeforeUnload:uf,useBlocker:cf,useFetcher:df,useFetchers:ff,useFormAction:hf,useHref:mf,useInRouterContext:pf,useLinkClickHandler:yf,useLoaderData:gf,useLocation:vf,useMatch:wf,useMatches:_f,useNavigate:Rf,useNavigation:Sf,useNavigationType:bf,useOutlet:Ef,useOutletContext:xf,useParams:Pf,useResolvedPath:Cf,useRevalidator:Lf,useRouteError:Df,useRouteLoaderData:Nf,useRoutes:Ff,useSearchParams:Af,useSubmit:kf,useViewTransitionState:Of},Symbol.toStringTag,{value:"Module"})),gt="__mf_module_cache__";globalThis[gt]||(globalThis[gt]={share:{},remote:{}});var An;(An=globalThis[gt]).share||(An.share={});var kn;(kn=globalThis[gt]).remote||(kn.remote={});const De=globalThis[gt];for(const e of Object.keys(De.share))if(e.startsWith("default:")){const t=e.slice(8);De.share[t]===void 0&&(De.share[t]=De.share[e])}else if(!e.includes(":")){const t="default:"+e;De.share[t]===void 0&&(De.share[t]=De.share[e])}const Uf=(e,t)=>{const r=e[t.canonical];if(r!==void 0)return r;const a=t.aliases||[];for(const n of a){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const o=e[n];if(o!==void 0)return e[t.canonical]=o,o}},ha=Symbol.for("module-federation.shared-cache-listeners"),Mf=e=>{let t=e[ha];return t===void 0&&(t=Object.create(null),Object.defineProperty(e,ha,{value:t,enumerable:!1,configurable:!1,writable:!1})),t},Hf=(e,t,r)=>{var n;const a=Mf(e);(a[n=t.canonical]||(a[n]=new Set)).add(r)},ma=Symbol.for("module-federation.shared-cache-owners"),If=e=>{let t=e[ma];return t===void 0&&(t=Object.create(null),Object.defineProperty(e,ma,{value:t,enumerable:!1,configurable:!1,writable:!1})),t},jf=(e,t,r,a)=>{var s;e[t.canonical]=r;const n=t.aliases||[];for(const i of n)Object.defineProperty(e,i,{value:r,enumerable:!0,configurable:!0,writable:!0});e[ma],If(e)[t.canonical]=a;const o=(s=e[ha])==null?void 0:s[t.canonical];if(o)for(const i of o)i(r);return r},zf=e=>{const t=(()=>{let r=e;for(let a=0;a<5;a++){const n=r==null?void 0:r.default;if(!n||typeof n!="object")break;const o=Object.keys(r).filter(s=>s!=="default").map(s=>r[s]);if(o.length>0&&o.some(s=>s!==void 0))break;r=n}return r})();return t&&Object.getPrototypeOf(t)===null?Object.assign({},t):t};let ur=Uf(De.share,{canonical:"default:react-router-dom",aliases:["react-router-dom"]});ur===void 0&&(ur=zf($f),jf(De.share,{canonical:"default:react-router-dom",aliases:["react-router-dom"]},ur,"marketing"));let Bf,Vf,Wf,Jf;const Ui=e=>{e.HydratedRouter,e.RouterProvider,e.Await,e.BrowserRouter,e.Form,e.HashRouter,e.IDLE_BLOCKER,e.IDLE_FETCHER,e.IDLE_NAVIGATION,Bf=e.Link,e.Links,e.MemoryRouter,e.Meta,e.NavLink,e.Navigate,e.NavigationType,e.Outlet,e.PrefetchPageLinks,Vf=e.Route,e.Router,Wf=e.Routes,e.Scripts,e.ScrollRestoration,e.ServerRouter,e.StaticRouter,e.StaticRouterProvider,e.UNSAFE_DataRouterContext,e.UNSAFE_DataRouterStateContext,e.UNSAFE_ErrorResponseImpl,e.UNSAFE_FetchersContext,e.UNSAFE_FrameworkContext,e.UNSAFE_LocationContext,e.UNSAFE_NavigationContext,e.UNSAFE_RemixErrorBoundary,e.UNSAFE_RouteContext,e.UNSAFE_ServerMode,e.UNSAFE_SingleFetchRedirectSymbol,e.UNSAFE_ViewTransitionContext,e.UNSAFE_createBrowserHistory,e.UNSAFE_createClientRoutes,e.UNSAFE_createClientRoutesWithHMRRevalidationOptOut,e.UNSAFE_createRouter,e.UNSAFE_decodeViaTurboStream,e.UNSAFE_de
1serializeErrors,e.UNSAFE_getPatchRoutesOnNavigationFunction,e.UNSAFE_getSingleFetchDataStrategy,e.UNSAFE_invariant,e.UNSAFE_mapRouteProperties,e.UNSAFE_shouldHydrateRouteLoader,e.UNSAFE_useFogOFWarDiscovery,e.UNSAFE_useScrollRestoration,e.createBrowserRouter,e.createCookie,e.createCookieSessionStorage,e.createHashRouter,e.createMemoryRouter,e.createMemorySessionStorage,e.createPath,e.createRequestHandler,e.createRoutesFromChildren,e.createRoutesFromElements,e.createRoutesStub,e.createSearchParams,e.createSession,e.createSessionStorage,e.createStaticHandler,e.createStaticRouter,e.data,e.generatePath,e.isCookie,e.isRouteErrorResponse,e.isSession,e.matchPath,e.matchRoutes,e.parsePath,e.redirect,e.redirectDocument,e.renderMatches,e.replace,e.resolvePath,e.unstable_HistoryRouter,e.unstable_setDevServerHooks,e.unstable_usePrompt,e.useActionData,e.useAsyncError,e.useAsyncValue,e.useBeforeUnload,e.useBlocker,e.useFetcher,e.useFetchers,e.useFormAction,e.useHref,e.useInRouterContext,e.useLinkClickHandler,e.useLoaderData,Jf=e.useLocation,e.useMatch,e.useMatches,e.useNavigate,e.useNavigation,e.useNavigationType,e.useOutlet,e.useOutletContext,e.useParams,e.useResolvedPath,e.useRevalidator,e.useRouteError,e.useRouteLoaderData,e.useRoutes,e.useSearchParams,e.useSubmit,e.useViewTransitionState,(()=>{let t=e;for(let r=0;r<5;r++){const a=t==null?void 0:t.default;if(!a||typeof a!="object")return a!=null?a:t;t=a}return t})()};Hf(De.share,{canonical:"default:react-router-dom"},Ui);Ui(ur);export{Wf as _,Vf as a,Jf as b,Bf as c,$f as d};

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.