UNPKG

@qavajs/html-formatter

Version:

Single file HTML formatter for cucumber framework

47 lines (46 loc) 1.23 MB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>qavajs html report</title> <script type="module" crossorigin>var yL=Object.defineProperty;var pL=(e,t,n)=>t in e?yL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var iy=(e,t,n)=>pL(e,typeof t!="symbol"?t+"":t,n);function bL(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Wu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ay={exports:{}},Pu={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var IC;function wL(){if(IC)return Pu;IC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var s=null;if(o!==void 0&&(s=""+o),a.key!==void 0&&(s=""+a.key),"key"in a){o={};for(var c in a)c!=="key"&&(o[c]=a[c])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:s,ref:a!==void 0?a:null,props:o}}return Pu.Fragment=t,Pu.jsx=n,Pu.jsxs=n,Pu}var NC;function xL(){return NC||(NC=1,ay.exports=wL()),ay.exports}var V=xL(),oy={exports:{}},Pe={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var LC;function EL(){if(LC)return Pe;LC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.iterator;function p(I){return I===null||typeof I!="object"?null:(I=v&&I[v]||I["@@iterator"],typeof I=="function"?I:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,E={};function S(I,G,Z){this.props=I,this.context=G,this.refs=E,this.updater=Z||b}S.prototype.isReactComponent={},S.prototype.setState=function(I,G){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,G,"setState")},S.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function C(){}C.prototype=S.prototype;function T(I,G,Z){this.props=I,this.context=G,this.refs=E,this.updater=Z||b}var O=T.prototype=new C;O.constructor=T,x(O,S.prototype),O.isPureReactComponent=!0;var M=Array.isArray,k={H:null,A:null,T:null,S:null,V:null},D=Object.prototype.hasOwnProperty;function B(I,G,Z,oe,fe,ve){return Z=ve.ref,{$$typeof:e,type:I,key:G,ref:Z!==void 0?Z:null,props:ve}}function Y(I,G){return B(I.type,G,void 0,void 0,void 0,I.props)}function W(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function X(I){var G={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(Z){return G[Z]})}var $=/\/+/g;function F(I,G){return typeof I=="object"&&I!==null&&I.key!=null?X(""+I.key):G.toString(36)}function U(){}function j(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(U,U):(I.status="pending",I.then(function(G){I.status==="pending"&&(I.status="fulfilled",I.value=G)},function(G){I.status==="pending"&&(I.status="rejected",I.reason=G)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function P(I,G,Z,oe,fe){var ve=typeof I;(ve==="undefined"||ve==="boolean")&&(I=null);var de=!1;if(I===null)de=!0;else switch(ve){case"bigint":case"string":case"number":de=!0;break;case"object":switch(I.$$typeof){case e:case t:de=!0;break;case m:return de=I._init,P(de(I._payload),G,Z,oe,fe)}}if(de)return fe=fe(I),de=oe===""?"."+F(I,0):oe,M(fe)?(Z="",de!=null&&(Z=de.replace($,"$&/")+"/"),P(fe,G,Z,"",function(ie){return ie})):fe!=null&&(W(fe)&&(fe=Y(fe,Z+(fe.key==null||I&&I.key===fe.key?"":(""+fe.key).replace($,"$&/")+"/")+de)),G.push(fe)),1;de=0;var ye=oe===""?".":oe+":";if(M(I))for(var he=0;he<I.length;he++)oe=I[he],ve=ye+F(oe,he),de+=P(oe,G,Z,ve,fe);else if(he=p(I),typeof he=="function")for(I=he.call(I),he=0;!(oe=I.next()).done;)oe=oe.value,ve=ye+F(oe,he++),de+=P(oe,G,Z,ve,fe);else if(ve==="object"){if(typeof I.then=="function")return P(j(I),G,Z,oe,fe);throw G=String(I),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return de}function R(I,G,Z){if(I==null)return I;var oe=[],fe=0;return P(I,oe,"","",function(ve){return G.call(Z,ve,fe++)}),oe}function L(I){if(I._status===-1){var G=I._result;G=G(),G.then(function(Z){(I._status===0||I._status===-1)&&(I._status=1,I._result=Z)},function(Z){(I._status===0||I._status===-1)&&(I._status=2,I._result=Z)}),I._status===-1&&(I._status=0,I._result=G)}if(I._status===1)return I._result.default;throw I._result}var H=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)};function z(){}return Pe.Children={map:R,forEach:function(I,G,Z){R(I,function(){G.apply(this,arguments)},Z)},count:function(I){var G=0;return R(I,function(){G++}),G},toArray:function(I){return R(I,function(G){return G})||[]},only:function(I){if(!W(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},Pe.Component=S,Pe.Fragment=n,Pe.Profiler=a,Pe.PureComponent=T,Pe.StrictMode=r,Pe.Suspense=f,Pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Pe.__COMPILER_RUNTIME={__proto__:null,c:function(I){return k.H.useMemoCache(I)}},Pe.cache=function(I){return function(){return I.apply(null,arguments)}},Pe.cloneElement=function(I,G,Z){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var oe=x({},I.props),fe=I.key,ve=void 0;if(G!=null)for(de in G.ref!==void 0&&(ve=void 0),G.key!==void 0&&(fe=""+G.key),G)!D.call(G,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&G.ref===void 0||(oe[de]=G[de]);var de=arguments.length-2;if(de===1)oe.children=Z;else if(1<de){for(var ye=Array(de),he=0;he<de;he++)ye[he]=arguments[he+2];oe.children=ye}return B(I.type,fe,void 0,void 0,ve,oe)},Pe.createContext=function(I){return I={$$typeof:s,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:o,_context:I},I},Pe.createElement=function(I,G,Z){var oe,fe={},ve=null;if(G!=null)for(oe in G.key!==void 0&&(ve=""+G.key),G)D.call(G,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(fe[oe]=G[oe]);var de=arguments.length-2;if(de===1)fe.children=Z;else if(1<de){for(var ye=Array(de),he=0;he<de;he++)ye[he]=arguments[he+2];fe.children=ye}if(I&&I.defaultProps)for(oe in de=I.defaultProps,de)fe[oe]===void 0&&(fe[oe]=de[oe]);return B(I,ve,void 0,void 0,null,fe)},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(I){return{$$typeof:c,render:I}},Pe.isValidElement=W,Pe.lazy=function(I){return{$$typeof:m,_payload:{_status:-1,_result:I},_init:L}},Pe.memo=function(I,G){return{$$typeof:d,type:I,compare:G===void 0?null:G}},Pe.startTransition=function(I){var G=k.T,Z={};k.T=Z;try{var oe=I(),fe=k.S;fe!==null&&fe(Z,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(z,H)}catch(ve){H(ve)}finally{k.T=G}},Pe.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Pe.use=function(I){return k.H.use(I)},Pe.useActionState=function(I,G,Z){return k.H.useActionState(I,G,Z)},Pe.useCallback=function(I,G){return k.H.useCallback(I,G)},Pe.useContext=function(I){return k.H.useContext(I)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(I,G){return k.H.useDeferredValue(I,G)},Pe.useEffect=function(I,G,Z){var oe=k.H;if(typeof Z=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return oe.useEffect(I,G)},Pe.useId=function(){return k.H.useId()},Pe.useImperativeHandle=function(I,G,Z){return k.H.useImperativeHandle(I,G,Z)},Pe.useInsertionEffect=function(I,G){return k.H.useInsertionEffect(I,G)},Pe.useLayoutEffect=function(I,G){return k.H.useLayoutEffect(I,G)},Pe.useMemo=function(I,G){return k.H.useMemo(I,G)},Pe.useOptimistic=function(I,G){return k.H.useOptimistic(I,G)},Pe.useReducer=function(I,G,Z){return k.H.useReducer(I,G,Z)},Pe.useRef=function(I){return k.H.useRef(I)},Pe.useState=function(I){return k.H.useState(I)},Pe.useSyncExternalStore=function(I,G,Z){return k.H.useSyncExternalStore(I,G,Z)},Pe.useTransition=function(){return k.H.useTransition()},Pe.version="19.1.1",Pe}var jC;function Na(){return jC||(jC=1,oy.exports=EL()),oy.exports}var g=Na();const N=_t(g),sD=bL({__proto__:null,default:N},[g]);/** * react-router v7.8.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var zC="popstate";function SL(e={}){function t(a,o){let{pathname:s="/",search:c="",hash:f=""}=Uo(a.location.hash.substring(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),I0("",{pathname:s,search:c,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(a,o){let s=a.document.querySelector("base"),c="";if(s&&s.getAttribute("href")){let f=a.location.href,d=f.indexOf("#");c=d===-1?f:f.slice(0,d)}return c+"#"+(typeof o=="string"?o:Ju(o))}function r(a,o){zr(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(o)})`)}return TL(t,n,r,e)}function St(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function zr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function CL(){return Math.random().toString(36).substring(2,10)}function BC(e,t){return{usr:e.state,key:e.key,idx:t}}function I0(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Uo(t):t,state:n,key:t&&t.key||r||CL()}}function Ju({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 Uo(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 TL(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,s=a.history,c="POP",f=null,d=m();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function m(){return(s.state||{idx:null}).idx}function v(){c="POP";let S=m(),C=S==null?null:S-d;d=S,f&&f({action:c,location:E.location,delta:C})}function p(S,C){c="PUSH";let T=I0(E.location,S,C);n&&n(T,S),d=m()+1;let O=BC(T,d),M=E.createHref(T);try{s.pushState(O,"",M)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;a.location.assign(M)}o&&f&&f({action:c,location:E.location,delta:1})}function b(S,C){c="REPLACE";let T=I0(E.location,S,C);n&&n(T,S),d=m();let O=BC(T,d),M=E.createHref(T);s.replaceState(O,"",M),o&&f&&f({action:c,location:E.location,delta:0})}function x(S){return OL(S)}let E={get action(){return c},get location(){return e(a,s)},listen(S){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(zC,v),f=S,()=>{a.removeEventListener(zC,v),f=null}},createHref(S){return t(a,S)},createURL:x,encodeLocation(S){let C=x(S);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:p,replace:b,go(S){return s.go(S)}};return E}function OL(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),St(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Ju(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function uD(e,t,n="/"){return AL(e,t,n,!1)}function AL(e,t,n,r){let a=typeof t=="string"?Uo(t):t,o=zi(a.pathname||"/",n);if(o==null)return null;let s=cD(e);ML(s);let c=null;for(let f=0;c==null&&f<s.length;++f){let d=BL(o);c=jL(s[f],d,r)}return c}function cD(e,t=[],n=[],r="",a=!1){let o=(s,c,f=a,d)=>{let m={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&f)return;St(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let v=_i([r,m.relativePath]),p=n.concat(m);s.children&&s.children.length>0&&(St(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),cD(s.children,t,p,v,f)),!(s.path==null&&!s.index)&&t.push({path:v,score:NL(v,s.index),routesMeta:p})};return e.forEach((s,c)=>{var f;if(s.path===""||!((f=s.path)!=null&&f.includes("?")))o(s,c);else for(let d of fD(s.path))o(s,c,!0,d)}),t}function fD(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let s=fD(r.join("/")),c=[];return c.push(...s.map(f=>f===""?o:[o,f].join("/"))),a&&c.push(...s),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function ML(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:LL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var RL=/^:[\w-]+$/,DL=3,kL=2,PL=1,_L=10,IL=-2,$C=e=>e==="*";function NL(e,t){let n=e.split("/"),r=n.length;return n.some($C)&&(r+=IL),t&&(r+=kL),n.filter(a=>!$C(a)).reduce((a,o)=>a+(RL.test(o)?DL:o===""?PL:_L),r)}function LL(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function jL(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",s=[];for(let c=0;c<r.length;++c){let f=r[c],d=c===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",v=eh({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},m),p=f.route;if(!v&&d&&n&&!r[r.length-1].route.index&&(v=eh({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!v)return null;Object.assign(a,v.params),s.push({params:a,pathname:_i([o,v.pathname]),pathnameBase:UL(_i([o,v.pathnameBase])),route:p}),v.pathnameBase!=="/"&&(o=_i([o,v.pathnameBase]))}return s}function eh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=zL(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],s=o.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((d,{paramName:m,isOptional:v},p)=>{if(m==="*"){let x=c[p]||"";s=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const b=c[p];return v&&!b?d[m]=void 0:d[m]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:s,pattern:e}}function zL(e,t=!1,n=!0){zr(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,c,f)=>(r.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function BL(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zr(!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 zi(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 $L(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Uo(e):e;return{pathname:n?n.startsWith("/")?n:HL(n,t):t,search:qL(r),hash:VL(a)}}function HL(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function ly(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 <Link to="..."> and the router will parse it for you.`}function FL(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function dD(e){let t=FL(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function hD(e,t,n,r=!1){let a;typeof e=="string"?a=Uo(e):(a={...e},St(!a.pathname||!a.pathname.includes("?"),ly("?","pathname","search",a)),St(!a.pathname||!a.pathname.includes("#"),ly("#","pathname","hash",a)),St(!a.search||!a.search.includes("#"),ly("#","search","hash",a)));let o=e===""||a.pathname==="",s=o?"/":a.pathname,c;if(s==null)c=n;else{let v=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),v-=1;a.pathname=p.join("/")}c=v>=0?t[v]:"/"}let f=$L(a,c),d=s&&s!=="/"&&s.endsWith("/"),m=(o||s===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||m)&&(f.pathname+="/"),f}var _i=e=>e.join("/").replace(/\/\/+/g,"/"),UL=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),qL=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,VL=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function YL(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var mD=["POST","PUT","PATCH","DELETE"];new Set(mD);var WL=["GET",...mD];new Set(WL);var vs=g.createContext(null);vs.displayName="DataRouter";var Zh=g.createContext(null);Zh.displayName="DataRouterState";g.createContext(!1);var gD=g.createContext({isTransitioning:!1});gD.displayName="ViewTransition";var GL=g.createContext(new Map);GL.displayName="Fetchers";var KL=g.createContext(null);KL.displayName="Await";var ai=g.createContext(null);ai.displayName="Navigation";var xc=g.createContext(null);xc.displayName="Location";var oi=g.createContext({outlet:null,matches:[],isDataRoute:!1});oi.displayName="Route";var C1=g.createContext(null);C1.displayName="RouteError";function XL(e,{relative:t}={}){St(Ec(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=g.useContext(ai),{hash:a,pathname:o,search:s}=Sc(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:_i([n,o])),r.createHref({pathname:c,search:s,hash:a})}function Ec(){return g.useContext(xc)!=null}function qo(){return St(Ec(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(xc).location}var vD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function yD(e){g.useContext(ai).static||g.useLayoutEffect(e)}function ZL(){let{isDataRoute:e}=g.useContext(oi);return e?f7():QL()}function QL(){St(Ec(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(vs),{basename:t,navigator:n}=g.useContext(ai),{matches:r}=g.useContext(oi),{pathname:a}=qo(),o=JSON.stringify(dD(r)),s=g.useRef(!1);return yD(()=>{s.current=!0}),g.useCallback((f,d={})=>{if(zr(s.current,vD),!s.current)return;if(typeof f=="number"){n.go(f);return}let m=hD(f,JSON.parse(o),a,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:_i([t,m.pathname])),(d.replace?n.replace:n.push)(m,d.state,d)},[t,n,o,a,e])}g.createContext(null);function JL(){let{matches:e}=g.useContext(oi),t=e[e.length-1];return t?t.params:{}}function Sc(e,{relative:t}={}){let{matches:n}=g.useContext(oi),{pathname:r}=qo(),a=JSON.stringify(dD(n));return g.useMemo(()=>hD(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function e7(e,t){return pD(e,t)}function pD(e,t,n,r,a){var T;St(Ec(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=g.useContext(ai),{matches:s}=g.useContext(oi),c=s[s.length-1],f=c?c.params:{},d=c?c.pathname:"/",m=c?c.pathnameBase:"/",v=c&&c.route;{let O=v&&v.path||"";bD(d,!v||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${O}">) 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 <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let p=qo(),b;if(t){let O=typeof t=="string"?Uo(t):t;St(m==="/"||((T=O.pathname)==null?void 0:T.startsWith(m)),`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 "${m}" but pathname "${O.pathname}" was given in the \`location\` prop.`),b=O}else b=p;let x=b.pathname||"/",E=x;if(m!=="/"){let O=m.replace(/^\//,"").split("/");E="/"+x.replace(/^\//,"").split("/").slice(O.length).join("/")}let S=uD(e,{pathname:E});zr(v||S!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),zr(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 "${b.pathname}${b.search}${b.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 C=a7(S&&S.map(O=>Object.assign({},O,{params:Object.assign({},f,O.params),pathname:_i([m,o.encodeLocation?o.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?m:_i([m,o.encodeLocation?o.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),s,n,r,a);return t&&C?g.createElement(xc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},C):C}function t7(){let e=c7(),t=YL(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)",a={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:o},"ErrorBoundary")," or"," ",g.createElement("code",{style:o},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:a},n):null,s)}var n7=g.createElement(t7,null),r7=class extends g.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.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?g.createElement(oi.Provider,{value:this.props.routeContext},g.createElement(C1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function i7({routeContext:e,match:t,children:n}){let r=g.useContext(vs);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(oi.Provider,{value:e},n)}function a7(e,t=[],n=null,r=null,a=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 o=e,s=n==null?void 0:n.errors;if(s!=null){let d=o.findIndex(m=>m.route.id&&(s==null?void 0:s[m.route.id])!==void 0);St(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,f=-1;if(n)for(let d=0;d<o.length;d++){let m=o[d];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=d),m.route.id){let{loaderData:v,errors:p}=n,b=m.route.loader&&!v.hasOwnProperty(m.route.id)&&(!p||p[m.route.id]===void 0);if(m.route.lazy||b){c=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}return o.reduceRight((d,m,v)=>{let p,b=!1,x=null,E=null;n&&(p=s&&m.route.id?s[m.route.id]:void 0,x=m.route.errorElement||n7,c&&(f<0&&v===0?(bD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,E=null):f===v&&(b=!0,E=m.route.hydrateFallbackElement||null)));let S=t.concat(o.slice(0,v+1)),C=()=>{let T;return p?T=x:b?T=E:m.route.Component?T=g.createElement(m.route.Component,null):m.route.element?T=m.route.element:T=d,g.createElement(i7,{match:m,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:T})};return n&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?g.createElement(r7,{location:n.location,revalidation:n.revalidation,component:x,error:p,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0},unstable_onError:r}):C()},null)}function T1(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function o7(e){let t=g.useContext(vs);return St(t,T1(e)),t}function l7(e){let t=g.useContext(Zh);return St(t,T1(e)),t}function s7(e){let t=g.useContext(oi);return St(t,T1(e)),t}function O1(e){let t=s7(e),n=t.matches[t.matches.length-1];return St(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function u7(){return O1("useRouteId")}function c7(){var r;let e=g.useContext(C1),t=l7("useRouteError"),n=O1("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function f7(){let{router:e}=o7("useNavigate"),t=O1("useNavigate"),n=g.useRef(!1);return yD(()=>{n.current=!0}),g.useCallback(async(a,o={})=>{zr(n.current,vD),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var HC={};function bD(e,t,n){!t&&!HC[e]&&(HC[e]=!0,zr(!1,n))}g.memo(d7);function d7({routes:e,future:t,state:n,unstable_onError:r}){return pD(e,void 0,n,r,t)}function Nd(e){St(!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 h7({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){St(!Ec(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=g.useMemo(()=>({basename:s,navigator:a,static:o,future:{}}),[s,a,o]);typeof n=="string"&&(n=Uo(n));let{pathname:f="/",search:d="",hash:m="",state:v=null,key:p="default"}=n,b=g.useMemo(()=>{let x=zi(f,s);return x==null?null:{location:{pathname:x,search:d,hash:m,state:v,key:p},navigationType:r}},[s,f,d,m,v,p,r]);return zr(b!=null,`<Router basename="${s}"> is not able to match the URL "${f}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:g.createElement(ai.Provider,{value:c},g.createElement(xc.Provider,{children:t,value:b}))}function m7({children:e,location:t}){return e7(N0(e),t)}function N0(e,t=[]){let n=[];return g.Children.forEach(e,(r,a)=>{if(!g.isValidElement(r))return;let o=[...t,a];if(r.type===g.Fragment){n.push.apply(n,N0(r.props.children,o));return}St(r.type===Nd,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),St(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||o.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&&(s.children=N0(r.props.children,o)),n.push(s)}),n}var Ld="get",jd="application/x-www-form-urlencoded";function Qh(e){return e!=null&&typeof e.tagName=="string"}function g7(e){return Qh(e)&&e.tagName.toLowerCase()==="button"}function v7(e){return Qh(e)&&e.tagName.toLowerCase()==="form"}function y7(e){return Qh(e)&&e.tagName.toLowerCase()==="input"}function p7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function b7(e,t){return e.button===0&&(!t||t==="_self")&&!p7(e)}var rd=null;function w7(){if(rd===null)try{new FormData(document.createElement("form"),0),rd=!1}catch{rd=!0}return rd}var x7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function sy(e){return e!=null&&!x7.has(e)?(zr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${jd}"`),null):e}function E7(e,t){let n,r,a,o,s;if(v7(e)){let c=e.getAttribute("action");r=c?zi(c,t):null,n=e.getAttribute("method")||Ld,a=sy(e.getAttribute("enctype"))||jd,o=new FormData(e)}else if(g7(e)||y7(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(r=f?zi(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Ld,a=sy(e.getAttribute("formenctype"))||sy(c.getAttribute("enctype"))||jd,o=new FormData(c,e),!w7()){let{name:d,type:m,value:v}=e;if(m==="image"){let p=d?`${d}.`:"";o.append(`${p}x`,"0"),o.append(`${p}y`,"0")}else d&&o.append(d,v)}}else{if(Qh(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ld,r=null,a=jd,s=e}return o&&a==="text/plain"&&(s=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function A1(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function S7(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&zi(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function C7(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function T7(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 O7(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let s=await C7(o,n);return s.links?s.links():[]}return[]}));return D7(r.flat(1).filter(T7).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function FC(e,t,n,r,a,o){let s=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,c=(f,d)=>{var m;return n[d].pathname!==f.pathname||((m=n[d].route.path)==null?void 0:m.endsWith("*"))&&n[d].params["*"]!==f.params["*"]};return o==="assets"?t.filter((f,d)=>s(f,d)||c(f,d)):o==="data"?t.filter((f,d)=>{var v;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(s(f,d)||c(f,d))return!0;if(f.route.shouldRevalidate){let p=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((v=n[0])==null?void 0:v.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function A7(e,t,{includeHydrateFallback:n}={}){return M7(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function M7(e){return[...new Set(e)]}function R7(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function D7(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(R7(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function wD(){let e=g.useContext(vs);return A1(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function k7(){let e=g.useContext(Zh);return A1(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var M1=g.createContext(void 0);M1.displayName="FrameworkContext";function xD(){let e=g.useContext(M1);return A1(e,"You must render this element inside a <HydratedRouter> element"),e}function P7(e,t){let n=g.useContext(M1),[r,a]=g.useState(!1),[o,s]=g.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:d,onMouseLeave:m,onTouchStart:v}=t,p=g.useRef(null);g.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let E=C=>{C.forEach(T=>{s(T.isIntersecting)})},S=new IntersectionObserver(E,{threshold:.5});return p.current&&S.observe(p.current),()=>{S.disconnect()}}},[e]),g.useEffect(()=>{if(r){let E=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(E)}}},[r]);let b=()=>{a(!0)},x=()=>{a(!1),s(!1)};return n?e!=="intent"?[o,p,{}]:[o,p,{onFocus:_u(c,b),onBlur:_u(f,x),onMouseEnter:_u(d,b),onMouseLeave:_u(m,x),onTouchStart:_u(v,b)}]:[!1,p,{}]}function _u(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function _7({page:e,...t}){let{router:n}=wD(),r=g.useMemo(()=>uD(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?g.createElement(N7,{page:e,matches:r,...t}):null}function I7(e){let{manifest:t,routeModules:n}=xD(),[r,a]=g.useState([]);return g.useEffect(()=>{let o=!1;return O7(e,t,n).then(s=>{o||a(s)}),()=>{o=!0}},[e,t,n]),r}function N7({page:e,matches:t,...n}){let r=qo(),{manifest:a,routeModules:o}=xD(),{basename:s}=wD(),{loaderData:c,matches:f}=k7(),d=g.useMemo(()=>FC(e,t,f,a,r,"data"),[e,t,f,a,r]),m=g.useMemo(()=>FC(e,t,f,a,r,"assets"),[e,t,f,a,r]),v=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,E=!1;if(t.forEach(C=>{var O;let T=a.routes[C.route.id];!T||!T.hasLoader||(!d.some(M=>M.route.id===C.route.id)&&C.route.id in c&&((O=o[C.route.id])!=null&&O.shouldRevalidate)||T.hasClientLoader?E=!0:x.add(C.route.id))}),x.size===0)return[];let S=S7(e,s,"data");return E&&x.size>0&&S.searchParams.set("_routes",t.filter(C=>x.has(C.route.id)).map(C=>C.route.id).join(",")),[S.pathname+S.search]},[s,c,r,a,d,t,e,o]),p=g.useMemo(()=>A7(m,a),[m,a]),b=I7(m);return g.createElement(g.Fragment,null,v.map(x=>g.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),p.map(x=>g.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),b.map(({key:x,link:E})=>g.createElement("link",{key:x,nonce:n.nonce,...E})))}function L7(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var ED=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ED&&(window.__reactRouterVersion="7.8.2")}catch{}function j7({basename:e,children:t,window:n}){let r=g.useRef();r.current==null&&(r.current=SL({window:n,v5Compat:!0}));let a=r.current,[o,s]=g.useState({action:a.action,location:a.location}),c=g.useCallback(f=>{g.startTransition(()=>s(f))},[s]);return g.useLayoutEffect(()=>a.listen(c),[a,c]),g.createElement(h7,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a})}var SD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,CD=g.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:s,state:c,target:f,to:d,preventScrollReset:m,viewTransition:v,...p},b){let{basename:x}=g.useContext(ai),E=typeof d=="string"&&SD.test(d),S,C=!1;if(typeof d=="string"&&E&&(S=d,ED))try{let W=new URL(window.location.href),X=d.startsWith("//")?new URL(W.protocol+d):new URL(d),$=zi(X.pathname,x);X.origin===W.origin&&$!=null?d=$+X.search+X.hash:C=!0}catch{zr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=XL(d,{relative:a}),[O,M,k]=P7(r,p),D=H7(d,{replace:s,state:c,target:f,preventScrollReset:m,relative:a,viewTransition:v});function B(W){t&&t(W),W.defaultPrevented||D(W)}let Y=g.createElement("a",{...p,...k,href:S||T,onClick:C||o?t:B,ref:L7(b,M),target:f,"data-discover":!E&&n==="render"?"true":void 0});return O&&!E?g.createElement(g.Fragment,null,Y,g.createElement(_7,{page:T})):Y});CD.displayName="Link";var z7=g.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:s,viewTransition:c,children:f,...d},m){let v=Sc(s,{relative:d.relative}),p=qo(),b=g.useContext(Zh),{navigator:x,basename:E}=g.useContext(ai),S=b!=null&&Y7(v)&&c===!0,C=x.encodeLocation?x.encodeLocation(v).pathname:v.pathname,T=p.pathname,O=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(T=T.toLowerCase(),O=O?O.toLowerCase():null,C=C.toLowerCase()),O&&E&&(O=zi(O,E)||O);const M=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let k=T===C||!a&&T.startsWith(C)&&T.charAt(M)==="/",D=O!=null&&(O===C||!a&&O.startsWith(C)&&O.charAt(C.length)==="/"),B={isActive:k,isPending:D,isTransitioning:S},Y=k?t:void 0,W;typeof r=="function"?W=r(B):W=[r,k?"active":null,D?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let X=typeof o=="function"?o(B):o;return g.createElement(CD,{...d,"aria-current":Y,className:W,ref:m,style:X,to:s,viewTransition:c},typeof f=="function"?f(B):f)});z7.displayName="NavLink";var B7=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:s=Ld,action:c,onSubmit:f,relative:d,preventScrollReset:m,viewTransition:v,...p},b)=>{let x=q7(),E=V7(c,{relative:d}),S=s.toLowerCase()==="get"?"get":"post",C=typeof c=="string"&&SD.test(c),T=O=>{if(f&&f(O),O.defaultPrevented)return;O.preventDefault();let M=O.nativeEvent.submitter,k=(M==null?void 0:M.getAttribute("formmethod"))||s;x(M||O.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:a,state:o,relative:d,preventScrollReset:m,viewTransition:v})};return g.createElement("form",{ref:b,method:S,action:E,onSubmit:r?f:T,...p,"data-discover":!C&&e==="render"?"true":void 0})});B7.displayName="Form";function $7(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function TD(e){let t=g.useContext(vs);return St(t,$7(e)),t}function H7(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:s}={}){let c=ZL(),f=qo(),d=Sc(e,{relative:o});return g.useCallback(m=>{if(b7(m,t)){m.preventDefault();let v=n!==void 0?n:Ju(f)===Ju(d);c(e,{replace:v,state:r,preventScrollReset:a,relative:o,viewTransition:s})}},[f,c,d,n,r,t,e,a,o,s])}var F7=0,U7=()=>`__${String(++F7)}__`;function q7(){let{router:e}=TD("useSubmit"),{basename:t}=g.useContext(ai),n=u7();return g.useCallback(async(r,a={})=>{let{action:o,method:s,encType:c,formData:f,body:d}=E7(r,t);if(a.navigate===!1){let m=a.fetcherKey||U7();await e.fetch(m,n,a.action||o,{preventScrollReset:a.preventScrollReset,formData:f,body:d,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:f,body:d,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function V7(e,{relative:t}={}){let{basename:n}=g.useContext(ai),r=g.useContext(oi);St(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Sc(e||".",{relative:t})},s=qo();if(e==null){o.search=s.search;let c=new URLSearchParams(o.search),f=c.getAll("index");if(f.some(m=>m==="")){c.delete("index"),f.filter(v=>v).forEach(v=>c.append("index",v));let m=c.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:_i([n,o.pathname])),Ju(o)}function Y7(e,{relative:t}={}){let n=g.useContext(gD);St(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=TD("useViewTransitionState"),a=Sc(e,{relative:t});if(!n.isTransitioning)return!1;let o=zi(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=zi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return eh(a.pathname,s)!=null||eh(a.pathname,o)!=null}var uy={exports:{}},gn={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var UC;function W7(){if(UC)return gn;UC=1;var e=Na();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(f,d,m){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:v==null?null:""+v,children:f,containerInfo:d,implementation:m}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return gn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,gn.createPortal=function(f,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(f,d,null,m)},gn.flushSync=function(f){var d=s.T,m=r.p;try{if(s.T=null,r.p=2,f)return f()}finally{s.T=d,r.p=m,r.d.f()}},gn.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},gn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},gn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var m=d.as,v=c(m,d.crossOrigin),p=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:v,integrity:p,fetchPriority:b}):m==="script"&&r.d.X(f,{crossOrigin:v,integrity:p,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},gn.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=c(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},gn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,v=c(m,d.crossOrigin);r.d.L(f,m,{crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},gn.preloadModule=function(f,d){if(typeof f=="string")if(d){var m=c(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},gn.requestFormReset=function(f){r.d.r(f)},gn.unstable_batchedUpdates=function(f,d){return f(d)},gn.useFormState=function(f,d,m){return s.H.useFormState(f,d,m)},gn.useFormStatus=function(){return s.H.useHostTransitionStatus()},gn.version="19.1.1",gn}var qC;function OD(){if(qC)return uy.exports;qC=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(t){console.error(t)}}return e(),uy.exports=W7(),uy.exports}var R1=OD();const Wl=_t(R1);var cy={exports:{}};/*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */var VC;function G7(){return VC||(VC=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var s=typeof o;if(s==="string"||s==="number")r.push(o);else if(Array.isArray(o)&&o.length){var c=n.apply(null,o);c&&r.push(c)}else if(s==="object")for(var f in o)t.call(o,f)&&o[f]&&r.push(f)}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(cy)),cy.exports}var K7=G7();const Ue=_t(K7);var fy,YC;function X7(){if(YC)return fy;YC=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,f=typeof Wu=="object"&&Wu&&Wu.Object===Object&&Wu,d=typeof self=="object"&&self&&self.Object===Object&&self,m=f||d||Function("return this")(),v=Object.prototype,p=v.toString,b=Math.max,x=Math.min,E=function(){return m.Date.now()};function S(k,D,B){var Y,W,X,$,F,U,j=0,P=!1,R=!1,L=!0;if(typeof k!="function")throw new TypeError(e);D=M(D)||0,C(B)&&(P=!!B.leading,R="maxWait"in B,X=R?b(M(B.maxWait)||0,D):X,L="trailing"in B?!!B.trailing:L);function H(ye){var he=Y,ie=W;return Y=W=void 0,j=ye,$=k.apply(ie,he),$}function z(ye){return j=ye,F=setTimeout(Z,D),P?H(ye):$}function I(ye){var he=ye-U,ie=ye-j,me=D-he;return R?x(me,X-ie):me}function G(ye){var he=ye-U,ie=ye-j;return U===void 0||he>=D||he<0||R&&ie>=X}function Z(){var ye=E();if(G(ye))return oe(ye);F=setTimeout(Z,I(ye))}function oe(ye){return F=void 0,L&&Y?H(ye):(Y=W=void 0,$)}function fe(){F!==void 0&&clearTimeout(F),j=0,Y=U=W=F=void 0}function ve(){return F===void 0?$:oe(E())}function de(){var ye=E(),he=G(ye);if(Y=arguments,W=this,U=ye,he){if(F===void 0)return z(U);if(R)return F=setTimeout(Z,D),H(U)}return F===void 0&&(F=setTimeout(Z,D)),$}return de.cancel=fe,de.flush=ve,de}function C(k){var D=typeof k;return!!k&&(D=="object"||D=="function")}function T(k){return!!k&&typeof k=="object"}function O(k){return typeof k=="symbol"||T(k)&&p.call(k)==n}function M(k){if(typeof k=="number")return k;if(O(k))return t;if(C(k)){var D=typeof k.valueOf=="function"?k.valueOf():k;k=C(D)?D+"":D}if(typeof k!="string")return k===0?k:+k;k=k.replace(r,"");var B=o.test(k);return B||s.test(k)?c(k.slice(2),B?2:8):a.test(k)?t:+k}return fy=S,fy}var Z7=X7();const Q7=_t(Z7);var zd={exports:{}},J7=zd.exports,WC;function ej(){return WC||(WC=1,(function(e,t){(function(n,r){e.exports=r()})(J7,(function(){var n=1e3,r=6e4,a=36e5,o="millisecond",s="second",c="minute",f="hour",d="day",m="week",v="month",p="quarter",b="year",x="date",E="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_Dece