"use strict";const c=require("react-router");class i{constructor(t){this.link=t}makePath(t,a){const e=c.generatePath(this.link,t),r=new URLSearchParams;for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&r.append(s,String(a[s]));const n=r.toString();return`${e}${n?`?${n}`:""}`}withSearchParams(t){return this.makePath(void 0,t)}is(t,a={}){const{exact:e=!0,strict:r=!1}=a;return c.matchPath(t,{path:this.link,exact:e,strict:r})}}exports.PageRoute=i;
