git-truck 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +7 -9
  2. package/build/index.js +121 -140
  3. package/build/metafile.js.json +1 -1
  4. package/build/metafile.server.json +1 -1
  5. package/build/version.txt +1 -1
  6. package/cli.js +125 -137
  7. package/package.json +5 -7
  8. package/public/build/_assets/react-datepicker-3YLWDVEY.css +1 -0
  9. package/public/build/_shared/{buttons.esm-D3QISUDE.js → buttons.esm-NERHWBM5.js} +1 -1
  10. package/public/build/_shared/{chunk-E4ZX32OJ.js → chunk-5D4A5WT2.js} +1 -1
  11. package/public/build/_shared/{chunk-ND5WRITB.js → chunk-72LCGX7K.js} +1 -1
  12. package/public/build/_shared/chunk-Q3IECNXJ.js +1 -0
  13. package/public/build/_shared/chunk-VV4XSBJZ.js +1 -0
  14. package/public/build/{entry.client-RZUWA4GZ.js → entry.client-H44HMSW7.js} +1 -1
  15. package/public/build/{manifest-0908BE6E.js → manifest-E47A891C.js} +1 -1
  16. package/public/build/root-EXAXBIX6.js +1 -0
  17. package/public/build/routes/$repo.$-DZIVQKYY.js +68 -0
  18. package/public/build/routes/$repository-RMM3X7IT.js +1 -0
  19. package/public/build/routes/{_index-3GUP3TPE.js → _index-DKI5HQT7.js} +1 -1
  20. package/public/build/routes/authordist-LRF2J26H.js +1 -0
  21. package/public/build/routes/clearCache-AWUAC2NV.js +1 -0
  22. package/public/build/routes/commitcount-D7WWQAYM.js +1 -0
  23. package/public/build/routes/commits-GGDWDC7W.js +1 -0
  24. package/public/build/routes/progress-SNLO56GK.js +1 -0
  25. package/public/build/_assets/react-datepicker-SHOMGW4P.css +0 -1
  26. package/public/build/_shared/chunk-G5WX4PPA.js +0 -1
  27. package/public/build/_shared/chunk-ZAZE3T6E.js +0 -1
  28. package/public/build/root-CQKNWKLC.js +0 -1
  29. package/public/build/routes/$repo.$-ZJ2UE2QP.js +0 -75
  30. package/public/build/routes/$repository-2OUZDKVD.js +0 -1
  31. package/public/build/routes/authordist-A7NSX5GE.js +0 -1
  32. package/public/build/routes/clearCache-IAFGBLU4.js +0 -1
  33. package/public/build/routes/commitcount-KSNJOFTJ.js +0 -1
  34. package/public/build/routes/commits-6RXT3QOX.js +0 -1
  35. package/public/build/routes/progress-LUCNXSNL.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as oa,b as Vt,d as _n}from"/build/_shared/chunk-G5WX4PPA.js";var Nc=Vt(H=>{"use strict";var Vr=Symbol.for("react.element"),Ym=Symbol.for("react.portal"),Jm=Symbol.for("react.fragment"),Xm=Symbol.for("react.strict_mode"),Gm=Symbol.for("react.profiler"),Zm=Symbol.for("react.provider"),qm=Symbol.for("react.context"),ev=Symbol.for("react.forward_ref"),tv=Symbol.for("react.suspense"),nv=Symbol.for("react.memo"),rv=Symbol.for("react.lazy"),wc=Symbol.iterator;function ov(e){return e===null||typeof e!="object"?null:(e=wc&&e[wc]||e["@@iterator"],typeof e=="function"?e:null)}var Sc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xc=Object.assign,_c={};function Xn(e,t,n){this.props=e,this.context=t,this.refs=_c,this.updater=n||Sc}Xn.prototype.isReactComponent={};Xn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Xn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dc(){}Dc.prototype=Xn.prototype;function sl(e,t,n){this.props=e,this.context=t,this.refs=_c,this.updater=n||Sc}var ul=sl.prototype=new Dc;ul.constructor=sl;xc(ul,Xn.prototype);ul.isPureReactComponent=!0;var Rc=Array.isArray,Cc=Object.prototype.hasOwnProperty,cl={current:null},Pc={key:!0,ref:!0,__self:!0,__source:!0};function Lc(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)Cc.call(t,r)&&!Pc.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Vr,type:e,key:a,ref:i,props:o,_owner:cl.current}}function av(e,t){return{$$typeof:Vr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dl(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vr}function iv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ec=/\/+/g;function ll(e,t){return typeof e=="object"&&e!==null&&e.key!=null?iv(""+e.key):t.toString(36)}function ia(e,t,n,r,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Vr:case Ym:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+ll(i,0):r,Rc(o)?(n="",e!=null&&(n=e.replace(Ec,"$&/")+"/"),ia(o,t,n,"",function(u){return u})):o!=null&&(dl(o)&&(o=av(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Ec,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Rc(e))for(var l=0;l<e.length;l++){a=e[l];var s=r+ll(a,l);i+=ia(a,t,n,s,o)}else if(s=ov(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=r+ll(a,l++),i+=ia(a,t,n,s,o);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function aa(e,t,n){if(e==null)return e;var r=[],o=0;return ia(e,r,"","",function(a){return t.call(n,a,o++)}),r}function lv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Me={current:null},la={transition:null},sv={ReactCurrentDispatcher:Me,ReactCurrentBatchConfig:la,ReactCurrentOwner:cl};H.Children={map:aa,forEach:function(e,t,n){aa(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return aa(e,function(){t++}),t},toArray:function(e){return aa(e,function(t){return t})||[]},only:function(e){if(!dl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};H.Component=Xn;H.Fragment=Jm;H.Profiler=Gm;H.PureComponent=sl;H.StrictMode=Xm;H.Suspense=tv;H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sv;H.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=xc({},e.props),o=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=cl.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Cc.call(t,s)&&!Pc.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Vr,type:e.type,key:o,ref:a,props:r,_owner:i}};H.createContext=function(e){return e={$$typeof:qm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Zm,_context:e},e.Consumer=e};H.createElement=Lc;H.createFactory=function(e){var t=Lc.bind(null,e);return t.type=e,t};H.createRef=function(){return{current:null}};H.forwardRef=function(e){return{$$typeof:ev,render:e}};H.isValidElement=dl;H.lazy=function(e){return{$$typeof:rv,_payload:{_status:-1,_result:e},_init:lv}};H.memo=function(e,t){return{$$typeof:nv,type:e,compare:t===void 0?null:t}};H.startTransition=function(e){var t=la.transition;la.transition={};try{e()}finally{la.transition=t}};H.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};H.useCallback=function(e,t){return Me.current.useCallback(e,t)};H.useContext=function(e){return Me.current.useContext(e)};H.useDebugValue=function(){};H.useDeferredValue=function(e){return Me.current.useDeferredValue(e)};H.useEffect=function(e,t){return Me.current.useEffect(e,t)};H.useId=function(){return Me.current.useId()};H.useImperativeHandle=function(e,t,n){return Me.current.useImperativeHandle(e,t,n)};H.useInsertionEffect=function(e,t){return Me.current.useInsertionEffect(e,t)};H.useLayoutEffect=function(e,t){return Me.current.useLayoutEffect(e,t)};H.useMemo=function(e,t){return Me.current.useMemo(e,t)};H.useReducer=function(e,t,n){return Me.current.useReducer(e,t,n)};H.useRef=function(e){return Me.current.useRef(e)};H.useState=function(e){return Me.current.useState(e)};H.useSyncExternalStore=function(e,t,n){return Me.current.useSyncExternalStore(e,t,n)};H.useTransition=function(){return Me.current.useTransition()};H.version="18.2.0"});var yt=Vt((Yw,kc)=>{"use strict";kc.exports=Nc()});function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sa.apply(this,arguments)}function Re(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function hl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Cn(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function lt(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $t(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?lt(t):t,o=pl(r.pathname||"/",n);if(o==null)return null;let a=Fc(e);uv(a);let i=null;for(let l=0;i==null&&l<a.length;++l)i=yv(a[l],Rv(o));return i}function Oc(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function Fc(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,i,l)=>{let s={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};s.relativePath.startsWith("/")&&(Re(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Pt([r,s.relativePath]),c=n.concat(s);a.children&&a.children.length>0&&(Re(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Fc(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:vv(u,a.index),routesMeta:c})};return e.forEach((a,i)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,i);else for(let s of Ac(a.path))o(a,i,s)}),t}function Ac(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=Ac(r.join("/")),l=[];return l.push(...i.map(s=>s===""?a:[a,s].join("/"))),o&&l.push(...i),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function uv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}function vv(e,t){let n=e.split("/"),r=n.length;return n.some(Tc)&&(r+=mv),t&&(r+=fv),n.filter(o=>!Tc(o)).reduce((o,a)=>o+(cv.test(a)?dv:a===""?hv:pv),r)}function gv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function yv(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let i=0;i<n.length;++i){let l=n[i],s=i===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",c=$r({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u);if(!c)return null;Object.assign(r,c.params);let p=l.route;a.push({params:r,pathname:Pt([o,c.pathname]),pathnameBase:xv(Pt([o,c.pathnameBase])),route:p}),c.pathnameBase!=="/"&&(o=Pt([o,c.pathnameBase]))}return a}function $r(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=wv(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,c,p)=>{let{paramName:m,isOptional:R}=c;if(m==="*"){let w=l[p]||"";i=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}let y=l[p];return R&&!y?u[m]=void 0:u[m]=Ev(y||"",m),u},{}),pathname:a,pathnameBase:i,pattern:e}}function wv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),hl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(i,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Rv(e){try{return decodeURI(e)}catch(t){return hl(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ev(e,t){try{return decodeURIComponent(e)}catch(n){return hl(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function pl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function ua(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?lt(e):e;return{pathname:n?n.startsWith("/")?n:Sv(n,t):t,search:_v(r),hash:Dv(o)}}function Sv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function fl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function ml(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function vl(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=lt(e):(o=sa({},e),Re(!o.pathname||!o.pathname.includes("?"),fl("?","pathname","search",o)),Re(!o.pathname||!o.pathname.includes("#"),fl("#","pathname","hash",o)),Re(!o.search||!o.search.includes("#"),fl("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(r||i==null)l=n;else{let p=t.length-1;if(i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;o.pathname=m.join("/")}l=p>=0?t[p]:"/"}let s=ua(o,l),u=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}function Pn(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Dn,Mc,cv,dv,fv,hv,pv,mv,Tc,Pt,xv,_v,Dv,Gn,ca,Uc,Jw,Cv,Xw,Gw,gl=oa(()=>{(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Dn||(Dn={}));(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Mc||(Mc={}));cv=/^:\w+$/,dv=3,fv=2,hv=1,pv=10,mv=-2,Tc=e=>e==="*";Pt=e=>e.join("/").replace(/\/\/+/g,"/"),xv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_v=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Dv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Gn=class extends Error{},ca=function(t,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let o=new Headers(r.headers);return o.set("Location",t),new Response(null,sa({},r,{headers:o}))};Uc=["post","put","patch","delete"],Jw=new Set(Uc),Cv=["get",...Uc],Xw=new Set(Cv),Gw=Symbol("deferred")});function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},da.apply(this,arguments)}function Ln(e,t){let{relative:n}=t===void 0?{}:t;Zn()||Re(!1);let{basename:r,navigator:o}=k.useContext(Je),{hash:a,pathname:i,search:l}=Kt(e,{relative:n}),s=i;return r!=="/"&&(s=i==="/"?r:Pt([r,i])),o.createHref({pathname:s,search:l,hash:a})}function Zn(){return k.useContext(Wr)!=null}function Te(){return Zn()||Re(!1),k.useContext(Wr).location}function bc(e){k.useContext(Je).static||k.useLayoutEffect(e)}function ha(){let{isDataRoute:e}=k.useContext(Xe);return e?Iv():kv()}function kv(){Zn()||Re(!1);let e=k.useContext(Nt),{basename:t,navigator:n}=k.useContext(Je),{matches:r}=k.useContext(Xe),{pathname:o}=Te(),a=JSON.stringify(ml(r).map(s=>s.pathnameBase)),i=k.useRef(!1);return bc(()=>{i.current=!0}),k.useCallback(function(s,u){if(u===void 0&&(u={}),!i.current)return;if(typeof s=="number"){n.go(s);return}let c=vl(s,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Pt([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,a,o,e])}function Rl(e){let t=k.useContext(Xe).outlet;return t&&k.createElement(Mv.Provider,{value:e},t)}function Kt(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=k.useContext(Xe),{pathname:o}=Te(),a=JSON.stringify(ml(r).map(i=>i.pathnameBase));return k.useMemo(()=>vl(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function zc(e,t,n){Zn()||Re(!1);let{navigator:r}=k.useContext(Je),{matches:o}=k.useContext(Xe),a=o[o.length-1],i=a?a.params:{},l=a?a.pathname:"/",s=a?a.pathnameBase:"/",u=a&&a.route,c=Te(),p;if(t){var m;let f=typeof t=="string"?lt(t):t;s==="/"||(m=f.pathname)!=null&&m.startsWith(s)||Re(!1),p=f}else p=c;let R=p.pathname||"/",y=s==="/"?R:R.slice(s.length)||"/",w=$t(e,{pathname:y}),D=Av(w&&w.map(f=>Object.assign({},f,{params:Object.assign({},i,f.params),pathname:Pt([s,r.encodeLocation?r.encodeLocation(f.pathname).pathname:f.pathname]),pathnameBase:f.pathnameBase==="/"?s:Pt([s,r.encodeLocation?r.encodeLocation(f.pathnameBase).pathname:f.pathnameBase])})),o,n);return t&&D?k.createElement(Wr.Provider,{value:{location:da({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:Dn.Pop}},D):D}function Tv(){let e=Kr(),t=Pn(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:o},n):null,null)}function Fv(e){let{routeContext:t,match:n,children:r}=e,o=k.useContext(Nt);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Xe.Provider,{value:t},r)}function Av(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,i=(r=n)==null?void 0:r.errors;if(i!=null){let l=a.findIndex(s=>s.route.id&&i?.[s.route.id]);l>=0||Re(!1),a=a.slice(0,Math.min(a.length,l+1))}return a.reduceRight((l,s,u)=>{let c=s.route.id?i?.[s.route.id]:null,p=null;n&&(p=s.route.errorElement||Ov);let m=t.concat(a.slice(0,u+1)),R=()=>{let y;return c?y=p:s.route.Component?y=k.createElement(s.route.Component,null):s.route.element?y=s.route.element:y=l,k.createElement(Fv,{match:s,routeContext:{outlet:l,matches:m,isDataRoute:n!=null},children:y})};return n&&(s.route.ErrorBoundary||s.route.errorElement||u===0)?k.createElement(yl,{location:n.location,revalidation:n.revalidation,component:p,error:c,children:R(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):R()},null)}function Uv(e){let t=k.useContext(Nt);return t||Re(!1),t}function pa(e){let t=k.useContext(Wt);return t||Re(!1),t}function jv(e){let t=k.useContext(Xe);return t||Re(!1),t}function ma(e){let t=jv(e),n=t.matches[t.matches.length-1];return n.route.id||Re(!1),n.route.id}function El(){return ma(Lt.UseRouteId)}function qn(){return pa(Lt.UseNavigation).navigation}function er(){let{matches:e,loaderData:t}=pa(Lt.UseMatches);return k.useMemo(()=>e.map(n=>Oc(n,t)),[e,t])}function Sl(){let e=pa(Lt.UseLoaderData),t=ma(Lt.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function Kr(){var e;let t=k.useContext(Ic),n=pa(Lt.UseRouteError),r=ma(Lt.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function xl(){let e=k.useContext(fa);return e?._data}function va(){let e=k.useContext(fa);return e?._error}function Iv(){let{router:e}=Uv(Hc.UseNavigateStable),t=ma(Lt.UseNavigateStable),n=k.useRef(!1);return bc(()=>{n.current=!0}),k.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,da({fromRouteId:t},a)))},[e,t])}function Bc(e){return Rl(e.context)}function _l(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Dn.Pop,navigator:a,static:i=!1}=e;Zn()&&Re(!1);let l=t.replace(/^\/*/,"/"),s=k.useMemo(()=>({basename:l,navigator:a,static:i}),[l,a,i]);typeof r=="string"&&(r=lt(r));let{pathname:u="/",search:c="",hash:p="",state:m=null,key:R="default"}=r,y=k.useMemo(()=>{let w=pl(u,l);return w==null?null:{location:{pathname:w,search:c,hash:p,state:m,key:R},navigationType:o}},[l,u,c,p,m,R,o]);return y==null?null:k.createElement(Je.Provider,{value:s},k.createElement(Wr.Provider,{children:n,value:y}))}function Dl(e){let{children:t,errorElement:n,resolve:r}=e;return k.createElement(wl,{resolve:r,errorElement:n},k.createElement(Hv,null,t))}function Hv(e){let{children:t}=e,n=xl(),r=typeof t=="function"?t(n):t;return k.createElement(k.Fragment,null,r)}function Vc(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:k.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:k.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}var k,Nt,Wt,fa,Je,Wr,Xe,Ic,Mv,Ov,yl,Hc,Lt,bv,oR,Ye,zv,wl,Cl=oa(()=>{k=_n(yt());gl();gl();Nt=k.createContext(null),Wt=k.createContext(null),fa=k.createContext(null),Je=k.createContext(null),Wr=k.createContext(null),Xe=k.createContext({outlet:null,matches:[],isDataRoute:!1}),Ic=k.createContext(null);Mv=k.createContext(null);Ov=k.createElement(Tv,null),yl=class extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?k.createElement(Xe.Provider,{value:this.props.routeContext},k.createElement(Ic.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};Hc=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Hc||{}),Lt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Lt||{});bv="startTransition",oR=k[bv];Ye=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(Ye||{}),zv=new Promise(()=>{}),wl=class extends k.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){console.error("<Await> caught the following error during render",t,n)}render(){let{children:t,errorElement:n,resolve:r}=this.props,o=null,a=Ye.pending;if(!(r instanceof Promise))a=Ye.success,o=Promise.resolve(),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_data",{get:()=>r});else if(this.state.error){a=Ye.error;let i=this.state.error;o=Promise.reject().catch(()=>{}),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_error",{get:()=>i})}else r._tracked?(o=r,a=o._error!==void 0?Ye.error:o._data!==void 0?Ye.success:Ye.pending):(a=Ye.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),o=r.then(i=>Object.defineProperty(r,"_data",{get:()=>i}),i=>Object.defineProperty(r,"_error",{get:()=>i})));if(a===Ye.error&&o._error instanceof Gn)throw zv;if(a===Ye.error&&!n)throw o._error;if(a===Ye.error)return k.createElement(fa.Provider,{value:o,children:n});if(a===Ye.success)return k.createElement(fa.Provider,{value:o,children:t});throw o}}});function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ae.apply(this,arguments)}function od(e){e===void 0&&(e={});function t(r,o){let{pathname:a,search:i,hash:l}=r.location;return eo("",{pathname:a,search:i,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:to(o)}return Vv(t,n,null,e)}function B(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Bv(){return Math.random().toString(36).substr(2,8)}function Wc(e,t){return{usr:e.state,key:e.key,idx:t}}function eo(e,t,n,r){return n===void 0&&(n=null),ae({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Tn(t):t,{state:n,key:t&&t.key||r||Bv()})}function to(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Tn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Vv(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,l=me.Pop,s=null,u=c();u==null&&(u=0,i.replaceState(ae({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function p(){l=me.Pop;let D=c(),f=D==null?null:D-u;u=D,s&&s({action:l,location:w.location,delta:f})}function m(D,f){l=me.Push;let h=eo(w.location,D,f);n&&n(h,D),u=c()+1;let v=Wc(h,u),d=w.createHref(h);try{i.pushState(v,"",d)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(d)}a&&s&&s({action:l,location:w.location,delta:1})}function R(D,f){l=me.Replace;let h=eo(w.location,D,f);n&&n(h,D),u=c();let v=Wc(h,u),d=w.createHref(h);i.replaceState(v,"",d),a&&s&&s({action:l,location:w.location,delta:0})}function y(D){let f=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof D=="string"?D:to(D);return B(f,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,f)}let w={get action(){return l},get location(){return e(o,i)},listen(D){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener($c,p),s=D,()=>{o.removeEventListener($c,p),s=null}},createHref(D){return t(o,D)},createURL:y,encodeLocation(D){let f=y(D);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:R,go(D){return i.go(D)}};return w}function Wv(e){return e.index===!0}function kl(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,a)=>{let i=[...n,a],l=typeof o.id=="string"?o.id:i.join("-");if(B(o.index!==!0||!o.children,"Cannot specify children on an index route"),B(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Wv(o)){let s=ae({},o,t(o),{id:l});return r[l]=s,s}else{let s=ae({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=kl(o.children,t,i,r)),s}})}function Gr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Tn(t):t,o=ut(r.pathname||"/",n);if(o==null)return null;let a=ad(e);Qv(a);let i=null;for(let l=0;i==null&&l<a.length;++l)i=ng(a[l],og(o));return i}function Kv(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function ad(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,i,l)=>{let s={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};s.relativePath.startsWith("/")&&(B(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=kn([r,s.relativePath]),c=n.concat(s);a.children&&a.children.length>0&&(B(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ad(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:eg(u,a.index),routesMeta:c})};return e.forEach((a,i)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,i);else for(let s of id(a.path))o(a,i,s)}),t}function id(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=id(r.join("/")),l=[];return l.push(...i.map(s=>s===""?a:[a,s].join("/"))),o&&l.push(...i),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function Qv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tg(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}function eg(e,t){let n=e.split("/"),r=n.length;return n.some(Kc)&&(r+=qv),t&&(r+=Xv),n.filter(o=>!Kc(o)).reduce((o,a)=>o+(Yv.test(a)?Jv:a===""?Gv:Zv),r)}function tg(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function ng(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let i=0;i<n.length;++i){let l=n[i],s=i===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",c=ga({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u);if(!c)return null;Object.assign(r,c.params);let p=l.route;a.push({params:r,pathname:kn([o,c.pathname]),pathnameBase:ug(kn([o,c.pathnameBase])),route:p}),c.pathnameBase!=="/"&&(o=kn([o,c.pathnameBase]))}return a}function ga(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=rg(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,c,p)=>{let{paramName:m,isOptional:R}=c;if(m==="*"){let w=l[p]||"";i=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}let y=l[p];return R&&!y?u[m]=void 0:u[m]=ag(y||"",m),u},{}),pathname:a,pathnameBase:i,pattern:e}}function rg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Mn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(i,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function og(e){try{return decodeURI(e)}catch(t){return Mn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ag(e,t){try{return decodeURIComponent(e)}catch(n){return Mn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ut(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function ig(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Tn(e):e;return{pathname:n?n.startsWith("/")?n:lg(n,t):t,search:cg(r),hash:dg(o)}}function lg(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Pl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function ld(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function sg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Tn(e):(o=ae({},e),B(!o.pathname||!o.pathname.includes("?"),Pl("?","pathname","search",o)),B(!o.pathname||!o.pathname.includes("#"),Pl("#","pathname","hash",o)),B(!o.search||!o.search.includes("#"),Pl("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(r||i==null)l=n;else{let p=t.length-1;if(i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;o.pathname=m.join("/")}l=p>=0?t[p]:"/"}let s=ig(o,l),u=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}function fg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function dd(e){let t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;B(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let g=e.detectErrorBoundary;o=E=>({hasErrorBoundary:g(E)})}else o=yg;let a={},i=kl(e.routes,o,void 0,a),l,s=e.basename||"/",u=ae({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,p=new Set,m=null,R=null,y=null,w=e.hydrationData!=null,D=Gr(i,e.history.location,s),f=null;if(D==null){let g=Ge(404,{pathname:e.history.location.pathname}),{matches:E,route:_}=ed(i);D=E,f={[_.id]:g}}let h=!D.some(g=>g.route.lazy)&&(!D.some(g=>g.route.loader)||e.hydrationData!=null),v,d={historyAction:e.history.action,location:e.history.location,matches:D,initialized:h,navigation:Ll,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||f,fetchers:new Map,blockers:new Map},S=me.Pop,P=!1,x,L=!1,b=new Map,U=null,W=!1,ke=!1,Zo=[],qo=[],de=new Map,ea=0,Ur=-1,Yn=new Map,Dt=new Set,Jn=new Map,jr=new Map,yn=new Set,wn=new Map,Rn=new Map,el=!1;function Om(){if(c=e.history.listen(g=>{let{action:E,location:_,delta:T}=g;if(el){el=!1;return}Mn(Rn.size===0||T!=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 A=mc({currentLocation:d.location,nextLocation:_,historyAction:E});if(A&&T!=null){el=!0,e.history.go(T*-1),na(A,{state:"blocked",location:_,proceed(){na(A,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),e.history.go(T)},reset(){let j=new Map(d.blockers);j.set(A,Qr),fe({blockers:j})}});return}return En(E,_)}),n){Ng(t,b);let g=()=>kg(t,b);t.addEventListener("pagehide",g),U=()=>t.removeEventListener("pagehide",g)}return d.initialized||En(me.Pop,d.location),v}function Fm(){c&&c(),U&&U(),p.clear(),x&&x.abort(),d.fetchers.forEach((g,E)=>ta(E)),d.blockers.forEach((g,E)=>pc(E))}function Am(g){return p.add(g),()=>p.delete(g)}function fe(g,E){d=ae({},d,g);let _=[],T=[];u.v7_fetcherPersist&&d.fetchers.forEach((A,j)=>{A.state==="idle"&&(yn.has(j)?T.push(j):_.push(j))}),p.forEach(A=>A(d,{deletedFetchers:T,unstable_viewTransitionOpts:E})),u.v7_fetcherPersist&&(_.forEach(A=>d.fetchers.delete(A)),T.forEach(A=>ta(A)))}function Ir(g,E){var _,T;let A=d.actionData!=null&&d.navigation.formMethod!=null&&st(d.navigation.formMethod)&&d.navigation.state==="loading"&&((_=g.state)==null?void 0:_._isRedirect)!==!0,j;E.actionData?Object.keys(E.actionData).length>0?j=E.actionData:j=null:A?j=d.actionData:j=null;let z=E.loaderData?qc(d.loaderData,E.loaderData,E.matches||[],E.errors):d.loaderData,I=d.blockers;I.size>0&&(I=new Map(I),I.forEach((te,V)=>I.set(V,Qr)));let F=P===!0||d.navigation.formMethod!=null&&st(d.navigation.formMethod)&&((T=g.state)==null?void 0:T._isRedirect)!==!0;l&&(i=l,l=void 0),W||S===me.Pop||(S===me.Push?e.history.push(g,g.state):S===me.Replace&&e.history.replace(g,g.state));let Y;if(S===me.Pop){let te=b.get(d.location.pathname);te&&te.has(g.pathname)?Y={currentLocation:d.location,nextLocation:g}:b.has(g.pathname)&&(Y={currentLocation:g,nextLocation:d.location})}else if(L){let te=b.get(d.location.pathname);te?te.add(g.pathname):(te=new Set([g.pathname]),b.set(d.location.pathname,te)),Y={currentLocation:d.location,nextLocation:g}}fe(ae({},E,{actionData:j,loaderData:z,historyAction:S,location:g,initialized:!0,navigation:Ll,revalidation:"idle",restoreScrollPosition:gc(g,E.matches||d.matches),preventScrollReset:F,blockers:I}),Y),S=me.Pop,P=!1,L=!1,W=!1,ke=!1,Zo=[],qo=[]}async function sc(g,E){if(typeof g=="number"){e.history.go(g);return}let _=Ml(d.location,d.matches,s,u.v7_prependBasename,g,E?.fromRouteId,E?.relative),{path:T,submission:A,error:j}=Qc(u.v7_normalizeFormMethod,!1,_,E),z=d.location,I=eo(d.location,T,E&&E.state);I=ae({},I,e.history.encodeLocation(I));let F=E&&E.replace!=null?E.replace:void 0,Y=me.Push;F===!0?Y=me.Replace:F===!1||A!=null&&st(A.formMethod)&&A.formAction===d.location.pathname+d.location.search&&(Y=me.Replace);let te=E&&"preventScrollReset"in E?E.preventScrollReset===!0:void 0,V=mc({currentLocation:z,nextLocation:I,historyAction:Y});if(V){na(V,{state:"blocked",location:I,proceed(){na(V,{state:"proceeding",proceed:void 0,reset:void 0,location:I}),sc(g,E)},reset(){let J=new Map(d.blockers);J.set(V,Qr),fe({blockers:J})}});return}return await En(Y,I,{submission:A,pendingError:j,preventScrollReset:te,replace:E&&E.replace,enableViewTransition:E&&E.unstable_viewTransition})}function Um(){if(tl(),fe({revalidation:"loading"}),d.navigation.state!=="submitting"){if(d.navigation.state==="idle"){En(d.historyAction,d.location,{startUninterruptedRevalidation:!0});return}En(S||d.historyAction,d.navigation.location,{overrideNavigation:d.navigation})}}async function En(g,E,_){x&&x.abort(),x=null,S=g,W=(_&&_.startUninterruptedRevalidation)===!0,Wm(d.location,d.matches),P=(_&&_.preventScrollReset)===!0,L=(_&&_.enableViewTransition)===!0;let T=l||i,A=_&&_.overrideNavigation,j=Gr(T,E,s);if(!j){let J=Ge(404,{pathname:E.pathname}),{matches:pe,route:Sn}=ed(T);nl(),Ir(E,{matches:pe,loaderData:{},errors:{[Sn.id]:J}});return}if(d.initialized&&!ke&&xg(d.location,E)&&!(_&&_.submission&&st(_.submission.formMethod))){Ir(E,{matches:j});return}x=new AbortController;let z=Jr(e.history,E,x.signal,_&&_.submission),I,F;if(_&&_.pendingError)F={[Zr(j).route.id]:_.pendingError};else if(_&&_.submission&&st(_.submission.formMethod)){let J=await jm(z,E,_.submission,j,{replace:_.replace});if(J.shortCircuited)return;I=J.pendingActionData,F=J.pendingActionError,A=Nl(E,_.submission),z=new Request(z.url,{signal:z.signal})}let{shortCircuited:Y,loaderData:te,errors:V}=await Im(z,E,j,A,_&&_.submission,_&&_.fetcherSubmission,_&&_.replace,I,F);Y||(x=null,Ir(E,ae({matches:j},I?{actionData:I}:{},{loaderData:te,errors:V})))}async function jm(g,E,_,T,A){A===void 0&&(A={}),tl();let j=Pg(E,_);fe({navigation:j});let z,I=Ol(T,E);if(!I.route.action&&!I.route.lazy)z={type:se.error,error:Ge(405,{method:g.method,pathname:E.pathname,routeId:I.route.id})};else if(z=await Yr("action",g,I,T,a,o,s),g.signal.aborted)return{shortCircuited:!0};if(tr(z)){let F;return A&&A.replace!=null?F=A.replace:F=z.location===d.location.pathname+d.location.search,await br(d,z,{submission:_,replace:F}),{shortCircuited:!0}}if(qr(z)){let F=Zr(T,I.route.id);return(A&&A.replace)!==!0&&(S=me.Push),{pendingActionData:{},pendingActionError:{[F.route.id]:z.error}}}if(Nn(z))throw Ge(400,{type:"defer-action"});return{pendingActionData:{[I.route.id]:z.data}}}async function Im(g,E,_,T,A,j,z,I,F){let Y=T||Nl(E,A),te=A||j||rd(Y),V=l||i,[J,pe]=Yc(e.history,d,_,te,E,ke,Zo,qo,Jn,Dt,V,s,I,F);if(nl(Q=>!(_&&_.some(it=>it.route.id===Q))||J&&J.some(it=>it.route.id===Q)),Ur=++ea,J.length===0&&pe.length===0){let Q=fc();return Ir(E,ae({matches:_,loaderData:{},errors:F||null},I?{actionData:I}:{},Q?{fetchers:new Map(d.fetchers)}:{})),{shortCircuited:!0}}if(!W){pe.forEach(it=>{let Bt=d.fetchers.get(it.key),le=Xr(void 0,Bt?Bt.data:void 0);d.fetchers.set(it.key,le)});let Q=I||d.actionData;fe(ae({navigation:Y},Q?Object.keys(Q).length===0?{actionData:null}:{actionData:Q}:{},pe.length>0?{fetchers:new Map(d.fetchers)}:{}))}pe.forEach(Q=>{de.has(Q.key)&&zt(Q.key),Q.controller&&de.set(Q.key,Q.controller)});let Sn=()=>pe.forEach(Q=>zt(Q.key));x&&x.signal.addEventListener("abort",Sn);let{results:xn,loaderResults:Hr,fetcherResults:rl}=await cc(d.matches,_,J,pe,g);if(g.signal.aborted)return{shortCircuited:!0};x&&x.signal.removeEventListener("abort",Sn),pe.forEach(Q=>de.delete(Q.key));let Ct=td(xn);if(Ct){if(Ct.idx>=J.length){let Q=pe[Ct.idx-J.length].key;Dt.add(Q)}return await br(d,Ct.result,{replace:z}),{shortCircuited:!0}}let{loaderData:Ht,errors:ra}=Zc(d,_,J,Hr,F,pe,rl,wn);wn.forEach((Q,it)=>{Q.subscribe(Bt=>{(Bt||Q.done)&&wn.delete(it)})});let ol=fc(),al=hc(Ur),il=ol||al||pe.length>0;return ae({loaderData:Ht,errors:ra},il?{fetchers:new Map(d.fetchers)}:{})}function uc(g){return u.v7_fetcherPersist&&(jr.set(g,(jr.get(g)||0)+1),yn.has(g)&&yn.delete(g)),d.fetchers.get(g)||Fl}function bm(g,E,_,T){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");de.has(g)&&zt(g);let A=l||i,j=Ml(d.location,d.matches,s,u.v7_prependBasename,_,E,T?.relative),z=Gr(A,j,s);if(!z){zr(g,E,Ge(404,{pathname:j}));return}let{path:I,submission:F,error:Y}=Qc(u.v7_normalizeFormMethod,!0,j,T);if(Y){zr(g,E,Y);return}let te=Ol(z,I);if(P=(T&&T.preventScrollReset)===!0,F&&st(F.formMethod)){zm(g,E,I,te,z,F);return}Jn.set(g,{routeId:E,path:I}),Hm(g,E,I,te,z,F)}async function zm(g,E,_,T,A,j){if(tl(),Jn.delete(g),!T.route.action&&!T.route.lazy){let le=Ge(405,{method:j.formMethod,pathname:_,routeId:E});zr(g,E,le);return}let z=d.fetchers.get(g),I=Lg(j,z);d.fetchers.set(g,I),fe({fetchers:new Map(d.fetchers)});let F=new AbortController,Y=Jr(e.history,_,F.signal,j);de.set(g,F);let te=ea,V=await Yr("action",Y,T,A,a,o,s);if(Y.signal.aborted){de.get(g)===F&&de.delete(g);return}if(yn.has(g)){d.fetchers.set(g,Qt(void 0)),fe({fetchers:new Map(d.fetchers)});return}if(tr(V))if(de.delete(g),Ur>te){let le=Qt(void 0);d.fetchers.set(g,le),fe({fetchers:new Map(d.fetchers)});return}else{Dt.add(g);let le=Xr(j);return d.fetchers.set(g,le),fe({fetchers:new Map(d.fetchers)}),br(d,V,{fetcherSubmission:j})}if(qr(V)){zr(g,E,V.error);return}if(Nn(V))throw Ge(400,{type:"defer-action"});let J=d.navigation.location||d.location,pe=Jr(e.history,J,F.signal),Sn=l||i,xn=d.navigation.state!=="idle"?Gr(Sn,d.navigation.location,s):d.matches;B(xn,"Didn't find any matches after fetcher action");let Hr=++ea;Yn.set(g,Hr);let rl=Xr(j,V.data);d.fetchers.set(g,rl);let[Ct,Ht]=Yc(e.history,d,xn,j,J,ke,Zo,qo,Jn,Dt,Sn,s,{[T.route.id]:V.data},void 0);Ht.filter(le=>le.key!==g).forEach(le=>{let Br=le.key,yc=d.fetchers.get(Br),Qm=Xr(void 0,yc?yc.data:void 0);d.fetchers.set(Br,Qm),de.has(Br)&&zt(Br),le.controller&&de.set(Br,le.controller)}),fe({fetchers:new Map(d.fetchers)});let ra=()=>Ht.forEach(le=>zt(le.key));F.signal.addEventListener("abort",ra);let{results:ol,loaderResults:al,fetcherResults:il}=await cc(d.matches,xn,Ct,Ht,pe);if(F.signal.aborted)return;F.signal.removeEventListener("abort",ra),Yn.delete(g),de.delete(g),Ht.forEach(le=>de.delete(le.key));let Q=td(ol);if(Q){if(Q.idx>=Ct.length){let le=Ht[Q.idx-Ct.length].key;Dt.add(le)}return br(d,Q.result)}let{loaderData:it,errors:Bt}=Zc(d,d.matches,Ct,al,void 0,Ht,il,wn);if(d.fetchers.has(g)){let le=Qt(V.data);d.fetchers.set(g,le)}hc(Hr),d.navigation.state==="loading"&&Hr>Ur?(B(S,"Expected pending action"),x&&x.abort(),Ir(d.navigation.location,{matches:xn,loaderData:it,errors:Bt,fetchers:new Map(d.fetchers)})):(fe({errors:Bt,loaderData:qc(d.loaderData,it,xn,Bt),fetchers:new Map(d.fetchers)}),ke=!1)}async function Hm(g,E,_,T,A,j){let z=d.fetchers.get(g),I=Xr(j,z?z.data:void 0);d.fetchers.set(g,I),fe({fetchers:new Map(d.fetchers)});let F=new AbortController,Y=Jr(e.history,_,F.signal);de.set(g,F);let te=ea,V=await Yr("loader",Y,T,A,a,o,s);if(Nn(V)&&(V=await pd(V,Y.signal,!0)||V),de.get(g)===F&&de.delete(g),Y.signal.aborted)return;if(yn.has(g)){d.fetchers.set(g,Qt(void 0)),fe({fetchers:new Map(d.fetchers)});return}if(tr(V))if(Ur>te){let pe=Qt(void 0);d.fetchers.set(g,pe),fe({fetchers:new Map(d.fetchers)});return}else{Dt.add(g),await br(d,V);return}if(qr(V)){zr(g,E,V.error);return}B(!Nn(V),"Unhandled fetcher deferred data");let J=Qt(V.data);d.fetchers.set(g,J),fe({fetchers:new Map(d.fetchers)})}async function br(g,E,_){let{submission:T,fetcherSubmission:A,replace:j}=_===void 0?{}:_;E.revalidate&&(ke=!0);let z=eo(g.location,E.location,{_isRedirect:!0});if(B(z,"Expected a location on the redirect navigation"),n){let J=!1;if(E.reloadDocument)J=!0;else if(ud.test(E.location)){let pe=e.history.createURL(E.location);J=pe.origin!==t.location.origin||ut(pe.pathname,s)==null}if(J){j?t.location.replace(E.location):t.location.assign(E.location);return}}x=null;let I=j===!0?me.Replace:me.Push,{formMethod:F,formAction:Y,formEncType:te}=g.navigation;!T&&!A&&F&&Y&&te&&(T=rd(g.navigation));let V=T||A;if(gg.has(E.status)&&V&&st(V.formMethod))await En(I,z,{submission:ae({},V,{formAction:E.location}),preventScrollReset:P});else{let J=Nl(z,T);await En(I,z,{overrideNavigation:J,fetcherSubmission:A,preventScrollReset:P})}}async function cc(g,E,_,T,A){let j=await Promise.all([..._.map(F=>Yr("loader",A,F,E,a,o,s)),...T.map(F=>F.matches&&F.match&&F.controller?Yr("loader",Jr(e.history,F.path,F.controller.signal),F.match,F.matches,a,o,s):{type:se.error,error:Ge(404,{pathname:F.path})})]),z=j.slice(0,_.length),I=j.slice(_.length);return await Promise.all([nd(g,_,z,z.map(()=>A.signal),!1,d.loaderData),nd(g,T.map(F=>F.match),I,T.map(F=>F.controller?F.controller.signal:null),!0)]),{results:j,loaderResults:z,fetcherResults:I}}function tl(){ke=!0,Zo.push(...nl()),Jn.forEach((g,E)=>{de.has(E)&&(qo.push(E),zt(E))})}function zr(g,E,_){let T=Zr(d.matches,E);ta(g),fe({errors:{[T.route.id]:_},fetchers:new Map(d.fetchers)})}function ta(g){let E=d.fetchers.get(g);de.has(g)&&!(E&&E.state==="loading"&&Yn.has(g))&&zt(g),Jn.delete(g),Yn.delete(g),Dt.delete(g),yn.delete(g),d.fetchers.delete(g)}function Bm(g){if(u.v7_fetcherPersist){let E=(jr.get(g)||0)-1;E<=0?(jr.delete(g),yn.add(g)):jr.set(g,E)}else ta(g);fe({fetchers:new Map(d.fetchers)})}function zt(g){let E=de.get(g);B(E,"Expected fetch controller: "+g),E.abort(),de.delete(g)}function dc(g){for(let E of g){let _=uc(E),T=Qt(_.data);d.fetchers.set(E,T)}}function fc(){let g=[],E=!1;for(let _ of Dt){let T=d.fetchers.get(_);B(T,"Expected fetcher: "+_),T.state==="loading"&&(Dt.delete(_),g.push(_),E=!0)}return dc(g),E}function hc(g){let E=[];for(let[_,T]of Yn)if(T<g){let A=d.fetchers.get(_);B(A,"Expected fetcher: "+_),A.state==="loading"&&(zt(_),Yn.delete(_),E.push(_))}return dc(E),E.length>0}function Vm(g,E){let _=d.blockers.get(g)||Qr;return Rn.get(g)!==E&&Rn.set(g,E),_}function pc(g){d.blockers.delete(g),Rn.delete(g)}function na(g,E){let _=d.blockers.get(g)||Qr;B(_.state==="unblocked"&&E.state==="blocked"||_.state==="blocked"&&E.state==="blocked"||_.state==="blocked"&&E.state==="proceeding"||_.state==="blocked"&&E.state==="unblocked"||_.state==="proceeding"&&E.state==="unblocked","Invalid blocker state transition: "+_.state+" -> "+E.state);let T=new Map(d.blockers);T.set(g,E),fe({blockers:T})}function mc(g){let{currentLocation:E,nextLocation:_,historyAction:T}=g;if(Rn.size===0)return;Rn.size>1&&Mn(!1,"A router only supports one blocker at a time");let A=Array.from(Rn.entries()),[j,z]=A[A.length-1],I=d.blockers.get(j);if(!(I&&I.state==="proceeding")&&z({currentLocation:E,nextLocation:_,historyAction:T}))return j}function nl(g){let E=[];return wn.forEach((_,T)=>{(!g||g(T))&&(_.cancel(),E.push(T),wn.delete(T))}),E}function $m(g,E,_){if(m=g,y=E,R=_||null,!w&&d.navigation===Ll){w=!0;let T=gc(d.location,d.matches);T!=null&&fe({restoreScrollPosition:T})}return()=>{m=null,y=null,R=null}}function vc(g,E){return R&&R(g,E.map(T=>Kv(T,d.loaderData)))||g.key}function Wm(g,E){if(m&&y){let _=vc(g,E);m[_]=y()}}function gc(g,E){if(m){let _=vc(g,E),T=m[_];if(typeof T=="number")return T}return null}function Km(g){a={},l=kl(g,o,void 0,a)}return v={get basename(){return s},get state(){return d},get routes(){return i},get window(){return t},initialize:Om,subscribe:Am,enableScrollRestoration:$m,navigate:sc,fetch:bm,revalidate:Um,createHref:g=>e.history.createHref(g),encodeLocation:g=>e.history.encodeLocation(g),getFetcher:uc,deleteFetcher:Bm,dispose:Fm,getBlocker:Vm,deleteBlocker:pc,_internalFetchControllers:de,_internalActiveDeferreds:wn,_internalSetRoutes:Km},v}function wg(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ml(e,t,n,r,o,a,i){let l,s;if(a!=null&&i!=="path"){l=[];for(let c of t)if(l.push(c),c.route.id===a){s=c;break}}else l=t,s=t[t.length-1];let u=sg(o||".",ld(l).map(c=>c.pathnameBase),ut(e.pathname,n)||e.pathname,i==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&s&&s.route.index&&!Al(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:kn([n,u.pathname])),to(u)}function Qc(e,t,n,r){if(!r||!wg(r))return{path:n};if(r.formMethod&&!Cg(r.formMethod))return{path:n,error:Ge(405,{method:r.formMethod})};let o=()=>({path:n,error:Ge(400,{type:"invalid-body"})}),a=r.formMethod||"get",i=e?a.toUpperCase():a.toLowerCase(),l=hd(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!st(i))return o();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((R,y)=>{let[w,D]=y;return""+R+w+"="+D+`
1
+ import{a as oa,b as Vt,c as _n}from"/build/_shared/chunk-Q3IECNXJ.js";var Nc=Vt(H=>{"use strict";var Vr=Symbol.for("react.element"),Ym=Symbol.for("react.portal"),Jm=Symbol.for("react.fragment"),Xm=Symbol.for("react.strict_mode"),Gm=Symbol.for("react.profiler"),Zm=Symbol.for("react.provider"),qm=Symbol.for("react.context"),ev=Symbol.for("react.forward_ref"),tv=Symbol.for("react.suspense"),nv=Symbol.for("react.memo"),rv=Symbol.for("react.lazy"),wc=Symbol.iterator;function ov(e){return e===null||typeof e!="object"?null:(e=wc&&e[wc]||e["@@iterator"],typeof e=="function"?e:null)}var Sc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xc=Object.assign,_c={};function Xn(e,t,n){this.props=e,this.context=t,this.refs=_c,this.updater=n||Sc}Xn.prototype.isReactComponent={};Xn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Xn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dc(){}Dc.prototype=Xn.prototype;function sl(e,t,n){this.props=e,this.context=t,this.refs=_c,this.updater=n||Sc}var ul=sl.prototype=new Dc;ul.constructor=sl;xc(ul,Xn.prototype);ul.isPureReactComponent=!0;var Rc=Array.isArray,Cc=Object.prototype.hasOwnProperty,cl={current:null},Pc={key:!0,ref:!0,__self:!0,__source:!0};function Lc(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)Cc.call(t,r)&&!Pc.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Vr,type:e,key:a,ref:i,props:o,_owner:cl.current}}function av(e,t){return{$$typeof:Vr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dl(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vr}function iv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ec=/\/+/g;function ll(e,t){return typeof e=="object"&&e!==null&&e.key!=null?iv(""+e.key):t.toString(36)}function ia(e,t,n,r,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Vr:case Ym:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+ll(i,0):r,Rc(o)?(n="",e!=null&&(n=e.replace(Ec,"$&/")+"/"),ia(o,t,n,"",function(u){return u})):o!=null&&(dl(o)&&(o=av(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Ec,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Rc(e))for(var l=0;l<e.length;l++){a=e[l];var s=r+ll(a,l);i+=ia(a,t,n,s,o)}else if(s=ov(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=r+ll(a,l++),i+=ia(a,t,n,s,o);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function aa(e,t,n){if(e==null)return e;var r=[],o=0;return ia(e,r,"","",function(a){return t.call(n,a,o++)}),r}function lv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Me={current:null},la={transition:null},sv={ReactCurrentDispatcher:Me,ReactCurrentBatchConfig:la,ReactCurrentOwner:cl};H.Children={map:aa,forEach:function(e,t,n){aa(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return aa(e,function(){t++}),t},toArray:function(e){return aa(e,function(t){return t})||[]},only:function(e){if(!dl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};H.Component=Xn;H.Fragment=Jm;H.Profiler=Gm;H.PureComponent=sl;H.StrictMode=Xm;H.Suspense=tv;H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sv;H.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=xc({},e.props),o=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=cl.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Cc.call(t,s)&&!Pc.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Vr,type:e.type,key:o,ref:a,props:r,_owner:i}};H.createContext=function(e){return e={$$typeof:qm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Zm,_context:e},e.Consumer=e};H.createElement=Lc;H.createFactory=function(e){var t=Lc.bind(null,e);return t.type=e,t};H.createRef=function(){return{current:null}};H.forwardRef=function(e){return{$$typeof:ev,render:e}};H.isValidElement=dl;H.lazy=function(e){return{$$typeof:rv,_payload:{_status:-1,_result:e},_init:lv}};H.memo=function(e,t){return{$$typeof:nv,type:e,compare:t===void 0?null:t}};H.startTransition=function(e){var t=la.transition;la.transition={};try{e()}finally{la.transition=t}};H.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};H.useCallback=function(e,t){return Me.current.useCallback(e,t)};H.useContext=function(e){return Me.current.useContext(e)};H.useDebugValue=function(){};H.useDeferredValue=function(e){return Me.current.useDeferredValue(e)};H.useEffect=function(e,t){return Me.current.useEffect(e,t)};H.useId=function(){return Me.current.useId()};H.useImperativeHandle=function(e,t,n){return Me.current.useImperativeHandle(e,t,n)};H.useInsertionEffect=function(e,t){return Me.current.useInsertionEffect(e,t)};H.useLayoutEffect=function(e,t){return Me.current.useLayoutEffect(e,t)};H.useMemo=function(e,t){return Me.current.useMemo(e,t)};H.useReducer=function(e,t,n){return Me.current.useReducer(e,t,n)};H.useRef=function(e){return Me.current.useRef(e)};H.useState=function(e){return Me.current.useState(e)};H.useSyncExternalStore=function(e,t,n){return Me.current.useSyncExternalStore(e,t,n)};H.useTransition=function(){return Me.current.useTransition()};H.version="18.2.0"});var yt=Vt((Yw,kc)=>{"use strict";kc.exports=Nc()});function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sa.apply(this,arguments)}function Re(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function hl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Cn(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function lt(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $t(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?lt(t):t,o=pl(r.pathname||"/",n);if(o==null)return null;let a=Fc(e);uv(a);let i=null;for(let l=0;i==null&&l<a.length;++l)i=yv(a[l],Rv(o));return i}function Oc(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function Fc(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,i,l)=>{let s={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};s.relativePath.startsWith("/")&&(Re(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Pt([r,s.relativePath]),c=n.concat(s);a.children&&a.children.length>0&&(Re(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Fc(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:vv(u,a.index),routesMeta:c})};return e.forEach((a,i)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,i);else for(let s of Ac(a.path))o(a,i,s)}),t}function Ac(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=Ac(r.join("/")),l=[];return l.push(...i.map(s=>s===""?a:[a,s].join("/"))),o&&l.push(...i),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function uv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}function vv(e,t){let n=e.split("/"),r=n.length;return n.some(Tc)&&(r+=mv),t&&(r+=fv),n.filter(o=>!Tc(o)).reduce((o,a)=>o+(cv.test(a)?dv:a===""?hv:pv),r)}function gv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function yv(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let i=0;i<n.length;++i){let l=n[i],s=i===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",c=$r({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u);if(!c)return null;Object.assign(r,c.params);let p=l.route;a.push({params:r,pathname:Pt([o,c.pathname]),pathnameBase:xv(Pt([o,c.pathnameBase])),route:p}),c.pathnameBase!=="/"&&(o=Pt([o,c.pathnameBase]))}return a}function $r(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=wv(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,c,p)=>{let{paramName:m,isOptional:R}=c;if(m==="*"){let w=l[p]||"";i=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}let y=l[p];return R&&!y?u[m]=void 0:u[m]=Ev(y||"",m),u},{}),pathname:a,pathnameBase:i,pattern:e}}function wv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),hl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(i,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Rv(e){try{return decodeURI(e)}catch(t){return hl(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ev(e,t){try{return decodeURIComponent(e)}catch(n){return hl(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function pl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function ua(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?lt(e):e;return{pathname:n?n.startsWith("/")?n:Sv(n,t):t,search:_v(r),hash:Dv(o)}}function Sv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function fl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function ml(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function vl(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=lt(e):(o=sa({},e),Re(!o.pathname||!o.pathname.includes("?"),fl("?","pathname","search",o)),Re(!o.pathname||!o.pathname.includes("#"),fl("#","pathname","hash",o)),Re(!o.search||!o.search.includes("#"),fl("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(r||i==null)l=n;else{let p=t.length-1;if(i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;o.pathname=m.join("/")}l=p>=0?t[p]:"/"}let s=ua(o,l),u=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}function Pn(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Dn,Mc,cv,dv,fv,hv,pv,mv,Tc,Pt,xv,_v,Dv,Gn,ca,Uc,Jw,Cv,Xw,Gw,gl=oa(()=>{(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Dn||(Dn={}));(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Mc||(Mc={}));cv=/^:\w+$/,dv=3,fv=2,hv=1,pv=10,mv=-2,Tc=e=>e==="*";Pt=e=>e.join("/").replace(/\/\/+/g,"/"),xv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_v=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Dv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Gn=class extends Error{},ca=function(t,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let o=new Headers(r.headers);return o.set("Location",t),new Response(null,sa({},r,{headers:o}))};Uc=["post","put","patch","delete"],Jw=new Set(Uc),Cv=["get",...Uc],Xw=new Set(Cv),Gw=Symbol("deferred")});function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},da.apply(this,arguments)}function Ln(e,t){let{relative:n}=t===void 0?{}:t;Zn()||Re(!1);let{basename:r,navigator:o}=k.useContext(Je),{hash:a,pathname:i,search:l}=Kt(e,{relative:n}),s=i;return r!=="/"&&(s=i==="/"?r:Pt([r,i])),o.createHref({pathname:s,search:l,hash:a})}function Zn(){return k.useContext(Wr)!=null}function Te(){return Zn()||Re(!1),k.useContext(Wr).location}function bc(e){k.useContext(Je).static||k.useLayoutEffect(e)}function ha(){let{isDataRoute:e}=k.useContext(Xe);return e?Iv():kv()}function kv(){Zn()||Re(!1);let e=k.useContext(Nt),{basename:t,navigator:n}=k.useContext(Je),{matches:r}=k.useContext(Xe),{pathname:o}=Te(),a=JSON.stringify(ml(r).map(s=>s.pathnameBase)),i=k.useRef(!1);return bc(()=>{i.current=!0}),k.useCallback(function(s,u){if(u===void 0&&(u={}),!i.current)return;if(typeof s=="number"){n.go(s);return}let c=vl(s,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Pt([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,a,o,e])}function Rl(e){let t=k.useContext(Xe).outlet;return t&&k.createElement(Mv.Provider,{value:e},t)}function Kt(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=k.useContext(Xe),{pathname:o}=Te(),a=JSON.stringify(ml(r).map(i=>i.pathnameBase));return k.useMemo(()=>vl(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function zc(e,t,n){Zn()||Re(!1);let{navigator:r}=k.useContext(Je),{matches:o}=k.useContext(Xe),a=o[o.length-1],i=a?a.params:{},l=a?a.pathname:"/",s=a?a.pathnameBase:"/",u=a&&a.route,c=Te(),p;if(t){var m;let f=typeof t=="string"?lt(t):t;s==="/"||(m=f.pathname)!=null&&m.startsWith(s)||Re(!1),p=f}else p=c;let R=p.pathname||"/",y=s==="/"?R:R.slice(s.length)||"/",w=$t(e,{pathname:y}),D=Av(w&&w.map(f=>Object.assign({},f,{params:Object.assign({},i,f.params),pathname:Pt([s,r.encodeLocation?r.encodeLocation(f.pathname).pathname:f.pathname]),pathnameBase:f.pathnameBase==="/"?s:Pt([s,r.encodeLocation?r.encodeLocation(f.pathnameBase).pathname:f.pathnameBase])})),o,n);return t&&D?k.createElement(Wr.Provider,{value:{location:da({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:Dn.Pop}},D):D}function Tv(){let e=Kr(),t=Pn(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:o},n):null,null)}function Fv(e){let{routeContext:t,match:n,children:r}=e,o=k.useContext(Nt);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Xe.Provider,{value:t},r)}function Av(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,i=(r=n)==null?void 0:r.errors;if(i!=null){let l=a.findIndex(s=>s.route.id&&i?.[s.route.id]);l>=0||Re(!1),a=a.slice(0,Math.min(a.length,l+1))}return a.reduceRight((l,s,u)=>{let c=s.route.id?i?.[s.route.id]:null,p=null;n&&(p=s.route.errorElement||Ov);let m=t.concat(a.slice(0,u+1)),R=()=>{let y;return c?y=p:s.route.Component?y=k.createElement(s.route.Component,null):s.route.element?y=s.route.element:y=l,k.createElement(Fv,{match:s,routeContext:{outlet:l,matches:m,isDataRoute:n!=null},children:y})};return n&&(s.route.ErrorBoundary||s.route.errorElement||u===0)?k.createElement(yl,{location:n.location,revalidation:n.revalidation,component:p,error:c,children:R(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):R()},null)}function Uv(e){let t=k.useContext(Nt);return t||Re(!1),t}function pa(e){let t=k.useContext(Wt);return t||Re(!1),t}function jv(e){let t=k.useContext(Xe);return t||Re(!1),t}function ma(e){let t=jv(e),n=t.matches[t.matches.length-1];return n.route.id||Re(!1),n.route.id}function El(){return ma(Lt.UseRouteId)}function qn(){return pa(Lt.UseNavigation).navigation}function er(){let{matches:e,loaderData:t}=pa(Lt.UseMatches);return k.useMemo(()=>e.map(n=>Oc(n,t)),[e,t])}function Sl(){let e=pa(Lt.UseLoaderData),t=ma(Lt.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function Kr(){var e;let t=k.useContext(Ic),n=pa(Lt.UseRouteError),r=ma(Lt.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function xl(){let e=k.useContext(fa);return e?._data}function va(){let e=k.useContext(fa);return e?._error}function Iv(){let{router:e}=Uv(Hc.UseNavigateStable),t=ma(Lt.UseNavigateStable),n=k.useRef(!1);return bc(()=>{n.current=!0}),k.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,da({fromRouteId:t},a)))},[e,t])}function Bc(e){return Rl(e.context)}function _l(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Dn.Pop,navigator:a,static:i=!1}=e;Zn()&&Re(!1);let l=t.replace(/^\/*/,"/"),s=k.useMemo(()=>({basename:l,navigator:a,static:i}),[l,a,i]);typeof r=="string"&&(r=lt(r));let{pathname:u="/",search:c="",hash:p="",state:m=null,key:R="default"}=r,y=k.useMemo(()=>{let w=pl(u,l);return w==null?null:{location:{pathname:w,search:c,hash:p,state:m,key:R},navigationType:o}},[l,u,c,p,m,R,o]);return y==null?null:k.createElement(Je.Provider,{value:s},k.createElement(Wr.Provider,{children:n,value:y}))}function Dl(e){let{children:t,errorElement:n,resolve:r}=e;return k.createElement(wl,{resolve:r,errorElement:n},k.createElement(Hv,null,t))}function Hv(e){let{children:t}=e,n=xl(),r=typeof t=="function"?t(n):t;return k.createElement(k.Fragment,null,r)}function Vc(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:k.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:k.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}var k,Nt,Wt,fa,Je,Wr,Xe,Ic,Mv,Ov,yl,Hc,Lt,bv,oR,Ye,zv,wl,Cl=oa(()=>{k=_n(yt());gl();gl();Nt=k.createContext(null),Wt=k.createContext(null),fa=k.createContext(null),Je=k.createContext(null),Wr=k.createContext(null),Xe=k.createContext({outlet:null,matches:[],isDataRoute:!1}),Ic=k.createContext(null);Mv=k.createContext(null);Ov=k.createElement(Tv,null),yl=class extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?k.createElement(Xe.Provider,{value:this.props.routeContext},k.createElement(Ic.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};Hc=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Hc||{}),Lt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Lt||{});bv="startTransition",oR=k[bv];Ye=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(Ye||{}),zv=new Promise(()=>{}),wl=class extends k.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){console.error("<Await> caught the following error during render",t,n)}render(){let{children:t,errorElement:n,resolve:r}=this.props,o=null,a=Ye.pending;if(!(r instanceof Promise))a=Ye.success,o=Promise.resolve(),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_data",{get:()=>r});else if(this.state.error){a=Ye.error;let i=this.state.error;o=Promise.reject().catch(()=>{}),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_error",{get:()=>i})}else r._tracked?(o=r,a=o._error!==void 0?Ye.error:o._data!==void 0?Ye.success:Ye.pending):(a=Ye.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),o=r.then(i=>Object.defineProperty(r,"_data",{get:()=>i}),i=>Object.defineProperty(r,"_error",{get:()=>i})));if(a===Ye.error&&o._error instanceof Gn)throw zv;if(a===Ye.error&&!n)throw o._error;if(a===Ye.error)return k.createElement(fa.Provider,{value:o,children:n});if(a===Ye.success)return k.createElement(fa.Provider,{value:o,children:t});throw o}}});function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ae.apply(this,arguments)}function od(e){e===void 0&&(e={});function t(r,o){let{pathname:a,search:i,hash:l}=r.location;return eo("",{pathname:a,search:i,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:to(o)}return Vv(t,n,null,e)}function B(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Bv(){return Math.random().toString(36).substr(2,8)}function Wc(e,t){return{usr:e.state,key:e.key,idx:t}}function eo(e,t,n,r){return n===void 0&&(n=null),ae({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Tn(t):t,{state:n,key:t&&t.key||r||Bv()})}function to(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Tn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Vv(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,l=me.Pop,s=null,u=c();u==null&&(u=0,i.replaceState(ae({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function p(){l=me.Pop;let D=c(),f=D==null?null:D-u;u=D,s&&s({action:l,location:w.location,delta:f})}function m(D,f){l=me.Push;let h=eo(w.location,D,f);n&&n(h,D),u=c()+1;let v=Wc(h,u),d=w.createHref(h);try{i.pushState(v,"",d)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(d)}a&&s&&s({action:l,location:w.location,delta:1})}function R(D,f){l=me.Replace;let h=eo(w.location,D,f);n&&n(h,D),u=c();let v=Wc(h,u),d=w.createHref(h);i.replaceState(v,"",d),a&&s&&s({action:l,location:w.location,delta:0})}function y(D){let f=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof D=="string"?D:to(D);return B(f,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,f)}let w={get action(){return l},get location(){return e(o,i)},listen(D){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener($c,p),s=D,()=>{o.removeEventListener($c,p),s=null}},createHref(D){return t(o,D)},createURL:y,encodeLocation(D){let f=y(D);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:R,go(D){return i.go(D)}};return w}function Wv(e){return e.index===!0}function kl(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,a)=>{let i=[...n,a],l=typeof o.id=="string"?o.id:i.join("-");if(B(o.index!==!0||!o.children,"Cannot specify children on an index route"),B(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Wv(o)){let s=ae({},o,t(o),{id:l});return r[l]=s,s}else{let s=ae({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=kl(o.children,t,i,r)),s}})}function Gr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Tn(t):t,o=ut(r.pathname||"/",n);if(o==null)return null;let a=ad(e);Qv(a);let i=null;for(let l=0;i==null&&l<a.length;++l)i=ng(a[l],og(o));return i}function Kv(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function ad(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,i,l)=>{let s={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};s.relativePath.startsWith("/")&&(B(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=kn([r,s.relativePath]),c=n.concat(s);a.children&&a.children.length>0&&(B(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ad(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:eg(u,a.index),routesMeta:c})};return e.forEach((a,i)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,i);else for(let s of id(a.path))o(a,i,s)}),t}function id(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=id(r.join("/")),l=[];return l.push(...i.map(s=>s===""?a:[a,s].join("/"))),o&&l.push(...i),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function Qv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tg(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}function eg(e,t){let n=e.split("/"),r=n.length;return n.some(Kc)&&(r+=qv),t&&(r+=Xv),n.filter(o=>!Kc(o)).reduce((o,a)=>o+(Yv.test(a)?Jv:a===""?Gv:Zv),r)}function tg(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function ng(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let i=0;i<n.length;++i){let l=n[i],s=i===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",c=ga({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u);if(!c)return null;Object.assign(r,c.params);let p=l.route;a.push({params:r,pathname:kn([o,c.pathname]),pathnameBase:ug(kn([o,c.pathnameBase])),route:p}),c.pathnameBase!=="/"&&(o=kn([o,c.pathnameBase]))}return a}function ga(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=rg(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,c,p)=>{let{paramName:m,isOptional:R}=c;if(m==="*"){let w=l[p]||"";i=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}let y=l[p];return R&&!y?u[m]=void 0:u[m]=ag(y||"",m),u},{}),pathname:a,pathnameBase:i,pattern:e}}function rg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Mn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(i,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function og(e){try{return decodeURI(e)}catch(t){return Mn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ag(e,t){try{return decodeURIComponent(e)}catch(n){return Mn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ut(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function ig(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Tn(e):e;return{pathname:n?n.startsWith("/")?n:lg(n,t):t,search:cg(r),hash:dg(o)}}function lg(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Pl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function ld(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function sg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Tn(e):(o=ae({},e),B(!o.pathname||!o.pathname.includes("?"),Pl("?","pathname","search",o)),B(!o.pathname||!o.pathname.includes("#"),Pl("#","pathname","hash",o)),B(!o.search||!o.search.includes("#"),Pl("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(r||i==null)l=n;else{let p=t.length-1;if(i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;o.pathname=m.join("/")}l=p>=0?t[p]:"/"}let s=ig(o,l),u=i&&i!=="/"&&i.endsWith("/"),c=(a||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}function fg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function dd(e){let t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;B(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let g=e.detectErrorBoundary;o=E=>({hasErrorBoundary:g(E)})}else o=yg;let a={},i=kl(e.routes,o,void 0,a),l,s=e.basename||"/",u=ae({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,p=new Set,m=null,R=null,y=null,w=e.hydrationData!=null,D=Gr(i,e.history.location,s),f=null;if(D==null){let g=Ge(404,{pathname:e.history.location.pathname}),{matches:E,route:_}=ed(i);D=E,f={[_.id]:g}}let h=!D.some(g=>g.route.lazy)&&(!D.some(g=>g.route.loader)||e.hydrationData!=null),v,d={historyAction:e.history.action,location:e.history.location,matches:D,initialized:h,navigation:Ll,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||f,fetchers:new Map,blockers:new Map},S=me.Pop,P=!1,x,L=!1,b=new Map,U=null,W=!1,ke=!1,Zo=[],qo=[],de=new Map,ea=0,Ur=-1,Yn=new Map,Dt=new Set,Jn=new Map,jr=new Map,yn=new Set,wn=new Map,Rn=new Map,el=!1;function Om(){if(c=e.history.listen(g=>{let{action:E,location:_,delta:T}=g;if(el){el=!1;return}Mn(Rn.size===0||T!=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 A=mc({currentLocation:d.location,nextLocation:_,historyAction:E});if(A&&T!=null){el=!0,e.history.go(T*-1),na(A,{state:"blocked",location:_,proceed(){na(A,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),e.history.go(T)},reset(){let j=new Map(d.blockers);j.set(A,Qr),fe({blockers:j})}});return}return En(E,_)}),n){Ng(t,b);let g=()=>kg(t,b);t.addEventListener("pagehide",g),U=()=>t.removeEventListener("pagehide",g)}return d.initialized||En(me.Pop,d.location),v}function Fm(){c&&c(),U&&U(),p.clear(),x&&x.abort(),d.fetchers.forEach((g,E)=>ta(E)),d.blockers.forEach((g,E)=>pc(E))}function Am(g){return p.add(g),()=>p.delete(g)}function fe(g,E){d=ae({},d,g);let _=[],T=[];u.v7_fetcherPersist&&d.fetchers.forEach((A,j)=>{A.state==="idle"&&(yn.has(j)?T.push(j):_.push(j))}),p.forEach(A=>A(d,{deletedFetchers:T,unstable_viewTransitionOpts:E})),u.v7_fetcherPersist&&(_.forEach(A=>d.fetchers.delete(A)),T.forEach(A=>ta(A)))}function Ir(g,E){var _,T;let A=d.actionData!=null&&d.navigation.formMethod!=null&&st(d.navigation.formMethod)&&d.navigation.state==="loading"&&((_=g.state)==null?void 0:_._isRedirect)!==!0,j;E.actionData?Object.keys(E.actionData).length>0?j=E.actionData:j=null:A?j=d.actionData:j=null;let z=E.loaderData?qc(d.loaderData,E.loaderData,E.matches||[],E.errors):d.loaderData,I=d.blockers;I.size>0&&(I=new Map(I),I.forEach((te,V)=>I.set(V,Qr)));let F=P===!0||d.navigation.formMethod!=null&&st(d.navigation.formMethod)&&((T=g.state)==null?void 0:T._isRedirect)!==!0;l&&(i=l,l=void 0),W||S===me.Pop||(S===me.Push?e.history.push(g,g.state):S===me.Replace&&e.history.replace(g,g.state));let Y;if(S===me.Pop){let te=b.get(d.location.pathname);te&&te.has(g.pathname)?Y={currentLocation:d.location,nextLocation:g}:b.has(g.pathname)&&(Y={currentLocation:g,nextLocation:d.location})}else if(L){let te=b.get(d.location.pathname);te?te.add(g.pathname):(te=new Set([g.pathname]),b.set(d.location.pathname,te)),Y={currentLocation:d.location,nextLocation:g}}fe(ae({},E,{actionData:j,loaderData:z,historyAction:S,location:g,initialized:!0,navigation:Ll,revalidation:"idle",restoreScrollPosition:gc(g,E.matches||d.matches),preventScrollReset:F,blockers:I}),Y),S=me.Pop,P=!1,L=!1,W=!1,ke=!1,Zo=[],qo=[]}async function sc(g,E){if(typeof g=="number"){e.history.go(g);return}let _=Ml(d.location,d.matches,s,u.v7_prependBasename,g,E?.fromRouteId,E?.relative),{path:T,submission:A,error:j}=Qc(u.v7_normalizeFormMethod,!1,_,E),z=d.location,I=eo(d.location,T,E&&E.state);I=ae({},I,e.history.encodeLocation(I));let F=E&&E.replace!=null?E.replace:void 0,Y=me.Push;F===!0?Y=me.Replace:F===!1||A!=null&&st(A.formMethod)&&A.formAction===d.location.pathname+d.location.search&&(Y=me.Replace);let te=E&&"preventScrollReset"in E?E.preventScrollReset===!0:void 0,V=mc({currentLocation:z,nextLocation:I,historyAction:Y});if(V){na(V,{state:"blocked",location:I,proceed(){na(V,{state:"proceeding",proceed:void 0,reset:void 0,location:I}),sc(g,E)},reset(){let J=new Map(d.blockers);J.set(V,Qr),fe({blockers:J})}});return}return await En(Y,I,{submission:A,pendingError:j,preventScrollReset:te,replace:E&&E.replace,enableViewTransition:E&&E.unstable_viewTransition})}function Um(){if(tl(),fe({revalidation:"loading"}),d.navigation.state!=="submitting"){if(d.navigation.state==="idle"){En(d.historyAction,d.location,{startUninterruptedRevalidation:!0});return}En(S||d.historyAction,d.navigation.location,{overrideNavigation:d.navigation})}}async function En(g,E,_){x&&x.abort(),x=null,S=g,W=(_&&_.startUninterruptedRevalidation)===!0,Wm(d.location,d.matches),P=(_&&_.preventScrollReset)===!0,L=(_&&_.enableViewTransition)===!0;let T=l||i,A=_&&_.overrideNavigation,j=Gr(T,E,s);if(!j){let J=Ge(404,{pathname:E.pathname}),{matches:pe,route:Sn}=ed(T);nl(),Ir(E,{matches:pe,loaderData:{},errors:{[Sn.id]:J}});return}if(d.initialized&&!ke&&xg(d.location,E)&&!(_&&_.submission&&st(_.submission.formMethod))){Ir(E,{matches:j});return}x=new AbortController;let z=Jr(e.history,E,x.signal,_&&_.submission),I,F;if(_&&_.pendingError)F={[Zr(j).route.id]:_.pendingError};else if(_&&_.submission&&st(_.submission.formMethod)){let J=await jm(z,E,_.submission,j,{replace:_.replace});if(J.shortCircuited)return;I=J.pendingActionData,F=J.pendingActionError,A=Nl(E,_.submission),z=new Request(z.url,{signal:z.signal})}let{shortCircuited:Y,loaderData:te,errors:V}=await Im(z,E,j,A,_&&_.submission,_&&_.fetcherSubmission,_&&_.replace,I,F);Y||(x=null,Ir(E,ae({matches:j},I?{actionData:I}:{},{loaderData:te,errors:V})))}async function jm(g,E,_,T,A){A===void 0&&(A={}),tl();let j=Pg(E,_);fe({navigation:j});let z,I=Ol(T,E);if(!I.route.action&&!I.route.lazy)z={type:se.error,error:Ge(405,{method:g.method,pathname:E.pathname,routeId:I.route.id})};else if(z=await Yr("action",g,I,T,a,o,s),g.signal.aborted)return{shortCircuited:!0};if(tr(z)){let F;return A&&A.replace!=null?F=A.replace:F=z.location===d.location.pathname+d.location.search,await br(d,z,{submission:_,replace:F}),{shortCircuited:!0}}if(qr(z)){let F=Zr(T,I.route.id);return(A&&A.replace)!==!0&&(S=me.Push),{pendingActionData:{},pendingActionError:{[F.route.id]:z.error}}}if(Nn(z))throw Ge(400,{type:"defer-action"});return{pendingActionData:{[I.route.id]:z.data}}}async function Im(g,E,_,T,A,j,z,I,F){let Y=T||Nl(E,A),te=A||j||rd(Y),V=l||i,[J,pe]=Yc(e.history,d,_,te,E,ke,Zo,qo,Jn,Dt,V,s,I,F);if(nl(Q=>!(_&&_.some(it=>it.route.id===Q))||J&&J.some(it=>it.route.id===Q)),Ur=++ea,J.length===0&&pe.length===0){let Q=fc();return Ir(E,ae({matches:_,loaderData:{},errors:F||null},I?{actionData:I}:{},Q?{fetchers:new Map(d.fetchers)}:{})),{shortCircuited:!0}}if(!W){pe.forEach(it=>{let Bt=d.fetchers.get(it.key),le=Xr(void 0,Bt?Bt.data:void 0);d.fetchers.set(it.key,le)});let Q=I||d.actionData;fe(ae({navigation:Y},Q?Object.keys(Q).length===0?{actionData:null}:{actionData:Q}:{},pe.length>0?{fetchers:new Map(d.fetchers)}:{}))}pe.forEach(Q=>{de.has(Q.key)&&zt(Q.key),Q.controller&&de.set(Q.key,Q.controller)});let Sn=()=>pe.forEach(Q=>zt(Q.key));x&&x.signal.addEventListener("abort",Sn);let{results:xn,loaderResults:Hr,fetcherResults:rl}=await cc(d.matches,_,J,pe,g);if(g.signal.aborted)return{shortCircuited:!0};x&&x.signal.removeEventListener("abort",Sn),pe.forEach(Q=>de.delete(Q.key));let Ct=td(xn);if(Ct){if(Ct.idx>=J.length){let Q=pe[Ct.idx-J.length].key;Dt.add(Q)}return await br(d,Ct.result,{replace:z}),{shortCircuited:!0}}let{loaderData:Ht,errors:ra}=Zc(d,_,J,Hr,F,pe,rl,wn);wn.forEach((Q,it)=>{Q.subscribe(Bt=>{(Bt||Q.done)&&wn.delete(it)})});let ol=fc(),al=hc(Ur),il=ol||al||pe.length>0;return ae({loaderData:Ht,errors:ra},il?{fetchers:new Map(d.fetchers)}:{})}function uc(g){return u.v7_fetcherPersist&&(jr.set(g,(jr.get(g)||0)+1),yn.has(g)&&yn.delete(g)),d.fetchers.get(g)||Fl}function bm(g,E,_,T){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");de.has(g)&&zt(g);let A=l||i,j=Ml(d.location,d.matches,s,u.v7_prependBasename,_,E,T?.relative),z=Gr(A,j,s);if(!z){zr(g,E,Ge(404,{pathname:j}));return}let{path:I,submission:F,error:Y}=Qc(u.v7_normalizeFormMethod,!0,j,T);if(Y){zr(g,E,Y);return}let te=Ol(z,I);if(P=(T&&T.preventScrollReset)===!0,F&&st(F.formMethod)){zm(g,E,I,te,z,F);return}Jn.set(g,{routeId:E,path:I}),Hm(g,E,I,te,z,F)}async function zm(g,E,_,T,A,j){if(tl(),Jn.delete(g),!T.route.action&&!T.route.lazy){let le=Ge(405,{method:j.formMethod,pathname:_,routeId:E});zr(g,E,le);return}let z=d.fetchers.get(g),I=Lg(j,z);d.fetchers.set(g,I),fe({fetchers:new Map(d.fetchers)});let F=new AbortController,Y=Jr(e.history,_,F.signal,j);de.set(g,F);let te=ea,V=await Yr("action",Y,T,A,a,o,s);if(Y.signal.aborted){de.get(g)===F&&de.delete(g);return}if(yn.has(g)){d.fetchers.set(g,Qt(void 0)),fe({fetchers:new Map(d.fetchers)});return}if(tr(V))if(de.delete(g),Ur>te){let le=Qt(void 0);d.fetchers.set(g,le),fe({fetchers:new Map(d.fetchers)});return}else{Dt.add(g);let le=Xr(j);return d.fetchers.set(g,le),fe({fetchers:new Map(d.fetchers)}),br(d,V,{fetcherSubmission:j})}if(qr(V)){zr(g,E,V.error);return}if(Nn(V))throw Ge(400,{type:"defer-action"});let J=d.navigation.location||d.location,pe=Jr(e.history,J,F.signal),Sn=l||i,xn=d.navigation.state!=="idle"?Gr(Sn,d.navigation.location,s):d.matches;B(xn,"Didn't find any matches after fetcher action");let Hr=++ea;Yn.set(g,Hr);let rl=Xr(j,V.data);d.fetchers.set(g,rl);let[Ct,Ht]=Yc(e.history,d,xn,j,J,ke,Zo,qo,Jn,Dt,Sn,s,{[T.route.id]:V.data},void 0);Ht.filter(le=>le.key!==g).forEach(le=>{let Br=le.key,yc=d.fetchers.get(Br),Qm=Xr(void 0,yc?yc.data:void 0);d.fetchers.set(Br,Qm),de.has(Br)&&zt(Br),le.controller&&de.set(Br,le.controller)}),fe({fetchers:new Map(d.fetchers)});let ra=()=>Ht.forEach(le=>zt(le.key));F.signal.addEventListener("abort",ra);let{results:ol,loaderResults:al,fetcherResults:il}=await cc(d.matches,xn,Ct,Ht,pe);if(F.signal.aborted)return;F.signal.removeEventListener("abort",ra),Yn.delete(g),de.delete(g),Ht.forEach(le=>de.delete(le.key));let Q=td(ol);if(Q){if(Q.idx>=Ct.length){let le=Ht[Q.idx-Ct.length].key;Dt.add(le)}return br(d,Q.result)}let{loaderData:it,errors:Bt}=Zc(d,d.matches,Ct,al,void 0,Ht,il,wn);if(d.fetchers.has(g)){let le=Qt(V.data);d.fetchers.set(g,le)}hc(Hr),d.navigation.state==="loading"&&Hr>Ur?(B(S,"Expected pending action"),x&&x.abort(),Ir(d.navigation.location,{matches:xn,loaderData:it,errors:Bt,fetchers:new Map(d.fetchers)})):(fe({errors:Bt,loaderData:qc(d.loaderData,it,xn,Bt),fetchers:new Map(d.fetchers)}),ke=!1)}async function Hm(g,E,_,T,A,j){let z=d.fetchers.get(g),I=Xr(j,z?z.data:void 0);d.fetchers.set(g,I),fe({fetchers:new Map(d.fetchers)});let F=new AbortController,Y=Jr(e.history,_,F.signal);de.set(g,F);let te=ea,V=await Yr("loader",Y,T,A,a,o,s);if(Nn(V)&&(V=await pd(V,Y.signal,!0)||V),de.get(g)===F&&de.delete(g),Y.signal.aborted)return;if(yn.has(g)){d.fetchers.set(g,Qt(void 0)),fe({fetchers:new Map(d.fetchers)});return}if(tr(V))if(Ur>te){let pe=Qt(void 0);d.fetchers.set(g,pe),fe({fetchers:new Map(d.fetchers)});return}else{Dt.add(g),await br(d,V);return}if(qr(V)){zr(g,E,V.error);return}B(!Nn(V),"Unhandled fetcher deferred data");let J=Qt(V.data);d.fetchers.set(g,J),fe({fetchers:new Map(d.fetchers)})}async function br(g,E,_){let{submission:T,fetcherSubmission:A,replace:j}=_===void 0?{}:_;E.revalidate&&(ke=!0);let z=eo(g.location,E.location,{_isRedirect:!0});if(B(z,"Expected a location on the redirect navigation"),n){let J=!1;if(E.reloadDocument)J=!0;else if(ud.test(E.location)){let pe=e.history.createURL(E.location);J=pe.origin!==t.location.origin||ut(pe.pathname,s)==null}if(J){j?t.location.replace(E.location):t.location.assign(E.location);return}}x=null;let I=j===!0?me.Replace:me.Push,{formMethod:F,formAction:Y,formEncType:te}=g.navigation;!T&&!A&&F&&Y&&te&&(T=rd(g.navigation));let V=T||A;if(gg.has(E.status)&&V&&st(V.formMethod))await En(I,z,{submission:ae({},V,{formAction:E.location}),preventScrollReset:P});else{let J=Nl(z,T);await En(I,z,{overrideNavigation:J,fetcherSubmission:A,preventScrollReset:P})}}async function cc(g,E,_,T,A){let j=await Promise.all([..._.map(F=>Yr("loader",A,F,E,a,o,s)),...T.map(F=>F.matches&&F.match&&F.controller?Yr("loader",Jr(e.history,F.path,F.controller.signal),F.match,F.matches,a,o,s):{type:se.error,error:Ge(404,{pathname:F.path})})]),z=j.slice(0,_.length),I=j.slice(_.length);return await Promise.all([nd(g,_,z,z.map(()=>A.signal),!1,d.loaderData),nd(g,T.map(F=>F.match),I,T.map(F=>F.controller?F.controller.signal:null),!0)]),{results:j,loaderResults:z,fetcherResults:I}}function tl(){ke=!0,Zo.push(...nl()),Jn.forEach((g,E)=>{de.has(E)&&(qo.push(E),zt(E))})}function zr(g,E,_){let T=Zr(d.matches,E);ta(g),fe({errors:{[T.route.id]:_},fetchers:new Map(d.fetchers)})}function ta(g){let E=d.fetchers.get(g);de.has(g)&&!(E&&E.state==="loading"&&Yn.has(g))&&zt(g),Jn.delete(g),Yn.delete(g),Dt.delete(g),yn.delete(g),d.fetchers.delete(g)}function Bm(g){if(u.v7_fetcherPersist){let E=(jr.get(g)||0)-1;E<=0?(jr.delete(g),yn.add(g)):jr.set(g,E)}else ta(g);fe({fetchers:new Map(d.fetchers)})}function zt(g){let E=de.get(g);B(E,"Expected fetch controller: "+g),E.abort(),de.delete(g)}function dc(g){for(let E of g){let _=uc(E),T=Qt(_.data);d.fetchers.set(E,T)}}function fc(){let g=[],E=!1;for(let _ of Dt){let T=d.fetchers.get(_);B(T,"Expected fetcher: "+_),T.state==="loading"&&(Dt.delete(_),g.push(_),E=!0)}return dc(g),E}function hc(g){let E=[];for(let[_,T]of Yn)if(T<g){let A=d.fetchers.get(_);B(A,"Expected fetcher: "+_),A.state==="loading"&&(zt(_),Yn.delete(_),E.push(_))}return dc(E),E.length>0}function Vm(g,E){let _=d.blockers.get(g)||Qr;return Rn.get(g)!==E&&Rn.set(g,E),_}function pc(g){d.blockers.delete(g),Rn.delete(g)}function na(g,E){let _=d.blockers.get(g)||Qr;B(_.state==="unblocked"&&E.state==="blocked"||_.state==="blocked"&&E.state==="blocked"||_.state==="blocked"&&E.state==="proceeding"||_.state==="blocked"&&E.state==="unblocked"||_.state==="proceeding"&&E.state==="unblocked","Invalid blocker state transition: "+_.state+" -> "+E.state);let T=new Map(d.blockers);T.set(g,E),fe({blockers:T})}function mc(g){let{currentLocation:E,nextLocation:_,historyAction:T}=g;if(Rn.size===0)return;Rn.size>1&&Mn(!1,"A router only supports one blocker at a time");let A=Array.from(Rn.entries()),[j,z]=A[A.length-1],I=d.blockers.get(j);if(!(I&&I.state==="proceeding")&&z({currentLocation:E,nextLocation:_,historyAction:T}))return j}function nl(g){let E=[];return wn.forEach((_,T)=>{(!g||g(T))&&(_.cancel(),E.push(T),wn.delete(T))}),E}function $m(g,E,_){if(m=g,y=E,R=_||null,!w&&d.navigation===Ll){w=!0;let T=gc(d.location,d.matches);T!=null&&fe({restoreScrollPosition:T})}return()=>{m=null,y=null,R=null}}function vc(g,E){return R&&R(g,E.map(T=>Kv(T,d.loaderData)))||g.key}function Wm(g,E){if(m&&y){let _=vc(g,E);m[_]=y()}}function gc(g,E){if(m){let _=vc(g,E),T=m[_];if(typeof T=="number")return T}return null}function Km(g){a={},l=kl(g,o,void 0,a)}return v={get basename(){return s},get state(){return d},get routes(){return i},get window(){return t},initialize:Om,subscribe:Am,enableScrollRestoration:$m,navigate:sc,fetch:bm,revalidate:Um,createHref:g=>e.history.createHref(g),encodeLocation:g=>e.history.encodeLocation(g),getFetcher:uc,deleteFetcher:Bm,dispose:Fm,getBlocker:Vm,deleteBlocker:pc,_internalFetchControllers:de,_internalActiveDeferreds:wn,_internalSetRoutes:Km},v}function wg(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ml(e,t,n,r,o,a,i){let l,s;if(a!=null&&i!=="path"){l=[];for(let c of t)if(l.push(c),c.route.id===a){s=c;break}}else l=t,s=t[t.length-1];let u=sg(o||".",ld(l).map(c=>c.pathnameBase),ut(e.pathname,n)||e.pathname,i==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&s&&s.route.index&&!Al(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:kn([n,u.pathname])),to(u)}function Qc(e,t,n,r){if(!r||!wg(r))return{path:n};if(r.formMethod&&!Cg(r.formMethod))return{path:n,error:Ge(405,{method:r.formMethod})};let o=()=>({path:n,error:Ge(400,{type:"invalid-body"})}),a=r.formMethod||"get",i=e?a.toUpperCase():a.toLowerCase(),l=hd(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!st(i))return o();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((R,y)=>{let[w,D]=y;return""+R+w+"="+D+`
2
2
  `},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!st(i))return o();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:l,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return o()}}}B(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=Tl(r.formData),u=r.formData;else if(r.body instanceof FormData)s=Tl(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=Gc(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=Gc(s)}catch{return o()}let c={formMethod:i,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(st(c.formMethod))return{path:n,submission:c};let p=Tn(n);return t&&p.search&&Al(p.search)&&s.append("index",""),p.search="?"+s,{path:to(p),submission:c}}function Rg(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Yc(e,t,n,r,o,a,i,l,s,u,c,p,m,R){let y=R?Object.values(R)[0]:m?Object.values(m)[0]:void 0,w=e.createURL(t.location),D=e.createURL(o),f=R?Object.keys(R)[0]:void 0,v=Rg(n,f).filter((S,P)=>{if(S.route.lazy)return!0;if(S.route.loader==null)return!1;if(Eg(t.loaderData,t.matches[P],S)||i.some(b=>b===S.route.id))return!0;let x=t.matches[P],L=S;return Jc(S,ae({currentUrl:w,currentParams:x.params,nextUrl:D,nextParams:L.params},r,{actionResult:y,defaultShouldRevalidate:a||w.pathname+w.search===D.pathname+D.search||w.search!==D.search||fd(x,L)}))}),d=[];return s.forEach((S,P)=>{if(!n.some(W=>W.route.id===S.routeId))return;let x=Gr(c,S.path,p);if(!x){d.push({key:P,routeId:S.routeId,path:S.path,matches:null,match:null,controller:null});return}let L=t.fetchers.get(P),b=Ol(x,S.path),U=!1;u.has(P)?U=!1:l.includes(P)?U=!0:L&&L.state!=="idle"&&L.data===void 0?U=a:U=Jc(b,ae({currentUrl:w,currentParams:t.matches[t.matches.length-1].params,nextUrl:D,nextParams:n[n.length-1].params},r,{actionResult:y,defaultShouldRevalidate:a})),U&&d.push({key:P,routeId:S.routeId,path:S.path,matches:x,match:b,controller:new AbortController})}),[v,d]}function Eg(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function fd(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Jc(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Xc(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];B(o,"No route found in manifest");let a={};for(let i in r){let s=o[i]!==void 0&&i!=="hasErrorBoundary";Mn(!s,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!s&&!$v.has(i)&&(a[i]=r[i])}Object.assign(o,a),Object.assign(o,ae({},t(o),{lazy:void 0}))}async function Yr(e,t,n,r,o,a,i,l){l===void 0&&(l={});let s,u,c,p=y=>{let w,D=new Promise((f,h)=>w=h);return c=()=>w(),t.signal.addEventListener("abort",c),Promise.race([y({request:t,params:n.params,context:l.requestContext}),D])};try{let y=n.route[e];if(n.route.lazy)if(y){let w,D=await Promise.all([p(y).catch(f=>{w=f}),Xc(n.route,a,o)]);if(w)throw w;u=D[0]}else if(await Xc(n.route,a,o),y=n.route[e],y)u=await p(y);else if(e==="action"){let w=new URL(t.url),D=w.pathname+w.search;throw Ge(405,{method:t.method,pathname:D,routeId:n.route.id})}else return{type:se.data,data:void 0};else if(y)u=await p(y);else{let w=new URL(t.url),D=w.pathname+w.search;throw Ge(404,{pathname:D})}B(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){s=se.error,u=y}finally{c&&t.signal.removeEventListener("abort",c)}if(Dg(u)){let y=u.status;if(vg.has(y)){let f=u.headers.get("Location");if(B(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!ud.test(f))f=Ml(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,f);else if(!l.isStaticRequest){let h=new URL(t.url),v=f.startsWith("//")?new URL(h.protocol+f):new URL(f),d=ut(v.pathname,i)!=null;v.origin===h.origin&&d&&(f=v.pathname+v.search+v.hash)}if(l.isStaticRequest)throw u.headers.set("Location",f),u;return{type:se.redirect,status:y,location:f,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:s===se.error?se.error:se.data,response:u};let w,D=u.headers.get("Content-Type");return D&&/\bapplication\/json\b/.test(D)?w=await u.json():w=await u.text(),s===se.error?{type:s,error:new nr(y,u.statusText,w),headers:u.headers}:{type:se.data,data:w,statusCode:u.status,headers:u.headers}}if(s===se.error)return{type:s,error:u};if(_g(u)){var m,R;return{type:se.deferred,deferredData:u,statusCode:(m=u.init)==null?void 0:m.status,headers:((R=u.init)==null?void 0:R.headers)&&new Headers(u.init.headers)}}return{type:se.data,data:u}}function Jr(e,t,n,r){let o=e.createURL(hd(t)).toString(),a={signal:n};if(r&&st(r.formMethod)){let{formMethod:i,formEncType:l}=r;a.method=i.toUpperCase(),l==="application/json"?(a.headers=new Headers({"Content-Type":l}),a.body=JSON.stringify(r.json)):l==="text/plain"?a.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?a.body=Tl(r.formData):a.body=r.formData}return new Request(o,a)}function Tl(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Gc(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Sg(e,t,n,r,o){let a={},i=null,l,s=!1,u={};return n.forEach((c,p)=>{let m=t[p].route.id;if(B(!tr(c),"Cannot handle redirect results in processLoaderData"),qr(c)){let R=Zr(e,m),y=c.error;r&&(y=Object.values(r)[0],r=void 0),i=i||{},i[R.route.id]==null&&(i[R.route.id]=y),a[m]=void 0,s||(s=!0,l=fg(c.error)?c.error.status:500),c.headers&&(u[m]=c.headers)}else Nn(c)?(o.set(m,c.deferredData),a[m]=c.deferredData.data):a[m]=c.data,c.statusCode!=null&&c.statusCode!==200&&!s&&(l=c.statusCode),c.headers&&(u[m]=c.headers)}),r&&(i=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:i,statusCode:l||200,loaderHeaders:u}}function Zc(e,t,n,r,o,a,i,l){let{loaderData:s,errors:u}=Sg(t,n,r,o,l);for(let c=0;c<a.length;c++){let{key:p,match:m,controller:R}=a[c];B(i!==void 0&&i[c]!==void 0,"Did not find corresponding fetcher result");let y=i[c];if(!(R&&R.signal.aborted))if(qr(y)){let w=Zr(e.matches,m?.route.id);u&&u[w.route.id]||(u=ae({},u,{[w.route.id]:y.error})),e.fetchers.delete(p)}else if(tr(y))B(!1,"Unhandled fetcher revalidation redirect");else if(Nn(y))B(!1,"Unhandled fetcher deferred data");else{let w=Qt(y.data);e.fetchers.set(p,w)}}return{loaderData:s,errors:u}}function qc(e,t,n,r){let o=ae({},t);for(let a of n){let i=a.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(o[i]=t[i]):e[i]!==void 0&&a.route.loader&&(o[i]=e[i]),r&&r.hasOwnProperty(i))break}return o}function Zr(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function ed(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ge(e,t){let{pathname:n,routeId:r,method:o,type:a}=t===void 0?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(i="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(i="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(i="Not Found",l='No route matches URL "'+n+'"'):e===405&&(i="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new nr(e||500,i,new Error(l),!0)}function td(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(tr(n))return{result:n,idx:t}}}function hd(e){let t=typeof e=="string"?Tn(e):e;return to(ae({},t,{hash:""}))}function xg(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Nn(e){return e.type===se.deferred}function qr(e){return e.type===se.error}function tr(e){return(e&&e.type)===se.redirect}function _g(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Dg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Cg(e){return mg.has(e.toLowerCase())}function st(e){return hg.has(e.toLowerCase())}async function nd(e,t,n,r,o,a){for(let i=0;i<n.length;i++){let l=n[i],s=t[i];if(!s)continue;let u=e.find(p=>p.route.id===s.route.id),c=u!=null&&!fd(u,s)&&(a&&a[s.route.id])!==void 0;if(Nn(l)&&(o||c)){let p=r[i];B(p,"Expected an AbortSignal for revalidating fetcher deferred result"),await pd(l,p,o).then(m=>{m&&(n[i]=m||n[i])})}}}async function pd(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:se.data,data:e.deferredData.unwrappedData}}catch(o){return{type:se.error,error:o}}return{type:se.data,data:e.deferredData.data}}}function Al(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ol(e,t){let n=typeof t=="string"?Tn(t).search:t.search;if(e[e.length-1].route.index&&Al(n||""))return e[e.length-1];let r=ld(e);return r[r.length-1]}function rd(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function Nl(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 Pg(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 Xr(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 Lg(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 Qt(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 Ng(e,t){try{let n=e.sessionStorage.getItem(cd);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function kg(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(cd,JSON.stringify(n))}catch(r){Mn(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}var me,$c,se,$v,Yv,Jv,Xv,Gv,Zv,qv,Kc,kn,ug,cg,dg,nr,sd,hg,pg,mg,vg,gg,Ll,Fl,Qr,ud,yg,cd,lR,md=oa(()=>{(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(me||(me={}));$c="popstate";(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(se||(se={}));$v=new Set(["lazy","caseSensitive","path","id","index","children"]);Yv=/^:\w+$/,Jv=3,Xv=2,Gv=1,Zv=10,qv=-2,Kc=e=>e==="*";kn=e=>e.join("/").replace(/\/\/+/g,"/"),ug=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,nr=class{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};sd=["post","put","patch","delete"],hg=new Set(sd),pg=["get",...sd],mg=new Set(pg),vg=new Set([301,302,303,307,308]),gg=new Set([307,308]),Ll={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Fl={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Qr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ud=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yg=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),cd="remix-router-transitions";lR=Symbol("deferred")});function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ze.apply(this,arguments)}function bl(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Sa(e){return e!=null&&typeof e.tagName=="string"}function bg(e){return Sa(e)&&e.tagName.toLowerCase()==="button"}function zg(e){return Sa(e)&&e.tagName.toLowerCase()==="form"}function Hg(e){return Sa(e)&&e.tagName.toLowerCase()==="input"}function Bg(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Vg(e,t){return e.button===0&&(!t||t==="_self")&&!Bg(e)}function $g(){if(ya===null)try{new FormData(document.createElement("form"),0),ya=!1}catch{ya=!0}return ya}function jl(e){return e!=null&&!Wg.has(e)?null:e}function Kg(e,t){let n,r,o,a,i;if(zg(e)){let l=e.getAttribute("action");r=l?ut(l,t):null,n=e.getAttribute("method")||Ra,o=jl(e.getAttribute("enctype"))||Ul,a=new FormData(e)}else if(bg(e)||Hg(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(r=s?ut(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Ra,o=jl(e.getAttribute("formenctype"))||jl(l.getAttribute("enctype"))||Ul,a=new FormData(l,e),!$g()){let{name:u,type:c,value:p}=e;if(c==="image"){let m=u?u+".":"";a.append(m+"x","0"),a.append(m+"y","0")}else u&&a.append(u,p)}}else{if(Sa(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ra,r=null,o=Ul,i=e}return a&&o==="text/plain"&&(i=a,a=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:a,body:i}}function wd(e,t){return dd({basename:t?.basename,future:Ze({},t?.future,{v7_prependBasename:!0}),history:od({window:t?.window}),hydrationData:t?.hydrationData||Xg(),routes:e,mapRouteProperties:Vc,window:t?.window}).initialize()}function Xg(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ze({},t,{errors:Gg(t.errors)})),t}function Gg(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new nr(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}function qg(e){vd?vd(e):e()}function Sd(e){let{fallbackElement:t,router:n,future:r}=e,[o,a]=M.useState(n.state),[i,l]=M.useState(),[s,u]=M.useState({isTransitioning:!1}),[c,p]=M.useState(),[m,R]=M.useState(),[y,w]=M.useState(),D=M.useRef(new Map),{v7_startTransition:f}=r||{},h=M.useCallback(x=>{f?qg(x):x()},[f]),v=M.useCallback((x,L)=>{let{deletedFetchers:b,unstable_viewTransitionOpts:U}=L;b.forEach(W=>D.current.delete(W)),x.fetchers.forEach((W,ke)=>{W.data!==void 0&&D.current.set(ke,W.data)}),!U||n.window==null||typeof n.window.document.startViewTransition!="function"?h(()=>a(x)):m&&c?(c.resolve(),m.skipTransition(),w({state:x,currentLocation:U.currentLocation,nextLocation:U.nextLocation})):(l(x),u({isTransitioning:!0,currentLocation:U.currentLocation,nextLocation:U.nextLocation}))},[n.window,m,c,D,h]);M.useLayoutEffect(()=>n.subscribe(v),[n,v]),M.useEffect(()=>{s.isTransitioning&&p(new Il)},[s.isTransitioning]),M.useEffect(()=>{if(c&&i&&n.window){let x=i,L=c.promise,b=n.window.document.startViewTransition(async()=>{h(()=>a(x)),await L});b.finished.finally(()=>{p(void 0),R(void 0),l(void 0),u({isTransitioning:!1})}),R(b)}},[h,i,c,n.window]),M.useEffect(()=>{c&&i&&o.location.key===i.location.key&&c.resolve()},[c,m,o.location,i]),M.useEffect(()=>{!s.isTransitioning&&y&&(l(y.state),u({isTransitioning:!0,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),w(void 0))},[s.isTransitioning,y]);let d=M.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:x=>n.navigate(x),push:(x,L,b)=>n.navigate(x,{state:L,preventScrollReset:b?.preventScrollReset}),replace:(x,L,b)=>n.navigate(x,{replace:!0,state:L,preventScrollReset:b?.preventScrollReset})}),[n]),S=n.basename||"/",P=M.useMemo(()=>({router:n,navigator:d,static:!1,basename:S}),[n,d,S]);return M.createElement(M.Fragment,null,M.createElement(Nt.Provider,{value:P},M.createElement(Wt.Provider,{value:o},M.createElement(Ed.Provider,{value:D.current},M.createElement(Rd.Provider,{value:s},M.createElement(_l,{basename:S,location:o.location,navigationType:o.historyAction,navigator:d},o.initialized?M.createElement(ey,{routes:n.routes,state:o}):t))))),null)}function ey(e){let{routes:t,state:n}=e;return zc(t,void 0,n)}function xa(e){let t=M.useContext(Nt);return t||B(!1),t}function Dd(e){let t=M.useContext(Wt);return t||B(!1),t}function ry(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:l}=t===void 0?{}:t,s=ha(),u=Te(),c=Kt(e,{relative:i});return M.useCallback(p=>{if(Vg(p,n)){p.preventDefault();let m=r!==void 0?r:Cn(u)===Cn(c);s(e,{replace:m,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:l})}},[u,s,c,r,o,n,e,a,i,l])}function oy(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function Hl(){let{router:e}=xa(rr.UseSubmit),{basename:t}=M.useContext(Je),n=El();return M.useCallback(function(r,o){o===void 0&&(o={}),oy();let{action:a,method:i,encType:l,formData:s,body:u}=Kg(r,t);if(o.navigate===!1){let c=o.fetcherKey||Cd();e.fetch(c,n,o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||i,formEncType:o.encType||l})}else e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||i,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,unstable_viewTransition:o.unstable_viewTransition})},[e,t,n])}function Pd(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=M.useContext(Je),o=M.useContext(Xe);o||B(!1);let[a]=o.matches.slice(-1),i=Ze({},Kt(e||".",{relative:n})),l=Te();if(e==null&&(i.search=l.search,a.route.index)){let s=new URLSearchParams(i.search);s.delete("index"),i.search=s.toString()?"?"+s.toString():""}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:kn([r,i.pathname])),Cn(i)}function Ld(e){var t;let{key:n}=e===void 0?{}:e,{router:r}=xa(rr.UseFetcher),o=Dd(Ea.UseFetcher),a=M.useContext(Ed),i=M.useContext(Xe),l=(t=i.matches[i.matches.length-1])==null?void 0:t.route.id;a||B(!1),i||B(!1),l==null&&B(!1);let[s,u]=M.useState(n||"");s||u(Cd()),M.useEffect(()=>(r.getFetcher(s),()=>{r.deleteFetcher(s)}),[r,s]);let c=M.useCallback(f=>{l||B(!1),r.fetch(s,l,f)},[s,l,r]),p=Hl(),m=M.useCallback((f,h)=>{p(f,Ze({},h,{navigate:!1,fetcherKey:s}))},[s,p]),R=M.useMemo(()=>M.forwardRef((h,v)=>M.createElement(_d,Ze({},h,{navigate:!1,fetcherKey:s,ref:v}))),[s]),y=o.fetchers.get(s)||Fl,w=a.get(s);return M.useMemo(()=>Ze({Form:R,submit:m,load:c},y,{data:w}),[R,m,c,y,w])}function Nd(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=xa(rr.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:a}=Dd(Ea.UseScrollRestoration),{basename:i}=M.useContext(Je),l=Te(),s=er(),u=qn();M.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),iy(M.useCallback(()=>{if(u.state==="idle"){let c=(t?t(l,s):null)||l.key;wa[c]=window.scrollY}try{sessionStorage.setItem(n||gd,JSON.stringify(wa))}catch{}window.history.scrollRestoration="auto"},[n,t,u.state,l,s])),typeof document<"u"&&(M.useLayoutEffect(()=>{try{let c=sessionStorage.getItem(n||gd);c&&(wa=JSON.parse(c))}catch{}},[n]),M.useLayoutEffect(()=>{let c=t&&i!=="/"?(m,R)=>t(Ze({},m,{pathname:ut(m.pathname,i)||m.pathname}),R):t,p=r?.enableScrollRestoration(wa,()=>window.scrollY,c);return()=>p&&p()},[r,i,t]),M.useLayoutEffect(()=>{if(o!==!1){if(typeof o=="number"){window.scrollTo(0,o);return}if(l.hash){let c=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(c){c.scrollIntoView();return}}a!==!0&&window.scrollTo(0,0)}},[l,o,a]))}function iy(e,t){let{capture:n}=t||{};M.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}function kd(e,t){t===void 0&&(t={});let n=M.useContext(Rd);n==null&&B(!1);let{basename:r}=xa(rr.useViewTransitionState),o=Kt(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=ut(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=ut(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ga(o.pathname,i)!=null||ga(o.pathname,a)!=null}var M,Ra,Ul,ya,Wg,Qg,Yg,Jg,Rd,Ed,Zg,vd,Il,ty,ny,zl,xd,_d,rr,Ea,ay,Cd,gd,wa,Yt=oa(()=>{M=_n(yt());Cl();Cl();md();Ra="get",Ul="application/x-www-form-urlencoded";ya=null;Wg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);Qg=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Yg=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Jg=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"];Rd=M.createContext({isTransitioning:!1}),Ed=M.createContext(new Map),Zg="startTransition",vd=M[Zg];Il=class{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}};ty=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ny=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zl=M.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:i,state:l,target:s,to:u,preventScrollReset:c,unstable_viewTransition:p}=t,m=bl(t,Qg),{basename:R}=M.useContext(Je),y,w=!1;if(typeof u=="string"&&ny.test(u)&&(y=u,ty))try{let v=new URL(window.location.href),d=u.startsWith("//")?new URL(v.protocol+u):new URL(u),S=ut(d.pathname,R);d.origin===v.origin&&S!=null?u=S+d.search+d.hash:w=!0}catch{}let D=Ln(u,{relative:o}),f=ry(u,{replace:i,state:l,target:s,preventScrollReset:c,relative:o,unstable_viewTransition:p});function h(v){r&&r(v),v.defaultPrevented||f(v)}return M.createElement("a",Ze({},m,{href:y||D,onClick:w||a?r:h,ref:n,target:s}))}),xd=M.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:a="",end:i=!1,style:l,to:s,unstable_viewTransition:u,children:c}=t,p=bl(t,Yg),m=Kt(s,{relative:p.relative}),R=Te(),y=M.useContext(Wt),{navigator:w}=M.useContext(Je),D=y!=null&&kd(m)&&u===!0,f=w.encodeLocation?w.encodeLocation(m).pathname:m.pathname,h=R.pathname,v=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(h=h.toLowerCase(),v=v?v.toLowerCase():null,f=f.toLowerCase());let d=h===f||!i&&h.startsWith(f)&&h.charAt(f.length)==="/",S=v!=null&&(v===f||!i&&v.startsWith(f)&&v.charAt(f.length)==="/"),P={isActive:d,isPending:S,isTransitioning:D},x=d?r:void 0,L;typeof a=="function"?L=a(P):L=[a,d?"active":null,S?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let b=typeof l=="function"?l(P):l;return M.createElement(zl,Ze({},p,{"aria-current":x,className:L,ref:n,style:b,to:s,unstable_viewTransition:u}),typeof c=="function"?c(P):c)}),_d=M.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:a,state:i,method:l=Ra,action:s,onSubmit:u,relative:c,preventScrollReset:p,unstable_viewTransition:m}=e,R=bl(e,Jg),y=Hl(),w=Pd(s,{relative:c}),D=l.toLowerCase()==="get"?"get":"post";return M.createElement("form",Ze({ref:t,method:D,action:w,onSubmit:o?u:h=>{if(u&&u(h),h.defaultPrevented)return;h.preventDefault();let v=h.nativeEvent.submitter,d=v?.getAttribute("formmethod")||l;y(v||h.currentTarget,{fetcherKey:n,method:d,navigate:r,replace:a,state:i,relative:c,preventScrollReset:p,unstable_viewTransition:m})}},R))});(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(rr||(rr={}));(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ea||(Ea={}));ay=0,Cd=()=>"__"+String(++ay)+"__";gd="react-router-scroll-positions",wa={}});var df=Vt(Fa=>{"use strict";var Iy=yt(),by=Symbol.for("react.element"),zy=Symbol.for("react.fragment"),Hy=Object.prototype.hasOwnProperty,By=Iy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vy={key:!0,ref:!0,__self:!0,__source:!0};function cf(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Hy.call(t,r)&&!Vy.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:by,type:e,key:a,ref:i,props:o,_owner:By.current}}Fa.Fragment=zy;Fa.jsx=cf;Fa.jsxs=cf});var $y=Vt((EE,ff)=>{"use strict";ff.exports=df()});var Sf=Vt(X=>{"use strict";function Zl(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<Aa(o,t))e[r]=t,e[n]=o,n=r;else break e}}function ct(e){return e.length===0?null:e[0]}function ja(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var i=2*(r+1)-1,l=e[i],s=i+1,u=e[s];if(0>Aa(l,n))s<o&&0>Aa(u,l)?(e[r]=u,e[s]=n,r=s):(e[r]=l,e[i]=n,r=i);else if(s<o&&0>Aa(u,n))e[r]=u,e[s]=n,r=s;else break e}}return t}function Aa(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(hf=performance,X.unstable_now=function(){return hf.now()}):(Jl=Date,pf=Jl.now(),X.unstable_now=function(){return Jl.now()-pf});var hf,Jl,pf,wt=[],Xt=[],Wy=1,qe=null,De=3,Ia=!1,On=!1,lo=!1,gf=typeof setTimeout=="function"?setTimeout:null,yf=typeof clearTimeout=="function"?clearTimeout:null,mf=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ql(e){for(var t=ct(Xt);t!==null;){if(t.callback===null)ja(Xt);else if(t.startTime<=e)ja(Xt),t.sortIndex=t.expirationTime,Zl(wt,t);else break;t=ct(Xt)}}function es(e){if(lo=!1,ql(e),!On)if(ct(wt)!==null)On=!0,ns(ts);else{var t=ct(Xt);t!==null&&rs(es,t.startTime-e)}}function ts(e,t){On=!1,lo&&(lo=!1,yf(so),so=-1),Ia=!0;var n=De;try{for(ql(t),qe=ct(wt);qe!==null&&(!(qe.expirationTime>t)||e&&!Ef());){var r=qe.callback;if(typeof r=="function"){qe.callback=null,De=qe.priorityLevel;var o=r(qe.expirationTime<=t);t=X.unstable_now(),typeof o=="function"?qe.callback=o:qe===ct(wt)&&ja(wt),ql(t)}else ja(wt);qe=ct(wt)}if(qe!==null)var a=!0;else{var i=ct(Xt);i!==null&&rs(es,i.startTime-t),a=!1}return a}finally{qe=null,De=n,Ia=!1}}var ba=!1,Ua=null,so=-1,wf=5,Rf=-1;function Ef(){return!(X.unstable_now()-Rf<wf)}function Xl(){if(Ua!==null){var e=X.unstable_now();Rf=e;var t=!0;try{t=Ua(!0,e)}finally{t?io():(ba=!1,Ua=null)}}else ba=!1}var io;typeof mf=="function"?io=function(){mf(Xl)}:typeof MessageChannel<"u"?(Gl=new MessageChannel,vf=Gl.port2,Gl.port1.onmessage=Xl,io=function(){vf.postMessage(null)}):io=function(){gf(Xl,0)};var Gl,vf;function ns(e){Ua=e,ba||(ba=!0,io())}function rs(e,t){so=gf(function(){e(X.unstable_now())},t)}X.unstable_IdlePriority=5;X.unstable_ImmediatePriority=1;X.unstable_LowPriority=4;X.unstable_NormalPriority=3;X.unstable_Profiling=null;X.unstable_UserBlockingPriority=2;X.unstable_cancelCallback=function(e){e.callback=null};X.unstable_continueExecution=function(){On||Ia||(On=!0,ns(ts))};X.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):wf=0<e?Math.floor(1e3/e):5};X.unstable_getCurrentPriorityLevel=function(){return De};X.unstable_getFirstCallbackNode=function(){return ct(wt)};X.unstable_next=function(e){switch(De){case 1:case 2:case 3:var t=3;break;default:t=De}var n=De;De=t;try{return e()}finally{De=n}};X.unstable_pauseExecution=function(){};X.unstable_requestPaint=function(){};X.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=De;De=e;try{return t()}finally{De=n}};X.unstable_scheduleCallback=function(e,t,n){var r=X.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:Wy++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>r?(e.sortIndex=n,Zl(Xt,e),ct(wt)===null&&e===ct(Xt)&&(lo?(yf(so),so=-1):lo=!0,rs(es,n-r))):(e.sortIndex=o,Zl(wt,e),On||Ia||(On=!0,ns(ts))),e};X.unstable_shouldYield=Ef;X.unstable_wrapCallback=function(e){var t=De;return function(){var n=De;De=t;try{return e.apply(this,arguments)}finally{De=n}}}});var _f=Vt((xE,xf)=>{"use strict";xf.exports=Sf()});var km=Vt(Qe=>{"use strict";var Mh=yt(),We=_f();function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Th=new Set,Mo={};function Kn(e,t){Pr(e,t),Pr(e+"Capture",t)}function Pr(e,t){for(Mo[e]=t,e=0;e<t.length;e++)Th.add(t[e])}var At=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cs=Object.prototype.hasOwnProperty,Ky=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Df={},Cf={};function Qy(e){return Cs.call(Cf,e)?!0:Cs.call(Df,e)?!1:Ky.test(e)?Cf[e]=!0:(Df[e]=!0,!1)}function Yy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Jy(e,t,n,r){if(t===null||typeof t>"u"||Yy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ae(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var _e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_e[e]=new Ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_e[t]=new Ae(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_e[e]=new Ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_e[e]=new Ae(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_e[e]=new Ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_e[e]=new Ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_e[e]=new Ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_e[e]=new Ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_e[e]=new Ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var yu=/[\-:]([a-z])/g;function wu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(yu,wu);_e[t]=new Ae(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(yu,wu);_e[t]=new Ae(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yu,wu);_e[t]=new Ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_e[e]=new Ae(e,1,!1,e.toLowerCase(),null,!1,!1)});_e.xlinkHref=new Ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_e[e]=new Ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ru(e,t,n,r){var o=_e.hasOwnProperty(t)?_e[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Jy(t,n,o,r)&&(n=null),r||o===null?Qy(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var bt=Mh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,za=Symbol.for("react.element"),ur=Symbol.for("react.portal"),cr=Symbol.for("react.fragment"),Eu=Symbol.for("react.strict_mode"),Ps=Symbol.for("react.profiler"),Oh=Symbol.for("react.provider"),Fh=Symbol.for("react.context"),Su=Symbol.for("react.forward_ref"),Ls=Symbol.for("react.suspense"),Ns=Symbol.for("react.suspense_list"),xu=Symbol.for("react.memo"),Zt=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var Ah=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Pf=Symbol.iterator;function uo(e){return e===null||typeof e!="object"?null:(e=Pf&&e[Pf]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Object.assign,os;function yo(e){if(os===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);os=t&&t[1]||""}return`
3
3
  `+os+e}var as=!1;function is(e,t){if(!e||as)return"";as=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
4
4
  `),a=r.stack.split(`
@@ -0,0 +1 @@
1
+ var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(a,b)=>()=>(a&&(b=a(a=0)),b);var n=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var l=(a,b,c,e)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&f(a,d,{get:()=>b[d],enumerable:!(e=h(b,d))||e.enumerable});return a};var o=(a,b,c)=>(c=a!=null?g(j(a)):{},l(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c,a));export{m as a,n as b,o as c};
@@ -0,0 +1 @@
1
+ import{$ as C,Ca as I,U as G,aa as M,b as q}from"/build/_shared/chunk-5D4A5WT2.js";import{a as $,c as A,p as E,u as w}from"/build/_shared/chunk-72LCGX7K.js";import{b,c as y}from"/build/_shared/chunk-Q3IECNXJ.js";var D=b((K,N)=>{N.exports={}});var Q=b((V,R)=>{R.exports={}});var j=b((W,H)=>{H.exports={}});var F=b((X,O)=>{O.exports={}});var U=b((te,B)=>{B.exports={}});var k=y(q()),m=y(w());function Z({headGroups:e,disabled:o,className:i="",analyzedBranches:f,...s}){let d=Object.entries(e);return(0,m.jsxs)("div",{className:"grid w-full grid-cols-[auto_1fr] place-items-center gap-2",children:[(0,m.jsx)(k.Icon,{path:G,size:.75}),(0,m.jsx)("select",{className:`input bg-inherit text-inherit ${i}`,...s,children:d.map(([c,n])=>Object.entries(n).length>0?(0,m.jsx)("optgroup",{label:c,children:Object.entries(n).map(([a])=>{let u=f.find(h=>h.branch===a);return(0,m.jsx)("option",{value:a,disabled:o,title:u?"Analyzed":"Not analyzed",children:a},a)})},c):null)})]})}var x=y($());var v=y(w());function se({className:e="",hideInitially:o=!0,loadingText:i}){let f=A(),s=E();(0,x.useEffect)(()=>{var c;if(s.state==="idle"){let[,n,a]=(c=f.pathname.split("/"))!=null?c:["","",""];s.load(`/progress?repo=${n}&branch=${a}`)}},[s,s.state,f.pathname]);let d=(0,x.useMemo)(()=>{if(!s.data)return"Starting analysis";let{progress:c,analyzationStatus:n}=s.data;return!n||n==="Starting"?"Starting analysis":n==="GeneratingChart"?"Generating chart":"Analyzing commits: "+c+"% done"},[s.data]);return(0,v.jsx)("div",{className:C("grid h-full w-full place-items-center",e),children:(0,v.jsxs)("div",{className:I("flex flex-col px-2 py-2",{"animate-hide-initially opacity-0":o}),children:[(0,v.jsx)("p",{className:"text-center text-3xl font-bold opacity-70",children:i!=null?i:d}),(0,v.jsx)("img",{src:M,alt:"\u{1F69B}",className:"w-full min-w-0 max-w-sm self-center"})]})})}var S={},P=!1,T=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function J(){if(P)return S;P=!0;var e=S={},o,i;function f(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?o=setTimeout:o=f}catch{o=f}try{typeof clearTimeout=="function"?i=clearTimeout:i=s}catch{i=s}})();function d(t){if(o===setTimeout)return setTimeout(t,0);if((o===f||!o)&&setTimeout)return o=setTimeout,setTimeout(t,0);try{return o(t,0)}catch{try{return o.call(null,t,0)}catch{return o.call(this||T,t,0)}}}function c(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch{try{return i.call(null,t)}catch{return i.call(this||T,t)}}}var n=[],a=!1,u,h=-1;function _(){!a||!u||(a=!1,u.length?n=u.concat(n):h=-1,n.length&&L())}function L(){if(!a){var t=d(_);a=!0;for(var l=n.length;l;){for(u=n,n=[];++h<l;)u&&u[h].run();h=-1,l=n.length}u=null,a=!1,c(t)}}e.nextTick=function(t){var l=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)l[g-1]=arguments[g];n.push(new z(t,l)),n.length===1&&!a&&d(L)};function z(t,l){(this||T).fun=t,(this||T).array=l}z.prototype.run=function(){(this||T).fun.apply(null,(this||T).array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function p(){}return e.on=p,e.addListener=p,e.once=p,e.off=p,e.removeListener=p,e.removeAllListeners=p,e.emit=p,e.prependListener=p,e.prependOnceListener=p,e.listeners=function(t){return[]},e.binding=function(t){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(t){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},S}var r=J();r.platform="browser";r.addListener;r.argv;r.binding;r.browser;r.chdir;r.cwd;r.emit;r.env;r.listeners;r.nextTick;r.off;r.on;r.once;r.prependListener;r.prependOnceListener;r.removeAllListeners;r.removeListener;r.title;r.umask;r.version;r.versions;export{r as a,D as b,Q as c,j as d,F as e,Z as f,U as g,se as h};
@@ -1 +1 @@
1
- import{a as R,r as i,t as d,u as n}from"/build/_shared/chunk-ND5WRITB.js";import{b as f,d as t}from"/build/_shared/chunk-G5WX4PPA.js";var c=f(e=>{"use strict";var a=d();e.createRoot=a.createRoot,e.hydrateRoot=a.hydrateRoot;var E});var o=t(R()),l=t(c()),r=t(n());function s(){(0,o.startTransition)(()=>{(0,l.hydrateRoot)(document,(0,r.jsx)(o.StrictMode,{children:(0,r.jsx)(i,{})}))})}typeof requestIdleCallback=="function"?requestIdleCallback(s):setTimeout(s,1);
1
+ import{a as R,r as i,t as d,u as n}from"/build/_shared/chunk-72LCGX7K.js";import{b as f,c as t}from"/build/_shared/chunk-Q3IECNXJ.js";var c=f(e=>{"use strict";var a=d();e.createRoot=a.createRoot,e.hydrateRoot=a.hydrateRoot;var E});var o=t(R()),l=t(c()),r=t(n());function s(){(0,o.startTransition)(()=>{(0,l.hydrateRoot)(document,(0,r.jsx)(o.StrictMode,{children:(0,r.jsx)(i,{})}))})}typeof requestIdleCallback=="function"?requestIdleCallback(s):setTimeout(s,1);
@@ -1 +1 @@
1
- window.__remixManifest={"entry":{"module":"/build/entry.client-RZUWA4GZ.js","imports":["/build/_shared/chunk-ND5WRITB.js","/build/_shared/chunk-G5WX4PPA.js"]},"routes":{"root":{"id":"root","path":"","module":"/build/root-CQKNWKLC.js","imports":["/build/_shared/chunk-E4ZX32OJ.js"],"hasAction":false,"hasLoader":false,"hasErrorBoundary":true},"routes/$repo.$":{"id":"routes/$repo.$","parentId":"root","path":":repo/*","module":"/build/routes/$repo.$-ZJ2UE2QP.js","imports":["/build/_shared/chunk-ZAZE3T6E.js"],"hasAction":true,"hasLoader":true,"hasErrorBoundary":true},"routes/$repository":{"id":"routes/$repository","parentId":"root","path":":repository","module":"/build/routes/$repository-2OUZDKVD.js","hasAction":false,"hasLoader":true,"hasErrorBoundary":false},"routes/_index":{"id":"routes/_index","parentId":"root","index":true,"module":"/build/routes/_index-3GUP3TPE.js","imports":["/build/_shared/chunk-ZAZE3T6E.js"],"hasAction":true,"hasLoader":true,"hasErrorBoundary":false},"routes/authordist":{"id":"routes/authordist","parentId":"root","path":"authordist","module":"/build/routes/authordist-A7NSX5GE.js","hasAction":false,"hasLoader":true,"hasErrorBoundary":false},"routes/clearCache":{"id":"routes/clearCache","parentId":"root","path":"clearCache","module":"/build/routes/clearCache-IAFGBLU4.js","hasAction":true,"hasLoader":false,"hasErrorBoundary":false},"routes/commitcount":{"id":"routes/commitcount","parentId":"root","path":"commitcount","module":"/build/routes/commitcount-KSNJOFTJ.js","hasAction":false,"hasLoader":true,"hasErrorBoundary":false},"routes/commits":{"id":"routes/commits","parentId":"root","path":"commits","module":"/build/routes/commits-6RXT3QOX.js","hasAction":false,"hasLoader":true,"hasErrorBoundary":false},"routes/progress":{"id":"routes/progress","parentId":"root","path":"progress","module":"/build/routes/progress-LUCNXSNL.js","hasAction":false,"hasLoader":true,"hasErrorBoundary":false}},"version":"0908be6e","url":"/build/manifest-0908BE6E.js"};
1
+ window.__remixManifest={"entry":{"module":"/build/entry.client-H44HMSW7.js","imports":["/build/_shared/chunk-72LCGX7K.js","/build/_shared/chunk-Q3IECNXJ.js"]},"routes":{"root":{"id":"root","path":"","module":"/build/root-EXAXBIX6.js","imports":["/build/_shared/chunk-5D4A5WT2.js"],"hasAction":false,"hasLoader":false,"hasErrorBoundary":true},"routes/$repo.$":{"id":"routes/$repo.$","parentId":"root","path":":repo/*","module":"/build/routes/$repo.$-DZIVQKYY.js","imports":["/build/_shared/chunk-VV4XSBJZ.js"],"hasAction":true,"hasLoader":true,"hasErrorBoundary":true},"routes/$repository":{"id":"routes/$repository","parentId":"root","path":":repository","module":"/build/routes/$repository-RMM3X7IT.js","hasAction":false,"hasLoader":true,"hasErrorBoundary":false},"routes/_index":{"id":"routes/_index","parentId":"root","index":true,"module":"/build/routes/_index-DKI5HQT7.js","imports":["/build/_shared/chunk-VV4XSBJZ.js"],"hasAction":true,"hasLoader":true,"hasErrorBoundary":false},"routes/authordist":{"id":"routes/authordist","parentId":"root","path":"authordist","module":"/build/routes/authordist-LRF2J26H.js","hasAction":false,"hasLoader":true,"hasErrorBoundary":false},"routes/clearCache":{"id":"routes/clearCache","parentId":"root","path":"clearCache","module":"/build/routes/clearCache-AWUAC2NV.js","hasAction":true,"hasLoader":false,"hasErrorBoundary":false},"routes/commitcount":{"id":"routes/commitcount","parentId":"root","path":"commitcount","module":"/build/routes/commitcount-D7WWQAYM.js","hasAction":false,"hasLoader":true,"hasErrorBoundary":false},"routes/commits":{"id":"routes/commits","parentId":"root","path":"commits","module":"/build/routes/commits-GGDWDC7W.js","hasAction":false,"hasLoader":true,"hasErrorBoundary":false},"routes/progress":{"id":"routes/progress","parentId":"root","path":"progress","module":"/build/routes/progress-SNLO56GK.js","hasAction":false,"hasLoader":true,"hasErrorBoundary":false}},"version":"e47a891c","url":"/build/manifest-E47A891C.js"};
@@ -0,0 +1 @@
1
+ import{Ca as M,Ea as N,Fa as O,a as et,wa as v}from"/build/_shared/chunk-5D4A5WT2.js";import{a as tt,b as I,f as Y,g as S,k as u,l as b,n as _,q as C,s as D,u as E}from"/build/_shared/chunk-72LCGX7K.js";import{b as $,c as y}from"/build/_shared/chunk-Q3IECNXJ.js";var P=$((st,T)=>{(()=>{"use strict";var o={n:r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return o.d(t,{a:t}),t},d:(r,t)=>{for(var a in t)o.o(t,a)&&!o.o(r,a)&&Object.defineProperty(r,a,{enumerable:!0,get:t[a]})},o:(r,t)=>Object.prototype.hasOwnProperty.call(r,t),r:r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}},g={};o.r(g),o.d(g,{default:()=>Q,useKonami:()=>J});let w=tt();var x=o.n(w);let B=et();var s=o.n(B);let F=function(){function r(t,a){this.t=a,this.fn=t,this.timerIntervalID=setInterval(this.fn,this.t)}return r.prototype.stop=function(){return this.timerIntervalID&&(clearInterval(this.timerIntervalID),this.timerIntervalID=null),this},r.prototype.start=function(){return this.timerIntervalID||(this.stop(),this.timerIntervalID=setInterval(this.fn,this.t)),this},r.prototype.reset=function(t){return this.t=t,this.stop().start()},r}(),G=function(r,t){return!(!Array.isArray(r)||!Array.isArray(t))&&r.length===t.length&&r.every(function(a,e){return a===t[e]})};var h,z=[38,38,40,40,37,39,37,39,66,65],H=(h=function(r,t){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n])},h(r,t)},function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=r}h(r,t),r.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}),W={action:s().func,className:s().string,code:s().arrayOf(s().number),disabled:s().bool,onTimeout:s().func,resetDelay:s().number,timeout:s().number},k=function(r){function t(a){var e=r.call(this,a)||this;return e.state={done:!1,input:[]},e.timeoutID=null,e.onKeyUp=e.onKeyUp.bind(e),e.resetInput=e.resetInput.bind(e),e}return H(t,r),t.prototype.componentDidMount=function(){var a=this,e=this.props.resetDelay;document.addEventListener("keyup",this.onKeyUp);var n=Number(e);n!==0&&(this._timer=new F(function(){return a.resetInput()},n))},t.prototype.shouldComponentUpdate=function(a,e){return this.props.className!==a.className||this.props.disabled!==a.disabled||this.state.done!==e.done},t.prototype.componentWillUnmount=function(){var a=this.props.resetDelay;this.timeoutID&&clearTimeout(this.timeoutID),a!==0&&this._timer.stop(),document.removeEventListener("keyup",this.onKeyUp)},t.prototype.onKeyUp=function(a){var e=this,n=this.state,l=n.done,d=n.input,c=this.props,m=c.action,p=c.code,V=c.disabled,q=c.onTimeout,Z=c.resetDelay,j=c.timeout,f=Number(Z);V||(f!==0&&this._timer.reset(f),d.push(a.keyCode),p&&d.splice(-p.length-1,d.length-p.length),this.setState({input:d},function(){G(e.state.input,p)&&!l&&(f!==0&&e._timer.stop(),e.setState({done:!0},function(){typeof m=="function"&&m()}),j&&(e.timeoutID=setTimeout(function(){e.setState({done:!1}),typeof q=="function"&&q()},Number(j))))}))},t.prototype.resetInput=function(){this.setState({input:[]})},t.prototype.render=function(){var a=this.props,e=a.children,n=a.className,l=a.disabled,d=this.state.done;return x().createElement("div",{className:"konami ".concat(n??""),style:{display:!d||l?"none":"block"}},e)},t}(x().Component);k.defaultProps={className:"",code:z,disabled:!1,resetDelay:1e3,children:null,action:null,onTimeout:null,timeout:0},k.propTypes=W;let J=function(r,t){var a=(t===void 0?{}:t).code,e=a===void 0?z:a,n=(0,w.useState)([]),l=n[0],d=n[1],c=(0,w.useCallback)(function(m){var p=l;p.push(m.keyCode),p.splice(-e.length-1,l.length-e.length),d(p),p.join("").includes(e.join(""))&&r()},[l,d,e,r]);(0,w.useEffect)(function(){return document.addEventListener("keyup",c),function(){document.removeEventListener("keyup",c)}},[c])},Q=k;T.exports=g})()});var L=y(P());var X="/build/_assets/vars-COQCVZEU.css";var R="/build/_assets/animations-TUO2PXWS.css";var U="/build/_assets/tailwind-LNGO2W4E.css";var A="/build/_assets/react-datepicker-3YLWDVEY.css";var i=y(E()),nt=()=>[{title:"Git Truck"}];function ct(){return[...[X,R,U,A].map(o=>({rel:"stylesheet",href:o})),{rel:"favicon",type:"image/x-icon",href:"favicon.ico"},{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&family=Roboto+Mono:wght@400;700&display=swap"}]}function K(){return(0,L.useKonami)(()=>window.open("https://fruit-rush.joglr.dev","_self")),(0,i.jsxs)("html",{lang:"en",children:[(0,i.jsxs)("head",{children:[(0,i.jsx)("meta",{charSet:"utf-8"}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),(0,i.jsx)(b,{}),(0,i.jsx)(u,{})]}),(0,i.jsx)(N,{children:(0,i.jsxs)(dt,{children:[(0,i.jsx)(S,{}),(0,i.jsx)(D,{}),(0,i.jsx)(_,{}),(0,i.jsx)(C,{})]})})]})}function dt({children:o}){let g=O();return(0,i.jsx)("body",{className:M("bg-gray-200 text-gray-700 dark:bg-gray-900 dark:text-gray-300",{dark:!g}),children:o})}var pt=()=>{let o=Y();return I(o)?(0,i.jsxs)("html",{lang:"en",children:[(0,i.jsxs)("head",{children:[(0,i.jsx)("title",{children:"Oops! An error wasn't handled"}),(0,i.jsx)(b,{}),(0,i.jsx)(u,{})]}),(0,i.jsxs)("body",{children:[(0,i.jsxs)("h1",{children:["Error: ",o.status]}),(0,i.jsx)(v,{children:o.data.message}),(0,i.jsx)(_,{})]})]}):o instanceof Error?(0,i.jsxs)("html",{lang:"en",children:[(0,i.jsxs)("head",{children:[(0,i.jsx)("title",{children:"Oops! An error wasn't handled"}),(0,i.jsx)(b,{}),(0,i.jsx)(u,{})]}),(0,i.jsxs)("body",{children:[(0,i.jsx)("h1",{children:o.message}),(0,i.jsx)(v,{children:o.stack}),(0,i.jsx)(_,{})]})]}):null};export{pt as ErrorBoundary,K as default,ct as links,nt as meta};