1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`ceff39e9d4d7ba7b9881d52086a732bd9329487c`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`861cf86c-910e-4a61-8567-fed5983bad8b`,e._sentryDebugIdIdentifier=`sentry-dbid-861cf86c-910e-4a61-8567-fed5983bad8b`)}catch{}})();import{n as e,r as t,s as n,t as r}from"./preload-helper-DyJk98Bs.js";import{d as i}from"./forms-D-AVxbeG.js";var a=n(i(),1);e();var o=e=>{throw TypeError(e)},s=(e,t,n)=>t.has(e)||o(`Cannot `+n),c=(e,t,n)=>(s(e,t,`read from private field`),n?n.call(e):t.get(e)),l=(e,t,n)=>t.has(e)?o(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),u=`popstate`;function d(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function f(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return _(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:v(t)}return b(t,n,null,e)}function p(e,t){if(e===!1||e==null)throw Error(t)}function m(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function h(){return Math.random().toString(36).substring(2,10)}function g(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function _(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?y(t):t,state:n,key:t&&t.key||r||h(),unstable_mask:i}}function v({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function y(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function b(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=f();l??(l=0,o.replaceState({...o.state,idx:l},``));function f(){return(o.state||{idx:null}).idx}function p(){s=`POP`;let e=f(),t=e==null?null:e-l;l=e,c&&c({action:s,location:y.location,delta:t})}function m(e,t){s=`PUSH`;let r=d(e)?e:_(y.location,e,t);n&&n(r,e),l=f()+1;let u=g(r,l),p=y.createHref(r.unstable_mask||r);try{o.pushState(u,``,p)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(p)}a&&c&&c({action:s,location:y.location,delta:1})}function h(e,t){s=`REPLACE`;let r=d(e)?e:_(y.location,e,t);n&&n(r,e),l=f();let i=g(r,l),u=y.createHref(r.unstable_mask||r);o.replaceState(i,``,u),a&&c&&c({action:s,location:y.location,delta:0})}function v(e){return x(e)}let y={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(u,p),c=e,()=>{i.removeEventListener(u,p),c=null}},createHref(e){return t(i,e)},createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:m,replace:h,go(e){return o.go(e)}};return y}function x(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),p(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:v(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}var S,C=class{constructor(e){if(l(this,S,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(c(this,S).has(e))return c(this,S).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){c(this,S).set(e,t)}};S=new WeakMap;var w=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function T(e){return w.has(e)}var E=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function D(e){return E.has(e)}function O(e){return e.index===!0}function k(e,t,n=[],r={},i=!1){return e.map((e,a)=>
1{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(p(e.index!==!0||!e.children,`Cannot specify children on an index route`),p(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),O(e)){let n={...e,id:s};return r[s]=A(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=A(n,t(n)),e.children&&(n.children=k(e.children,t,o,r,i)),n}})}function A(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function j(e,t,n=`/`){return M(e,t,n,!1)}function M(e,t,n,r){let i=B((typeof t==`string`?y(t):t).pathname||`/`,n);if(i==null)return null;let a=N(e);F(a);let o=null;for(let e=0;o==null&&e<a.length;++e){let t=le(i);o=oe(a[e],t,r)}return o}function ee(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function N(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;p(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=H([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(p(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),N(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:ae(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of P(e.path))a(e,t,!0,n)}),t}function P(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=P(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function F(e){e.sort((e,t)=>e.score===t.score?z(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var I=/^:[\w-]+$/,L=3,te=2,R=1,ne=10,re=-2,ie=e=>e===`*`;function ae(e,t){let n=e.split(`/`),r=n.length;return n.some(ie)&&(r+=re),t&&(r+=te),n.filter(e=>!ie(e)).reduce((e,t)=>e+(I.test(t)?L:t===``?R:ne),r)}function z(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function oe(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=se({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=se({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;
1Object.assign(i,u.params),o.push({params:i,pathname:H([a,u.pathname]),pathnameBase:ye(H([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=H([a,u.pathnameBase]))}return o}function se(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ce(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function ce(e,t=!1,n=!0){m(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function le(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return m(!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 B(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function ue({basename:e,pathname:t}){return t===`/`?e:H([e,t])}var de=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fe=e=>de.test(e);function V(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?y(e):e,a;return n?(n=ve(n),a=n.startsWith(`/`)?pe(n.substring(1),`/`):pe(n,t)):a=t,{pathname:a,search:be(r),hash:xe(i)}}function pe(e,t){let n=U(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function me(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function he(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function ge(e){let t=he(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function _e(e,t,n,r=!1){let i;typeof e==`string`?i=y(e):(i={...e},p(!i.pathname||!i.pathname.includes(`?`),me(`?`,`pathname`,`search`,i)),p(!i.pathname||!i.pathname.includes(`#`),me(`#`,`pathname`,`hash`,i)),p(!i.search||!i.search.includes(`#`),me(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=V(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var ve=e=>e.replace(/\/\/+/g,`/`),H=e=>ve(e.join(`/`)),U=e=>e.replace(/\/+$/,``),ye=e=>U(e).replace(/^\/*/,`/`),be=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,xe=e=>
1!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Se=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ce(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function we(e){return H(e.map(e=>e.route.path).filter(Boolean))||`/`}var Te=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ee(e,t){let n=e;if(typeof n!=`string`||!de.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Te)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=B(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{m(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var De=Symbol(`Uninstrumented`);function Oe(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=Ae(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=Ae(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[De]??i,a=Ae(n[e],t,(...e)=>Me(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[De]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[De]??e,r=Ae(n.middleware,t,(...e)=>Me(e[0]));return r?(r[De]=t,r):e})),r}function ke(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[De]??e.navigate,r=Ae(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?v(n):`.`,...Ne(e,r??{})}});r&&(r[De]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[De]??e.fetch,r=Ae(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...Ne(e,i??{})}});r&&(r[De]=t,e.fetch=r)}return e}function Ae(e,t,n){return e.length===0?null:async(...r)=>{let i=await je(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function je(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=je(e,t,n,r-1),a=await o,p(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function Me(e){let{request:t,context:n,params:r,unstable_pattern:i}=e;return{request:Pe(t),params:{...r},unstable_pattern:i,context:Fe(n)}}function Ne(e,t){return{currentUrl:v(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function Pe(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Fe(e){if(Ie(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var W=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Ie(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===W}var Le=[`POST`,`PUT`,`PATCH`,`DELETE`],Re=new Set(Le),ze=[`GET`,...Le],Be=new Set(ze),G=new Set([301,302,303,307,308]),Ve=new Set([307,308]),He={state:`idle`,location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ue={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},We={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},Ge=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Ke=`remix-router-transitions`,qe=Symbol(`ResetLoaderData`);function Je(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;p(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||Ge,a=i;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;a=e=>({...i(e),...Oe(t.map(e=>
1e.route).filter(Boolean),e)})}let o={},s=k(e.routes,a,void 0,o),c,l=e.basename||`/`;l.startsWith(`/`)||(l=`/${l}`);let u=e.dataStrategy||dt,d={unstable_passThroughRequests:!1,...e.future},f=null,h=new Set,g=null,v=null,b=null,S=e.hydrationData!=null,w=j(s,e.history.location,l),T=!1,E=null,D,O;if(w==null&&!e.patchRoutesOnNavigation){let t=K(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Pt(s);D=!0,O=!D,w=n,E={[r.id]:t}}else if(w&&!e.hydrationData&&ut(w,s,e.history.location.pathname).active&&(w=null),!w){D=!1,O=!D,w=[];let t=ut(null,s,e.history.location.pathname);t.active&&t.matches&&(T=!0,w=t.matches)}else if(w.some(e=>e.route.lazy))D=!1,O=!D;else if(!w.some(e=>$e(e.route)))D=!0,O=!D;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=w;if(n){let e=w.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}O=!1,D=!0,r.forEach(e=>{let r=et(e.route,t,n);O||=r.renderFallback,D&&=!r.shouldLoad})}let A,N={historyAction:e.history.action,location:e.history.location,matches:w,initialized:D,renderFallback:O,navigation:He,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||E,fetchers:new Map,blockers:new Map},P=`POP`,F=null,I=!1,L,te=!1,R=new Map,ne=null,re=!1,ie=!1,ae=new Set,z=new Map,oe=0,se=-1,ce=new Map,le=new Set,ue=new Map,de=new Map,V=new Set,pe=new Map,me,he=null;function ge(){if(f=e.history.listen(({action:t,location:n,delta:r})=>{if(me){me(),me=void 0;return}m(pe.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=rt({currentLocation:N.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{me=e});e.history.go(r*-1),nt(i,{state:`blocked`,location:n,proceed(){nt(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(N.blockers);e.set(i,We),H({blockers:e})}}),F?.resolve(),F=null;return}return xe(t,n)}),n){nn(t,R);let e=()=>rn(t,R);t.addEventListener(`pagehide`,e),ne=()=>t.removeEventListener(`pagehide`,e)}return N.initialized||xe(`POP`,N.location,{initialHydration:!0}),A}function _e(){f&&f(),ne&&ne(),h.clear(),L&&L.abort(),N.fetchers.forEach((e,t)=>ze(t)),N.blockers.forEach((e,t)=>tt(t))}function ve(e){return h.add(e),()=>h.delete(e)}function H(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),N={...N,...e};let n=[],r=[];N.fetchers.forEach((e,t)=>{e.state===`idle`&&(V.has(t)?n.push(t):r.push(t))}),V.forEach(e=>{!N.fetchers.has(e)&&!z.has(e)&&n.push(e)}),[...h].forEach(r=>r(N,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>ze(e)),r.forEach(e=>N.fetchers.delete(e))}function U(t,n,{flushSync:r}={}){let i=N.actionData!=null&&N.navigation.formMethod!=null&&J(N.navigation.formMethod)&&N.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?N.actionData:null;let o=n.loaderData?jt(N.loaderData,n.loaderData,n.matches||[],n.errors):N.loaderData,l=N.blockers;l.size>0&&(l=new Map(l),l.forEach((e,t)=>l.set(t,We)));let u=!re&<(t,n.matches||N.matches),d=I===!0||N.navigation.formMethod!=null&&J(N.navigation.formMethod)&&t.state?._isRedirect!==!0;c&&=(s=c,void 0),re||P===`POP`||(P===`PUSH`?e.history.push(t,t.state):P===`REPLACE`&&e.history.replace(t,t.state));let f;if(P===`POP`){let e=R.get(N.location.pathname);e&&e.has(t.pathname)?f={currentLocation:N.location,nextLocation:t}:R.has(t.pathname)&&(f={currentLocation:t,nextLocation:N.location})}else if(te){let e=R.get(N.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),R.set(N.location.pathname,e)),f={currentLocation:N.location,nextLocation:t}}H({...n,actionData:a,loaderData:o,historyAction:P,location:t,initialized:!0,renderFallback:!1,navigation:He,revalidation:`idle`,restoreScrollPosition:u,preventScrollReset:d,blockers:l},{viewTransitionOpts:f,flushSync:r===!0}),P=`POP`,I=!1,te=!1,re=!1,ie=!1,F?.resolve(),F=null,he?.resolve(),he=null}async function ye(t,n){if(F?.resolve(),F=null,typeof t==`number`){F||=an();let n=F.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=Ze(!1,Xe(N.location,N.matches,l,t,n?.fromRouteId,n?.relative),n),o;n?.unstable_mask&&(o={pathname:``,search:``,hash:``,...typeof n.unstable_mask==`string`?y(n.unstable_mask):{...N.location.unstable_mask,...n.unstable_mask}});let s=N.location,c=_(s,r,n&&n.state,void 0,o);c={...c,...e.history.encodeLocation(c)};let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&J(i.formMethod)&&i.formAction===N.location.pathname+N.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=rt({currentLocation:s,nextLocation:c,historyAction:d});if(m){nt(m,{state:`blocked`,location:c,proceed(){nt(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:c}),ye(t,n)},reset(){let e=new Map(N.blockers);e.set(m,We),H({blockers:e})}});return}await xe(d,c,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.unstable_defaultShouldRevalidate})}function be(){he||=an(),Fe(),H({revalidation:`loading`});let e=he.promise;return N.navigation.state===`submitting`?e:N.navigation.state===`idle`?(xe(N.historyAction,N.location,{startUninterruptedRevalidation:!0}
1),e):(xe(P||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,enableViewTransition:te===!0}),e)}async function xe(t,n,r){L&&L.abort(),L=null,P=t,re=(r&&r.startUninterruptedRevalidation)===!0,ct(N.location,N.matches),I=(r&&r.preventScrollReset)===!0,te=(r&&r.enableViewTransition)===!0;let i=c||s,a=r&&r.overrideNavigation,o=r?.initialHydration&&N.matches&&N.matches.length>0&&!T?N.matches:j(i,n,l),u=(r&&r.flushSync)===!0;if(o&&N.initialized&&!ie&&Lt(N.location,n)&&!(r&&r.submission&&J(r.submission.formMethod))){U(n,{matches:o},{flushSync:u});return}let d=ut(o,i,n.pathname);if(d.active&&d.matches&&(o=d.matches),!o){let{error:e,notFoundMatches:t,route:r}=at(n.pathname);U(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:u});return}L=new AbortController;let f=Tt(e.history,n,L.signal,r&&r.submission),p=e.getContext?await e.getContext():new C,m;if(r&&r.pendingError)m=[Nt(o).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&J(r.submission.formMethod)){let t=await Se(f,n,r.submission,o,p,d.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:u});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(q(r)&&Ce(r.error)&&r.error.status===404){L=null,U(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}o=t.matches||o,m=t.pendingActionResult,a=Zt(n,r.submission),u=!1,d.active=!1,f=Tt(e.history,f.url,f.signal)}let{shortCircuited:h,matches:g,loaderData:_,errors:v}=await we(f,n,o,p,d.active,a,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,u,m,r&&r.callSiteDefaultShouldRevalidate);h||(L=null,U(n,{matches:g||o,...Mt(m),loaderData:_,errors:v}))}async function Se(t,n,i,c,u,d,f,p={}){if(Fe(),H({navigation:Qt(n,i)},{flushSync:p.flushSync===!0}),d){let e=await ft(c,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Pt(s);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=Nt(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)c=e.matches;else{let{notFoundMatches:e,error:t,route:r}=at(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let m,h=Yt(c,n);if(!h.route.action&&!h.route.lazy)m={type:`error`,error:K(405,{method:t.method,pathname:n.pathname,routeId:h.route.id})};else{let e=await Ne(t,n,_t(a,o,t,n,c,h,f?[]:r,u),u,null);if(m=e[h.route.id],!m){for(let t of c)if(e[t.route.id]){m=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(Ht(m)){let n;return n=p&&p.replace!=null?p.replace:wt(m.response.headers.get(`Location`),new URL(t.url),l,e.history)===N.location.pathname+N.location.search,await Me(t,m,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(q(m)){let e=Nt(c,h.route.id);return(p&&p.replace)!==!0&&(P=`PUSH`),{matches:c,pendingActionResult:[e.route.id,m,h.route.id]}}return{matches:c,pendingActionResult:[h.route.id,m]}}async function we(t,n,i,u,d,f,p,m,h,g,_,v,y){let b=f||Zt(n,p),x=p||m||Xt(b),S=!re&&!g;if(d){if(S){let e=Te(v);H({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await ft(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Pt(s);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Nt(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=at(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=c||s,{dsMatches:w,revalidatingFetchers:T}=Qe(t,u,a,o,e.history,N,i,x,n,g?[]:r,g===!0,ie,ae,V,ue,le,C,l,e.patchRoutesOnNavigation!=null,v,y);if(se=++oe,!e.dataStrategy&&!w.some(e=>e.shouldLoad)&&!w.some(e=>e.route.middleware&&e.route.middleware.length>0)&&T.length===0){let e=qe();return U(n,{matches:i,loaderData:{},errors:v&&q(v[1])?{[v[0]]:v[1].error}:null,...Mt(v),...e?{fetchers:new Map(N.fetchers)}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=Te(v);t!==void 0&&(e.actionData=t)}T.length>0&&(e.fetchers=Ee(T)),H(e,{flushSync:_})}
1T.forEach(e=>{G(e.key),e.controller&&z.set(e.key,e.controller)});let E=()=>T.forEach(e=>G(e.key));L&&L.signal.addEventListener(`abort`,E);let{loaderResults:D,fetcherResults:O}=await Pe(w,T,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener(`abort`,E),T.forEach(e=>z.delete(e.key));let k=Ft(D);if(k)return await Me(t,k.result,!0,{replace:h}),{shortCircuited:!0};if(k=Ft(O),k)return le.add(k.key),await Me(t,k.result,!0,{replace:h}),{shortCircuited:!0};let{loaderData:A,errors:j}=At(N,i,D,v,T,O);g&&N.errors&&(j={...N.errors,...j});let M=qe(),ee=Je(se),P=M||ee||T.length>0;return{matches:i,loaderData:A,errors:j,...P?{fetchers:new Map(N.fetchers)}:{}}}function Te(e){if(e&&!q(e[1]))return{[e[0]]:e[1].data};if(N.actionData)return Object.keys(N.actionData).length===0?null:N.actionData}function Ee(e){return e.forEach(e=>{let t=N.fetchers.get(e.key),n=$t(void 0,t?t.data:void 0);N.fetchers.set(e.key,n)}),new Map(N.fetchers)}async function De(t,n,r,i){G(t);let a=(i&&i.flushSync)===!0,o=c||s,u=Xe(N.location,N.matches,l,r,n,i?.relative),d=j(o,u,l),f=ut(d,o,u);if(f.active&&f.matches&&(d=f.matches),!d){Ie(t,n,K(404,{pathname:u}),{flushSync:a});return}let{path:p,submission:m,error:h}=Ze(!0,u,i);if(h){Ie(t,n,h,{flushSync:a});return}let g=e.getContext?await e.getContext():new C,_=(i&&i.preventScrollReset)===!0;if(m&&J(m.formMethod)){await Ae(t,n,p,d,g,f.active,a,_,m,i&&i.unstable_defaultShouldRevalidate);return}ue.set(t,{routeId:n,path:p}),await je(t,n,p,d,g,f.active,a,_,m)}async function Ae(t,n,i,u,d,f,m,h,g,_){Fe(),ue.delete(t),W(t,en(g,N.fetchers.get(t)),{flushSync:m});let v=new AbortController,y=Tt(e.history,i,v.signal,g);if(f){let e=await ft(u,new URL(y.url).pathname,y.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){Ie(t,n,e.error,{flushSync:m});return}if(e.matches)u=e.matches;else{Ie(t,n,K(404,{pathname:i}),{flushSync:m});return}}let b=Yt(u,i);if(!b.route.action&&!b.route.lazy){Ie(t,n,K(405,{method:g.formMethod,pathname:i,routeId:n}),{flushSync:m});return}z.set(t,v);let x=oe,S=_t(a,o,y,i,u,b,r,d),C=await Ne(y,i,S,d,t),w=C[b.route.id];if(!w){for(let e of S)if(C[e.route.id]){w=C[e.route.id];break}}if(y.signal.aborted){z.get(t)===v&&z.delete(t);return}if(V.has(t)){if(Ht(w)||q(w)){W(t,tn(void 0));return}}else{if(Ht(w)){if(z.delete(t),se>x){W(t,tn(void 0));return}return le.add(t),W(t,$t(g)),Me(y,w,!1,{fetcherSubmission:g,preventScrollReset:h})}if(q(w)){Ie(t,n,w.error);return}}let T=N.navigation.location||N.location,E=Tt(e.history,T,v.signal),D=c||s,O=N.navigation.state===`idle`?N.matches:j(D,N.navigation.location,l);p(O,`Didn't find any matches after fetcher action`);let k=++oe;ce.set(t,k);let A=$t(g,w.data);N.fetchers.set(t,A);let{dsMatches:M,revalidatingFetchers:ee}=Qe(E,d,a,o,e.history,N,O,g,T,r,!1,ie,ae,V,ue,le,D,l,e.patchRoutesOnNavigation!=null,[b.route.id,w],_);ee.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=N.fetchers.get(t),r=$t(void 0,n?n.data:void 0);N.fetchers.set(t,r),G(t),e.controller&&z.set(t,e.controller)}),H({fetchers:new Map(N.fetchers)});let F=()=>ee.forEach(e=>G(e.key));v.signal.addEventListener(`abort`,F);let{loaderResults:I,fetcherResults:te}=await Pe(M,ee,E,T,d);if(v.signal.aborted)return;if(v.signal.removeEventListener(`abort`,F),ce.delete(t),z.delete(t),ee.forEach(e=>z.delete(e.key)),N.fetchers.has(t)){let e=tn(w.data);N.fetchers.set(t,e)}let R=Ft(I);if(R)return Me(E,R.result,!1,{preventScrollReset:h});if(R=Ft(te),R)return le.add(R.key),Me(E,R.result,!1,{preventScrollReset:h});let{loaderData:ne,errors:re}=At(N,O,I,void 0,ee,te);Je(k),N.navigation.state===`loading`&&k>se?(p(P,`Expected pending action`),L&&L.abort(),U(N.navigation.location,{matches:O,loaderData:ne,errors:re,fetchers:new Map(N.fetchers)})):(H({errors:re,loaderData:jt(N.loaderData,ne,O,re),fetchers:new Map(N.fetchers)}),ie=!1)}async function je(t,n,i,s,c,l,u,d,f){let p=N.fetchers.get(t);W(t,$t(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=Tt(e.history,i,m.signal);if(l){let e=await ft(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){Ie(t,n,e.error,{flushSync:u});return}if(e.matches)s=e.matches;else{Ie(t,n,K(404,{pathname:i}),{flushSync:u});return}}let g=Yt(s,i);z.set(t,m);let _=oe,v=(await Ne(h,i,_t(a,o,h,i,s,g,r,c),c,t))[g.route.id];if(z.get(t)===m&&z.delete(t),!h.signal.aborted){if(V.has(t)){W(t,tn(void 0));return}if(Ht(v)){if(se>_){W(t,tn(void 0));return}le.add(t),await Me(h,v,!1,{preventScrollReset:d});return}if(q(v)){Ie(t,n,v.error);return}W(t,tn(v.data))}}async function Me(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:c,replace:u}={}){a||(F?.resolve(),F=null),i.response.headers.has(`X-Remix-Revalidate`)&&(ie=!0);let d=i.response.headers.get(`Location`);p(d,`Expected a Location header on the redirect Response`),d=wt(d,new URL(r.url),l,e.history);let f=_(N.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(fe(d)){let n=x(d,!0);e=n.origin!==t.location.origin||B(n.pathname,l)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}L=null;let m=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:h,formAction:g,formEncType:v}=N.navigation;!o&&!s&&h&&g&&v&&(o=Xt(N.navigation));let y=o||s;Ve.has(i.response.status)&&y&&J(y.formMethod)?await xe(m,f,{submission:{...y,formAction:d},preventScrollReset:c||I,enableViewTransition:a?te:void 0}):await xe(m,f,{overrideNavigation:Zt(f,o),fetcherSubmission:s,preventScrollReset:c||I,enableViewTransition:a?te:void 0})}async function Ne(e,t,n,r,i){let a,o={};try{a=await vt(u,e,t,n,i,r,!1)}catch(e){return n.filter(e=>
1e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!J(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;!a.hasOwnProperty(e.route.id)&&!N.loaderData.hasOwnProperty(e.route.id)&&(!N.errors||!N.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(Vt(r)){let i=r.result;o[t]={type:`redirect`,response:St(i,e,t,n,l)}}else o[t]=await xt(r);return o}async function Pe(e,t,n,r,i){let a=Ne(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await Ne(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:K(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function Fe(){ie=!0,ue.forEach((e,t)=>{z.has(t)&&ae.add(t),G(t)})}function W(e,t,n={}){N.fetchers.set(e,t),H({fetchers:new Map(N.fetchers)},{flushSync:(n&&n.flushSync)===!0})}function Ie(e,t,n,r={}){let i=Nt(N.matches,t);ze(e),H({errors:{[i.route.id]:n},fetchers:new Map(N.fetchers)},{flushSync:(r&&r.flushSync)===!0})}function Le(e){return de.set(e,(de.get(e)||0)+1),V.has(e)&&V.delete(e),N.fetchers.get(e)||Ue}function Re(e,t){G(e,t?.reason),W(e,tn(null))}function ze(e){let t=N.fetchers.get(e);z.has(e)&&!(t&&t.state===`loading`&&ce.has(e))&&G(e),ue.delete(e),ce.delete(e),le.delete(e),V.delete(e),ae.delete(e),N.fetchers.delete(e)}function Be(e){let t=(de.get(e)||0)-1;t<=0?(de.delete(e),V.add(e)):de.set(e,t),H({fetchers:new Map(N.fetchers)})}function G(e,t){let n=z.get(e);n&&(n.abort(t),z.delete(e))}function Ke(e){for(let t of e){let e=tn(Le(t).data);N.fetchers.set(t,e)}}function qe(){let e=[],t=!1;for(let n of le){let r=N.fetchers.get(n);p(r,`Expected fetcher: ${n}`),r.state===`loading`&&(le.delete(n),e.push(n),t=!0)}return Ke(e),t}function Je(e){let t=[];for(let[n,r]of ce)if(r<e){let e=N.fetchers.get(n);p(e,`Expected fetcher: ${n}`),e.state===`loading`&&(G(n),ce.delete(n),t.push(n))}return Ke(t),t.length>0}function Ye(e,t){let n=N.blockers.get(e)||We;return pe.get(e)!==t&&pe.set(e,t),n}function tt(e){N.blockers.delete(e),pe.delete(e)}function nt(e,t){let n=N.blockers.get(e)||We;p(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(N.blockers);r.set(e,t),H({blockers:r})}function rt({currentLocation:e,nextLocation:t,historyAction:n}){if(pe.size===0)return;pe.size>1&&m(!1,`A router only supports one blocker at a time`);let r=Array.from(pe.entries()),[i,a]=r[r.length-1],o=N.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function at(e){let t=K(404,{pathname:e}),{matches:n,route:r}=Pt(c||s);return{notFoundMatches:n,route:r,error:t}}function ot(e,t,n){if(g=e,b=t,v=n||null,!S&&N.navigation===He){S=!0;let e=lt(N.location,N.matches);e!=null&&H({restoreScrollPosition:e})}return()=>{g=null,b=null,v=null}}function st(e,t){return v&&v(e,t.map(e=>ee(e,N.loaderData)))||e.key}function ct(e,t){if(g&&b){let n=st(e,t);g[n]=b()}}function lt(e,t){if(g){let n=st(e,t),r=g[n];if(typeof r==`number`)return r}return null}function ut(t,n,r){if(e.patchRoutesOnNavigation){if(!t)return{active:!0,matches:M(n,r,l,!0)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:M(n,r,l,!0)}}return{active:!1,matches:null}}async function ft(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let u=t;for(;;){let t=c==null,d=c||s,f=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:u,fetcherKey:i,patch:(e,t)=>{r.aborted||it(e,t,d,f,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:u}}finally{t&&!r.aborted&&(s=[...s])}if(r.aborted)return{type:`aborted`};let p=j(d,n,l),m=null;if(p&&(Object.keys(p[0].params).length===0||(m=M(d,n,l,!0),!(m&&u.length<m.length&&pt(u,m.slice(0,u.length))))))return{type:`success`,matches:p};if(m||=M(d,n,l,!0),!m||pt(u,m))return{type:`success`,matches:null};u=m}}function pt(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function mt(e){o={},c=k(e,a,void 0,o)}function ht(e,t,n=!1){let r=c==null;it(e,t,c||s,o,a,n),r&&(s=[...s],H({}))}return A={get basename(){return l},get future(){return d},get state(){return N},get routes(){return s},get window(){return t},initialize:ge,subscribe:ve,enableScrollRestoration:ot,navigate:ye,fetch:De,revalidate:be,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Le,resetFetcher:Re,deleteFetcher:Be,dispose:_e,getBlocker:Ye,deleteBlocker:tt,patchRoutes:ht,_internalFetchControllers:z,_internalSetRoutes:mt,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){H(e)}},e.unstable_instrumentations&&(A=ke(A,e.unstable_instrumentations.map(e=>
1e.router).filter(Boolean))),A}function Ye(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Xe(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=_e(r||`.`,ge(o),B(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Jt(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=ue({basename:n,pathname:c.pathname})),v(c)}function Ze(e,t,n){if(!n||!Ye(n))return{path:t};if(n.formMethod&&!qt(n.formMethod))return{path:t,error:K(405,{method:n.formMethod})};let r=()=>({path:t,error:K(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=It(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!J(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n} 2`,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if(n.formEncType===`application/json`){if(!J(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}p(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=Dt(n.formData),s=n.formData;else if(n.body instanceof FormData)o=Dt(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=Ot(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=Ot(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(J(c.formMethod))return{path:t,submission:c};let l=y(t);return e&&l.search&&Jt(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:v(l),submission:c}}function Qe(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b){let x=y?q(y[1])?y[1].error:y[1].data:void 0,S=i.createURL(a.location),C=i.createURL(c),w;if(u&&a.errors){let e=Object.keys(a.errors)[0];w=o.findIndex(t=>t.route.id===e)}else if(y&&q(y[1])){let e=y[0];w=o.findIndex(t=>t.route.id===e)-1}let T=y?y[1].statusCode:void 0,E=T&&T>=400,D={currentUrl:S,currentParams:a.matches[0]?.params||{},nextUrl:C,nextParams:o[0].params,...s,actionResult:x,actionStatus:T},O=we(o),k=o.map((i,o)=>{let{route:s}=i,f=null;if(w!=null&&o>w)f=!1;else if(s.lazy)f=!0;else if(!$e(s))f=!1;else if(u){let{shouldLoad:e}=et(s,a.loaderData,a.errors);f=e}else tt(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return gt(n,r,e,c,O,i,l,t,f);let p=!1;typeof b==`boolean`?p=b:E?p=!1:d||S.pathname+S.search===C.pathname+C.search?p=!0:S.search===C.search?nt(a.matches[o],i)&&(p=!0):p=!0;let m={...D,defaultShouldRevalidate:p},h=rt(i,m);return gt(n,r,e,c,O,i,l,t,h,m,b)}),A=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,y=j(g,e.path,_);if(!y){if(v&&m)return;A.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let x=Yt(y,e.path),S=new AbortController,C=Tt(i,e.path,S.signal),w=null;if(f.has(s))f.delete(s),w=_t(n,r,C,e.path,y,x,l,t);else if(m)d&&(w=_t(n,r,C,e.path,y,x,l,t));else{let i;i=typeof b==`boolean`?b:!E&&d;let a={...D,defaultShouldRevalidate:i};rt(x,a)&&(w=_t(n,r,C,e.path,y,x,l,t,a))}w&&A.push({key:s,routeId:e.routeId,path:e.path,matches:w,match:x,request:C,controller:S})}),{dsMatches:k,revalidatingFetchers:A}}function $e(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function et(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!$e(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function tt(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function nt(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function rt(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function it(e,t,n,r,i,a){let o;if(e){let t=r[e];p(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n;let s=[],c=[];
2if(t.forEach(e=>{let t=o.find(t=>at(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=k(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=k([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}}function at(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index!==t.index||e.path!==t.path||e.caseSensitive!==t.caseSensitive?!1:(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>at(e,t)))??!1}var ot=new WeakMap,st=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(p(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=ot.get(i);o||(o={},ot.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=T(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)m(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)m(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},ct=new WeakMap;function lt(e,t,n,r,i){let a=n[e.id];if(p(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=ct.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{p(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=D(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?m(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?m(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return ct.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=st({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function ut(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function dt(e){return e.matches.some(e=>e.route.middleware)?ft(e,()=>ut(e)):ut(e)}function ft(e,t){return pt(e,t,e=>{if(Kt(e))throw e;return e},zt,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=Nt(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function pt(e,t,n,r,i){let{matches:a,...o}=e;return await mt(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function mt(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await mt(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function ht(e,t,n,r,i){let a=st({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=lt(r.route,J(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function gt(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=ht(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?rt(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?rt(a,{...l,defaultShouldRevalidate:e}):rt(a,l):c}
2,resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!J(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(J(n.method)||!p)?yt({request:n,path:r,unstable_pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function _t(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?gt(e,t,n,r,we(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:ht(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function vt(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,unstable_url:Et(t,n),unstable_pattern:we(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return ft(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function yt({request:e,path:t,unstable_pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=J(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,unstable_url:Et(e,t),unstable_pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a){if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw K(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}}else if(t)c=await f(t);else{let t=new URL(e.url);throw K(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function bt(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function xt(e){let{result:t,type:n}=e;if(Wt(t)){let e;try{e=await bt(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new Se(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?Ut(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:Rt(t),statusCode:Ce(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Ce(t)?t.status:void 0}:Ut(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function St(e,t,n,r,i){let a=e.headers.get(`Location`);if(p(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!fe(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=Xe(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var Ct=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function wt(e,t,n,r){if(fe(e)){let r=e,i=r.startsWith(`//`)?new URL(t.protocol+r):new URL(r);if(Ct.includes(i.protocol))throw Error(`Invalid redirect location`);let a=B(i.pathname,n)!=null;if(i.origin===t.origin&&a)return ve(i.pathname)+i.search+i.hash}try{let t=r.createURL(e);if(Ct.includes(t.protocol))throw Error(`Invalid redirect location`)}catch{}return e}function Tt(e,t,n,r){let i=e.createURL(It(t)).toString(),a={signal:n};if(r&&J(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):a.body=t===`text/plain`?r.text:t===`application/x-www-form-urlencoded`&&r.formData?Dt(r.formData):r.formData}
2return new Request(i,a)}function Et(e,t){let n=new URL(e.url),r=typeof t==`string`?y(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);n.search=e.size?`?${e.toString()}`:``}else n.search=``;return n.hash=r.hash||``,n}function Dt(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function Ot(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function kt(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&q(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(p(!Ht(f),`Cannot handle redirect results in processLoaderData`),q(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=Nt(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=qe),c||(c=!0,s=Ce(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function At(e,t,n,r,i,a){let{loaderData:o,errors:s}=kt(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let o=a[n];if(p(o,`Did not find corresponding fetcher result`),q(o)){let t=Nt(e.matches,r?.route.id);s&&s[t.route.id]||(s={...s,[t.route.id]:o.error}),e.fetchers.delete(n)}else if(Ht(o))p(!1,`Unhandled fetcher revalidation redirect`);else{let t=tn(o.data);e.fetchers.set(n,t)}}),{loaderData:o,errors:s}}function jt(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==qe).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function Mt(e){return e?q(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Nt(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function Pt(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function K(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Se(e||500,o,Error(s),!0)}function Ft(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Ht(r))return{key:n,result:r}}}function It(e){return v({...typeof e==`string`?y(e):e,hash:``})}function Lt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function Rt(e){return new Se(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function zt(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&Bt(t))}function Bt(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function Vt(e){return Wt(e.result)&&G.has(e.result.status)}function q(e){return e.type===`error`}function Ht(e){return(e&&e.type)===`redirect`}function Ut(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function Wt(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Gt(e){return G.has(e)}function Kt(e){return Wt(e)&&Gt(e.status)&&e.headers.has(`Location`)}function qt(e){return Be.has(e.toUpperCase())}function J(e){return Re.has(e.toUpperCase())}function Jt(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Yt(e,t){let n=typeof t==`string`?y(t).search:t.search;if(e[e.length-1].route.index&&Jt(n||``))return e[e.length-1];let r=he(e);return r[r.length-1]}function Xt(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(t&&n&&r){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Zt(e,t){return t?{state:`loading`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:`loading`,location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Qt(e,t){return{state:`submitting`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function $t(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function en(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function tn(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function nn(e,t){try{let n=e.sessionStorage.getItem(Ke);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function rn(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Ke,JSON.stringify(n))}catch(e){m(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function an(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var on=a.createContext(null);on.displayName=`DataRouter`;var sn=a.createContext(null);sn.displayName=`DataRouterState`;var cn=a.createContext(!1);function ln(){return a.useContext(cn)}var un=a.createContext({isTransitioning:!1});un.displayName=`ViewTransition`;var dn=a.createContext(new Map);dn.displayName=`Fetchers`;var fn=a.createContext(null);fn.displayName=`Await`;var Y=a.createContext(null);Y.displayName=`Navigation`;var pn=a.createContext(null);pn.displayName=`Location`;var X=a.createContext({outlet:null,matches:[],isDataRoute:!1});X.displayName=`Route`;var mn=a.createContext(null);mn.displayName=`RouteError`;
2var hn=`REACT_ROUTER_ERROR`,gn=`REDIRECT`,_n=`ROUTE_ERROR_RESPONSE`;function vn(e){if(e.startsWith(`${hn}:${gn}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function yn(e){if(e.startsWith(`${hn}:${_n}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Se(t.status,t.statusText,t.data)}catch{}}function bn(e,{relative:t}={}){p(xn(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=a.useContext(Y),{hash:i,pathname:o,search:s}=An(e,{relative:t}),c=o;return n!==`/`&&(c=o===`/`?n:H([n,o])),r.createHref({pathname:c,search:s,hash:i})}function xn(){return a.useContext(pn)!=null}function Z(){return p(xn(),`useLocation() may be used only in the context of a <Router> component.`),a.useContext(pn).location}function Sn(){return a.useContext(pn).navigationType}var Cn=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function wn(e){a.useContext(Y).static||a.useLayoutEffect(e)}function Tn(){let{isDataRoute:e}=a.useContext(X);return e?Jn():En()}function En(){p(xn(),`useNavigate() may be used only in the context of a <Router> component.`);let e=a.useContext(on),{basename:t,navigator:n}=a.useContext(Y),{matches:r}=a.useContext(X),{pathname:i}=Z(),o=JSON.stringify(ge(r)),s=a.useRef(!1);return wn(()=>{s.current=!0}),a.useCallback((r,a={})=>
2{if(m(s.current,Cn),!s.current)return;if(typeof r==`number`){n.go(r);return}let c=_e(r,JSON.parse(o),i,a.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:H([t,c.pathname])),(a.replace?n.replace:n.push)(c,a.state,a)},[t,n,o,i,e])}var Dn=a.createContext(null);function On(e){let t=a.useContext(X).outlet;return a.useMemo(()=>t&&a.createElement(Dn.Provider,{value:e},t),[t,e])}function kn(){let{matches:e}=a.useContext(X),t=e[e.length-1];return t?t.params:{}}function An(e,{relative:t}={}){let{matches:n}=a.useContext(X),{pathname:r}=Z(),i=JSON.stringify(ge(n));return a.useMemo(()=>_e(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function jn(e,t,n){p(xn(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=a.useContext(Y),{matches:i}=a.useContext(X),o=i[i.length-1],s=o?o.params:{},c=o?o.pathname:`/`,l=o?o.pathnameBase:`/`,u=o&&o.route;{let e=u&&u.path||``;Xn(c,!u||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) 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. 3 4Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let d=Z(),f;if(t){let e=typeof t==`string`?y(t):t;p(l===`/`||e.pathname?.startsWith(l),`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 "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=d;let h=f.pathname||`/`,g=h;if(l!==`/`){let e=l.replace(/^\//,``).split(`/`);g=`/`+h.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let _=j(e,{pathname:g});m(u||_!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),m(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.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(_&&_.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:H([l,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?l:H([l,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&v?a.createElement(pn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,unstable_mask:void 0,...f},navigationType:`POP`}},v):v}function Mn(){let e=Gn(),t=Ce(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},o={padding:`2px 4px`,backgroundColor:r},s=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),s=a.createElement(a.Fragment,null,a.createElement(`p`,null,`ð¿ Hey developer ð`),a.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,a.createElement(`code`,{style:o},`ErrorBoundary`),` or`,` `,a.createElement(`code`,{style:o},`errorElement`),` prop on your route.`)),a.createElement(a.Fragment,null,a.createElement(`h2`,null,`Unexpected Application Error!`),a.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?a.createElement(`pre`,{style:i},n):null,s)}var Nn=a.createElement(Mn,null),Pn=class extends a.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?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=yn(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:a.createElement(X.Provider,{value:this.props.routeContext},a.createElement(mn.Provider,{value:e,children:this.props.component}));return this.context?a.createElement(In,{error:e},t):t}};Pn.contextType=cn;var Fn=new WeakMap;function In({children:e,error:t}){let{basename:n}=a.useContext(Y);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=vn(t.digest);if(e){let r=Fn.get(t);if(r)throw r;let i=Ee(e.location,n);if(Te&&!Fn.get(t)){if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw Fn.set(t,n),n}}return a.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Ln({routeContext:e,match:t,children:n}){let r=a.useContext(on);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(X.Provider,{value:e},n)}function Rn(e,t=[],n){let r=n?.state;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 i=e,o=r?.errors;if(o!=null){let e=i.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);p(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,c=-1;if(n&&r){s=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:a}
4=r,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||o){n.isStatic&&(s=!0),i=c>=0?i.slice(0,c+1):[i[0]];break}}}}let l=n?.onError,u=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:we(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,l)=>{let d,f=!1,p=null,m=null;r&&(d=o&&n.route.id?o[n.route.id]:void 0,p=n.route.errorElement||Nn,s&&(c<0&&l===0?(Xn(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):c===l&&(f=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,l+1)),g=()=>{let t;return t=d?p:f?m:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(Ln,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||l===0)?a.createElement(Pn,{location:r.location,revalidation:r.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):g()},null)}function zn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bn(e){let t=a.useContext(on);return p(t,zn(e)),t}function Vn(e){let t=a.useContext(sn);return p(t,zn(e)),t}function Hn(e){let t=a.useContext(X);return p(t,zn(e)),t}function Un(e){let t=Hn(e),n=t.matches[t.matches.length-1];return p(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Wn(){return Un(`useRouteId`)}function Gn(){let e=a.useContext(mn),t=Vn(`useRouteError`),n=Un(`useRouteError`);return e===void 0?t.errors?.[n]:e}var Kn=0;function qn(e){let{router:t,basename:n}=Bn(`useBlocker`),r=Vn(`useBlocker`),[i,o]=a.useState(``),s=a.useCallback(t=>{if(typeof e!=`function`)return!!e;if(n===`/`)return e(t);let{currentLocation:r,nextLocation:i,historyAction:a}=t;return e({currentLocation:{...r,pathname:B(r.pathname,n)||r.pathname},nextLocation:{...i,pathname:B(i.pathname,n)||i.pathname},historyAction:a})},[n,e]);return a.useEffect(()=>{let e=String(++Kn);return o(e),()=>t.deleteBlocker(e)},[t]),a.useEffect(()=>{i!==``&&t.getBlocker(i,s)},[t,i,s]),i&&r.blockers.has(i)?r.blockers.get(i):We}function Jn(){let{router:e}=Bn(`useNavigate`),t=Un(`useNavigate`),n=a.useRef(!1);return wn(()=>{n.current=!0}),a.useCallback(async(r,i={})=>{m(n.current,Cn),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Yn={};function Xn(e,t,n){!t&&!Yn[e]&&(Yn[e]=!0,m(!1,n))}var Zn={};function Qn(e,t){!e&&!Zn[t]&&(Zn[t]=!0,console.warn(t))}var $n=a.useOptimistic,er=()=>void 0;function tr(e){return $n?$n(e):[e,er]}function nr(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&m(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:a.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&m(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&m(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var rr=[`HydrateFallback`,`hydrateFallbackElement`],ir=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function ar({router:e,flushSync:t,onError:n,unstable_useTransitions:r}){r=ln()||r;let[i,o]=a.useState(e.state),[s,c]=tr(i),[l,u]=a.useState(),[d,f]=a.useState({isTransitioning:!1}),[p,m]=a.useState(),[h,g]=a.useState(),[_,v]=a.useState(),y=a.useRef(new Map),b=a.useCallback((i,{deletedFetchers:s,newErrors:l,flushSync:d,viewTransitionOpts:_})=>
4{l&&n&&Object.values(l).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},unstable_pattern:we(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&y.current.set(t,e.data)}),s.forEach(e=>y.current.delete(e)),Qn(d===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let b=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(Qn(_==null||b,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!_||!b){t&&d?t(()=>o(i)):r===!1?o(i):a.startTransition(()=>{r===!0&&c(e=>or(e,i)),o(i)});return}if(t&&d){t(()=>{h&&(p?.resolve(),h.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:_.currentLocation,nextLocation:_.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>o(i))});n.finished.finally(()=>{t(()=>{m(void 0),g(void 0),u(void 0),f({isTransitioning:!1})})}),t(()=>g(n));return}h?(p?.resolve(),h.skipTransition(),v({state:i,currentLocation:_.currentLocation,nextLocation:_.nextLocation})):(u(i),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}))},[e.window,t,h,p,r,c,n]);a.useLayoutEffect(()=>e.subscribe(b),[e,b]);let x=s.initialized;a.useLayoutEffect(()=>{!x&&e.state.initialized&&b(e.state,{deletedFetchers:[],flushSync:!1,newErrors:null})},[x,b,e.state]),a.useEffect(()=>{d.isTransitioning&&!d.flushSync&&m(new ir)},[d]),a.useEffect(()=>{if(p&&l&&e.window){let t=l,n=p.promise,i=e.window.document.startViewTransition(async()=>{r===!1?o(t):a.startTransition(()=>{r===!0&&c(e=>or(e,t)),o(t)}),await n});i.finished.finally(()=>{m(void 0),g(void 0),u(void 0),f({isTransitioning:!1})}),g(i)}},[l,p,e.window,r,c]),a.useEffect(()=>{p&&l&&s.location.key===l.location.key&&p.resolve()},[p,h,s.location,l]),a.useEffect(()=>{!d.isTransitioning&&_&&(u(_.state),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),v(void 0))},[d.isTransitioning,_]);let S=a.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),C=e.basename||`/`,w=a.useMemo(()=>({router:e,navigator:S,static:!1,basename:C,onError:n}),[e,S,C,n]);return a.createElement(a.Fragment,null,a.createElement(on.Provider,{value:w},a.createElement(sn.Provider,{value:s},a.createElement(dn.Provider,{value:y.current},a.createElement(un.Provider,{value:d},a.createElement(fr,{basename:C,location:s.location,navigationType:s.historyAction,navigator:S,unstable_useTransitions:r},a.createElement(sr,{routes:e.routes,future:e.future,state:s,isStatic:!1,onError:n})))))),null)}function or(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var sr=a.memo(cr);function cr({routes:e,future:t,state:n,isStatic:r,onError:i}){return jn(e,void 0,{state:n,isStatic:r,onError:i,future:t})}function lr({to:e,replace:t,state:n,relative:r}){p(xn(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=a.useContext(Y);m(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=a.useContext(X),{pathname:s}=Z(),c=Tn(),l=_e(e,ge(o),s,r===`path`),u=JSON.stringify(l);return a.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function ur(e){return On(e.context)}function dr(e){p(!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 fr({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:o=!1,unstable_useTransitions:s}){p(!xn(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let c=e.replace(/^\/*/,`/`),l=a.useMemo(()=>({basename:c,navigator:i,static:o,unstable_useTransitions:s,future:{}}),[c,i,o,s]);typeof n==`string`&&(n=y(n));let{pathname:u=`/`,search:d=``,hash:f=``,state:h=null,key:g=`default`,unstable_mask:_}=n,v=a.useMemo(()=>{let e=B(u,c);return e==null?null:{location:{pathname:e,search:d,hash:f,state:h,key:g,unstable_mask:_},navigationType:r}},[c,u,d,f,h,g,r,_]);
4return m(v!=null,`<Router basename="${c}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:a.createElement(Y.Provider,{value:l},a.createElement(pn.Provider,{children:t,value:v}))}a.Component;function pr(e,t=[]){let n=[];return a.Children.forEach(e,(e,r)=>{if(!a.isValidElement(e))return;let i=[...t,r];if(e.type===a.Fragment){n.push.apply(n,pr(e.props.children,i));return}p(e.type===dr,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),p(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let o={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=pr(e.props.children,i)),n.push(o)}),n}var mr=`get`,hr=`application/x-www-form-urlencoded`;function gr(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function _r(e){return gr(e)&&e.tagName.toLowerCase()===`button`}function vr(e){return gr(e)&&e.tagName.toLowerCase()===`form`}function yr(e){return gr(e)&&e.tagName.toLowerCase()===`input`}function br(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xr(e,t){return e.button===0&&(!t||t===`_self`)&&!br(e)}function Sr(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Cr(e,t){let n=Sr(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var wr=null;function Tr(){if(wr===null)try{new FormData(document.createElement(`form`),0),wr=!1}catch{wr=!0}return wr}var Er=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Dr(e){return e!=null&&!Er.has(e)?(m(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hr}"`),null):e}function Or(e,t){let n,r,i,a,o;if(vr(e)){let o=e.getAttribute(`action`);r=o?B(o,t):null,n=e.getAttribute(`method`)||mr,i=Dr(e.getAttribute(`enctype`))||hr,a=new FormData(e)}else if(_r(e)||yr(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?B(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||mr,i=Dr(e.getAttribute(`formenctype`))||Dr(o.getAttribute(`enctype`))||hr,a=new FormData(o,e),!Tr()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(gr(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=mr,r=null,i=hr,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function kr(e,t){if(e===!1||e==null)throw Error(t)}function Ar(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&B(i.pathname,t)===`/`?`${U(t)}/_root.${r}`:`${U(i.pathname)}.${r}`,i}async function jr(e,t){if(e.id in t)return t[e.id];try{let n=await r(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.
4isSpaMode,window.location.reload(),new Promise(()=>{})}}function Mr(e){return e!=null&&typeof e.page==`string`}function Nr(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 Pr(e,t,n){return zr((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await jr(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Nr).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Fr(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Ir(e,t,{includeHydrateFallback:n}={}){return Lr(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Lr(e){return[...new Set(e)]}function Rr(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function zr(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Mr(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Rr(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Br(){let e=a.useContext(on);return kr(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Vr(){let e=a.useContext(sn);return kr(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Hr=a.createContext(void 0);Hr.displayName=`FrameworkContext`;function Ur(){let e=a.useContext(Hr);return kr(e,`You must render this element inside a <HydratedRouter> element`),e}function Wr(e,t){let n=a.useContext(Hr),[r,i]=a.useState(!1),[o,s]=a.useState(!1),{onFocus:c,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=a.useRef(null);a.useEffect(()=>{if(e===`render`&&s(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),a.useEffect(()=>{if(r){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{i(!0)},h=()=>{i(!1),s(!1)};return n?e===`intent`?[o,p,{onFocus:Gr(c,m),onBlur:Gr(l,h),onMouseEnter:Gr(u,m),onMouseLeave:Gr(d,h),onTouchStart:Gr(f,m)}]:[o,p,{}]:[!1,p,{}]}function Gr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Kr({page:e,...t}){let n=ln(),{router:r}=Br(),i=a.useMemo(()=>j(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?a.createElement(Jr,{page:e,matches:i,...t}):a.createElement(Yr,{page:e,matches:i,...t}):null}function qr(e){let{manifest:t,routeModules:n}=Ur(),[r,i]=a.useState([]);return a.useEffect(()=>{let r=!1;return Pr(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Jr({page:e,matches:t,...n}){let r=Z(),{future:i}=Ur(),{basename:o}=Br(),s=a.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Ar(e,o,i.unstable_trailingSlashAwareDataRequests,`rsc`),a=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?a=!0:s.push(e.route.id);return a&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[o,i.unstable_trailingSlashAwareDataRequests,e,r,t]);return a.createElement(a.Fragment,null,s.map(e=>a.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Yr({page:e,matches:t,...n}){let r=Z(),{future:i,manifest:o,routeModules:s}=Ur(),{basename:c}=Br(),{loaderData:l,matches:u}=Vr(),d=a.useMemo(()=>Fr(e,t,u,o,r,`data`),[e,t,u,o,r]),f=a.useMemo(()=>Fr(e,t,u,o,r,`assets`),[e,t,u,o,r]),p=a.useMemo(()=>
4{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,a=!1;if(t.forEach(e=>{let t=o.routes[e.route.id];t&&t.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in l&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?a=!0:n.add(e.route.id))}),n.size===0)return[];let u=Ar(e,c,i.unstable_trailingSlashAwareDataRequests,`data`);return a&&n.size>0&&u.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[u.pathname+u.search]},[c,i.unstable_trailingSlashAwareDataRequests,l,r,o,d,t,e,s]),m=a.useMemo(()=>Ir(f,o),[f,o]),h=qr(f);return a.createElement(a.Fragment,null,p.map(e=>a.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),m.map(e=>a.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),h.map(({key:e,link:t})=>a.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Xr(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}a.Component;var Zr=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Zr&&(window.__reactRouterVersion=`7.14.1`)}catch{}function Qr(e,t){return Je({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:f({window:t?.window}),hydrationData:t?.hydrationData||$r(),routes:e,mapRouteProperties:nr,hydrationRouteProperties:rr,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function $r(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:ei(e.errors)}),e}function ei(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new Se(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(r.__subType){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}function ti({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=a.useRef();i.current??=f({window:r,v5Compat:!0});let o=i.current,[s,c]=a.useState({action:o.action,location:o.location}),l=a.useCallback(e=>{n===!1?c(e):a.startTransition(()=>c(e))},[n]);return a.useLayoutEffect(()=>o.listen(l),[o,l]),a.createElement(fr,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o,unstable_useTransitions:n})}var ni=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ri=a.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:o,unstable_mask:s,state:c,target:l,to:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:p,...m},h){let{basename:g,navigator:_,unstable_useTransitions:v}=a.useContext(Y),y=typeof u==`string`&&ni.test(u),b=Ee(u,g);u=b.to;let x=bn(u,{relative:r}),S=Z(),C=null;if(s){let e=_e(s,[],S.unstable_mask?S.unstable_mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:H([g,e.pathname])),C=_.createHref(e)}let[w,T,E]=Wr(n,m),D=ci(u,{replace:o,unstable_mask:s,state:c,target:l,preventScrollReset:d,relative:r,viewTransition:f,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(b.isExternal||i),A=a.createElement(`a`,{...m,...E,href:(k?C:void 0)||b.absoluteURL||x,onClick:k?O:e,ref:Xr(h,T),target:l,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?a.createElement(a.Fragment,null,A,a.createElement(Kr,{page:x})):A});ri.displayName=`Link`;var ii=a.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:o,viewTransition:s,children:c,...l},u){let d=An(o,{relative:l.relative}),f=Z(),p=a.useContext(sn),{navigator:m,basename:h}=a.useContext(Y),g=p!=null&&mi(d)&&s===!0,_=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,v=f.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=B(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(
4Boolean).join(` `);let E=typeof i==`function`?i(C):i;return a.createElement(ri,{...l,"aria-current":w,className:T,ref:u,style:E,to:o,viewTransition:s},typeof c==`function`?c(C):c)});ii.displayName=`NavLink`;var ai=a.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:s=mr,action:c,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:p,...m},h)=>{let{unstable_useTransitions:g}=a.useContext(Y),_=fi(),v=pi(c,{relative:u}),y=s.toLowerCase()===`get`?`get`:`post`,b=typeof c==`string`&&ni.test(c);return a.createElement(`form`,{ref:h,method:y,action:v,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,c=r?.getAttribute(`formmethod`)||s,m=()=>_(r||e.currentTarget,{fetcherKey:t,method:c,navigate:n,replace:i,state:o,relative:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:p});g&&n!==!1?a.startTransition(()=>m()):m()},...m,"data-discover":!b&&e===`render`?`true`:void 0})});ai.displayName=`Form`;function oi(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function si(e){let t=a.useContext(on);return p(t,oi(e)),t}function ci(e,{target:t,replace:n,unstable_mask:r,state:i,preventScrollReset:o,relative:s,viewTransition:c,unstable_defaultShouldRevalidate:l,unstable_useTransitions:u}={}){let d=Tn(),f=Z(),p=An(e,{relative:s});return a.useCallback(m=>{if(xr(m,t)){m.preventDefault();let t=n===void 0?v(f)===v(p):n,h=()=>d(e,{replace:t,unstable_mask:r,state:i,preventScrollReset:o,relative:s,viewTransition:c,unstable_defaultShouldRevalidate:l});u?a.startTransition(()=>h()):h()}},[f,d,p,n,r,i,t,e,o,s,c,l,u])}function li(e){m(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=a.useRef(Sr(e)),n=a.useRef(!1),r=Z(),i=a.useMemo(()=>Cr(r.search,n.current?null:t.current),[r.search]),o=Tn();return[i,a.useCallback((e,t)=>{let r=Sr(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,o(`?`+r,t)},[o,i])]}var ui=0,di=()=>`__${String(++ui)}__`;function fi(){let{router:e}=si(`useSubmit`),{basename:t}=a.useContext(Y),n=Wn(),r=e.fetch,i=e.navigate;return a.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Or(e,t);if(a.navigate===!1){let e=a.fetcherKey||di();await r(e,n,a.action||o,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function pi(e,{relative:t}={}){let{basename:n}=a.useContext(Y),r=a.useContext(X);p(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),o={...An(e||`.`,{relative:t})},s=Z();if(e==null){o.search=s.search;let e=new URLSearchParams(o.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();o.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(o.pathname=o.pathname===`/`?n:H([n,o.pathname])),v(o)}function mi(e,{relative:t}={}){let n=a.useContext(un);p(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=si(`useViewTransitionState`),i=An(e,{relative:t});if(!n.isTransitioning)return!1;let o=B(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=B(n.nextLocation.pathname,r)||n.nextLocation.pathname;return se(i.pathname,s)!=null||se(i.pathname,o)!=null}var hi=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),gi=t(((e,t)=>{t.exports=hi()}));function _i(e,t){if(typeof e==`function`)return e(t);
vendor: 16,890 bytes, line 4
4e!=null&&(e.current=t)}function vi(...e){return t=>{let n=!1,r=e.map(e=>{let r=_i(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():_i(e[t],null)}}}}function yi(...e){return a.useCallback(vi(...e),e)}function bi(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=bi(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function xi(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=bi(e))&&(r&&(r+=` `),r+=t);return r}var Si=`-`,Ci=e=>{let t=Di(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split(Si);return n[0]===``&&n.length!==1&&n.shift(),wi(n,t)||Ei(e)},getConflictingClassGroupIds:(e,t)=>{let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},wi=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?wi(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(Si);return t.validators.find(({validator:e})=>e(a))?.classGroupId},Ti=/^\[(.+)\]$/,Ei=e=>{if(Ti.test(e)){let t=Ti.exec(e)[1],n=t?.substring(0,t.indexOf(`:`));if(n)return`arbitrary..`+n}},Di=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ji(Object.entries(e.classGroups),n).forEach(([e,n])=>{Oi(n,r,e,t)}),r},Oi=(e,t,n,r)=>{e.forEach(e=>{if(typeof e==`string`){let r=e===``?t:ki(t,e);r.classGroupId=n;return}if(typeof e==`function`){if(Ai(e)){Oi(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,i])=>{Oi(i,ki(t,e),n,r)})})},ki=(e,t)=>{let n=e;return t.split(Si).forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Ai=e=>e.isThemeGetter,ji=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>typeof e==`string`?t+e:typeof e==`object`?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,Mi=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);if(t!==void 0)return t;if((t=r.get(e))!==void 0)return i(e,t),t},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},Ni=`!`,Pi=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],a=t.length,o=e=>{let n=[],o=0,s=0,c;for(let l=0;l<e.length;l++){let u=e[l];if(o===0){if(u===i&&(r||e.slice(l,l+a)===t)){n.push(e.slice(s,l)),s=l+a;continue}if(u===`/`){c=l;continue}}u===`[`?o++:u===`]`&&o--}let l=n.length===0?e:e.substring(s),u=l.startsWith(Ni);return{modifiers:n,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:c&&c>s?c-s:void 0}};return n?e=>n({className:e,parseClassName:o}):o},Fi=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{e[0]===`[`?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},Ii=e=>({cache:Mi(e.cacheSize),parseClassName:Pi(e),...Ci(e)}),Li=/\s+/,Ri=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(Li),s=``;for(let e=o.length-1;e>=0;--e){let t=o[e],{modifiers:c,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:d}=n(t),f=!!d,p=r(f?u.substring(0,d):u);if(!p){if(!f){s=t+(s.length>0?` `+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?` `+s:s);continue}f=!1}let m=Fi(c).join(`:`),h=l?m+Ni:m,g=h+p;if(a.includes(g))continue;a.push(g);let _=i(p,f);for(let e=0;e<_.length;++e){let t=_[e];a.push(h+t)}s=t+(s.length>0?` `+s:s)}return s};function zi(){let e=0,t,n,r=``;for(;e<arguments.length;)(t=arguments[e++])&&(n=Bi(t))&&(r&&(r+=` `),r+=n);return r}var Bi=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Bi(e[r]))&&(n&&(n+=` `),n+=t);return n};function Vi(e,...t){let n,r,i,a=o;function o(o){return n=Ii(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)}function s(e){let t=r(e);if(t)return t;let a=Ri(e,n);return i(e,a),a}return function(){return a(zi.apply(null,arguments))}}var Q=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},Hi=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ui=/^\d+\/\d+$/,Wi=new Set([`px`,`full`,`screen`]),Gi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ki=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ji=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xi=e=>Qi(e)||Wi.has(e)||Ui.test(e),Zi=e=>ua(e,`length`,da),Qi=e=>!!e&&!Number.isNaN(Number(e)),$i=e=>ua(e,`number`,Qi),ea=e=>!!e&&Number.isInteger(Number(e)),ta=e=>e.endsWith(`%`)&&Qi(e.slice(0,-1)),$=e=>Hi.test(e),na=e=>Gi.test(e),ra=new Set([`length`,`size`,`percentage`]),ia=e=>ua(e,ra,fa),aa=e=>ua(e,`position`,fa),oa=new Set([`image`,`url`]),sa=e=>ua(e,oa,ma),ca=e=>ua(e,``,pa),la=()=>!0,ua=(e,t,n)=>{let r=Hi.exec(e);return r?r[1]?typeof t==`string`?r[1]===t:t.has(r[1]):n(r[2]):!1},da=e=>Ki.test(e)&&!qi.test(e),fa=()=>!1,pa=e=>Ji.test(e),ma=e=>Yi.test(e),ha=Vi(()=>{let e=Q(`colors`),t=Q(`spacing`),n=Q(`blur`),r=Q(`brightness`),i=Q(`borderColor`),a=Q(`borderRadius`),o=Q(`borderSpacing`),s=Q(`borderWidth`),c=Q(`contrast`),l=Q(`grayscale`),u=Q(`hueRotate`),d=Q(`invert`),f=Q(`gap`),p=Q(`gradientColorStops`),m=Q(`gradientColorStopPositions`),h=Q(`inset`),g=Q(`margin`),_=Q(`opacity`),v=Q(`padding`),y=Q(`saturate`),b=Q(`scale`),x=Q(`sepia`),S=Q(`skew`),C=Q(`space`),w=Q(`translate`),T=()=>[`auto`,`contain`,`none`],E=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],D=()=>[`auto`,$,t],O=()=>[$,t],k=()=>[``,Xi,Zi],A=()=>[`auto`,Qi,$],j=()=>[`bottom`,`center`,`left`,`left-bottom`,`left-top`,`right`,`right-bottom`,`right-top`,`top`],M=()=>[`solid`,`dashed`,`dotted`,`double`,`none`],ee=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],N=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`],P=()=>[``,`0`,$],F=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],I=()=>[Qi,$];return{cacheSize:500,separator:`:`,theme:{colors:[la],spacing:[Xi,Zi],blur:[`none`,``,na,$],brightness:I(),borderColor:[e],borderRadius:[`none`,``,`full`,na,$],borderSpacing:O(),borderWidth:k(),contrast:I(),grayscale:P(),hueRotate:I(),invert:P(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[ta,Zi],inset:D(),margin:D(),opacity:I(),padding:O(),saturate:I(),scale:I(),sepia:P(),skew:I(),space:O(),translate:O()},classGroups:{aspect:[{aspect:[`auto`,`square`,`video`,$]}],container:[`container`],columns:[{columns:[na]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:[...j(),$]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[`auto`,ea,$]}],basis:[{basis:D()}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`wrap`,`wrap-reverse`,`nowrap`]}],flex:[{flex:[`1`,`auto`,`initial`,`none`,$]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:[`first`,`last`,`none`,ea,$]}],"grid-cols":[{"grid-cols":[la]}],"col-start-end":[{col:[`auto`,{span:[`full`,ea,$]},$]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[la]}],"row-start-end":[{row:[`auto`,{span:[ea,$]},$]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":[`auto`,`min`,`max`,`fr`,$]}],"auto-rows":[{"auto-rows":[`auto`,`min`,`max`,`fr`,$]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:[`normal`,...N()]}],"justify-items":[{"justify-items":[`start`,`end`,`center`,`stretch`]}],"justify-self":[{"justify-self":[`auto`,`start`,`end`,`center`,`stretch`]}],"align-content":[{content:[`normal`,...N(),`baseline`]}],"align-items":[{items:[`start`,`end`,`center`,`baseline`,`stretch`]}],"align-self":[{self:[`auto`,`start`,`end`,`center`,`stretch`,`baseline`]}],"place-content":[{"place-content":[...N(),`baseline`]}],"place-items":[{"place-items":[`start`,`end`,`center`,`baseline`,`stretch`]}],"place-self":[{"place-self":[`auto`,`start`,`end`,`center`,`stretch`]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":[C]}],"space-y-reverse":[`space-y-reverse`],w:[{w:[`auto`,`min`,`max`,`fit`,`svw`,`lvw`,`dvw`,$,t]}],"min-w":[{"min-w":[$,t,`min`,`max`,`fit`]}],"max-w":[{"max-w":[$,t,`none`,`full`,`min`,`max`,`fit`,`prose`,{screen:[na]},na]}],h:[{h:[$,t,`auto`,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],"min-h":[{"min-h":[$,t,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],"max-h":[{"max-h":[$,t,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],size:[{size:[$,t,`auto`,`min`,`max`,`fit`]}],"font-size":[{text:[`base`,na,Zi]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`,$i]}],"font-family":[{font:[la]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`,$]}],"line-clamp":[{"line-clamp":[`none`,Qi,$i]}],leading:[{leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`,Xi,$]}],"list-image":[{"list-image":[`none`,$]}],"list-style-type":[{list:[`none`,`disc`,`decimal`,$]}],"list-style-position":[{list:[`inside`,`outside`]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...M(),`wavy`]}],"text-decoration-thickness":[{decoration:[`auto`,`from-font`,Xi,Zi]}],"underline-offset":[{"underline-offset":[`auto`,Xi,$]}],"text-decoration-color":[{decoration:[e]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:O()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:[...j(),aa]}],"bg-repeat":[{bg:[`no-repeat`,{repeat:[``,`x`,`y`,`round`,`space`]}]}],"bg-size":[{bg:[`auto`,`cover`,`contain`,ia]}],"bg-image":[{bg:[`none`,{"gradient-to":[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},sa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...M(),`hidden`]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":[`divide-y-reverse`],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:M()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[``,...M()]}],"outline-offset":[{"outline-offset":[Xi,$]}],"outline-w":[{outline:[Xi,Zi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:k()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[Xi,Zi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:[``,`inner`,`none`,na,ca]}],"shadow-color":[{shadow:[la]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...ee(),`plus-lighter`,`plus-darker`]}],"bg-blend":[{"bg-blend":ee()}],filter:[{filter:[``,`none`]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":[``,`none`,na,$]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":[``,`none`]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[`none`,`all`,``,`colors`,`opacity`,`shadow`,`transform`,$]}],duration:[{duration:I()}],ease:[{ease:[`linear`,`in`,`out`,`in-out`,$]}],delay:[{delay:I()}],animate:[{animate:[`none`,`spin`,`ping`,`pulse`,`bounce`,$]}],transform:[{transform:[``,`gpu`,`none`]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[ea,$]}],"translate-x":[{"translate-x":[w]}],"translate-y":[{"translate-y":[w]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:[`center`,`top`,`top-right`,`right`,`bottom-right`,`bottom`,`bottom-left`,`left`,`top-left`,$]}],accent:[{accent:[`auto`,e]}],appearance:[{appearance:[`none`,`auto`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom
4-in`,`zoom-out`,$]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":[`none`,`auto`]}],resize:[{resize:[`none`,`y`,`x`,``]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$]}],fill:[{fill:[e,`none`]}],"stroke-w":[{stroke:[Xi,Zi,$i]}],stroke:[{stroke:[e,`none`]}],sr:[`sr-only`,`not-sr-only`],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-s`,`border-w-e`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-s`,`border-color-e`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]}}});function ga(...e){return ha(xi(e))}export{li as S,Z as _,gi as a,kn as b,ii as c,ar as d,Qr as f,qn as g,j as h,yi as i,lr as l,Ce as m,xi as n,ti as o,pr as p,vi as r,ri as s,ga as t,ur as u,Tn as v,Gn as x,Sn as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.