PageSourceSearch

https://www.frostrek.ai/assets/vendor-react--8bny8FL.js

js frostrek.ai collected 2026-10-05 15:21:33 UTC 45,912 bytes, 3 lines download raw bytes

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