vendor: 9,486 bytes, line 1
1function mt(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var me={exports:{}},E={};var ke;function yt(){if(ke)return E;ke=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),o=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),y=Symbol.iterator;function v(u){return u===null||typeof u!="object"?null:(u=y&&u[y]||u["@@iterator"],typeof u=="function"?u:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function C(u,p,S){this.props=u,this.context=p,this.refs=m,this.updater=S||R}C.prototype.isReactComponent={},C.prototype.setState=function(u,p){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,p,"setState")},C.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function _(){}_.prototype=C.prototype;function x(u,p,S){this.props=u,this.context=p,this.refs=m,this.updater=S||R}var $=x.prototype=new _;$.constructor=x,g($,C.prototype),$.isPureReactComponent=!0;var k=Array.isArray;function I(){}var P={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function Y(u,p,S){var w=S.ref;return{$$typeof:e,type:u,key:p,ref:w!==void 0?w:null,props:S}}function X(u,p){return Y(u.type,p,u.props)}function Q(u){return typeof u=="object"&&u!==null&&u.$$typeof===e}function pe(u){var p={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function(S){return p[S]})}var Z=/\/+/g;function z(u,p){return typeof u=="object"&&u!==null&&u.key!=null?pe(""+u.key):p.toString(36)}function F(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(I,I):(u.status="pending",u.then(function(p){u.status==="pending"&&(u.status="fulfilled",u.value=p)},function(p){u.status==="pending"&&(u.status="rejected",u.reason=p)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function K(u,p,S,w,b){var T=typeof u;(T==="undefined"||T==="boolean")&&(u=null);var L=!1;if(u===null)L=!0;else switch(T){case"bigint":case"string":case"number":L=!0;break;case"object":switch(u.$$typeof){case e:case t:L=!0;break;case d:return L=u._init,K(L(u._payload),p,S,w,b)}}if(L)return b=b(u),L=w===""?"."+z(u,0):w,k(b)?(S="",L!=null&&(S=L.replace(Z,"$&/")+"/"),K(b,p,S,"",function(pt){return pt})):b!=null&&(Q(b)&&(b=X(b,S+(b.key==null||u&&u.key===b.key?"":(""+b.key).replace(Z,"$&/")+"/")+L)),p.push(b)),1;L=0;var B=w===""?".":w+":";if(k(u))for(var D=0;D<u.length;D++)w=u[D],T=B+z(w,D),L+=K(w,p,S,T,b);else if(D=v(u),typeof D=="function")for(u=D.call(u),D=0;!(w=u.next()).done;)w=w.value,T=B+z(w,D++),L+=K(w,p,S,T,b);else if(T==="object"){if(typeof u.then=="function")return K(F(u),p,S,w,b);throw p=String(u),Error("Objects are not valid as a React child (found: "+(p==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":p)+"). If you meant to render a collection of children, use an array instead.")}return L}function ae(u,p,S){if(u==null)return u;var w=[],b=0;return K(u,w,"","",function(T){return p.call(S,T,b++)}),w}function dt(u){if(u._status===-1){var p=u._result;p=p(),p.then(function(S){(u._status===0||u._status===-1)&&(u._status=1,u._result=S)},function(S){(u._status===0||u._status===-1)&&(u._status=2,u._result=S)}),u._status===-1&&(u._status=0,u._result=p)}if(u._status===1)return u._result.default;throw u._result}var Oe=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(p))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)},ht={map:ae,forEach:function(u,p,S){ae(u,function(){p.apply(this,arguments)},S)},count:function(u){var p=0;return ae(u,function(){p++}),p},toArray:function(u){return ae(u,function(p){return p})||[]},only:function(u){if(!Q(u))throw Error("React.Children.only expected to receive a single React element child.");return u}};return E.Activity=h,E.Children=ht,E.Component=C,E.Fragment=n,E.Profiler=a,E.PureComponent=x,E.StrictMode=r,E.Suspense=l,E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,E.__COMPILER_RUNTIME={__proto__:null,c:function(u){return P.H.useMemoCache(u)}},E.cache=function(u){return function(){return u.apply(null,arguments)}},E.cacheSignal=function(){return null},E.cloneElement=function(u,p,S){if(u==null)throw Error("The argument must be a React element, but you passed "+u+".");var w=g({},u.props),b=u.key;if(p!=null)for(T in p.key!==void 0&&(b=""+p.key),p)!W.call(p,T)||T==="key"||T==="__self"||T==="__source"||T==="ref"&&p.ref===void 0||(w[T]=p[T]);var T=arguments.length-2;if(T===1)w.children=S;else if(1<T){for(var L=Array(T),B=0;B<T;B++)L[B]=arguments[B+2];w.children=L}return Y(u.type,b,w)},E.createContext=function(u){return u={$$typeof:s,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null},u.Provider=u,u.Consumer={$$typeof:i,_context:u},u},E.createElement=function(u,p,S){var w,b={},T=null;if(p!=null)for(w in p.key!==void 0&&(T=""+p.key),p)W.call(p,w)&&w!=="key"&&w!=="__self"&&w!=="__source"&&(b[w]=p[w]);var L=arguments.length-2;if(L===1)b.children=S;else if(1<L){for(var B=Array(L),D=0;D<L;D++)B[D]=arguments[D+2];b.children=B}if(u&&u.defaultProps)for(w in L=u.defaultProps,L)b[w]===void 0&&(b[w]=L[w]);return Y(u,T,b)},E.createRef=function(){return{current:null}},E.forwardRef=function(u){return{$$typeof:f,render:u}},E.isValidElement=Q,E.lazy=function(u){return{$$typeof:d,_payload:{_status:-1,_result:u},_init:dt}},E.memo=function(u,p){return{$$typeof:o,type:u,compare:p===void 0?null:p}},E.startTransition=function(u){var p=P.T,S={};P.T=S;try{var w=u(),b=P.S;b!==null&&b(S,w),typeof w=="object"&&w!==null&&typeof w.then=="function"&&w.then(I,Oe)}catch(T){Oe(T)}finally{p!==null&&S.types!==null&&(p.types=S.types),P.T=p}},E.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},E.use=function(u){return P.H.use(u)},E.useActionState=function(u,p,S){return P.H.useActionState(u,p,S)},E.useCallback=function(u,p){return P.H.useCallback(u,p)},E.useContext=function(u){return P.H.useContext(u)},E.useDebugValue=function(){},E.useDeferredValue=function(u,p){return P.H.useDeferredValue(u,p)},E.useEffect=function(u,p){return P.H.useEffect(u,p)},E.useEffectEvent=function(u){return P.H.useEffectEvent(u)},E.useId=function(){return P.H.useId()},E.useImperativeHandle=function(u,p,S){return P.H.useImperativeHandle(u,p,S)},E.useInsertionEffect=function(u,p){return P.H.useInsertionEffect(u,p)},E.useLayoutEffect=function(u,p){return P.H.useLayoutEffect(u,p)},E.useMemo=function(u,p){return P.H.useMemo(u,p)},E.useOptimistic=function(u,p){return P.H.useOptimistic(u,p)},E.useReducer=function(u,p,S){return P.H.useReducer(u,p,S)},E.useRef=function(u){return P.H.useRef(u)},E.useState=function(u){return P.H.useState(u)},E.useSyncExternalStore=function(u,p,S){return P.H.useSyncExternalStore(u,p,S)},E.useTransition=function(){return P.H.useTransition()},E.version="19.2.8",E}var $e;function We(){return $e||($e=1,me.exports=yt()),me.exports}var c=We();const gt=je(c),Qr=mt({__proto__:null,default:gt},[c]);var ye={exports:{}},A={};var Ae;function vt(){if(Ae)return A;Ae=1;var e=We();function t(l){var o="https://react.dev/errors/"+l;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)o+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+l+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(l,o,d){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:h==null?null:""+h,children:l,containerInfo:o,implementation:d}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(l,o){if(l==="font")return"";if(typeof o=="string")return o==="use-credentials"?o:""}return A.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,A.createPortal=function(l,o){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)throw Error(t(299));return i(l,o,null,d)},A.flushSync=function(l){var o=s.T,d=r.p;try{if(s.T=null,r.p=2,l)return l()}finally{s.T=o,r.p=d,r.d.f()}},A.preconnect=function(l,o){typeof l=="string"&&(o?(o=o.crossOrigin,o=typeof o=="str
1ing"?o==="use-credentials"?o:"":void 0):o=null,r.d.C(l,o))},A.prefetchDNS=function(l){typeof l=="string"&&r.d.D(l)},A.preinit=function(l,o){if(typeof l=="string"&&o&&typeof o.as=="string"){var d=o.as,h=f(d,o.crossOrigin),y=typeof o.integrity=="string"?o.integrity:void 0,v=typeof o.fetchPriority=="string"?o.fetchPriority:void 0;d==="style"?r.d.S(l,typeof o.precedence=="string"?o.precedence:void 0,{crossOrigin:h,integrity:y,fetchPriority:v}):d==="script"&&r.d.X(l,{crossOrigin:h,integrity:y,fetchPriority:v,nonce:typeof o.nonce=="string"?o.nonce:void 0})}},A.preinitModule=function(l,o){if(typeof l=="string")if(typeof o=="object"&&o!==null){if(o.as==null||o.as==="script"){var d=f(o.as,o.crossOrigin);r.d.M(l,{crossOrigin:d,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0})}}else o==null&&r.d.M(l)},A.preload=function(l,o){if(typeof l=="string"&&typeof o=="object"&&o!==null&&typeof o.as=="string"){var d=o.as,h=f(d,o.crossOrigin);r.d.L(l,d,{crossOrigin:h,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0,type:typeof o.type=="string"?o.type:void 0,fetchPriority:typeof o.fetchPriority=="string"?o.fetchPriority:void 0,referrerPolicy:typeof o.referrerPolicy=="string"?o.referrerPolicy:void 0,imageSrcSet:typeof o.imageSrcSet=="string"?o.imageSrcSet:void 0,imageSizes:typeof o.imageSizes=="string"?o.imageSizes:void 0,media:typeof o.media=="string"?o.media:void 0})}},A.preloadModule=function(l,o){if(typeof l=="string")if(o){var d=f(o.as,o.crossOrigin);r.d.m(l,{as:typeof o.as=="string"&&o.as!=="script"?o.as:void 0,crossOrigin:d,integrity:typeof o.integrity=="string"?o.integrity:void 0})}else r.d.m(l)},A.requestFormReset=function(l){r.d.r(l)},A.unstable_batchedUpdates=function(l,o){return l(o)},A.useFormState=function(l,o,d){return s.H.useFormState(l,o,d)},A.useFormStatus=function(){return s.H.useHostTransitionStatus()},A.version="19.2.8",A}var De;function Rt(){if(De)return ye.exports;De=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ye.exports=vt(),ye.exports}var Ce=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Ye=/^[\\/]{2}/;function Et(e,t){return t+e.replace(/\\/g,"/")}var Ne="popstate";function Ie(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function wt(e={}){function t(r,a){let i=a.state?.masked,{pathname:s,search:f,hash:l}=i||r.location;return Ee("",{pathname:s,search:f,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:te(a)}return St(t,n,null,e)}function O(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function H(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ct(){return Math.random().toString(36).substring(2,10)}function Me(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Ee(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?G(t):t,state:n,key:t&&t.key||r||Ct(),mask:a}}function te({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function G(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function St(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,f="POP",l=null,o=d();o==null&&(o=0,s.replaceState({...s.state,idx:o},""));function d(){return(s.state||{idx:null}).idx}function h(){f="POP";let m=d(),C=m==null?null:m-o;o=m,l&&l({action:f,location:g.location,delta:C})}function y(m,C){f="PUSH";let _=Ie(m)?m:Ee(g.location,m,C);o=d()+1;let x=Me(_,o),$=g.createHref(_.mask||_);try{s.pushState(x,"",$)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;a.location.assign($)}i&&l&&l({action:f,location:g.location,delta:1})}function v(m,C){f="REPLACE";let _=Ie(m)?m:Ee(g.location,m,C);o=d();let x=Me(_,o),$=g.createHref(_.mask||_);s.replaceState(x,"",$),i&&l&&l({action:f,location:g.location,delta:0})}function R(m){return _t(a,m)}let g={get action(){return f},get location(){return e(a,s)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(Ne,h),l=m,()=>{a.removeEventListener(Ne,h),l=null}},createHref(m){return t(a,m)},createURL:R,encodeLocation(m){let C=R(m);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:y,replace:v,go(m){return s.go(m)}};return g}function _t(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),O(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:te(t);return a=a.replace(/ $/,"%20"),!n&&Ye.test(a)&&(a=r+a),new URL(a,r)}function qe(e,t,n="/"){return xt(e,t,n,!1)}function xt(e,t,n,r,a){let i=typeof t=="string"?G(t):t,s=q(i.pathname||"/",n);if(s==null)return null;let f=Pt(e),l=null,o=Mt(s);for(let d=0;l==null&&d<f.length;++d)l=It(f[d],o,r);return l}function Pt(e){let t=ze(e);return bt(t),t}
1function ze(e,t=[],n=[],r="",a=!1){let i=(s,f,l=a,o)=>{let d={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:f,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&l)return;O(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let h=M([r,d.relativePath]),y=n.concat(d);s.children&&s.children.length>0&&(O(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),ze(s.children,t,y,h,l)),!(s.path==null&&!s.index)&&t.push({path:h,score:Dt(h,s.index),routesMeta:y.map((v,R)=>{let[g,m]=Ve(v.relativePath,v.caseSensitive,R===y.length-1);return{...v,matcher:g,compiledParams:m}})})};return e.forEach((s,f)=>{if(s.path===""||!s.path?.includes("?"))i(s,f);else for(let l of Ke(s.path))i(s,f,!0,l)}),t}function Ke(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let s=Ke(r.join("/")),f=[];return f.push(...s.map(l=>l===""?i:[i,l].join("/"))),a&&f.push(...s),f.map(l=>e.startsWith("/")&&l===""?"/":l)}function bt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Nt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Tt=/^:[\w-]+$/,Lt=3,Ot=2,kt=1,$t=10,At=-2,He=e=>e==="*";function Dt(e,t){let n=e.split("/"),r=n.length;return n.some(He)&&(r+=At),t&&(r+=Ot),n.filter(a=>!He(a)).reduce((a,i)=>a+(Tt.test(i)?Lt:i===""?kt:$t),r)}function Nt(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function It(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",s=[];for(let f=0;f<r.length;++f){let l=r[f],o=f===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",h={path:l.relativePath,caseSensitive:l.caseSensitive,end:o},y=l.matcher&&l.compiledParams?Ge(h,d,l.matcher,l.compiledParams):le(h,d),v=l.route;if(!y&&o&&n&&!r[r.length-1].route.index&&(y=le({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!y)return null;
1Object.assign(a,y.params),s.push({params:a,pathname:M([i,y.pathname]),pathnameBase:Ft(M([i,y.pathnameBase])),route:v}),y.pathnameBase!=="/"&&(i=M([i,y.pathnameBase]))}return s}function le(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ve(e.path,e.caseSensitive,e.end);return Ge(e,t,n,r)}function Ge(e,t,n,r){let a=t.match(n);if(!a)return null;let i=a[0],s=i.replace(/(.)\/+$/,"$1"),f=a.slice(1);return{params:r.reduce((o,{paramName:d,isOptional:h},y)=>{if(d==="*"){let R=f[y]||"";s=i.slice(0,i.length-R.length).replace(/(.)\/+$/,"$1")}const v=f[y];return h&&!v?o[d]=void 0:o[d]=(v||"").replace(/%2F/g,"/"),o},{}),pathname:i,pathnameBase:s,pattern:e}}function Ve(e,t=!1,n=!0){H(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,f,l,o,d)=>{if(r.push({paramName:f,isOptional:l!=null}),l){let h=d.charAt(o+s.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function Mt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return H(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function q(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 Ht(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?G(e):e,i;return n?(n=Je(n),n.startsWith("/")?i=Ue(n.substring(1),"/"):i=Ue(n,t)):i=t,{pathname:i,search:Bt(r),hash:jt(a)}}function Ue(e,t){let n=se(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function ge(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 Ut(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Se(e){let t=Ut(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function ce(e,t,n,r=!1){let a;typeof e=="string"?a=G(e):(a={...e},O(!a.pathname||!a.pathname.includes("?"),ge("?","pathname","search",a)),O(!a.pathname||!a.pathname.includes("#"),ge("#","pathname","hash",a)),O(!a.search||!a.search.includes("#"),ge("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,f;if(s==null)f=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),h-=1;a.pathname=y.join("/")}f=h>=0?t[h]:"/"}let l=Ht(a,f),o=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(o||d)&&(l.pathname+="/"),l}var Je=e=>e.replace(/[\\/]{2,}/g,"/"),M=e=>Je(e.join("/")),se=e=>e.replace(/\/+$/,""),Ft=e=>se(e).replace(/^\/*/,"/"),Bt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Wt=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Yt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function qt(e){let t=e.map(n=>n.route.path).filter(Boolean);return M(t)||"/"}var Xe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Qe(e,t){let n=e;if(typeof n!="string"||!Ce.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(Xe)try{let i=new URL(window.location.href),s=Ye.test(n)?new URL(Et(n,i.protocol)):new URL(n),f=q(s.pathname,t);s.origin===i.origin&&f!=null?n=f+s.search+s.hash:a=!0}catch{H(!1,`<Link to="${n}">
1 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ze=["POST","PUT","PATCH","DELETE"];new Set(Ze);var zt=["GET",...Ze];new Set(zt);var Kt=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Gt(e){try{return Kt.includes(new URL(e).protocol)}catch{return!1}}var V=c.createContext(null);V.displayName="DataRouter";var fe=c.createContext(null);fe.displayName="DataRouterState";var et=c.createContext(!1);function Vt(){return c.useContext(et)}var tt=c.createContext({isTransitioning:!1});tt.displayName="ViewTransition";var Jt=c.createContext(new Map);Jt.displayName="Fetchers";var Xt=c.createContext(null);Xt.displayName="Await";var N=c.createContext(null);N.displayName="Navigation";var re=c.createContext(null);re.displayName="Location";var U=c.createContext({outlet:null,matches:[],isDataRoute:!1});U.displayName="Route";var _e=c.createContext(null);_e.displayName="RouteError";var rt="REACT_ROUTER_ERROR",Qt="REDIRECT",Zt="ROUTE_ERROR_RESPONSE";function er(e){if(e.startsWith(`${rt}:${Qt}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function tr(e){if(e.startsWith(`${rt}:${Zt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Wt(t.status,t.statusText,t.data)}catch{}}function rr(e,{relative:t}={}){O(J(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=c.useContext(N),{hash:a,pathname:i,search:s}=ne(e,{relative:t}),f=i;return n!=="/"&&(f=i==="/"?n:M([n,i])),r.createHref({pathname:f,search:s,hash:a})}function J(){return c.useContext(re)!=null}function j(){return O(J(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(re).location}var nt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function at(e){c.useContext(N).static||c.useLayoutEffect(e)}function ot(){let{isDataRoute:e}=c.useContext(U);return e?mr():nr()}function nr(){O(J(),"useNavigate() may be used only in the context of a <Router> component.");let e=c.useContext(V),{basename:t,navigator:n}=c.useContext(N),{matches:r}=c.useContext(U),{pathname:a}=j(),i=JSON.stringify(Se(r)),s=c.useRef(!1);return at(()=>{s.current=!0}),c.useCallback((l,o={})=>{if(H(s.current,nt),!s.current)return;if(typeof l=="number"){n.go(l);return}let d=ce(l,JSON.parse(i),a,o.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:M([t,d.pathname])),(o.replace?n.replace:n.push)(d,o.state,o)},[t,n,i,a,e])}c.createContext(null);function Zr(){let{matches:e}=c.useContext(U);return e[e.length-1]?.params??{}}function ne(e,{relative:t}={}){let{matches:n}=c.useContext(U),{pathname:r}=j(),a=JSON.stringify(Se(n));return c.useMemo(()=>ce(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function ar(e,t){return it(e,t)}function it(e,t,n){O(J(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=c.useContext(N),{matches:a}=c.useContext(U),i=a[a.length-1],s=i?i.params:{},f=i?i.pathname:"/",l=i?i.pathnameBase:"/",o=i&&i.route;{let m=o&&o.path||"";lt(f,!o||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 2 3Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let d=j(),h;if(t){let m=typeof t=="string"?G(t):t;O(l==="/"||m.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${m.pathname}" was given in the \`location\` prop.`),h=m}else h=d;let y=h.pathname||"/",v=y;if(l!=="/"){let m=l.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(m.length).join("/")}let R=n&&n.state.matches.length?n.state.matches.map(m=>Object.assign(m,{route:n.manifest[m.route.id]||m.route})):qe(e,{pathname:v});H(o||R!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),H(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=sr(R&&R.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:M([l,r.encodeLocation?r.encodeLocation(m.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:M([l,r.encodeLocation?r.encodeLocation(m.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),a,n);return t&&g?c.createElement(re.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...h},navigationType:"POP"}},g):g}function or(){let e=pr(),t=Yt(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)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=c.createElement(c.Fragment,null,c.createElement("p",null,"ð¿ Hey developer ð"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:i},"ErrorBoundary")," or"," ",c.createElement("code",{style:i},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application
3Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:a},n):null,s)}var ir=c.createElement(or,null),ut=class extends c.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=tr(e.digest);n&&(e=n)}let t=e!==void 0?c.createElement(U.Provider,{value:this.props.routeContext},c.createElement(_e.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?c.createElement(ur,{error:e},t):t}};ut.contextType=et;var ve=new WeakMap;function ur({children:e,error:t}){let{basename:n}=c.useContext(N);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=er(t.digest);if(r){let a=ve.get(t);if(a)throw a;let i=Qe(r.location,n),s=i.absoluteURL||i.to;if(Gt(s))throw new Error("Invalid redirect location");if(Xe&&!ve.get(t))if(i.isExternal||r.reloadDocument)window.location.href=s;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw ve.set(t,f),f}return c.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s}`})}}return e}function lr({routeContext:e,match:t,children:n}){let r=c.useContext(V);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),c.createElement(U.Provider,{value:e},n)}function sr(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,i=r?.errors;if(i!=null){let d=a.findIndex(h=>h.route.id&&i?.[h.route.id]!==void 0);O(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let s=!1,f=-1;if(n&&r){s=r.renderFallback;for(let d=0;d<a.length;d++){let h=a[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(f=d),h.route.id){let{loaderData:y,errors:v}=r,R=h.route.loader&&!y.hasOwnProperty(h.route.id)&&(!v||v[h.route.id]===void 0);if(h.route.lazy||R){n.isStatic&&(s=!0),f>=0?a=a.slice(0,f+1):a=[a[0]];break}}}}let l=n?.onError,o=r&&l?(d,h)=>{l(d,{location:r.location,params:r.matches?.[0]?.params??{},pattern:qt(r.matches),errorInfo:h})}:void 0;return a.reduceRight((d,h,y)=>{let v,R=!1,g=null,m=null;r&&(v=i&&h.route.id?i[h.route.id]:void 0,g=h.route.errorElement||ir,s&&(f<0&&y===0?(lt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,m=null):f===y&&(R=!0,m=h.route.hydrateFallbackElement||null)));let C=t.concat(a.slice(0,y+1)),_=()=>{let x;return v?x=g:R?x=m:h.route.Component?x=c.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=d,c.createElement(lr,{match:h,routeContext:{outlet:d,matches:C,isDataRoute:r!=null},children:x})};return r&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?c.createElement(ut,{location:r.location,revalidation:r.revalidation,component:g,error:v,children:_(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:o}):_()},null)}function xe(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cr(e){let t=c.useContext(V);return O(t,xe(e)),t}function fr(e){let t=c.useContext(fe);return O(t,xe(e)),t}function dr(e){let t=c.useContext(U);return O(t,xe(e)),t}function Pe(e){let t=dr(e),n=t.matches[t.matches.length-1];return O(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function hr(){return Pe("useRouteId")}function pr(){let e=c.useContext(_e),t=fr("useRouteError"),n=Pe("useRouteError");return e!==void 0?e:t.errors?.[n]}function mr(){let{router:e}=cr("useNavigate"),t=Pe("useNavigate"),n=c.useRef(!1);return at(()=>{n.current=!0}),c.useCallback(async(a,i={})=>{H(n.current,nt),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var Fe={};function lt(e,t,n){!t&&!Fe[e]&&(Fe[e]=!0,H(!1,n))}c.memo(yr);function yr({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return it(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function en({to:e,replace:t,state:n,relative:r}){O(J(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=c.useContext(N);H(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=c.useContext(U),{pathname:s}=j(),f=ot(),l=ce(e,Se(i),s,r==="path"),o=JSON.stringify(l);return c.useEffect(()=>{f(JSON.parse(o),{replace:t,state:n,relative:r})},[f,o,r,t,n]),null}function gr(e){O(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function vr({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:s}){O(!J(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),l=c.useMemo(()=>({basename:f,navigator:a,static:i,useTransitions:s,future:{}}),[f,a,i,s]);typeof n=="string"&&(n=G(n));let{pathname:o="/",search:d="",hash:h="",state:y=null,key:v="default",mask:R}=n,g=c.useMemo(()=>{let m=q(o,f);return m==null?null:{location:{pathname:m,search:d,hash:h,state:y,key:v,mask:R},navigationType:r}},[f,o,d,h,y,v,r,R]);
3return H(g!=null,`<Router basename="${f}"> is not able to match the URL "${o}${d}${h}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:c.createElement(N.Provider,{value:l},c.createElement(re.Provider,{children:t,value:g}))}function tn({children:e,location:t}){return ar(we(e),t)}function we(e,t=[]){let n=[];return c.Children.forEach(e,(r,a)=>{if(!c.isValidElement(r))return;let i=[...t,a];if(r.type===c.Fragment){n.push.apply(n,we(r.props.children,i));return}O(r.type===gr,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),O(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=we(r.props.children,i)),n.push(s)}),n}var ie="get",ue="application/x-www-form-urlencoded";function de(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Rr(e){return de(e)&&e.tagName.toLowerCase()==="button"}function Er(e){return de(e)&&e.tagName.toLowerCase()==="form"}function wr(e){return de(e)&&e.tagName.toLowerCase()==="input"}function Cr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Sr(e,t){return e.button===0&&(!t||t==="_self")&&!Cr(e)}var oe=null;function _r(){if(oe===null)try{new FormData(document.createElement("form"),0),oe=!1}catch{oe=!0}return oe}var xr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Re(e){return e!=null&&!xr.has(e)?(H(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ue}"`),null):e}function Pr(e,t){let n,r,a,i,s;if(Er(e)){let f=e.getAttribute("action");r=f?q(f,t):null,n=e.getAttribute("method")||ie,a=Re(e.getAttribute("enctype"))||ue,i=new FormData(e)}else if(Rr(e)||wr(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||f.getAttribute("action");if(r=l?q(l,t):null,n=e.getAttribute("formmethod")||f.getAttribute("method")||ie,a=Re(e.getAttribute("formenctype"))||Re(f.getAttribute("enctype"))||ue,i=new FormData(f,e),!_r()){let{name:o,type:d,value:h}=e;if(d==="image"){let y=o?`${o}.`:"";i.append(`${y}x`,"0"),i.append(`${y}y`,"0")}else o&&i.append(o,h)}}else{if(de(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ie,r=null,a=ue,s=e}return i&&a==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function be(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function st(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&q(a.pathname,t)==="/"?a.pathname=`${se(t)}/_root.${r}`:a.pathname=`${se(a.pathname)}.${r}`,a}async function br(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Tr(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Lr(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let s=await br(i,n);return s.links?s.links():[]}return[]}));return Ar(r.flat(1).filter(Tr).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Be(e,t,n,r,a,i){let s=(l,o)=>n[o]?l.route.id!==n[o].route.id:!0,f=(l,o)=>n[o].pathname!==l.pathname||n[o].route.path?.endsWith("*")&&n[o].params["*"]!==l.params["*"];return i==="assets"?t.filter((l,o)=>s(l,o)||f(l,o)):i==="data"?t.filter((l,o)=>{let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(s(l,o)||f(l,o))return!0;
3if(l.route.shouldRevalidate){let h=l.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function Or(e,t,{includeHydrateFallback:n}={}){return kr(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function kr(e){return[...new Set(e)]}function $r(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Ar(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify($r(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function Te(){let e=c.useContext(V);return be(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Dr(){let e=c.useContext(fe);return be(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Le=c.createContext(void 0);Le.displayName="FrameworkContext";function he(){let e=c.useContext(Le);return be(e,"You must render this element inside a <HydratedRouter> element"),e}function Nr(e,t){let n=c.useContext(Le),[r,a]=c.useState(!1),[i,s]=c.useState(!1),{onFocus:f,onBlur:l,onMouseEnter:o,onMouseLeave:d,onTouchStart:h}=t,y=c.useRef(null);c.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let g=C=>{C.forEach(_=>{s(_.isIntersecting)})},m=new IntersectionObserver(g,{threshold:.5});return y.current&&m.observe(y.current),()=>{m.disconnect()}}},[e]),c.useEffect(()=>{if(r){let g=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(g)}}},[r]);let v=()=>{a(!0)},R=()=>{a(!1),s(!1)};return n?e!=="intent"?[i,y,{}]:[i,y,{onFocus:ee(f,v),onBlur:ee(l,R),onMouseEnter:ee(o,v),onMouseLeave:ee(d,R),onTouchStart:ee(h,v)}]:[!1,y,{}]}function ee(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ir({page:e,...t}){let n=Vt(),{nonce:r}=he(),{router:a}=Te(),i=c.useMemo(()=>qe(a.routes,e,a.basename),[a.routes,e,a.basename]);return i?(t.nonce==null&&r&&(t={...t,nonce:r}),n?c.createElement(Hr,{page:e,matches:i,...t}):c.createElement(Ur,{page:e,matches:i,...t})):null}function Mr(e){let{manifest:t,routeModules:n}=he(),[r,a]=c.useState([]);return c.useEffect(()=>{let i=!1;return Lr(e,t,n).then(s=>{i||a(s)}),()=>{i=!0}},[e,t,n]),r}function Hr({page:e,matches:t,...n}){let r=j(),{future:a}=he(),{basename:i}=Te(),s=c.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let f=st(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),l=!1,o=[];for(let d of t)typeof d.route.shouldRevalidate=="function"?l=!0:o.push(d.route.id);return l&&o.length>0&&f.searchParams.set("_routes",o.join(",")),[f.pathname+f.search]},[i,a.v8_trailingSlashAwareDataRequests,e,r,t]);return c.createElement(c.Fragment,null,s.map(f=>c.createElement("link",{key:f,rel:"prefetch",as:"fetch",href:f,...n})))}function Ur({page:e,matches:t,...n}){let r=j(),{future:a,manifest:i,routeModules:s}=he(),{basename:f}=Te(),{loaderData:l,matches:o}=Dr(),d=c.useMemo(()=>Be(e,t,o,i,r,"data"),[e,t,o,i,r]),h=c.useMemo(()=>Be(e,t,o,i,r,"assets"),[e,t,o,i,r]),y=c.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,m=!1;if(t.forEach(_=>{let x=i.routes[_.route.id];!x||!x.hasLoader||(!d.some($=>$.route.id===_.route.id)&&_.route.id in l&&s[_.route.id]?.shouldRevalidate||x.hasClientLoader?m=!0:g.add(_.route.id))}),g.size===0)return[];let C=st(e,f,a.v8_trailingSlashAwareDataRequests,"data");return m&&g.size>0&&C.searchParams.set("_routes",t.filter(_=>g.has(_.route.id)).map(_=>_.route.id).join(",")),[C.pathname+C.search]},[f,a.v8_trailingSlashAwareDataRequests,l,r,i,d,t,e,s]),v=c.useMemo(()=>Or(h,i),[h,i]),R=Mr(h);return c.createElement(c.Fragment,null,y.map(g=>c.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),v.map(g=>c.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),R.map(({key:g,link:m})=>c.createElement("link",{key:g,nonce:n.nonce,...m,crossOrigin:m.crossOrigin??n.crossOrigin})))}function Fr(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Br=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Br&&(window.__reactRouterVersion="7.18.2")}catch{}function rn({basename:e,children:t,useTransitions:n,window:r}){let a=c.useRef();a.current==null&&(a.current=wt({window:r,v5Compat:!0}));let i=a.current,[s,f]=c.useState({action:i.action,location:i.location}),l=c.useCallback(o=>{n===!1?f(o):c.startTransition(()=>f(o))},[n]);return c.useLayoutEffect(()=>i.listen(l),[i,l]),c.createElement(vr,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,useTransitions:n})}var ct=c.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:s,mask:f,state:l,target:o,to:d,preventScrollReset:h,viewTransition:y,defaultShouldRevalidate:v,...R},g){let{basename:m,navigator:C,useTransitions:_}
3=c.useContext(N),x=typeof d=="string"&&Ce.test(d),$=Qe(d,m);d=$.to;let k=rr(d,{relative:a}),I=j(),P=null;if(f){let F=ce(f,[],I.mask?I.mask.pathname:"/",!0);m!=="/"&&(F.pathname=F.pathname==="/"?m:M([m,F.pathname])),P=C.createHref(F)}let[W,Y,X]=Nr(r,R),Q=qr(d,{replace:s,mask:f,state:l,target:o,preventScrollReset:h,relative:a,viewTransition:y,defaultShouldRevalidate:v,useTransitions:_});function pe(F){t&&t(F),F.defaultPrevented||Q(F)}let Z=!($.isExternal||i),z=c.createElement("a",{...R,...X,href:(Z?P:void 0)||$.absoluteURL||k,onClick:Z?pe:t,ref:Fr(g,Y),target:o,"data-discover":!x&&n==="render"?"true":void 0});return W&&!x?c.createElement(c.Fragment,null,z,c.createElement(Ir,{page:k})):z});ct.displayName="Link";var jr=c.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:s,viewTransition:f,children:l,...o},d){let h=ne(s,{relative:o.relative}),y=j(),v=c.useContext(fe),{navigator:R,basename:g}=c.useContext(N),m=v!=null&&Jr(h)&&f===!0,C=R.encodeLocation?R.encodeLocation(h).pathname:h.pathname,_=y.pathname,x=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(_=_.toLowerCase(),x=x?x.toLowerCase():null,C=C.toLowerCase()),x&&g&&(x=q(x,g)||x);const $=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let k=_===C||!a&&_.startsWith(C)&&_.charAt($)==="/",I=x!=null&&(x===C||!a&&x.startsWith(C)&&x.charAt(C.length)==="/"),P={isActive:k,isPending:I,isTransitioning:m},W=k?t:void 0,Y;typeof r=="function"?Y=r(P):Y=[r,k?"active":null,I?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let X=typeof i=="function"?i(P):i;return c.createElement(ct,{...o,"aria-current":W,className:Y,ref:d,style:X,to:s,viewTransition:f},typeof l=="function"?l(P):l)});jr.displayName="NavLink";var Wr=c.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:s=ie,action:f,onSubmit:l,relative:o,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:y,...v},R)=>{let{useTransitions:g}=c.useContext(N),m=Gr(),C=Vr(f,{relative:o}),_=s.toLowerCase()==="get"?"get":"post",x=typeof f=="string"&&Ce.test(f),$=k=>{if(l&&l(k),k.defaultPrevented)return;k.preventDefault();let I=k.nativeEvent.submitter,P=I?.getAttribute("formmethod")||s,W=()=>m(I||k.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:a,state:i,relative:o,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:y});g&&n!==!1?c.startTransition(()=>W()):W()};return c.createElement("form",{ref:R,method:_,action:C,onSubmit:r?l:$,...v,"data-discover":!x&&e==="render"?"true":void 0})});Wr.displayName="Form";function Yr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ft(e){let t=c.useContext(V);return O(t,Yr(e)),t}function qr(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:f,defaultShouldRevalidate:l,useTransitions:o}={}){let d=ot(),h=j(),y=ne(e,{relative:s});return c.useCallback(v=>{if(Sr(v,t)){v.preventDefault();let R=n!==void 0?n:te(h)===te(y),g=()=>d(e,{replace:R,mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:f,defaultShouldRevalidate:l});o?c.startTransition(()=>g()):g()}},[h,d,y,n,r,a,t,e,i,s,f,l,o])}var zr=0,Kr=()=>`__${String(++zr)}__`;function Gr(){let{router:e}=ft("useSubmit"),{basename:t}=c.useContext(N),n=hr(),r=e.fetch,a=e.navigate;return c.useCallback(async(i,s={})=>{let{action:f,method:l,encType:o,formData:d,body:h}=Pr(i,t);if(s.navigate===!1){let y=s.fetcherKey||Kr();await r(y,n,s.action||f,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:d,body:h,formMethod:s.method||l,formEncType:s.encType||o,flushSync:s.flushSync})}else await a(s.action||f,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:d,body:h,formMethod:s.method||l,formEncType:s.encType||o,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,a,t,n])}function Vr(e,{relative:t}={}){let{basename:n}=c.useContext(N),r=c.useContext(U);O(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...ne(e||".",{relative:t})},s=j();if(e==null){i.search=s.search;let f=new URLSearchParams(i.search),l=f.getAll("index");if(l.some(d=>d==="")){f.delete("index"),l.filter(h=>
3h).forEach(h=>f.append("index",h));let d=f.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:M([n,i.pathname])),te(i)}function Jr(e,{relative:t}={}){let n=c.useContext(tt);O(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ft("useViewTransitionState"),a=ne(e,{relative:t});if(!n.isTransitioning)return!1;let i=q(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=q(n.nextLocation.pathname,r)||n.nextLocation.pathname;return le(a.pathname,s)!=null||le(a.pathname,i)!=null}var Xr=Rt();const nn=je(Xr);export{rn as B,en as N,Qr as R,Rt as a,c as b,Xr as c,gt as d,nn as e,Zr as f,je as g,j as h,tn as i,gr as j,We as r,ot as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.