@eliseubatista99/react-scaffold-core 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,12 @@
1
1
  export type Language = string;
2
2
  export type Translation = Record<Language, string>;
3
+ export type TranslationValues = Record<string, unknown>;
3
4
  export declare type TranslationList = {
4
5
  [key: string]: Translation;
5
6
  };
6
7
  export interface UseTranslationsOutput {
7
- t: (key: string) => string;
8
- getTranslation: (translation?: Translation) => string | undefined;
8
+ t: (key: string, values?: TranslationValues) => string;
9
+ getTranslation: (translation?: Translation, values?: TranslationValues) => string | undefined;
9
10
  }
10
11
  export interface UseTranslationsInput {
11
12
  language: Language;
package/dist/index.cjs.js CHANGED
@@ -19,7 +19,7 @@
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,F,j,te,j),lt[j+F]=!0)}if(j=null,A!==void 0&&(r(A),j=""+A),o(k)&&(r(k.key),j=""+k.key),"key"in k){A={};for(var Me in k)Me!=="key"&&(A[Me]=k[Me])}else A=k;return j&&l(A,typeof y=="function"?y.displayName||y.name||"Unknown":y),u(y,j,W,Q,n(),A,je,Ne)}function g(y){typeof y=="object"&&y!==null&&y.$$typeof===x&&y._store&&(y._store.validated=1)}var m=b,x=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),R=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),M=Symbol.for("react.client.reference"),B=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt=Object.prototype.hasOwnProperty,lr=Array.isArray,Fe=console.createTask?console.createTask:function(){return null};m={"react-stack-bottom-frame":function(y){return y()}};var at,it={},ot=m["react-stack-bottom-frame"].bind(m,i)(),st=Fe(a(i)),lt={};le.Fragment=h,le.jsx=function(y,k,A,F,Q){var W=1e4>B.recentlyCreatedOwnerStacks++;return c(y,k,A,!1,F,Q,W?Error("react-stack-top-frame"):ot,W?Fe(a(y)):st)},le.jsxs=function(y,k,A,F,Q){var W=1e4>B.recentlyCreatedOwnerStacks++;return c(y,k,A,!0,F,Q,W?Error("react-stack-top-frame"):ot,W?Fe(a(y)):st)}}()),le}var ft;function hr(){return ft||(ft=1,process.env.NODE_ENV==="production"?we.exports=fr():we.exports=dr()),we.exports}var E=hr();const pr=({children:e,onClick:t,styles:r})=>E.jsx("button",{style:{border:"none",borderRadius:"1000px",background:"#d6d6d6ff",padding:"12px 18px",fontSize:"16px",width:"fit-content",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"row",...r},onClick:()=>t?.(),children:e}),mr=e=>b.useEffect(e,[]),Pt=()=>{const[e,t]=b.useState({}),[r,a]=b.useState(!1);return b.useEffect(()=>{const n=l=>{t({x:l.clientX,y:l.clientY})},i=l=>{a(!0)},o=l=>{a(!1)};return window.addEventListener("pointermove",n),window.addEventListener("pointerdown",i),window.addEventListener("pointerup",o),()=>{window.removeEventListener("pointermove",n),window.removeEventListener("pointerdown",i),window.removeEventListener("pointerup",o)}},[]),{pointerPosition:e,isPointerDown:r}},Tt=({ref:e,onDrag:t,onDragStart:r,onDragEnd:a})=>{const n=b.useRef(!1),i=b.useRef(!1),{pointerPosition:o,isPointerDown:l}=Pt(),s=b.useRef({isDragging:!1}),u=b.useCallback(f=>{if(!e||!e.current||!s.current)return;const h={...s.current};return h.posY=f.y,h.posX=f.x,s.current.startPosX&&s.current.posX&&(h.distanceX=s.current.startPosX-s.current.posX),s.current.startPosY&&s.current.posY&&(h.distanceY=-(s.current.startPosY-s.current.posY)),h},[]),c=b.useCallback(f=>{f.preventDefault(),f.stopPropagation(),s.current.isDragging=!0,s.current.startPosY=f.clientY,s.current.startPosX=f.clientX;const h=u({x:f.clientX,y:f.clientY});h&&(s.current=h,r?.(h))},[u]),g=b.useCallback(f=>{s.current.isDragging=!1;const h=u(o);h&&(a?.(h),h.startPosX=void 0,h.startPosY=void 0,s.current=h)},[u,o]),m=b.useCallback(f=>{if(console.debug("useDrag > onPointerMove > Is Dragging >",s.current.isDragging),!s.current.isDragging)return;const h=u(o);console.debug("useDrag > onPointerMove > Drag Result >",h),h&&(t?.(h),s.current=h)},[u,o]),x=b.useCallback(async()=>{if(!n.current){for(;!e?.current;)await new Promise(f=>setTimeout(f,300));n.current=!0,e.current.onpointerdown=c,e.current.style.touchAction="none"}},[e?.current,c]);b.useEffect(()=>{x()},[x]),b.useEffect(()=>{m()},[o]),b.useEffect(()=>{l!==i.current&&(i.current=l,l||g())},[l,i.current])},gr=()=>{const e=(r,a)=>{let n=0,i=`${r}?`;for(const o in a){const l=a[o];n>0&&(i=`${i}&`),i=`${i}${o}=${l}`,n++}return i};return async(r,a)=>{const n=e(r,a);return await(await fetch(n)).json()}},It={xs:0,sm:420,md:768,lg:991,xl:1200,xxl:1440},yr=e=>{const t={...It,...e?.breakpointConfiguration},[r,a]=b.useState(dt(t)),n=()=>{a(dt(t))};return b.useEffect(()=>(window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}),[]),b.useMemo(()=>r,[r])},vr=(e,t)=>e<t.sm?"xs":e<t.md?"sm":e<t.lg?"md":e<t.xl?"lg":e<t.xxl?"xl":"xxl",xr=(e,t)=>e<=t.sm?"mobile":e<=t.md?"tablet":"desktop",dt=e=>{const t=window.innerWidth,r=window.innerHeight,a=vr(t,e),n=xr(t,e);return{currentWidth:t,currentHeight:r,currentBreakpoint:a,currentSize:n}},br=e=>{const t=e.translations,r=e.language,a=i=>{if(i)return i[r]};return{t:i=>{if(t[i]){const o=a(t[i]);return o??i}return i},getTranslation:a}};var ue={},ht;function wr(){if(ht)return ue;ht=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.parse=o,ue.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/,n=Object.prototype.toString,i=(()=>{const m=function(){};return m.prototype=Object.create(null),m})();function o(m,x){const f=new i,h=m.length;if(h<2)return f;const v=x?.decode||c;let d=0;do{const w=m.indexOf("=",d);if(w===-1)break;const R=m.indexOf(";",d),T=R===-1?h:R;if(w>T){d=m.lastIndexOf(";",w-1)+1;continue}const I=l(m,d,w),O=s(m,w,I),C=m.slice(I,O);if(f[C]===void 0){let z=l(m,w+1,T),_=s(m,T,z);const M=v(m.slice(z,_));f[C]=M}d=T+1}while(d<h);return f}function l(m,x,f){do{const h=m.charCodeAt(x);if(h!==32&&h!==9)return x}while(++x<f);return f}function s(m,x,f){for(;x>f;){const h=m.charCodeAt(--x);if(h!==32&&h!==9)return x+1}return f}function u(m,x,f){const h=f?.encode||encodeURIComponent;if(!e.test(m))throw new TypeError(`argument name is invalid: ${m}`);const v=h(x);if(!t.test(v))throw new TypeError(`argument val is invalid: ${x}`);let d=m+"="+v;if(!f)return d;if(f.maxAge!==void 0){if(!Number.isInteger(f.maxAge))throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);d+="; Max-Age="+f.maxAge}if(f.domain){if(!r.test(f.domain))throw new TypeError(`option domain is invalid: ${f.domain}`);d+="; Domain="+f.domain}if(f.path){if(!a.test(f.path))throw new TypeError(`option path is invalid: ${f.path}`);d+="; Path="+f.path}if(f.expires){if(!g(f.expires)||!Number.isFinite(f.expires.valueOf()))throw new TypeError(`option expires is invalid: ${f.expires}`);d+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(d+="; HttpOnly"),f.secure&&(d+="; Secure"),f.partitioned&&(d+="; Partitioned"),f.priority)switch(typeof f.priority=="string"?f.priority.toLowerCase():void 0){case"low":d+="; Priority=Low";break;case"medium":d+="; Priority=Medium";break;case"high":d+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${f.priority}`)}if(f.sameSite)switch(typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"none":d+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${f.sameSite}`)}return d}function c(m){if(m.indexOf("%")===-1)return m;try{return decodeURIComponent(m)}catch{return m}}function g(m){return n.call(m)==="[object Date]"}return ue}wr();/**
22
+ <%s key={someKey} {...props} />`,F,j,te,j),lt[j+F]=!0)}if(j=null,A!==void 0&&(r(A),j=""+A),o(k)&&(r(k.key),j=""+k.key),"key"in k){A={};for(var Me in k)Me!=="key"&&(A[Me]=k[Me])}else A=k;return j&&l(A,typeof y=="function"?y.displayName||y.name||"Unknown":y),u(y,j,W,Q,n(),A,je,Ne)}function g(y){typeof y=="object"&&y!==null&&y.$$typeof===x&&y._store&&(y._store.validated=1)}var m=b,x=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),R=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),M=Symbol.for("react.client.reference"),B=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt=Object.prototype.hasOwnProperty,lr=Array.isArray,Fe=console.createTask?console.createTask:function(){return null};m={"react-stack-bottom-frame":function(y){return y()}};var at,it={},ot=m["react-stack-bottom-frame"].bind(m,i)(),st=Fe(a(i)),lt={};le.Fragment=h,le.jsx=function(y,k,A,F,Q){var W=1e4>B.recentlyCreatedOwnerStacks++;return c(y,k,A,!1,F,Q,W?Error("react-stack-top-frame"):ot,W?Fe(a(y)):st)},le.jsxs=function(y,k,A,F,Q){var W=1e4>B.recentlyCreatedOwnerStacks++;return c(y,k,A,!0,F,Q,W?Error("react-stack-top-frame"):ot,W?Fe(a(y)):st)}}()),le}var ft;function hr(){return ft||(ft=1,process.env.NODE_ENV==="production"?we.exports=fr():we.exports=dr()),we.exports}var E=hr();const pr=({children:e,onClick:t,styles:r})=>E.jsx("button",{style:{border:"none",borderRadius:"1000px",background:"#d6d6d6ff",padding:"12px 18px",fontSize:"16px",width:"fit-content",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"row",...r},onClick:()=>t?.(),children:e}),mr=e=>b.useEffect(e,[]),Pt=()=>{const[e,t]=b.useState({}),[r,a]=b.useState(!1);return b.useEffect(()=>{const n=l=>{t({x:l.clientX,y:l.clientY})},i=l=>{a(!0)},o=l=>{a(!1)};return window.addEventListener("pointermove",n),window.addEventListener("pointerdown",i),window.addEventListener("pointerup",o),()=>{window.removeEventListener("pointermove",n),window.removeEventListener("pointerdown",i),window.removeEventListener("pointerup",o)}},[]),{pointerPosition:e,isPointerDown:r}},Tt=({ref:e,onDrag:t,onDragStart:r,onDragEnd:a})=>{const n=b.useRef(!1),i=b.useRef(!1),{pointerPosition:o,isPointerDown:l}=Pt(),s=b.useRef({isDragging:!1}),u=b.useCallback(f=>{if(!e||!e.current||!s.current)return;const h={...s.current};return h.posY=f.y,h.posX=f.x,s.current.startPosX&&s.current.posX&&(h.distanceX=s.current.startPosX-s.current.posX),s.current.startPosY&&s.current.posY&&(h.distanceY=-(s.current.startPosY-s.current.posY)),h},[]),c=b.useCallback(f=>{f.preventDefault(),f.stopPropagation(),s.current.isDragging=!0,s.current.startPosY=f.clientY,s.current.startPosX=f.clientX;const h=u({x:f.clientX,y:f.clientY});h&&(s.current=h,r?.(h))},[u]),g=b.useCallback(f=>{s.current.isDragging=!1;const h=u(o);h&&(a?.(h),h.startPosX=void 0,h.startPosY=void 0,s.current=h)},[u,o]),m=b.useCallback(f=>{if(console.debug("useDrag > onPointerMove > Is Dragging >",s.current.isDragging),!s.current.isDragging)return;const h=u(o);console.debug("useDrag > onPointerMove > Drag Result >",h),h&&(t?.(h),s.current=h)},[u,o]),x=b.useCallback(async()=>{if(!n.current){for(;!e?.current;)await new Promise(f=>setTimeout(f,300));n.current=!0,e.current.onpointerdown=c,e.current.style.touchAction="none"}},[e?.current,c]);b.useEffect(()=>{x()},[x]),b.useEffect(()=>{m()},[o]),b.useEffect(()=>{l!==i.current&&(i.current=l,l||g())},[l,i.current])},gr=()=>{const e=(r,a)=>{let n=0,i=`${r}?`;for(const o in a){const l=a[o];n>0&&(i=`${i}&`),i=`${i}${o}=${l}`,n++}return i};return async(r,a)=>{const n=e(r,a);return await(await fetch(n)).json()}},It={xs:0,sm:420,md:768,lg:991,xl:1200,xxl:1440},yr=e=>{const t={...It,...e?.breakpointConfiguration},[r,a]=b.useState(dt(t)),n=()=>{a(dt(t))};return b.useEffect(()=>(window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}),[]),b.useMemo(()=>r,[r])},vr=(e,t)=>e<t.sm?"xs":e<t.md?"sm":e<t.lg?"md":e<t.xl?"lg":e<t.xxl?"xl":"xxl",xr=(e,t)=>e<=t.sm?"mobile":e<=t.md?"tablet":"desktop",dt=e=>{const t=window.innerWidth,r=window.innerHeight,a=vr(t,e),n=xr(t,e);return{currentWidth:t,currentHeight:r,currentBreakpoint:a,currentSize:n}},br=e=>{const t=e.translations,r=e.language,a=(i,o)=>{if(!i)return;let l=i[r];if(l)return o&&Object.keys(o).forEach(s=>{const u=o[s];l=l.replaceAll(`{{${s}}}`,`${u}`)}),l};return{t:(i,o)=>{if(t[i]){const l=a(t[i],o);return l??i}return i},getTranslation:a}};var ue={},ht;function wr(){if(ht)return ue;ht=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.parse=o,ue.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/,n=Object.prototype.toString,i=(()=>{const m=function(){};return m.prototype=Object.create(null),m})();function o(m,x){const f=new i,h=m.length;if(h<2)return f;const v=x?.decode||c;let d=0;do{const w=m.indexOf("=",d);if(w===-1)break;const R=m.indexOf(";",d),T=R===-1?h:R;if(w>T){d=m.lastIndexOf(";",w-1)+1;continue}const I=l(m,d,w),O=s(m,w,I),C=m.slice(I,O);if(f[C]===void 0){let z=l(m,w+1,T),_=s(m,T,z);const M=v(m.slice(z,_));f[C]=M}d=T+1}while(d<h);return f}function l(m,x,f){do{const h=m.charCodeAt(x);if(h!==32&&h!==9)return x}while(++x<f);return f}function s(m,x,f){for(;x>f;){const h=m.charCodeAt(--x);if(h!==32&&h!==9)return x+1}return f}function u(m,x,f){const h=f?.encode||encodeURIComponent;if(!e.test(m))throw new TypeError(`argument name is invalid: ${m}`);const v=h(x);if(!t.test(v))throw new TypeError(`argument val is invalid: ${x}`);let d=m+"="+v;if(!f)return d;if(f.maxAge!==void 0){if(!Number.isInteger(f.maxAge))throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);d+="; Max-Age="+f.maxAge}if(f.domain){if(!r.test(f.domain))throw new TypeError(`option domain is invalid: ${f.domain}`);d+="; Domain="+f.domain}if(f.path){if(!a.test(f.path))throw new TypeError(`option path is invalid: ${f.path}`);d+="; Path="+f.path}if(f.expires){if(!g(f.expires)||!Number.isFinite(f.expires.valueOf()))throw new TypeError(`option expires is invalid: ${f.expires}`);d+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(d+="; HttpOnly"),f.secure&&(d+="; Secure"),f.partitioned&&(d+="; Partitioned"),f.priority)switch(typeof f.priority=="string"?f.priority.toLowerCase():void 0){case"low":d+="; Priority=Low";break;case"medium":d+="; Priority=Medium";break;case"high":d+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${f.priority}`)}if(f.sameSite)switch(typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"none":d+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${f.sameSite}`)}return d}function c(m){if(m.indexOf("%")===-1)return m;try{return decodeURIComponent(m)}catch{return m}}function g(m){return n.call(m)==="[object Date]"}return ue}wr();/**
23
23
  * react-router v7.6.3
24
24
  *
25
25
  * Copyright (c) Remix Software Inc.
@@ -28,9 +28,9 @@ React keys must be passed directly to JSX without using spread:
28
28
  * LICENSE.md file in the root directory of this source tree.
29
29
  *
30
30
  * @license MIT
31
- */var pt="popstate";function Rr(e={}){function t(a,n){let{pathname:i,search:o,hash:l}=a.location;return Be("",{pathname:i,search:o,hash:l},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function r(a,n){return typeof n=="string"?n:de(n)}return kr(t,r,null,e)}function L(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function X(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Cr(){return Math.random().toString(36).substring(2,10)}function mt(e,t){return{usr:e.state,key:e.key,idx:t}}function Be(e,t,r=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ae(t):t,state:r,key:t&&t.key||a||Cr()}}function de({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function ae(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function kr(e,t,r,a={}){let{window:n=document.defaultView,v5Compat:i=!1}=a,o=n.history,l="POP",s=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function g(){l="POP";let v=c(),d=v==null?null:v-u;u=v,s&&s({action:l,location:h.location,delta:d})}function m(v,d){l="PUSH";let w=Be(h.location,v,d);u=c()+1;let R=mt(w,u),T=h.createHref(w);try{o.pushState(R,"",T)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;n.location.assign(T)}i&&s&&s({action:l,location:h.location,delta:1})}function x(v,d){l="REPLACE";let w=Be(h.location,v,d);u=c();let R=mt(w,u),T=h.createHref(w);o.replaceState(R,"",T),i&&s&&s({action:l,location:h.location,delta:0})}function f(v){return Er(v)}let h={get action(){return l},get location(){return e(n,o)},listen(v){if(s)throw new Error("A history only accepts one active listener");return n.addEventListener(pt,g),s=v,()=>{n.removeEventListener(pt,g),s=null}},createHref(v){return t(n,v)},createURL:f,encodeLocation(v){let d=f(v);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:m,replace:x,go(v){return o.go(v)}};return h}function Er(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),L(r,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:de(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function Ot(e,t,r="/"){return Sr(e,t,r,!1)}function Sr(e,t,r,a){let n=typeof t=="string"?ae(t):t,i=K(n.pathname||"/",r);if(i==null)return null;let o=At(e);Pr(o);let l=null;for(let s=0;l==null&&s<o.length;++s){let u=Nr(i);l=Fr(o[s],u,a)}return l}function At(e,t=[],r=[],a=""){let n=(i,o,l)=>{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};s.relativePath.startsWith("/")&&(L(s.relativePath.startsWith(a),`Absolute route path "${s.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(a.length));let u=J([a,s.relativePath]),c=r.concat(s);i.children&&i.children.length>0&&(L(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),At(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:_r(u,i.index),routesMeta:c})};return e.forEach((i,o)=>{if(i.path===""||!i.path?.includes("?"))n(i,o);else for(let l of Lt(i.path))n(i,o,l)}),t}function Lt(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,n=r.endsWith("?"),i=r.replace(/\?$/,"");if(a.length===0)return n?[i,""]:[i];let o=Lt(a.join("/")),l=[];return l.push(...o.map(s=>s===""?i:[i,s].join("/"))),n&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function Pr(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Dr(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var Tr=/^:[\w-]+$/,Ir=3,Or=2,Ar=1,Lr=10,$r=-2,gt=e=>e==="*";function _r(e,t){let r=e.split("/"),a=r.length;return r.some(gt)&&(a+=$r),t&&(a+=Or),r.filter(n=>!gt(n)).reduce((n,i)=>n+(Tr.test(i)?Ir:i===""?Ar:Lr),a)}function Dr(e,t){return e.length===t.length&&e.slice(0,-1).every((a,n)=>a===t[n])?e[e.length-1]-t[t.length-1]:0}function Fr(e,t,r=!1){let{routesMeta:a}=e,n={},i="/",o=[];for(let l=0;l<a.length;++l){let s=a[l],u=l===a.length-1,c=i==="/"?t:t.slice(i.length)||"/",g=Ie({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c),m=s.route;if(!g&&u&&r&&!a[a.length-1].route.index&&(g=Ie({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!g)return null;Object.assign(n,g.params),o.push({params:n,pathname:J([i,g.pathname]),pathnameBase:Ur(J([i,g.pathnameBase])),route:m}),g.pathnameBase!=="/"&&(i=J([i,g.pathnameBase]))}return o}function Ie(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=jr(e.path,e.caseSensitive,e.end),n=t.match(r);if(!n)return null;let i=n[0],o=i.replace(/(.)\/+$/,"$1"),l=n.slice(1);return{params:a.reduce((u,{paramName:c,isOptional:g},m)=>{if(c==="*"){let f=l[m]||"";o=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}const x=l[m];return g&&!x?u[c]=void 0:u[c]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function jr(e,t=!1,r=!0){X(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 a=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s)=>(a.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),a]}function Nr(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return X(!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 K(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function Mr(e,t="/"){let{pathname:r,search:a="",hash:n=""}=typeof e=="string"?ae(e):e;return{pathname:r?r.startsWith("/")?r:Hr(r,t):t,search:Br(a),hash:Wr(n)}}function Hr(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function He(e,t,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zr(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function $t(e){let t=zr(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function _t(e,t,r,a=!1){let n;typeof e=="string"?n=ae(e):(n={...e},L(!n.pathname||!n.pathname.includes("?"),He("?","pathname","search",n)),L(!n.pathname||!n.pathname.includes("#"),He("#","pathname","hash",n)),L(!n.search||!n.search.includes("#"),He("#","search","hash",n)));let i=e===""||n.pathname==="",o=i?"/":n.pathname,l;if(o==null)l=r;else{let g=t.length-1;if(!a&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),g-=1;n.pathname=m.join("/")}l=g>=0?t[g]:"/"}let s=Mr(n,l),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var J=e=>e.join("/").replace(/\/\/+/g,"/"),Ur=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Br=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Wr=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Vr(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Dt=["POST","PUT","PATCH","DELETE"];new Set(Dt);var Yr=["GET",...Dt];new Set(Yr);var ie=p.createContext(null);ie.displayName="DataRouter";var Ae=p.createContext(null);Ae.displayName="DataRouterState";var Ft=p.createContext({isTransitioning:!1});Ft.displayName="ViewTransition";var qr=p.createContext(new Map);qr.displayName="Fetchers";var Xr=p.createContext(null);Xr.displayName="Await";var G=p.createContext(null);G.displayName="Navigation";var ge=p.createContext(null);ge.displayName="Location";var Z=p.createContext({outlet:null,matches:[],isDataRoute:!1});Z.displayName="Route";var Ge=p.createContext(null);Ge.displayName="RouteError";function Gr(e,{relative:t}={}){L(ye(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=p.useContext(G),{hash:n,pathname:i,search:o}=ve(e,{relative:t}),l=i;return r!=="/"&&(l=i==="/"?r:J([r,i])),a.createHref({pathname:l,search:o,hash:n})}function ye(){return p.useContext(ge)!=null}function ee(){return L(ye(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(ge).location}var jt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nt(e){p.useContext(G).static||p.useLayoutEffect(e)}function Mt(){let{isDataRoute:e}=p.useContext(Z);return e?un():Jr()}function Jr(){L(ye(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(ie),{basename:t,navigator:r}=p.useContext(G),{matches:a}=p.useContext(Z),{pathname:n}=ee(),i=JSON.stringify($t(a)),o=p.useRef(!1);return Nt(()=>{o.current=!0}),p.useCallback((s,u={})=>{if(X(o.current,jt),!o.current)return;if(typeof s=="number"){r.go(s);return}let c=_t(s,JSON.parse(i),n,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:J([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,i,n,e])}p.createContext(null);function ve(e,{relative:t}={}){let{matches:r}=p.useContext(Z),{pathname:a}=ee(),n=JSON.stringify($t(r));return p.useMemo(()=>_t(e,JSON.parse(n),a,t==="path"),[e,n,a,t])}function Kr(e,t){return Ht(e,t)}function Ht(e,t,r,a){L(ye(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=p.useContext(G),{matches:i}=p.useContext(Z),o=i[i.length-1],l=o?o.params:{},s=o?o.pathname:"/",u=o?o.pathnameBase:"/",c=o&&o.route;{let d=c&&c.path||"";zt(s,!c||d.endsWith("*")||d.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${d}">) 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.
31
+ */var pt="popstate";function Rr(e={}){function t(a,n){let{pathname:i,search:o,hash:l}=a.location;return Be("",{pathname:i,search:o,hash:l},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function r(a,n){return typeof n=="string"?n:de(n)}return kr(t,r,null,e)}function $(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function X(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Cr(){return Math.random().toString(36).substring(2,10)}function mt(e,t){return{usr:e.state,key:e.key,idx:t}}function Be(e,t,r=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ae(t):t,state:r,key:t&&t.key||a||Cr()}}function de({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function ae(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function kr(e,t,r,a={}){let{window:n=document.defaultView,v5Compat:i=!1}=a,o=n.history,l="POP",s=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function g(){l="POP";let v=c(),d=v==null?null:v-u;u=v,s&&s({action:l,location:h.location,delta:d})}function m(v,d){l="PUSH";let w=Be(h.location,v,d);u=c()+1;let R=mt(w,u),T=h.createHref(w);try{o.pushState(R,"",T)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;n.location.assign(T)}i&&s&&s({action:l,location:h.location,delta:1})}function x(v,d){l="REPLACE";let w=Be(h.location,v,d);u=c();let R=mt(w,u),T=h.createHref(w);o.replaceState(R,"",T),i&&s&&s({action:l,location:h.location,delta:0})}function f(v){return Er(v)}let h={get action(){return l},get location(){return e(n,o)},listen(v){if(s)throw new Error("A history only accepts one active listener");return n.addEventListener(pt,g),s=v,()=>{n.removeEventListener(pt,g),s=null}},createHref(v){return t(n,v)},createURL:f,encodeLocation(v){let d=f(v);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:m,replace:x,go(v){return o.go(v)}};return h}function Er(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),$(r,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:de(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function Ot(e,t,r="/"){return Sr(e,t,r,!1)}function Sr(e,t,r,a){let n=typeof t=="string"?ae(t):t,i=K(n.pathname||"/",r);if(i==null)return null;let o=At(e);Pr(o);let l=null;for(let s=0;l==null&&s<o.length;++s){let u=Nr(i);l=Fr(o[s],u,a)}return l}function At(e,t=[],r=[],a=""){let n=(i,o,l)=>{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};s.relativePath.startsWith("/")&&($(s.relativePath.startsWith(a),`Absolute route path "${s.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(a.length));let u=J([a,s.relativePath]),c=r.concat(s);i.children&&i.children.length>0&&($(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),At(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:_r(u,i.index),routesMeta:c})};return e.forEach((i,o)=>{if(i.path===""||!i.path?.includes("?"))n(i,o);else for(let l of $t(i.path))n(i,o,l)}),t}function $t(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,n=r.endsWith("?"),i=r.replace(/\?$/,"");if(a.length===0)return n?[i,""]:[i];let o=$t(a.join("/")),l=[];return l.push(...o.map(s=>s===""?i:[i,s].join("/"))),n&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function Pr(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Dr(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var Tr=/^:[\w-]+$/,Ir=3,Or=2,Ar=1,$r=10,Lr=-2,gt=e=>e==="*";function _r(e,t){let r=e.split("/"),a=r.length;return r.some(gt)&&(a+=Lr),t&&(a+=Or),r.filter(n=>!gt(n)).reduce((n,i)=>n+(Tr.test(i)?Ir:i===""?Ar:$r),a)}function Dr(e,t){return e.length===t.length&&e.slice(0,-1).every((a,n)=>a===t[n])?e[e.length-1]-t[t.length-1]:0}function Fr(e,t,r=!1){let{routesMeta:a}=e,n={},i="/",o=[];for(let l=0;l<a.length;++l){let s=a[l],u=l===a.length-1,c=i==="/"?t:t.slice(i.length)||"/",g=Ie({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c),m=s.route;if(!g&&u&&r&&!a[a.length-1].route.index&&(g=Ie({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!g)return null;Object.assign(n,g.params),o.push({params:n,pathname:J([i,g.pathname]),pathnameBase:Ur(J([i,g.pathnameBase])),route:m}),g.pathnameBase!=="/"&&(i=J([i,g.pathnameBase]))}return o}function Ie(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=jr(e.path,e.caseSensitive,e.end),n=t.match(r);if(!n)return null;let i=n[0],o=i.replace(/(.)\/+$/,"$1"),l=n.slice(1);return{params:a.reduce((u,{paramName:c,isOptional:g},m)=>{if(c==="*"){let f=l[m]||"";o=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}const x=l[m];return g&&!x?u[c]=void 0:u[c]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function jr(e,t=!1,r=!0){X(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 a=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s)=>(a.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),a]}function Nr(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return X(!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 K(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function Mr(e,t="/"){let{pathname:r,search:a="",hash:n=""}=typeof e=="string"?ae(e):e;return{pathname:r?r.startsWith("/")?r:Hr(r,t):t,search:Br(a),hash:Wr(n)}}function Hr(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function He(e,t,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zr(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Lt(e){let t=zr(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function _t(e,t,r,a=!1){let n;typeof e=="string"?n=ae(e):(n={...e},$(!n.pathname||!n.pathname.includes("?"),He("?","pathname","search",n)),$(!n.pathname||!n.pathname.includes("#"),He("#","pathname","hash",n)),$(!n.search||!n.search.includes("#"),He("#","search","hash",n)));let i=e===""||n.pathname==="",o=i?"/":n.pathname,l;if(o==null)l=r;else{let g=t.length-1;if(!a&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),g-=1;n.pathname=m.join("/")}l=g>=0?t[g]:"/"}let s=Mr(n,l),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var J=e=>e.join("/").replace(/\/\/+/g,"/"),Ur=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Br=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Wr=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Vr(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Dt=["POST","PUT","PATCH","DELETE"];new Set(Dt);var Yr=["GET",...Dt];new Set(Yr);var ie=p.createContext(null);ie.displayName="DataRouter";var Ae=p.createContext(null);Ae.displayName="DataRouterState";var Ft=p.createContext({isTransitioning:!1});Ft.displayName="ViewTransition";var qr=p.createContext(new Map);qr.displayName="Fetchers";var Xr=p.createContext(null);Xr.displayName="Await";var G=p.createContext(null);G.displayName="Navigation";var ge=p.createContext(null);ge.displayName="Location";var Z=p.createContext({outlet:null,matches:[],isDataRoute:!1});Z.displayName="Route";var Ge=p.createContext(null);Ge.displayName="RouteError";function Gr(e,{relative:t}={}){$(ye(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=p.useContext(G),{hash:n,pathname:i,search:o}=ve(e,{relative:t}),l=i;return r!=="/"&&(l=i==="/"?r:J([r,i])),a.createHref({pathname:l,search:o,hash:n})}function ye(){return p.useContext(ge)!=null}function ee(){return $(ye(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(ge).location}var jt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nt(e){p.useContext(G).static||p.useLayoutEffect(e)}function Mt(){let{isDataRoute:e}=p.useContext(Z);return e?un():Jr()}function Jr(){$(ye(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(ie),{basename:t,navigator:r}=p.useContext(G),{matches:a}=p.useContext(Z),{pathname:n}=ee(),i=JSON.stringify(Lt(a)),o=p.useRef(!1);return Nt(()=>{o.current=!0}),p.useCallback((s,u={})=>{if(X(o.current,jt),!o.current)return;if(typeof s=="number"){r.go(s);return}let c=_t(s,JSON.parse(i),n,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:J([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,i,n,e])}p.createContext(null);function ve(e,{relative:t}={}){let{matches:r}=p.useContext(Z),{pathname:a}=ee(),n=JSON.stringify(Lt(r));return p.useMemo(()=>_t(e,JSON.parse(n),a,t==="path"),[e,n,a,t])}function Kr(e,t){return Ht(e,t)}function Ht(e,t,r,a){$(ye(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=p.useContext(G),{matches:i}=p.useContext(Z),o=i[i.length-1],l=o?o.params:{},s=o?o.pathname:"/",u=o?o.pathnameBase:"/",c=o&&o.route;{let d=c&&c.path||"";zt(s,!c||d.endsWith("*")||d.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${d}">) 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.
32
32
 
33
- Please change the parent <Route path="${d}"> to <Route path="${d==="/"?"*":`${d}/*`}">.`)}let g=ee(),m;if(t){let d=typeof t=="string"?ae(t):t;L(u==="/"||d.pathname?.startsWith(u),`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 "${u}" but pathname "${d.pathname}" was given in the \`location\` prop.`),m=d}else m=g;let x=m.pathname||"/",f=x;if(u!=="/"){let d=u.replace(/^\//,"").split("/");f="/"+x.replace(/^\//,"").split("/").slice(d.length).join("/")}let h=Ot(e,{pathname:f});X(c||h!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),X(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.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 v=rn(h&&h.map(d=>Object.assign({},d,{params:Object.assign({},l,d.params),pathname:J([u,n.encodeLocation?n.encodeLocation(d.pathname).pathname:d.pathname]),pathnameBase:d.pathnameBase==="/"?u:J([u,n.encodeLocation?n.encodeLocation(d.pathnameBase).pathname:d.pathnameBase])})),i,r,a);return t&&v?p.createElement(ge.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},v):v}function Zr(){let e=ln(),t=Vr(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:i},"ErrorBoundary")," or"," ",p.createElement("code",{style:i},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:n},r):null,o)}var Qr=p.createElement(Zr,null),en=class extends p.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?p.createElement(Z.Provider,{value:this.props.routeContext},p.createElement(Ge.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function tn({routeContext:e,match:t,children:r}){let a=p.useContext(ie);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(Z.Provider,{value:e},r)}function rn(e,t=[],r=null,a=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let n=e,i=r?.errors;if(i!=null){let s=n.findIndex(u=>u.route.id&&i?.[u.route.id]!==void 0);L(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),n=n.slice(0,Math.min(n.length,s+1))}let o=!1,l=-1;if(r)for(let s=0;s<n.length;s++){let u=n[s];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(l=s),u.route.id){let{loaderData:c,errors:g}=r,m=u.route.loader&&!c.hasOwnProperty(u.route.id)&&(!g||g[u.route.id]===void 0);if(u.route.lazy||m){o=!0,l>=0?n=n.slice(0,l+1):n=[n[0]];break}}}return n.reduceRight((s,u,c)=>{let g,m=!1,x=null,f=null;r&&(g=i&&u.route.id?i[u.route.id]:void 0,x=u.route.errorElement||Qr,o&&(l<0&&c===0?(zt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,f=null):l===c&&(m=!0,f=u.route.hydrateFallbackElement||null)));let h=t.concat(n.slice(0,c+1)),v=()=>{let d;return g?d=x:m?d=f:u.route.Component?d=p.createElement(u.route.Component,null):u.route.element?d=u.route.element:d=s,p.createElement(tn,{match:u,routeContext:{outlet:s,matches:h,isDataRoute:r!=null},children:d})};return r&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?p.createElement(en,{location:r.location,revalidation:r.revalidation,component:x,error:g,children:v(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):v()},null)}function Je(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nn(e){let t=p.useContext(ie);return L(t,Je(e)),t}function an(e){let t=p.useContext(Ae);return L(t,Je(e)),t}function on(e){let t=p.useContext(Z);return L(t,Je(e)),t}function Ke(e){let t=on(e),r=t.matches[t.matches.length-1];return L(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function sn(){return Ke("useRouteId")}function ln(){let e=p.useContext(Ge),t=an("useRouteError"),r=Ke("useRouteError");return e!==void 0?e:t.errors?.[r]}function un(){let{router:e}=nn("useNavigate"),t=Ke("useNavigate"),r=p.useRef(!1);return Nt(()=>{r.current=!0}),p.useCallback(async(n,i={})=>{X(r.current,jt),r.current&&(typeof n=="number"?e.navigate(n):await e.navigate(n,{fromRouteId:t,...i}))},[e,t])}var yt={};function zt(e,t,r){!t&&!yt[e]&&(yt[e]=!0,X(!1,r))}p.memo(cn);function cn({routes:e,future:t,state:r}){return Ht(e,void 0,r,t)}function Ut(e){L(!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 fn({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:n,static:i=!1}){L(!ye(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=p.useMemo(()=>({basename:o,navigator:n,static:i,future:{}}),[o,n,i]);typeof r=="string"&&(r=ae(r));let{pathname:s="/",search:u="",hash:c="",state:g=null,key:m="default"}=r,x=p.useMemo(()=>{let f=K(s,o);return f==null?null:{location:{pathname:f,search:u,hash:c,state:g,key:m},navigationType:a}},[o,s,u,c,g,m,a]);return X(x!=null,`<Router basename="${o}"> is not able to match the URL "${s}${u}${c}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:p.createElement(G.Provider,{value:l},p.createElement(ge.Provider,{children:t,value:x}))}function dn({children:e,location:t}){return Kr(We(e),t)}function We(e,t=[]){let r=[];return p.Children.forEach(e,(a,n)=>{if(!p.isValidElement(a))return;let i=[...t,n];if(a.type===p.Fragment){r.push.apply(r,We(a.props.children,i));return}L(a.type===Ut,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),L(!a.props.index||!a.props.children,"An index route cannot have child routes.");let o={id:a.props.id||i.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(o.children=We(a.props.children,i)),r.push(o)}),r}var ke="get",Ee="application/x-www-form-urlencoded";function Le(e){return e!=null&&typeof e.tagName=="string"}function hn(e){return Le(e)&&e.tagName.toLowerCase()==="button"}function pn(e){return Le(e)&&e.tagName.toLowerCase()==="form"}function mn(e){return Le(e)&&e.tagName.toLowerCase()==="input"}function gn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yn(e,t){return e.button===0&&(!t||t==="_self")&&!gn(e)}var Re=null;function vn(){if(Re===null)try{new FormData(document.createElement("form"),0),Re=!1}catch{Re=!0}return Re}var xn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ze(e){return e!=null&&!xn.has(e)?(X(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ee}"`),null):e}function bn(e,t){let r,a,n,i,o;if(pn(e)){let l=e.getAttribute("action");a=l?K(l,t):null,r=e.getAttribute("method")||ke,n=ze(e.getAttribute("enctype"))||Ee,i=new FormData(e)}else if(hn(e)||mn(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(a=s?K(s,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||ke,n=ze(e.getAttribute("formenctype"))||ze(l.getAttribute("enctype"))||Ee,i=new FormData(l,e),!vn()){let{name:u,type:c,value:g}=e;if(c==="image"){let m=u?`${u}.`:"";i.append(`${m}x`,"0"),i.append(`${m}y`,"0")}else u&&i.append(u,g)}}else{if(Le(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ke,a=null,n=Ee,o=e}return i&&n==="text/plain"&&(o=i,i=void 0),{action:a,method:r.toLowerCase(),encType:n,formData:i,body:o}}function Ze(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function wn(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Rn(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 Cn(e,t,r){let a=await Promise.all(e.map(async n=>{let i=t.routes[n.route.id];if(i){let o=await wn(i,r);return o.links?o.links():[]}return[]}));return Pn(a.flat(1).filter(Rn).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function vt(e,t,r,a,n,i){let o=(s,u)=>r[u]?s.route.id!==r[u].route.id:!0,l=(s,u)=>r[u].pathname!==s.pathname||r[u].route.path?.endsWith("*")&&r[u].params["*"]!==s.params["*"];return i==="assets"?t.filter((s,u)=>o(s,u)||l(s,u)):i==="data"?t.filter((s,u)=>{let c=a.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(o(s,u)||l(s,u))return!0;if(s.route.shouldRevalidate){let g=s.route.shouldRevalidate({currentUrl:new URL(n.pathname+n.search+n.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function kn(e,t,{includeHydrateFallback:r}={}){return En(e.map(a=>{let n=t.routes[a.route.id];if(!n)return[];let i=[n.module];return n.clientActionModule&&(i=i.concat(n.clientActionModule)),n.clientLoaderModule&&(i=i.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(i=i.concat(n.hydrateFallbackModule)),n.imports&&(i=i.concat(n.imports)),i}).flat(1))}function En(e){return[...new Set(e)]}function Sn(e){let t={},r=Object.keys(e).sort();for(let a of r)t[a]=e[a];return t}function Pn(e,t){let r=new Set;return new Set(t),e.reduce((a,n)=>{let i=JSON.stringify(Sn(n));return r.has(i)||(r.add(i),a.push({key:i,link:n})),a},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Tn=new Set([100,101,204,205]);function In(e,t){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname="_root.data":t&&K(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Bt(){let e=p.useContext(ie);return Ze(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function On(){let e=p.useContext(Ae);return Ze(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Qe=p.createContext(void 0);Qe.displayName="FrameworkContext";function Wt(){let e=p.useContext(Qe);return Ze(e,"You must render this element inside a <HydratedRouter> element"),e}function An(e,t){let r=p.useContext(Qe),[a,n]=p.useState(!1),[i,o]=p.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:g}=t,m=p.useRef(null);p.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let h=d=>{d.forEach(w=>{o(w.isIntersecting)})},v=new IntersectionObserver(h,{threshold:.5});return m.current&&v.observe(m.current),()=>{v.disconnect()}}},[e]),p.useEffect(()=>{if(a){let h=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(h)}}},[a]);let x=()=>{n(!0)},f=()=>{n(!1),o(!1)};return r?e!=="intent"?[i,m,{}]:[i,m,{onFocus:ce(l,x),onBlur:ce(s,f),onMouseEnter:ce(u,x),onMouseLeave:ce(c,f),onTouchStart:ce(g,x)}]:[!1,m,{}]}function ce(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Ln({page:e,...t}){let{router:r}=Bt(),a=p.useMemo(()=>Ot(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?p.createElement(_n,{page:e,matches:a,...t}):null}function $n(e){let{manifest:t,routeModules:r}=Wt(),[a,n]=p.useState([]);return p.useEffect(()=>{let i=!1;return Cn(e,t,r).then(o=>{i||n(o)}),()=>{i=!0}},[e,t,r]),a}function _n({page:e,matches:t,...r}){let a=ee(),{manifest:n,routeModules:i}=Wt(),{basename:o}=Bt(),{loaderData:l,matches:s}=On(),u=p.useMemo(()=>vt(e,t,s,n,a,"data"),[e,t,s,n,a]),c=p.useMemo(()=>vt(e,t,s,n,a,"assets"),[e,t,s,n,a]),g=p.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let f=new Set,h=!1;if(t.forEach(d=>{let w=n.routes[d.route.id];!w||!w.hasLoader||(!u.some(R=>R.route.id===d.route.id)&&d.route.id in l&&i[d.route.id]?.shouldRevalidate||w.hasClientLoader?h=!0:f.add(d.route.id))}),f.size===0)return[];let v=In(e,o);return h&&f.size>0&&v.searchParams.set("_routes",t.filter(d=>f.has(d.route.id)).map(d=>d.route.id).join(",")),[v.pathname+v.search]},[o,l,a,n,u,t,e,i]),m=p.useMemo(()=>kn(c,n),[c,n]),x=$n(c);return p.createElement(p.Fragment,null,g.map(f=>p.createElement("link",{key:f,rel:"prefetch",as:"fetch",href:f,...r})),m.map(f=>p.createElement("link",{key:f,rel:"modulepreload",href:f,...r})),x.map(({key:f,link:h})=>p.createElement("link",{key:f,...h})))}function Dn(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Vt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Vt&&(window.__reactRouterVersion="7.6.3")}catch{}function Fn({basename:e,children:t,window:r}){let a=p.useRef();a.current==null&&(a.current=Rr({window:r,v5Compat:!0}));let n=a.current,[i,o]=p.useState({action:n.action,location:n.location}),l=p.useCallback(s=>{p.startTransition(()=>o(s))},[o]);return p.useLayoutEffect(()=>n.listen(l),[n,l]),p.createElement(fn,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n})}var Yt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qt=p.forwardRef(function({onClick:t,discover:r="render",prefetch:a="none",relative:n,reloadDocument:i,replace:o,state:l,target:s,to:u,preventScrollReset:c,viewTransition:g,...m},x){let{basename:f}=p.useContext(G),h=typeof u=="string"&&Yt.test(u),v,d=!1;if(typeof u=="string"&&h&&(v=u,Vt))try{let _=new URL(window.location.href),M=u.startsWith("//")?new URL(_.protocol+u):new URL(u),B=K(M.pathname,f);M.origin===_.origin&&B!=null?u=B+M.search+M.hash:d=!0}catch{X(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let w=Gr(u,{relative:n}),[R,T,I]=An(a,m),O=Hn(u,{replace:o,state:l,target:s,preventScrollReset:c,relative:n,viewTransition:g});function C(_){t&&t(_),_.defaultPrevented||O(_)}let z=p.createElement("a",{...m,...I,href:v||w,onClick:d||i?t:C,ref:Dn(x,T),target:s,"data-discover":!h&&r==="render"?"true":void 0});return R&&!h?p.createElement(p.Fragment,null,z,p.createElement(Ln,{page:w})):z});qt.displayName="Link";var jn=p.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:a="",end:n=!1,style:i,to:o,viewTransition:l,children:s,...u},c){let g=ve(o,{relative:u.relative}),m=ee(),x=p.useContext(Ae),{navigator:f,basename:h}=p.useContext(G),v=x!=null&&Vn(g)&&l===!0,d=f.encodeLocation?f.encodeLocation(g).pathname:g.pathname,w=m.pathname,R=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(w=w.toLowerCase(),R=R?R.toLowerCase():null,d=d.toLowerCase()),R&&h&&(R=K(R,h)||R);const T=d!=="/"&&d.endsWith("/")?d.length-1:d.length;let I=w===d||!n&&w.startsWith(d)&&w.charAt(T)==="/",O=R!=null&&(R===d||!n&&R.startsWith(d)&&R.charAt(d.length)==="/"),C={isActive:I,isPending:O,isTransitioning:v},z=I?t:void 0,_;typeof a=="function"?_=a(C):_=[a,I?"active":null,O?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let M=typeof i=="function"?i(C):i;return p.createElement(qt,{...u,"aria-current":z,className:_,ref:c,style:M,to:o,viewTransition:l},typeof s=="function"?s(C):s)});jn.displayName="NavLink";var Nn=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:n,state:i,method:o=ke,action:l,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:g,...m},x)=>{let f=Bn(),h=Wn(l,{relative:u}),v=o.toLowerCase()==="get"?"get":"post",d=typeof l=="string"&&Yt.test(l),w=R=>{if(s&&s(R),R.defaultPrevented)return;R.preventDefault();let T=R.nativeEvent.submitter,I=T?.getAttribute("formmethod")||o;f(T||R.currentTarget,{fetcherKey:t,method:I,navigate:r,replace:n,state:i,relative:u,preventScrollReset:c,viewTransition:g})};return p.createElement("form",{ref:x,method:v,action:h,onSubmit:a?s:w,...m,"data-discover":!d&&e==="render"?"true":void 0})});Nn.displayName="Form";function Mn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Xt(e){let t=p.useContext(ie);return L(t,Mn(e)),t}function Hn(e,{target:t,replace:r,state:a,preventScrollReset:n,relative:i,viewTransition:o}={}){let l=Mt(),s=ee(),u=ve(e,{relative:i});return p.useCallback(c=>{if(yn(c,t)){c.preventDefault();let g=r!==void 0?r:de(s)===de(u);l(e,{replace:g,state:a,preventScrollReset:n,relative:i,viewTransition:o})}},[s,l,u,r,a,t,e,n,i,o])}var zn=0,Un=()=>`__${String(++zn)}__`;function Bn(){let{router:e}=Xt("useSubmit"),{basename:t}=p.useContext(G),r=sn();return p.useCallback(async(a,n={})=>{let{action:i,method:o,encType:l,formData:s,body:u}=bn(a,t);if(n.navigate===!1){let c=n.fetcherKey||Un();await e.fetch(c,r,n.action||i,{preventScrollReset:n.preventScrollReset,formData:s,body:u,formMethod:n.method||o,formEncType:n.encType||l,flushSync:n.flushSync})}else await e.navigate(n.action||i,{preventScrollReset:n.preventScrollReset,formData:s,body:u,formMethod:n.method||o,formEncType:n.encType||l,replace:n.replace,state:n.state,fromRouteId:r,flushSync:n.flushSync,viewTransition:n.viewTransition})},[e,t,r])}function Wn(e,{relative:t}={}){let{basename:r}=p.useContext(G),a=p.useContext(Z);L(a,"useFormAction must be used inside a RouteContext");let[n]=a.matches.slice(-1),i={...ve(e||".",{relative:t})},o=ee();if(e==null){i.search=o.search;let l=new URLSearchParams(i.search),s=l.getAll("index");if(s.some(c=>c==="")){l.delete("index"),s.filter(g=>g).forEach(g=>l.append("index",g));let c=l.toString();i.search=c?`?${c}`:""}}return(!e||e===".")&&n.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:J([r,i.pathname])),de(i)}function Vn(e,t={}){let r=p.useContext(Ft);L(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Xt("useViewTransitionState"),n=ve(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=K(r.currentLocation.pathname,a)||r.currentLocation.pathname,o=K(r.nextLocation.pathname,a)||r.nextLocation.pathname;return Ie(n.pathname,o)!=null||Ie(n.pathname,i)!=null}[...Tn];const Gt=b.createContext({history:[],addToHistory:()=>{},popFromHistory:()=>"",replaceHistory:()=>{}}),Yn=({routes:e,children:t})=>{const r=b.useRef(["/"]),[a,n]=b.useState(["/"]),i=b.useCallback(c=>{r.current=c,n(c)},[]),o=c=>{i([...r.current,c])},l=c=>{let g="",m=[];return r.current.length===0?"/":(r.current.length<=c?(g=r.current[0],m=[g]):(m=r.current.slice(0,r.current.length-c),g=m[m.length-1]),i(m),g)},s=c=>{i(c)},u=e.map(c=>E.jsx(Ut,{path:c.path,element:c.render}));return E.jsx(Gt.Provider,{value:{history:a,addToHistory:o,popFromHistory:l,replaceHistory:s},children:E.jsxs(Fn,{children:[t,E.jsx(dn,{children:u})]})})},qn=()=>{const e=Mt(),t=ee(),r=b.useContext(Gt),a=b.useCallback((o,l=!0)=>{o!==t.pathname&&e(o,{replace:!0}),l&&r.addToHistory(o)},[t.pathname,e,r]),n=b.useCallback(o=>{const l=o||1,s=r.popFromHistory(l);a(s,!1)},[a,r]),i=b.useCallback(o=>{r.replaceHistory(o)},[r]);return{currentPath:t.pathname,history:r.history,goBack:n,goTo:a,replaceHistory:i}},Jt=b.createContext({visibleItems:[],isItemVisible:()=>!1,showItem:()=>{},hideItem:()=>{}}),Xn=({children:e})=>{const t=b.useRef([]),[r,a]=b.useState([]),n=b.useCallback(s=>{t.current=s,a(s)},[]),i=b.useCallback(s=>t.current.some(u=>u===s),[]),o=b.useCallback(s=>{i(s)||n([...t.current,s])},[i,n]),l=b.useCallback(s=>{i(s)&&n(t.current.filter(c=>c!==s))},[i,n]);return E.jsx(Jt.Provider,{value:{visibleItems:r,isItemVisible:i,showItem:o,hideItem:l},children:e})},xe=()=>{const e=b.useContext(Jt),t=n=>e.visibleItems.some(i=>i===n),r=n=>{e.showItem(n)},a=n=>{e.hideItem(n)};return{visibleItems:e.visibleItems,isItemVisible:t,showItem:r,hideItem:a}},Gn=({id:e,onCloseDrawer:t,drawerCloseOffset:r=15})=>{const{isItemVisible:a}=xe(),[n,i]=b.useState({isDragging:!1}),o=b.useRef(null),l=b.useRef(null),s=b.useRef(null),[u,c]=b.useState(0),g=f=>{i(f)},m=f=>{i(f),c(0)};return Tt({ref:s,onDrag:f=>{i(f);const h=l.current?.clientHeight||0;f.distanceY&&(c(f.distanceY<0?0:-f.distanceY),f.distanceY>=h-r&&(t?.(),m(f)))},onDragEnd:m,onDragStart:g}),{isVisible:a(e),drawerParentRef:o,drawerRef:l,drawerBottomDistance:u,handleRef:s}},Jn=e=>{const{children:t,backgroundStyles:r,contentStyles:a,handle:n}=e,{isVisible:i,drawerParentRef:o,drawerRef:l,handleRef:s,drawerBottomDistance:u}=Gn(e);return E.jsx(E.Fragment,{children:i&&E.jsx("div",{ref:o,style:{width:"100%",height:"100%",minHeight:"100vh",left:0,top:0,background:"#00000068",position:"fixed",zIndex:1e3,display:"flex",flexDirection:"column",touchAction:"none",...r},children:E.jsxs("div",{ref:l,style:{width:"100%",height:"fit-content",minHeight:"80px",maxHeight:"90%",background:"#ffffff",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"24px",zIndex:1001,position:"absolute",bottom:`${u}px`,...a},onClick:c=>{c.stopPropagation()},children:[E.jsx("div",{ref:s,style:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0px",height:"24px",width:"100%",cursor:"pointer",...n?.styles},children:n?.render}),t]})})})},Kn=({onSubmit:e,fields:t})=>{const r=b.useRef(null),a=b.useCallback(o=>{var l=Object.keys(o.currentTarget.elements),s=Object.values(o.currentTarget.elements),u=[];for(let c=0;c<l.length;c++){const g=l[c];if(t.findIndex(x=>x.name===g)===-1)continue;const m=s[c].value;u.push({name:g,value:m})}return u},[e]),n=b.useCallback(o=>{o.preventDefault();const l=a(o);e?.(l)},[e]);return{ref:r,submitForm:o=>{o.preventDefault(),o.stopPropagation(),r.current&&r.current.requestSubmit()},handleFormSubmission:n}},Zn=e=>{const{fields:t,styles:r,submitButton:a}=e,{ref:n,handleFormSubmission:i,submitForm:o}=Kn(e),l=b.useCallback(()=>t.map(s=>({...s.content,key:s.name})),[t]);return E.jsxs("form",{ref:n,onSubmit:i,style:{width:"100%",display:"flex",flexDirection:"column",gap:"8px",flex:1,...r},children:[l(),E.jsx("div",{onClick:o,style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",...a.styles},children:a.content})]})},Qn=({src:e,alt:t="",onClick:r,styles:a})=>E.jsx("img",{src:e,alt:t,style:{overflow:"hidden",position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",objectFit:"cover",...a},onClick:()=>r?.()});function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ve.apply(null,arguments)}function ea(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ta(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ra=function(){function e(r){var a=this;this._insertTag=function(n){var i;a.tags.length===0?a.insertionPoint?i=a.insertionPoint.nextSibling:a.prepend?i=a.container.firstChild:i=a.before:i=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(n,i),a.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ta(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=ea(n);try{i.insertRule(a,i.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){var n;return(n=a.parentNode)==null?void 0:n.removeChild(a)}),this.tags=[],this.ctr=0},e}(),N="-ms-",Oe="-moz-",S="-webkit-",Kt="comm",et="rule",tt="decl",na="@import",Zt="@keyframes",aa="@layer",ia=Math.abs,$e=String.fromCharCode,oa=Object.assign;function sa(e,t){return D(e,0)^45?(((t<<2^D(e,0))<<2^D(e,1))<<2^D(e,2))<<2^D(e,3):0}function Qt(e){return e.trim()}function la(e,t){return(e=t.exec(e))?e[0]:e}function P(e,t,r){return e.replace(t,r)}function Ye(e,t){return e.indexOf(t)}function D(e,t){return e.charCodeAt(t)|0}function he(e,t,r){return e.slice(t,r)}function V(e){return e.length}function rt(e){return e.length}function Ce(e,t){return t.push(e),e}function ua(e,t){return e.map(t).join("")}var _e=1,ne=1,er=0,H=0,$=0,oe="";function De(e,t,r,a,n,i,o){return{value:e,root:t,parent:r,type:a,props:n,children:i,line:_e,column:ne,length:o,return:""}}function fe(e,t){return oa(De("",null,null,"",null,null,0),e,{length:-e.length},t)}function ca(){return $}function fa(){return $=H>0?D(oe,--H):0,ne--,$===10&&(ne=1,_e--),$}function U(){return $=H<er?D(oe,H++):0,ne++,$===10&&(ne=1,_e++),$}function q(){return D(oe,H)}function Se(){return H}function be(e,t){return he(oe,e,t)}function pe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tr(e){return _e=ne=1,er=V(oe=e),H=0,[]}function rr(e){return oe="",e}function Pe(e){return Qt(be(H-1,qe(e===91?e+2:e===40?e+1:e)))}function da(e){for(;($=q())&&$<33;)U();return pe(e)>2||pe($)>3?"":" "}function ha(e,t){for(;--t&&U()&&!($<48||$>102||$>57&&$<65||$>70&&$<97););return be(e,Se()+(t<6&&q()==32&&U()==32))}function qe(e){for(;U();)switch($){case e:return H;case 34:case 39:e!==34&&e!==39&&qe($);break;case 40:e===41&&qe(e);break;case 92:U();break}return H}function pa(e,t){for(;U()&&e+$!==57;)if(e+$===84&&q()===47)break;return"/*"+be(t,H-1)+"*"+$e(e===47?e:U())}function ma(e){for(;!pe(q());)U();return be(e,H)}function ga(e){return rr(Te("",null,null,null,[""],e=tr(e),0,[0],e))}function Te(e,t,r,a,n,i,o,l,s){for(var u=0,c=0,g=o,m=0,x=0,f=0,h=1,v=1,d=1,w=0,R="",T=n,I=i,O=a,C=R;v;)switch(f=w,w=U()){case 40:if(f!=108&&D(C,g-1)==58){Ye(C+=P(Pe(w),"&","&\f"),"&\f")!=-1&&(d=-1);break}case 34:case 39:case 91:C+=Pe(w);break;case 9:case 10:case 13:case 32:C+=da(f);break;case 92:C+=ha(Se()-1,7);continue;case 47:switch(q()){case 42:case 47:Ce(ya(pa(U(),Se()),t,r),s);break;default:C+="/"}break;case 123*h:l[u++]=V(C)*d;case 125*h:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+c:d==-1&&(C=P(C,/\f/g,"")),x>0&&V(C)-g&&Ce(x>32?bt(C+";",a,r,g-1):bt(P(C," ","")+";",a,r,g-2),s);break;case 59:C+=";";default:if(Ce(O=xt(C,t,r,u,c,n,l,R,T=[],I=[],g),i),w===123)if(c===0)Te(C,t,O,O,T,i,g,l,I);else switch(m===99&&D(C,3)===110?100:m){case 100:case 108:case 109:case 115:Te(e,O,O,a&&Ce(xt(e,O,O,0,0,n,l,R,n,T=[],g),I),n,I,g,l,a?T:I);break;default:Te(C,O,O,O,[""],I,0,l,I)}}u=c=x=0,h=d=1,R=C="",g=o;break;case 58:g=1+V(C),x=f;default:if(h<1){if(w==123)--h;else if(w==125&&h++==0&&fa()==125)continue}switch(C+=$e(w),w*h){case 38:d=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(V(C)-1)*d,d=1;break;case 64:q()===45&&(C+=Pe(U())),m=q(),c=g=V(R=C+=ma(Se())),w++;break;case 45:f===45&&V(C)==2&&(h=0)}}return i}function xt(e,t,r,a,n,i,o,l,s,u,c){for(var g=n-1,m=n===0?i:[""],x=rt(m),f=0,h=0,v=0;f<a;++f)for(var d=0,w=he(e,g+1,g=ia(h=o[f])),R=e;d<x;++d)(R=Qt(h>0?m[d]+" "+w:P(w,/&\f/g,m[d])))&&(s[v++]=R);return De(e,t,r,n===0?et:l,s,u,c)}function ya(e,t,r){return De(e,t,r,Kt,$e(ca()),he(e,2,-2),0)}function bt(e,t,r,a){return De(e,t,r,tt,he(e,0,a),he(e,a+1,-1),a)}function re(e,t){for(var r="",a=rt(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function va(e,t,r,a){switch(e.type){case aa:if(e.children.length)break;case na:case tt:return e.return=e.return||e.value;case Kt:return"";case Zt:return e.return=e.value+"{"+re(e.children,a)+"}";case et:e.value=e.props.join(",")}return V(r=re(e.children,a))?e.return=e.value+"{"+r+"}":""}function xa(e){var t=rt(e);return function(r,a,n,i){for(var o="",l=0;l<t;l++)o+=e[l](r,a,n,i)||"";return o}}function ba(e){return function(t){t.root||(t=t.return)&&e(t)}}function nr(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var wa=function(t,r,a){for(var n=0,i=0;n=i,i=q(),n===38&&i===12&&(r[a]=1),!pe(i);)U();return be(t,H)},Ra=function(t,r){var a=-1,n=44;do switch(pe(n)){case 0:n===38&&q()===12&&(r[a]=1),t[a]+=wa(H-1,r,a);break;case 2:t[a]+=Pe(n);break;case 4:if(n===44){t[++a]=q()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=$e(n)}while(n=U());return t},Ca=function(t,r){return rr(Ra(tr(t),r))},wt=new WeakMap,ka=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,n=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!wt.get(a))&&!n){wt.set(t,!0);for(var i=[],o=Ca(r,i),l=a.props,s=0,u=0;s<o.length;s++)for(var c=0;c<l.length;c++,u++)t.props[u]=i[s]?o[s].replace(/&\f/g,l[c]):l[c]+" "+o[s]}}},Ea=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function ar(e,t){switch(sa(e,t)){case 5103:return S+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return S+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return S+e+Oe+e+N+e+e;case 6828:case 4268:return S+e+N+e+e;case 6165:return S+e+N+"flex-"+e+e;case 5187:return S+e+P(e,/(\w+).+(:[^]+)/,S+"box-$1$2"+N+"flex-$1$2")+e;case 5443:return S+e+N+"flex-item-"+P(e,/flex-|-self/,"")+e;case 4675:return S+e+N+"flex-line-pack"+P(e,/align-content|flex-|-self/,"")+e;case 5548:return S+e+N+P(e,"shrink","negative")+e;case 5292:return S+e+N+P(e,"basis","preferred-size")+e;case 6060:return S+"box-"+P(e,"-grow","")+S+e+N+P(e,"grow","positive")+e;case 4554:return S+P(e,/([^-])(transform)/g,"$1"+S+"$2")+e;case 6187:return P(P(P(e,/(zoom-|grab)/,S+"$1"),/(image-set)/,S+"$1"),e,"")+e;case 5495:case 3959:return P(e,/(image-set\([^]*)/,S+"$1$`$1");case 4968:return P(P(e,/(.+:)(flex-)?(.*)/,S+"box-pack:$3"+N+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+S+e+e;case 4095:case 3583:case 4068:case 2532:return P(e,/(.+)-inline(.+)/,S+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(V(e)-1-t>6)switch(D(e,t+1)){case 109:if(D(e,t+4)!==45)break;case 102:return P(e,/(.+:)(.+)-([^]+)/,"$1"+S+"$2-$3$1"+Oe+(D(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ye(e,"stretch")?ar(P(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(D(e,t+1)!==115)break;case 6444:switch(D(e,V(e)-3-(~Ye(e,"!important")&&10))){case 107:return P(e,":",":"+S)+e;case 101:return P(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+S+(D(e,14)===45?"inline-":"")+"box$3$1"+S+"$2$3$1"+N+"$2box$3")+e}break;case 5936:switch(D(e,t+11)){case 114:return S+e+N+P(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return S+e+N+P(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return S+e+N+P(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return S+e+N+e+e}return e}var Sa=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case tt:t.return=ar(t.value,t.length);break;case Zt:return re([fe(t,{value:P(t.value,"@","@"+S)})],n);case et:if(t.length)return ua(t.props,function(i){switch(la(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return re([fe(t,{props:[P(i,/:(read-\w+)/,":"+Oe+"$1")]})],n);case"::placeholder":return re([fe(t,{props:[P(i,/:(plac\w+)/,":"+S+"input-$1")]}),fe(t,{props:[P(i,/:(plac\w+)/,":"+Oe+"$1")]}),fe(t,{props:[P(i,/:(plac\w+)/,N+"input-$1")]})],n)}return""})}},Pa=[Sa],Ta=function(t){var r=t.key;if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(h){var v=h.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=t.stylisPlugins||Pa,i={},o,l=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),d=1;d<v.length;d++)i[v[d]]=!0;l.push(h)});var s,u=[ka,Ea];{var c,g=[va,ba(function(h){c.insert(h)})],m=xa(u.concat(n,g)),x=function(v){return re(ga(v),m)};s=function(v,d,w,R){c=w,x(v?v+"{"+d.styles+"}":d.styles),R&&(f.inserted[d.name]=!0)}}var f={key:r,sheet:new ra({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(l),f},Ia=!0;function Oa(e,t,r){var a="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(a+=n+" ")}),a}var ir=function(t,r,a){var n=t.key+"-"+r.name;(a===!1||Ia===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},Aa=function(t,r,a){ir(t,r,a);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+n:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function La(e){for(var t=0,r,a=0,n=e.length;n>=4;++a,n-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var $a={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_a=/[A-Z]|^ms/g,Da=/_EMO_([^_]+?)_([^]*?)_EMO_/g,or=function(t){return t.charCodeAt(1)===45},Rt=function(t){return t!=null&&typeof t!="boolean"},Ue=nr(function(e){return or(e)?e:e.replace(_a,"-$&").toLowerCase()}),Ct=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Da,function(a,n,i){return Y={name:n,styles:i,next:Y},n})}return $a[t]!==1&&!or(t)&&typeof r=="number"&&r!==0?r+"px":r};function me(e,t,r){if(r==null)return"";var a=r;if(a.__emotion_styles!==void 0)return a;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return Y={name:n.name,styles:n.styles,next:Y},n.name;var i=r;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)Y={name:o.name,styles:o.styles,next:Y},o=o.next;var l=i.styles+";";return l}return Fa(e,t,r)}case"function":{if(e!==void 0){var s=Y,u=r(e);return Y=s,me(e,t,u)}break}}var c=r;if(t==null)return c;var g=t[c];return g!==void 0?g:c}function Fa(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=me(e,t,r[n])+";";else for(var i in r){var o=r[i];if(typeof o!="object"){var l=o;t!=null&&t[l]!==void 0?a+=i+"{"+t[l]+"}":Rt(l)&&(a+=Ue(i)+":"+Ct(i,l)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)Rt(o[s])&&(a+=Ue(i)+":"+Ct(i,o[s])+";");else{var u=me(e,t,o);switch(i){case"animation":case"animationName":{a+=Ue(i)+":"+u+";";break}default:a+=i+"{"+u+"}"}}}return a}var kt=/label:\s*([^\s;{]+)\s*(;|$)/g,Y;function ja(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,n="";Y=void 0;var i=e[0];if(i==null||i.raw===void 0)a=!1,n+=me(r,t,i);else{var o=i;n+=o[0]}for(var l=1;l<e.length;l++)if(n+=me(r,t,e[l]),a){var s=i;n+=s[l]}kt.lastIndex=0;for(var u="",c;(c=kt.exec(n))!==null;)u+="-"+c[1];var g=La(n)+u;return{name:g,styles:n,next:Y}}var Na=function(t){return t()},Ma=p.useInsertionEffect?p.useInsertionEffect:!1,Ha=Ma||Na,sr=p.createContext(typeof HTMLElement<"u"?Ta({key:"css"}):null);sr.Provider;var za=function(t){return b.forwardRef(function(r,a){var n=b.useContext(sr);return t(r,n,a)})},Ua=p.createContext({}),Ba=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Wa=nr(function(e){return Ba.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Va=Wa,Ya=function(t){return t!=="theme"},Et=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Va:Ya},St=function(t,r,a){var n;if(r){var i=r.shouldForwardProp;n=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof n!="function"&&a&&(n=t.__emotion_forwardProp),n},qa=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return ir(r,a,n),Ha(function(){return Aa(r,a,n)}),null},Xa=function e(t,r){var a=t.__emotion_real===t,n=a&&t.__emotion_base||t,i,o;r!==void 0&&(i=r.label,o=r.target);var l=St(t,r,a),s=l||Et(n),u=!s("as");return function(){var c=arguments,g=a&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&g.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)g.push.apply(g,c);else{var m=c[0];g.push(m[0]);for(var x=c.length,f=1;f<x;f++)g.push(c[f],m[f])}var h=za(function(v,d,w){var R=u&&v.as||n,T="",I=[],O=v;if(v.theme==null){O={};for(var C in v)O[C]=v[C];O.theme=p.useContext(Ua)}typeof v.className=="string"?T=Oa(d.registered,I,v.className):v.className!=null&&(T=v.className+" ");var z=ja(g.concat(I),d.registered,O);T+=d.key+"-"+z.name,o!==void 0&&(T+=" "+o);var _=u&&l===void 0?Et(R):s,M={};for(var B in v)u&&B==="as"||_(B)&&(M[B]=v[B]);return M.className=T,w&&(M.ref=w),p.createElement(p.Fragment,null,p.createElement(qa,{cache:d,serialized:z,isStringTag:typeof R=="string"}),p.createElement(R,M))});return h.displayName=i!==void 0?i:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=n,h.__emotion_styles=g,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(v,d){var w=e(v,Ve({},r,d,{shouldForwardProp:St(h,d,!0)}));return w.apply(void 0,g)},h}},Ga=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Xe=Xa.bind(null);Ga.forEach(function(e){Xe[e]=Xe(e)});const Ja=Xe.div`
33
+ Please change the parent <Route path="${d}"> to <Route path="${d==="/"?"*":`${d}/*`}">.`)}let g=ee(),m;if(t){let d=typeof t=="string"?ae(t):t;$(u==="/"||d.pathname?.startsWith(u),`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 "${u}" but pathname "${d.pathname}" was given in the \`location\` prop.`),m=d}else m=g;let x=m.pathname||"/",f=x;if(u!=="/"){let d=u.replace(/^\//,"").split("/");f="/"+x.replace(/^\//,"").split("/").slice(d.length).join("/")}let h=Ot(e,{pathname:f});X(c||h!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),X(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.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 v=rn(h&&h.map(d=>Object.assign({},d,{params:Object.assign({},l,d.params),pathname:J([u,n.encodeLocation?n.encodeLocation(d.pathname).pathname:d.pathname]),pathnameBase:d.pathnameBase==="/"?u:J([u,n.encodeLocation?n.encodeLocation(d.pathnameBase).pathname:d.pathnameBase])})),i,r,a);return t&&v?p.createElement(ge.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},v):v}function Zr(){let e=ln(),t=Vr(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:i},"ErrorBoundary")," or"," ",p.createElement("code",{style:i},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:n},r):null,o)}var Qr=p.createElement(Zr,null),en=class extends p.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?p.createElement(Z.Provider,{value:this.props.routeContext},p.createElement(Ge.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function tn({routeContext:e,match:t,children:r}){let a=p.useContext(ie);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(Z.Provider,{value:e},r)}function rn(e,t=[],r=null,a=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let n=e,i=r?.errors;if(i!=null){let s=n.findIndex(u=>u.route.id&&i?.[u.route.id]!==void 0);$(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),n=n.slice(0,Math.min(n.length,s+1))}let o=!1,l=-1;if(r)for(let s=0;s<n.length;s++){let u=n[s];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(l=s),u.route.id){let{loaderData:c,errors:g}=r,m=u.route.loader&&!c.hasOwnProperty(u.route.id)&&(!g||g[u.route.id]===void 0);if(u.route.lazy||m){o=!0,l>=0?n=n.slice(0,l+1):n=[n[0]];break}}}return n.reduceRight((s,u,c)=>{let g,m=!1,x=null,f=null;r&&(g=i&&u.route.id?i[u.route.id]:void 0,x=u.route.errorElement||Qr,o&&(l<0&&c===0?(zt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,f=null):l===c&&(m=!0,f=u.route.hydrateFallbackElement||null)));let h=t.concat(n.slice(0,c+1)),v=()=>{let d;return g?d=x:m?d=f:u.route.Component?d=p.createElement(u.route.Component,null):u.route.element?d=u.route.element:d=s,p.createElement(tn,{match:u,routeContext:{outlet:s,matches:h,isDataRoute:r!=null},children:d})};return r&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?p.createElement(en,{location:r.location,revalidation:r.revalidation,component:x,error:g,children:v(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):v()},null)}function Je(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nn(e){let t=p.useContext(ie);return $(t,Je(e)),t}function an(e){let t=p.useContext(Ae);return $(t,Je(e)),t}function on(e){let t=p.useContext(Z);return $(t,Je(e)),t}function Ke(e){let t=on(e),r=t.matches[t.matches.length-1];return $(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function sn(){return Ke("useRouteId")}function ln(){let e=p.useContext(Ge),t=an("useRouteError"),r=Ke("useRouteError");return e!==void 0?e:t.errors?.[r]}function un(){let{router:e}=nn("useNavigate"),t=Ke("useNavigate"),r=p.useRef(!1);return Nt(()=>{r.current=!0}),p.useCallback(async(n,i={})=>{X(r.current,jt),r.current&&(typeof n=="number"?e.navigate(n):await e.navigate(n,{fromRouteId:t,...i}))},[e,t])}var yt={};function zt(e,t,r){!t&&!yt[e]&&(yt[e]=!0,X(!1,r))}p.memo(cn);function cn({routes:e,future:t,state:r}){return Ht(e,void 0,r,t)}function Ut(e){$(!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 fn({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:n,static:i=!1}){$(!ye(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=p.useMemo(()=>({basename:o,navigator:n,static:i,future:{}}),[o,n,i]);typeof r=="string"&&(r=ae(r));let{pathname:s="/",search:u="",hash:c="",state:g=null,key:m="default"}=r,x=p.useMemo(()=>{let f=K(s,o);return f==null?null:{location:{pathname:f,search:u,hash:c,state:g,key:m},navigationType:a}},[o,s,u,c,g,m,a]);return X(x!=null,`<Router basename="${o}"> is not able to match the URL "${s}${u}${c}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:p.createElement(G.Provider,{value:l},p.createElement(ge.Provider,{children:t,value:x}))}function dn({children:e,location:t}){return Kr(We(e),t)}function We(e,t=[]){let r=[];return p.Children.forEach(e,(a,n)=>{if(!p.isValidElement(a))return;let i=[...t,n];if(a.type===p.Fragment){r.push.apply(r,We(a.props.children,i));return}$(a.type===Ut,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),$(!a.props.index||!a.props.children,"An index route cannot have child routes.");let o={id:a.props.id||i.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(o.children=We(a.props.children,i)),r.push(o)}),r}var ke="get",Ee="application/x-www-form-urlencoded";function $e(e){return e!=null&&typeof e.tagName=="string"}function hn(e){return $e(e)&&e.tagName.toLowerCase()==="button"}function pn(e){return $e(e)&&e.tagName.toLowerCase()==="form"}function mn(e){return $e(e)&&e.tagName.toLowerCase()==="input"}function gn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yn(e,t){return e.button===0&&(!t||t==="_self")&&!gn(e)}var Re=null;function vn(){if(Re===null)try{new FormData(document.createElement("form"),0),Re=!1}catch{Re=!0}return Re}var xn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ze(e){return e!=null&&!xn.has(e)?(X(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ee}"`),null):e}function bn(e,t){let r,a,n,i,o;if(pn(e)){let l=e.getAttribute("action");a=l?K(l,t):null,r=e.getAttribute("method")||ke,n=ze(e.getAttribute("enctype"))||Ee,i=new FormData(e)}else if(hn(e)||mn(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(a=s?K(s,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||ke,n=ze(e.getAttribute("formenctype"))||ze(l.getAttribute("enctype"))||Ee,i=new FormData(l,e),!vn()){let{name:u,type:c,value:g}=e;if(c==="image"){let m=u?`${u}.`:"";i.append(`${m}x`,"0"),i.append(`${m}y`,"0")}else u&&i.append(u,g)}}else{if($e(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ke,a=null,n=Ee,o=e}return i&&n==="text/plain"&&(o=i,i=void 0),{action:a,method:r.toLowerCase(),encType:n,formData:i,body:o}}function Ze(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function wn(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Rn(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 Cn(e,t,r){let a=await Promise.all(e.map(async n=>{let i=t.routes[n.route.id];if(i){let o=await wn(i,r);return o.links?o.links():[]}return[]}));return Pn(a.flat(1).filter(Rn).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function vt(e,t,r,a,n,i){let o=(s,u)=>r[u]?s.route.id!==r[u].route.id:!0,l=(s,u)=>r[u].pathname!==s.pathname||r[u].route.path?.endsWith("*")&&r[u].params["*"]!==s.params["*"];return i==="assets"?t.filter((s,u)=>o(s,u)||l(s,u)):i==="data"?t.filter((s,u)=>{let c=a.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(o(s,u)||l(s,u))return!0;if(s.route.shouldRevalidate){let g=s.route.shouldRevalidate({currentUrl:new URL(n.pathname+n.search+n.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function kn(e,t,{includeHydrateFallback:r}={}){return En(e.map(a=>{let n=t.routes[a.route.id];if(!n)return[];let i=[n.module];return n.clientActionModule&&(i=i.concat(n.clientActionModule)),n.clientLoaderModule&&(i=i.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(i=i.concat(n.hydrateFallbackModule)),n.imports&&(i=i.concat(n.imports)),i}).flat(1))}function En(e){return[...new Set(e)]}function Sn(e){let t={},r=Object.keys(e).sort();for(let a of r)t[a]=e[a];return t}function Pn(e,t){let r=new Set;return new Set(t),e.reduce((a,n)=>{let i=JSON.stringify(Sn(n));return r.has(i)||(r.add(i),a.push({key:i,link:n})),a},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Tn=new Set([100,101,204,205]);function In(e,t){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname="_root.data":t&&K(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Bt(){let e=p.useContext(ie);return Ze(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function On(){let e=p.useContext(Ae);return Ze(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Qe=p.createContext(void 0);Qe.displayName="FrameworkContext";function Wt(){let e=p.useContext(Qe);return Ze(e,"You must render this element inside a <HydratedRouter> element"),e}function An(e,t){let r=p.useContext(Qe),[a,n]=p.useState(!1),[i,o]=p.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:g}=t,m=p.useRef(null);p.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let h=d=>{d.forEach(w=>{o(w.isIntersecting)})},v=new IntersectionObserver(h,{threshold:.5});return m.current&&v.observe(m.current),()=>{v.disconnect()}}},[e]),p.useEffect(()=>{if(a){let h=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(h)}}},[a]);let x=()=>{n(!0)},f=()=>{n(!1),o(!1)};return r?e!=="intent"?[i,m,{}]:[i,m,{onFocus:ce(l,x),onBlur:ce(s,f),onMouseEnter:ce(u,x),onMouseLeave:ce(c,f),onTouchStart:ce(g,x)}]:[!1,m,{}]}function ce(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function $n({page:e,...t}){let{router:r}=Bt(),a=p.useMemo(()=>Ot(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?p.createElement(_n,{page:e,matches:a,...t}):null}function Ln(e){let{manifest:t,routeModules:r}=Wt(),[a,n]=p.useState([]);return p.useEffect(()=>{let i=!1;return Cn(e,t,r).then(o=>{i||n(o)}),()=>{i=!0}},[e,t,r]),a}function _n({page:e,matches:t,...r}){let a=ee(),{manifest:n,routeModules:i}=Wt(),{basename:o}=Bt(),{loaderData:l,matches:s}=On(),u=p.useMemo(()=>vt(e,t,s,n,a,"data"),[e,t,s,n,a]),c=p.useMemo(()=>vt(e,t,s,n,a,"assets"),[e,t,s,n,a]),g=p.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let f=new Set,h=!1;if(t.forEach(d=>{let w=n.routes[d.route.id];!w||!w.hasLoader||(!u.some(R=>R.route.id===d.route.id)&&d.route.id in l&&i[d.route.id]?.shouldRevalidate||w.hasClientLoader?h=!0:f.add(d.route.id))}),f.size===0)return[];let v=In(e,o);return h&&f.size>0&&v.searchParams.set("_routes",t.filter(d=>f.has(d.route.id)).map(d=>d.route.id).join(",")),[v.pathname+v.search]},[o,l,a,n,u,t,e,i]),m=p.useMemo(()=>kn(c,n),[c,n]),x=Ln(c);return p.createElement(p.Fragment,null,g.map(f=>p.createElement("link",{key:f,rel:"prefetch",as:"fetch",href:f,...r})),m.map(f=>p.createElement("link",{key:f,rel:"modulepreload",href:f,...r})),x.map(({key:f,link:h})=>p.createElement("link",{key:f,...h})))}function Dn(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Vt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Vt&&(window.__reactRouterVersion="7.6.3")}catch{}function Fn({basename:e,children:t,window:r}){let a=p.useRef();a.current==null&&(a.current=Rr({window:r,v5Compat:!0}));let n=a.current,[i,o]=p.useState({action:n.action,location:n.location}),l=p.useCallback(s=>{p.startTransition(()=>o(s))},[o]);return p.useLayoutEffect(()=>n.listen(l),[n,l]),p.createElement(fn,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n})}var Yt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qt=p.forwardRef(function({onClick:t,discover:r="render",prefetch:a="none",relative:n,reloadDocument:i,replace:o,state:l,target:s,to:u,preventScrollReset:c,viewTransition:g,...m},x){let{basename:f}=p.useContext(G),h=typeof u=="string"&&Yt.test(u),v,d=!1;if(typeof u=="string"&&h&&(v=u,Vt))try{let _=new URL(window.location.href),M=u.startsWith("//")?new URL(_.protocol+u):new URL(u),B=K(M.pathname,f);M.origin===_.origin&&B!=null?u=B+M.search+M.hash:d=!0}catch{X(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let w=Gr(u,{relative:n}),[R,T,I]=An(a,m),O=Hn(u,{replace:o,state:l,target:s,preventScrollReset:c,relative:n,viewTransition:g});function C(_){t&&t(_),_.defaultPrevented||O(_)}let z=p.createElement("a",{...m,...I,href:v||w,onClick:d||i?t:C,ref:Dn(x,T),target:s,"data-discover":!h&&r==="render"?"true":void 0});return R&&!h?p.createElement(p.Fragment,null,z,p.createElement($n,{page:w})):z});qt.displayName="Link";var jn=p.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:a="",end:n=!1,style:i,to:o,viewTransition:l,children:s,...u},c){let g=ve(o,{relative:u.relative}),m=ee(),x=p.useContext(Ae),{navigator:f,basename:h}=p.useContext(G),v=x!=null&&Vn(g)&&l===!0,d=f.encodeLocation?f.encodeLocation(g).pathname:g.pathname,w=m.pathname,R=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(w=w.toLowerCase(),R=R?R.toLowerCase():null,d=d.toLowerCase()),R&&h&&(R=K(R,h)||R);const T=d!=="/"&&d.endsWith("/")?d.length-1:d.length;let I=w===d||!n&&w.startsWith(d)&&w.charAt(T)==="/",O=R!=null&&(R===d||!n&&R.startsWith(d)&&R.charAt(d.length)==="/"),C={isActive:I,isPending:O,isTransitioning:v},z=I?t:void 0,_;typeof a=="function"?_=a(C):_=[a,I?"active":null,O?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let M=typeof i=="function"?i(C):i;return p.createElement(qt,{...u,"aria-current":z,className:_,ref:c,style:M,to:o,viewTransition:l},typeof s=="function"?s(C):s)});jn.displayName="NavLink";var Nn=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:n,state:i,method:o=ke,action:l,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:g,...m},x)=>{let f=Bn(),h=Wn(l,{relative:u}),v=o.toLowerCase()==="get"?"get":"post",d=typeof l=="string"&&Yt.test(l),w=R=>{if(s&&s(R),R.defaultPrevented)return;R.preventDefault();let T=R.nativeEvent.submitter,I=T?.getAttribute("formmethod")||o;f(T||R.currentTarget,{fetcherKey:t,method:I,navigate:r,replace:n,state:i,relative:u,preventScrollReset:c,viewTransition:g})};return p.createElement("form",{ref:x,method:v,action:h,onSubmit:a?s:w,...m,"data-discover":!d&&e==="render"?"true":void 0})});Nn.displayName="Form";function Mn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Xt(e){let t=p.useContext(ie);return $(t,Mn(e)),t}function Hn(e,{target:t,replace:r,state:a,preventScrollReset:n,relative:i,viewTransition:o}={}){let l=Mt(),s=ee(),u=ve(e,{relative:i});return p.useCallback(c=>{if(yn(c,t)){c.preventDefault();let g=r!==void 0?r:de(s)===de(u);l(e,{replace:g,state:a,preventScrollReset:n,relative:i,viewTransition:o})}},[s,l,u,r,a,t,e,n,i,o])}var zn=0,Un=()=>`__${String(++zn)}__`;function Bn(){let{router:e}=Xt("useSubmit"),{basename:t}=p.useContext(G),r=sn();return p.useCallback(async(a,n={})=>{let{action:i,method:o,encType:l,formData:s,body:u}=bn(a,t);if(n.navigate===!1){let c=n.fetcherKey||Un();await e.fetch(c,r,n.action||i,{preventScrollReset:n.preventScrollReset,formData:s,body:u,formMethod:n.method||o,formEncType:n.encType||l,flushSync:n.flushSync})}else await e.navigate(n.action||i,{preventScrollReset:n.preventScrollReset,formData:s,body:u,formMethod:n.method||o,formEncType:n.encType||l,replace:n.replace,state:n.state,fromRouteId:r,flushSync:n.flushSync,viewTransition:n.viewTransition})},[e,t,r])}function Wn(e,{relative:t}={}){let{basename:r}=p.useContext(G),a=p.useContext(Z);$(a,"useFormAction must be used inside a RouteContext");let[n]=a.matches.slice(-1),i={...ve(e||".",{relative:t})},o=ee();if(e==null){i.search=o.search;let l=new URLSearchParams(i.search),s=l.getAll("index");if(s.some(c=>c==="")){l.delete("index"),s.filter(g=>g).forEach(g=>l.append("index",g));let c=l.toString();i.search=c?`?${c}`:""}}return(!e||e===".")&&n.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:J([r,i.pathname])),de(i)}function Vn(e,t={}){let r=p.useContext(Ft);$(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Xt("useViewTransitionState"),n=ve(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=K(r.currentLocation.pathname,a)||r.currentLocation.pathname,o=K(r.nextLocation.pathname,a)||r.nextLocation.pathname;return Ie(n.pathname,o)!=null||Ie(n.pathname,i)!=null}[...Tn];const Gt=b.createContext({history:[],addToHistory:()=>{},popFromHistory:()=>"",replaceHistory:()=>{}}),Yn=({routes:e,children:t})=>{const r=b.useRef(["/"]),[a,n]=b.useState(["/"]),i=b.useCallback(c=>{r.current=c,n(c)},[]),o=c=>{i([...r.current,c])},l=c=>{let g="",m=[];return r.current.length===0?"/":(r.current.length<=c?(g=r.current[0],m=[g]):(m=r.current.slice(0,r.current.length-c),g=m[m.length-1]),i(m),g)},s=c=>{i(c)},u=e.map(c=>E.jsx(Ut,{path:c.path,element:c.render}));return E.jsx(Gt.Provider,{value:{history:a,addToHistory:o,popFromHistory:l,replaceHistory:s},children:E.jsxs(Fn,{children:[t,E.jsx(dn,{children:u})]})})},qn=()=>{const e=Mt(),t=ee(),r=b.useContext(Gt),a=b.useCallback((o,l=!0)=>{o!==t.pathname&&e(o,{replace:!0}),l&&r.addToHistory(o)},[t.pathname,e,r]),n=b.useCallback(o=>{const l=o||1,s=r.popFromHistory(l);a(s,!1)},[a,r]),i=b.useCallback(o=>{r.replaceHistory(o)},[r]);return{currentPath:t.pathname,history:r.history,goBack:n,goTo:a,replaceHistory:i}},Jt=b.createContext({visibleItems:[],isItemVisible:()=>!1,showItem:()=>{},hideItem:()=>{}}),Xn=({children:e})=>{const t=b.useRef([]),[r,a]=b.useState([]),n=b.useCallback(s=>{t.current=s,a(s)},[]),i=b.useCallback(s=>t.current.some(u=>u===s),[]),o=b.useCallback(s=>{i(s)||n([...t.current,s])},[i,n]),l=b.useCallback(s=>{i(s)&&n(t.current.filter(c=>c!==s))},[i,n]);return E.jsx(Jt.Provider,{value:{visibleItems:r,isItemVisible:i,showItem:o,hideItem:l},children:e})},xe=()=>{const e=b.useContext(Jt),t=n=>e.visibleItems.some(i=>i===n),r=n=>{e.showItem(n)},a=n=>{e.hideItem(n)};return{visibleItems:e.visibleItems,isItemVisible:t,showItem:r,hideItem:a}},Gn=({id:e,onCloseDrawer:t,drawerCloseOffset:r=15})=>{const{isItemVisible:a}=xe(),[n,i]=b.useState({isDragging:!1}),o=b.useRef(null),l=b.useRef(null),s=b.useRef(null),[u,c]=b.useState(0),g=f=>{i(f)},m=f=>{i(f),c(0)};return Tt({ref:s,onDrag:f=>{i(f);const h=l.current?.clientHeight||0;f.distanceY&&(c(f.distanceY<0?0:-f.distanceY),f.distanceY>=h-r&&(t?.(),m(f)))},onDragEnd:m,onDragStart:g}),{isVisible:a(e),drawerParentRef:o,drawerRef:l,drawerBottomDistance:u,handleRef:s}},Jn=e=>{const{children:t,backgroundStyles:r,contentStyles:a,handle:n}=e,{isVisible:i,drawerParentRef:o,drawerRef:l,handleRef:s,drawerBottomDistance:u}=Gn(e);return E.jsx(E.Fragment,{children:i&&E.jsx("div",{ref:o,style:{width:"100%",height:"100%",minHeight:"100vh",left:0,top:0,background:"#00000068",position:"fixed",zIndex:1e3,display:"flex",flexDirection:"column",touchAction:"none",...r},children:E.jsxs("div",{ref:l,style:{width:"100%",height:"fit-content",minHeight:"80px",maxHeight:"90%",background:"#ffffff",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"24px",zIndex:1001,position:"absolute",bottom:`${u}px`,...a},onClick:c=>{c.stopPropagation()},children:[E.jsx("div",{ref:s,style:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0px",height:"24px",width:"100%",cursor:"pointer",...n?.styles},children:n?.render}),t]})})})},Kn=({onSubmit:e,fields:t})=>{const r=b.useRef(null),a=b.useCallback(o=>{var l=Object.keys(o.currentTarget.elements),s=Object.values(o.currentTarget.elements),u=[];for(let c=0;c<l.length;c++){const g=l[c];if(t.findIndex(x=>x.name===g)===-1)continue;const m=s[c].value;u.push({name:g,value:m})}return u},[e]),n=b.useCallback(o=>{o.preventDefault();const l=a(o);e?.(l)},[e]);return{ref:r,submitForm:o=>{o.preventDefault(),o.stopPropagation(),r.current&&r.current.requestSubmit()},handleFormSubmission:n}},Zn=e=>{const{fields:t,styles:r,submitButton:a}=e,{ref:n,handleFormSubmission:i,submitForm:o}=Kn(e),l=b.useCallback(()=>t.map(s=>({...s.content,key:s.name})),[t]);return E.jsxs("form",{ref:n,onSubmit:i,style:{width:"100%",display:"flex",flexDirection:"column",gap:"8px",flex:1,...r},children:[l(),E.jsx("div",{onClick:o,style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",...a.styles},children:a.content})]})},Qn=({src:e,alt:t="",onClick:r,styles:a})=>E.jsx("img",{src:e,alt:t,style:{overflow:"hidden",position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",objectFit:"cover",...a},onClick:()=>r?.()});function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ve.apply(null,arguments)}function ea(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ta(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ra=function(){function e(r){var a=this;this._insertTag=function(n){var i;a.tags.length===0?a.insertionPoint?i=a.insertionPoint.nextSibling:a.prepend?i=a.container.firstChild:i=a.before:i=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(n,i),a.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ta(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=ea(n);try{i.insertRule(a,i.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){var n;return(n=a.parentNode)==null?void 0:n.removeChild(a)}),this.tags=[],this.ctr=0},e}(),N="-ms-",Oe="-moz-",S="-webkit-",Kt="comm",et="rule",tt="decl",na="@import",Zt="@keyframes",aa="@layer",ia=Math.abs,Le=String.fromCharCode,oa=Object.assign;function sa(e,t){return D(e,0)^45?(((t<<2^D(e,0))<<2^D(e,1))<<2^D(e,2))<<2^D(e,3):0}function Qt(e){return e.trim()}function la(e,t){return(e=t.exec(e))?e[0]:e}function P(e,t,r){return e.replace(t,r)}function Ye(e,t){return e.indexOf(t)}function D(e,t){return e.charCodeAt(t)|0}function he(e,t,r){return e.slice(t,r)}function V(e){return e.length}function rt(e){return e.length}function Ce(e,t){return t.push(e),e}function ua(e,t){return e.map(t).join("")}var _e=1,ne=1,er=0,H=0,L=0,oe="";function De(e,t,r,a,n,i,o){return{value:e,root:t,parent:r,type:a,props:n,children:i,line:_e,column:ne,length:o,return:""}}function fe(e,t){return oa(De("",null,null,"",null,null,0),e,{length:-e.length},t)}function ca(){return L}function fa(){return L=H>0?D(oe,--H):0,ne--,L===10&&(ne=1,_e--),L}function U(){return L=H<er?D(oe,H++):0,ne++,L===10&&(ne=1,_e++),L}function q(){return D(oe,H)}function Se(){return H}function be(e,t){return he(oe,e,t)}function pe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tr(e){return _e=ne=1,er=V(oe=e),H=0,[]}function rr(e){return oe="",e}function Pe(e){return Qt(be(H-1,qe(e===91?e+2:e===40?e+1:e)))}function da(e){for(;(L=q())&&L<33;)U();return pe(e)>2||pe(L)>3?"":" "}function ha(e,t){for(;--t&&U()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return be(e,Se()+(t<6&&q()==32&&U()==32))}function qe(e){for(;U();)switch(L){case e:return H;case 34:case 39:e!==34&&e!==39&&qe(L);break;case 40:e===41&&qe(e);break;case 92:U();break}return H}function pa(e,t){for(;U()&&e+L!==57;)if(e+L===84&&q()===47)break;return"/*"+be(t,H-1)+"*"+Le(e===47?e:U())}function ma(e){for(;!pe(q());)U();return be(e,H)}function ga(e){return rr(Te("",null,null,null,[""],e=tr(e),0,[0],e))}function Te(e,t,r,a,n,i,o,l,s){for(var u=0,c=0,g=o,m=0,x=0,f=0,h=1,v=1,d=1,w=0,R="",T=n,I=i,O=a,C=R;v;)switch(f=w,w=U()){case 40:if(f!=108&&D(C,g-1)==58){Ye(C+=P(Pe(w),"&","&\f"),"&\f")!=-1&&(d=-1);break}case 34:case 39:case 91:C+=Pe(w);break;case 9:case 10:case 13:case 32:C+=da(f);break;case 92:C+=ha(Se()-1,7);continue;case 47:switch(q()){case 42:case 47:Ce(ya(pa(U(),Se()),t,r),s);break;default:C+="/"}break;case 123*h:l[u++]=V(C)*d;case 125*h:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+c:d==-1&&(C=P(C,/\f/g,"")),x>0&&V(C)-g&&Ce(x>32?bt(C+";",a,r,g-1):bt(P(C," ","")+";",a,r,g-2),s);break;case 59:C+=";";default:if(Ce(O=xt(C,t,r,u,c,n,l,R,T=[],I=[],g),i),w===123)if(c===0)Te(C,t,O,O,T,i,g,l,I);else switch(m===99&&D(C,3)===110?100:m){case 100:case 108:case 109:case 115:Te(e,O,O,a&&Ce(xt(e,O,O,0,0,n,l,R,n,T=[],g),I),n,I,g,l,a?T:I);break;default:Te(C,O,O,O,[""],I,0,l,I)}}u=c=x=0,h=d=1,R=C="",g=o;break;case 58:g=1+V(C),x=f;default:if(h<1){if(w==123)--h;else if(w==125&&h++==0&&fa()==125)continue}switch(C+=Le(w),w*h){case 38:d=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(V(C)-1)*d,d=1;break;case 64:q()===45&&(C+=Pe(U())),m=q(),c=g=V(R=C+=ma(Se())),w++;break;case 45:f===45&&V(C)==2&&(h=0)}}return i}function xt(e,t,r,a,n,i,o,l,s,u,c){for(var g=n-1,m=n===0?i:[""],x=rt(m),f=0,h=0,v=0;f<a;++f)for(var d=0,w=he(e,g+1,g=ia(h=o[f])),R=e;d<x;++d)(R=Qt(h>0?m[d]+" "+w:P(w,/&\f/g,m[d])))&&(s[v++]=R);return De(e,t,r,n===0?et:l,s,u,c)}function ya(e,t,r){return De(e,t,r,Kt,Le(ca()),he(e,2,-2),0)}function bt(e,t,r,a){return De(e,t,r,tt,he(e,0,a),he(e,a+1,-1),a)}function re(e,t){for(var r="",a=rt(e),n=0;n<a;n++)r+=t(e[n],n,e,t)||"";return r}function va(e,t,r,a){switch(e.type){case aa:if(e.children.length)break;case na:case tt:return e.return=e.return||e.value;case Kt:return"";case Zt:return e.return=e.value+"{"+re(e.children,a)+"}";case et:e.value=e.props.join(",")}return V(r=re(e.children,a))?e.return=e.value+"{"+r+"}":""}function xa(e){var t=rt(e);return function(r,a,n,i){for(var o="",l=0;l<t;l++)o+=e[l](r,a,n,i)||"";return o}}function ba(e){return function(t){t.root||(t=t.return)&&e(t)}}function nr(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var wa=function(t,r,a){for(var n=0,i=0;n=i,i=q(),n===38&&i===12&&(r[a]=1),!pe(i);)U();return be(t,H)},Ra=function(t,r){var a=-1,n=44;do switch(pe(n)){case 0:n===38&&q()===12&&(r[a]=1),t[a]+=wa(H-1,r,a);break;case 2:t[a]+=Pe(n);break;case 4:if(n===44){t[++a]=q()===58?"&\f":"",r[a]=t[a].length;break}default:t[a]+=Le(n)}while(n=U());return t},Ca=function(t,r){return rr(Ra(tr(t),r))},wt=new WeakMap,ka=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,a=t.parent,n=t.column===a.column&&t.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!wt.get(a))&&!n){wt.set(t,!0);for(var i=[],o=Ca(r,i),l=a.props,s=0,u=0;s<o.length;s++)for(var c=0;c<l.length;c++,u++)t.props[u]=i[s]?o[s].replace(/&\f/g,l[c]):l[c]+" "+o[s]}}},Ea=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function ar(e,t){switch(sa(e,t)){case 5103:return S+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return S+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return S+e+Oe+e+N+e+e;case 6828:case 4268:return S+e+N+e+e;case 6165:return S+e+N+"flex-"+e+e;case 5187:return S+e+P(e,/(\w+).+(:[^]+)/,S+"box-$1$2"+N+"flex-$1$2")+e;case 5443:return S+e+N+"flex-item-"+P(e,/flex-|-self/,"")+e;case 4675:return S+e+N+"flex-line-pack"+P(e,/align-content|flex-|-self/,"")+e;case 5548:return S+e+N+P(e,"shrink","negative")+e;case 5292:return S+e+N+P(e,"basis","preferred-size")+e;case 6060:return S+"box-"+P(e,"-grow","")+S+e+N+P(e,"grow","positive")+e;case 4554:return S+P(e,/([^-])(transform)/g,"$1"+S+"$2")+e;case 6187:return P(P(P(e,/(zoom-|grab)/,S+"$1"),/(image-set)/,S+"$1"),e,"")+e;case 5495:case 3959:return P(e,/(image-set\([^]*)/,S+"$1$`$1");case 4968:return P(P(e,/(.+:)(flex-)?(.*)/,S+"box-pack:$3"+N+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+S+e+e;case 4095:case 3583:case 4068:case 2532:return P(e,/(.+)-inline(.+)/,S+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(V(e)-1-t>6)switch(D(e,t+1)){case 109:if(D(e,t+4)!==45)break;case 102:return P(e,/(.+:)(.+)-([^]+)/,"$1"+S+"$2-$3$1"+Oe+(D(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ye(e,"stretch")?ar(P(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(D(e,t+1)!==115)break;case 6444:switch(D(e,V(e)-3-(~Ye(e,"!important")&&10))){case 107:return P(e,":",":"+S)+e;case 101:return P(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+S+(D(e,14)===45?"inline-":"")+"box$3$1"+S+"$2$3$1"+N+"$2box$3")+e}break;case 5936:switch(D(e,t+11)){case 114:return S+e+N+P(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return S+e+N+P(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return S+e+N+P(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return S+e+N+e+e}return e}var Sa=function(t,r,a,n){if(t.length>-1&&!t.return)switch(t.type){case tt:t.return=ar(t.value,t.length);break;case Zt:return re([fe(t,{value:P(t.value,"@","@"+S)})],n);case et:if(t.length)return ua(t.props,function(i){switch(la(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return re([fe(t,{props:[P(i,/:(read-\w+)/,":"+Oe+"$1")]})],n);case"::placeholder":return re([fe(t,{props:[P(i,/:(plac\w+)/,":"+S+"input-$1")]}),fe(t,{props:[P(i,/:(plac\w+)/,":"+Oe+"$1")]}),fe(t,{props:[P(i,/:(plac\w+)/,N+"input-$1")]})],n)}return""})}},Pa=[Sa],Ta=function(t){var r=t.key;if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(h){var v=h.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=t.stylisPlugins||Pa,i={},o,l=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),d=1;d<v.length;d++)i[v[d]]=!0;l.push(h)});var s,u=[ka,Ea];{var c,g=[va,ba(function(h){c.insert(h)})],m=xa(u.concat(n,g)),x=function(v){return re(ga(v),m)};s=function(v,d,w,R){c=w,x(v?v+"{"+d.styles+"}":d.styles),R&&(f.inserted[d.name]=!0)}}var f={key:r,sheet:new ra({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(l),f},Ia=!0;function Oa(e,t,r){var a="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(a+=n+" ")}),a}var ir=function(t,r,a){var n=t.key+"-"+r.name;(a===!1||Ia===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},Aa=function(t,r,a){ir(t,r,a);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+n:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function $a(e){for(var t=0,r,a=0,n=e.length;n>=4;++a,n-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var La={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_a=/[A-Z]|^ms/g,Da=/_EMO_([^_]+?)_([^]*?)_EMO_/g,or=function(t){return t.charCodeAt(1)===45},Rt=function(t){return t!=null&&typeof t!="boolean"},Ue=nr(function(e){return or(e)?e:e.replace(_a,"-$&").toLowerCase()}),Ct=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Da,function(a,n,i){return Y={name:n,styles:i,next:Y},n})}return La[t]!==1&&!or(t)&&typeof r=="number"&&r!==0?r+"px":r};function me(e,t,r){if(r==null)return"";var a=r;if(a.__emotion_styles!==void 0)return a;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return Y={name:n.name,styles:n.styles,next:Y},n.name;var i=r;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)Y={name:o.name,styles:o.styles,next:Y},o=o.next;var l=i.styles+";";return l}return Fa(e,t,r)}case"function":{if(e!==void 0){var s=Y,u=r(e);return Y=s,me(e,t,u)}break}}var c=r;if(t==null)return c;var g=t[c];return g!==void 0?g:c}function Fa(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=me(e,t,r[n])+";";else for(var i in r){var o=r[i];if(typeof o!="object"){var l=o;t!=null&&t[l]!==void 0?a+=i+"{"+t[l]+"}":Rt(l)&&(a+=Ue(i)+":"+Ct(i,l)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)Rt(o[s])&&(a+=Ue(i)+":"+Ct(i,o[s])+";");else{var u=me(e,t,o);switch(i){case"animation":case"animationName":{a+=Ue(i)+":"+u+";";break}default:a+=i+"{"+u+"}"}}}return a}var kt=/label:\s*([^\s;{]+)\s*(;|$)/g,Y;function ja(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,n="";Y=void 0;var i=e[0];if(i==null||i.raw===void 0)a=!1,n+=me(r,t,i);else{var o=i;n+=o[0]}for(var l=1;l<e.length;l++)if(n+=me(r,t,e[l]),a){var s=i;n+=s[l]}kt.lastIndex=0;for(var u="",c;(c=kt.exec(n))!==null;)u+="-"+c[1];var g=$a(n)+u;return{name:g,styles:n,next:Y}}var Na=function(t){return t()},Ma=p.useInsertionEffect?p.useInsertionEffect:!1,Ha=Ma||Na,sr=p.createContext(typeof HTMLElement<"u"?Ta({key:"css"}):null);sr.Provider;var za=function(t){return b.forwardRef(function(r,a){var n=b.useContext(sr);return t(r,n,a)})},Ua=p.createContext({}),Ba=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Wa=nr(function(e){return Ba.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Va=Wa,Ya=function(t){return t!=="theme"},Et=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Va:Ya},St=function(t,r,a){var n;if(r){var i=r.shouldForwardProp;n=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof n!="function"&&a&&(n=t.__emotion_forwardProp),n},qa=function(t){var r=t.cache,a=t.serialized,n=t.isStringTag;return ir(r,a,n),Ha(function(){return Aa(r,a,n)}),null},Xa=function e(t,r){var a=t.__emotion_real===t,n=a&&t.__emotion_base||t,i,o;r!==void 0&&(i=r.label,o=r.target);var l=St(t,r,a),s=l||Et(n),u=!s("as");return function(){var c=arguments,g=a&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&g.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)g.push.apply(g,c);else{var m=c[0];g.push(m[0]);for(var x=c.length,f=1;f<x;f++)g.push(c[f],m[f])}var h=za(function(v,d,w){var R=u&&v.as||n,T="",I=[],O=v;if(v.theme==null){O={};for(var C in v)O[C]=v[C];O.theme=p.useContext(Ua)}typeof v.className=="string"?T=Oa(d.registered,I,v.className):v.className!=null&&(T=v.className+" ");var z=ja(g.concat(I),d.registered,O);T+=d.key+"-"+z.name,o!==void 0&&(T+=" "+o);var _=u&&l===void 0?Et(R):s,M={};for(var B in v)u&&B==="as"||_(B)&&(M[B]=v[B]);return M.className=T,w&&(M.ref=w),p.createElement(p.Fragment,null,p.createElement(qa,{cache:d,serialized:z,isStringTag:typeof R=="string"}),p.createElement(R,M))});return h.displayName=i!==void 0?i:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=n,h.__emotion_styles=g,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(v,d){var w=e(v,Ve({},r,d,{shouldForwardProp:St(h,d,!0)}));return w.apply(void 0,g)},h}},Ga=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Xe=Xa.bind(null);Ga.forEach(function(e){Xe[e]=Xe(e)});const Ja=Xe.div`
34
34
  display: flex;
35
35
  flex-direction: column;
36
36
  font-family: inherit;
package/dist/index.es.js CHANGED
@@ -75,14 +75,14 @@ function hr() {
75
75
  case b:
76
76
  return (y._context.displayName || "Context") + ".Consumer";
77
77
  case T:
78
- var k = y.render;
79
- return y = y.displayName, y || (y = k.displayName || k.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y;
78
+ var E = y.render;
79
+ return y = y.displayName, y || (y = E.displayName || E.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y;
80
80
  case C:
81
- return k = y.displayName || null, k !== null ? k : e(y.type) || "Memo";
81
+ return E = y.displayName || null, E !== null ? E : e(y.type) || "Memo";
82
82
  case z:
83
- k = y._payload, y = y._init;
83
+ E = y._payload, y = y._init;
84
84
  try {
85
- return e(y(k));
85
+ return e(y(E));
86
86
  } catch {
87
87
  }
88
88
  }
@@ -94,15 +94,15 @@ function hr() {
94
94
  function r(y) {
95
95
  try {
96
96
  t(y);
97
- var k = !1;
97
+ var E = !1;
98
98
  } catch {
99
- k = !0;
99
+ E = !0;
100
100
  }
101
- if (k) {
102
- k = console;
103
- var O = k.error, F = typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object";
101
+ if (E) {
102
+ E = console;
103
+ var O = E.error, F = typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object";
104
104
  return O.call(
105
- k,
105
+ E,
106
106
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
107
  F
108
108
  ), t(y);
@@ -113,8 +113,8 @@ function hr() {
113
113
  if (typeof y == "object" && y !== null && y.$$typeof === z)
114
114
  return "<...>";
115
115
  try {
116
- var k = e(y);
117
- return k ? "<" + k + ">" : "<...>";
116
+ var E = e(y);
117
+ return E ? "<" + E + ">" : "<...>";
118
118
  } catch {
119
119
  return "<...>";
120
120
  }
@@ -128,16 +128,16 @@ function hr() {
128
128
  }
129
129
  function o(y) {
130
130
  if (at.call(y, "key")) {
131
- var k = Object.getOwnPropertyDescriptor(y, "key").get;
132
- if (k && k.isReactWarning) return !1;
131
+ var E = Object.getOwnPropertyDescriptor(y, "key").get;
132
+ if (E && E.isReactWarning) return !1;
133
133
  }
134
134
  return y.key !== void 0;
135
135
  }
136
- function l(y, k) {
136
+ function l(y, E) {
137
137
  function O() {
138
138
  it || (it = !0, console.error(
139
139
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
140
- k
140
+ E
141
141
  ));
142
142
  }
143
143
  O.isReactWarning = !0, Object.defineProperty(y, "key", {
@@ -151,11 +151,11 @@ function hr() {
151
151
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
152
152
  )), y = this.props.ref, y !== void 0 ? y : null;
153
153
  }
154
- function u(y, k, O, F, Q, W, je, Ne) {
154
+ function u(y, E, O, F, Q, W, je, Ne) {
155
155
  return O = W.ref, y = {
156
156
  $$typeof: x,
157
157
  type: y,
158
- key: k,
158
+ key: E,
159
159
  props: W,
160
160
  _owner: Q
161
161
  }, (O !== void 0 ? O : null) !== null ? Object.defineProperty(y, "ref", {
@@ -183,8 +183,8 @@ function hr() {
183
183
  value: Ne
184
184
  }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
185
185
  }
186
- function c(y, k, O, F, Q, W, je, Ne) {
187
- var j = k.children;
186
+ function c(y, E, O, F, Q, W, je, Ne) {
187
+ var j = E.children;
188
188
  if (j !== void 0)
189
189
  if (F)
190
190
  if (sr(j)) {
@@ -196,9 +196,9 @@ function hr() {
196
196
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
197
197
  );
198
198
  else g(j);
199
- if (at.call(k, "key")) {
199
+ if (at.call(E, "key")) {
200
200
  j = e(y);
201
- var te = Object.keys(k).filter(function(lr) {
201
+ var te = Object.keys(E).filter(function(lr) {
202
202
  return lr !== "key";
203
203
  });
204
204
  F = 0 < te.length ? "{key: someKey, " + te.join(": ..., ") + ": ...}" : "{key: someKey}", ut[j + F] || (te = 0 < te.length ? "{" + te.join(": ..., ") + ": ...}" : "{}", console.error(
@@ -214,11 +214,11 @@ React keys must be passed directly to JSX without using spread:
214
214
  j
215
215
  ), ut[j + F] = !0);
216
216
  }
217
- if (j = null, O !== void 0 && (r(O), j = "" + O), o(k) && (r(k.key), j = "" + k.key), "key" in k) {
217
+ if (j = null, O !== void 0 && (r(O), j = "" + O), o(E) && (r(E.key), j = "" + E.key), "key" in E) {
218
218
  O = {};
219
- for (var Me in k)
220
- Me !== "key" && (O[Me] = k[Me]);
221
- } else O = k;
219
+ for (var Me in E)
220
+ Me !== "key" && (O[Me] = E[Me]);
221
+ } else O = E;
222
222
  return j && l(
223
223
  O,
224
224
  typeof y == "function" ? y.displayName || y.name || "Unknown" : y
@@ -248,11 +248,11 @@ React keys must be passed directly to JSX without using spread:
248
248
  m,
249
249
  i
250
250
  )(), lt = Fe(a(i)), ut = {};
251
- le.Fragment = h, le.jsx = function(y, k, O, F, Q) {
251
+ le.Fragment = h, le.jsx = function(y, E, O, F, Q) {
252
252
  var W = 1e4 > B.recentlyCreatedOwnerStacks++;
253
253
  return c(
254
254
  y,
255
- k,
255
+ E,
256
256
  O,
257
257
  !1,
258
258
  F,
@@ -260,11 +260,11 @@ React keys must be passed directly to JSX without using spread:
260
260
  W ? Error("react-stack-top-frame") : st,
261
261
  W ? Fe(a(y)) : lt
262
262
  );
263
- }, le.jsxs = function(y, k, O, F, Q) {
263
+ }, le.jsxs = function(y, E, O, F, Q) {
264
264
  var W = 1e4 > B.recentlyCreatedOwnerStacks++;
265
265
  return c(
266
266
  y,
267
- k,
267
+ E,
268
268
  O,
269
269
  !0,
270
270
  F,
@@ -279,8 +279,8 @@ var dt;
279
279
  function pr() {
280
280
  return dt || (dt = 1, process.env.NODE_ENV === "production" ? be.exports = dr() : be.exports = hr()), be.exports;
281
281
  }
282
- var E = pr();
283
- const Ya = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ E.jsx(
282
+ var k = pr();
283
+ const Ya = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ k.jsx(
284
284
  "button",
285
285
  {
286
286
  style: {
@@ -409,15 +409,21 @@ const Ya = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ E.jsx(
409
409
  const t = window.innerWidth, r = window.innerHeight, a = vr(t, e), n = xr(t, e);
410
410
  return { currentWidth: t, currentHeight: r, currentBreakpoint: a, currentSize: n };
411
411
  }, Ja = (e) => {
412
- const t = e.translations, r = e.language, a = (i) => {
413
- if (i)
414
- return i[r];
412
+ const t = e.translations, r = e.language, a = (i, o) => {
413
+ if (!i)
414
+ return;
415
+ let l = i[r];
416
+ if (l)
417
+ return o && Object.keys(o).forEach((s) => {
418
+ const u = o[s];
419
+ l = l.replaceAll(`{{${s}}}`, `${u}`);
420
+ }), l;
415
421
  };
416
422
  return {
417
- t: (i) => {
423
+ t: (i, o) => {
418
424
  if (t[i]) {
419
- const o = a(t[i]);
420
- return o ?? i;
425
+ const l = a(t[i], o);
426
+ return l ?? i;
421
427
  }
422
428
  return i;
423
429
  },
@@ -669,7 +675,7 @@ function Cr(e, t, r, a = {}) {
669
675
  o.replaceState(R, "", T), i && s && s({ action: l, location: h.location, delta: 0 });
670
676
  }
671
677
  function f(v) {
672
- return kr(v);
678
+ return Er(v);
673
679
  }
674
680
  let h = {
675
681
  get action() {
@@ -705,16 +711,16 @@ function Cr(e, t, r, a = {}) {
705
711
  };
706
712
  return h;
707
713
  }
708
- function kr(e, t = !1) {
714
+ function Er(e, t = !1) {
709
715
  let r = "http://localhost";
710
716
  typeof window < "u" && (r = window.location.origin !== "null" ? window.location.origin : window.location.href), $(r, "No window.location.(origin|href) available to create URL");
711
717
  let a = typeof e == "string" ? e : de(e);
712
718
  return a = a.replace(/ $/, "%20"), !t && a.startsWith("//") && (a = r + a), new URL(a, r);
713
719
  }
714
720
  function It(e, t, r = "/") {
715
- return Er(e, t, r, !1);
721
+ return kr(e, t, r, !1);
716
722
  }
717
- function Er(e, t, r, a) {
723
+ function kr(e, t, r, a) {
718
724
  let n = typeof t == "string" ? ae(t) : t, i = K(n.pathname || "/", r);
719
725
  if (i == null)
720
726
  return null;
@@ -1453,7 +1459,7 @@ function We(e, t = []) {
1453
1459
  )), r.push(o);
1454
1460
  }), r;
1455
1461
  }
1456
- var Ce = "get", ke = "application/x-www-form-urlencoded";
1462
+ var Ce = "get", Ee = "application/x-www-form-urlencoded";
1457
1463
  function Oe(e) {
1458
1464
  return e != null && typeof e.tagName == "string";
1459
1465
  }
@@ -1496,14 +1502,14 @@ var vn = /* @__PURE__ */ new Set([
1496
1502
  function ze(e) {
1497
1503
  return e != null && !vn.has(e) ? (X(
1498
1504
  !1,
1499
- `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ke}"`
1505
+ `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ee}"`
1500
1506
  ), null) : e;
1501
1507
  }
1502
1508
  function xn(e, t) {
1503
1509
  let r, a, n, i, o;
1504
1510
  if (hn(e)) {
1505
1511
  let l = e.getAttribute("action");
1506
- a = l ? K(l, t) : null, r = e.getAttribute("method") || Ce, n = ze(e.getAttribute("enctype")) || ke, i = new FormData(e);
1512
+ a = l ? K(l, t) : null, r = e.getAttribute("method") || Ce, n = ze(e.getAttribute("enctype")) || Ee, i = new FormData(e);
1507
1513
  } else if (dn(e) || pn(e) && (e.type === "submit" || e.type === "image")) {
1508
1514
  let l = e.form;
1509
1515
  if (l == null)
@@ -1511,7 +1517,7 @@ function xn(e, t) {
1511
1517
  'Cannot submit a <button> or <input type="submit"> without a <form>'
1512
1518
  );
1513
1519
  let s = e.getAttribute("formaction") || l.getAttribute("action");
1514
- if (a = s ? K(s, t) : null, r = e.getAttribute("formmethod") || l.getAttribute("method") || Ce, n = ze(e.getAttribute("formenctype")) || ze(l.getAttribute("enctype")) || ke, i = new FormData(l, e), !yn()) {
1520
+ if (a = s ? K(s, t) : null, r = e.getAttribute("formmethod") || l.getAttribute("method") || Ce, n = ze(e.getAttribute("formenctype")) || ze(l.getAttribute("enctype")) || Ee, i = new FormData(l, e), !yn()) {
1515
1521
  let { name: u, type: c, value: g } = e;
1516
1522
  if (c === "image") {
1517
1523
  let m = u ? `${u}.` : "";
@@ -1523,7 +1529,7 @@ function xn(e, t) {
1523
1529
  throw new Error(
1524
1530
  'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
1525
1531
  );
1526
- r = Ce, a = null, n = ke, o = e;
1532
+ r = Ce, a = null, n = Ee, o = e;
1527
1533
  }
1528
1534
  return i && n === "text/plain" && (o = i, i = void 0), { action: a, method: r.toLowerCase(), encType: n, formData: i, body: o };
1529
1535
  }
@@ -1601,7 +1607,7 @@ function xt(e, t, r, a, n, i) {
1601
1607
  }) : [];
1602
1608
  }
1603
1609
  function Cn(e, t, { includeHydrateFallback: r } = {}) {
1604
- return kn(
1610
+ return En(
1605
1611
  e.map((a) => {
1606
1612
  let n = t.routes[a.route.id];
1607
1613
  if (!n) return [];
@@ -1610,10 +1616,10 @@ function Cn(e, t, { includeHydrateFallback: r } = {}) {
1610
1616
  }).flat(1)
1611
1617
  );
1612
1618
  }
1613
- function kn(e) {
1619
+ function En(e) {
1614
1620
  return [...new Set(e)];
1615
1621
  }
1616
- function En(e) {
1622
+ function kn(e) {
1617
1623
  let t = {}, r = Object.keys(e).sort();
1618
1624
  for (let a of r)
1619
1625
  t[a] = e[a];
@@ -1622,7 +1628,7 @@ function En(e) {
1622
1628
  function Sn(e, t) {
1623
1629
  let r = /* @__PURE__ */ new Set();
1624
1630
  return new Set(t), e.reduce((a, n) => {
1625
- let i = JSON.stringify(En(n));
1631
+ let i = JSON.stringify(kn(n));
1626
1632
  return r.has(i) || (r.add(i), a.push({ key: i, link: n })), a;
1627
1633
  }, []);
1628
1634
  }
@@ -2113,8 +2119,8 @@ const Xt = w.createContext({
2113
2119
  ), g = m[m.length - 1]), i(m), g);
2114
2120
  }, s = (c) => {
2115
2121
  i(c);
2116
- }, u = e.map((c) => /* @__PURE__ */ E.jsx(zt, { path: c.path, element: c.render }));
2117
- return /* @__PURE__ */ E.jsx(
2122
+ }, u = e.map((c) => /* @__PURE__ */ k.jsx(zt, { path: c.path, element: c.render }));
2123
+ return /* @__PURE__ */ k.jsx(
2118
2124
  Xt.Provider,
2119
2125
  {
2120
2126
  value: {
@@ -2123,9 +2129,9 @@ const Xt = w.createContext({
2123
2129
  popFromHistory: l,
2124
2130
  replaceHistory: s
2125
2131
  },
2126
- children: /* @__PURE__ */ E.jsxs(Dn, { children: [
2132
+ children: /* @__PURE__ */ k.jsxs(Dn, { children: [
2127
2133
  t,
2128
- /* @__PURE__ */ E.jsx(fn, { children: u })
2134
+ /* @__PURE__ */ k.jsx(fn, { children: u })
2129
2135
  ] })
2130
2136
  }
2131
2137
  );
@@ -2179,7 +2185,7 @@ const Xt = w.createContext({
2179
2185
  },
2180
2186
  [i, n]
2181
2187
  );
2182
- return /* @__PURE__ */ E.jsx(
2188
+ return /* @__PURE__ */ k.jsx(
2183
2189
  Gt.Provider,
2184
2190
  {
2185
2191
  value: {
@@ -2239,7 +2245,7 @@ const Xt = w.createContext({
2239
2245
  handleRef: s,
2240
2246
  drawerBottomDistance: u
2241
2247
  } = Vn(e);
2242
- return /* @__PURE__ */ E.jsx(E.Fragment, { children: i && /* @__PURE__ */ E.jsx(
2248
+ return /* @__PURE__ */ k.jsx(k.Fragment, { children: i && /* @__PURE__ */ k.jsx(
2243
2249
  "div",
2244
2250
  {
2245
2251
  ref: o,
@@ -2257,7 +2263,7 @@ const Xt = w.createContext({
2257
2263
  touchAction: "none",
2258
2264
  ...r
2259
2265
  },
2260
- children: /* @__PURE__ */ E.jsxs(
2266
+ children: /* @__PURE__ */ k.jsxs(
2261
2267
  "div",
2262
2268
  {
2263
2269
  ref: l,
@@ -2283,7 +2289,7 @@ const Xt = w.createContext({
2283
2289
  c.stopPropagation();
2284
2290
  },
2285
2291
  children: [
2286
- /* @__PURE__ */ E.jsx(
2292
+ /* @__PURE__ */ k.jsx(
2287
2293
  "div",
2288
2294
  {
2289
2295
  ref: s,
@@ -2341,7 +2347,7 @@ const Xt = w.createContext({
2341
2347
  };
2342
2348
  }, ti = (e) => {
2343
2349
  const { fields: t, styles: r, submitButton: a } = e, { ref: n, handleFormSubmission: i, submitForm: o } = Yn(e), l = w.useCallback(() => t.map((s) => ({ ...s.content, key: s.name })), [t]);
2344
- return /* @__PURE__ */ E.jsxs(
2350
+ return /* @__PURE__ */ k.jsxs(
2345
2351
  "form",
2346
2352
  {
2347
2353
  ref: n,
@@ -2356,7 +2362,7 @@ const Xt = w.createContext({
2356
2362
  },
2357
2363
  children: [
2358
2364
  l(),
2359
- /* @__PURE__ */ E.jsx(
2365
+ /* @__PURE__ */ k.jsx(
2360
2366
  "div",
2361
2367
  {
2362
2368
  onClick: o,
@@ -2373,7 +2379,7 @@ const Xt = w.createContext({
2373
2379
  ]
2374
2380
  }
2375
2381
  );
2376
- }, ri = ({ src: e, alt: t = "", onClick: r, styles: a }) => /* @__PURE__ */ E.jsx(
2382
+ }, ri = ({ src: e, alt: t = "", onClick: r, styles: a }) => /* @__PURE__ */ k.jsx(
2377
2383
  "img",
2378
2384
  {
2379
2385
  src: e,
@@ -2493,7 +2499,7 @@ function U() {
2493
2499
  function q() {
2494
2500
  return D(oe, H);
2495
2501
  }
2496
- function Ee() {
2502
+ function ke() {
2497
2503
  return H;
2498
2504
  }
2499
2505
  function xe(e, t) {
@@ -2554,7 +2560,7 @@ function ia(e) {
2554
2560
  function oa(e, t) {
2555
2561
  for (; --t && U() && !(L < 48 || L > 102 || L > 57 && L < 65 || L > 70 && L < 97); )
2556
2562
  ;
2557
- return xe(e, Ee() + (t < 6 && q() == 32 && U() == 32));
2563
+ return xe(e, ke() + (t < 6 && q() == 32 && U() == 32));
2558
2564
  }
2559
2565
  function qe(e) {
2560
2566
  for (; U(); )
@@ -2616,14 +2622,14 @@ function Pe(e, t, r, a, n, i, o, l, s) {
2616
2622
  break;
2617
2623
  // \
2618
2624
  case 92:
2619
- C += oa(Ee() - 1, 7);
2625
+ C += oa(ke() - 1, 7);
2620
2626
  continue;
2621
2627
  // /
2622
2628
  case 47:
2623
2629
  switch (q()) {
2624
2630
  case 42:
2625
2631
  case 47:
2626
- Re(ca(sa(U(), Ee()), t, r), s);
2632
+ Re(ca(sa(U(), ke()), t, r), s);
2627
2633
  break;
2628
2634
  default:
2629
2635
  C += "/";
@@ -2689,7 +2695,7 @@ function Pe(e, t, r, a, n, i, o, l, s) {
2689
2695
  break;
2690
2696
  // @
2691
2697
  case 64:
2692
- q() === 45 && (C += Se(U())), m = q(), c = g = V(R = C += la(Ee())), b++;
2698
+ q() === 45 && (C += Se(U())), m = q(), c = g = V(R = C += la(ke())), b++;
2693
2699
  break;
2694
2700
  // -
2695
2701
  case 45:
@@ -3037,7 +3043,7 @@ var ar = function(t, r, a) {
3037
3043
  // the registered cache to know whether a style is global or not
3038
3044
  // also, note that this check will be dead code eliminated in the browser
3039
3045
  Ra === !1) && t.registered[n] === void 0 && (t.registered[n] = r.styles);
3040
- }, ka = function(t, r, a) {
3046
+ }, Ea = function(t, r, a) {
3041
3047
  ar(t, r, a);
3042
3048
  var n = t.key + "-" + r.name;
3043
3049
  if (t.inserted[r.name] === void 0) {
@@ -3047,7 +3053,7 @@ var ar = function(t, r, a) {
3047
3053
  while (i !== void 0);
3048
3054
  }
3049
3055
  };
3050
- function Ea(e) {
3056
+ function ka(e) {
3051
3057
  for (var t = 0, r, a = 0, n = e.length; n >= 4; ++a, n -= 4)
3052
3058
  r = e.charCodeAt(a) & 255 | (e.charCodeAt(++a) & 255) << 8 | (e.charCodeAt(++a) & 255) << 16 | (e.charCodeAt(++a) & 255) << 24, r = /* Math.imul(k, m): */
3053
3059
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
@@ -3121,7 +3127,7 @@ var Sa = {
3121
3127
  return t != null && typeof t != "boolean";
3122
3128
  }, Ue = /* @__PURE__ */ rr(function(e) {
3123
3129
  return ir(e) ? e : e.replace(Pa, "-$&").toLowerCase();
3124
- }), kt = function(t, r) {
3130
+ }), Et = function(t, r) {
3125
3131
  switch (t) {
3126
3132
  case "animation":
3127
3133
  case "animationName":
@@ -3192,10 +3198,10 @@ function Ia(e, t, r) {
3192
3198
  var o = r[i];
3193
3199
  if (typeof o != "object") {
3194
3200
  var l = o;
3195
- t != null && t[l] !== void 0 ? a += i + "{" + t[l] + "}" : Ct(l) && (a += Ue(i) + ":" + kt(i, l) + ";");
3201
+ t != null && t[l] !== void 0 ? a += i + "{" + t[l] + "}" : Ct(l) && (a += Ue(i) + ":" + Et(i, l) + ";");
3196
3202
  } else if (Array.isArray(o) && typeof o[0] == "string" && (t == null || t[o[0]] === void 0))
3197
3203
  for (var s = 0; s < o.length; s++)
3198
- Ct(o[s]) && (a += Ue(i) + ":" + kt(i, o[s]) + ";");
3204
+ Ct(o[s]) && (a += Ue(i) + ":" + Et(i, o[s]) + ";");
3199
3205
  else {
3200
3206
  var u = me(e, t, o);
3201
3207
  switch (i) {
@@ -3211,7 +3217,7 @@ function Ia(e, t, r) {
3211
3217
  }
3212
3218
  return a;
3213
3219
  }
3214
- var Et = /label:\s*([^\s;{]+)\s*(;|$)/g, Y;
3220
+ var kt = /label:\s*([^\s;{]+)\s*(;|$)/g, Y;
3215
3221
  function Aa(e, t, r) {
3216
3222
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
3217
3223
  return e[0];
@@ -3229,10 +3235,10 @@ function Aa(e, t, r) {
3229
3235
  var s = i;
3230
3236
  n += s[l];
3231
3237
  }
3232
- Et.lastIndex = 0;
3233
- for (var u = "", c; (c = Et.exec(n)) !== null; )
3238
+ kt.lastIndex = 0;
3239
+ for (var u = "", c; (c = kt.exec(n)) !== null; )
3234
3240
  u += "-" + c[1];
3235
- var g = Ea(n) + u;
3241
+ var g = ka(n) + u;
3236
3242
  return {
3237
3243
  name: g,
3238
3244
  styles: n,
@@ -3282,7 +3288,7 @@ var _a = function(t) {
3282
3288
  }, Ha = function(t) {
3283
3289
  var r = t.cache, a = t.serialized, n = t.isStringTag;
3284
3290
  return ar(r, a, n), La(function() {
3285
- return ka(r, a, n);
3291
+ return Ea(r, a, n);
3286
3292
  }), null;
3287
3293
  }, za = function e(t, r) {
3288
3294
  var a = t.__emotion_real === t, n = a && t.__emotion_base || t, i, o;
@@ -3506,7 +3512,7 @@ const Ba = Xe.div`
3506
3512
  const f = (h) => {
3507
3513
  c?.(h.currentTarget.value);
3508
3514
  };
3509
- return /* @__PURE__ */ E.jsxs(
3515
+ return /* @__PURE__ */ k.jsxs(
3510
3516
  Ba,
3511
3517
  {
3512
3518
  style: {
@@ -3517,7 +3523,7 @@ const Ba = Xe.div`
3517
3523
  },
3518
3524
  children: [
3519
3525
  t,
3520
- /* @__PURE__ */ E.jsxs(
3526
+ /* @__PURE__ */ k.jsxs(
3521
3527
  "div",
3522
3528
  {
3523
3529
  style: {
@@ -3542,7 +3548,7 @@ const Ba = Xe.div`
3542
3548
  },
3543
3549
  children: [
3544
3550
  r,
3545
- /* @__PURE__ */ E.jsx(
3551
+ /* @__PURE__ */ k.jsx(
3546
3552
  "input",
3547
3553
  {
3548
3554
  name: e,
@@ -3577,7 +3583,7 @@ const Ba = Xe.div`
3577
3583
  );
3578
3584
  }, ai = ({ id: e, styles: t, children: r }) => {
3579
3585
  const { isItemVisible: a } = $e();
3580
- return /* @__PURE__ */ E.jsx(E.Fragment, { children: a(e) && /* @__PURE__ */ E.jsx(
3586
+ return /* @__PURE__ */ k.jsx(k.Fragment, { children: a(e) && /* @__PURE__ */ k.jsx(
3581
3587
  "div",
3582
3588
  {
3583
3589
  style: {
@@ -3604,7 +3610,7 @@ const Ba = Xe.div`
3604
3610
  onClickOutsideModal: n
3605
3611
  }) => {
3606
3612
  const { isItemVisible: i } = $e();
3607
- return /* @__PURE__ */ E.jsx(E.Fragment, { children: i(e) && /* @__PURE__ */ E.jsx(
3613
+ return /* @__PURE__ */ k.jsx(k.Fragment, { children: i(e) && /* @__PURE__ */ k.jsx(
3608
3614
  "div",
3609
3615
  {
3610
3616
  style: {
@@ -3626,7 +3632,7 @@ const Ba = Xe.div`
3626
3632
  onClick: () => {
3627
3633
  n?.();
3628
3634
  },
3629
- children: /* @__PURE__ */ E.jsx(
3635
+ children: /* @__PURE__ */ k.jsx(
3630
3636
  "div",
3631
3637
  {
3632
3638
  style: {
@@ -3686,7 +3692,7 @@ const Ba = Xe.div`
3686
3692
  allowScroll: n = !0,
3687
3693
  floatingContent: i
3688
3694
  } = e, { footer: o, header: l } = Wa(e);
3689
- return /* @__PURE__ */ E.jsxs(
3695
+ return /* @__PURE__ */ k.jsxs(
3690
3696
  "div",
3691
3697
  {
3692
3698
  "data-testid": "page-container",
@@ -3706,7 +3712,7 @@ const Ba = Xe.div`
3706
3712
  ...t
3707
3713
  },
3708
3714
  children: [
3709
- /* @__PURE__ */ E.jsxs(
3715
+ /* @__PURE__ */ k.jsxs(
3710
3716
  "div",
3711
3717
  {
3712
3718
  "data-testid": "page-layout",
@@ -3719,7 +3725,7 @@ const Ba = Xe.div`
3719
3725
  boxSizing: "border-box"
3720
3726
  },
3721
3727
  children: [
3722
- l.visible && /* @__PURE__ */ E.jsx(
3728
+ l.visible && /* @__PURE__ */ k.jsx(
3723
3729
  "div",
3724
3730
  {
3725
3731
  ref: l.ref,
@@ -3740,7 +3746,7 @@ const Ba = Xe.div`
3740
3746
  children: l.content
3741
3747
  }
3742
3748
  ),
3743
- /* @__PURE__ */ E.jsx(
3749
+ /* @__PURE__ */ k.jsx(
3744
3750
  "div",
3745
3751
  {
3746
3752
  style: {
@@ -3760,7 +3766,7 @@ const Ba = Xe.div`
3760
3766
  ]
3761
3767
  }
3762
3768
  ),
3763
- o.visible && /* @__PURE__ */ E.jsx(
3769
+ o.visible && /* @__PURE__ */ k.jsx(
3764
3770
  "div",
3765
3771
  {
3766
3772
  ref: o.ref,
@@ -3794,7 +3800,7 @@ const Ba = Xe.div`
3794
3800
  alt: o = "",
3795
3801
  onClick: l,
3796
3802
  styles: s
3797
- }) => /* @__PURE__ */ E.jsx(
3803
+ }) => /* @__PURE__ */ k.jsx(
3798
3804
  "div",
3799
3805
  {
3800
3806
  style: {
@@ -3806,7 +3812,7 @@ const Ba = Xe.div`
3806
3812
  ...s
3807
3813
  },
3808
3814
  onClick: () => l?.(),
3809
- children: /* @__PURE__ */ E.jsx(
3815
+ children: /* @__PURE__ */ k.jsx(
3810
3816
  "svg",
3811
3817
  {
3812
3818
  width: t,
@@ -3832,7 +3838,7 @@ const Ba = Xe.div`
3832
3838
  return w.useEffect(() => {
3833
3839
  const l = i(e);
3834
3840
  n.current !== l && (n.current = l, l && setTimeout(() => o(e), a * 1e3));
3835
- }, [n, i, o]), /* @__PURE__ */ E.jsx(E.Fragment, { children: i(e) && /* @__PURE__ */ E.jsx(
3841
+ }, [n, i, o]), /* @__PURE__ */ k.jsx(k.Fragment, { children: i(e) && /* @__PURE__ */ k.jsx(
3836
3842
  "div",
3837
3843
  {
3838
3844
  style: {
@@ -3863,7 +3869,7 @@ const Ba = Xe.div`
3863
3869
  overflowEllipsis: e,
3864
3870
  children: t,
3865
3871
  styles: r
3866
- }) => /* @__PURE__ */ E.jsx(
3872
+ }) => /* @__PURE__ */ k.jsx(
3867
3873
  "p",
3868
3874
  {
3869
3875
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eliseubatista99/react-scaffold-core",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "private": false,
5
5
  "description": "A library which provides basic components, hooks, helpers and providers to easily build a React application and avoid repeating the usual code.",
6
6
  "main": "dist/index.cjs.js",