1import{a as s,R as O}from"./vendor.react-DbtEuUu-.js";import{l as _,R as k,N as x,u as F,a as P,b as B,c as N}from"./vendor.react-router-B8UFWBpB.js";import{c as I,s as V,b as y}from"./vendor.@remix-run-DCv_dl0Q.js";function m(){return m=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},m.apply(null,arguments)}function A(e,r){if(e==null)return{};var a={};for(var t in e)if({}.hasOwnProperty.call(e,t)){if(r.indexOf(t)!==-1)continue;a[t]=e[t]}return a}function K(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function W(e,r){return e.button===0&&(!r||r==="_self")&&!K(e)}const j=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],z="6";try{window.__reactRouterVersion=z}catch{}const G="startTransition",S=O[G];function Q(e){let{basename:r,children:a,future:t,window:c}=e,l=s.useRef();l.current==null&&(l.current=I({window:c,v5Compat:!0}));let i=l.current,[u,o]=s.useState({action:i.action,location:i.location}),{v7_startTransition:n}=t||{},f=s.useCallback(p=>{n&&S?S(()=>o(p)):o(p)},[o,n]);return s.useLayoutEffect(()=>i.listen(f),[i,f]),s.useEffect(()=>_(),[t]),s.createElement(k,{basename:r,children:a,location:u.location,navigationType:u.action,navigator:i,future:t})}const M=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",X=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Y=s.forwardRef(function(r,a){let{onClick:t,relative:c,reloadDocument:l,replace:i,state:u,target:o,to:n,preventScrollReset:f,viewTransition:p}=r,w=A(r,j),{basename:U}=s.useContext(x),R,v=!1;if(typeof n=="string"&&X.test(n)&&(R=n,M))try{let d=new URL(window.location.href),h=n.startsWith("//")?new URL(d.protocol+n):new URL(n),g=V(h.pathname,U);h.origin===d.origin&&g!=null?n=g+h.search+h.hash:v=!0}catch{}let E=F(n,{relative:c}
vendor: 917 bytes, line 1
1),C=q(n,{replace:i,state:u,target:o,preventScrollReset:f,relative:c,viewTransition:p});function L(d){t&&t(d),d.defaultPrevented||C(d)}return s.createElement("a",m({},w,{href:R||E,onClick:v||l?t:L,ref:a,target:o}))});var b;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(b||(b={}));var T;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(T||(T={}));function q(e,r){let{target:a,replace:t,state:c,preventScrollReset:l,relative:i,viewTransition:u}=r===void 0?{}:r,o=P(),n=B(),f=N(e,{relative:i});return s.useCallback(p=>{if(W(p,a)){p.preventDefault();let w=t!==void 0?t:y(n)===y(f);o(e,{replace:w,state:c,preventScrollReset:l,relative:i,viewTransition:u})}},[n,o,f,t,c,a,e,l,i,u])}export{Q as B,Y as L};
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.