From 897e652f8b9de78148e69fad0837b50339486d19 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Sat, 10 May 2025 08:02:15 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20preview-env=20from=20@=20shlin?= =?UTF-8?q?kio/shlink-web-client@74ffd6382885fae9da5c3349a51f21e0d2dbfe20?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-DUN5guSa.js => index-DjaCyS1r.js} | 114 +++++++++--------- ...{index-C6SmNkhh.css => index-DsE4VIuL.css} | 2 +- .../npm_and_yarn/vite-44135b917d/index.html | 4 +- .../vite-44135b917d/service-worker.js | 2 +- 4 files changed, 61 insertions(+), 61 deletions(-) rename dependabot/npm_and_yarn/vite-44135b917d/assets/{index-DUN5guSa.js => index-DjaCyS1r.js} (85%) rename dependabot/npm_and_yarn/vite-44135b917d/assets/{index-C6SmNkhh.css => index-DsE4VIuL.css} (99%) diff --git a/dependabot/npm_and_yarn/vite-44135b917d/assets/index-DUN5guSa.js b/dependabot/npm_and_yarn/vite-44135b917d/assets/index-DjaCyS1r.js similarity index 85% rename from dependabot/npm_and_yarn/vite-44135b917d/assets/index-DUN5guSa.js rename to dependabot/npm_and_yarn/vite-44135b917d/assets/index-DjaCyS1r.js index 602868d2..8459fa88 100644 --- a/dependabot/npm_and_yarn/vite-44135b917d/assets/index-DUN5guSa.js +++ b/dependabot/npm_and_yarn/vite-44135b917d/assets/index-DjaCyS1r.js @@ -58,17 +58,17 @@ Error generating stack: `+p.message+` The error may be correlated with this previous error: ${de.current.stack} -`),X}Jy(()=>{de.current=void 0,Z.current=void 0,I.current=q});const ee=D.useMemo(()=>D.createElement(S,{...q,ref:W}),[W,S,q]);return D.useMemo(()=>w?D.createElement(K.Provider,{value:M},ee):ee,[K,ee,M])}const R=D.memo(j);if(R.WrappedComponent=S,R.displayName=j.displayName=C,f){const V=D.forwardRef(function(G,K){return D.createElement(R,{...G,reactReduxForwardedRef:K})});return V.displayName=C,V.WrappedComponent=S,oE(V,S)}return oE(R,S)}}var eB=LZ;function DZ(e){const{children:t,context:n,serverState:r,store:i}=e,a=D.useMemo(()=>{const f=X9(i);return{store:i,subscription:f,getServerState:r?()=>r:void 0}},[i,r]),o=D.useMemo(()=>i.getState(),[i]);Jy(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),o!==i.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,o]);const l=n||J9;return D.createElement(l.Provider,{value:a},t)}var tB=DZ,up={},IN;function IZ(){if(IN)return up;IN=1,Object.defineProperty(up,"__esModule",{value:!0}),up.parse=o,up.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function o(y,x){const w=new a,_=y.length;if(_<2)return w;const S=(x==null?void 0:x.decode)||h;let O=0;do{const C=y.indexOf("=",O);if(C===-1)break;const A=y.indexOf(";",O),j=A===-1?_:A;if(C>j){O=y.lastIndexOf(";",C-1)+1;continue}const P=l(y,O,C),R=f(y,C,P),$=y.slice(P,R);if(w[$]===void 0){let V=l(y,C+1,j),W=f(y,j,V);const G=S(y.slice(V,W));w[$]=G}O=j+1}while(O<_);return w}function l(y,x,w){do{const _=y.charCodeAt(x);if(_!==32&&_!==9)return x}while(++xw;){const _=y.charCodeAt(--x);if(_!==32&&_!==9)return x+1}return w}function u(y,x,w){const _=(w==null?void 0:w.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const S=_(x);if(!t.test(S))throw new TypeError(`argument val is invalid: ${x}`);let O=y+"="+S;if(!w)return O;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);O+="; Max-Age="+w.maxAge}if(w.domain){if(!n.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);O+="; Domain="+w.domain}if(w.path){if(!r.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);O+="; Path="+w.path}if(w.expires){if(!m(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);O+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(O+="; HttpOnly"),w.secure&&(O+="; Secure"),w.partitioned&&(O+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${w.priority}`)}if(w.sameSite)switch(typeof w.sameSite=="string"?w.sameSite.toLowerCase():w.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${w.sameSite}`)}return O}function h(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function m(y){return i.call(y)==="[object Date]"}return up}IZ();var $N="popstate";function $Z(e={}){function t(r,i){let{pathname:a,search:o,hash:l}=r.location;return sE("",{pathname:a,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:rm(i)}return UZ(t,n,null,e)}function Cn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ea(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function BZ(){return Math.random().toString(36).substring(2,10)}function BN(e,t){return{usr:e.state,key:e.key,idx:t}}function sE(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Dd(t):t,state:n,key:t&&t.key||r||BZ()}}function rm({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 Dd(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 UZ(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,l="POP",f=null,u=h();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function h(){return(o.state||{idx:null}).idx}function m(){l="POP";let S=h(),O=S==null?null:S-u;u=S,f&&f({action:l,location:_.location,delta:O})}function y(S,O){l="PUSH";let C=sE(_.location,S,O);u=h()+1;let A=BN(C,u),j=_.createHref(C);try{o.pushState(A,"",j)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(j)}a&&f&&f({action:l,location:_.location,delta:1})}function x(S,O){l="REPLACE";let C=sE(_.location,S,O);u=h();let A=BN(C,u),j=_.createHref(C);o.replaceState(A,"",j),a&&f&&f({action:l,location:_.location,delta:0})}function w(S){let O=i.location.origin!=="null"?i.location.origin:i.location.href,C=typeof S=="string"?S:rm(S);return C=C.replace(/ $/,"%20"),Cn(O,`No window.location.(origin|href) available to create URL for href: ${C}`),new URL(C,O)}let _={get action(){return l},get location(){return e(i,o)},listen(S){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener($N,m),f=S,()=>{i.removeEventListener($N,m),f=null}},createHref(S){return t(i,S)},createURL:w,encodeLocation(S){let O=w(S);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:y,replace:x,go(S){return o.go(S)}};return _}function nB(e,t,n="/"){return zZ(e,t,n,!1)}function zZ(e,t,n,r){let i=typeof t=="string"?Dd(t):t,a=is(i.pathname||"/",n);if(a==null)return null;let o=rB(e);FZ(o);let l=null;for(let f=0;l==null&&f{let f={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};f.relativePath.startsWith("/")&&(Cn(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let u=Qo([r,f.relativePath]),h=n.concat(f);a.children&&a.children.length>0&&(Cn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),rB(a.children,t,h,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:KZ(u,a.index),routesMeta:h})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,o);else for(let f of iB(a.path))i(a,o,f)}),t}function iB(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=iB(r.join("/")),l=[];return l.push(...o.map(f=>f===""?a:[a,f].join("/"))),i&&l.push(...o),l.map(f=>e.startsWith("/")&&f===""?"/":f)}function FZ(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ZZ(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var qZ=/^:[\w-]+$/,VZ=3,HZ=2,WZ=1,GZ=10,YZ=-2,UN=e=>e==="*";function KZ(e,t){let n=e.split("/"),r=n.length;return n.some(UN)&&(r+=YZ),t&&(r+=HZ),n.filter(i=>!UN(i)).reduce((i,a)=>i+(qZ.test(a)?VZ:a===""?WZ:GZ),r)}function ZZ(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function XZ(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",o=[];for(let l=0;l{if(h==="*"){let w=l[y]||"";o=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const x=l[y];return m&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function QZ(e,t=!1,n=!0){Ea(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,f)=>(r.push({paramName:l,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function JZ(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ea(!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 is(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)||"/"}function eX(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Dd(e):e;return{pathname:n?n.startsWith("/")?n:tX(n,t):t,search:iX(r),hash:aX(i)}}function tX(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function wx(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 and the router will parse it for you.`}function nX(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dj(e){let t=nX(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Ij(e,t,n,r=!1){let i;typeof e=="string"?i=Dd(e):(i={...e},Cn(!i.pathname||!i.pathname.includes("?"),wx("?","pathname","search",i)),Cn(!i.pathname||!i.pathname.includes("#"),wx("#","pathname","hash",i)),Cn(!i.search||!i.search.includes("#"),wx("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,l;if(o==null)l=n;else{let m=t.length-1;if(!r&&o.startsWith("..")){let y=o.split("/");for(;y[0]==="..";)y.shift(),m-=1;i.pathname=y.join("/")}l=m>=0?t[m]:"/"}let f=eX(i,l),u=o&&o!=="/"&&o.endsWith("/"),h=(a||o===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(u||h)&&(f.pathname+="/"),f}var Qo=e=>e.join("/").replace(/\/\/+/g,"/"),rX=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),iX=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aX=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function oX(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var aB=["POST","PUT","PATCH","DELETE"];new Set(aB);var sX=["GET",...aB];new Set(sX);var Id=D.createContext(null);Id.displayName="DataRouter";var J0=D.createContext(null);J0.displayName="DataRouterState";var oB=D.createContext({isTransitioning:!1});oB.displayName="ViewTransition";var lX=D.createContext(new Map);lX.displayName="Fetchers";var uX=D.createContext(null);uX.displayName="Await";var ja=D.createContext(null);ja.displayName="Navigation";var av=D.createContext(null);av.displayName="Location";var Pa=D.createContext({outlet:null,matches:[],isDataRoute:!1});Pa.displayName="Route";var $j=D.createContext(null);$j.displayName="RouteError";function cX(e,{relative:t}={}){Cn(mc(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=D.useContext(ja),{hash:i,pathname:a,search:o}=ov(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:Qo([n,a])),r.createHref({pathname:l,search:o,hash:i})}function mc(){return D.useContext(av)!=null}function Nr(){return Cn(mc(),"useLocation() may be used only in the context of a component."),D.useContext(av).location}var sB="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lB(e){D.useContext(ja).static||D.useLayoutEffect(e)}function mo(){let{isDataRoute:e}=D.useContext(Pa);return e?SX():fX()}function fX(){Cn(mc(),"useNavigate() may be used only in the context of a component.");let e=D.useContext(Id),{basename:t,navigator:n}=D.useContext(ja),{matches:r}=D.useContext(Pa),{pathname:i}=Nr(),a=JSON.stringify(Dj(r)),o=D.useRef(!1);return lB(()=>{o.current=!0}),D.useCallback((f,u={})=>{if(Ea(o.current,sB),!o.current)return;if(typeof f=="number"){n.go(f);return}let h=Ij(f,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Qo([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,a,i,e])}D.createContext(null);function $d(){let{matches:e}=D.useContext(Pa),t=e[e.length-1];return t?t.params:{}}function ov(e,{relative:t}={}){let{matches:n}=D.useContext(Pa),{pathname:r}=Nr(),i=JSON.stringify(Dj(n));return D.useMemo(()=>Ij(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function dX(e,t){return uB(e,t)}function uB(e,t,n,r){var C;Cn(mc(),"useRoutes() may be used only in the context of a component.");let{navigator:i,static:a}=D.useContext(ja),{matches:o}=D.useContext(Pa),l=o[o.length-1],f=l?l.params:{},u=l?l.pathname:"/",h=l?l.pathnameBase:"/",m=l&&l.route;{let A=m&&m.path||"";cB(u,!m||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${u}" (under ) 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. +`),X}Jy(()=>{de.current=void 0,Z.current=void 0,I.current=q});const ee=D.useMemo(()=>D.createElement(S,{...q,ref:W}),[W,S,q]);return D.useMemo(()=>w?D.createElement(K.Provider,{value:M},ee):ee,[K,ee,M])}const R=D.memo(j);if(R.WrappedComponent=S,R.displayName=j.displayName=C,f){const V=D.forwardRef(function(G,K){return D.createElement(R,{...G,reactReduxForwardedRef:K})});return V.displayName=C,V.WrappedComponent=S,oE(V,S)}return oE(R,S)}}var eB=LZ;function DZ(e){const{children:t,context:n,serverState:r,store:i}=e,a=D.useMemo(()=>{const f=X9(i);return{store:i,subscription:f,getServerState:r?()=>r:void 0}},[i,r]),o=D.useMemo(()=>i.getState(),[i]);Jy(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),o!==i.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,o]);const l=n||J9;return D.createElement(l.Provider,{value:a},t)}var tB=DZ,up={},IN;function IZ(){if(IN)return up;IN=1,Object.defineProperty(up,"__esModule",{value:!0}),up.parse=o,up.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function o(y,x){const w=new a,_=y.length;if(_<2)return w;const S=(x==null?void 0:x.decode)||h;let O=0;do{const C=y.indexOf("=",O);if(C===-1)break;const A=y.indexOf(";",O),j=A===-1?_:A;if(C>j){O=y.lastIndexOf(";",C-1)+1;continue}const P=l(y,O,C),R=f(y,C,P),$=y.slice(P,R);if(w[$]===void 0){let V=l(y,C+1,j),W=f(y,j,V);const G=S(y.slice(V,W));w[$]=G}O=j+1}while(O<_);return w}function l(y,x,w){do{const _=y.charCodeAt(x);if(_!==32&&_!==9)return x}while(++xw;){const _=y.charCodeAt(--x);if(_!==32&&_!==9)return x+1}return w}function u(y,x,w){const _=(w==null?void 0:w.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const S=_(x);if(!t.test(S))throw new TypeError(`argument val is invalid: ${x}`);let O=y+"="+S;if(!w)return O;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);O+="; Max-Age="+w.maxAge}if(w.domain){if(!n.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);O+="; Domain="+w.domain}if(w.path){if(!r.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);O+="; Path="+w.path}if(w.expires){if(!m(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);O+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(O+="; HttpOnly"),w.secure&&(O+="; Secure"),w.partitioned&&(O+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${w.priority}`)}if(w.sameSite)switch(typeof w.sameSite=="string"?w.sameSite.toLowerCase():w.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${w.sameSite}`)}return O}function h(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function m(y){return i.call(y)==="[object Date]"}return up}IZ();var $N="popstate";function $Z(e={}){function t(r,i){let{pathname:a,search:o,hash:l}=r.location;return sE("",{pathname:a,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:rm(i)}return UZ(t,n,null,e)}function Cn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ea(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function BZ(){return Math.random().toString(36).substring(2,10)}function BN(e,t){return{usr:e.state,key:e.key,idx:t}}function sE(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Dd(t):t,state:n,key:t&&t.key||r||BZ()}}function rm({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 Dd(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 UZ(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,l="POP",f=null,u=h();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function h(){return(o.state||{idx:null}).idx}function m(){l="POP";let S=h(),O=S==null?null:S-u;u=S,f&&f({action:l,location:_.location,delta:O})}function y(S,O){l="PUSH";let C=sE(_.location,S,O);u=h()+1;let A=BN(C,u),j=_.createHref(C);try{o.pushState(A,"",j)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(j)}a&&f&&f({action:l,location:_.location,delta:1})}function x(S,O){l="REPLACE";let C=sE(_.location,S,O);u=h();let A=BN(C,u),j=_.createHref(C);o.replaceState(A,"",j),a&&f&&f({action:l,location:_.location,delta:0})}function w(S){return zZ(S)}let _={get action(){return l},get location(){return e(i,o)},listen(S){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener($N,m),f=S,()=>{i.removeEventListener($N,m),f=null}},createHref(S){return t(i,S)},createURL:w,encodeLocation(S){let O=w(S);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:y,replace:x,go(S){return o.go(S)}};return _}function zZ(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Cn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:rm(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function nB(e,t,n="/"){return FZ(e,t,n,!1)}function FZ(e,t,n,r){let i=typeof t=="string"?Dd(t):t,a=is(i.pathname||"/",n);if(a==null)return null;let o=rB(e);qZ(o);let l=null;for(let f=0;l==null&&f{let f={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};f.relativePath.startsWith("/")&&(Cn(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let u=Qo([r,f.relativePath]),h=n.concat(f);a.children&&a.children.length>0&&(Cn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),rB(a.children,t,h,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:ZZ(u,a.index),routesMeta:h})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,o);else for(let f of iB(a.path))i(a,o,f)}),t}function iB(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=iB(r.join("/")),l=[];return l.push(...o.map(f=>f===""?a:[a,f].join("/"))),i&&l.push(...o),l.map(f=>e.startsWith("/")&&f===""?"/":f)}function qZ(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:XZ(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var VZ=/^:[\w-]+$/,HZ=3,WZ=2,GZ=1,YZ=10,KZ=-2,UN=e=>e==="*";function ZZ(e,t){let n=e.split("/"),r=n.length;return n.some(UN)&&(r+=KZ),t&&(r+=WZ),n.filter(i=>!UN(i)).reduce((i,a)=>i+(VZ.test(a)?HZ:a===""?GZ:YZ),r)}function XZ(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function QZ(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",o=[];for(let l=0;l{if(h==="*"){let w=l[y]||"";o=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const x=l[y];return m&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function JZ(e,t=!1,n=!0){Ea(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,f)=>(r.push({paramName:l,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function eX(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ea(!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 is(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)||"/"}function tX(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Dd(e):e;return{pathname:n?n.startsWith("/")?n:nX(n,t):t,search:aX(r),hash:oX(i)}}function nX(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function wx(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 and the router will parse it for you.`}function rX(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dj(e){let t=rX(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Ij(e,t,n,r=!1){let i;typeof e=="string"?i=Dd(e):(i={...e},Cn(!i.pathname||!i.pathname.includes("?"),wx("?","pathname","search",i)),Cn(!i.pathname||!i.pathname.includes("#"),wx("#","pathname","hash",i)),Cn(!i.search||!i.search.includes("#"),wx("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,l;if(o==null)l=n;else{let m=t.length-1;if(!r&&o.startsWith("..")){let y=o.split("/");for(;y[0]==="..";)y.shift(),m-=1;i.pathname=y.join("/")}l=m>=0?t[m]:"/"}let f=tX(i,l),u=o&&o!=="/"&&o.endsWith("/"),h=(a||o===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(u||h)&&(f.pathname+="/"),f}var Qo=e=>e.join("/").replace(/\/\/+/g,"/"),iX=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),aX=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,oX=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function sX(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var aB=["POST","PUT","PATCH","DELETE"];new Set(aB);var lX=["GET",...aB];new Set(lX);var Id=D.createContext(null);Id.displayName="DataRouter";var J0=D.createContext(null);J0.displayName="DataRouterState";var oB=D.createContext({isTransitioning:!1});oB.displayName="ViewTransition";var uX=D.createContext(new Map);uX.displayName="Fetchers";var cX=D.createContext(null);cX.displayName="Await";var ja=D.createContext(null);ja.displayName="Navigation";var av=D.createContext(null);av.displayName="Location";var Pa=D.createContext({outlet:null,matches:[],isDataRoute:!1});Pa.displayName="Route";var $j=D.createContext(null);$j.displayName="RouteError";function fX(e,{relative:t}={}){Cn(mc(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=D.useContext(ja),{hash:i,pathname:a,search:o}=ov(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:Qo([n,a])),r.createHref({pathname:l,search:o,hash:i})}function mc(){return D.useContext(av)!=null}function Nr(){return Cn(mc(),"useLocation() may be used only in the context of a component."),D.useContext(av).location}var sB="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lB(e){D.useContext(ja).static||D.useLayoutEffect(e)}function mo(){let{isDataRoute:e}=D.useContext(Pa);return e?OX():dX()}function dX(){Cn(mc(),"useNavigate() may be used only in the context of a component.");let e=D.useContext(Id),{basename:t,navigator:n}=D.useContext(ja),{matches:r}=D.useContext(Pa),{pathname:i}=Nr(),a=JSON.stringify(Dj(r)),o=D.useRef(!1);return lB(()=>{o.current=!0}),D.useCallback((f,u={})=>{if(Ea(o.current,sB),!o.current)return;if(typeof f=="number"){n.go(f);return}let h=Ij(f,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Qo([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,a,i,e])}D.createContext(null);function $d(){let{matches:e}=D.useContext(Pa),t=e[e.length-1];return t?t.params:{}}function ov(e,{relative:t}={}){let{matches:n}=D.useContext(Pa),{pathname:r}=Nr(),i=JSON.stringify(Dj(n));return D.useMemo(()=>Ij(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function hX(e,t){return uB(e,t)}function uB(e,t,n,r){var C;Cn(mc(),"useRoutes() may be used only in the context of a component.");let{navigator:i,static:a}=D.useContext(ja),{matches:o}=D.useContext(Pa),l=o[o.length-1],f=l?l.params:{},u=l?l.pathname:"/",h=l?l.pathnameBase:"/",m=l&&l.route;{let A=m&&m.path||"";cB(u,!m||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${u}" (under ) 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. -Please change the parent to .`)}let y=Nr(),x;if(t){let A=typeof t=="string"?Dd(t):t;Cn(h==="/"||((C=A.pathname)==null?void 0:C.startsWith(h)),`When overriding the location using \`\` 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 "${h}" but pathname "${A.pathname}" was given in the \`location\` prop.`),x=A}else x=y;let w=x.pathname||"/",_=w;if(h!=="/"){let A=h.replace(/^\//,"").split("/");_="/"+w.replace(/^\//,"").split("/").slice(A.length).join("/")}let S=!a&&n&&n.matches&&n.matches.length>0?n.matches:nB(e,{pathname:_});Ea(m||S!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Ea(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 "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let O=gX(S&&S.map(A=>Object.assign({},A,{params:Object.assign({},f,A.params),pathname:Qo([h,i.encodeLocation?i.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?h:Qo([h,i.encodeLocation?i.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),o,n,r);return t&&O?D.createElement(av.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},O):O}function hX(){let e=xX(),t=oX(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)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:a},"ErrorBoundary")," or"," ",D.createElement("code",{style:a},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:i},n):null,o)}var pX=D.createElement(hX,null),mX=class extends D.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){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?D.createElement(Pa.Provider,{value:this.props.routeContext},D.createElement($j.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function vX({routeContext:e,match:t,children:n}){let r=D.useContext(Id);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Pa.Provider,{value:e},n)}function gX(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let f=i.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);Cn(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,f+1))}let o=!1,l=-1;if(n)for(let f=0;f=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((f,u,h)=>{let m,y=!1,x=null,w=null;n&&(m=a&&u.route.id?a[u.route.id]:void 0,x=u.route.errorElement||pX,o&&(l<0&&h===0?(cB("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,w=null):l===h&&(y=!0,w=u.route.hydrateFallbackElement||null)));let _=t.concat(i.slice(0,h+1)),S=()=>{let O;return m?O=x:y?O=w:u.route.Component?O=D.createElement(u.route.Component,null):u.route.element?O=u.route.element:O=f,D.createElement(vX,{match:u,routeContext:{outlet:f,matches:_,isDataRoute:n!=null},children:O})};return n&&(u.route.ErrorBoundary||u.route.errorElement||h===0)?D.createElement(mX,{location:n.location,revalidation:n.revalidation,component:x,error:m,children:S(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):S()},null)}function Bj(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yX(e){let t=D.useContext(Id);return Cn(t,Bj(e)),t}function bX(e){let t=D.useContext(J0);return Cn(t,Bj(e)),t}function _X(e){let t=D.useContext(Pa);return Cn(t,Bj(e)),t}function Uj(e){let t=_X(e),n=t.matches[t.matches.length-1];return Cn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function wX(){return Uj("useRouteId")}function xX(){var r;let e=D.useContext($j),t=bX("useRouteError"),n=Uj("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function SX(){let{router:e}=yX("useNavigate"),t=Uj("useNavigate"),n=D.useRef(!1);return lB(()=>{n.current=!0}),D.useCallback(async(i,a={})=>{Ea(n.current,sB),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var zN={};function cB(e,t,n){!t&&!zN[e]&&(zN[e]=!0,Ea(!1,n))}D.memo(OX);function OX({routes:e,future:t,state:n}){return uB(e,void 0,n,t)}function zj({to:e,replace:t,state:n,relative:r}){Cn(mc()," may be used only in the context of a component.");let{static:i}=D.useContext(ja);Ea(!i," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:a}=D.useContext(Pa),{pathname:o}=Nr(),l=mo(),f=Ij(e,Dj(a),o,r==="path"),u=JSON.stringify(f);return D.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function xt(e){Cn(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function CX({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){Cn(!mc(),"You cannot render a inside another . You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:o,navigator:i,static:a,future:{}}),[o,i,a]);typeof n=="string"&&(n=Dd(n));let{pathname:f="/",search:u="",hash:h="",state:m=null,key:y="default"}=n,x=D.useMemo(()=>{let w=is(f,o);return w==null?null:{location:{pathname:w,search:u,hash:h,state:m,key:y},navigationType:r}},[o,f,u,h,m,y,r]);return Ea(x!=null,` is not able to match the URL "${f}${u}${h}" because it does not start with the basename, so the won't render anything.`),x==null?null:D.createElement(ja.Provider,{value:l},D.createElement(av.Provider,{children:t,value:x}))}function e1({children:e,location:t}){return dX(lE(e),t)}function lE(e,t=[]){let n=[];return D.Children.forEach(e,(r,i)=>{if(!D.isValidElement(r))return;let a=[...t,i];if(r.type===D.Fragment){n.push.apply(n,lE(r.props.children,a));return}Cn(r.type===xt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),Cn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,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&&(o.children=lE(r.props.children,a)),n.push(o)}),n}var By="get",Uy="application/x-www-form-urlencoded";function t1(e){return e!=null&&typeof e.tagName=="string"}function EX(e){return t1(e)&&e.tagName.toLowerCase()==="button"}function TX(e){return t1(e)&&e.tagName.toLowerCase()==="form"}function AX(e){return t1(e)&&e.tagName.toLowerCase()==="input"}function jX(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function PX(e,t){return e.button===0&&(!t||t==="_self")&&!jX(e)}var ay=null;function RX(){if(ay===null)try{new FormData(document.createElement("form"),0),ay=!1}catch{ay=!0}return ay}var MX=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xx(e){return e!=null&&!MX.has(e)?(Ea(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Uy}"`),null):e}function NX(e,t){let n,r,i,a,o;if(TX(e)){let l=e.getAttribute("action");r=l?is(l,t):null,n=e.getAttribute("method")||By,i=xx(e.getAttribute("enctype"))||Uy,a=new FormData(e)}else if(EX(e)||AX(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a