@takeokunn/gbrainx 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -2
  3. package/dist/core.mjs +1346 -0
  4. package/dist/gbrainx.mjs +7097 -0
  5. package/dist/web/client/assets/api-BvRk9kiK.js +0 -0
  6. package/dist/web/client/assets/demo-G0WCPBHC.js +10 -0
  7. package/dist/web/client/assets/entry.client-BMJZABtH.js +9 -0
  8. package/dist/web/client/assets/gbrainx-DfnQgPxe.js +49 -0
  9. package/dist/web/client/assets/health-BvRk9kiK.js +0 -0
  10. package/dist/web/client/assets/home-DSGr2mzJ.js +7 -0
  11. package/dist/web/client/assets/i18n-CbBRRmtS.js +1 -0
  12. package/dist/web/client/assets/jsx-runtime-C8YK_IxR.js +16 -0
  13. package/dist/web/client/assets/lib-C32AnKSP.js +1 -0
  14. package/dist/web/client/assets/manifest-813cc1a4.js +1 -0
  15. package/dist/web/client/assets/root-C-cLqVHP.js +1 -0
  16. package/dist/web/client/assets/root-D4kqIC2S.css +2 -0
  17. package/dist/web/client/assets/root-i18n-_0Yddpt_.js +1 -0
  18. package/dist/web/client/assets/sell-CxnwvqXu.css +1 -0
  19. package/dist/web/client/assets/sell-DbbNBdAa.js +1 -0
  20. package/dist/web/client/assets/use-lp-language-ij45BzB4.js +1 -0
  21. package/dist/web/client/avatars/aiko.svg +7 -0
  22. package/dist/web/client/avatars/daniel.svg +7 -0
  23. package/dist/web/client/avatars/ken.svg +7 -0
  24. package/dist/web/client/avatars/leo.svg +7 -0
  25. package/dist/web/client/avatars/yui.svg +7 -0
  26. package/dist/web/client/demo.mp4 +0 -0
  27. package/dist/web/client/favicon.ico +0 -0
  28. package/dist/web/server/assets/cloudflare-context-CIZdXilT.js +3426 -0
  29. package/dist/web/server/assets/rolldown-runtime-nwr4M8im.js +34 -0
  30. package/dist/web/server/assets/server-build-2JeuoODN.css +2 -0
  31. package/dist/web/server/assets/server-build-B915Unu9.js +22845 -0
  32. package/package.json +13 -4
@@ -0,0 +1,16 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&(s=n(i,c),t(e,c,{get:s&&s.get&&!s.configurable?s.get:()=>i[c],enumerable:!s||s.enumerable}));return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function ee(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=N(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(ee(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function te(e){if(e._status===-1){var t=(0,e._result)();t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n,t.status===void 0&&(t.status=`fulfilled`,t.value=n))},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n,t.status===void 0&&(t.status=`rejected`,t.reason=n))}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ne=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function F(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,ne)}catch(e){ne(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function I(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else F(I.bind(null,e))}var re={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=re,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=I,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:te}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=F,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),u=o(((e,t)=>{t.exports=l()})),d=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,f=/^[\\/]{2}/;function p(e,t){return t+e.replace(/\\/g,`/`)}var m=`popstate`;function h(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function g(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return x(``,{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:S(t)}return w(t,n,null,e)}function _(e,t){if(e===!1||e==null)throw Error(t)}function v(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function y(){return Math.random().toString(36).substring(2,10)}function b(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function x(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?C(t):t,state:n,key:t&&t.key||r||y(),mask:i}}function S({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 C(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 w(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:_.location,delta:t})}function f(e,t){s=`PUSH`;let r=h(e)?e:x(_.location,e,t);n&&n(r,e),l=u()+1;let d=b(r,l),f=_.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:_.location,delta:1})}function p(e,t){s=`REPLACE`;let r=h(e)?e:x(_.location,e,t);n&&n(r,e),l=u();let i=b(r,l),d=_.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:_.location,delta:0})}function g(e){return T(i,e)}let _={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(m,d),c=e,()=>{i.removeEventListener(m,d),c=null}},createHref(e){return t(i,e)},createURL:g,encodeLocation(e){let t=g(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return _}function T(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),_(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:S(t);return i=i.replace(/ $/,`%20`),!n&&f.test(i)&&(i=r+i),new URL(i,r)}var E=new URL(`http://localhost`);function D(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),E)}catch{return E}}function O(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function k(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function A(e){let t=e.replace(/[\t\n\r]/g,``),n=0;for(;t.charCodeAt(n)<=32;)n++;if(t=t.slice(n),!d.test(t))return;let r;try{r=new URL(e,E)}catch{return}if(!k(e,r))throw Error(`External navigation is not allowed`)}function j(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!O(i,n),s=!O(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!k(e,i)||!O(i,a)))throw Error(`External navigation is not allowed`)}var M=c(u(),1),ee=class{#e=new Map;constructor(e){if(e)for(let[t,n]of e)this.set(t,n)}get(e){if(this.#e.has(e))return this.#e.get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){this.#e.set(e,t)}},N=class extends Error{},P=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`,`unstable_validateParams`]);function te(e){return P.has(e)}var ne=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`,`unstable_validateParams`]);function F(e){return ne.has(e)}function I(e){return e.index===!0}function re(e){let t={};return e.Component&&Object.assign(t,{element:M.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:M.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:M.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function ie(e,t=re,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(_(e.index!==!0||!e.children,`Cannot specify children on an index route`),_(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),I(e)){let n={...e,id:s};return r[s]=L(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=L(n,t(n)),e.children&&(n.children=ie(e.children,t,o,r,i)),n}})}function L(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function R(e,t,n=`/`){return ae(e,t,n,!1)}function ae(e,t,n,r,i){let a=we((typeof t==`string`?C(t):t).pathname||`/`,n);if(a==null)return null;let o=i??se(e),s=null,c=Ce(a);for(let e=0;s==null&&e<o.length;++e)s=ye(o[e],c,r);return s}function oe(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,loaderData:t[n.id],handle:n.handle}}function se(e){let t=ce(e);return le(t),t}function ce(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;_(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=U([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(_(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ce(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:_e(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=H(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of z(e.path))a(e,t,!0,n)}),t}function z(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=z(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 le(e){e.sort((e,t)=>e.score===t.score?ve(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var B=/^:[\w-]+$/,ue=/^:[\w-]+/,de=3.5,fe=3,pe=2,me=1,he=10,ge=-2,V=e=>e===`*`;function _e(e,t){let n=e.split(`/`),r=n.length;return n.some(V)&&(r+=ge),t&&(r+=pe),n.filter(e=>!V(e)).reduce((e,t)=>e+(B.test(t)?fe:ue.test(t)?de:t===``?me:he),r)}function ve(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 ye(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={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Se(u,l,s.matcher,s.compiledParams):xe(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=xe({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:U([a,d.pathname]),pathnameBase:Fe(U([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=U([a,d.pathnameBase]))}return o}var be=12;function xe(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let{path:n}=e,r=0;for(let e=n.indexOf(`?`);e!==-1;e=n.indexOf(`?`,e+1))if(++r>be)throw Error(`Path pattern ${JSON.stringify(n)} exceeds the limit of ${be} optional segments.`);let[i,a]=H(n,e.caseSensitive,e.end);return Se(e,t,i,a)}function Se(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Pe(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Pe(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function H(e,t=!1,n=!0){v(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(/\/((?:[^/?()[\]*^\\]|\\.)+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Ce(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return v(!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 we(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 Te({basename:e,pathname:t}){return t===`/`?e:U([e,t])}var Ee=e=>d.test(e);function De(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?C(e):e,a;return n?(n=Ne(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Oe(n.substring(1),`/`):Oe(n,t)):a=t,{pathname:a,search:Ie(r),hash:Le(i)}}function Oe(e,t){let n=Pe(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function ke(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 Ae(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function je(e){let t=Ae(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Me(e,t,n,r=!1){let i;typeof e==`string`?i=C(e):(i={...e},_(!i.pathname||!i.pathname.includes(`?`),ke(`?`,`pathname`,`search`,i)),_(!i.pathname||!i.pathname.includes(`#`),ke(`#`,`pathname`,`hash`,i)),_(!i.search||!i.search.includes(`#`),ke(`#`,`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=De(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Ne=e=>e.replace(/[\\/]{2,}/g,`/`),U=e=>Ne(e.join(`/`));function Pe(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Fe=e=>Pe(e).replace(/^\/*/,`/`),Ie=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Le=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Re=class{type=`DataWithResponseInit`;data;init;constructor(e,t){this.data=e,this.init=t||null}};function ze(e,t){return new Re(e,typeof t==`number`?{status:t}:t)}var Be=(e,t=302)=>{A(e);let n=t;typeof n==`number`&&(n={status:n});let r=new Headers(n.headers);return r.set(`Location`,e),n.status===void 0&&(n={...n,status:302}),new Response(null,{...n,headers:r})},Ve=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],W=class{status;statusText;data;error;internal;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 He(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function G(e){return U(e.map(e=>e.route.path).filter(Boolean))||`/`}function Ue(e,t){let n=new URL(typeof e==`string`||e instanceof URL?e:e.url),r=typeof t==`string`?C(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);let i=e.toString();n.search=i?`?${i}`:``}else n.search=``;return n.hash=r.hash||``,n}var We=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ge(e,t){let n=e;if(typeof n!=`string`||!d.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(We)try{let e=new URL(window.location.href),r=f.test(n)?new URL(p(n,e.protocol)):new URL(n),a=we(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{v(!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 Ke=Symbol(`Uninstrumented`),K=new WeakMap;function qe(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){e.lazy!=null&&n.lazy.push(e.lazy),e[`lazy.loader`]!=null&&n[`lazy.loader`].push(e[`lazy.loader`]),e[`lazy.action`]!=null&&n[`lazy.action`].push(e[`lazy.action`]),e[`lazy.middleware`]!=null&&n[`lazy.middleware`].push(e[`lazy.middleware`]),e.middleware!=null&&n.middleware.push(e.middleware),e.loader!=null&&n.loader.push(e.loader),e.action!=null&&n.action.push(e.action)}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=t.lazy;r.lazy=async(...t)=>$e(await q(n.lazy,void 0,()=>e(...t),J))}if(typeof t.lazy==`object`){let e=t.lazy;if(typeof e.middleware==`function`&&n[`lazy.middleware`].length>0){let t=e.middleware;r.lazy=Object.assign(r.lazy||{},{middleware:async(...e)=>$e(await q(n[`lazy.middleware`],void 0,()=>t(...e),J))})}if(typeof e.loader==`function`&&n[`lazy.loader`].length>0){let t=e.loader;r.lazy=Object.assign(r.lazy||{},{loader:async(...e)=>$e(await q(n[`lazy.loader`],void 0,()=>t(...e),J))})}if(typeof e.action==`function`&&n[`lazy.action`].length>0){let t=e.action;r.lazy=Object.assign(r.lazy||{},{action:async(...e)=>$e(await q(n[`lazy.action`],void 0,()=>t(...e),J))})}}if(typeof t.loader==`function`&&n.loader.length>0){let e=Ye(t.loader),i=async(...t)=>$e(await q(n.loader,et(t[0]),()=>e(...t),J));e.hydrate===!0&&(i.hydrate=!0),Xe(i,e),r.loader=i}if(typeof t.action==`function`&&n.action.length>0){let e=Ye(t.action),i=async(...t)=>$e(await q(n.action,et(t[0]),()=>e(...t),J));Xe(i,e),r.action=i}return t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=Ye(e),r=async(...e)=>$e(await q(n.middleware,et(e[0]),()=>t(...e),J));return Xe(r,t),r})),r}function Je(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){e.navigate!=null&&n.navigate.push(e.navigate),e.fetch!=null&&n.fetch.push(e.fetch)}})),n.navigate.length>0){let t=Ye(e.navigate),r=async(...r)=>{let[i,a]=r,o,s={to:typeof i==`number`||typeof i==`string`?i:i?S(i):`.`,...tt(e,a??{})};return $e(await q(n.navigate,s,async()=>{if(typeof i==`number`)return await t(...r);let n=Ze(e,e=>{o=e});try{return await t(...r)}finally{n()}},e=>({...J(e),meta:o})))};Xe(r,t),e.navigate=r}if(n.fetch.length>0){let t=Ye(e.fetch),r=async(...r)=>{let[i,a,o,s]=r,c;return $e(await q(n.fetch,{href:o??`.`,fetcherKey:i,...tt(e,s??{})},async()=>{let n=Ze(e,e=>{c=e});try{return await t(...r)}finally{n()}},e=>({...J(e),meta:c})))};Xe(r,t),e.fetch=r}return e}function Ye(e){return e[Ke]??e}function Xe(e,t){e[Ke]=t}function Ze(e,t){return K.set(e,t),()=>{K.get(e)===t&&K.delete(e)}}function Qe(e){let t=K.get(e);return K.delete(e),t}function $e(e){if(e.type===`error`)throw e.value;return e.value}async function q(e,t,n,r,i={result:null,innerResult:null},a=e.length-1){let o=e[a];if(o){let s,c=async()=>(s?console.error(`You cannot call instrumented handlers more than once`):s=q(e,t,n,r,i,a-1),await s,_(i.innerResult,`Expected an inner result`),i.innerResult);try{await o(c,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}s||await c(),await s}else{try{i.result={type:`success`,value:await n()}}catch(e){i.result={type:`error`,value:e}}i.innerResult=r(i.result,t)}return i.result||(i.result={type:`error`,value:Error(`No result assigned in instrumentation chain.`)},i.innerResult=r(i.result,t)),i.result}function J(e){return e.type===`error`&&e.value instanceof Error?{status:`error`,error:e.value}:{status:`success`,error:void 0}}function et(e){let{request:t,context:n,params:r}=e;return{...e,request:nt(t),params:{...r},context:rt(n)}}function tt(e,t){return{currentUrl:S(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 nt(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function rt(e){return{get:t=>e.get(t)}}var it=class{#e=[];#t=[];#n;#r=0;constructor(e){this.#n=e}update(e){this.#e=e,this.#t=se(e),this.#r=this.#t.reduce((e,t)=>e+t.routesMeta.length,0)}get matchCost(){return this.#r}match(e,t=!1){return ae(this.#e,e,this.#n,t,this.#t)}},at=[`POST`,`PUT`,`PATCH`,`DELETE`],ot=new Set(at),st=[`GET`,...at],ct=new Set(st),lt=new Set([301,302,303,307,308]),ut=new Set([307,308]),dt={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ft={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},pt={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},mt=`remix-router-transitions`,ht=Symbol(`ResetLoaderData`);function gt(e,t){return e.unstable_routePatternMatching?(_(void 0,`You must call unstable_preloadRoutePattern() from "react-router/route-pattern" before enabling future.unstable_routePatternMatching.`),new(void 0)(t)):new it(t)}var _t=class{#e;#t;#n;constructor(e,t){this.#e=e,this.#n=t,this.#n.update(e)}get stableRoutes(){return this.#e}get activeRoutes(){return this.#t??this.#e}get hasHMRRoutes(){return this.#t!=null}setRoutes(e){this.#e=e,this.#t||this.#n.update(e)}setHmrRoutes(e){this.#t=e,this.#n.update(e)}commitHmrRoutes(){this.#t&&(this.#e=this.#t,this.#t=void 0,this.#n.update(this.#e))}},vt=new WeakMap;function yt(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;_(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties,a=i||(()=>({}));if(e.instrumentations){let t=e.instrumentations;a=e=>({...i?.(e),...qe(t.map(e=>e.route).filter(Boolean),e)})}let o={...e.future},s=e.basename||`/`;s.startsWith(`/`)||(s=`/${s}`);let c=gt(o,s),l={},u=new _t(ie(e.routes,a,void 0,l),c),d=e.dataStrategy||It,p=null,m=new Set,h=null,g=null,y=null,b=e.hydrationData!=null,w=c.match(e.history.location),E=!1,D=null,O,k;if(w==null&&!e.patchRoutesOnNavigation){let t=Y(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=on(u.activeRoutes);O=!0,k=!O,w=n,D={[r.id]:t}}else if(w&&!e.hydrationData&&ot(w,e.history.location.pathname).active&&(w=null),!w){O=!1,k=!O,w=[];let t=ot(null,e.history.location.pathname);t.active&&t.matches&&(E=!0,w=t.matches)}else if(w.some(e=>e.route.lazy))O=!1,k=!O;else if(!w.some(e=>wt(e.route)))O=!0,k=!O;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)}k=!1,O=!0,r.forEach(e=>{let r=Tt(e.route,t,n);k||=r.renderFallback,O&&=!r.shouldLoad})}let A,M={historyAction:e.history.action,location:e.history.location,matches:w,initialized:O,renderFallback:k,navigation:dt,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||D,fetchers:new Map,blockers:new Map},P=`POP`,te,ne=0,F,I=null,re=!1,L,R=!1,ae=new Map,se=null,ce=!1,z=!1,le=new Set,B=new Map,ue=0,de=-1,fe=null,pe=new Map,me=new Set,he=new Map,ge=new Map,V=new Set,_e=new Map,ve,ye=null;function be(){if(p=e.history.listen(({action:t,location:n,delta:r})=>{if(ve){ve(),ve=void 0;return}v(_e.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=et({currentLocation:M.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{ve=e});e.history.go(r*-1),J(i,{state:`blocked`,location:n,proceed(){J(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(M.blockers);e.set(i,pt),H({blockers:e})}}),I?.resolve(),I=null}else return o.unstable_customRouteDiscovery&&(ne+=r||0),ke(t,n)}),n){On(t,ae);let e=()=>kn(t,ae);t.addEventListener(`pagehide`,e),se=()=>t.removeEventListener(`pagehide`,e)}return M.initialized||ke(`POP`,M.location,{initialHydration:!0}),A}function xe(){p&&p(),se&&se(),m.clear(),L&&L.abort(),M.fetchers.forEach((e,t)=>Ge(M.fetchers,t)),M.blockers.forEach((e,t)=>q(t))}function Se(e){return m.add(e),()=>m.delete(e)}function H(e,t={}){let n=e.errors??null,r=n?vt.get(n):void 0;r!==void 0&&(n=r),(e.errors!==void 0||e.initialized)&&(M.errors&&vt.delete(M.errors),e.errors&&vt.set(e.errors,n)),e.matches&&=e.matches.map(e=>{let t=l[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),M={...M,...e};let i=[],a=[];M.fetchers.forEach((e,t)=>{e.state===`idle`&&(V.has(t)?i.push(t):a.push(t))}),V.forEach(e=>{!M.fetchers.has(e)&&!B.has(e)&&i.push(e)}),[...m].forEach(e=>e(M,{deletedFetchers:i,newErrors:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),i.forEach(e=>Ge(M.fetchers,e)),a.forEach(e=>M.fetchers.delete(e))}function Ce(t,n,{flushSync:r}={}){let i=M.actionData!=null&&M.navigation.formMethod!=null&&Z(M.navigation.formMethod)&&M.navigation.state===`loading`&&t.state?._isRedirect!==!0,a=n.actionData||(i?te:void 0),o;o=a&&Object.keys(a).length>0?a:null;let s=n.loaderData?nn(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,c=M.blockers;c.size>0&&!ce&&(c=new Map(c),c.forEach((e,t)=>c.set(t,pt)));let l=!ce&&at(t,n.matches||M.matches),d=re===!0||M.navigation.formMethod!=null&&Z(M.navigation.formMethod)&&t.state?._isRedirect!==!0;u.commitHmrRoutes(),ce||P===`POP`||(P===`PUSH`?e.history.push(t,t.state):P===`REPLACE`&&e.history.replace(t,t.state));let f;if(P===`POP`&&!ce&&t!==M.location){let e=ae.get(M.location.pathname);e&&e.has(t.pathname)?f={currentLocation:M.location,nextLocation:t}:ae.has(t.pathname)&&(f={currentLocation:t,nextLocation:M.location})}else if(R){let e=ae.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),ae.set(M.location.pathname,e)),f={currentLocation:M.location,nextLocation:t}}H({...n,actionData:o,loaderData:s,historyAction:P,location:t,initialized:!0,renderFallback:!1,navigation:dt,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:d,blockers:c},{viewTransitionOpts:f,flushSync:r===!0}),Te(),I?.resolve(),I=null,ye?.resolve(),ye=null}function Te(){ne=0,P=`POP`,te=void 0,re=!1,R=!1,ce=!1,z=pe.size>0}async function De(t,n){if(F&&await F,I?.resolve(),I=null,typeof t==`number`){I||=An();let n=I.promise;return e.history.go(t),n}let r=Qe(A),{path:i,submission:a,error:o}=St(!1,xt(M.location,M.matches,s,t,n?.fromRouteId,n?.relative),n),c;if(n?.mask){let t=typeof n.mask==`string`?C(n.mask):{...M.location.mask,...n.mask};if(c={pathname:t.pathname??``,search:t.search??``,hash:t.hash??``},f.test(c.pathname))throw Error(`External navigation is not allowed`);c.pathname.startsWith(`\\`)&&(c.pathname=c.pathname.replace(/^\\+/,`/`)),j(typeof n.mask==`string`?n.mask:S(n.mask),S(c),e.history.createURL(`/`),`reject`)}let l=M.location,u=x(l,i,n&&n.state,void 0,c);u={...u,...e.history.encodeLocation(u)},j(t==null?e.history.createHref(M.location):typeof t==`string`?t:S(t),e.history.createHref(u.mask||u),e.history.createURL(`/`),`reject`);let d=n&&n.replace!=null?n.replace:void 0,p=`PUSH`,m=M.location.pathname+M.location.search;d===!0?p=`REPLACE`:d===!1||a!=null&&Z(a.formMethod)&&(a.formAction===m||u.pathname+u.search===m)&&(p=`REPLACE`);let h=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,g=(n&&n.flushSync)===!0,_=et({currentLocation:l,nextLocation:u,historyAction:p});_?J(_,{state:`blocked`,location:u,proceed(){J(_,{state:`proceeding`,proceed:void 0,reset:void 0,location:u}),De(t,n)},reset(){let e=new Map(M.blockers);e.set(_,pt),H({blockers:e})}}):await ke(p,u,{submission:a,pendingError:o,preventScrollReset:h,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:g,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate,instrumentationNavigateMetaReceiver:r})}function Oe(){if(F)return F.then(Oe);ye||=An(),Ve(),H({revalidation:`loading`});let e=ye.promise;return M.navigation.state===`submitting`?e:M.navigation.state===`idle`?(ke(M.historyAction,M.location,{startUninterruptedRevalidation:!0,dataStrategyInitiator:`revalidation`}),e):(ke(P||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,dataStrategyInitiator:`revalidation`,enableViewTransition:R===!0}),e)}async function ke(t,n,r){F&&await F,L&&L.abort(),L=null,P=t,r?.overrideNavigation||(te=void 0),ce=(r&&r.startUninterruptedRevalidation)===!0,it(M.location,M.matches),re=(r&&r.preventScrollReset)===!0,R=(r&&r.enableViewTransition)===!0;let i=r?.initialHydration&&M.matches&&M.matches.length>0&&!E?M.matches:c.match(n),a=(r&&r.flushSync)===!0;if(i&&M.initialized&&!z&&ln(M.location,n)&&!(r&&r.submission&&Z(r.submission.formMethod))){Ce(n,{matches:i},{flushSync:a});return}let o=ot(i,n.pathname);if(o.active&&o.matches&&(i=o.matches),r?.instrumentationNavigateMetaReceiver){let t=Sn(e.history,n,i);r.instrumentationNavigateMetaReceiver(t)}if(!i){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);Ce(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:a});return}let s=r&&r.overrideNavigation?{...r.overrideNavigation,matches:i,historyAction:t}:void 0;L=new AbortController;let l=Zt(e.history,n,L.signal,r&&r.submission),u=r?.initialHydration?`initialization`:r?.dataStrategyInitiator??`navigation`,d=e.getContext?await e.getContext():new ee,f;if(r&&r.pendingError)f=[an(i).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Z(r.submission.formMethod)){let c=await je(l,u,n,r.submission,i,t,d,o.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:a});if(c.shortCircuited)return;if(c.pendingActionResult){let[e,t]=c.pendingActionResult;if(X(t)&&He(t.error)&&t.error.status===404){L=null,Ce(n,{matches:c.matches,loaderData:{},errors:{[e]:t.error}});return}}i=c.matches||i,f=c.pendingActionResult,t=P,s=wn(n,i,t,r.submission),a=!1,o.active=!1,l=Zt(e.history,l.url,l.signal)}f&&(te=rn(f).actionData);let{shortCircuited:p,matches:m,loaderData:h,errors:g,workingFetchers:_}=await Me(l,u,n,i,t,d,o.active,s,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,a,f,r&&r.callSiteDefaultShouldRevalidate);p||(L=null,Ce(n,{matches:m||i,...rn(f),loaderData:h,errors:g,..._?{fetchers:_}:{}}))}function Ae(){let t=An();F=t.promise;let n=ne,r=I;I=null,L?.abort(),L=null,Te(),ye?.resolve(),ye=null;let i=new Map(M.blockers);i.forEach((e,t)=>{e.state===`proceeding`&&i.set(t,pt)});let a=new Map(M.fetchers),o=Xe(a);a.forEach((e,t)=>{e.state===`loading`&&!B.has(t)&&(a.set(t,Q(e.data)),o=!0)}),le.clear(),H({navigation:dt,revalidation:`idle`,blockers:i,...o?{fetchers:a}:{}});function s(){F=void 0,r?.resolve(),t.resolve()}return n?(ve=s,e.history.go(-n)):s(),t.promise}async function je(t,n,i,c,d,f,p,m,h,g={}){if(o.unstable_customRouteDiscovery||Ve(),H({navigation:Tn(i,d,f,c)},{flushSync:g.flushSync===!0}),m){let e=await st(d,i.pathname,t.signal);if(o.unstable_customRouteDiscovery&&t.signal.aborted||e.type===`aborted`)return{shortCircuited:!0};if(e.type===`cancelled`)return await Ae(),{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=on(u.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=an(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)d=e.matches;else{let{notFoundMatches:e,error:t,route:n}=tt(i.pathname);return{matches:e,pendingActionResult:[n.id,{type:`error`,error:t}]}}}o.unstable_customRouteDiscovery&&Ve();let _,v=xn(d,i);if(!v.route.action&&!v.route.lazy)_={type:`error`,error:Y(405,{method:t.method,pathname:i.pathname,routeId:v.route.id})};else{let e=await ze(t,i,Ht(a,l,t,i,d,v,h?[]:r,p),p,null,n,f);if(_=e[v.route.id],!_){for(let t of d)if(e[t.route.id]){_=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(mn(_)){let r;return r=g&&g.replace!=null?g.replace:Xt(_.response.headers.get(`Location`),new URL(t.url),s,e.history)===M.location.pathname+M.location.search,await Re(t,_,!0,n,{submission:c,replace:r}),{shortCircuited:!0}}if(X(_)){let e=an(d,v.route.id);return(g&&g.replace)!==!0&&(P=`PUSH`),{matches:d,pendingActionResult:[e.route.id,_,v.route.id]}}return{matches:d,pendingActionResult:[v.route.id,_]}}async function Me(t,n,i,s,d,f,p,m,h,g,_,v,y,b,x){let S=m||wn(i,s,d,h),C=h||g||Cn(S),w=!ce&&!v;if(p){if(fe=t.signal,w){let e=Ne(b);H({navigation:S,...e===void 0?{}:{actionData:e}},{flushSync:y})}let e=await st(s,i.pathname,t.signal);if(fe===t.signal&&(fe=null),o.unstable_customRouteDiscovery&&t.signal.aborted||e.type===`aborted`)return{shortCircuited:!0};if(e.type===`cancelled`)return await Ae(),{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=on(u.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=an(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)s=e.matches,v&&!t.signal.aborted&&H({matches:s});else{let{error:e,notFoundMatches:t,route:n}=tt(i.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}}let{dsMatches:T,revalidatingFetchers:E}=Ct(t,f,a,l,e.history,M,s,C,i,v?[]:r,v===!0,z,le,V,he,me,c,b,x);if(de=++ue,!e.dataStrategy&&!T.some(e=>e.shouldLoad)&&!T.some(e=>e.route.middleware&&e.route.middleware.length>0)&&E.length===0){let e=new Map(M.fetchers),t=Xe(e);return Ce(i,{matches:s,loaderData:{},errors:b&&X(b[1])?{[b[0]]:b[1].error}:null,...rn(b),...t?{fetchers:e}:{}},{flushSync:y}),{shortCircuited:!0}}if(w){let e={};if(!p){e.navigation=S;let t=Ne(b);t!==void 0&&(e.actionData=t)}E.length>0&&(e.fetchers=U(E)),H(e,{flushSync:y})}E.forEach(e=>{K(e.key),e.controller&&B.set(e.key,e.controller)});let D=()=>E.forEach(e=>{B.get(e.key)===e.controller&&K(e.key)});L&&L.signal.addEventListener(`abort`,D);let{loaderResults:O,fetcherResults:k}=await Be(T,E,t,i,f,n,d);if(t.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener(`abort`,D),E.forEach(e=>{B.get(e.key)===e.controller&&B.delete(e.key)});let A=sn(O);if(A)return await Re(t,A.result,!0,n,{replace:_}),{shortCircuited:!0};if(A=sn(k),A)return me.add(A.key),await Re(t,A.result,!0,n,{replace:_}),{shortCircuited:!0};let j=new Map(M.fetchers),{loaderData:ee,errors:N}=tn(M,s,O,b,E,k,j);if(v&&M.errors){let e=N??null;N={...M.errors,...N},vt.set(N,e)}let P=Xe(j),te=Ze(de,j),ne=P||te||E.length>0;return{matches:s,loaderData:ee,errors:N,...ne?{workingFetchers:j}:{}}}function Ne(e){if(e&&!X(e[1]))return{...M.actionData,[e[0]]:e[1].data};if(M.actionData)return Object.keys(M.actionData).length===0?null:M.actionData}function U(e){let t=new Map(M.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=En(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function Pe(t,n,r,i){F&&await F,K(t);let a=(i&&i.flushSync)===!0,o=Qe(A),l=xt(M.location,M.matches,s,r,n,i?.relative);j(null,l,e.history.createURL(`/`),`reject`);let u=c.match(l),d=ot(u,l);if(d.active&&d.matches&&(u=d.matches),o&&o(Sn(e.history,l,u)),!u){G(t,n,Y(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=St(!0,l,i);if(m){G(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new ee,g=(i&&i.preventScrollReset)===!0;if(p&&Z(p.formMethod)){await Ie(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate);return}let _={routeId:n,path:f,isDiscovering:d.active};he.set(t,_),await Le(t,_,u,h,a,g,p)}function Fe(){return fe?.aborted===!1}async function Ie(t,n,i,s,u,d,f,p,m,h){o.unstable_customRouteDiscovery||Ve(),he.delete(t);let g=M.fetchers.get(t);W(t,Dn(m,g),{flushSync:f});let v=new AbortController;o.unstable_customRouteDiscovery&&B.set(t,v);let y=Zt(e.history,i,v.signal,m);if(d){let e=await st(s,new URL(y.url).pathname,y.signal,t);if(o.unstable_customRouteDiscovery&&y.signal.aborted||e.type===`aborted`)return;if(e.type===`cancelled`){B.delete(t),he.delete(t),W(t,Q(g?.data),{flushSync:f});return}if(e.type===`error`){G(t,n,e.error,{flushSync:f});return}if(e.matches)s=e.matches;else{G(t,n,Y(404,{pathname:i}),{flushSync:f});return}}let b=xn(s,i);if(!b.route.action&&!b.route.lazy){G(t,n,Y(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}o.unstable_customRouteDiscovery&&Ve(),B.set(t,v);let x=ue,S=Ht(a,l,y,i,s,b,r,u),C=await ze(y,i,S,u,t,`fetcher`),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){B.get(t)===v&&B.delete(t);return}if(V.has(t)){if(X(w)){W(t,Q(void 0));return}mn(w)&&(z=!0,w={type:`data`,data:void 0})}else{if(mn(w)){if(de>x)z=!0,w={type:`data`,data:void 0};else return B.delete(t),me.add(t),W(t,En(m)),Re(y,w,!1,`fetcher`,{fetcherSubmission:m,preventScrollReset:p})}if(X(w)){G(t,n,w.error);return}}z=!0;let T=Fe()?void 0:M.navigation.location,E=T||M.location,D=Zt(e.history,E,v.signal),O=T?c.match(T):M.matches;_(O,`Didn't find any matches after fetcher action`);let k=++ue;pe.set(t,k);let{dsMatches:A,revalidatingFetchers:j}=Ct(D,u,a,l,e.history,M,O,m,E,r,!1,z,le,V,he,me,c,[b.route.id,w],h),ee=En(m,w.data),N=new Map(M.fetchers);N.set(t,ee),j.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=N.get(t),r=En(void 0,n?n.data:void 0);N.set(t,r),K(t),e.controller&&B.set(t,e.controller)}),H({fetchers:N});let te=()=>j.forEach(e=>{B.get(e.key)===e.controller&&K(e.key)});v.signal.addEventListener(`abort`,te);let{loaderResults:ne,fetcherResults:F}=await Be(A,j,D,E,u,`fetcher`);if(v.signal.aborted){pe.get(t)===k&&pe.delete(t);return}v.signal.removeEventListener(`abort`,te),pe.delete(t),B.delete(t),j.forEach(e=>{B.get(e.key)===e.controller&&B.delete(e.key)});let I=M.fetchers.has(t),re=e=>{if(!I)return e;let n=new Map(e.fetchers);return n.set(t,Q(w.data)),{...e,fetchers:n}},ie=sn(ne);if(ie)return M=re(M),Re(D,ie.result,!1,`fetcher`,{preventScrollReset:p});if(ie=sn(F),ie)return me.add(ie.key),M=re(M),Re(D,ie.result,!1,`fetcher`,{preventScrollReset:p});let R=new Map(M.fetchers);I&&R.set(t,Q(w.data));let{loaderData:ae,errors:oe}=tn(M,O,ne,void 0,j,F,R);Ze(k,R),M.navigation.state===`loading`&&k>de&&!Fe()?(_(P,`Expected pending action`),L&&L.abort(),Xe(R),Ce(M.navigation.location,{matches:O,loaderData:ae,errors:oe,fetchers:R})):(H({errors:oe,loaderData:nn(M.loaderData,ae,M.matches,oe),fetchers:R}),z=pe.size>0)}async function Le(t,n,i,s,c,u,d){let{routeId:f,path:p}=n,m=M.fetchers.get(t);W(t,En(d,m?m.data:void 0),{flushSync:c});let h=new AbortController;o.unstable_customRouteDiscovery&&B.set(t,h);let g=Zt(e.history,p,h.signal);if(n.isDiscovering){let e=await st(i,new URL(g.url).pathname,g.signal,t);if(o.unstable_customRouteDiscovery&&g.signal.aborted||e.type===`aborted`)return;if(e.type===`cancelled`){B.delete(t),he.delete(t),W(t,Q(m?.data),{flushSync:c});return}if(e.type===`error`){G(t,f,e.error,{flushSync:c});return}if(e.matches)i=e.matches,n.isDiscovering=!1;else{G(t,f,Y(404,{pathname:p}),{flushSync:c});return}}let _=xn(i,p);B.set(t,h);let v=ue,y=await ze(g,p,Ht(a,l,g,p,i,_,r,s),s,t,`fetcher`),b=y[_.route.id];if(!b){for(let e of i)if(y[e.route.id]){b=y[e.route.id];break}}if(B.get(t)===h&&B.delete(t),!g.signal.aborted){if(V.has(t))W(t,Q(void 0));else{if(mn(b)){if(de>v){W(t,Q(void 0));return}me.add(t),await Re(g,b,!1,`fetcher`,{preventScrollReset:u});return}X(b)?G(t,f,b.error):W(t,Q(b.data))}}}async function Re(r,i,a,o,{submission:c,fetcherSubmission:l,preventScrollReset:u,replace:d}={}){a||(I?.resolve(),I=null),i.response.headers.has(`X-Remix-Revalidate`)&&(z=!0);let f=i.response.headers.get(`Location`);_(f,`Expected a Location header on the redirect Response`);let p=f,m=new URL(r.url);f=Xt(f,m,s,e.history),j(p,f,m,`allow-explicit`);let h=x(M.location,f,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(Ee(f)){let n=T(t,f,!0);e=n.origin!==t.location.origin||we(n.pathname,s)==null}if(e){d?t.location.replace(f):t.location.assign(f);return}}L=null;let g=d===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:v,formAction:y,formEncType:b}=M.navigation;!c&&!l&&v&&y&&b&&(c=Cn(M.navigation));let S=c||l;ut.has(i.response.status)&&S&&Z(S.formMethod)?await ke(g,h,{submission:{...S,formAction:f},preventScrollReset:u||re,enableViewTransition:a?R:void 0,dataStrategyInitiator:o}):await ke(g,h,{overrideNavigation:wn(h,[],g,c),fetcherSubmission:l,preventScrollReset:u||re,enableViewTransition:a?R:void 0,dataStrategyInitiator:o})}async function ze(e,t,n,r,i,a,o=null){let c,l={};try{c=await Ut(d,e,t,n,i,a,r,!1,o)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{l[t.route.id]={type:`error`,error:e}}),l}if(e.signal.aborted)return l;if(!Z(e.method))for(let e of n){if(c[e.route.id]?.type===`error`)break;c.hasOwnProperty(e.route.id)||M.loaderData.hasOwnProperty(e.route.id)||M.errors&&M.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(c[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(c))l[t]=pn(r)?{type:`redirect`,response:qt(r.result,e,t,n,s)}:await Kt(r);return l}async function Be(e,t,n,r,i,a,o=null){let s=ze(n,r,e,i,null,a,o),c=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await ze(e.request,e.path,e.matches,i,e.key,a,o))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:Y(404,{pathname:e.path})}})}));return{loaderResults:await s,fetcherResults:(await c).reduce((e,t)=>Object.assign(e,t),{})}}function Ve(){z=!0,he.forEach((e,t)=>{o.unstable_customRouteDiscovery&&e.isDiscovering||(B.has(t)&&le.add(t),K(t))})}function W(e,t,n={}){let r=new Map(M.fetchers);r.set(e,t),H({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function G(e,t,n,r={}){let i=an(M.matches,t),a=new Map(M.fetchers);Ge(a,e),H({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Ue(e){return ge.set(e,(ge.get(e)||0)+1),V.has(e)&&V.delete(e),M.fetchers.get(e)||ft}function We(e,t){K(e,t?.reason),he.delete(e),le.delete(e),W(e,Q(null))}function Ge(e,t){let n=M.fetchers.get(t);B.has(t)&&!(n&&n.state===`loading`&&pe.has(t))&&K(t),he.delete(t),pe.delete(t),me.delete(t),V.delete(t),le.delete(t),e.delete(t)}function Ke(e){let t=(ge.get(e)||0)-1;t<=0?(ge.delete(e),V.add(e)):ge.set(e,t),H({fetchers:new Map(M.fetchers)})}function K(e,t){let n=B.get(e);n&&(n.abort(t),B.delete(e))}function Ye(e,t){for(let n of e){let e=t.get(n);_(e,`Expected fetcher: ${n}`);let r=Q(e.data);t.set(n,r)}}function Xe(e){let t=[],n=!1;for(let r of me){let i=e.get(r);_(i,`Expected fetcher: ${r}`),i.state===`loading`&&(me.delete(r),t.push(r),n=!0)}return Ye(t,e),n}function Ze(e,t){let n=[];for(let[r,i]of pe)if(i<e){let e=t.get(r);_(e,`Expected fetcher: ${r}`),e.state===`loading`&&(K(r),pe.delete(r),n.push(r))}return Ye(n,t),n.length>0}function $e(e,t){let n=M.blockers.get(e)||pt;return _e.get(e)!==t&&_e.set(e,t),n}function q(e){M.blockers.delete(e),_e.delete(e)}function J(e,t){let n=M.blockers.get(e)||pt;_(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(M.blockers);r.set(e,t),H({blockers:r})}function et({currentLocation:e,nextLocation:t,historyAction:n}){if(_e.size===0)return;_e.size>1&&v(!1,`A router only supports one blocker at a time`);let r=Array.from(_e.entries()),[i,a]=r[r.length-1],o=M.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function tt(e){let t=Y(404,{pathname:e}),{matches:n,route:r}=on(u.activeRoutes);return{notFoundMatches:n,route:r,error:t}}function nt(e,t,n){if(h=e,y=t,g=n||null,!b&&M.navigation===dt){b=!0;let e=at(M.location,M.matches);e!=null&&H({restoreScrollPosition:e})}return()=>{h=null,y=null,g=null}}function rt(e,t){return g&&g(e,t.map(e=>oe(e,M.loaderData)))||e.key}function it(e,t){if(h&&y){let n=rt(e,t);h[n]=y()}}function at(e,t){if(h){let n=rt(e,t),r=h[n];if(typeof r==`number`)return r}return null}function ot(t,n){if(e.patchRoutesOnNavigation){if(!t)return{active:!0,matches:c.match(n,!0)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:c.match(n,!0)}}return{active:!1,matches:null}}async function st(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let s=t;for(;;){let t=l;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:s,fetcherKey:i,patch:(e,n)=>{r.aborted||kt(e,n,u,t,a,!1)}})}catch(e){if(o.unstable_customRouteDiscovery){if(r.aborted)return{type:`aborted`};if(e instanceof N)return{type:`cancelled`}}return{type:`error`,error:e,partialMatches:s}}if(r.aborted)return{type:`aborted`};let d=c.match(n),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=c.match(n,!0),!(f&&s.length<f.length&&ct(s,f.slice(0,s.length))))))return{type:`success`,matches:d};if(f||=c.match(n,!0),!f||ct(s,f))return{type:`success`,matches:null};s=f}}function ct(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function lt(e){l={},u.setHmrRoutes(ie(e,a,void 0,l))}function mt(e,t,n=!1){kt(e,t,u,l,a,n),u.hasHMRRoutes||H({})}return A={get basename(){return s},get future(){return o},get state(){return M},get routes(){return u.stableRoutes},match(e){return c.match(e)},get manifest(){return l},get window(){return t},initialize:be,subscribe:Se,enableScrollRestoration:nt,navigate:De,fetch:Pe,revalidate:Oe,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ue,resetFetcher:We,deleteFetcher:Ke,dispose:xe,getBlocker:$e,deleteBlocker:q,patchRoutes:mt,_internalFetchControllers:B,_internalSetRoutes:lt,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){H(e)}},e.instrumentations&&(A=Je(A,e.instrumentations.map(e=>e.router).filter(Boolean))),A}function bt(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function xt(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=Me(r||`.`,je(o),we(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=bn(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=Te({basename:n,pathname:c.pathname})),S(c)}function St(e,t,n){if(!n||!bt(n))return{path:t};if(n.formMethod&&!yn(n.formMethod))return{path:t,error:Y(405,{method:n.formMethod})};let r=()=>({path:t,error:Y(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=cn(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Z(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}\n`,``):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(!Z(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()}}}_(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=Qt(n.formData),s=n.formData;else if(n.body instanceof FormData)o=Qt(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=$t(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=$t(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(Z(c.formMethod))return{path:t,submission:c};let l=C(t);return e&&l.search&&bn(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:S(l),submission:c}}function Ct(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let y=_?X(_[1])?_[1].error:_[1].data:void 0,b=i.createURL(a.location),x=i.createURL(c),S;if(u&&a.errors){let e=Object.keys(a.errors)[0];S=o.findIndex(t=>t.route.id===e)}else if(_&&X(_[1])){let e=_[0];S=o.findIndex(t=>t.route.id===e)-1}let C=_?_[1].statusCode:void 0,w=C&&C>=400,T={currentUrl:b,currentParams:a.matches[0]?.params||{},nextUrl:x,nextParams:o[0].params,...s,actionResult:y,actionStatus:C},E=G(o),D=o.map((i,o)=>{let{route:s}=i,f=null;if(S!=null&&o>S)f=!1;else if(s.lazy)f=!0;else if(!wt(s))f=!1;else if(u){let{shouldLoad:e}=Tt(s,a.loaderData,a.errors);f=e}else Et(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return Vt(n,r,e,c,E,i,l,t,f);let p=!1;typeof v==`boolean`?p=v:w?p=!1:d||b.pathname+b.search===x.pathname+x.search?p=!0:b.search===x.search?Dt(a.matches[o],i)&&(p=!0):p=!0;let m={...T,defaultShouldRevalidate:p};return Vt(n,r,e,c,E,i,l,t,Ot(i,m),m,v)}),O=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s)||e.isDiscovering)return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,_=g.match(e.path);if(!_){O.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let y=xn(_,e.path),b=new AbortController,x=Zt(i,e.path,b.signal),S=null;if(f.has(s))f.delete(s),S=Ht(n,r,x,e.path,_,y,l,t);else if(m)d&&(S=Ht(n,r,x,e.path,_,y,l,t));else{let i;i=typeof v==`boolean`?v:!w&&d;let a={...T,defaultShouldRevalidate:i};Ot(y,a)&&(S=Ht(n,r,x,e.path,_,y,l,t,a))}S&&O.push({key:s,routeId:e.routeId,path:e.path,matches:S,match:y,request:x,controller:b})}),{dsMatches:D,revalidatingFetchers:O}}function wt(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Tt(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!wt(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 Et(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function Dt(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function Ot(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function kt(e,t,n,r,i,a){let o;if(e){let t=r[e];_(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(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=ie(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]=ie([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})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}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 jt=new WeakMap,Mt=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(_(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=jt.get(i);o||(o={},jt.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=te(e),n=i[e]!==void 0;if(t)v(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)v(!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.catch(()=>{o[e]===c&&delete o[e]}),c},Nt=new WeakMap;function Pt(e,t,n,r,i){let a=n[e.id];if(_(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=Nt.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{_(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=F(e),o=a[e]!==void 0;i?v(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?v(!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 Nt.set(a,n),n.catch(()=>{Nt.get(a)===n&&Nt.delete(a)}),{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=Mt({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 Ft(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 It(e){return e.matches.some(e=>e.route.middleware)?Lt(e,()=>Ft(e)):Ft(e)}function Lt(e,t){return Rt(e,t,e=>{if(vn(e))throw e;return e},dn,n);async function n(t,n,r){if(r)return Object.assign(r.value,{[n]:{type:`error`,result:t}});{let{matches:r}=e,i=Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0)),a=r[i].route.id;for(let e of r.slice(0,i+1))try{await e._lazyPromises?.route}catch{a=e.route.id;break}return{[an(r,a).route.id]:{type:`error`,result:t}}}}}async function Rt(e,t,n,r,i){let{matches:a,...o}=e;return await zt(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function zt(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 zt(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 Bt(e,t,n,r,i){let a=Mt({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=Pt(r.route,Z(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function Vt(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=Bt(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?Ot(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?Ot(a,{...l,defaultShouldRevalidate:e}):Ot(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Z(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Z(n.method)||!p)?Wt({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Ht(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?Vt(e,t,n,r,G(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Bt(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function Ut(e,t,n,r,i,a,o,s,c=null){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let l={request:t,url:Ue(t,n),pattern:G(r),params:r[0].params,context:o,matches:r,unstable_initiator:a,unstable_navigationType:a===`navigation`?c:null},u=s?()=>{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=l;return Lt(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},d=await e({...l,fetcherKey:i,runClientMiddleware:u});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return d}async function Wt({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Z(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,url:Ue(e,t),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 Y(405,{method:e.method,pathname:n,routeId:r.route.id})}else return await a,{type:`data`,result:void 0}}}else if(t)c=await f(t);else{let t=new URL(e.url);throw Y(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Gt(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 Kt(e){let{result:t,type:n}=e;if(gn(t)){let e;try{e=await Gt(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new W(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?hn(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:un(t),statusCode:He(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:He(t)?t.status:void 0}:hn(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 qt(e,t,n,r,i){let a=e.headers.get(`Location`);if(_(a,`Redirects returned/thrown from loaders/actions must have a Location header`),j(a,a,new URL(t.url),`allow-explicit`),!Ee(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=xt(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var Jt=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Yt(e){try{return Jt.includes(new URL(e).protocol)}catch{return!1}}function Xt(e,t,n,r){if(Ee(e)){let r=e,i=f.test(r)?new URL(p(r,t.protocol)):new URL(r);if(Yt(i.toString()))throw Error(`Invalid redirect location`);let a=we(i.pathname,n)!=null;if(i.origin===t.origin&&a)return Ne(i.pathname)+i.search+i.hash}try{if(Yt(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function Zt(e,t,n,r){let i=e.createURL(cn(t)).toString(),a={signal:n};if(r&&Z(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?Qt(r.formData):r.formData}return new Request(i,a)}function Qt(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function $t(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function en(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&X(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(_(!mn(f),`Cannot handle redirect results in processLoaderData`),X(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=an(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=ht),c||(c=!0,s=He(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 tn(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=en(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,routeId:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(_(s,`Did not find corresponding fetcher result`),X(s)){let t=an(e.matches,r);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(mn(s))_(!1,`Unhandled fetcher revalidation redirect`);else{let e=Q(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function nn(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==ht).reduce((e,[t,n])=>(e[t]=n,e),{}),a=0;for(let o of n){let n=o.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&o.route.loader&&(i[n]=e[n],a++),r&&r.hasOwnProperty(n))break}return Object.keys(t).length===0&&a===Object.keys(e).length?e:i}function rn(e){return e?X(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function an(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.ErrorBoundary!=null||e.route.errorElement!=null)||e[0]}function on(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 Y(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 W(e||500,o,Error(s),!0)}function sn(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(mn(r))return{key:n,result:r}}}function cn(e){return S({...typeof e==`string`?C(e):e,hash:``})}function ln(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function un(e){return new W(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function dn(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&fn(t))}function fn(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function pn(e){return gn(e.result)&&lt.has(e.result.status)}function X(e){return e.type===`error`}function mn(e){return(e&&e.type)===`redirect`}function hn(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function gn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function _n(e){return lt.has(e)}function vn(e){return gn(e)&&_n(e.status)&&e.headers.has(`Location`)}function yn(e){return ct.has(e.toUpperCase())}function Z(e){return ot.has(e.toUpperCase())}function bn(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function xn(e,t){let n=typeof t==`string`?C(t).search:t.search;if(e[e.length-1].route.index&&bn(n||``))return e[e.length-1];let r=Ae(e);return r[r.length-1]}function Sn(e,t,n){return{url:Ue(e.createURL(t),t),pattern:n?G(n):``,params:n?.[0]?.params?{...n[0].params}:{}}}function Cn(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 wn(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Tn(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function En(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 Dn(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 Q(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 On(e,t){try{let n=e.sessionStorage.getItem(mt);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 kn(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(mt,JSON.stringify(n))}catch(e){v(!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 jn=M.createContext(null);jn.displayName=`DataRouter`;var Mn=M.createContext(null);Mn.displayName=`DataRouterState`;var Nn=M.createContext(null);Nn.displayName=`DataRouterData`;var Pn=M.createContext(null);Pn.displayName=`DataRouterNavigation`;var Fn=M.createContext(!1),In=M.createContext(!1);function Ln(){return M.useContext(Fn)}var Rn=M.createContext({isTransitioning:!1});Rn.displayName=`ViewTransition`;var zn=M.createContext(null);zn.displayName=`Fetchers`;var Bn=M.createContext(null);Bn.displayName=`Await`;var Vn=M.createContext(null);Vn.displayName=`Navigation`;var Hn=M.createContext(null);Hn.displayName=`Location`;var Un=M.createContext({outlet:null,matches:[],isDataRoute:!1});Un.displayName=`Route`;var Wn=M.createContext(!1);Wn.displayName=`IsDataRoute`;var Gn=M.createContext(void 0);Gn.displayName=`RouteId`;var Kn=M.createContext(null);Kn.displayName=`RouteError`;var qn=`REACT_ROUTER_ERROR`,Jn=`REDIRECT`,Yn=`ROUTE_ERROR_RESPONSE`;function Xn(e){if(e.startsWith(`${qn}:${Jn}:{`))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 Zn(e){if(e.startsWith(`${qn}:${Yn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new W(t.status,t.statusText,t.data)}catch{}}function Qn(e,{relative:t}={}){_($n(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=M.useContext(Vn),{hash:i,pathname:a,search:o}=sr(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:U([n,a])),r.createHref({pathname:s,search:o,hash:i})}function $n(){return M.useContext(Hn)!=null}function er(){return _($n(),`useLocation() may be used only in the context of a <Router> component.`),M.useContext(Hn).location}var tr=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function nr(){return M.useContext(Wn)?Dr():rr()}function rr(){_($n(),`useNavigate() may be used only in the context of a <Router> component.`);let e=M.useContext(jn),{basename:t,navigator:n}=M.useContext(Vn),{matches:r}=M.useContext(Un),{pathname:i}=er(),a=JSON.stringify(je(r)),o=M.useRef(!1);return M.useLayoutEffect(()=>{o.current=!0}),M.useCallback((r,s={})=>{if(v(o.current,tr),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Me(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:U([t,c.pathname])),j(typeof r==`string`?r:S(r),n.createHref(c),D(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var ir=M.createContext(null);function ar(e){let t=M.useContext(Un).outlet;return M.useMemo(()=>t&&M.createElement(ir.Provider,{value:e},t),[t,e])}function or(){let{matches:e}=M.useContext(Un);return e[e.length-1]?.params??{}}function sr(e,{relative:t}={}){let{matches:n}=M.useContext(Un),{pathname:r}=er(),i=JSON.stringify(je(n));return M.useMemo(()=>Me(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function cr(e,t,n){_($n(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=M.useContext(Vn),{matches:i}=M.useContext(Un),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=er(),l;if(t){let e=typeof t==`string`?C(t):t;_(s===`/`||e.pathname?.startsWith(s),`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 "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),l=e}else l=c;let u=l.pathname||`/`,d=u;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);d=`/`+u.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let f;f=n?n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):n.router.match(n.state.location):R(e,{pathname:d});let p=hr(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:U([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:U([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&p?M.createElement(Hn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...l},navigationType:`POP`}},p):p}function lr(){let e=Er();M.useContext(In);let t=He(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return M.createElement(M.Fragment,null,M.createElement(`h2`,null,`Unexpected Application Error!`),M.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?M.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var ur=M.createElement(lr,null),dr=class extends M.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=Fn;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=Zn(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:M.createElement(Un.Provider,{value:this.props.routeContext},M.createElement(Wn.Provider,{value:this.props.routeContext.isDataRoute},M.createElement(Gn.Provider,{value:this.props.routeContext.matches[this.props.routeContext.matches.length-1]?.route.id},M.createElement(Kn.Provider,{value:e,children:this.props.component}))));return this.context?M.createElement(pr,{error:e},t):t}},fr=new WeakMap;function pr({children:e,error:t}){let{basename:n,navigator:r}=M.useContext(Vn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Xn(t.digest);if(e){let i=fr.get(t);if(i)throw i;let a=Ge(e.location,n),o=a.absoluteURL||a.to;if(j(e.location,o,D(r),`allow-explicit`),Yt(o))throw Error(`Invalid redirect location`);if(We&&!fr.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw fr.set(t,n),n}}return M.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function mr({routeContext:e,match:t,children:n}){let r=M.useContext(jn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),M.createElement(Un.Provider,{value:e},M.createElement(Wn.Provider,{value:e.isDataRoute},M.createElement(Gn.Provider,{value:t.route.id},n)))}function hr(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,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);_(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:G(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||ur,o&&(s<0&&c===0?(kr(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?M.createElement(n.route.Component,null):n.route.element?n.route.element:e,M.createElement(mr,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?M.createElement(dr,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function gr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _r(e){let t=M.useContext(jn);return _(t,gr(e)),t}function vr(e){let t=M.useContext(Mn);return _(t,gr(e)),t}function yr(e){let t=M.useContext(Nn);return _(t,gr(e)),t}function br(e){let t=M.useContext(Pn);return _(t,gr(e)),t}function xr(e){let t=M.useContext(Gn);return _(t,`${e} can only be used on routes that contain a unique "id"`),t}function Sr(){let{navigation:e}=br(`useNavigation`);return M.useMemo(()=>{let{matches:t,historyAction:n,...r}=e;return r},[e])}function Cr(){let{matches:e}=vr(`useMatches`),{loaderData:t}=yr(`useMatches`);return M.useMemo(()=>e.map(e=>oe(e,t)),[e,t])}function wr(){let e=yr(`useLoaderData`),t=xr(`useLoaderData`);return e.loaderData[t]}function Tr(){let e=yr(`useActionData`),t=xr(`useActionData`);return e.actionData?e.actionData[t]:void 0}function Er(){let e=M.useContext(Kn),t=yr(`useRouteError`),n=xr(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Dr(){let{router:e}=_r(`useNavigate`),t=xr(`useNavigate`),n=M.useRef(!1);return M.useLayoutEffect(()=>{n.current=!0}),M.useCallback(async(r,i={})=>{v(n.current,tr),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Or={};function kr(e,t,n){!t&&!Or[e]&&(Or[e]=!0,v(!1,n))}function $(e,t){if(e===!1||e==null)throw Error(t)}var Ar={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},jr=/[&><\u2028\u2029]/g;function Mr(e){return e.replace(jr,e=>Ar[e])}var Nr=class{promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function Pr(){let e=new TextDecoder,t=``;return new TransformStream({transform(n,r){let i=e.decode(n,{stream:!0}),a=(t+i).split(`
2
+ `);t=a.pop()||``;for(let e of a)r.enqueue(e)},flush(e){t&&e.enqueue(t)}})}var Fr=typeof window<`u`?window:typeof globalThis<`u`?globalThis:void 0;function Ir(e){let{hydrated:t,values:n}=this;if(typeof e==`number`)return Lr.call(this,e);if(!Array.isArray(e)||!e.length)throw SyntaxError();let r=n.length;for(let t of e)n.push(t);return t.length=n.length,Lr.call(this,r)}function Lr(e){let{hydrated:t,values:n,deferred:r,plugins:i}=this,a,o=[[e,e=>{a=e}]],s=[];for(;o.length>0;){let[e,a]=o.pop();switch(e){case-7:a(void 0);continue;case-5:a(null);continue;case-2:a(NaN);continue;case-6:a(1/0);continue;case-3:a(-1/0);continue;case-4:a(-0);continue}if(Rr(e,n.length),t[e]){a(t[e]);continue}let c=n[e];if(!c||typeof c!=`object`)t[e]=c,a(c);else if(Array.isArray(c)){if(typeof c[0]==`string`){let[l,u,d]=c;switch(l){case`D`:a(t[e]=new Date(u));continue;case`U`:a(t[e]=new URL(u));continue;case`B`:a(t[e]=BigInt(u));continue;case`R`:a(t[e]=new RegExp(u,d));continue;case`Y`:a(t[e]=Symbol.for(u));continue;case`S`:let l=new Set;t[e]=l;for(let e=c.length-1;e>0;e--)o.push([c[e],e=>{l.add(e)}]);a(l);continue;case`M`:let f=new Map;t[e]=f;for(let e=c.length-2;e>0;e-=2){let t=[];o.push([c[e+1],e=>{t[1]=e}]),o.push([c[e],e=>{t[0]=e}]),s.push(()=>{f.set(t[0],t[1])})}a(f);continue;case`N`:let p=Object.create(null);t[e]=p;for(let e of Object.keys(u).reverse()){let t=[];o.push([u[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{p[t[0]]=t[1]})}a(p);continue;case`P`:if(Rr(u,n.length),t[u])a(t[e]=t[u]);else{let n=new Nr,i=n.promise;i.status=`pending`,i.then(e=>{i.status=`fulfilled`,i.value=e},e=>{i.status=`rejected`,i.reason=e}),r[u]=n,a(t[e]=i)}continue;case`E`:let[,m,h]=c,g=h&&Fr&&Ve.includes(h)&&h in Fr&&typeof Fr[h]==`function`?new Fr[h](m):Error(m);t[e]=g,a(g);continue;case`Z`:Rr(u,n.length),a(t[e]=t[u]);continue;default:if(Array.isArray(i)){let n=[],r=c.slice(1);for(let e=0;e<r.length;e++){let t=r[e];o.push([t,t=>{n[e]=t}])}s.push(()=>{for(let r of i){let i=r(c[0],...n);if(i){a(t[e]=i.value);return}}throw SyntaxError()});continue}throw SyntaxError()}}else{let n=[];t[e]=n;for(let e=0;e<c.length;e++){let t=c[e];t!==-1&&o.push([t,t=>{n[e]=t}])}a(n);continue}}else{let n={};t[e]=n;for(let e of Object.keys(c).reverse()){let t=[];o.push([c[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{Object.defineProperty(n,t[0],{value:t[1],enumerable:!0,configurable:!0,writable:!0})})}a(n);continue}}for(;s.length>0;)s.pop()();return a}function Rr(e,t){if(!Number.isSafeInteger(e)||e<0||e>=t)throw SyntaxError()}async function zr(e,t){let{plugins:n}=t??{},r=e.pipeThrough(Pr()).getReader(),i={values:[],hydrated:[],deferred:{},plugins:n},a=await Br.call(i,r),o;o=a.done?Promise.resolve():Vr.call(i,r).catch(e=>{for(let t of Object.values(i.deferred))t.reject(e);throw e});let s=o.then(()=>r.closed);return s.catch(()=>{}),{done:s,value:a.value}}async function Br(e){let t=await e.read();if(!t.value)throw SyntaxError();let n;try{n=JSON.parse(t.value)}catch{throw SyntaxError()}return{done:t.done,value:Ir.call(this,n)}}async function Vr(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;let n=t.value;switch(n[0]){case`P`:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=Ir.call(this,a);r.resolve(o);break}case`E`:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=Ir.call(this,a);r.reject(o);break}default:throw SyntaxError()}t=await e.read()}}async function Hr(e){let t={signal:e.signal};if(e.method!==`GET`){t.method=e.method;let n=e.headers.get(`Content-Type`);n&&/\bapplication\/json\b/.test(n)?(t.headers={"Content-Type":n},t.body=JSON.stringify(await e.json())):n&&/\btext\/plain\b/.test(n)?(t.headers={"Content-Type":n},t.body=await e.text()):t.body=n&&/\bapplication\/x-www-form-urlencoded\b/.test(n)?new URLSearchParams(await e.text()):await e.formData()}return t}var Ur=Symbol(`SingleFetchRedirect`),Wr=class extends Error{},Gr=new Set([100,101,204,205]);function Kr(e,t,n,r,i=e=>fetch(e),a=!1,o,s=!1){let c=qr(e,e=>{let n=t.routes[e.route.id];return $(n,`Route not found in manifest`),{hasLoader:n.hasLoader,hasClientLoader:n.hasClientLoader}},ti(i,o),r,void 0,a,s);return async e=>e.runClientMiddleware(c)}function qr(e,t,n,r,i=()=>!0,a=!1,o=!1){return async s=>{let{request:c,matches:l,fetcherKey:u}=s,d=e();if(c.method!==`GET`)return Jr(s,n);let f=l.some(e=>{let{hasLoader:n,hasClientLoader:r}=t(e);return e.shouldCallHandler()&&n&&!r});return!r&&!f?Yr(s,t,n):u?Qr(s,n):Xr(s,d,t,n,r,i,a,o)}}async function Jr(e,t){let n=e.matches.find(e=>e.shouldCallHandler());$(n,`No action match found`);let r,i=await n.resolve(async i=>await i(async()=>{let{data:i,status:a}=await t(e,[n.route.id]);return r=a,ri(i,n.route.id)}));return gn(i.result)||He(i.result)||hn(i.result)?{[n.route.id]:i}:{[n.route.id]:{type:i.type,result:ze(i.result,r)}}}async function Yr(e,t,n){let r=e.matches.filter(e=>e.shouldCallHandler()),i={};return await Promise.all(r.map(async r=>{let a=r.route.id;i[a]=await r.resolve(async i=>{let{hasClientLoader:o}=t(r);return o?i(async()=>{let{data:t}=await n(e,[a]);return ri(t,a)}):i()})})),i}async function Xr(e,t,n,r,i,a=()=>!0,o=!1,s=!1){let c=new Set,l=!1,u=e.matches.map(()=>ii()),d=ii(),f={},p=Promise.all(e.matches.map(async(t,i)=>t.resolve(async o=>{u[i].resolve();let s=t.route.id,{hasLoader:p,hasClientLoader:m}=n(t),h=!t.shouldRevalidateArgs||t.shouldRevalidateArgs.actionStatus==null||t.shouldRevalidateArgs.actionStatus<400;if(!t.shouldCallHandler(h))l||=t.shouldRevalidateArgs!=null&&p;else if(a(t)&&m){p&&(l=!0);try{f[s]={type:`data`,result:await o(async()=>{let{data:t}=await r(e,[s]);return ri(t,s)})}}catch(e){f[s]={type:`error`,result:e}}}else{p&&c.add(s);try{f[s]={type:`data`,result:await o(async()=>ri(await d.promise,s))}}catch(e){f[s]={type:`error`,result:e}}}})));if(await Promise.all(u.map(e=>e.promise)),(!t.state.initialized&&t.state.navigation.state===`idle`&&!o&&!s||c.size===0)&&!window.__reactRouterHdrActive)d.resolve({routes:{}});else{let t=i&&l&&c.size>0?[...c.keys()]:void 0;try{let n=await r(e,t);d.resolve(n.data)}catch(e){d.reject(e)}}return await p,await Zr(d.promise,e.matches,c,f),f}async function Zr(e,t,n,r){try{let i,a=await e;if(`routes`in a){for(let e of t)if(e.route.id in a.routes){let t=a.routes[e.route.id];if(`error`in t){i=t.error,r[e.route.id]?.result??(r[e.route.id]={type:`error`,result:i});break}}}i!==void 0&&Array.from(n.values()).forEach(e=>{r[e].result instanceof Wr&&(r[e].result=i)})}catch{}}async function Qr(e,t){let n=e.matches.find(e=>e.shouldCallHandler());$(n,`No fetcher match found`);let r=n.route.id,i=await n.resolve(async n=>n(async()=>{let{data:n}=await t(e,[r]);return ri(n,r)}));return{[n.route.id]:i}}function $r(e){let t=e.searchParams.getAll(`index`);e.searchParams.delete(`index`);let n=[];for(let e of t)e&&n.push(e);for(let t of n)e.searchParams.append(`index`,t);return e}function ei(e,t,n){let r=typeof e==`string`?new URL(e,n??(typeof window>`u`?`server://singlefetch/`:window.location.origin)):new URL(e);return n&&r.origin!==n&&(r=new URL(r.pathname+r.search+r.hash,n)),r.pathname.endsWith(`/`)?r.pathname=`${r.pathname}_.${t}`:r.pathname=`${r.pathname}.${t}`,r}function ti(e,t){return async(n,r)=>{let{request:i}=n,a=ei(i.url,`data`,t);i.method===`GET`&&(a=$r(a),r&&a.searchParams.set(`_routes`,r.join(`,`)));let o=new Request(a,await Hr(i));$(n.unstable_initiator!==`static`,`Static data strategy initiator used for a client data request`);let s;n.unstable_initiator===`navigation`?($(n.unstable_navigationType!==null,`Missing navigation type for a navigation data request`),s={type:`navigation`,fetcherKey:n.fetcherKey,navigationType:n.unstable_navigationType}):s={type:n.unstable_initiator,fetcherKey:n.fetcherKey,navigationType:null};let c=await e(o,s);if(c.status>=400&&!c.headers.has(`X-Remix-Response`))throw new W(c.status,c.statusText,await c.text());if(c.status===204&&c.headers.has(`X-Remix-Redirect`))return{status:202,data:{redirect:{redirect:c.headers.get(`X-Remix-Redirect`),status:Number(c.headers.get(`X-Remix-Status`)||`302`),revalidate:c.headers.get(`X-Remix-Revalidate`)===`true`,reload:c.headers.get(`X-Remix-Reload-Document`)===`true`,replace:c.headers.get(`X-Remix-Replace`)===`true`}}};if(Gr.has(c.status)){let e={};return r&&i.method!==`GET`&&(e[r[0]]={data:void 0}),{status:c.status,data:{routes:e}}}$(c.body,`No response body to decode`);try{let e=await ni(c.body,window),t;if(i.method===`GET`){let n=e.value;t=Ur in n?{redirect:n[Ur]}:{routes:n}}else{let n=e.value,i=r?.[0];$(i,`No routeId found for single fetch call decoding`),t=`redirect`in n?{redirect:n}:{routes:{[i]:n}}}return{status:c.status,data:t}}catch(e){throw Error(`Unable to decode turbo-stream response`,{cause:e})}}}function ni(e,t){return zr(e,{plugins:[(e,...n)=>{if(e===`SanitizedError`){let[e,r,i]=n,a=Error;e&&Ve.includes(e)&&e in t&&typeof t[e]==`function`&&(a=t[e]);let o=new a(r);return o.stack=i,{value:o}}if(e===`ErrorResponse`){let[e,t,r]=n;return{value:new W(t,r,e)}}if(e===`SingleFetchRedirect`)return{value:{[Ur]:n[0]}};if(e===`SingleFetchClassInstance`)return{value:n[0]};if(e===`SingleFetchFallback`)return{value:void 0}}]})}function ri(e,t){if(`redirect`in e){let{redirect:t,revalidate:n,reload:r,replace:i,status:a}=e.redirect;throw Be(t,{status:a,headers:{...n?{"X-Remix-Revalidate":`yes`}:null,...r?{"X-Remix-Reload-Document":`yes`}:null,...i?{"X-Remix-Replace":`yes`}:null}})}let n=e.routes[t];if(n==null)throw new Wr(`No result found for routeId "${t}"`);if(`error`in n)throw n.error;if(`data`in n)return n.data;throw Error(`Invalid response found for routeId "${t}"`)}function ii(){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}}async function ai(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function oi(e,t,n){return vi(e.map(e=>{let r=t[e.route.id],i=n.routes[e.route.id];return[i&&i.css?i.css.map(e=>({rel:`stylesheet`,href:e})):[],r?.links?.()||[]]}).flat(2),hi(e,n))}function si(e){return e.css?e.css.map(e=>({rel:`stylesheet`,href:e})):[]}async function ci(e){if(!e.css)return;let t=si(e);await Promise.all(t.map(ui))}async function li(e,t){if(!e.css&&!t.links||!bi())return;let n=[];if(e.css&&n.push(...si(e)),t.links&&n.push(...t.links()),n.length===0)return;let r=[];for(let e of n)!di(e)&&e.rel===`stylesheet`&&r.push({...e,rel:`preload`,as:`style`});await Promise.all(r.map(ui))}async function ui(e){return new Promise(t=>{if(e.media&&!window.matchMedia(e.media).matches||document.querySelector(`link[rel="stylesheet"][href="${e.href}"]`))return t();let n=document.createElement(`link`);Object.assign(n,e);function r(){document.head.contains(n)&&document.head.removeChild(n)}n.onload=()=>{r(),t()},n.onerror=()=>{r(),t()},document.head.appendChild(n)})}function di(e){return e!=null&&typeof e.page==`string`}function fi(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 pi(e,t,n){return vi((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await ai(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(fi).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function mi(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 hi(e,t,{includeHydrateFallback:n}={}){return gi(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 gi(e){return[...new Set(e)]}function _i(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function vi(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!di(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(_i(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var yi;function bi(){if(yi!==void 0)return yi;let e=document.createElement(`link`);return yi=e.relList.supports(`preload`),e=null,yi}var xi={};function Si(e,t){!e&&!xi[t]&&(xi[t]=!0,console.warn(t))}function Ci(){let{nonce:e}=$i();return M.createElement(_a,{title:`Loading...`,renderScripts:!0},null)}function wi(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function Ti(e,t,n){let r=Ni(t),i=t.HydrateFallback&&(!n||e.id===`root`)?t.HydrateFallback:e.id===`root`?Ci:void 0,a=t.ErrorBoundary?t.ErrorBoundary:e.id===`root`?()=>M.createElement(ga,{error:Er()}):void 0;return e.id===`root`&&t.Layout?{...r?{element:M.createElement(t.Layout,null,M.createElement(r,null))}:{Component:r},...a?{errorElement:M.createElement(t.Layout,null,M.createElement(a,null))}:{ErrorBoundary:a},...i?{hydrateFallbackElement:M.createElement(t.Layout,null,M.createElement(i,null))}:{HydrateFallback:i}}:{Component:r,ErrorBoundary:a,HydrateFallback:i}}function Ei(e,t,n,r,i,a){return ki(t,n,r,i,a,``,wi(t),e)}function Di(e,t){if(e===`loader`&&!t.hasLoader||e===`action`&&!t.hasAction){let n=`You are trying to call ${e===`action`?`serverAction()`:`serverLoader()`} on a route that does not have a server ${e} (routeId: "${t.id}")`;throw console.error(n),new W(400,`Bad Request`,Error(n),!0)}}function Oi(e,t){let n=e===`clientAction`?`a`:`an`,r=`Route "${t}" does not have ${n} ${e}, but you are trying to submit to it. To fix this, please add ${n} \`${e}\` function to the route`;throw console.error(r),new W(405,`Method Not Allowed`,Error(r),!0)}function ki(e,t,n,r,i,a=``,o=wi(e),s,c=!1){return(o[a]||[]).map(a=>{let l=t[a.id];function u(e){return $(typeof e==`function`,`No single fetch function available for route handler`),e()}function d(e){return a.hasLoader?u(e):Promise.resolve(null)}function f(e){if(!a.hasAction)throw Oi(`action`,a.id);return u(e)}function p(e){import(e)}function m(e){e.clientActionModule&&p(e.clientActionModule),e.clientLoaderModule&&p(e.clientLoaderModule)}async function h(e){let n=t[a.id],r=n?li(a,n):Promise.resolve();try{return e()}finally{await r}}let g={caseSensitive:a.caseSensitive,id:a.id,index:a.index,path:a.path};if(l){Object.assign(g,{...g,...Ti(a,l,i),middleware:l.clientMiddleware,handle:l.handle,shouldRevalidate:Ai(g.path,l,a,r,s)});let e=n&&n.loaderData&&a.id in n.loaderData,t=e?n?.loaderData?.[a.id]:void 0,o=n&&n.errors&&a.id in n.errors,u=o?n?.errors?.[a.id]:void 0,p=s==null&&(l.clientLoader?.hydrate===!0||!a.hasLoader);g.loader=async({request:n,params:r,context:i,pattern:s,url:c},f)=>{let m=p;return p=!1,await h(async()=>($(l,"No `routeModule` available for critical-route loader"),l.clientLoader?l.clientLoader({request:n,params:r,context:i,pattern:s,url:c,async serverLoader(){if(Di(`loader`,a),m){if(e)return t;if(o)throw u}return d(f)}}):d(f)))},g.loader.hydrate=Pi(a.id,l.clientLoader,a.hasLoader,i,c),g.action=({request:e,params:t,context:n,pattern:r,url:o},s)=>h(async()=>{if($(l,"No `routeModule` available for critical-route action"),!l.clientAction){if(i&&!c)throw Oi(`clientAction`,a.id);return f(s)}return l.clientAction({request:e,params:t,context:n,pattern:r,url:o,async serverAction(){return Di(`action`,a),f(s)}})})}else{a.hasClientLoader||(g.loader=(e,t)=>h(()=>d(t))),a.hasClientAction||(g.action=(e,t)=>h(()=>{if(i&&!c)throw Oi(`clientAction`,a.id);return f(t)}));let e;async function n(){return e||=(async()=>{(a.clientLoaderModule||a.clientActionModule)&&await new Promise(e=>setTimeout(e,0));let e=Mi(a,t);return m(a),await e})(),await e}g.lazy={loader:a.hasClientLoader?async()=>{let{clientLoader:e}=a.clientLoaderModule?await import(a.clientLoaderModule):await n();return $(e,"No `clientLoader` export found"),(t,n)=>e({...t,async serverLoader(){return Di(`loader`,a),d(n)}})}:void 0,action:a.hasClientAction?async()=>{let e=a.clientActionModule?import(a.clientActionModule):n();m(a);let{clientAction:t}=await e;return $(t,"No `clientAction` export found"),(e,n)=>t({...e,async serverAction(){return Di(`action`,a),f(n)}})}:void 0,middleware:a.hasClientMiddleware?async()=>{let{clientMiddleware:e}=a.clientMiddlewareModule?await import(a.clientMiddlewareModule):await n();return $(e,"No `clientMiddleware` export found"),e}:void 0,shouldRevalidate:async()=>{let e=await n();return Ai(g.path,e,a,r,s)},handle:async()=>(await n()).handle,Component:async()=>(await n()).Component,ErrorBoundary:a.hasErrorBoundary?async()=>(await n()).ErrorBoundary:void 0}}let _=ki(e,t,n,r,i,a.id,o,s,c);return _.length>0&&(g.children=_),g})}function Ai(e,t,n,r,i){if(i)return ji(n.id,t.shouldRevalidate,i);if(!r&&n.hasLoader&&!n.hasClientLoader){let n=e?H(e)[1].map(e=>e.paramName):[],r=e=>n.some(t=>e.currentParams[t]!==e.nextParams[t]);if(t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:r(t)})}return e=>r(e)}return t.shouldRevalidate}function ji(e,t,n){let r=!1;return i=>r?t?t(i):i.defaultShouldRevalidate:(r=!0,n.has(e))}async function Mi(e,t){let n=ai(e,t),r=ci(e),i=await n;return await Promise.all([r,li(e,i)]),{Component:Ni(i),ErrorBoundary:i.ErrorBoundary,clientMiddleware:i.clientMiddleware,clientAction:i.clientAction,clientLoader:i.clientLoader,handle:i.handle,links:i.links,meta:i.meta,shouldRevalidate:i.shouldRevalidate}}function Ni(e){if(e.default!=null&&(typeof e.default!=`object`||Object.keys(e.default).length!==0))return e.default}function Pi(e,t,n,r,i=!1){return r&&e!==`root`||i&&r&&n||t!=null&&(t.hydrate===!0||n!==!0)}var Fi=new Set,Ii=1e3,Li=new Set;function Ri(e){let t=new Set;return e.forEach(e=>{e.startsWith(`/`)||(e=`/${e}`);for(let n=1;n<e.length;n++)e[n]===`/`&&t.add(e.slice(0,n));t.add(e)}),Array.from(t)}function zi(e,t){return e.mode===`lazy`&&t}function Bi({sri:e,...t},n){let r=new Set(n.state.matches.map(e=>e.route.id)),i=n.state.location.pathname.split(`/`).filter(Boolean),a=[`/`];for(i.pop();i.length>0;)a.push(`/${i.join(`/`)}`),i.pop();a.forEach(e=>{let t=n.match(e);t&&t.forEach(e=>r.add(e.route.id))});let o=[...r].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});return{...t,routes:o,sri:e?!0:void 0}}function Vi(e,t,n,r,i,a,o,s=e=>fetch(e),c,l=!1){if(zi(i,r))return async({path:u,patch:d,signal:f,fetcherKey:p})=>{if(Li.has(u))return;let{state:m}=e();await Yi([u],p?window.location.href:S(m.navigation.location||m.location),t,n,r,a,o,i.manifestPath,d,f,s,c,l)}}function Hi(e,t,n,r,i,a,o=e=>fetch(e),s,c=!1){M.useEffect(()=>{if(!zi(i,r)||window.navigator?.connection?.saveData===!0)return;function l(e){let t=e.tagName===`FORM`?e.getAttribute(`action`):e.getAttribute(`href`);if(!t)return;let n=e.tagName===`A`?e.pathname:new URL(t,window.location.origin).pathname;Li.has(n)||Fi.add(n)}async function u(){document.querySelectorAll(`a[data-discover], form[data-discover]`).forEach(l);let u=Array.from(Fi.keys()).filter(e=>!Li.has(e)||(Fi.delete(e),!1));if(u.length!==0)try{await Yi(u,null,t,n,r,a,e.basename,i.manifestPath,e.patchRoutes,void 0,o,s,c)}catch(e){console.error(`Failed to fetch manifest patches`,e)}}let d=Zi(u,100);u();let f=new MutationObserver(()=>d());return f.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`data-discover`,`href`,`action`]}),()=>f.disconnect()},[r,a,t,n,e,i,o,s,c])}function Ui(e){return e.slice().sort().map(e=>e.replace(/,/g,`%2C`)).join(`,`)}function Wi(e,t){let n=e||`/__manifest`;return t==null?n:U([t,n])}var Gi=`react-router-manifest-version`,Ki=5e3,qi;async function Ji(e,t,n){if(qi)return qi;if(!e){try{sessionStorage.removeItem(Gi)}catch{}return!1}if(!n)return console.warn(`Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a new document navigation to sync up with the latest manifest.`),!0;let r=!1;try{r=sessionStorage.getItem(Gi)===t,r||sessionStorage.setItem(Gi,t)}catch{}if(r)throw Error(`Unable to discover routes due to manifest version mismatch.`);let i,a=new Promise((e,t)=>{i=t});qi=a;let o=()=>{clearTimeout(s),window.removeEventListener(`pageshow`,c),qi=void 0,i(Error(`Unable to discover routes due to manifest version mismatch.`))},s=setTimeout(o,Ki),c=e=>{e.persisted&&o()};window.addEventListener(`pageshow`,c);try{window.location.href=n,console.warn(`Detected manifest version mismatch, reloading...`)}catch{o()}return a}async function Yi(e,t,n,r,i,a,o,s,c,l,u=e=>fetch(e),d,f=!1){e=Ri(e);let p=new URLSearchParams;p.set(`paths`,Ui(e)),p.set(`version`,n.version);let m=new URL(Wi(s,o),d??window.location.origin);if(m.search=p.toString(),m.toString().length>7680){Fi.clear();return}let h;try{let e=await u(new Request(m,{signal:l}),{type:`manifest`});if(!e.ok)throw Error(`${e.status} ${e.statusText}`);if(await Ji(e.status===204&&e.headers.has(`X-Remix-Reload-Document`),n.version,t))return;h=await e.json()}catch(e){if(l?.aborted)return;throw e}if(l?.aborted)return;let g=new Set(Object.keys(n.routes)),_=Object.values(h).reduce((e,t)=>(t&&!g.has(t.id)&&(e[t.id]=t),e),{});Object.assign(n.routes,_),e.forEach(e=>Xi(e,Li));let v=new Set;Object.values(_).forEach(e=>{!e||e.parentId&&_[e.parentId]||v.add(e.parentId)}),v.forEach(e=>c(e||null,ki(_,r,null,i,a,e,void 0,void 0,f)))}function Xi(e,t){if(t.size>=Ii){let e=t.values().next().value;e!==void 0&&t.delete(e)}t.add(e)}function Zi(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}var Qi=M.createContext(void 0);Qi.displayName=`FrameworkContext`;function $i(){let e=M.useContext(Qi);return $(e,`You must render this element inside a <HydratedRouter> element`),e}function ea(e,t){let n=M.useContext(Qi),[r,i]=M.useState(!1),[a,o]=M.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=M.useRef(null);M.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),M.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:ta(s,p),onBlur:ta(c,m),onMouseEnter:ta(l,p),onMouseLeave:ta(u,m),onTouchStart:ta(d,p)}]:[a,f,{}]:[!1,f,{}]}function ta(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function na(e,t,n){if(n&&!da)return[e[0]];if(t){let n=e.findIndex(e=>t[e.route.id]!==void 0);return e.slice(0,n+1)}return e}var ra=`data-react-router-critical-css`;function ia({nonce:e,crossOrigin:t}){let{isSpaMode:n,manifest:r,routeModules:i,criticalCss:a,nonce:o}=$i(),{matches:s}=vr(`Links`),{errors:c}=yr(`Links`),l=na(s,c,n),u=M.useMemo(()=>oi(l,i,r),[l,i,r]);return e==null&&o&&(e=o),M.createElement(M.Fragment,null,typeof a==`string`?M.createElement(`style`,{[ra]:``,nonce:e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:a}}):null,typeof a==`object`?M.createElement(`link`,{[ra]:``,rel:`stylesheet`,href:a.href,nonce:e,suppressHydrationWarning:!0,crossOrigin:t}):null,u.map(({key:n,link:r})=>di(r)?M.createElement(aa,{key:n,nonce:e,...r,crossOrigin:r.crossOrigin??t}):M.createElement(`link`,{key:n,nonce:e,suppressHydrationWarning:!0,...r,crossOrigin:r.crossOrigin??t})))}function aa({page:e,...t}){let n=Ln(),{nonce:r}=$i(),{router:i}=_r(`PrefetchPageLinks`),a=M.useMemo(()=>i.match(e),[i,i.routes,e]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?M.createElement(sa,{page:e,matches:a,...t}):M.createElement(ca,{page:e,matches:a,...t})):null}function oa(e){let{manifest:t,routeModules:n}=$i(),[r,i]=M.useState([]);return M.useEffect(()=>{let r=!1;return pi(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function sa({page:e,matches:t,...n}){let r=er(),{unstable_apiServerOrigin:i}=$i(),a=M.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=ei(e,`rsc`,i),a=!1,o=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?a=!0:o.push(e.route.id);return a&&o.length>0&&n.searchParams.set(`_routes`,o.join(`,`)),[i?n.toString():n.pathname+n.search]},[e,r,t,i]);return M.createElement(M.Fragment,null,a.map(e=>M.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function ca({page:e,matches:t,...n}){let r=er(),{manifest:i,routeModules:a,unstable_apiServerOrigin:o}=$i(),{matches:s}=vr(`PrefetchPageLinks`),{loaderData:c}=yr(`PrefetchPageLinks`),l=M.useMemo(()=>mi(e,t,s,i,r,`data`),[e,t,s,i,r]),u=M.useMemo(()=>mi(e,t,s,i,r,`assets`),[e,t,s,i,r]),d=M.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,s=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!l.some(t=>t.route.id===e.route.id)&&e.route.id in c&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?s=!0:n.add(e.route.id))}),n.size===0)return[];let u=ei(e,`data`,o);return s&&n.size>0&&u.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[o?u.toString():u.pathname+u.search]},[c,r,i,l,t,e,a,o]),f=M.useMemo(()=>hi(u,i),[u,i]),p=oa(u);return M.createElement(M.Fragment,null,d.map(e=>M.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),f.map(e=>M.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),p.map(({key:e,link:t})=>M.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function la(){let{isSpaMode:e,routeModules:t}=$i(),{matches:n}=vr(`Meta`),{errors:r,loaderData:i}=yr(`Meta`),a=er(),o=na(n,r,e),s=null;r&&(s=r[o[o.length-1].route.id]);let c=[],l=null,u=[];for(let e=0;e<o.length;e++){let n=o[e],r=n.route.id,d=i[r],f=n.params,p=t[r],m=[],h={id:r,loaderData:d,meta:[],params:n.params,pathname:n.pathname,handle:n.route.handle,error:s};if(u[e]=h,p?.meta?m=typeof p.meta==`function`?p.meta({loaderData:d,params:f,location:a,matches:u,error:s}):Array.isArray(p.meta)?[...p.meta]:p.meta:l&&(m=[...l]),m||=[],!Array.isArray(m))throw Error(`The route at `+n.route.path+` returns an invalid value. All route meta functions must return an array of meta objects.
3
+
4
+ To reference the meta function API, see https://reactrouter.com/start/framework/route-module#meta`);h.meta=m,u[e]=h,c=[...m],l=c}return M.createElement(M.Fragment,null,c.flat().map(e=>{if(!e)return null;if(`tagName`in e){let{tagName:t,...n}=e;if(!ua(t))return console.warn(`A meta object uses an invalid tagName: ${t}. Expected either 'link' or 'meta'`),null;let r=t;return M.createElement(r,{key:JSON.stringify(n),...n})}if(`title`in e)return M.createElement(`title`,{key:`title`},String(e.title));if(`charset`in e&&(e.charSet??=e.charset,delete e.charset),`charSet`in e&&e.charSet!=null)return typeof e.charSet==`string`?M.createElement(`meta`,{key:`charSet`,charSet:e.charSet}):null;if(`script:ld+json`in e)try{let t=JSON.stringify(e[`script:ld+json`]);return M.createElement(`script`,{key:`script:ld+json:${t}`,type:`application/ld+json`,dangerouslySetInnerHTML:{__html:Mr(t)}})}catch{return null}return M.createElement(`meta`,{key:JSON.stringify(e),...e})}))}function ua(e){return typeof e==`string`&&/^(meta|link)$/.test(e)}var da=!1;function fa(){da=!0}function pa(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:i,routeDiscovery:a,ssr:o,nonce:s}=$i(),{router:c,static:l,staticContext:u}=_r(`Scripts`),{matches:d}=vr(`Scripts`),f=Ln(),p=zi(a,o);e.nonce==null&&s&&(e={...e,nonce:s}),i&&(i.didRenderScripts=!0);let m=na(d,null,r);M.useEffect(()=>{fa()},[]);let h=M.useMemo(()=>{if(f)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:` `,i=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:``}${p?``:`import ${JSON.stringify(t.url)}`};
5
+ ${m.map((e,n)=>{let r=`route${n}`,i=t.routes[e.route.id];$(i,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:o,clientMiddlewareModule:s,hydrateFallbackModule:c,module:l}=i,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...o?[{module:o,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...c?[{module:c,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return u.length===1?`import * as ${r} from ${JSON.stringify(l)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join(`
6
+ `),`const ${r} = {${u.map(e=>`...${e.varName}`).join(`,`)}};`].join(`
7
+ `)}).join(`
8
+ `)}
9
+ ${p?`window.__reactRouterManifest = ${JSON.stringify(Bi(t,c),null,2)};`:``}
10
+ window.__reactRouterRouteModules = {${m.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(`,`)}};
11
+
12
+ import(${JSON.stringify(t.entry.module)});`:` `;return M.createElement(M.Fragment,null,M.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),M.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:`module`,async:!0}))},[]),g=da||f?[]:[...new Set(t.entry.imports.concat(hi(m,t,{includeHydrateFallback:!0})))],_=typeof t.sri==`object`?t.sri:{};return Si(!f,`The <Scripts /> element is a no-op when using RSC and can be safely removed.`),da||f?null:M.createElement(M.Fragment,null,typeof t.sri==`object`?M.createElement(`script`,{...e,"rr-importmap":``,type:`importmap`,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:_})}}):null,p?null:M.createElement(`link`,{rel:`modulepreload`,href:t.url,crossOrigin:e.crossOrigin,integrity:_[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),M.createElement(`link`,{rel:`modulepreload`,href:t.entry.module,crossOrigin:e.crossOrigin,integrity:_[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),g.map(t=>M.createElement(`link`,{key:t,rel:`modulepreload`,href:t,crossOrigin:e.crossOrigin,integrity:_[t],nonce:e.nonce,suppressHydrationWarning:!0})),h)}function ma(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var ha=class extends M.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location===e.location?{error:e.error||t.error,location:t.location}:{error:e.error||null,location:e.location}}render(){return this.state.error?M.createElement(ga,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function ga({error:e,isOutsideRemixApp:t}){let{nonce:n}=$i();console.error(e);let r=M.createElement(`script`,{nonce:n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`
13
+ console.log(
14
+ "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
15
+ );
16
+ `}});if(He(e))return M.createElement(_a,{title:`Unhandled Thrown Response!`},M.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),null);let i;if(e instanceof Error)i=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);i=Error(t)}return M.createElement(_a,{title:`Application Error!`,isOutsideRemixApp:t},M.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),M.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},i.stack),r)}function _a({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=$i();return i.root?.Layout&&!n?r:M.createElement(`html`,{lang:`en`},M.createElement(`head`,null,M.createElement(`meta`,{charSet:`utf-8`}),M.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),M.createElement(`title`,null,e)),M.createElement(`body`,null,M.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},r,t?M.createElement(pa,null):null)))}var va=[`HydrateFallback`,`hydrateFallbackElement`],ya=class{status=`pending`;promise;resolve;reject;constructor(){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 ba(e,t){e.ready.catch(e=>{if(!(t.visibilityState===`hidden`||typeof e==`object`&&e&&`name`in e&&e.name===`AbortError`))throw e})}function xa({router:e,flushSync:t,onError:n,useTransitions:r}){r=Ln()||r;let[i,a]=M.useState(e.state),[o,s]=(0,M.useOptimistic)(i),c=M.useRef(o),[l,u]=M.useState(),[d,f]=M.useState({isTransitioning:!1}),[p,m]=M.useState(),[h,g]=M.useState(),[_,v]=M.useState(),y=M.useRef(new Map),b=M.useRef(new WeakSet),x=M.useCallback((i,{deletedFetchers:o,newErrors:l,flushSync:d,viewTransitionOpts:_})=>{c.current=i,l&&i.errors&&vt.has(i.errors)&&(b.current.has(i.errors)?l=null:b.current.add(i.errors)),l&&n&&Object.values(l).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:G(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&y.current.set(t,e.data)}),o.forEach(e=>y.current.delete(e)),Si(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 x=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(Si(_==null||x,"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."),!_||!x)t&&d?t(()=>a(i)):r===!1?a(i):M.startTransition(()=>{r===!0&&s(e=>Sa(e,i)),a(i)});else 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(()=>a(i))});ba(n,e.window.document),n.finished.finally(()=>{t(()=>{m(void 0),g(void 0),u(void 0),f({isTransitioning:!1})})}),t(()=>g(n))}else 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,s,n]);M.useLayoutEffect(()=>e.subscribe(x),[e,x]),M.useLayoutEffect(()=>{let t=e.state.errors,n=t?vt.get(t):null;(c.current!==e.state||t&&n&&!b.current.has(t))&&x(e.state,{deletedFetchers:[],flushSync:!1,newErrors:n??null})},[e,x]),M.useEffect(()=>{d.isTransitioning&&!d.flushSync&&m(new ya)},[d]),M.useEffect(()=>{if(p&&l&&e.window){let t=l,n=p.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):M.startTransition(()=>{r===!0&&s(e=>Sa(e,t)),a(t)}),await n});ba(i,e.window.document),i.finished.finally(()=>{m(void 0),g(void 0),u(void 0),f({isTransitioning:!1})}),g(i)}},[l,p,e.window,r,s]),M.useEffect(()=>{p&&l&&o.location.key===l.location.key&&p.resolve()},[p,h,o.location,l]),M.useEffect(()=>{!d.isTransitioning&&_&&(u(_.state),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),v(void 0))},[d.isTransitioning,_]);let S=M.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{...r,replace:r?.replace!==!1&&void 0,state:n===void 0?r?.state:n}),replace:(t,n,r)=>e.navigate(t,{...r,replace:!0,state:n===void 0?r?.state:n})}),[e]),C=e.basename||`/`,w=M.useMemo(()=>({router:e,navigator:S,static:!1,basename:C,onError:n}),[e,S,C,n]),T=M.useMemo(()=>({historyAction:o.historyAction,location:o.location,matches:o.matches,initialized:o.initialized,renderFallback:o.renderFallback,restoreScrollPosition:o.restoreScrollPosition,preventScrollReset:o.preventScrollReset,blockers:o.blockers}),[o.historyAction,o.location,o.matches,o.initialized,o.renderFallback,o.restoreScrollPosition,o.preventScrollReset,o.blockers]),E=M.useMemo(()=>({navigation:o.navigation,revalidation:o.revalidation}),[o.navigation,o.revalidation]),D=M.useMemo(()=>({loaderData:o.loaderData,actionData:o.actionData,errors:o.errors}),[o.loaderData,o.actionData,o.errors]),O=M.useMemo(()=>({fetchers:o.fetchers,fetcherData:y.current}),[o.fetchers]),k=M.useContext(Qi)?.routeDiscoveryRuntime;return M.createElement(M.Fragment,null,M.createElement(jn.Provider,{value:w},M.createElement(Mn.Provider,{value:T},M.createElement(Pn.Provider,{value:E},M.createElement(Nn.Provider,{value:D},M.createElement(zn.Provider,{value:O},M.createElement(Rn.Provider,{value:d},M.createElement(Ea,{basename:C,location:o.location,navigationType:o.historyAction,navigator:S,useTransitions:r},M.createElement(Ca,{routes:e.routes,manifest:e.manifest,state:o,isStatic:!1,onError:n,discoveryRuntime:k})))))))),null)}function Sa(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 Ca=M.memo(wa);function wa({routes:e,manifest:t,state:n,isStatic:r,onError:i,discoveryRuntime:a}){let o=M.useContext(jn);return _(o,`You must render this element inside a <DataRouterContext.Provider> element`),M.useEffect(()=>{n.initialized&&a?.markReady()},[n.initialized,a]),cr(e,void 0,{router:o.router,manifest:t,state:n,isStatic:r,onError:i})}function Ta(e){return ar(e.context)}function Ea({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){_(!$n(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=M.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=C(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=M.useMemo(()=>{let e=we(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return v(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:M.createElement(Vn.Provider,{value:c},M.createElement(Hn.Provider,{children:t,value:h}))}M.Component;function Da(){return{params:or(),loaderData:wr(),actionData:Tr(),matches:Cr()}}function Oa(e){return function(){let t=Da();return M.createElement(e,t)}}function ka(){return{params:or(),loaderData:wr(),actionData:Tr(),error:Er()}}function Aa(e){return function(){let t=ka();return M.createElement(e,t)}}var ja=o((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})),Ma=o(((e,t)=>{t.exports=ja()}));export{we as $,_r as A,Un as B,ki as C,Kr as D,ni as E,nr as F,re as G,gt as H,Sr as I,U as J,G as K,sr as L,Qn as M,er as N,Mr as O,Cr as P,Me as Q,Pn as R,Hi as S,Pi as T,yt as U,Rn as V,N as W,Ge as X,xe as Y,Te as Z,Ui as _,va as a,v as at,Ji as b,ha as c,o as ct,la as d,A as et,aa as f,Wi as g,ea as h,xa as i,C as it,vr as j,xr as k,Qi as l,c as lt,ma as m,Ta as n,S as nt,Oa as o,d as ot,pa as p,He as q,Ea as r,_ as rt,Aa as s,u as st,Ma as t,g as tt,ia as u,Vi as v,Ei as w,zi as x,Ri as y,Vn as z};
@@ -0,0 +1 @@
1
+ import{$ as e,A as t,B as n,F as r,I as i,J as a,L as o,M as s,N as c,O as l,P as u,Q as d,R as f,V as p,X as m,Y as h,at as g,et as _,f as v,h as y,it as b,j as x,k as S,l as C,lt as w,m as T,nt as E,ot as D,rt as O,st as k,z as A}from"./jsx-runtime-C8YK_IxR.js";var j=`application/x-www-form-urlencoded`;function M(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function N(e){return M(e)&&e.tagName.toLowerCase()===`button`}function P(e){return M(e)&&e.tagName.toLowerCase()===`form`}function F(e){return M(e)&&e.tagName.toLowerCase()===`input`}function I(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function L(e,t){let n=e.currentTarget;return e.button===0&&(!t||t===`_self`)&&!I(e)&&(n?.localName!==`a`&&n?.localName!==`area`||!n.hasAttribute(`href`)||!n.hasAttribute(`download`))}function R(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 z(e,t){let n=R(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var B=null;function V(){if(B===null)try{new FormData(document.createElement(`form`),0),B=!1}catch{B=!0}return B}var H=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function U(e){return e=e?.toLowerCase()??null,e!=null&&!H.has(e)?(g(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${j}"`),null):e}function W(t,n){if(n===`/`)return t;let r=b(t),i=e(r.pathname||``,n);return i==null?null:E({...r,pathname:i})}function G(e,t){let n,r,i,a,o;if(P(e)){let o=e.getAttribute(`action`);r=o?W(o,t):null,n=e.getAttribute(`method`)||`get`,i=U(e.getAttribute(`enctype`))||j,a=new FormData(e)}else if(N(e)||F(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?W(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=U(e.getAttribute(`formenctype`))||U(o.getAttribute(`enctype`))||j,a=new FormData(o,e),!V()){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(M(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=j,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}var K=w(k(),1),q=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{q&&(window.__reactRouterVersion=`8`)}catch{}var J=K.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:o,mask:l,state:u,target:f,to:p,preventScrollReset:h,viewTransition:g,defaultShouldRevalidate:b,...x},S){let{basename:C,navigator:w,useTransitions:E}=K.useContext(A),O=typeof p==`string`&&D.test(p),k=m(p,C);p=k.to;let j=s(p,{relative:r}),M=c(),N=null;if(l){let e=d(l,[],M.mask?M.mask.pathname:`/`,!0);C!==`/`&&(e.pathname=e.pathname===`/`?C:a([C,e.pathname])),N=w.createHref(e)}let[P,F,I]=y(n,x),L=re(p,{replace:o,mask:l,state:u,target:f,preventScrollReset:h,relative:r,viewTransition:g,defaultShouldRevalidate:b,useTransitions:E});function R(t){e&&e(t),t.defaultPrevented||L(t)}let z=!(k.isExternal||i),B=(z?N:void 0)||k.absoluteURL||j;_(B);let V=K.createElement(`a`,{...x,...I,href:B,onClick:z?R:e,ref:T(S,F),target:f,"data-discover":!O&&t===`render`?`true`:void 0});return P&&!O?K.createElement(K.Fragment,null,V,K.createElement(v,{page:j})):V});J.displayName=`Link`;var Y=()=>()=>{},ee=()=>!1,te=K.forwardRef(function({"aria-current":t=`page`,caseSensitive:n=!1,className:r=``,end:i=!1,style:a,to:s,viewTransition:l,children:u,...d},p){let m=o(s,{relative:d.relative}),h=c(),g=K.useContext(f),{navigator:_,basename:v}=K.useContext(A),y=K.useContext(C)?.isSpaMode===!0,b=K.useSyncExternalStore(Y,ee,()=>y),x=g!=null&&fe(m)&&l===!0&&!b,S=_.encodeLocation?_.encodeLocation(m).pathname:m.pathname,w=h.pathname,T=g?.navigation.location?g.navigation.location.pathname:null;n||(w=w.toLowerCase(),T=T?T.toLowerCase():null,S=S.toLowerCase()),T&&v&&(T=e(T,v)||T);let E=S!==`/`&&S.endsWith(`/`)?S.length-1:S.length,D=!b&&(w===S||!i&&w.startsWith(S)&&w.charAt(E)===`/`),O=!b&&T!=null&&(T===S||!i&&T.startsWith(S)&&T.charAt(E)===`/`),k={isActive:D,isPending:O,isTransitioning:x},j=D?t:void 0,M;M=typeof r==`function`?r(k):[r,D?`active`:null,O?`pending`:null,x?`transitioning`:null].filter(Boolean).join(` `);let N=typeof a==`function`?a(k):a;return K.createElement(J,{...d,"aria-current":j,className:M,ref:p,style:N,to:s,viewTransition:l},typeof u==`function`?u(k):u)});te.displayName=`NavLink`;var ne=K.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=K.useContext(A),g=se(),_=ce(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&D.test(s);return K.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?K.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});ne.displayName=`Form`;function X({getKey:e,storageKey:t,...n}){let r=K.useContext(C),{basename:i}=K.useContext(A),a=c(),o=u();le({getKey:e,storageKey:t});let s=K.useMemo(()=>{if(!r||!e)return null;let t=$(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let d=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t);try{sessionStorage.removeItem(e)}catch{}}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),K.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${d})(${l(JSON.stringify(t||Z))}, ${l(JSON.stringify(s))})`}})}X.displayName=`ScrollRestoration`;function re(e,{target:t,replace:n,mask:i,state:a,preventScrollReset:s,relative:l,viewTransition:u,defaultShouldRevalidate:d,useTransitions:f}={}){let p=r(),m=c(),h=o(e,{relative:l});return K.useCallback(r=>{if(L(r,t)){r.preventDefault();let t=n===void 0?E(m)===E(h):n,o=()=>p(e,{replace:t,mask:i,state:a,preventScrollReset:s,relative:l,viewTransition:u,defaultShouldRevalidate:d});f?K.startTransition(()=>o()):o()}},[m,p,h,n,i,a,t,e,s,l,u,d,f])}function ie(e){g(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=K.useRef(R(e)),n=K.useRef(!1),i=c(),a=K.useMemo(()=>z(i.search,n.current?null:t.current),[i.search]),o=r();return[a,K.useCallback((e,t)=>{let r=R(typeof e==`function`?e(new URLSearchParams(a)):e);n.current=!0,o(`?`+r,t)},[o,a])]}var ae=0,oe=()=>`__${String(++ae)}__`;function se(){let{router:e}=t(`useSubmit`),{basename:n}=K.useContext(A),r=S(`useSubmit`),i=e.fetch,a=e.navigate;return K.useCallback(async(e,t={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=G(e,n);t.navigate===!1?await i(t.fetcherKey||oe(),r,t.action||o,{defaultShouldRevalidate:t.defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,relative:t.relative,formData:l,body:u,formMethod:t.method||s,formEncType:t.encType||c,flushSync:t.flushSync}):await a(t.action||o,{defaultShouldRevalidate:t.defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,relative:t.relative,formData:l,body:u,formMethod:t.method||s,formEncType:t.encType||c,replace:t.replace,state:t.state,fromRouteId:r,flushSync:t.flushSync,viewTransition:t.viewTransition})},[i,a,n,r])}function ce(e,{relative:t}={}){let{basename:r}=K.useContext(A),i=K.useContext(n);O(i,`useFormAction must be used inside a RouteContext`);let[s]=i.matches.slice(-1),l={...o(e||`.`,{relative:t})},u=c();if(e==null){l.search=u.search;let e=new URLSearchParams(l.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();l.search=n?`?${n}`:``}}(!e||e===`.`)&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,`?index&`):`?index`),r!==`/`&&(l.pathname=l.pathname===`/`?r:a([r,l.pathname]));let d=E(l);return _(d),d}var Z=`react-router-scroll-positions`,Q={};function $(t,n,r,i){let a=null;return i&&(a=i(r===`/`?t:{...t,pathname:e(t.pathname,r)||t.pathname},n)),a??=t.key,a}function le({getKey:e,storageKey:n}={}){let{router:r}=t(`useScrollRestoration`),{restoreScrollPosition:a,preventScrollReset:o}=x(`useScrollRestoration`),{basename:s}=K.useContext(A),l=c(),d=u(),f=i();K.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),de(K.useCallback(e=>{e.persisted&&(window.history.scrollRestoration=`manual`)},[])),ue(K.useCallback(()=>{if(f.state===`idle`){let t=$(l,d,s,e);Q[t]=window.scrollY}try{sessionStorage.setItem(n||Z,JSON.stringify(Q))}catch(e){g(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[f.state,e,s,l,d,n])),typeof document<`u`&&(K.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(n||Z);if(e){let t=JSON.parse(e);Q=t&&typeof t==`object`&&!Array.isArray(t)?t:{}}}catch{}},[n]),K.useLayoutEffect(()=>{let t=r?.enableScrollRestoration(Q,()=>window.scrollY,e?(t,n)=>$(t,n,s,e):void 0);return()=>t&&t()},[r,s,e]),K.useLayoutEffect(()=>{if(a!==!1){if(typeof a==`number`)window.scrollTo(0,a);else{try{if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{g(!1,`"${l.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}o!==!0&&window.scrollTo(0,0)}}},[l,a,o]))}function ue(e,t){let{capture:n}=t||{};K.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function de(e,t){let{capture:n}=t||{};K.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pageshow`,e,t),()=>{window.removeEventListener(`pageshow`,e,t)}},[e,n])}function fe(n,{relative:r}={}){let i=K.useContext(p);O(i!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=t(`useViewTransitionState`),s=o(n,{relative:r});if(!i.isTransitioning)return!1;let c=e(i.currentLocation.pathname,a)||i.currentLocation.pathname,l=e(i.nextLocation.pathname,a)||i.nextLocation.pathname;return h(s.pathname,l)!=null||h(s.pathname,c)!=null}export{X as n,ie as r,J as t};
@@ -0,0 +1 @@
1
+ window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-BMJZABtH.js","imports":["/assets/jsx-runtime-C8YK_IxR.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/root-C-cLqVHP.js","imports":["/assets/jsx-runtime-C8YK_IxR.js","/assets/lib-C32AnKSP.js","/assets/root-i18n-_0Yddpt_.js"],"css":["/assets/root-D4kqIC2S.css"]},"routes/home":{"id":"routes/home","parentId":"root","index":true,"hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/home-DSGr2mzJ.js","imports":["/assets/jsx-runtime-C8YK_IxR.js","/assets/use-lp-language-ij45BzB4.js","/assets/lib-C32AnKSP.js"],"css":[]},"routes/demo":{"id":"routes/demo","parentId":"root","path":"demo","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/demo-G0WCPBHC.js","imports":["/assets/jsx-runtime-C8YK_IxR.js","/assets/lib-C32AnKSP.js","/assets/i18n-CbBRRmtS.js","/assets/root-i18n-_0Yddpt_.js"],"css":[]},"routes/gbrainx":{"id":"routes/gbrainx","parentId":"root","path":"app","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/gbrainx-DfnQgPxe.js","imports":["/assets/jsx-runtime-C8YK_IxR.js","/assets/lib-C32AnKSP.js","/assets/root-i18n-_0Yddpt_.js","/assets/i18n-CbBRRmtS.js"],"css":[]},"routes/sell":{"id":"routes/sell","parentId":"root","path":"sell","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/sell-DbbNBdAa.js","imports":["/assets/jsx-runtime-C8YK_IxR.js","/assets/use-lp-language-ij45BzB4.js","/assets/lib-C32AnKSP.js"],"css":["/assets/sell-CxnwvqXu.css"]},"routes/health":{"id":"routes/health","parentId":"root","path":"health","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/health-BvRk9kiK.js","imports":[],"css":[]},"routes/api":{"id":"routes/api","parentId":"root","path":"api/*","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/api-BvRk9kiK.js","imports":[],"css":[]}},"url":"/assets/manifest-813cc1a4.js","version":"813cc1a4"};
@@ -0,0 +1 @@
1
+ import{N as e,d as t,n,o as r,p as i,q as a,s as o,t as s,u as c}from"./jsx-runtime-C8YK_IxR.js";import{n as l}from"./lib-C32AnKSP.js";import{n as u,t as d}from"./root-i18n-_0Yddpt_.js";var f=s(),p=()=>[{rel:`preconnect`,href:`https://fonts.googleapis.com`},{rel:`preconnect`,href:`https://fonts.gstatic.com`,crossOrigin:`anonymous`},{rel:`stylesheet`,href:`https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Noto+Sans+JP:wght@400;500;700&display=swap`}];function m({children:n}){let r=u(e().search);return(0,f.jsxs)(`html`,{lang:r,children:[(0,f.jsxs)(`head`,{children:[(0,f.jsx)(`meta`,{charSet:`utf-8`}),(0,f.jsx)(`meta`,{name:`viewport`,content:`width=device-width, initial-scale=1`}),(0,f.jsx)(t,{}),(0,f.jsx)(c,{})]}),(0,f.jsxs)(`body`,{children:[n,(0,f.jsx)(l,{}),(0,f.jsx)(i,{})]})]})}var h=r(function(){return(0,f.jsx)(n,{})}),g=o(function({error:t}){let n=u(e().search),r=d[n],i=r.error,o=r.unexpected,s;return a(t)&&(i=t.status===404?`404`:r.error,o=t.status===404?r.notFound:o),(0,f.jsxs)(`main`,{className:`pt-16 p-4 container mx-auto`,children:[(0,f.jsx)(`h1`,{children:i}),(0,f.jsx)(`p`,{children:o}),s]})});export{g as ErrorBoundary,m as Layout,h as default,p as links};
@@ -0,0 +1,2 @@
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:"Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-700:oklch(48.8% .243 264.376);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-950:oklch(13% .028 261.692);--color-white:#fff;--spacing:.25rem;--leading-normal:1.5;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.min-h-0{min-height:0}.w-\[500px\]{width:500px}.w-full{width:100%}.max-w-\[100vw\]{max-width:100vw}.max-w-\[300px\]{max-width:300px}.flex-1{flex:1}.transform{transform:var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, )}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-3{gap:calc(var(--spacing) * 3)}.gap-9{gap:calc(var(--spacing) * 9)}.gap-16{gap:calc(var(--spacing) * 16)}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.self-stretch{align-self:stretch}.overflow-x-auto{overflow-x:auto}.rounded-3xl{border-radius:var(--radius-3xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-gray-200{border-color:var(--color-gray-200)}.stroke-gray-600{stroke:var(--color-gray-600)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-4{padding-inline:calc(var(--spacing) * 4)}.pt-16{padding-top:calc(var(--spacing) * 16)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.text-center{text-align:center}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.text-blue-700{color:var(--color-blue-700)}.text-gray-700{color:var(--color-gray-700)}.line-through{text-decoration-line:line-through}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media (hover:hover){:is(:where(.group):hover .group-hover\:stroke-current){stroke:currentColor}.hover\:underline:hover{text-decoration-line:underline}}@media (prefers-color-scheme:dark){.dark\:block{display:block}.dark\:hidden{display:none}.dark\:border-gray-700{border-color:var(--color-gray-700)}.dark\:stroke-gray-300{stroke:var(--color-gray-300)}.dark\:text-blue-500{color:var(--color-blue-500)}.dark\:text-gray-200{color:var(--color-gray-200)}}}html,body{background-color:var(--color-white)}@media (prefers-color-scheme:dark){html,body{background-color:var(--color-gray-950);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
@@ -0,0 +1 @@
1
+ function e(e){return new URLSearchParams(e).get(`lang`)===`ja`?`ja`:`en`}var t={ja:{error:`エラー`,unexpected:`予期しないエラーが発生しました。`,notFound:`お探しのページが見つかりません。`},en:{error:`Error`,unexpected:`An unexpected error occurred.`,notFound:`The requested page could not be found.`}};export{e as n,t};
@@ -0,0 +1 @@
1
+ .sell{color:#062544;background:#f5f8fc;font-family:Inter,Noto Sans JP,system-ui,sans-serif;line-height:1.6}.sell *{box-sizing:border-box}.sell-wrap{max-width:1184px;margin:0 auto;padding-left:32px;padding-right:32px}.sell-header,.sell-hero,.sell footer{color:#fff;background:#062544}.sell-header-inner{align-items:center;gap:28px;min-height:64px;display:flex}.sell-brand{color:#fff;align-items:center;gap:10px;font-size:17px;font-weight:700;text-decoration:none;display:flex}.sell-header nav{gap:24px;display:flex}.sell-header nav a{color:#c9d6e6;font-size:14px;text-decoration:none}.sell-spacer{flex:1}.sell-languages{border:1px solid #2b4a6b;border-radius:999px;display:flex;overflow:hidden}.sell-languages button{color:#c9d6e6;cursor:pointer;background:0 0;border:0;min-width:44px;min-height:44px}.sell-languages button[aria-pressed=true]{color:#062544;background:#fff}.sell-button{color:#062544;cursor:pointer;background:#fff;border:0;border-radius:999px;justify-content:center;align-items:center;min-height:50px;padding:0 26px;font-family:inherit;font-size:16px;font-weight:700;text-decoration:none;display:inline-flex}.sell-header .sell-button{min-height:44px;padding:0 18px;font-size:14px}.sell-button-outline{color:#fff;background:0 0;border:1px solid #2b4a6b}.sell-hero-inner{text-align:center;flex-direction:column;align-items:center;gap:22px;padding-top:72px;padding-bottom:72px;display:flex}.sell h1,.sell h2,.sell h3,.sell p{margin:0}.sell h1,.sell h2,.sell h3{word-break:auto-phrase;text-wrap:balance}.sell h1{letter-spacing:-.025em;font-size:clamp(34px,6.4vw,78px);font-weight:800;line-height:1.12}.sell h1 span,.sell-final h2 span{color:#9fc3ea;display:block}.sell-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.sell-flow{gap:52px;width:100%;margin-top:32px;display:flex}.sell-flow-card{background:#0a2e52;border:1px solid #1d4570;border-radius:18px;flex-direction:column;flex:1;align-items:center;gap:10px;min-width:0;padding:20px;display:flex;position:relative}.sell-flow-group{flex:1;min-width:0;display:flex;position:relative}.sell-flow-arrow{position:absolute;top:50%;right:-52px;transform:translateY(-50%)}.sell-flow-icon{align-items:center;height:130px;display:flex}.sell-flow-card strong{font-size:17px}.sell-flow-card span{color:#c9d6e6;font-size:14px}.sell-hero small{color:#7e97b3}.sell-split{flex-wrap:wrap;align-items:center;gap:56px;padding-top:104px;padding-bottom:8px;display:flex}.sell-split>div{flex:380px;min-width:0}.sell h2{letter-spacing:-.02em;font-size:clamp(28px,3.4vw,40px);font-weight:800;line-height:1.2}.sell-split h2{margin:16px 0}.sell-split p,.sell-section>p{color:#4a6380;font-size:17px}.sell-kicker{letter-spacing:.06em;color:#1e5aa8;font-family:monospace;font-size:12px;font-weight:600}.sell-red{color:#d64545}.sell-green{color:#16a36a}.sell-notes{color:#c9d6e6;background:#062544;border-radius:18px;padding:22px}.sell-note-heading{font-size:13px}.sell-note-heading strong{font-family:monospace;font-weight:400}.sell-note-heading,.sell-result-total{justify-content:space-between;gap:12px;display:flex}.sell-note-heading span,.sell-notes small{color:#7e97b3}.sell-chips{flex-wrap:wrap;gap:8px;margin:12px 0;font-size:12px;display:flex}.sell-chips span{background:#0a2e52;border-radius:8px;padding:6px 10px;font-family:monospace}.sell-chips .sell-private{color:#ff9a9a;background:#3a1e28}.sell-result,.sell-steps article,.sell-about{background:#fff;border:1px solid #dce5f0;border-radius:18px;padding:22px 26px}.sell-result-row{border-bottom:1px solid #dce5f0;align-items:center;gap:12px;padding:10px 0;display:flex}.sell-result-row code{color:#4a6380;margin-left:auto;font-size:12px}.sell-result-row strong{font-weight:600}.sell-check{color:#16a36a;background:#e3f6ec;border-radius:50%;place-items:center;width:26px;height:26px;display:grid}.sell-result-total{margin-top:14px}.sell-result-total code{font-size:13px}.sell-result-total b{color:#16a36a;font-weight:600}.sell-section{padding-top:104px;padding-bottom:8px}.sell-section>p{margin-top:10px}.sell-steps{flex-wrap:wrap;gap:16px;margin-top:28px;display:flex}.sell-steps article{flex-direction:column;flex:272px;gap:12px;padding:26px;display:flex}.sell-step-number{color:#1e5aa8;justify-content:space-between;font-size:28px;display:flex}.sell-step-number code{color:#4a6380;font-size:12px}.sell-step-title,.sell-safety-title{font-size:17px;font-weight:700}.sell-step-description{color:#4a6380;font-size:14px}.sell-safety-copy{flex-direction:column;gap:4px;display:flex}.sell-safety-copy span:last-child{color:#4a6380;font-size:15px}.sell-safety{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:32px;margin-top:32px;display:grid}.sell-safety>div{gap:14px;display:flex}.sell-safety-icon{background:#fff;border:1px solid #dce5f0;border-radius:14px;flex:0 0 48px;place-items:center;height:48px;font-size:24px;display:grid}.sell-about{flex-direction:column;align-items:flex-start;gap:10px;padding:32px 36px;display:flex}.sell-about blockquote{margin:0;font-size:clamp(19px,2.2vw,24px);font-weight:700;line-height:1.4}.sell-about p,.sell-about small{color:#4a6380}.sell-about-copy p{font-size:15px}.sell-about-note{font-size:12px}.sell-about a{color:#1e5aa8}.sell-last{max-width:1184px;padding-bottom:96px}.sell-final{color:#fff;background:#062544;border-radius:24px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px;padding:40px 48px;display:flex}.sell-final>div{flex:420px;min-width:0}.sell-final h2{letter-spacing:-.03em;font-size:clamp(30px,4vw,46px);line-height:1.08}.sell-final p{color:#c9d6e6;margin:18px 0}.sell-final .sell-actions{justify-content:flex-start;align-items:center}.sell-final-demo{color:#c9d6e6;align-items:center;min-height:44px;padding:0 8px;font-size:15px;font-weight:600;text-decoration:none;display:inline-flex}.sell footer .sell-wrap{color:#9fb4cc;flex-wrap:wrap;justify-content:space-between;gap:12px;padding-top:28px;padding-bottom:28px;font-size:13px;display:flex}.sell footer a{color:#fff;text-decoration:none}@media (width<=760px){.sell-wrap{padding-left:20px;padding-right:20px}.sell-header-inner{gap:12px}.sell-header nav,.sell-header-cta{display:none}.sell-flow{flex-direction:column;gap:36px}.sell-flow-group{flex-direction:column;width:100%}.sell-flow-card{width:100%}.sell-flow-arrow{top:auto;bottom:-30px;right:50%;transform:translate(50%)rotate(90deg)}.sell-result-total{flex-wrap:wrap}}@media (width<=759px){.sell-flow{gap:12px}.sell-flow-arrow{display:none}}.sell-form-note{color:#9fb4cc;font-size:13px}.sell-about{flex-flow:wrap;align-items:center;gap:28px}.sell-about-copy{flex-direction:column;flex:2 420px;gap:10px;min-width:0;display:flex}.sell-about-links{flex-direction:column;flex:220px;gap:10px;display:flex}.sell-about-links a{color:#062544;border:1px solid #dce5f0;border-radius:999px;align-items:center;gap:10px;min-height:46px;padding:0 18px;font-weight:600;text-decoration:none;display:flex}.sell-about-note{flex:100%}.sell-actions{align-items:center;gap:10px}.sell-primary,.sell-video,.sell-final-demo{gap:8px}.sell-video{font-weight:600}@media (width<=760px){.sell-actions{width:100%}.sell-actions .sell-primary,.sell-actions .sell-video{flex:1 1 0;padding:0 14px;font-size:14px}.sell-actions .sell-final-demo{flex:100%;justify-content:center}}.sell-split>.sell-notes,.sell-split>.sell-result{flex-basis:420px}.sell-result-total{flex-wrap:nowrap;align-items:center}.sell-result-total strong{min-width:0}.sell-result-total code{margin-left:auto}.sell-final>div{flex-direction:column;gap:18px;display:flex}.sell-final p{margin:0}
@@ -0,0 +1 @@
1
+ import{lt as e,o as t,st as n,t as r}from"./jsx-runtime-C8YK_IxR.js";import{i,n as a,o,r as s,t as c}from"./use-lp-language-ij45BzB4.js";var l=e(n(),1),u={ja:{navLabel:`ページ内`,footer:`GbrainX · c0mpiled ハッカソン作品 · 2026`,gbSrc:`GBrain 公式リポジトリ(Garry Tan 氏作)の README より`,gbNote:`GBrain の公式製品ではない、独立したハッカソン作品です。`,gbBody:`GBrain は Garry Tan 氏のオープンソースのメモリ。GbrainX はその上に専門知識の売買を足す拡張です。`,navHow:`出品の流れ`,navSafety:`安全性`,navOther:`エージェントを使う人へ`,h1a:`GBrain に残した経験を、`,h1b:`誰かの AI に売る。`,f1t:`あなたの GBrain`,f1d:`仕事の知見と私的なメモが混ざった状態。`,f2t:`GbrainX`,f2d:`出していい部分だけを残し、効くか確かめてから出品。`,f3t:`世界中の Claude Code`,f3d:`1回使われるごとに、売上の 90% が入ります。`,flowNote:`使われた分だけ、あなたに支払われます。`,pK:`いまの状態`,pT:`あなたのメモには、AI が知らないことが書いてある。`,pD:`苦労して解いた問題の記録も、GBrain の中にあるだけでは誰の役にも立ちません。鍵や顧客情報が混ざっていて、そのままでは人にも渡せません。`,iMeta:`8 ページ`,iNote:`出せるページと出せないページが混ざっている。`,sK:`GbrainX を使うと`,sT:`出せる部分だけを選んで売れる。`,sD:`あなたは残すページを選ぶだけです。秘密の除去と効果の確認は自動で行い、通ったものだけを出品します。`,g1:`枝刈り`,g2:`蒸留`,g3:`秘密除去`,g4:`効果測定`,howTitle:`出品まで 4ステップ`,howSub:`手を動かすのは最初の 2つだけです。`,s1t:`アップロード`,s1d:`~/brain を読み込みます。分類はあなたの端末の中で行います。`,s2t:`残すページを選ぶ`,s2d:`仕事の知見だけが、最初から選ばれています。`,s3t:`自動で秘密除去と検証`,s3d:`鍵や社内ホスト名を伏せ字にし、パックありとなしで結果を比べます。`,s4t:`出品して受け取る`,s4d:`1回 $0.50 で出品され、使われるたびに $0.45 が入ります。`,safeTitle:`私的なメモは外に出ません`,k1t:`選んでいないページは送らない`,k1d:`送るのは、残すと決めたページだけです。`,k2t:`秘密は伏せ字にして再確認`,k2d:`再スキャンで 0件になるまで先に進みません。`,k3t:`効かないものは出さない`,k3d:`効果が出なければ出品されず、理由が表示されます。`,endSub:`あなたが解いた問題を、次に詰まった誰かの AI が使います。`,ctaForm:`出品する`,ctaVideo:`動画を見る`,ctaDemo:`デモを触る`,formNote:`Typeform が開きます · 質問は 5つ`},en:{navLabel:`On this page`,footer:`GbrainX · built at the c0mpiled hackathon · 2026`,gbSrc:`From the official GBrain README, by Garry Tan`,gbNote:`Independent hackathon project, not an official GBrain product.`,gbBody:`GBrain is Garry Tan’s open-source memory. GbrainX adds buying and selling expertise on top.`,navHow:`How listing works`,navSafety:`Safety`,navOther:`For agent users`,h1a:`Let every agent work with your brain.`,h1b:`Get paid like an expert.`,f1t:`Your GBrain`,f1d:`Expertise mixed with personal notes.`,f2t:`GbrainX`,f2d:`Keeps the expertise, removes secrets, proves it helps.`,f3t:`Claude Code everywhere`,f3d:`90% of each use goes to you.`,flowNote:`Your experience goes to work in other agents.`,pK:`THE SITUATION`,pT:`You know what general AI does not.`,pD:`Your expertise sits in your GBrain where no other agent can reach it, mixed with keys and customer data that cannot be shared.`,iMeta:`8 pages`,iNote:`Expertise mixed with pages that must not leave.`,sK:`WITH GBRAINX`,sT:`Only the expertise gets listed, safely.`,sD:`Pick the pages to keep. Scrubbing and checks run on their own; only what passes is listed.`,g1:`Prune`,g2:`Distill`,g3:`Scrub`,g4:`Verify`,howTitle:`Four steps to list`,howSub:`You do the first two. The rest is automatic.`,s1t:`Upload`,s1d:`Load ~/brain. Classified on your machine.`,s2t:`Choose pages`,s2d:`Only expertise starts selected.`,s3t:`Auto scrub and verify`,s3d:`Keys redacted; with vs. without compared.`,s4t:`List and get paid`,s4d:`Listed at $0.50; $0.45 to you per use.`,safeTitle:`Your memory does not leak`,k1t:`Unchosen pages stay local`,k1d:`Only pages you choose are used.`,k2t:`Secrets redacted, re-checked`,k2d:`Moves on only at zero findings.`,k3t:`No effect, no listing`,k3d:`No effect, no listing, with the reason shown.`,endSub:`Your expertise keeps working in other people’s agents.`,ctaForm:`Apply to list`,ctaVideo:`Watch video`,ctaDemo:`Try the demo`,formNote:`Opens in Typeform · 5 questions`}},d=r(),f=e=>({...u.en,...u[e]});function p({large:e=!1}){return(0,d.jsxs)(`svg`,{viewBox:`0 0 150 120`,width:e?170:150,height:e?136:120,"aria-hidden":`true`,children:[(0,d.jsx)(`path`,{d:`M40 34 104 28 112 86 62 88 40 34`,fill:`none`,stroke:`#9FB4CC`,strokeWidth:`2`}),[[20,20],[84,14],[42,74],[92,72]].map(([e,t])=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`rect`,{x:e,y:t,width:`40`,height:`28`,rx:`4`,fill:`white`,stroke:`#062544`,strokeWidth:`2.5`}),(0,d.jsx)(`path`,{d:`M${e+8} ${t+10}h24 M${e+8} ${t+18}h16`,stroke:`#9FB4CC`,strokeWidth:`2`})]},`${e}-${t}`))]})}function m(){return(0,d.jsxs)(`svg`,{viewBox:`0 0 150 120`,width:`150`,height:`120`,"aria-hidden":`true`,children:[(0,d.jsx)(`path`,{d:`M22 60h106`,stroke:`#9FB4CC`,strokeWidth:`2`}),[22,57,93,128].map(e=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`circle`,{cx:e,cy:`60`,r:`14`,fill:`white`,stroke:`#062544`,strokeWidth:`2.5`}),(0,d.jsx)(`path`,{d:`M${e-6} 60l4 4 8-8`,fill:`none`,stroke:`#16A36A`,strokeWidth:`3`})]},e))]})}function h(){return(0,d.jsxs)(`svg`,{width:`130`,height:`130`,viewBox:`0 -10 200 210`,role:`img`,"aria-label":`Claude Code using your brain`,children:[(0,d.jsx)(`rect`,{x:`68`,y:`40`,width:`64`,height:`10`,rx:`3`,fill:`#0B3157`,stroke:`#062544`,strokeWidth:`3`}),(0,d.jsx)(`rect`,{x:`74`,y:`16`,width:`52`,height:`30`,rx:`5`,fill:`#FFFFFF`,stroke:`#062544`,strokeWidth:`3`}),(0,d.jsx)(`g`,{transform:`translate(100 31) scale(0.38) translate(-100 -31)`,children:(0,d.jsx)(`path`,{d:`M100 9 c-10 0 -22 2 -24 12 c-10 2 -14 14 -8 22 c-4 10 4 20 14 18 c4 6 12 6 18 2 M100 9 c10 0 22 2 24 12 c10 2 14 14 8 22 c4 10 -4 20 -14 18 c-4 6 -12 6 -18 2 M100 9 v56`,fill:`none`,stroke:`#1E5AA8`,strokeWidth:`4`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,d.jsx)(`line`,{x1:`95.44`,y1:`28.72`,x2:`100.0`,y2:`31.0`,stroke:`#1E5AA8`,strokeWidth:`0.5319999999999999`,opacity:`0.7`}),(0,d.jsx)(`line`,{x1:`96.96`,y1:`34.8`,x2:`100.0`,y2:`31.0`,stroke:`#1E5AA8`,strokeWidth:`0.5319999999999999`,opacity:`0.7`}),(0,d.jsx)(`line`,{x1:`103.8`,y1:`27.96`,x2:`100.0`,y2:`31.0`,stroke:`#1E5AA8`,strokeWidth:`0.5319999999999999`,opacity:`0.7`}),(0,d.jsx)(`line`,{x1:`104.56`,y1:`34.04`,x2:`100.0`,y2:`31.0`,stroke:`#1E5AA8`,strokeWidth:`0.5319999999999999`,opacity:`0.7`}),(0,d.jsx)(`line`,{x1:`95.44`,y1:`28.72`,x2:`96.96`,y2:`34.8`,stroke:`#1E5AA8`,strokeWidth:`0.5319999999999999`,opacity:`0.7`}),(0,d.jsx)(`line`,{x1:`103.8`,y1:`27.96`,x2:`104.56`,y2:`34.04`,stroke:`#1E5AA8`,strokeWidth:`0.5319999999999999`,opacity:`0.7`}),(0,d.jsx)(`circle`,{cx:`95.44`,cy:`28.72`,r:`0.9880000000000001`,fill:`#1E5AA8`}),(0,d.jsx)(`circle`,{cx:`96.96`,cy:`34.8`,r:`0.9880000000000001`,fill:`#1E5AA8`}),(0,d.jsx)(`circle`,{cx:`103.8`,cy:`27.96`,r:`0.9880000000000001`,fill:`#1E5AA8`}),(0,d.jsx)(`circle`,{cx:`104.56`,cy:`34.04`,r:`0.9880000000000001`,fill:`#1E5AA8`}),(0,d.jsx)(`circle`,{cx:`100.0`,cy:`31.0`,r:`0.9880000000000001`,fill:`#1E5AA8`}),(0,d.jsx)(`rect`,{x:`48`,y:`50`,width:`104`,height:`62`,rx:`8`,fill:`#1E5AA8`,stroke:`#062544`,strokeWidth:`3`}),(0,d.jsx)(`rect`,{x:`60`,y:`68`,width:`80`,height:`20`,rx:`4`,fill:`#062544`}),(0,d.jsx)(`rect`,{x:`66`,y:`75`,width:`68`,height:`6`,rx:`2`,fill:`#3DDC97`}),(0,d.jsx)(`rect`,{x:`90`,y:`112`,width:`20`,height:`8`,fill:`#0B3157`}),(0,d.jsx)(`rect`,{x:`54`,y:`120`,width:`92`,height:`66`,rx:`8`,fill:`#1E5AA8`,stroke:`#062544`,strokeWidth:`3`}),(0,d.jsx)(`rect`,{x:`68`,y:`134`,width:`64`,height:`24`,rx:`3`,fill:`#0B3157`}),(0,d.jsx)(`rect`,{x:`74`,y:`141`,width:`10`,height:`10`,rx:`2`,fill:`#3DDC97`}),(0,d.jsx)(`rect`,{x:`88`,y:`143`,width:`36`,height:`3`,rx:`1.5`,fill:`#5C82AE`}),(0,d.jsx)(`rect`,{x:`88`,y:`149`,width:`24`,height:`3`,rx:`1.5`,fill:`#5C82AE`}),(0,d.jsx)(`rect`,{x:`32`,y:`124`,width:`16`,height:`50`,rx:`4`,fill:`#0B3157`,stroke:`#062544`,strokeWidth:`3`}),(0,d.jsx)(`rect`,{x:`152`,y:`124`,width:`16`,height:`50`,rx:`4`,fill:`#0B3157`,stroke:`#062544`,strokeWidth:`3`}),(0,d.jsx)(`circle`,{cx:`168`,cy:`68`,r:`13`,fill:`#3DDC97`}),(0,d.jsx)(`path`,{d:`M162 68 l4.5 4.5 l8 -9`,fill:`none`,stroke:`#062544`,strokeWidth:`3.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function g({lang:e,onLang:t}){let[n,r]=(0,l.useState)(!1),o=f(e),c=(0,d.jsxs)(i,{audience:`seller`,lang:e,className:`sell-button sell-primary`,title:o.formNote,children:[(0,d.jsx)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,"aria-hidden":`true`,children:(0,d.jsx)(`path`,{d:`M12 2l2.2 6.3L20.5 10.5l-6.3 2.2L12 19l-2.2-6.3L3.5 10.5l6.3-2.2z`,fill:`currentColor`})}),o.ctaForm]}),u=(0,d.jsxs)(`button`,{type:`button`,className:`sell-button sell-button-outline sell-video`,onClick:()=>r(!0),children:[(0,d.jsxs)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,"aria-hidden":`true`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`}),(0,d.jsx)(`path`,{d:`M10 8.2v7.6l6-3.8z`,fill:`currentColor`})]}),o.ctaVideo]}),g=(0,d.jsxs)(`a`,{className:`sell-final-demo`,href:`/demo?lang=`+e,children:[(0,d.jsx)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,"aria-hidden":`true`,children:(0,d.jsx)(`path`,{d:`M5 3l14 7-6 2-2 6z`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinejoin:`round`})}),o.ctaDemo]});return(0,d.jsxs)(`div`,{className:`sell`,lang:e,children:[(0,d.jsx)(`header`,{className:`sell-header`,children:(0,d.jsxs)(`div`,{className:`sell-wrap sell-header-inner`,children:[(0,d.jsxs)(`a`,{href:`#top`,className:`sell-brand`,children:[(0,d.jsxs)(`svg`,{width:`26`,height:`26`,viewBox:`0 0 28 28`,"aria-hidden":`true`,children:[(0,d.jsx)(`rect`,{width:`28`,height:`28`,rx:`8`,fill:`white`}),(0,d.jsx)(`path`,{d:`M9 9 19 14 9 19`,fill:`none`,stroke:`#062544`,strokeWidth:`2`}),(0,d.jsx)(`circle`,{cx:`9`,cy:`9`,r:`2.6`,fill:`#062544`}),(0,d.jsx)(`circle`,{cx:`19`,cy:`14`,r:`2.6`,fill:`#062544`}),(0,d.jsx)(`circle`,{cx:`9`,cy:`19`,r:`2.6`,fill:`#062544`})]}),`GbrainX`]}),(0,d.jsxs)(`nav`,{"aria-label":o.navLabel,children:[(0,d.jsx)(`a`,{href:`#how`,children:o.navHow}),(0,d.jsx)(`a`,{href:`#safety`,children:o.navSafety}),(0,d.jsx)(`a`,{href:`/?lang=`+e,children:o.navOther})]}),(0,d.jsx)(`div`,{className:`sell-spacer`}),(0,d.jsx)(a,{className:`sell-languages`,lang:e,onLang:t}),(0,d.jsx)(`div`,{className:`sell-header-cta`,children:c})]})}),(0,d.jsxs)(`main`,{children:[(0,d.jsx)(`section`,{id:`top`,className:`sell-hero`,children:(0,d.jsxs)(`div`,{className:`sell-wrap sell-hero-inner`,children:[(0,d.jsxs)(`h1`,{children:[o.h1a,(0,d.jsx)(`span`,{children:o.h1b})]}),(0,d.jsxs)(`div`,{className:`sell-actions`,children:[c,u,g]}),(0,d.jsx)(`div`,{className:`sell-flow`,children:[[(0,d.jsx)(p,{}),o.f1t,o.f1d],[(0,d.jsx)(m,{}),o.f2t,o.f2d],[(0,d.jsx)(h,{}),o.f3t,o.f3d]].map(([e,t,n],r)=>(0,d.jsxs)(`div`,{className:`sell-flow-group`,children:[(0,d.jsxs)(`div`,{className:`sell-flow-card`,children:[(0,d.jsx)(`div`,{className:`sell-flow-icon`,children:e}),(0,d.jsx)(`strong`,{children:t}),(0,d.jsx)(`span`,{children:n})]}),r<2&&(0,d.jsx)(`svg`,{className:`sell-flow-arrow`,width:`40`,height:`24`,viewBox:`0 0 40 24`,"aria-hidden":`true`,children:(0,d.jsx)(`path`,{d:`M2 12h30M26 5l7 7-7 7`,fill:`none`,stroke:`#9FC3EA`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})]},r))}),(0,d.jsx)(`small`,{children:o.flowNote})]})}),(0,d.jsxs)(`section`,{className:`sell-wrap sell-split`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`span`,{className:`sell-kicker sell-red`,children:o.pK}),(0,d.jsx)(`h2`,{children:o.pT}),(0,d.jsx)(`p`,{children:o.pD})]}),(0,d.jsxs)(`div`,{className:`sell-notes`,children:[(0,d.jsxs)(`div`,{className:`sell-note-heading`,children:[(0,d.jsx)(`strong`,{children:`~/brain`}),(0,d.jsx)(`span`,{children:o.iMeta})]}),(0,d.jsxs)(`div`,{className:`sell-chips`,children:[(0,d.jsx)(`span`,{children:`stripe-idempotency`}),(0,d.jsx)(`span`,{children:`webhook-dedupe`}),(0,d.jsx)(`span`,{children:`payment-retries`}),(0,d.jsx)(`span`,{className:`sell-private`,children:`customer-8812`}),(0,d.jsx)(`span`,{className:`sell-private`,children:`aws-prod-account`}),(0,d.jsx)(`span`,{children:`standup-notes`})]}),(0,d.jsx)(`small`,{children:o.iNote})]})]}),(0,d.jsxs)(`section`,{className:`sell-wrap sell-split`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`span`,{className:`sell-kicker sell-green`,children:o.sK}),(0,d.jsx)(`h2`,{children:o.sT}),(0,d.jsx)(`p`,{children:o.sD})]}),(0,d.jsxs)(`div`,{className:`sell-result`,children:[[o.g1,o.g2,o.g3,o.g4].map((e,t)=>(0,d.jsxs)(`div`,{className:`sell-result-row`,children:[(0,d.jsx)(`span`,{className:`sell-check`,children:(0,d.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,d.jsx)(`path`,{d:`M8 12l3 3 5-6`})]})}),(0,d.jsx)(`strong`,{children:e}),(0,d.jsx)(`code`,{children:[`3 / 8`,`3 nodes`,`3 → [REDACTED]`,`passed`][t]})]},e)),(0,d.jsxs)(`div`,{className:`sell-result-total`,children:[(0,d.jsx)(`strong`,{children:`Stripe Double-Charge Prevention`}),(0,d.jsxs)(`code`,{children:[`$0.50 → `,(0,d.jsx)(`b`,{children:`+$0.45`})]})]})]})]}),(0,d.jsxs)(`section`,{id:`how`,className:`sell-wrap sell-section`,children:[(0,d.jsx)(`h2`,{children:o.howTitle}),(0,d.jsx)(`p`,{children:o.howSub}),(0,d.jsx)(`div`,{className:`sell-steps`,children:[[o.s1t,o.s1d],[o.s2t,o.s2d],[o.s3t,o.s3d],[o.s4t,o.s4d]].map(([e,t],n)=>(0,d.jsxs)(`article`,{children:[(0,d.jsxs)(`div`,{className:`sell-step-number`,children:[(0,d.jsx)(`span`,{"aria-hidden":`true`,children:[(0,d.jsxs)(`svg`,{width:`28`,height:`28`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#1E5AA8`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,d.jsx)(`path`,{d:`M12 16V4`}),(0,d.jsx)(`path`,{d:`M7 9l5-5 5 5`}),(0,d.jsx)(`path`,{d:`M4 16v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-3`})]}),(0,d.jsxs)(`svg`,{width:`28`,height:`28`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#1E5AA8`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,d.jsx)(`circle`,{cx:`6`,cy:`6`,r:`3`}),(0,d.jsx)(`circle`,{cx:`6`,cy:`18`,r:`3`}),(0,d.jsx)(`path`,{d:`M20 4L8.1 15.9`}),(0,d.jsx)(`path`,{d:`M14.5 14.5L20 20`})]}),(0,d.jsxs)(`svg`,{width:`28`,height:`28`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#1E5AA8`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,d.jsx)(`path`,{d:`M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6l8-3z`}),(0,d.jsx)(`path`,{d:`M9 12l2 2 4-4`})]}),(0,d.jsxs)(`svg`,{width:`28`,height:`28`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#1E5AA8`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,d.jsx)(`path`,{d:`M15 9.5c-.5-1-1.6-1.5-3-1.5-1.7 0-3 .8-3 2s1.3 1.7 3 2 3 .8 3 2-1.3 2-3 2c-1.4 0-2.5-.5-3-1.5`}),(0,d.jsx)(`path`,{d:`M12 6v2M12 16v2`})]})][n]}),(0,d.jsxs)(`code`,{children:[`0`,n+1]})]}),(0,d.jsx)(`span`,{className:`sell-step-title`,children:e}),(0,d.jsx)(`span`,{className:`sell-step-description`,children:t})]},e))})]}),(0,d.jsxs)(`section`,{id:`safety`,className:`sell-wrap sell-section`,children:[(0,d.jsx)(`h2`,{children:o.safeTitle}),(0,d.jsx)(`div`,{className:`sell-safety`,children:[[o.k1t,o.k1d],[o.k2t,o.k2d],[o.k3t,o.k3d]].map(([e,t],n)=>(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`span`,{className:`sell-safety-icon`,"aria-hidden":`true`,children:[(0,d.jsxs)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#062544`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,d.jsx)(`rect`,{x:`5`,y:`11`,width:`14`,height:`10`,rx:`2`}),(0,d.jsx)(`path`,{d:`M8 11V7a4 4 0 0 1 8 0v4`})]}),(0,d.jsxs)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#1E5AA8`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,d.jsx)(`path`,{d:`M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6l8-3z`}),(0,d.jsx)(`path`,{d:`M9 12l2 2 4-4`})]}),(0,d.jsxs)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#16A36A`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,d.jsx)(`path`,{d:`M8 12l3 3 5-6`})]})][n]}),(0,d.jsxs)(`div`,{className:`sell-safety-copy`,children:[(0,d.jsx)(`span`,{className:`sell-safety-title`,children:e}),(0,d.jsx)(`span`,{children:t})]})]},e))})]}),(0,d.jsx)(`section`,{className:`sell-wrap sell-section`,children:(0,d.jsxs)(`div`,{className:`sell-about`,children:[(0,d.jsxs)(`div`,{className:`sell-about-copy`,children:[(0,d.jsx)(`span`,{className:`sell-kicker`,children:`BUILT ON GBRAIN`}),(0,d.jsx)(`blockquote`,{lang:`en`,children:`“GBrain gives your AI agents shared, cited memory over plain Markdown.”`}),(0,d.jsx)(`small`,{children:o.gbSrc}),(0,d.jsx)(`p`,{children:o.gbBody})]}),(0,d.jsxs)(`div`,{className:`sell-about-links`,children:[(0,d.jsxs)(`a`,{href:`https://github.com/garrytan/gbrain`,children:[(0,d.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,d.jsx)(`path`,{d:`M9 19c-4 1.5-4-2-6-2.5M15 21v-3.5c0-1 .1-1.4-.5-2 2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2 4.3 4.3 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12 12 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.3 4.3 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6-.6.6-.6 1.2-.5 2V21`})}),`garrytan/gbrain`]}),(0,d.jsxs)(`a`,{href:`https://gbrain.io`,children:[(0,d.jsxs)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,d.jsx)(`path`,{d:`M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18`})]}),`gbrain.io`]})]}),(0,d.jsx)(`small`,{className:`sell-about-note`,children:o.gbNote})]})}),(0,d.jsx)(`section`,{className:`sell-wrap sell-section sell-last`,children:(0,d.jsxs)(`div`,{className:`sell-final`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsxs)(`h2`,{children:[o.h1a,(0,d.jsx)(`span`,{children:o.h1b})]}),(0,d.jsx)(`p`,{children:o.endSub}),(0,d.jsxs)(`div`,{className:`sell-actions`,children:[c,u,g]})]}),(0,d.jsx)(p,{large:!0})]})})]}),(0,d.jsx)(`footer`,{children:(0,d.jsxs)(`div`,{className:`sell-wrap`,children:[(0,d.jsx)(`span`,{children:o.footer}),(0,d.jsxs)(`a`,{href:`/?lang=`+e,children:[o.navOther,` →`]})]})}),(0,d.jsx)(s,{open:n,onClose:()=>r(!1),label:o.ctaVideo})]})}function _({location:e}){let t=f(o(new URLSearchParams(e.search).get(`lang`)));return[{title:`GbrainX | ${t.h1a} ${t.h1b}`},{name:`description`,content:t.pD}]}var v=t(function(){let[e,t]=c();return(0,d.jsx)(g,{lang:e,onLang:t})});export{v as default,_ as meta};
@@ -0,0 +1 @@
1
+ import{lt as e,st as t,t as n}from"./jsx-runtime-C8YK_IxR.js";import{r}from"./lib-C32AnKSP.js";var i=e(t(),1),a=n(),o={ja:{navLabel:`ページ内`,footer:`GbrainX · c0mpiled ハッカソン作品 · 2026`,gbSrc:`GBrain 公式リポジトリ(Garry Tan 氏作)の README より`,gbNote:`GBrain の公式製品ではない、独立したハッカソン作品です。`,gbBody:`GBrain は Garry Tan 氏のオープンソースのメモリ。GbrainX はその上に専門知識の売買を足す拡張です。`,navHow:`使い方`,navSafety:`安全性`,navOther:`出品者の方へ`,h1a:`Claude Code が詰まったら、`,h1b:`専門家の手順を借りる。`,f1t:`専門家の GBrain`,f1d:`実務で問題を解いてきた人の記録。`,f2t:`GbrainX`,f2d:`使える部分だけを抜き出し、鍵や個人情報を消して出品。`,f3t:`あなたの Claude Code`,f3d:`詰まったときに、自分で探して買う。`,flowNote:`記憶するのは GBrain、売り買いするのが GbrainX。`,pK:`たとえば`,pT:`AI は、経験のない問題に弱い。`,pD:`決済の二重課金や監査対応は、一度経験した人なら原因の見当がつきます。AI は一般的な修正を試しては外し続けます。`,tStuck:`つまずき`,tA1:`試行 1 · 決済ボタンの連打を防ぐ`,tA2:`試行 2 · リトライ回数を減らす`,tLoop:`まだ二重課金`,tA3:`試行 3 · 専門知識がなく進めない`,sK:`GbrainX を入れると`,sT:`経験者の記録を読んでから直す。`,sD:`専門家が GBrain に残した原因と直し方を、パックにして読み込みます。どこから来た知識かも書いてあります。`,b1t:`実務の記録がもと`,b1d:`実際にその仕事をしてきた人のメモから作っています。`,b2t:`効くか確かめてある`,b2d:`パックありとなしで解かせ、差が出たものだけを出品しています。`,b3t:`鍵や個人情報は消してある`,b3d:`出品前に伏せ字にしています。`,howTitle:`最初に 2つ設定すれば、あとは任せられます。`,howSub:`3つ目からは Claude Code が自分で判断します。`,s1t:`MCP を追加`,s1d:`ターミナルで claude mcp add gbrainx -- npx -y @takeokunn/gbrainx-mcp を実行します。`,s2t:`予算の上限を決める`,s2d:`初期値は 1回 $1、1セッション $3 です。`,s3t:`詰まったら自動で買う`,s3d:`必要なパックを探して買い、読み込みます。`,safeTitle:`勝手に買わせても困らない理由`,k1t:`効かないものは売っていない`,k1d:`効果を確かめられなかった知識は、出品できない仕組みです。`,k2t:`他人の秘密は入っていない`,k2d:`出品前に伏せ字にし、再スキャンで 0件になったものだけが並びます。`,k3t:`予算を超えて買わない`,k3d:`上限に達したら止まります。同じパックを 2回買うこともありません。`,endSub:`これまで専門家を呼んでいた仕事を、Claude Code に任せてみませんか。`,ctaForm:`早期アクセス`,ctaVideo:`動画を見る`,ctaDemo:`デモを触る`,formNote:`Typeform が開きます · 質問は 4つ`,brK:`EXPERT BRAINS`,brT:`たとえば、こんな人の GBrain が買えます。`,brSub:`掲載イメージ(モック)`,brQ:`聞けること`,brBadge:`知識テスト合格`,brPer:`/ 回`,brains:[{ini:`K`,av:`assets/avatars/ken.svg`,name:`Ken`,role:`元アクセラレーター パートナー`,tags:[{n:`オフィスアワー`},{n:`資金調達`}],qs:[{q:`最初の 10人のユーザーをどう集める?`},{q:`このピッチのどこを削る?`}],price:`$1.00`},{ini:`A`,av:`assets/avatars/aiko.svg`,name:`Aiko`,role:`決済エンジニア`,tags:[{n:`Stripe`},{n:`二重課金`}],qs:[{q:`リトライで二重課金するのはなぜ?`},{q:`Webhook の重複をどう防ぐ?`}],price:`$0.50`},{ini:`D`,av:`assets/avatars/daniel.svg`,name:`Daniel`,role:`データベース運用`,tags:[{n:`Postgres`},{n:`移行`}],qs:[{q:`ロックせずにカラムを足すには?`},{q:`巨大テーブルの移行手順は?`}],price:`$0.80`},{ini:`Y`,av:`assets/avatars/yui.svg`,name:`Yui`,role:`iOS リリース`,tags:[{n:`App Store`},{n:`審査`}],qs:[{q:`審査リジェクトをどう直す?`},{q:`サブスクで落ちやすい点は?`}],price:`$0.50`},{ini:`L`,av:`assets/avatars/leo.svg`,name:`Leo`,role:`セキュリティ・規制対応`,tags:[{n:`SOC 2`},{n:`監査証跡`}],qs:[{q:`SOC 2 で最初に揃える証跡は?`},{q:`ログはどれだけ残す?`}],price:`$1.00`}]},en:{navLabel:`On this page`,footer:`GbrainX · built at the c0mpiled hackathon · 2026`,gbSrc:`From the official GBrain README, by Garry Tan`,gbNote:`Independent hackathon project, not an official GBrain product.`,gbBody:`GBrain is Garry Tan’s open-source memory. GbrainX adds buying and selling expertise on top.`,navHow:`How it works`,navSafety:`Safety`,navOther:`For authors`,h1a:`Work with an expert brain.`,h1b:`Ship like an expert.`,f1t:`An expert’s GBrain`,f1d:`An expert’s know-how, with links and sources.`,f2t:`GbrainX`,f2d:`Keeps only the expertise, removes secrets, proves it helps.`,f3t:`Your Claude Code`,f3d:`Finds, buys and loads it when needed.`,flowNote:`GBrain keeps the memory. GbrainX moves it.`,pK:`THE SITUATION`,pT:`General AI stalls where deep expertise is needed.`,pD:`In payments, compliance or data migrations, where only experienced people know the answer, it loops on generic fixes and stalls.`,tStuck:`stalled`,tA1:`Attempt 1 · block double clicks`,tA2:`Attempt 2 · fewer retries`,tLoop:`still double-charged`,tA3:`Attempt 3 · no expertise to go on`,sK:`WITH GBRAINX`,sT:`It works with the brain of an expert in that domain.`,sD:`A knowledge pack cut from an expert’s GBrain: cause and fix, with sources.`,b1t:`From real experience`,b1d:`From people who have done the work.`,b2t:`Proven to help`,b2d:`Listed only if it beats no brain.`,b3t:`Secrets removed`,b3d:`Keys and personal data redacted.`,howTitle:`Set it up once. Claude Code does the rest.`,howSub:`You do two steps. The rest is automatic.`,s1t:`Add the MCP server`,s1d:`Run claude mcp add gbrainx -- npx -y @takeokunn/gbrainx-mcp once.`,s2t:`Set a budget`,s2d:`$1 per buy, $3 per session by default. Above that, it asks.`,s3t:`Auto-load when needed`,s3d:`When expertise is needed, it searches, buys and loads.`,safeTitle:`Why it is safe to let it buy`,k1t:`Only what works`,k1d:`No proven effect, no listing.`,k2t:`No one else’s secrets`,k2d:`Redacted and re-scanned to zero before listing.`,k3t:`Never over budget`,k3d:`Stops at your cap. Never buys the same pack twice.`,endSub:`Even deep-domain work can be left to your agent.`,ctaForm:`Early access`,ctaVideo:`Watch video`,ctaDemo:`Try the demo`,formNote:`Opens in Typeform · 4 questions`,brK:`EXPERT BRAINS`,brT:`Brains you can work with.`,brSub:`Example listings (mock)`,brQ:`Ask about`,brBadge:`knowledge test passed`,brPer:`/ use`,brains:[{ini:`K`,av:`assets/avatars/ken.svg`,name:`Ken`,role:`Former accelerator partner`,tags:[{n:`Office hours`},{n:`Fundraising`}],qs:[{q:`How do I find my first 10 users?`},{q:`What should I cut from this pitch?`}],price:`$1.00`},{ini:`A`,av:`assets/avatars/aiko.svg`,name:`Aiko`,role:`Payments engineer`,tags:[{n:`Stripe`},{n:`Double charges`}],qs:[{q:`Why does a retry charge twice?`},{q:`How to dedupe webhooks?`}],price:`$0.50`},{ini:`D`,av:`assets/avatars/daniel.svg`,name:`Daniel`,role:`Database reliability`,tags:[{n:`Postgres`},{n:`Migrations`}],qs:[{q:`Add a column without locking?`},{q:`Steps to migrate a huge table?`}],price:`$0.80`},{ini:`Y`,av:`assets/avatars/yui.svg`,name:`Yui`,role:`iOS releases`,tags:[{n:`App Store`},{n:`Review`}],qs:[{q:`How to fix an App Review rejection?`},{q:`Where do subscriptions get rejected?`}],price:`$0.50`},{ini:`L`,av:`assets/avatars/leo.svg`,name:`Leo`,role:`Security & compliance`,tags:[{n:`SOC 2`},{n:`Audit trails`}],qs:[{q:`First evidence to gather for SOC 2?`},{q:`How long to keep logs?`}],price:`$1.00`}]}};function s(e){return{...o.en,...o[e]}}function c(e){return e===`ja`?`ja`:`en`}function l({audience:e,lang:t,children:n,className:r,title:a}){let[o,s]=(0,i.useState)(null),[c,l]=(0,i.useState)(!1),[u,d]=(0,i.useState)(!1);return(0,i.useCallback)(()=>s(null),[]),(0,i.useCallback)(()=>{},[void 0,t,e]),null}function u({open:e,onClose:t,label:n}){let r=(0,i.useRef)(null),o=(0,i.useRef)(t);return(0,i.useEffect)(()=>{o.current=t},[t]),(0,i.useEffect)(()=>{if(!e)return;let t=document.activeElement;r.current?.focus();let n=e=>{e.key===`Escape`&&o.current()};return window.addEventListener(`keydown`,n),()=>{window.removeEventListener(`keydown`,n),t instanceof HTMLElement&&t.focus()}},[e]),e?(0,a.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":n,style:{position:`fixed`,inset:0,zIndex:1e3,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:`72px 16px 24px`},children:[(0,a.jsx)(`style`,{children:`@media(max-width:1075px){.demo-video-close{top:-52px!important;right:0!important}}`}),(0,a.jsx)(`div`,{"data-demo-video-backdrop":!0,onClick:t,style:{position:`absolute`,inset:0,background:`rgba(3,18,35,.84)`}}),(0,a.jsxs)(`div`,{style:{position:`relative`,width:`min(960px, 100%)`},children:[(0,a.jsx)(`button`,{ref:r,type:`button`,className:`demo-video-close`,onClick:t,"aria-label":`Close`,style:{position:`absolute`,top:-6,right:-58,width:44,height:44,borderRadius:999,border:0,background:`#fff`,color:`#062544`,fontSize:20,fontWeight:700,cursor:`pointer`},children:`✕`}),(0,a.jsx)(`div`,{style:{aspectRatio:`16 / 9`,background:`#000`,borderRadius:16,overflow:`hidden`,boxShadow:`0 30px 80px rgba(0,0,0,.45)`},children:(0,a.jsx)(`video`,{src:`/demo.mp4`,"aria-label":n,controls:!0,autoPlay:!0,playsInline:!0,style:{width:`100%`,height:`100%`,display:`block`,background:`#000`}})})]})]}):null}function d({className:e,lang:t,onLang:n,buttonStyle:r}){return(0,a.jsx)(`div`,{className:e,role:`group`,"aria-label":`Language`,children:[`en`,`ja`].map(e=>(0,a.jsx)(`button`,{type:`button`,"aria-pressed":t===e,onClick:()=>n(e),style:r?.(t===e),children:e.toUpperCase()},e))})}function f(){let[e,t]=r();return[c(e.get(`lang`)),n=>{let r=new URLSearchParams(e);r.set(`lang`,n),t(r)}]}export{s as a,l as i,d as n,c as o,u as r,f as t};
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 112 112"><circle cx="56" cy="56" r="56" fill="#FCE8EF"/>
2
+ <clipPath id="c"><circle cx="56" cy="56" r="56"/></clipPath><g clip-path="url(#c)"><path d="M27 64c-5-27 7-45 29-45s34 18 29 45h-8c2-14-1-24-8-28-8 5-20 7-33 6-2 7-2 15-1 22z" fill="#2A1E1A"/>
3
+ <path d="M18 112c2-20 18-30 38-30s36 10 38 30z" fill="#C2477A"/><rect x="49" y="70" width="14" height="14" rx="5" fill="#F3CFAE"/>
4
+ <ellipse cx="56" cy="53" rx="24" ry="27" fill="#F3CFAE"/><circle cx="32" cy="55" r="4.5" fill="#F3CFAE"/><circle cx="80" cy="55" r="4.5" fill="#F3CFAE"/>
5
+ <path d="M33 44c4-12 14-18 26-17 9 1 17 6 21 15-10-3-19-8-23-14-6 8-14 13-24 16z" fill="#2A1E1A"/><circle cx="47" cy="53" r="2.6" fill="#1F2430"/><circle cx="65" cy="53" r="2.6" fill="#1F2430"/>
6
+ <path d="M48 65c4 4 12 4 16 0" fill="none" stroke="#1F2430" stroke-width="2.4" stroke-linecap="round"/>
7
+ <circle cx="43" cy="61" r="3.5" fill="#E8826E" opacity=".25"/><circle cx="69" cy="61" r="3.5" fill="#E8826E" opacity=".25"/></g></svg>
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 112 112"><circle cx="56" cy="56" r="56" fill="#FFF1D6"/>
2
+ <clipPath id="c"><circle cx="56" cy="56" r="56"/></clipPath><g clip-path="url(#c)">
3
+ <path d="M18 112c2-20 18-30 38-30s36 10 38 30z" fill="#B7791F"/><rect x="49" y="70" width="14" height="14" rx="5" fill="#C98A5E"/>
4
+ <ellipse cx="56" cy="53" rx="24" ry="27" fill="#C98A5E"/><circle cx="32" cy="55" r="4.5" fill="#C98A5E"/><circle cx="80" cy="55" r="4.5" fill="#C98A5E"/>
5
+ <path d="M31 44c1-14 11-22 25-22s24 8 25 22c-6-5-14-8-25-8s-19 3-25 8z" fill="#2B2B2B"/><circle cx="47" cy="53" r="2.6" fill="#1F2430"/><circle cx="65" cy="53" r="2.6" fill="#1F2430"/>
6
+ <path d="M48 65c4 4 12 4 16 0" fill="none" stroke="#1F2430" stroke-width="2.4" stroke-linecap="round"/><path d="M40 60c1 14 7 20 16 20s15-6 16-20c-3 5-9 8-16 8s-13-3-16-8z" fill="#2B2B2B"/>
7
+ <circle cx="43" cy="61" r="3.5" fill="#E8826E" opacity=".25"/><circle cx="69" cy="61" r="3.5" fill="#E8826E" opacity=".25"/></g></svg>
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 112 112"><circle cx="56" cy="56" r="56" fill="#E6F4EA"/>
2
+ <clipPath id="c"><circle cx="56" cy="56" r="56"/></clipPath><g clip-path="url(#c)">
3
+ <path d="M18 112c2-20 18-30 38-30s36 10 38 30z" fill="#0F2A47"/><rect x="49" y="70" width="14" height="14" rx="5" fill="#F1C7A0"/>
4
+ <ellipse cx="56" cy="53" rx="24" ry="27" fill="#F1C7A0"/><circle cx="32" cy="55" r="4.5" fill="#F1C7A0"/><circle cx="80" cy="55" r="4.5" fill="#F1C7A0"/>
5
+ <path d="M29 48c-1-18 11-29 27-29 15 0 27 10 27 26-8-9-22-12-36-8-7 2-13 6-18 11z" fill="#6B4A2E"/><circle cx="47" cy="53" r="2.6" fill="#1F2430"/><circle cx="65" cy="53" r="2.6" fill="#1F2430"/>
6
+ <path d="M48 65c4 4 12 4 16 0" fill="none" stroke="#1F2430" stroke-width="2.4" stroke-linecap="round"/>
7
+ <circle cx="43" cy="61" r="3.5" fill="#E8826E" opacity=".25"/><circle cx="69" cy="61" r="3.5" fill="#E8826E" opacity=".25"/></g></svg>
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 112 112"><circle cx="56" cy="56" r="56" fill="#E2F3F4"/>
2
+ <clipPath id="c"><circle cx="56" cy="56" r="56"/></clipPath><g clip-path="url(#c)">
3
+ <path d="M18 112c2-20 18-30 38-30s36 10 38 30z" fill="#127A7A"/><rect x="49" y="70" width="14" height="14" rx="5" fill="#8D5A3B"/>
4
+ <ellipse cx="56" cy="53" rx="24" ry="27" fill="#8D5A3B"/><circle cx="32" cy="55" r="4.5" fill="#8D5A3B"/><circle cx="80" cy="55" r="4.5" fill="#8D5A3B"/>
5
+ <circle cx="34" cy="40" r="8" fill="#151515"/><circle cx="42" cy="30" r="8" fill="#151515"/><circle cx="52" cy="25" r="8" fill="#151515"/><circle cx="62" cy="25" r="8" fill="#151515"/><circle cx="72" cy="30" r="8" fill="#151515"/><circle cx="79" cy="40" r="8" fill="#151515"/><circle cx="30" cy="50" r="8" fill="#151515"/><circle cx="82" cy="50" r="8" fill="#151515"/><circle cx="47" cy="53" r="2.6" fill="#1F2430"/><circle cx="65" cy="53" r="2.6" fill="#1F2430"/>
6
+ <path d="M48 65c4 4 12 4 16 0" fill="none" stroke="#1F2430" stroke-width="2.4" stroke-linecap="round"/>
7
+ <circle cx="43" cy="61" r="3.5" fill="#E8826E" opacity=".25"/><circle cx="69" cy="61" r="3.5" fill="#E8826E" opacity=".25"/></g></svg>
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 112 112"><circle cx="56" cy="56" r="56" fill="#EDE7FB"/>
2
+ <clipPath id="c"><circle cx="56" cy="56" r="56"/></clipPath><g clip-path="url(#c)"><path d="M26 86c-6-40 4-67 30-67s36 27 30 67h-9c3-22 2-38-6-46-10 6-24 7-37 4-3 12-3 26-1 42z" fill="#3A2A22"/>
3
+ <path d="M18 112c2-20 18-30 38-30s36 10 38 30z" fill="#6B4FC8"/><rect x="49" y="70" width="14" height="14" rx="5" fill="#F5D3B5"/>
4
+ <ellipse cx="56" cy="53" rx="24" ry="27" fill="#F5D3B5"/><circle cx="32" cy="55" r="4.5" fill="#F5D3B5"/><circle cx="80" cy="55" r="4.5" fill="#F5D3B5"/>
5
+ <path d="M33 44c4-12 14-18 26-17 9 1 17 6 21 15-10-3-19-8-23-14-6 8-14 13-24 16z" fill="#3A2A22"/><circle cx="47" cy="53" r="2.6" fill="#1F2430"/><circle cx="65" cy="53" r="2.6" fill="#1F2430"/>
6
+ <path d="M48 65c4 4 12 4 16 0" fill="none" stroke="#1F2430" stroke-width="2.4" stroke-linecap="round"/><g fill="none" stroke="#1F2430" stroke-width="2.2"><circle cx="47" cy="53" r="6"/><circle cx="65" cy="53" r="6"/><path d="M53 53h6"/></g>
7
+ <circle cx="43" cy="61" r="3.5" fill="#E8826E" opacity=".25"/><circle cx="69" cy="61" r="3.5" fill="#E8826E" opacity=".25"/></g></svg>
Binary file
Binary file