diff --git a/server/public/assets/index-COFUfdDa.js b/server/public/assets/index-256lFfdi.js similarity index 98% rename from server/public/assets/index-COFUfdDa.js rename to server/public/assets/index-256lFfdi.js index beb1f207..980512ad 100644 --- a/server/public/assets/index-COFUfdDa.js +++ b/server/public/assets/index-256lFfdi.js @@ -9,7 +9,7 @@ Error generating stack: `+s.message+` `).replace(Uy,"")}function Pm(e,t){return t=Wm(t),Wm(e)===t}function Oe(e,t,n,s,c,u){switch(n){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||$a(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&$a(e,""+s);break;case"className":li(e,"class",s);break;case"tabIndex":li(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":li(e,n,s);break;case"style":Pf(e,s,u);break;case"data":if(t!=="object"){li(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=ii(""+s),e.setAttribute(n,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&Oe(e,t,"name",c.name,c,null),Oe(e,t,"formEncType",c.formEncType,c,null),Oe(e,t,"formMethod",c.formMethod,c,null),Oe(e,t,"formTarget",c.formTarget,c,null)):(Oe(e,t,"encType",c.encType,c,null),Oe(e,t,"method",c.method,c,null),Oe(e,t,"target",c.target,c,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=ii(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(e.onclick=on);break;case"onScroll":s!=null&&ve("scroll",e);break;case"onScrollEnd":s!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(n=s.__html,n!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}n=ii(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""+s):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":s===!0?e.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,s):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(n,s):e.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(n):e.setAttribute(n,s);break;case"popover":ve("beforetoggle",e),ve("toggle",e),ai(e,"popover",s);break;case"xlinkActuate":rn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":rn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":rn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":rn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":rn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":rn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":rn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":rn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":rn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ai(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2v)break;var Z=T.transferSize,I=T.initiatorType;Z&&ep(I)&&(T=T.responseEnd,g+=Z*(T"u"?null:document;function dp(e,t,n){var s=xl;if(s&&typeof t=="string"&&t){var c=kt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),fp.has(c)||(fp.add(c),e={rel:e,crossOrigin:n,href:t},s.querySelector(c)===null&&(t=s.createElement("link"),ct(t,"link",e),at(t),s.head.appendChild(t)))}}function Iy(e){Nn.D(e),dp("dns-prefetch",e,null)}function Wy(e,t){Nn.C(e,t),dp("preconnect",e,t)}function Py(e,t,n){Nn.L(e,t,n);var s=xl;if(s&&e&&t){var c='link[rel="preload"][as="'+kt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+kt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+kt(n.imageSizes)+'"]')):c+='[href="'+kt(e)+'"]';var u=c;switch(t){case"style":u=yl(e);break;case"script":u=vl(e)}Ht.has(u)||(e=S({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Ht.set(u,e),s.querySelector(c)!==null||t==="style"&&s.querySelector(Ns(u))||t==="script"&&s.querySelector(ws(u))||(t=s.createElement("link"),ct(t,"link",e),at(t),s.head.appendChild(t)))}}function ev(e,t){Nn.m(e,t);var n=xl;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+kt(s)+'"][href="'+kt(e)+'"]',u=c;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=vl(e)}if(!Ht.has(u)&&(e=S({rel:"modulepreload",href:e},t),Ht.set(u,e),n.querySelector(c)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ws(u)))return}s=n.createElement("link"),ct(s,"link",e),at(s),n.head.appendChild(s)}}}function tv(e,t,n){Nn.S(e,t,n);var s=xl;if(s&&e){var c=Ha(s).hoistableStyles,u=yl(e);t=t||"default";var g=c.get(u);if(!g){var v={loading:0,preload:null};if(g=s.querySelector(Ns(u)))v.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ht.get(u))&&Pc(e,n);var T=g=s.createElement("link");at(T),ct(T,"link",e),T._p=new Promise(function(V,Z){T.onload=V,T.onerror=Z}),T.addEventListener("load",function(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,ar(g,t,s)}g={type:"stylesheet",instance:g,count:1,state:v},c.set(u,g)}}}function nv(e,t){Nn.X(e,t);var n=xl;if(n&&e){var s=Ha(n).hoistableScripts,c=vl(e),u=s.get(c);u||(u=n.querySelector(ws(c)),u||(e=S({src:e,async:!0},t),(t=Ht.get(c))&&eu(e,t),u=n.createElement("script"),at(u),ct(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(c,u))}}function av(e,t){Nn.M(e,t);var n=xl;if(n&&e){var s=Ha(n).hoistableScripts,c=vl(e),u=s.get(c);u||(u=n.querySelector(ws(c)),u||(e=S({src:e,async:!0,type:"module"},t),(t=Ht.get(c))&&eu(e,t),u=n.createElement("script"),at(u),ct(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(c,u))}}function hp(e,t,n,s){var c=(c=te.current)?nr(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=yl(n.href),n=Ha(c).hoistableStyles,s=n.get(t),s||(s={type:"style",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=yl(n.href);var u=Ha(c).hoistableStyles,g=u.get(e);if(g||(c=c.ownerDocument||c,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,g),(u=c.querySelector(Ns(e)))&&!u._p&&(g.instance=u,g.state.loading=5),Ht.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ht.set(e,n),u||lv(c,e,n,g.state))),t&&s===null)throw Error(r(528,""));return g}if(t&&s!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=vl(n),n=Ha(c).hoistableScripts,s=n.get(t),s||(s={type:"script",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function yl(e){return'href="'+kt(e)+'"'}function Ns(e){return'link[rel="stylesheet"]['+e+"]"}function mp(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function lv(e,t,n,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),ct(t,"link",n),at(t),e.head.appendChild(t))}function vl(e){return'[src="'+kt(e)+'"]'}function ws(e){return"script[async]"+e}function pp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+kt(n.href)+'"]');if(s)return t.instance=s,at(s),s;var c=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),at(s),ct(s,"style",c),ar(s,n.precedence,e),t.instance=s;case"stylesheet":c=yl(n.href);var u=e.querySelector(Ns(c));if(u)return t.state.loading|=4,t.instance=u,at(u),u;s=mp(n),(c=Ht.get(c))&&Pc(s,c),u=(e.ownerDocument||e).createElement("link"),at(u);var g=u;return g._p=new Promise(function(v,T){g.onload=v,g.onerror=T}),ct(u,"link",s),t.state.loading|=4,ar(u,n.precedence,e),t.instance=u;case"script":return u=vl(n.src),(c=e.querySelector(ws(u)))?(t.instance=c,at(c),c):(s=n,(c=Ht.get(u))&&(s=S({},n),eu(s,c)),e=e.ownerDocument||e,c=e.createElement("script"),at(c),ct(c,"link",s),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,ar(s,n.precedence,e));return t.instance}function ar(e,t,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=s.length?s[s.length-1]:null,u=c,g=0;g title"):null)}function sv(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function yp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function iv(e,t,n,s){if(n.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=yl(s.href),u=t.querySelector(Ns(c));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=sr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,at(u);return}u=t.ownerDocument||t,s=mp(s),(c=Ht.get(c))&&Pc(s,c),u=u.createElement("link"),at(u);var g=u;g._p=new Promise(function(v,T){g.onload=v,g.onerror=T}),ct(u,"link",s),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=sr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var tu=0;function rv(e,t){return e.stylesheets&&e.count===0&&rr(e,e.stylesheets),0tu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(c)}}:null}function sr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ir=null;function rr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ir=new Map,t.forEach(ov,e),ir=null,sr.call(e))}function ov(e,t){if(!(t.state.loading&4)){var n=ir.get(e);if(n)var s=n.get(null);else{n=new Map,ir.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),uu.exports=wv(),uu.exports}var Cv=Ev();var Yp="popstate";function qv(a={}){function l(r,f){let{pathname:d,search:m,hash:x}=r.location;return zu("",{pathname:d,search:m,hash:x},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function i(r,f){return typeof f=="string"?f:Vs(f)}return Tv(l,i,null,a)}function $e(a,l){if(a===!1||a===null||typeof a>"u")throw new Error(l)}function Ft(a,l){if(!a){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function Mv(){return Math.random().toString(36).substring(2,10)}function $p(a,l){return{usr:a.state,key:a.key,idx:l}}function zu(a,l,i=null,r){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof l=="string"?Tl(l):l,state:i,key:l&&l.key||r||Mv()}}function Vs({pathname:a="/",search:l="",hash:i=""}){return l&&l!=="?"&&(a+=l.charAt(0)==="?"?l:"?"+l),i&&i!=="#"&&(a+=i.charAt(0)==="#"?i:"#"+i),a}function Tl(a){let l={};if(a){let i=a.indexOf("#");i>=0&&(l.hash=a.substring(i),a=a.substring(0,i));let r=a.indexOf("?");r>=0&&(l.search=a.substring(r),a=a.substring(0,r)),a&&(l.pathname=a)}return l}function Tv(a,l,i,r={}){let{window:f=document.defaultView,v5Compat:d=!1}=r,m=f.history,x="POP",p=null,y=b();y==null&&(y=0,m.replaceState({...m.state,idx:y},""));function b(){return(m.state||{idx:null}).idx}function S(){x="POP";let A=b(),q=A==null?null:A-y;y=A,p&&p({action:x,location:C.location,delta:q})}function N(A,q){x="PUSH";let w=zu(C.location,A,q);y=b()+1;let k=$p(w,y),Y=C.createHref(w);try{m.pushState(k,"",Y)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;f.location.assign(Y)}d&&p&&p({action:x,location:C.location,delta:1})}function M(A,q){x="REPLACE";let w=zu(C.location,A,q);y=b();let k=$p(w,y),Y=C.createHref(w);m.replaceState(k,"",Y),d&&p&&p({action:x,location:C.location,delta:0})}function j(A){return Rv(A)}let C={get action(){return x},get location(){return a(f,m)},listen(A){if(p)throw new Error("A history only accepts one active listener");return f.addEventListener(Yp,S),p=A,()=>{f.removeEventListener(Yp,S),p=null}},createHref(A){return l(f,A)},createURL:j,encodeLocation(A){let q=j(A);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:N,replace:M,go(A){return m.go(A)}};return C}function Rv(a,l=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),$e(i,"No window.location.(origin|href) available to create URL");let r=typeof a=="string"?a:Vs(a);return r=r.replace(/ $/,"%20"),!l&&r.startsWith("//")&&(r=i+r),new URL(r,i)}function _0(a,l,i="/"){return kv(a,l,i,!1)}function kv(a,l,i,r){let f=typeof l=="string"?Tl(l):l,d=Rn(f.pathname||"/",i);if(d==null)return null;let m=D0(a);_v(m);let x=null;for(let p=0;x==null&&p{let b={relativePath:y===void 0?m.path||"":y,caseSensitive:m.caseSensitive===!0,childrenIndex:x,route:m};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(r)&&p)return;$e(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length)}let S=Mn([r,b.relativePath]),N=i.concat(b);m.children&&m.children.length>0&&($e(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),D0(m.children,l,N,S,p)),!(m.path==null&&!m.index)&&l.push({path:S,score:Hv(S,m.index),routesMeta:N})};return a.forEach((m,x)=>{if(m.path===""||!m.path?.includes("?"))d(m,x);else for(let p of O0(m.path))d(m,x,!0,p)}),l}function O0(a){let l=a.split("/");if(l.length===0)return[];let[i,...r]=l,f=i.endsWith("?"),d=i.replace(/\?$/,"");if(r.length===0)return f?[d,""]:[d];let m=O0(r.join("/")),x=[];return x.push(...m.map(p=>p===""?d:[d,p].join("/"))),f&&x.push(...m),x.map(p=>a.startsWith("/")&&p===""?"/":p)}function _v(a){a.sort((l,i)=>l.score!==i.score?i.score-l.score:Vv(l.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var Dv=/^:[\w-]+$/,Ov=3,Bv=2,zv=1,Lv=10,Uv=-2,Gp=a=>a==="*";function Hv(a,l){let i=a.split("/"),r=i.length;return i.some(Gp)&&(r+=Uv),l&&(r+=Bv),i.filter(f=>!Gp(f)).reduce((f,d)=>f+(Dv.test(d)?Ov:d===""?zv:Lv),r)}function Vv(a,l){return a.length===l.length&&a.slice(0,-1).every((r,f)=>r===l[f])?a[a.length-1]-l[l.length-1]:0}function Yv(a,l,i=!1){let{routesMeta:r}=a,f={},d="/",m=[];for(let x=0;x{if(b==="*"){let j=x[N]||"";m=d.slice(0,d.length-j.length).replace(/(.)\/+$/,"$1")}const M=x[N];return S&&!M?y[b]=void 0:y[b]=(M||"").replace(/%2F/g,"/"),y},{}),pathname:d,pathnameBase:m,pattern:a}}function $v(a,l=!1,i=!0){Ft(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let r=[],f="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,x,p)=>(r.push({paramName:x,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(r.push({paramName:"*"}),f+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?f+="\\/*$":a!==""&&a!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,l?void 0:"i"),r]}function Gv(a){try{return a.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Ft(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),a}}function Rn(a,l){if(l==="/")return a;if(!a.toLowerCase().startsWith(l.toLowerCase()))return null;let i=l.endsWith("/")?l.length-1:l.length,r=a.charAt(i);return r&&r!=="/"?null:a.slice(i)||"/"}var Xv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qv=a=>Xv.test(a);function Kv(a,l="/"){let{pathname:i,search:r="",hash:f=""}=typeof a=="string"?Tl(a):a,d;if(i)if(Qv(i))d=i;else{if(i.includes("//")){let m=i;i=i.replace(/\/\/+/g,"/"),Ft(!1,`Pathnames cannot have embedded double slashes - normalizing ${m} -> ${i}`)}i.startsWith("/")?d=Xp(i.substring(1),"/"):d=Xp(i,l)}else d=l;return{pathname:d,search:Jv(r),hash:Iv(f)}}function Xp(a,l){let i=l.replace(/\/+$/,"").split("/");return a.split("/").forEach(f=>{f===".."?i.length>1&&i.pop():f!=="."&&i.push(f)}),i.length>1?i.join("/"):"/"}function mu(a,l,i,r){return`Cannot include a '${a}' character in a manually specified \`to.${l}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Zv(a){return a.filter((l,i)=>i===0||l.route.path&&l.route.path.length>0)}function B0(a){let l=Zv(a);return l.map((i,r)=>r===l.length-1?i.pathname:i.pathnameBase)}function z0(a,l,i,r=!1){let f;typeof a=="string"?f=Tl(a):(f={...a},$e(!f.pathname||!f.pathname.includes("?"),mu("?","pathname","search",f)),$e(!f.pathname||!f.pathname.includes("#"),mu("#","pathname","hash",f)),$e(!f.search||!f.search.includes("#"),mu("#","search","hash",f)));let d=a===""||f.pathname==="",m=d?"/":f.pathname,x;if(m==null)x=i;else{let S=l.length-1;if(!r&&m.startsWith("..")){let N=m.split("/");for(;N[0]==="..";)N.shift(),S-=1;f.pathname=N.join("/")}x=S>=0?l[S]:"/"}let p=Kv(f,x),y=m&&m!=="/"&&m.endsWith("/"),b=(d||m===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(y||b)&&(p.pathname+="/"),p}var Mn=a=>a.join("/").replace(/\/\/+/g,"/"),Fv=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),Jv=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Iv=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function Wv(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var L0=["POST","PUT","PATCH","DELETE"];new Set(L0);var Pv=["GET",...L0];new Set(Pv);var Rl=h.createContext(null);Rl.displayName="DataRouter";var zr=h.createContext(null);zr.displayName="DataRouterState";h.createContext(!1);var U0=h.createContext({isTransitioning:!1});U0.displayName="ViewTransition";var eb=h.createContext(new Map);eb.displayName="Fetchers";var tb=h.createContext(null);tb.displayName="Await";var an=h.createContext(null);an.displayName="Navigation";var Qs=h.createContext(null);Qs.displayName="Location";var kn=h.createContext({outlet:null,matches:[],isDataRoute:!1});kn.displayName="Route";var tf=h.createContext(null);tf.displayName="RouteError";function nb(a,{relative:l}={}){$e(Ks(),"useHref() may be used only in the context of a component.");let{basename:i,navigator:r}=h.useContext(an),{hash:f,pathname:d,search:m}=Zs(a,{relative:l}),x=d;return i!=="/"&&(x=d==="/"?i:Mn([i,d])),r.createHref({pathname:x,search:m,hash:f})}function Ks(){return h.useContext(Qs)!=null}function ka(){return $e(Ks(),"useLocation() may be used only in the context of a component."),h.useContext(Qs).location}var H0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function V0(a){h.useContext(an).static||h.useLayoutEffect(a)}function ab(){let{isDataRoute:a}=h.useContext(kn);return a?gb():lb()}function lb(){$e(Ks(),"useNavigate() may be used only in the context of a component.");let a=h.useContext(Rl),{basename:l,navigator:i}=h.useContext(an),{matches:r}=h.useContext(kn),{pathname:f}=ka(),d=JSON.stringify(B0(r)),m=h.useRef(!1);return V0(()=>{m.current=!0}),h.useCallback((p,y={})=>{if(Ft(m.current,H0),!m.current)return;if(typeof p=="number"){i.go(p);return}let b=z0(p,JSON.parse(d),f,y.relative==="path");a==null&&l!=="/"&&(b.pathname=b.pathname==="/"?l:Mn([l,b.pathname])),(y.replace?i.replace:i.push)(b,y.state,y)},[l,i,d,f,a])}h.createContext(null);function Zs(a,{relative:l}={}){let{matches:i}=h.useContext(kn),{pathname:r}=ka(),f=JSON.stringify(B0(i));return h.useMemo(()=>z0(a,JSON.parse(f),r,l==="path"),[a,f,r,l])}function sb(a,l){return Y0(a,l)}function Y0(a,l,i,r,f){$e(Ks(),"useRoutes() may be used only in the context of a component.");let{navigator:d}=h.useContext(an),{matches:m}=h.useContext(kn),x=m[m.length-1],p=x?x.params:{},y=x?x.pathname:"/",b=x?x.pathnameBase:"/",S=x&&x.route;{let w=S&&S.path||"";$0(y,!S||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${y}" (under ) 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. Please change the parent to .`)}let N=ka(),M;if(l){let w=typeof l=="string"?Tl(l):l;$e(b==="/"||w.pathname?.startsWith(b),`When overriding the location using \`\` 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 "${b}" but pathname "${w.pathname}" was given in the \`location\` prop.`),M=w}else M=N;let j=M.pathname||"/",C=j;if(b!=="/"){let w=b.replace(/^\//,"").split("/");C="/"+j.replace(/^\//,"").split("/").slice(w.length).join("/")}let A=_0(a,{pathname:C});Ft(S||A!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),Ft(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${M.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let q=ub(A&&A.map(w=>Object.assign({},w,{params:Object.assign({},p,w.params),pathname:Mn([b,d.encodeLocation?d.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?b:Mn([b,d.encodeLocation?d.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),m,i,r,f);return l&&q?h.createElement(Qs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...M},navigationType:"POP"}},q):q}function ib(){let a=pb(),l=Wv(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),i=a instanceof Error?a.stack:null,r="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},m=null;return console.error("Error handled by React Router default ErrorBoundary:",a),m=h.createElement(h.Fragment,null,h.createElement("p",null,"đź’ż Hey developer đź‘‹"),h.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",h.createElement("code",{style:d},"ErrorBoundary")," or"," ",h.createElement("code",{style:d},"errorElement")," prop on your route.")),h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},l),i?h.createElement("pre",{style:f},i):null,m)}var rb=h.createElement(ib,null),ob=class extends h.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,l){return l.location!==a.location||l.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:l.error,location:l.location,revalidation:a.revalidation||l.revalidation}}componentDidCatch(a,l){this.props.onError?this.props.onError(a,l):console.error("React Router caught the following error during render",a)}render(){return this.state.error!==void 0?h.createElement(kn.Provider,{value:this.props.routeContext},h.createElement(tf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function cb({routeContext:a,match:l,children:i}){let r=h.useContext(Rl);return r&&r.static&&r.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=l.route.id),h.createElement(kn.Provider,{value:a},i)}function ub(a,l=[],i=null,r=null,f=null){if(a==null){if(!i)return null;if(i.errors)a=i.matches;else if(l.length===0&&!i.initialized&&i.matches.length>0)a=i.matches;else return null}let d=a,m=i?.errors;if(m!=null){let b=d.findIndex(S=>S.route.id&&m?.[S.route.id]!==void 0);$e(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,b+1))}let x=!1,p=-1;if(i)for(let b=0;b=0?d=d.slice(0,p+1):d=[d[0]];break}}}let y=i&&r?(b,S)=>{r(b,{location:i.location,params:i.matches?.[0]?.params??{},errorInfo:S})}:void 0;return d.reduceRight((b,S,N)=>{let M,j=!1,C=null,A=null;i&&(M=m&&S.route.id?m[S.route.id]:void 0,C=S.route.errorElement||rb,x&&(p<0&&N===0?($0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,A=null):p===N&&(j=!0,A=S.route.hydrateFallbackElement||null)));let q=l.concat(d.slice(0,N+1)),w=()=>{let k;return M?k=C:j?k=A:S.route.Component?k=h.createElement(S.route.Component,null):S.route.element?k=S.route.element:k=b,h.createElement(cb,{match:S,routeContext:{outlet:b,matches:q,isDataRoute:i!=null},children:k})};return i&&(S.route.ErrorBoundary||S.route.errorElement||N===0)?h.createElement(ob,{location:i.location,revalidation:i.revalidation,component:C,error:M,children:w(),routeContext:{outlet:null,matches:q,isDataRoute:!0},onError:y}):w()},null)}function nf(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fb(a){let l=h.useContext(Rl);return $e(l,nf(a)),l}function db(a){let l=h.useContext(zr);return $e(l,nf(a)),l}function hb(a){let l=h.useContext(kn);return $e(l,nf(a)),l}function af(a){let l=hb(a),i=l.matches[l.matches.length-1];return $e(i.route.id,`${a} can only be used on routes that contain a unique "id"`),i.route.id}function mb(){return af("useRouteId")}function pb(){let a=h.useContext(tf),l=db("useRouteError"),i=af("useRouteError");return a!==void 0?a:l.errors?.[i]}function gb(){let{router:a}=fb("useNavigate"),l=af("useNavigate"),i=h.useRef(!1);return V0(()=>{i.current=!0}),h.useCallback(async(f,d={})=>{Ft(i.current,H0),i.current&&(typeof f=="number"?a.navigate(f):await a.navigate(f,{fromRouteId:l,...d}))},[a,l])}var Qp={};function $0(a,l,i){!l&&!Qp[a]&&(Qp[a]=!0,Ft(!1,i))}h.memo(xb);function xb({routes:a,future:l,state:i,unstable_onError:r}){return Y0(a,void 0,i,r,l)}function br(a){$e(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function yb({basename:a="/",children:l=null,location:i,navigationType:r="POP",navigator:f,static:d=!1}){$e(!Ks(),"You cannot render a inside another . You should never have more than one in your app.");let m=a.replace(/^\/*/,"/"),x=h.useMemo(()=>({basename:m,navigator:f,static:d,future:{}}),[m,f,d]);typeof i=="string"&&(i=Tl(i));let{pathname:p="/",search:y="",hash:b="",state:S=null,key:N="default"}=i,M=h.useMemo(()=>{let j=Rn(p,m);return j==null?null:{location:{pathname:j,search:y,hash:b,state:S,key:N},navigationType:r}},[m,p,y,b,S,N,r]);return Ft(M!=null,` is not able to match the URL "${p}${y}${b}" because it does not start with the basename, so the won't render anything.`),M==null?null:h.createElement(an.Provider,{value:x},h.createElement(Qs.Provider,{children:l,value:M}))}function vb({children:a,location:l}){return sb(Lu(a),l)}function Lu(a,l=[]){let i=[];return h.Children.forEach(a,(r,f)=>{if(!h.isValidElement(r))return;let d=[...l,f];if(r.type===h.Fragment){i.push.apply(i,Lu(r.props.children,d));return}$e(r.type===br,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),$e(!r.props.index||!r.props.children,"An index route cannot have child routes.");let m={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(m.children=Lu(r.props.children,d)),i.push(m)}),i}var Sr="get",Ar="application/x-www-form-urlencoded";function Lr(a){return a!=null&&typeof a.tagName=="string"}function bb(a){return Lr(a)&&a.tagName.toLowerCase()==="button"}function Sb(a){return Lr(a)&&a.tagName.toLowerCase()==="form"}function Ab(a){return Lr(a)&&a.tagName.toLowerCase()==="input"}function jb(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function Nb(a,l){return a.button===0&&(!l||l==="_self")&&!jb(a)}var pr=null;function wb(){if(pr===null)try{new FormData(document.createElement("form"),0),pr=!1}catch{pr=!0}return pr}var Eb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function pu(a){return a!=null&&!Eb.has(a)?(Ft(!1,`"${a}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Ar}"`),null):a}function Cb(a,l){let i,r,f,d,m;if(Sb(a)){let x=a.getAttribute("action");r=x?Rn(x,l):null,i=a.getAttribute("method")||Sr,f=pu(a.getAttribute("enctype"))||Ar,d=new FormData(a)}else if(bb(a)||Ab(a)&&(a.type==="submit"||a.type==="image")){let x=a.form;if(x==null)throw new Error('Cannot submit a