PageSourceSearch

https://drburnsreleaf.com/assets/react-vendor-lnfwj2b6.js

js drburnsreleaf.com collected 2026-10-04 12:20:32 UTC 50,141 bytes, 29 lines download raw bytes

vendor: 9,068 bytes, lines 1-17
1function dt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pe={exports:{}},E={};/**
2 * @license React
3 * react.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var $e;function ht(){if($e)return E;$e=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 R(u){return u===null||typeof u!="object"?null:(u=y&&u[y]||u["@@iterator"],typeof u=="function"?u:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function m(u,p,C){this.props=u,this.context=p,this.refs=g,this.updater=C||S}m.prototype.isReactComponent={},m.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")},m.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function _(){}_.prototype=m.prototype;function x(u,p,C){this.props=u,this.context=p,this.refs=g,this.updater=C||S}var $=x.prototype=new _;$.constructor=x,v($,m.prototype),$.isPureReactComponent=!0;var O=Array.isArray;function D(){}var P={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function Y(u,p,C){var w=C.ref;return{$$typeof:e,type:u,key:p,ref:w!==void 0?w:null,props:C}}function X(u,p){return Y(u.type,p,u.props)}function Q(u){return typeof u=="object"&&u!==null&&u.$$typeof===e}function he(u){var p={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function(C){return p[C]})}var Z=/\/+/g;function z(u,p){return typeof u=="object"&&u!==null&&u.key!=null?he(""+u.key):p.toString(36)}function B(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(D,D):(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,C,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,C,w,b)}}if(L)return b=b(u),L=w===""?"."+z(u,0):w,O(b)?(C="",L!=null&&(C=L.replace(Z,"$&/")+"/"),K(b,p,C,"",function(ft){return ft})):b!=null&&(Q(b)&&(b=X(b,C+(b.key==null||u&&u.key===b.key?"":(""+b.key).replace(Z,"$&/")+"/")+L)),p.push(b)),1;L=0;var j=w===""?".":w+":";if(O(u))for(var N=0;N<u.length;N++)w=u[N],T=j+z(w,N),L+=K(w,p,C,T,b);else if(N=R(u),typeof N=="function")for(u=N.call(u),N=0;!(w=u.next()).done;)w=w.value,T=j+z(w,N++),L+=K(w,p,C,T,b);else if(T==="object"){if(typeof u.then=="function")return K(B(u),p,C,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,C){if(u==null)return u;var w=[],b=0;return K(u,w,"","",function(T){return p.call(C,T,b++)}),w}function st(u){if(u._status===-1){var p=u._result;p=p(),p.then(function(C){(u._status===0||u._status===-1)&&(u._status=1,u._result=C)},function(C){(u._status===0||u._status===-1)&&(u._status=2,u._result=C)}),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)},ct={map:ae,forEach:function(u,p,C){ae(u,function(){p.apply(this,arguments)},C)},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=ct,E.Component=m,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,C){if(u==null)throw Error("The argument must be a React element, but you passed "+u+".");var w=v({},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=C;else if(1<T){for(var L=Array(T),j=0;j<T;j++)L[j]=arguments[j+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,C){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=C;else if(1<L){for(var j=Array(L),N=0;N<L;N++)j[N]=arguments[N+2];b.children=j}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:st}},E.memo=function(u,p){return{$$typeof:o,type:u,compare:p===void 0?null:p}},E.startTransition=function(u){var p=P.T,C={};P.T=C;try{var w=u(),b=P.S;b!==null&&b(C,w),typeof w=="object"&&w!==null&&typeof w.then=="function"&&w.then(D,Oe)}catch(T){Oe(T)}finally{p!==null&&C.types!==null&&(p.types=C.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,C){return P.H.useActionState(u,p,C)},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,C){return P.H.useImperativeHandle(u,p,C)},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,C){return P.H.useReducer(u,p,C)},E.useRef=function(u){return P.H.useRef(u)},E.useState=function(u){return P.H.useState(u)},E.useSyncExternalStore=function(u,p,C){return P.H.useSyncExternalStore(u,p,C)},E.useTransition=function(){return P.H.useTransition()},E.version="19.2.6",E}var Ae;function We(){return Ae||(Ae=1,pe.exports=ht()),pe.exports}var c=We();const Gr=dt(c);var me={exports:{}},A={};/**
10 * @license React
11 * react-dom.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var De;function pt(){if(De)return A;De=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"";
17if(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=="string"?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,R=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:R}):d==="script"&&r.d.X(l,{crossOrigin:h,integrity:y,fetchPriority:R,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.6",A}var Ne;function Vr(){if(Ne)return me.exports;Ne=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(),me.exports=pt(),me.exports}/**
18 * react-router v7.15.1
19 *
20 * Copyright (c) Remix Software Inc.
21 *
22 * This source code is licensed under the MIT license found in the
23 * LICENSE.md file in the root directory of this source tree.
24 *
25 * @license MIT
26 */var Ie="popstate";function Me(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function mt(e={}){function t(r,a){var o;let i=(o=a.state)==null?void 0:o.masked,{pathname:s,search:f,hash:l}=i||r.location;return Re("",{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 gt(t,n,null,e)}function k(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function M(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function yt(){return Math.random().toString(36).substring(2,10)}function He(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 Re(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||yt(),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 gt(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 g=d(),m=g==null?null:g-o;o=g,l&&l({action:f,location:v.location,delta:m})}function y(g,m){f="PUSH";let _=Me(g)?g:Re(v.location,g,m);o=d()+1;let x=He(_,o),$=v.createHref(_.mask||_);try{s.pushState(x,"",$)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign($)}i&&l&&l({action:f,location:v.location,delta:1})}function R(g,m){f="REPLACE";let _=Me(g)?g:Re(v.location,g,m);o=d();let x=He(_,o),$=v.createHref(_.mask||_);s.replaceState(x,"",$),i&&l&&l({action:f,location:v.location,delta:0})}function S(g){return vt(g)}let v={get action(){return f},get location(){return e(a,s)},listen(g){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(Ie,h),l=g,()=>{a.removeEventListener(Ie,h),l=null}},createHref(g){return t(a,g)},createURL:S,encodeLocation(g){let m=S(g);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:y,replace:R,go(g){return s.go(g)}};return v}function vt(e,t=!1){let n="http://localhost";
26typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),k(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:te(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Ye(e,t,n="/"){return Rt(e,t,n,!1)}function Rt(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=Et(e),l=null,o=$t(s);for(let d=0;l==null&&d<f.length;++d)l=kt(f[d],o,r);return l}function Et(e){let t=qe(e);return wt(t),t}function qe(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;k(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=U([r,d.relativePath]),y=n.concat(d);s.children&&s.children.length>0&&(k(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),qe(s.children,t,y,h,l)),!(s.path==null&&!s.index)&&t.push({path:h,score:Tt(h,s.index),routesMeta:y})};return e.forEach((s,f)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,f);else for(let o of ze(s.path))i(s,f,!0,o)}),t}function ze(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=ze(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 wt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Lt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var St=/^:[\w-]+$/,Ct=3,_t=2,xt=1,Pt=10,bt=-2,Ue=e=>e==="*";function Tt(e,t){let n=e.split("/"),r=n.length;return n.some(Ue)&&(r+=bt),t&&(r+=_t),n.filter(a=>!Ue(a)).reduce((a,i)=>a+(St.test(i)?Ct:i===""?xt:Pt),r)}function Lt(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 kt(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=le({path:l.relativePath,caseSensitive:l.caseSensitive,end:o},d),y=l.route;if(!h&&o&&n&&!r[r.length-1].route.index&&(h=le({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;
26Object.assign(a,h.params),s.push({params:a,pathname:U([i,h.pathname]),pathnameBase:It(U([i,h.pathnameBase])),route:y}),h.pathnameBase!=="/"&&(i=U([i,h.pathnameBase]))}return s}function le(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ot(e.path,e.caseSensitive,e.end),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 S=f[y]||"";s=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const R=f[y];return h&&!R?o[d]=void 0:o[d]=(R||"").replace(/%2F/g,"/"),o},{}),pathname:i,pathnameBase:s,pattern:e}}function Ot(e,t=!1,n=!0){M(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 $t(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return M(!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)||"/"}var At=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Dt(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?G(e):e,i;return n?(n=Ke(n),n.startsWith("/")?i=Fe(n.substring(1),"/"):i=Fe(n,t)):i=t,{pathname:i,search:Mt(r),hash:Ht(a)}}function Fe(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 ye(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 Nt(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Se(e){let t=Nt(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},k(!a.pathname||!a.pathname.includes("?"),ye("?","pathname","search",a)),k(!a.pathname||!a.pathname.includes("#"),ye("#","pathname","hash",a)),k(!a.search||!a.search.includes("#"),ye("#","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=Dt(a,f),o=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(o||d)&&(l.pathname+="/"),l}var Ke=e=>e.replace(/\/\/+/g,"/"),U=e=>Ke(e.join("/")),se=e=>e.replace(/\/+$/,""),It=e=>se(e).replace(/^\/*/,"/"),Mt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ht=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Ut=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 Ft(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Bt(e){let t=e.map(n=>n.route.path).filter(Boolean);return U(t)||"/"}var Ge=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ve(e,t){let n=e;if(typeof n!="string"||!At.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(Ge)try{let i=new URL(window.location.href),s=n.startsWith("//")?new URL(i.protocol+n):new URL(n),f=q(s.pathname,t);s.origin===i.origin&&f!=null?n=f+s.search+s.hash:a=!0}catch{M(!1,`<Link to="${n}">
26 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 Je=["POST","PUT","PATCH","DELETE"];new Set(Je);var jt=["GET",...Je];new Set(jt);var V=c.createContext(null);V.displayName="DataRouter";var fe=c.createContext(null);fe.displayName="DataRouterState";var Xe=c.createContext(!1);function Wt(){return c.useContext(Xe)}var Qe=c.createContext({isTransitioning:!1});Qe.displayName="ViewTransition";var Yt=c.createContext(new Map);Yt.displayName="Fetchers";var qt=c.createContext(null);qt.displayName="Await";var I=c.createContext(null);I.displayName="Navigation";var re=c.createContext(null);re.displayName="Location";var H=c.createContext({outlet:null,matches:[],isDataRoute:!1});H.displayName="Route";var Ce=c.createContext(null);Ce.displayName="RouteError";var Ze="REACT_ROUTER_ERROR",zt="REDIRECT",Kt="ROUTE_ERROR_RESPONSE";function Gt(e){if(e.startsWith(`${Ze}:${zt}:{`))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 Vt(e){if(e.startsWith(`${Ze}:${Kt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Ut(t.status,t.statusText,t.data)}catch{}}function Jt(e,{relative:t}={}){k(J(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=c.useContext(I),{hash:a,pathname:i,search:s}=ne(e,{relative:t}),f=i;return n!=="/"&&(f=i==="/"?n:U([n,i])),r.createHref({pathname:f,search:s,hash:a})}function J(){return c.useContext(re)!=null}function F(){return k(J(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(re).location}var et="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function tt(e){c.useContext(I).static||c.useLayoutEffect(e)}function _e(){let{isDataRoute:e}=c.useContext(H);return e?fr():Xt()}function Xt(){k(J(),"useNavigate() may be used only in the context of a <Router> component.");let e=c.useContext(V),{basename:t,navigator:n}=c.useContext(I),{matches:r}=c.useContext(H),{pathname:a}=F(),i=JSON.stringify(Se(r)),s=c.useRef(!1);return tt(()=>{s.current=!0}),c.useCallback((l,o={})=>{if(M(s.current,et),!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:U([t,d.pathname])),(o.replace?n.replace:n.push)(d,o.state,o)},[t,n,i,a,e])}var Qt=c.createContext(null);function Zt(e){let t=c.useContext(H).outlet;return c.useMemo(()=>t&&c.createElement(Qt.Provider,{value:e},t),[t,e])}function Jr(){let{matches:e}=c.useContext(H),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function ne(e,{relative:t}={}){let{matches:n}=c.useContext(H),{pathname:r}=F(),a=JSON.stringify(Se(n));return c.useMemo(()=>ce(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function er(e,t){return rt(e,t)}function rt(e,t,n){var g;k(J(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=c.useContext(I),{matches:a}=c.useContext(H),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||"";at(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.
27
28Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let d=F(),h;if(t){let m=typeof t=="string"?G(t):t;k(l==="/"||((g=m.pathname)==null?void 0:g.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||"/",R=y;if(l!=="/"){let m=l.replace(/^\//,"").split("/");R="/"+y.replace(/^\//,"").split("/").slice(m.length).join("/")}let S=n&&n.state.matches.length?n.state.matches.map(m=>Object.assign(m,{route:n.manifest[m.route.id]||m.route})):Ye(e,{pathname:R});M(o||S!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),M(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.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 v=or(S&&S.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:U([l,r.encodeLocation?r.encodeLocation(m.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:U([l,r.encodeLocation?r.encodeLocation(m.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),a,n);return t&&v?c.createElement(re.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...h},navigationType:"POP"}},v):v}function tr(){let e=cr(),t=Ft(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 
28Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:a},n):null,s)}var rr=c.createElement(tr,null),nt=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=Vt(e.digest);n&&(e=n)}let t=e!==void 0?c.createElement(H.Provider,{value:this.props.routeContext},c.createElement(Ce.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?c.createElement(nr,{error:e},t):t}};nt.contextType=Xe;var ge=new WeakMap;function nr({children:e,error:t}){let{basename:n}=c.useContext(I);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Gt(t.digest);if(r){let a=ge.get(t);if(a)throw a;let i=Ve(r.location,n);if(Ge&&!ge.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw ge.set(t,s),s}return c.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function ar({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(H.Provider,{value:e},n)}function or(e,t=[],n){let r=n==null?void 0: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==null?void 0:r.errors;if(i!=null){let d=a.findIndex(h=>h.route.id&&(i==null?void 0:i[h.route.id])!==void 0);k(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:R}=r,S=h.route.loader&&!y.hasOwnProperty(h.route.id)&&(!R||R[h.route.id]===void 0);if(h.route.lazy||S){n.isStatic&&(s=!0),f>=0?a=a.slice(0,f+1):a=[a[0]];break}}}}let l=n==null?void 0:n.onError,o=r&&l?(d,h)=>{var y,R;l(d,{location:r.location,params:((R=(y=r.matches)==null?void 0:y[0])==null?void 0:R.params)??{},pattern:Bt(r.matches),errorInfo:h})}:void 0;return a.reduceRight((d,h,y)=>{let R,S=!1,v=null,g=null;r&&(R=i&&h.route.id?i[h.route.id]:void 0,v=h.route.errorElement||rr,s&&(f<0&&y===0?(at("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,g=null):f===y&&(S=!0,g=h.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,y+1)),_=()=>{let x;return R?x=v:S?x=g:h.route.Component?x=c.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=d,c.createElement(ar,{match:h,routeContext:{outlet:d,matches:m,isDataRoute:r!=null},children:x})};return r&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?c.createElement(nt,{location:r.location,revalidation:r.revalidation,component:v,error:R,children:_(),routeContext:{outlet:null,matches:m,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 ir(e){let t=c.useContext(V);return k(t,xe(e)),t}function ur(e){let t=c.useContext(fe);return k(t,xe(e)),t}function lr(e){let t=c.useContext(H);return k(t,xe(e)),t}function Pe(e){let t=lr(e),n=t.matches[t.matches.length-1];return k(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function sr(){return Pe("useRouteId")}function cr(){var r;let e=c.useContext(Ce),t=ur("useRouteError"),n=Pe("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function fr(){let{router:e}=ir("useNavigate"),t=Pe("useNavigate"),n=c.useRef(!1);return tt(()=>{n.current=!0}),c.useCallback(async(a,i={})=>{M(n.current,et),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var Be={};function at(e,t,n){!t&&!Be[e]&&(Be[e]=!0,M(!1,n))}c.memo(dr);function dr({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return rt(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function Xr({to:e,replace:t,state:n,relative:r}){k(J(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=c.useContext(I);M(!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(H),{pathname:s}=F(),f=_e(),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 Qr(e){return Zt(e.context)}function hr(e){k(!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 pr({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:s}){k(!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:R="default",mask:S}=n,v=c.useMemo(()=>{let g=q(o,f);return g==null?null:{location:{pathname:g,search:d,hash:h,state:y,key:R,mask:S},navigationType:r}},[f,o,d,h,y,R,r,S]);
28return M(v!=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.`),v==null?null:c.createElement(I.Provider,{value:l},c.createElement(re.Provider,{children:t,value:v}))}function Zr({children:e,location:t}){return er(Ee(e),t)}function Ee(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,Ee(r.props.children,i));return}k(r.type===hr,`[${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>`),k(!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=Ee(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 mr(e){return de(e)&&e.tagName.toLowerCase()==="button"}function yr(e){return de(e)&&e.tagName.toLowerCase()==="form"}function gr(e){return de(e)&&e.tagName.toLowerCase()==="input"}function vr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Rr(e,t){return e.button===0&&(!t||t==="_self")&&!vr(e)}function we(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function Er(e,t){let n=we(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}var oe=null;function wr(){if(oe===null)try{new FormData(document.createElement("form"),0),oe=!1}catch{oe=!0}return oe}var Sr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ve(e){return e!=null&&!Sr.has(e)?(M(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ue}"`),null):e}function Cr(e,t){let n,r,a,i,s;if(yr(e)){let f=e.getAttribute("action");r=f?q(f,t):null,n=e.getAttribute("method")||ie,a=ve(e.getAttribute("enctype"))||ue,i=new FormData(e)}else if(mr(e)||gr(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=ve(e.getAttribute("formenctype"))||ve(f.getAttribute("enctype"))||ue,i=new FormData(f,e),!wr()){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 ot(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 _r(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.
28isSpaMode,window.location.reload(),new Promise(()=>{})}}function xr(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 Pr(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let s=await _r(i,n);return s.links?s.links():[]}return[]}));return kr(r.flat(1).filter(xr).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function je(e,t,n,r,a,i){let s=(l,o)=>n[o]?l.route.id!==n[o].route.id:!0,f=(l,o)=>{var d;return n[o].pathname!==l.pathname||((d=n[o].route.path)==null?void 0:d.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)=>{var h;let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(s(l,o)||f(l,o))return!0;if(l.route.shouldRevalidate){let y=l.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((h=n[0])==null?void 0:h.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function br(e,t,{includeHydrateFallback:n}={}){return Tr(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 Tr(e){return[...new Set(e)]}function Lr(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function kr(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(Lr(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 Or(){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 ke(){let e=c.useContext(Le);return be(e,"You must render this element inside a <HydratedRouter> element"),e}function $r(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 v=m=>{m.forEach(_=>{s(_.isIntersecting)})},g=new IntersectionObserver(v,{threshold:.5});return y.current&&g.observe(y.current),()=>{g.disconnect()}}},[e]),c.useEffect(()=>{if(r){let v=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(v)}}},[r]);let R=()=>{a(!0)},S=()=>{a(!1),s(!1)};return n?e!=="intent"?[i,y,{}]:[i,y,{onFocus:ee(f,R),onBlur:ee(l,S),onMouseEnter:ee(o,R),onMouseLeave:ee(d,S),onTouchStart:ee(h,R)}]:[!1,y,{}]}function ee(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ar({page:e,...t}){let n=Wt(),{router:r}=Te(),a=c.useMemo(()=>Ye(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?c.createElement(Nr,{page:e,matches:a,...t}):c.createElement(Ir,{page:e,matches:a,...t}):null}function Dr(e){let{manifest:t,routeModules:n}=ke(),[r,a]=c.useState([]);return c.useEffect(()=>{let i=!1;return Pr(e,t,n).then(s=>{i||a(s)}),()=>{i=!0}},[e,t,n]),r}function Nr({page:e,matches:t,...n}){let r=F(),{future:a}=ke(),{basename:i}=Te(),s=c.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let f=ot(e,i,a.unstable_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.unstable_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 Ir({page:e,matches:t,...n}){let r=F(),{future:a,manifest:i,routeModules:s}=ke(),{basename:f}=Te(),{loaderData:l,matches:o}=Or(),d=c.useMemo(()=>je(e,t,o,i,r,"data"),[e,t,o,i,r]),h=c.useMemo(()=>je(e,t,o,i,r,"assets"),[e,t,o,i,r]),y=c.useMemo(()=>
28{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,g=!1;if(t.forEach(_=>{var $;let x=i.routes[_.route.id];!x||!x.hasLoader||(!d.some(O=>O.route.id===_.route.id)&&_.route.id in l&&(($=s[_.route.id])!=null&&$.shouldRevalidate)||x.hasClientLoader?g=!0:v.add(_.route.id))}),v.size===0)return[];let m=ot(e,f,a.unstable_trailingSlashAwareDataRequests,"data");return g&&v.size>0&&m.searchParams.set("_routes",t.filter(_=>v.has(_.route.id)).map(_=>_.route.id).join(",")),[m.pathname+m.search]},[f,a.unstable_trailingSlashAwareDataRequests,l,r,i,d,t,e,s]),R=c.useMemo(()=>br(h,i),[h,i]),S=Dr(h);return c.createElement(c.Fragment,null,y.map(v=>c.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),R.map(v=>c.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),S.map(({key:v,link:g})=>c.createElement("link",{key:v,nonce:n.nonce,...g,crossOrigin:g.crossOrigin??n.crossOrigin})))}function Mr(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Hr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Hr&&(window.__reactRouterVersion="7.15.1")}catch{}function en({basename:e,children:t,useTransitions:n,window:r}){let a=c.useRef();a.current==null&&(a.current=mt({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(pr,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,useTransitions:n})}var it=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ut=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:R,...S},v){let{basename:g,navigator:m,useTransitions:_}=c.useContext(I),x=typeof d=="string"&&it.test(d),$=Ve(d,g);d=$.to;let O=Jt(d,{relative:a}),D=F(),P=null;if(f){let B=ce(f,[],D.mask?D.mask.pathname:"/",!0);g!=="/"&&(B.pathname=B.pathname==="/"?g:U([g,B.pathname])),P=m.createHref(B)}let[W,Y,X]=$r(r,S),Q=jr(d,{replace:s,mask:f,state:l,target:o,preventScrollReset:h,relative:a,viewTransition:y,defaultShouldRevalidate:R,useTransitions:_});function he(B){t&&t(B),B.defaultPrevented||Q(B)}let Z=!($.isExternal||i),z=c.createElement("a",{...S,...X,href:(Z?P:void 0)||$.absoluteURL||O,onClick:Z?he:t,ref:Mr(v,Y),target:o,"data-discover":!x&&n==="render"?"true":void 0});return W&&!x?c.createElement(c.Fragment,null,z,c.createElement(Ar,{page:O})):z});ut.displayName="Link";var Ur=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=F(),R=c.useContext(fe),{navigator:S,basename:v}=c.useContext(I),g=R!=null&&Kr(h)&&f===!0,m=S.encodeLocation?S.encodeLocation(h).pathname:h.pathname,_=y.pathname,x=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;n||(_=_.toLowerCase(),x=x?x.toLowerCase():null,m=m.toLowerCase()),x&&v&&(x=q(x,v)||x);const $=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let O=_===m||!a&&_.startsWith(m)&&_.charAt($)==="/",D=x!=null&&(x===m||!a&&x.startsWith(m)&&x.charAt(m.length)==="/"),P={isActive:O,isPending:D,isTransitioning:g},W=O?t:void 0,Y;typeof r=="function"?Y=r(P):Y=[r,O?"active":null,D?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let X=typeof i=="function"?i(P):i;return c.createElement(ut,{...o,"aria-current":W,className:Y,ref:d,style:X,to:s,viewTransition:f},typeof l=="function"?l(P):l)});Ur.displayName="NavLink";var Fr=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,...R},S)=>{let{useTransitions:v}=c.useContext(I),g=qr(),m=zr(f,{relative:o}),_=s.toLowerCase()==="get"?"get":"post",x=typeof f=="string"&&it.test(f),$=O=>{if(l&&l(O),O.defaultPrevented)return;O.preventDefault();let D=O.nativeEvent.submitter,P=(D==null?void 0:D.getAttribute("formmethod"))||s,W=()=>g(D||O.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:a,state:i,relative:o,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:y});v&&n!==!1?c.startTransition(()=>W()):W()};return c.createElement("form",{ref:S,method:_,action:m,onSubmit:r?l:$,...R,"data-discover":!x&&e==="render"?"true":void 0})});Fr.displayName="Form";function Br(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function lt(e){let t=c.useContext(V);return k(t,Br(e)),t}function jr(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:f,defaultShouldRevalidate:l,useTransitions:o}={}){let d=_e(),h=F(),y=ne(e,{relative:s});return c.useCallback(R=>
28{if(Rr(R,t)){R.preventDefault();let S=n!==void 0?n:te(h)===te(y),v=()=>d(e,{replace:S,mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:f,defaultShouldRevalidate:l});o?c.startTransition(()=>v()):v()}},[h,d,y,n,r,a,t,e,i,s,f,l,o])}function tn(e){M(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=c.useRef(we(e)),n=c.useRef(!1),r=F(),a=c.useMemo(()=>Er(r.search,n.current?null:t.current),[r.search]),i=_e(),s=c.useCallback((f,l)=>{const o=we(typeof f=="function"?f(new URLSearchParams(a)):f);n.current=!0,i("?"+o,l)},[i,a]);return[a,s]}var Wr=0,Yr=()=>`__${String(++Wr)}__`;function qr(){let{router:e}=lt("useSubmit"),{basename:t}=c.useContext(I),n=sr(),r=e.fetch,a=e.navigate;return c.useCallback(async(i,s={})=>{let{action:f,method:l,encType:o,formData:d,body:h}=Cr(i,t);if(s.navigate===!1){let y=s.fetcherKey||Yr();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 zr(e,{relative:t}={}){let{basename:n}=c.useContext(I),r=c.useContext(H);k(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...ne(e||".",{relative:t})},s=F();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=>h).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:U([n,i.pathname])),te(i)}function Kr(e,{relative:t}={}){let n=c.useContext(Qe);k(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=lt("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}export{en as B,ut as L,Ur as N,Qr as O,Gr as R,Xr as a,hr as b,Zr as c,We as d,Vr as e,_e as f,dt as g,Jr as h,tn as i,c as r,F as u};
29//# sourceMappingURL=react-vendor-lnfwj2b6.js.map

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.