import{cZ as N,fL as X,fM as Y,fN as x,r as ee}from"./index-BbiZcFRx.js";var te={};const re=N(X),ne=N(Y),oe=N(x);(function(a){function H(e){return e&&typeof e=="object"&&"default"in e?e.default:e}Object.defineProperty(a,"__esModule",{value:!0});var i=re,f=H(ee),p=ne,S=H(oe);function v(){return(v=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function A(e,r){e.prototype=Object.create(r.prototype),M(e.prototype.constructor=e,r)}function M(e,r){return(M=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(e,r)}function j(e,r){if(e==null)return{};var t,n,u={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],0<=r.indexOf(t)||(u[t]=e[t]);return u}var Z=function(e){function r(){for(var t,n=arguments.length,u=new Array(n),o=0;o<n;o++)u[o]=arguments[o];return(t=e.call.apply(e,[this].concat(u))||this).history=p.createBrowserHistory(t.props),t}return A(r,e),r.prototype.render=function(){return f.createElement(i.Router,{history:this.history,children:this.props.children})},r}(f.Component),F=function(e){function r(){for(var t,n=arguments.length,u=new Array(n),o=0;o<n;o++)u[o]=arguments[o];return(t=e.call.apply(e,[this].concat(u))||this).history=p.createHashHistory(t.props),t}return A(r,e),r.prototype.render=function(){return f.createElement(i.Router,{history:this.history,children:this.props.children})},r}(f.Component),O=function(e,r){return typeof e=="function"?e(r):e},w=function(e,r){return typeof e=="string"?p.createLocation(e,null,null,r):e},_=function(e){return e},y=f.forwardRef;function G(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}y===void 0&&(y=_);var J=y(function(e,r){var t=e.innerRef,n=e.navigate,u=e.onClick,o=j(e,["innerRef","navigate","onClick"]),m=o.target,l=v({},o,{onClick:function(c){try{u&&u(c)}catch(s){throw c.preventDefault(),s}c.defaultPrevented||c.button!==0||m&&m!=="_self"||G(c)||(c.preventDefault(),n())}});return l.ref=_!==y&&r||t,f.createElement("a",l)}),D=y(function(e,r){var t=e.component,n=t===void 0?J:t,u=e.replace,o=e.to,m=e.innerRef,l=j(e,["component","replace","to","innerRef"]);return f.createElement(i.__RouterContext.Consumer,null,function(c){c||S(!1);var s=c.history,R=w(O(o,c.location),c.location),L=R?s.createHref(R):"",d=v({},l,{href:L,navigate:function(){var h=O(o,c.location),C=p.createPath(c.location)===p.createPath(w(h));(u||C?s.replace:s.push)(h)}});return _!==y?d.ref=r||m:d.innerRef=m,f.createElement(n,d)})}),K=function(e){return e},g=f.forwardRef;function Q(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter(function(n){return n}).join(" ")}g===void 0&&(g=K);var U=g(function(e,r){var t=e["aria-current"],n=t===void 0?"page":t,u=e.activeClassName,o=u===void 0?"active":u,m=e.activeStyle,l=e.className,c=e.exact,s=e.isActive,R=e.location,L=e.sensitive,d=e.strict,h=e.style,C=e.to,q=e.innerRef,V=j(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return f.createElement(i.__RouterContext.Consumer,null,function(B){B||S(!1);var b=R||B.location,T=w(O(C,b),b),z=T.pathname,I=z&&z.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),W=I?i.matchPath(b.pathname,{path:I,exact:c,sensitive:L,strict:d}):null,P=!!(s?s(W,b):W),$=typeof l=="function"?l(P):l,k=typeof h=="function"?h(P):h;P&&($=Q($,o),k=v({},k,m));var E=v({"aria-current":P&&n||null,className:$,style:k,to:T},V);return K!==g?E.ref=r||q:E.innerRef=q,f.createElement(D,E)})});Object.defineProperty(a,"MemoryRouter",{enumerable:!0,get:function(){return i.MemoryRouter}}),Object.defineProperty(a,"Prompt",{enumerable:!0,get:function(){return i.Prompt}}),Object.defineProperty(a,"Redirect",{enumerable:!0,get:function(){return i.Redirect}}),Object.defineProperty(a,"Route",{enumerable:!0,get:function(){return i.Route}}),Object.defineProperty(a,"Router",{enumerable:!0,get:function(){return i.Router}}),Object.defineProperty(a,"StaticRouter",{enumerable:!0,get:function(){return i.StaticRouter}}),Object.defineProperty(a,"Switch",{enumerable:!0,get:function(){return i.Switch}}),Object.defineProperty(a,"generatePath",{enumerable:!0,get:function(){return i.generatePath}}),Object.defineProperty(a,"matchPath",{enumerable:!0,get:function(){return i.matchPath}}),Object.defineProperty(a,"useHistory",{enumerable:!0,get:function(){return i.useHistory}}),Object.defineProperty(a,"useLocation",{enumerable:!0,get:function(){return i.useLocation}}),Object.defineProperty(a,"useParams",{enumerable:!0,get:function(){return i.useParams}}),Object.defineProperty(a,"useRouteMatch",{enumerable:!0,get:function(){return i.useRouteMatch}}),Object.defineProperty(a,"withRouter",{enumerable:!0,get:function(){return i.withRouter}}),a.BrowserRouter=Z,a.HashRouter=F,a.Link=D,a.NavLink=U})(te);export{te as r};
//# sourceMappingURL=react-router-dom.min-DVdAeQty.js.map