@modern-js/devtools-client 2.49.4 → 2.50.0

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 (75) hide show
  1. package/dist/html/client/index.html +3 -3
  2. package/dist/html/mount/index.html +3 -3
  3. package/dist/modern.config.json +5 -5
  4. package/dist/nestedRoutes.json +1 -1
  5. package/dist/public/sw-proxy.js +1 -1
  6. package/dist/routes-manifest.json +130 -79
  7. package/dist/static/css/977.6805d9d2.css +1 -0
  8. package/dist/static/css/async/client_overview/page.e0c5e73d.css +1 -0
  9. package/dist/static/css/async/client_pages/page.77da491c.css +1 -0
  10. package/dist/static/css/async/client_storage/preset/(id)/page.04a7e72b.css +1 -0
  11. package/dist/static/css/async/client_storage/preset/layout.1177580d.css +1 -0
  12. package/dist/static/css/async/client_storage/preset/page.1177580d.css +1 -0
  13. package/dist/static/css/client.8f83eee6.css +1 -0
  14. package/dist/static/css/components.c51066af.css +1 -0
  15. package/dist/static/js/293.23479a27.js +2 -0
  16. package/dist/static/js/770.74f08f7c.js +1 -0
  17. package/dist/static/js/977.5a67aa7b.js +18 -0
  18. package/dist/static/js/{991.6c981fe2.js → 991.911eb91e.js} +2 -2
  19. package/dist/static/js/async/883.aac2d702.js +1 -0
  20. package/dist/static/js/async/client_config/(toolkit).(type)/page.343ccf40.js +1 -0
  21. package/dist/static/js/async/client_config/layout.4841f5be.js +1 -0
  22. package/dist/static/js/async/client_context/builder/{page.504913ed.js → page.9eccaadd.js} +1 -1
  23. package/dist/static/js/async/client_context/framework/{page.6dd8eadf.js → page.1dcd0598.js} +1 -1
  24. package/dist/static/js/async/client_context/layout.a59cf1b6.js +1 -0
  25. package/dist/static/js/async/client_doctor/page.0003ca4f.js +1 -0
  26. package/dist/static/js/async/client_headers/editor/page.1e969311.js +1 -0
  27. package/dist/static/js/async/client_headers/layout.ed9de95e.js +1 -0
  28. package/dist/static/js/async/client_headers/welcome/page.43008445.js +1 -0
  29. package/dist/static/js/async/client_overview/layout.98957bf0.js +1 -0
  30. package/dist/static/js/async/client_overview/page.d548e893.js +1 -0
  31. package/dist/static/js/async/client_pages/layout.6b484518.js +1 -0
  32. package/dist/static/js/async/client_pages/page.7e93bddc.js +1 -0
  33. package/dist/static/js/async/client_react/(tab)/page.6bb3fa65.js +1 -0
  34. package/dist/static/js/async/client_react/offscreen/page.0e6794ce.js +1 -0
  35. package/dist/static/js/async/client_storage/preset/(id)/page.ee6678ec.js +1 -0
  36. package/dist/static/js/async/client_storage/preset/layout.300cb677.js +1 -0
  37. package/dist/static/js/async/client_storage/preset/page.339d1df6.js +1 -0
  38. package/dist/static/js/builder-runtime.38c82d1e.js +1 -0
  39. package/dist/static/js/client.339daa25.js +1 -0
  40. package/dist/static/js/components.92a2edb8.js +1 -0
  41. package/dist/static/js/lib-router.28d6a20e.js +2 -0
  42. package/dist/static/js/mount.12a2a0cd.js +1 -0
  43. package/package.json +18 -14
  44. package/dist/static/css/522.a0ab2810.css +0 -1
  45. package/dist/static/css/async/client_headers/layout.069f6111.css +0 -1
  46. package/dist/static/css/async/client_overview/page.ad0988c7.css +0 -1
  47. package/dist/static/css/async/client_pages/layout.b94b702a.css +0 -1
  48. package/dist/static/css/async/client_pages/page.5be052b8.css +0 -1
  49. package/dist/static/css/client.9f948c8a.css +0 -1
  50. package/dist/static/css/components.139864ee.css +0 -1
  51. package/dist/static/js/522.1ff9d088.js +0 -6
  52. package/dist/static/js/637.25b041e0.js +0 -1
  53. package/dist/static/js/696.53c3f39d.js +0 -2
  54. package/dist/static/js/async/459.d7124972.js +0 -1
  55. package/dist/static/js/async/client_config/(toolkit).(type)/page.238b313f.js +0 -1
  56. package/dist/static/js/async/client_config/layout.1d4aae34.js +0 -1
  57. package/dist/static/js/async/client_context/layout.3a7367e5.js +0 -1
  58. package/dist/static/js/async/client_doctor/page.c9e1ad5c.js +0 -1
  59. package/dist/static/js/async/client_headers/editor/page.4e542498.js +0 -1
  60. package/dist/static/js/async/client_headers/layout.d72595e7.js +0 -1
  61. package/dist/static/js/async/client_headers/welcome/page.95a5a242.js +0 -1
  62. package/dist/static/js/async/client_overview/page.3f33e9c8.js +0 -1
  63. package/dist/static/js/async/client_pages/layout.e1d5b4c4.js +0 -1
  64. package/dist/static/js/async/client_pages/page.23a4b010.js +0 -1
  65. package/dist/static/js/async/client_react/(tab)/page.f24fc2b9.js +0 -1
  66. package/dist/static/js/async/client_react/offscreen/page.746b81bc.js +0 -1
  67. package/dist/static/js/builder-runtime.fffee636.js +0 -1
  68. package/dist/static/js/client.0308fac0.js +0 -1
  69. package/dist/static/js/components.abcf8160.js +0 -1
  70. package/dist/static/js/lib-router.6ca49914.js +0 -2
  71. package/dist/static/js/mount.2080c337.js +0 -1
  72. /package/dist/static/js/{696.53c3f39d.js.LICENSE.txt → 293.23479a27.js.LICENSE.txt} +0 -0
  73. /package/dist/static/js/{522.1ff9d088.js.LICENSE.txt → 977.5a67aa7b.js.LICENSE.txt} +0 -0
  74. /package/dist/static/js/{991.6c981fe2.js.LICENSE.txt → 991.911eb91e.js.LICENSE.txt} +0 -0
  75. /package/dist/static/js/{lib-router.6ca49914.js.LICENSE.txt → lib-router.28d6a20e.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["462"],{58266:function(n,t,e){"use strict";e.d(t,{Ux:function(){return _},ri:function(){return y}});var r,o=e("73839"),i=e("64534"),u=e("90247"),a=e("16170"),c=e("44518"),s=e("87317"),l=e("86834"),f=e("5872"),d=e("13266"),p=e.n(d),h=e("63415"),v=e("59535"),m=e("4513"),g=e("13063"),x=new WeakMap,b=function(n){return{loaderManager:(0,g.K)({}),runner:n,isBrowser:!0,routeManifest:"undefined"!=typeof window&&window[h.p9]}},y=function(n){var t=n.plugins,e=n.props,r=m.GZ.clone();return r.usePlugin.apply(r,(0,c._)(t)),function(n){var t=r.init(),o=function(e){var r,o=f.createElement(n||f.Fragment,n?(0,u._)({},e):null,n?e.children:f.cloneElement(e.children,(0,u._)({},null===(r=e.children)||void 0===r?void 0:r.props,e))),i=(0,f.useContext)(v.J);return t.provide({element:o,props:(0,u._)({},e),context:i},{onLast:function(n){return n.element}})};n&&p()(o,n);var i=t.hoc({App:o},{onLast:function(n){var r=n.App;return p()(function(n){var o=n.context,i=(0,a._)(n,["context"]),c=o;!(null==c?void 0:c.runner)&&(c=b(t),t.init({context:c},{onLast:function(n){var t,e=n.context;return null==r?void 0:null===(t=r.init)||void 0===t?void 0:t.call(r,e)}}));var s=(0,u._)({},i,e);return(0,l.jsx)(v.J.Provider,{value:c,children:(0,l.jsx)(r,(0,u._)({},s))})},r)}});return x.set(i,t),i}};var _=(r=(0,o._)(function(n,t,e,r){var o,a,c,l,d,p,h,v,m,_,j,w,k,E,R;return(0,s.Jh)(this,function(s){switch(s.label){case 0:var A;if(o=n,!(a=x.get(o))&&(o=y({plugins:[]})(o),a=x.get(o)),c=b(a),l=function(n){return a.init({context:n},{onLast:function(n){var t,e=n.context;return null==o?void 0:null===(t=o.init)||void 0===t?void 0:t.call(o,e)}})},!t)return[2,f.createElement(o,{context:c})];if(!("undefined"!=typeof window&&"nodejs"!==window.name))return[3,4];if(!("string"==typeof(A=t)||"undefined"!=typeof HTMLElement&&(0,i._)(A,HTMLElement)))return[3,2];return m=Object.keys(v=(null==(h=window._SSR_DATA)?void 0:null===(d=h.data)||void 0===d?void 0:d.loadersData)||{}).reduce(function(n,t){var e=v[t];return!1!==e.loading?n:(n[t]=e,n)},{}),Object.assign(c,(0,u._)({loaderManager:(0,g.K)(m,{skipStatic:!0})},h?{ssrContext:null==h?void 0:h.context}:{})),c.initialData=null==h?void 0:null===(p=h.data)||void 0===p?void 0:p.initialData,[4,l(c)];case 1:if((_=s.sent())&&(c.initialData=_),j="string"!=typeof t?t:document.getElementById(t||"root"),!r)throw Error("The `bootstrap` need provide `ReactDOM` parameter");return w=function(n){if(e)e.render(n);else if(r.createRoot)r.createRoot(j).render(n);else throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `createRoot` method")},k=function(n,t){if(!r.hydrateRoot)throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `hydrateRoot` method");r.hydrateRoot(j,n)},[2,a.client({App:o,context:c,ModernRender:w,ModernHydrate:k},{onLast:function(n){var t=n.App;w(f.createElement(t,{context:c}))}})];case 2:throw Error("`bootstrap` needs id in browser environment, it needs to be string or element");case 3:return[3,6];case 4:return Object.assign(c,{ssrContext:t,isBrowser:!1,loaderManager:(0,g.K)({},{skipNonStatic:t.staticGenerate,skipStatic:!t.staticGenerate})}),E=function(n){if("undefined"!=typeof Response&&(0,i._)(n,Response)&&n.status>=300&&n.status<=399){var t,e=n.status,r=n.headers.get("Location")||"/",o=c.ssrContext;return o&&(o.res&&(o.res.statusCode=e),null===(t=o.res)||void 0===t||t.setHeader("Location",r),o.redirection=o.redirection||{},o.redirection.status=e,o.redirection.url=r),!0}return!1},[4,l(c)];case 5:if(R=s.sent(),!E(R))return c.initialData=R,[2,a.server({App:o,context:c})];s.label=6;case 6:return[2]}})}),function(n,t,e,o){return r.apply(this,arguments)})},13063:function(n,t,e){"use strict";e.d(t,{K:function(){return h}});var r,o,i=e("73839"),u=e("64534"),a=e("70749"),c=e("44518"),s=e("87317"),l=e("24546"),f=e.n(l),d=function(){var n=new Map;return function(t){var e=n.get(t);if(e)return e;var r=JSON.stringify(t);return f()(r,"params should be not null value"),n.set(t,r),r}};(r=o||(o={}))[r.idle=0]="idle",r[r.loading=1]="loading",r[r.fulfilled=2]="fulfilled",r[r.rejected=3]="rejected";var p=function(n){var t,e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{loading:!1,reloading:!1,data:void 0,error:void 0},o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=0,f=r.data,d=r.error,p=!1,h=new Set;var v=(t=(0,i._)(function(){return(0,s.Jh)(this,function(n){return a||1===l?[2,e]:(l=1,g(),[2,e=o().then(function(n){f=n,d=null,l=2}).catch(function(n){d=n,f=null,l=3}).finally(function(){e=null,p=!0,g()})])})}),function(){return t.apply(this,arguments)}),m=function(){return{loading:!p&&1===l,reloading:p&&1===l,data:f,error:(0,u._)(d,Error)?"".concat(d.message):d,_error:d}},g=function(){(0,c._)(h).forEach(function(n){n(l,m())})};return{get result(){return m()},get promise(){return e},onChange:function(n){return h.add(n),function(){h.delete(n)}},load:v}},h=function(n){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.skipStatic,o=void 0!==r&&r,c=e.skipNonStatic,l=void 0!==c&&c,f=new Map,h=d();return{hasPendingLoaders:function(){var n=!0,t=!1,e=void 0;try{for(var r,o=f.values()[Symbol.iterator]();!(n=(r=o.next()).done);n=!0){var i=r.value.promise;if((0,u._)(i,Promise))return!0}}catch(n){t=!0,e=n}finally{try{!n&&null!=o.return&&o.return()}finally{if(t)throw e}}return!1},awaitPendingLoaders:(t=(0,i._)(function(){var n,t,e,r,o,i,c,l,d,p;return(0,s.Jh)(this,function(s){switch(s.label){case 0:n=[],t=!0,e=!1,r=void 0;try{for(o=f[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)l=(c=(0,a._)(i.value,2))[0],p=(d=c[1]).promise,(0,u._)(p,Promise)&&n.push([l,d])}catch(n){e=!0,r=n}finally{try{!t&&null!=o.return&&o.return()}finally{if(e)throw r}}return[4,Promise.all(n.map(function(n){return n[1].promise}))];case 1:return s.sent(),[2,n.reduce(function(n,t){var e=(0,a._)(t,2),r=e[0],o=e[1];return n[r]=o.result,n},{})]}})}),function(){return t.apply(this,arguments)}),add:function(t,e){var r=h(e.params),i=f.get(r),u=e._cache;if(!i||!1===u){var a=l&&!e.static,c=o&&e.static;i=p(r,void 0!==n[r]?n[r]:{data:e.initialData},t,a||c),f.set(r,i)}return r},get:function(n){return f.get(n)}}}},4513:function(n,t,e){"use strict";e.d(t,{GZ:function(){return l}});var r=e("15413"),o=(0,r.Jy)(),i=(0,r.Jy)(),u=(0,r.DJ)(),a=(0,r.DJ)(),c=(0,r.DJ)(),s={hoc:o,provide:i,client:u,server:a,init:c,pickContext:(0,r.Jy)()},l=(0,r.m_)(s);l.createPlugin},47534:function(n,t,e){"use strict";e.d(t,{M:function(){return o}});var r=e("86834"),o=function(){return(0,r.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})}},21446:function(n,t,e){"use strict";function r(){return null}e.d(t,{Z:function(){return r}})},85371:function(n,t,e){"use strict";e.d(t,{OL:function(){return w},rU:function(){return j}});var r=e("73839"),o=e("90247"),i=e("16170"),u=e("70749"),a=e("87317"),c=e("86834"),s=e("5872"),l=e("77393"),f=e("92927"),d=e("31988"),p=e("59535");function h(n,t){return function(e){null==n||n(e),!e.defaultPrevented&&t(e)}}var v=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function m(){return(m=(0,r._)(function(n,t){var r,o;return(0,a.Jh)(this,function(i){switch(i.label){case 0:if(!(r=n.id)||!t[r]||!(o=t[r].chunkIds))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all(o.map(function(n){return null===e.e||void 0===e.e?void 0:e.e(String(n))}))];case 2:return i.sent(),[3,4];case 3:return console.error(i.sent()),[3,4];case 4:return[2]}})})).apply(this,arguments)}var g=function(n,t){var e=window.location,r=e.protocol,o=e.host,i=new URL(n,"".concat(r,"//").concat(o));return i.searchParams.append("__loader",t),i.searchParams.append("__ssrDirect","true"),i},x=function(n,t,e){var r,o=n.id;return r=g("/"===e?t:"".concat(e).concat(t),o).toString(),(0,c.jsx)("link",{rel:"prefetch",as:"fetch",href:r},r)},b=function(n){var t=n.path,e=t.pathname,r=(0,s.useContext)(p.J),o=r.routeManifest,i=r.routes,u=(o||{}).routeAssets,a=Array.isArray(i)?(0,l.fp)(i,e):[];return(Array.isArray(a)&&u&&(null==a||a.forEach(function(n){return function(n,t){return m.apply(this,arguments)}(n.route,u)})),window._SSR_DATA)?(0,c.jsx)(y,{matches:a,path:t,routeManifest:o}):null},y=function(n){var t=n.matches,e=n.path,r=n.routeManifest,o=e.pathname,i=e.search,u=e.hash,a=(0,f.SN)(),l=(0,f.oQ)("/"),d=(0,s.useMemo)(function(){return null==t?void 0:t.filter(function(n,t){if(!n.route.loader||"function"!=typeof n.route.loader||0===n.route.loader.length)return!1;if(n.route.shouldRevalidate){var e,r=new URL(location.pathname+location.search+location.hash,window.origin),c=new URL(o+i+u,window.origin),s=n.route.shouldRevalidate({currentUrl:r,currentParams:(null===(e=a[0])||void 0===e?void 0:e.params)||{},nextUrl:c,nextParams:n.params,defaultShouldRevalidate:!0});if("boolean"==typeof s)return s}var l=a[t];return!!(!l||l.id!==n.route.id||l.pathname!==n.pathname||l.pathname.endsWith("*")&&l.params["*"]!==n.params["*"])||!1}).map(function(n){return x(n.route,o,l)})},[t,o,r]);return(0,c.jsx)(c.Fragment,{children:d})},_=function(n){return s.forwardRef(function(t,r){var a,l,d,p,m,g,x,y,_,j,w,k,E,R,A,S=t.to,C=t.prefetch,L=(0,i._)(t,["to","prefetch"]),O="string"==typeof S&&v.test(S);var P=(0,u._)((a=void 0===C?"none":C,l=L,p=(d=(0,u._)(s.useState(!1),2))[0],m=d[1],x=(g=(0,u._)(s.useState(!1),2))[0],y=g[1],_=l.onFocus,j=l.onBlur,w=l.onMouseEnter,k=l.onMouseLeave,E=l.onTouchStart,s.useEffect(function(){"render"===a&&y(!0)},[a]),R=function(){"intent"===a&&m(!0)},A=function(){"intent"===a&&(m(!1),y(!1))},s.useEffect(function(){if(p){var n=setTimeout(function(){y(!0)},100);return function(){clearTimeout(n)}}},[p]),[x,{onFocus:h(_,R),onBlur:h(j,A),onMouseEnter:h(w,R),onMouseLeave:h(k,A),onTouchStart:h(E,R)}]),2),M=P[0],N=P[1],D=(0,f.WU)(S);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(n,(0,o._)({ref:r,to:S},L,N)),M&&e.e&&!O?(0,c.jsx)(b,{path:D}):null]})})},j=_(d.rU);j.displayName="Link";var w=_(d.OL);w.displayName="NavLink"},68705:function(n,t,e){"use strict";e.d(t,{P:function(){return r}});var r=(0,e("15413").Zz)()},90979:function(n,t,e){"use strict";e.d(t,{OL:function(){return o.OL},OL:function(){return i.OL},ZP:function(){return u},rU:function(){return o.rU},rU:function(){return i.rU}});var r=e("29552"),o=e("78771"),i=e("85371"),u=r.NA},29552:function(n,t,e){"use strict";e.d(t,{NA:function(){return x}});var r=e("90247"),o=e("55709"),i=e("44518"),u=e("86834"),a=e("5872"),c=e("92927"),s=e("31988"),l=e("13266"),f=e.n(l),d=e("89736"),p=e("59535"),h=e("68705"),v=e("78923"),m={routes:[]},g=!0,x=function(n){var t=n.serverBase,e=void 0===t?[]:t,l=n.supportHtml5History,g=void 0===l||l,x=n.basename,b=void 0===x?"":x,y=n.originalBaseUrl,_=void 0===y?"":y,j=n.routesConfig,w=n.createRoutes,k=[];return m=j,window._SERVER_DATA=(0,d.$)("__MODERN_SERVER_DATA__"),{name:"@modern-js/plugin-router",registerHook:{modifyRoutes:h.P},setup:function(n){return{init:function(n,t){var e=n.context;return e.router={useMatches:c.SN,useLocation:c.TH,useHref:c.oQ},Object.defineProperty(e,"routes",{get:function(){return k}}),t({context:e})},hoc:function(t,l){var d,h=t.App;if(!m&&!w)return l({App:h});var x=(d=function(t){var u,l,f=_||(null===(l=window._SERVER_DATA)||void 0===l?void 0:l.router.baseUrl)||(u=location.pathname,e.find(function(n){return 0===u.search(n)})||"/"),d="/"===f?(0,v.e5)(f,b):f,h=window._ROUTER_DATA,x=(0,a.useContext)(p.J),y=x.unstable_getBlockNavState;return(0,a.useMemo)(function(){(null==h?void 0:h.errors)&&(h=(0,o._)((0,r._)({},h),{errors:(0,v.SY)(h.errors)})),k=w?w():(0,c.i7)((0,v.Ho)({routesConfig:m,props:t})),k=n.useHookRunners().modifyRoutes(k);var e=g?(0,s.aj)(k,{basename:d,hydrationData:h}):(0,s.cP)(k,{basename:d,hydrationData:h}),u=e.subscribe;return e.subscribe=function(n){return u(function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!(y&&y()))return n.apply(void 0,(0,i._)(e))})},Object.defineProperty(x,"remixRouter",{get:function(){return e},configurable:!0}),e},[m,t,d,h,y])},function(n){var t=d(n);return(0,u.jsx)(h,(0,o._)((0,r._)({},n),{children:(0,u.jsx)(s.pG,{router:t})}))});return(h&&(x=f()(x,h)),null==j?void 0:j.globalApp)?l({App:f()(x,j.globalApp)}):l({App:x})},pickContext:function(n,t){var e=n.context,i=n.pickedContext,u=e.remixRouter;if(!u)return t({context:e,pickedContext:i});var a={navigate:u.navigate,get location(){return u.state.location}};return t({context:e,pickedContext:(0,o._)((0,r._)({},i),{router:a})})}}}}}},83366:function(n,t,e){"use strict";e.d(t,{RC:function(){return o},UC:function(){return u},u3:function(){return i}});var r=e("63415"),o=function(n){return function(t){var e,o,i=null===(o=window)||void 0===o?void 0:null===(e=o[r.u$])||void 0===e?void 0:e[n];return i&&"function"==typeof i.shouldRevalidate?i.shouldRevalidate(t):t.defaultShouldRevalidate}},i=function(n,t){return"undefined"!=typeof document&&(window[r.u$][t]=n),n},u=function(n){return console.error(n),null}},78923:function(n,t,e){"use strict";e.d(t,{Ho:function(){return d},SY:function(){return h},e5:function(){return p}});var r=e("90247"),o=e("16170"),i=e("70749"),u=e("86834"),a=e("92927"),c=e("77393"),s=e("8921"),l=e("47534"),f=e("21446");function d(n){var t=n.routesConfig,e=n.props,i=n.ssrMode,c=n.reporter;if(!t)return null;var d=t.routes,p=t.globalApp;return d?function(n,t){var e=t.globalApp,i=t.ssrMode,c=t.props,d=t.reporter,p=function(n){var t=n.Component,i=(0,o._)(n,["Component"]);return e?(0,u.jsx)(e,(0,r._)({Component:t},i)):(0,u.jsx)(t,(0,r._)({},i))},h=[],v=!0,m=!1,g=void 0;try{for(var x,b=n[Symbol.iterator]();!(v=(x=b.next()).done);v=!0){var y=x.value;if("nested"===y.type){var _=(0,s.F)(y,{DeferredDataComponent:"stream"===i?f.Z:void 0,props:c,reporter:d});h.push(_)}else{var j=(0,u.jsx)(a.AW,{path:y.path,element:(0,u.jsx)(p,{Component:y.component})},y.path);h.push(j)}}}catch(n){m=!0,g=n}finally{try{!v&&null!=b.return&&b.return()}finally{if(m)throw g}}return h.push((0,u.jsx)(a.AW,{path:"*",element:(0,u.jsx)(l.M,{})},"*")),h}(d,{globalApp:p,ssrMode:i,props:e,reporter:c}):null}var p=function(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];var r=RegExp("".concat("/","{1,}"),"g");return function(n){var t=n;return t&&"string"==typeof t?(t.startsWith(".")&&(t=t.slice(1)),!t.startsWith("/")&&(t="/".concat(t)),t.endsWith("/")&&"/"!==t&&(t=t.slice(0,t.length-1)),t):t}(t.join("/").replace(r,"/"))};function h(n){if(!n)return null;var t=Object.entries(n),e={},r=!0,o=!1,u=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=(0,i._)(a.value,2),f=l[0],d=l[1];if(d&&"RouteErrorResponse"===d.__type)e[f]=new c.OF(d.status,d.statusText,d.data,!0===d.internal);else if(d&&"Error"===d.__type){var p=Error(d.message);p.stack=d.stack,e[f]=p}else e[f]=d}}catch(n){o=!0,u=n}finally{try{!r&&null!=s.return&&s.return()}finally{if(o)throw u}}return e}},59535:function(n,t,e){"use strict";e.d(t,{J:function(){return o}});var r=e("5872"),o=(0,r.createContext)({});(0,r.createContext)({})},15413:function(n,t,e){"use strict";e.d(t,{DJ:function(){return d},Jy:function(){return f},Zz:function(){return v},m_:function(){return N}});var r=e("18360"),o=e("90247"),i=e("44518"),u=e("55709"),a=e("76492"),c=function(n){var t=function(e,r){return n(e,r,function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return t(e+1,n)})};return{start:function(n){return t(0,n)},dispatch:t}},s=Symbol.for("MODERN_PIPELINE"),l=function(n){if("function"==typeof n)return n;if(n&&"function"==typeof n.middleware)return n.middleware;throw Error("".concat(n," is not a Middleware"))},f=function(){var n,t=[],e=function(n){return c(function(e,r,o){if(e>=t.length){if(n)return n(r);throw Error("Expect returning a value, but all middlewares just calling next()")}return t[e](r,o)})},o=e(),u=function(n,t){var r;return((r=t)?e(null==r?void 0:r.onLast):o).start(n)},a=(n={},(0,r._)(n,s,!0),(0,r._)(n,"use",function(){for(var n=arguments.length,e=Array(n),r=0;r<n;r++)e[r]=arguments[r];return t.push.apply(t,(0,i._)(e.map(l))),a}),(0,r._)(n,"run",u),(0,r._)(n,"middleware",function(n,t){return u(n,{onLast:t})}),n);return a},d=function(){var n=f();return(0,o._)({},n)},p=Symbol.for("MODERN_WATERFALL"),h=function(n){if("function"==typeof n)return n;if(n&&"function"==typeof n.middleware)return n.middleware;throw Error("".concat(n," is not a Brook or { brook: Brook }"))},v=function(){var n=f(),t=(0,u._)((0,o._)({},n),(0,r._)({use:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return n.use.apply(n,(0,i._)(r.map(h).map(m))),t},run:function(t,e){return n.run(t,(0,u._)((0,o._)({},e),{onLast:function(n){return n}}))},middleware:function(t){return n.run(t,{onLast:function(n){return n}})}},p,!0));return t},m=function(n){return function(t,e){return e(n(t))}},g=Symbol.for("MODERN_ASYNC_WATERFALL"),x=function(n){if("function"==typeof n)return n;if(n&&"function"==typeof n.middleware)return n.middleware;throw Error("".concat(n," is not a AsyncBrook or { brook: AsyncBrook }"))},b=function(){var n=d(),t=(0,u._)((0,o._)({},n),(0,r._)({use:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return n.use.apply(n,(0,i._)(r.map(x).map(y))),t},run:function(t,e){return n.run(t,(0,u._)((0,o._)({},e),{onLast:function(n){return n}}))},middleware:function(t){return n.run(t,{onLast:function(n){return n}})}},g,!0));return t},y=function(n){return function(t,e){return Promise.resolve(n(t)).then(function(n){return e(n)})}},_=Symbol.for("MODERN_WORKFLOW"),j=function(){var n=f(),t=(0,u._)((0,o._)({},n),(0,r._)({use:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return n.use.apply(n,(0,i._)(r.map(w))),t},run:function(t){return n.run(t,{onLast:function(){return[]}}).filter(Boolean)}},_,!0));return t},w=function(n){return function(t,e){return[n(t)].concat((0,i._)(e(t)))}},k=Symbol.for("MODERN_PARALLEL_WORKFLOW"),E=function(){var n=f(),t=(0,u._)((0,o._)({},n),(0,r._)({run:function(t){return Promise.all(n.run(t,{onLast:function(){return[]}})).then(function(n){return n.filter(Boolean)})},use:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return n.use.apply(n,(0,i._)(r.map(R))),t}},k,!0));return t},R=function(n){return function(t,e){return[n(t)].concat((0,i._)(e(t)))}},A=Symbol.for("MODERN_ASYNC_WORKFLOW"),S=function(){var n=d(),t=(0,u._)((0,o._)({},n),(0,r._)({use:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return n.use.apply(n,(0,i._)(r.map(C))),t},run:function(t){var e,r=n.run(t,{onLast:function(){return[]}});return(e=r)&&"function"==typeof e.then?r.then(function(n){return n.filter(Boolean)}):r.filter(Boolean)}},A,!0));return t},C=function(n){return function(t,e){return Promise.resolve(n(t)).then(function(n){return Promise.resolve(e(t)).then(function(t){return[n].concat((0,i._)(t))})})}},L=function(n){},O=function(n){return null!==n&&"object"==typeof n},P="SYNC_PLUGIN_SYMBOL",M={name:"untitled",pre:[],post:[],rivals:[],required:[],usePlugins:[],registerHook:{}},N=function(n,t){var e,r=0,i=(0,o._)({},n),c=function(){return e},s=function(n){i=(0,o._)({},n,i)},l=function(n){var t,e;return O(n)&&(t=n,e=P,t.hasOwnProperty(e))&&n[P]===P},f=(0,u._)((0,o._)({},t),{useHookRunners:c}),d=function(n){var t=[],p=function(n){var e,r;if(e=t,r=n,!e.some(function(n){return n.name===r.name}))t.push((0,o._)({},n))},h=function(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];return t.forEach(function(n){if(l(n))p(n);else if("function"==typeof n){var t=n();p(v(t.setup,t))}else O(n)&&p(v(n.setup,n))}),m},v=function(){var n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(null===(n=e.usePlugins)||void 0===n?void 0:n.length)&&e.usePlugins.forEach(function(n){h(v(n.setup,n))}),e.registerHook&&s(e.registerHook),(0,u._)((0,o._)((0,u._)((0,o._)({},M),{name:"No.".concat(r++," plugin")}),e),{SYNC_PLUGIN_SYMBOL:P,setup:t})},m={createPlugin:v,isPlugin:l,usePlugin:h,init:function(){var r,u=(r=t,(0,a.v)(r.slice())),c=(0,o._)({},f,n);return L(u),e=D(u.map(function(n){return n.setup(c)}),i)},clear:function(){t=[]},run:function(n){return n()},registerHook:s,useRunner:c,clone:d};return m};return d()},D=function(n,t){var e={},r=T(t);if(t){var i=function(t){n.forEach(function(n){(null==n?void 0:n[t])&&r[t].use(n[t])}),e[t]=function(n,e){return r[t].run(n,(0,o._)({},e))}};for(var u in r)i(u)}return e},B=function(n){var t,e,r,o,i,u;if(null==(t=n)?void 0:t[p])return v();if(null==(e=n)?void 0:e[g])return b();if(null==(r=n)?void 0:r[_])return j();if(null==(o=n)?void 0:o[A])return S();if(null==(i=n)?void 0:i[k])return E();if(null==(u=n)?void 0:u[s])return f();throw Error("Unknown hook: ".concat(n))},T=function(n){if(!n)return n;var t={};for(var e in n)t[e]=B(n[e]);return t}},8921:function(n,t,e){"use strict";e.d(t,{F:function(){return d}});var r=e("73839"),o=e("90247"),i=e("55709"),u=e("87317"),a=e("86834"),c=e("5872"),s=e("92927"),l=e("63415"),f=e("67791"),d=function(n){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=n.children,v=n.index,m=n.id,g=n.component,x=n.isRoot,b=n.lazyImport,y=n.config,_=n.handle,j=e.parent,w=e.DeferredDataComponent,k=e.props,E=void 0===k?{}:k,R=e.reporter,A={caseSensitive:n.caseSensitive,path:n.path,id:n.id,loader:function(n,t){var e,o=n.loader;if(!o)return function(){return"function"==typeof n.lazyImport&&n.lazyImport(),null};return e=(0,r._)(function(e){var r,i,a;return(0,u.Jh)(this,function(u){switch(u.label){case 0:return"function"==typeof n.lazyImport&&n.lazyImport(),r=(0,f.X)(),[4,o(e)];case 1:return i=u.sent(),a=r(),"undefined"==typeof document&&t&&(null==t||t.reportTiming("".concat(l.m5,"-").concat(n.id),a)),[2,i]}})}),function(n){return e.apply(this,arguments)}}(n,R),action:n.action,hasErrorBoundary:n.hasErrorBoundary,shouldRevalidate:n.shouldRevalidate,handle:(0,o._)({},_,"object"==typeof y?null==y?void 0:y.handle:{}),index:n.index,element:n.element,errorElement:n.errorElement};if(n.error){var S=(0,a.jsx)(n.error,{});A.errorElement=S}if(g){if((null==j?void 0:j.loading)&&b){var C=j.loading;t=p(g)?(0,a.jsx)(g,{fallback:(0,a.jsx)(C,{})}):(0,a.jsx)(c.Suspense,{fallback:(0,a.jsx)(C,{}),children:(0,a.jsx)(g,{})})}else t=p(g)&&b?(0,a.jsx)(g,{}):x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g,(0,o._)({},E)),"undefined"==typeof document&&w&&(0,a.jsx)(w,{nonce:null==E?void 0:E.nonce})]}):b?(0,a.jsx)(c.Suspense,{fallback:null,children:(0,a.jsx)(g,{})}):(0,a.jsx)(g,{})}else n.loading=null==j?void 0:j.loading,A.element=(0,a.jsx)(s.j3,{});t&&(A.element=t);var L=null==h?void 0:h.map(function(t){return d(t,{parent:n,reporter:R})});return v?(0,a.jsx)(s.AW,(0,i._)((0,o._)({},A),{index:!0}),m):(0,a.jsx)(s.AW,(0,i._)((0,o._)({},A),{index:!1,children:L}),m)};function p(n){return n&&"Loadable"===n.displayName&&n.preload&&"function"==typeof n.preload}},89736:function(n,t,e){"use strict";e.d(t,{$:function(){return r}});var r=function(n){var t=document.querySelectorAll("#".concat(n));if(0!==t.length){var e=t[t.length-1];if(e)try{return JSON.parse((null==e?void 0:e.textContent)||"")}catch(t){console.error("parse ".concat(n," error"),t)}}}},78771:function(n,t,e){"use strict";e.d(t,{OL:function(){return r.OL},rU:function(){return r.rU}});var r=e("31988")},67791:function(n,t,e){"use strict";e.d(t,{X:function(){return u}});var r=e("70749");function o(n){var t=.001*new Date().getTime(),e=Math.floor(t),r=Math.floor(t%1*1e9);return n&&(e-=n[0],(r-=n[1])<0&&(e--,r+=1e9)),[e,r]}var i=function(n){var t=(0,r._)(o(n),2);return 1e3*t[0]+t[1]/1e6},u=function(){var n=o();return function(){return i(n)}}},63415:function(n,t,e){"use strict";e.d(t,{m5:function(){return a},p9:function(){return i},u$:function(){return u}});var r,o=e("18360"),i="_MODERNJS_ROUTE_MANIFEST",u="_routeModules",a="server-loader";r={},(0,o._)(r,"@modern-js/plugin-bff","@modern-js/plugin-bff/server"),(0,o._)(r,"@modern-js/plugin-express","@modern-js/plugin-express/server"),(0,o._)(r,"@modern-js/plugin-koa","@modern-js/plugin-koa/server"),(0,o._)(r,"@modern-js/plugin-server","@modern-js/plugin-server/server"),(0,o._)(r,"@modern-js/plugin-polyfill","@modern-js/plugin-polyfill/server")},76492:function(n,t,e){"use strict";e.d(t,{v:function(){return r}});var r=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"pre",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"post",o=function(e){var r=n.find(function(n){return"string"==typeof e?n[t]===e:n[t]===e[t]});if(!r)throw Error("plugin ".concat(e," not existed"));return r},i=[];n.forEach(function(u){var a,c;null===(a=u[e])||void 0===a||a.forEach(function(e){n.find(function(n){return n.name===e})&&i.push([o(e)[t],o(u)[t]])}),null===(c=u[r])||void 0===c||c.forEach(function(e){n.find(function(n){return n.name===e})&&i.push([o(u)[t],o(e)[t]])})});for(var u=n.filter(function(n){return!i.find(function(e){return e[1]===n[t]})}),a=[];u.length;)!function(){var e=u.shift();a.push(o(e)),i=i.filter(function(n){return n[0]!==o(e)[t]}),u=n.filter(function(n){return!a.find(function(e){return e[t]===n[t]})}).filter(function(n){return!i.find(function(e){return e[1]===n[t]})})}();if(i.length){var c={};throw i.forEach(function(n){c[n[0]]=!0,c[n[1]]=!0}),Error("plugins dependencies has loop: ".concat(Object.keys(c).join(",")))}return a}},19336:function(n,t,e){"use strict";n.exports=e.p+"static/font/NotoSans-latin-subset.780eca90.woff2"},91470:function(n,t,e){"use strict";e.d(t,{O:function(){return h}});var r=e("90247"),o=e("55709"),i=e("86834");e("5872");var u=e("52493"),a=e.n(u),c=e("42183"),s=e("60441"),l=e("92927"),f=e("60421"),d=e("7870");let p=n=>{let{location:t,handle:e}=n;if(!a().isObject(e)&&a().isNil(e))return[];let{breadcrumb:r}=e,o=[];a().isFunction(r)?o.push(...a().castArray(r({location:t}))):o.push(...a().castArray(r));let i=[];for(let t of o){if(!a().isObject(t)||a().isNull(t)||!("title"in t))continue;let e={id:n.id,title:t.title,pathname:n.pathname};"pathname"in t&&a().isString(t.pathname)&&(e.pathname=t.pathname),i.push(e)}return i},h=n=>{let t=[],e=(0,l.SN)(),u=(0,l.TH)(),a=[];for(let n of e)a.push(...p((0,o._)((0,r._)({},n),{location:u})));for(let[n,e]of(u.state&&"breadcrumb"in u.state&&a.push(...p({handle:u.state.breadcrumb,pathname:u.pathname,id:"external/".concat(u.pathname),location:u})),Object.entries(a))){let r=[e.id,e.pathname,n];t.push((0,i.jsx)(d.r,{color:"gray",size:"2",to:e.pathname,children:e.title},r.join("_"))),e!==a.at(-1)&&(r.push("#connector"),t.push((0,i.jsx)(s.XCv,{className:f.connector},r.join("_"))))}return(0,i.jsx)(c.k,(0,o._)((0,r._)({align:"center",height:"8",gap:"1",px:"4"},n),{children:t}))}},81881:function(n,t,e){"use strict";e.d(t,{f:function(){return c}});var r=e("5872"),o=e("92927"),i=e("24326"),u=e("99480");let a="";u.dL.then(n=>{let{hooks:t}=n;t.hookOnce("pullUp",async n=>{a=n})});let c=()=>{let n=(0,o.s0)(),t=(0,i.X7)(u.dL);return(0,r.useEffect)(()=>{a&&n(a),t.hooks.hook("pullUp",async t=>{n(t)})},[]),null}},70552:function(n,t,e){"use strict";e.d(t,{M:function(){return l}});var r=e("86834");e("5872");var o=e("92927"),i=e("76416"),u=e("30608"),a=e("89354"),c=e("29316");let s=n=>{let{error:t}=n,e=t instanceof Error?"".concat(t.name,": ").concat(t.message):"Unknown Error",o=t instanceof Error?t.stack:Object.prototype.toString.call(t);return(0,r.jsxs)(i.x,{p:"4",children:[(0,r.jsx)(u.X,{as:"h4",mb:"4",children:(0,r.jsx)(a.x,{as:"span",children:e})}),(0,r.jsx)(c.K,{disabled:!0,style:{height:"50vh"},value:o})]})},l=()=>{let n=(0,o.lk)();return(0,r.jsx)(s,{resetErrorBoundary:()=>null,error:n})}},99036:function(n,t,e){"use strict";e.d(t,{O:function(){return s}});var r=e("86834");e("5872");var o=e("42183"),i=e("76416"),u=e("30608"),a=e("29214"),c=e("92868");let s=n=>{let{title:t,children:e}=n;return(0,r.jsxs)(o.k,{className:c.container,mt:"9",mx:"auto",gap:"2",children:[(0,r.jsx)(o.k,{height:"9",align:"center",children:(0,r.jsx)(a.fd$,{size:"36"})}),(0,r.jsxs)(i.x,{children:[(0,r.jsx)(o.k,{height:"9",align:"center",children:(0,r.jsx)(u.X,{children:t})}),(0,r.jsx)(i.x,{className:c.children,children:e})]})]})}},7870:function(n,t,e){"use strict";e.d(t,{r:function(){return s}});var r=e("90247"),o=e("55709"),i=e("16170"),u=e("86834"),a=e("90979"),c=e("83287");let s=n=>{var{to:t,children:e}=n,s=(0,i._)(n,["to","children"]);return(0,u.jsx)(c.r,(0,o._)((0,r._)({},s),{asChild:!0,children:(0,u.jsx)(a.rU,{to:t,children:e})}))}},62766:function(n,t,e){"use strict";e.d(t,{l:function(){return a}});var r=e("86834");e("5872");var o=e("21216"),i=e("92927"),u=e("77393");let a=n=>{let{items:t}=n,e=(0,i.s0)(),a=(0,i.TH)(),c=t.find(n=>(0,u.LX)(n.to,a.pathname));return(0,r.jsxs)(o.Ph.Root,{size:"1",value:null==c?void 0:c.to,onValueChange:e,children:[(0,r.jsx)(o.Ph.Trigger,{}),(0,r.jsx)(o.Ph.Content,{position:"popper",children:t.map(n=>{let{title:t,to:e}=n;return(0,r.jsx)(o.Ph.Item,{value:e,children:t},e)})})]})}},25642:function(n,t,e){"use strict";e.d(t,{Q:function(){return h}});var r=e("90247"),o=e("55709"),i=e("16170"),u=e("86834"),a=e("5872"),c=e("54305"),s=e("55058"),l=e("52493"),f=e.n(l);let d=n=>["inherit","light","dark"].includes(n),p=n=>{let{children:t}=n,{appearance:e}=(0,c.TC)();return(0,a.useEffect)(()=>{localStorage.setItem("__modern_js_devtools_appearance",e),"inherit"!==e&&(document.documentElement.classList.remove("dark","light"),document.documentElement.classList.add(e))},[e]),(0,u.jsx)(u.Fragment,{children:t})},h=n=>{var{appearance:t,children:e}=n,a=(0,i._)(n,["appearance","children"]);let l=t||f().castArray((0,s.pm)(location.href).appearance)[0]||localStorage.getItem("__modern_js_devtools_appearance")||"light";if(!d(l))throw Error("Initial appearance value is invalid.");return(0,u.jsx)(c.Q2,(0,o._)((0,r._)({},a),{appearance:l,children:(0,u.jsx)(p,{children:e})}))}},17700:function(n,t,e){"use strict";var r=e("77393");t.Z=n=>{let{params:t}=n;if(!t.toolkit||!t.type)return(0,r.uX)("/404");if(!["framework","builder","bundler"].includes(t.toolkit))return(0,r.uX)("/404");if(!["resolved","transformed"].includes(t.type))return(0,r.uX)("/404");else return null}},19744:function(n,t,e){"use strict";var r=e("70552");t.Z=r.M},36466:function(n,t,e){"use strict";e.r(t),e.d(t,{handle:function(){return v}});var r=e("86834");e("5872");var o=e("89354"),i=e("45179"),u=e("21216"),a=e("76416"),c=e("92927"),s=e("52493"),l=e.n(s),f=e("69051");let d=n=>{let{name:t,describe:e}=n,c=e.map(n=>(0,r.jsx)(o.x,{style:{display:"block"},children:n},n));return(0,r.jsx)(i.u,{className:f.tooltip,side:"right",content:c,children:(0,r.jsx)(u.Ph.Item,{value:t,children:(0,r.jsx)(a.x,{children:l().startCase(t)})})},t)},p=[{name:"framework",describe:["Framework config is a superset of Builder config, ","extending it with additional configurations that ","include server-side capabilities and so on."]},{name:"builder",describe:["Builder provides wrapped building capabilities for scheduling Bundler, ","as well as other plugins and tools."]},{name:"bundler",describe:["Bundler is typically a low-level build tool like webpack or Rspack, ","and their configuration options differ significantly from higher-level tools."]}],h=[{name:"resolved",describe:["The configuration content passed by the user or superior tools,","usually exposed to the plugin API for modification."]},{name:"transformed",describe:["The modified and frozen configuration objects,","typically exposed to the plugin API for consumption."]}],v={breadcrumb:[{title:"Config"},{title:(0,r.jsx)(()=>{let n=(0,c.TH)(),t=(0,c.s0)(),[e,o]=n.pathname.split("/").slice(2);return(0,r.jsxs)(u.Ph.Root,{size:"1",value:e,onValueChange:n=>{t("/config/".concat(n,"/").concat(o))},children:[(0,r.jsx)(u.Ph.Trigger,{children:e}),(0,r.jsx)(u.Ph.Content,{children:p.map(n=>{let{name:t,describe:e}=n;return(0,r.jsx)(d,{name:t,describe:e},t)})})]})},{})},{title:(0,r.jsx)(()=>{let n=(0,c.TH)(),t=(0,c.s0)(),[e,o]=n.pathname.split("/").slice(2);return(0,r.jsxs)(u.Ph.Root,{size:"1",value:o,onValueChange:n=>{t("/config/".concat(e,"/").concat(n))},children:[(0,r.jsx)(u.Ph.Trigger,{children:o}),(0,r.jsx)(u.Ph.Content,{children:h.map(n=>{let{name:t,describe:e}=n;return(0,r.jsx)(d,{name:t,describe:e},t)})})]})},{})}]}},99956:function(n,t,e){"use strict";var r=e("77393"),o=e("55058");t.Z=n=>{let{request:t}=n,e=(0,o.As)(t.url,"./builder/transformed");return(0,r.uX)(e)}},64953:function(n,t,e){"use strict";var r=e("70552");t.Z=r.M},15549:function(n,t,e){"use strict";e.r(t),e.d(t,{handle:function(){return i}});var r=e("86834"),o=e("62766");let i={breadcrumb:[{title:"Context"},{title:(0,r.jsx)(o.l,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},97815:function(n,t,e){"use strict";var r=e("77393"),o=e("55058");t.Z=n=>{let{request:t}=n,e=(0,o.As)(t.url,"./builder");return(0,r.uX)(e)}},29922:function(n,t,e){"use strict";var r=e("86834"),o=e("92927"),i=e("83287"),u=e("76416"),a=e("79197"),c=e("55058"),s=e("99480"),l=e("70552"),f=e("99036");t.Z=()=>{let n=(0,o.lk)(),t=(0,a.R)(s.Ku);if(!(n&&"object"==typeof n&&0===Object.keys(n).length))return(0,r.jsx)(l.M,{});{let n=(0,c.Lk)(t.doctor.quickStart).host,e=(0,r.jsxs)(i.r,{href:t.doctor.quickStart,target:"_blank",rel:"noopener noreferrer",children:["\uD83D\uDD17",n]});return(0,r.jsx)(u.x,{width:"100%",children:(0,r.jsxs)(f.O,{title:"Doctor is not working",children:["Visit the website of ",e," to learn more."]})})}}},68605:function(n,t,e){"use strict";e.r(t),e.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Doctor"}}},62522:function(n,t,e){"use strict";var r=e("70552");t.Z=r.M},15343:function(n,t,e){"use strict";e.r(t),e.d(t,{handle:function(){return u}});var r=e("52493"),o=e.n(r),i=e("99480");let u={breadcrumb(n){var t;let e;let{pathname:r}=n.location,u=null===(t=r.match(/^\/external\/(\w+)/))||void 0===t?void 0:t[1],a=o().find(i.PA,{name:u});return a?{title:e}=a:e=u?o().startCase(u):"External",{title:e,pathname:r}}}},37650:function(n,t,e){"use strict";var r=e("70552");t.Z=r.M},17306:function(n,t,e){"use strict";e.r(t),e.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Header Modifier"}}},15401:function(n,t,e){"use strict";e.d(t,{_:function(){return i}});var r=e("77393"),o=e("81695");let i=async()=>{let n=await o.ok.service;return(0,r.uX)(n.rules?"./editor":"./welcome")}},81695:function(n,t,e){"use strict";e.d(t,{gM:function(){return u},m:function(){return a},ok:function(){return s}});var r=e("81733"),o=e("52493"),i=e.n(o);let u=async function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=encodeURIComponent(JSON.stringify(n)),e="".concat("/sw-proxy.js","?rules=").concat(t),r=await navigator.serviceWorker.register(e);return await navigator.serviceWorker.ready,s.service=await c(),r},a=async()=>{let n=await navigator.serviceWorker.getRegistrations(),t=!0;for(let e of n)t=t&&await e.unregister();return s.service=Promise.resolve({}),t},c=async()=>{for(let n of i().times(3))try{let n=AbortSignal.timeout(300),t=await fetch("/__devtools/service/status",{signal:n});return await t.json()}catch(n){}return{}},s=(0,r.sj)({service:c()})},40193:function(n,t,e){"use strict";e.r(t),e.d(t,{handle:function(){return i}});var r=e("86834"),o=e("29214");let i={breadcrumb:{title:(0,r.jsx)(o.Zn9,{}),pathname:"/overview"}}},49605:function(n,t,e){"use strict";e.d(t,{_:function(){return l}});var r=e("86834"),o=e("29214"),i=e("54201"),u=e("81733"),a=e("99480"),c=e("4693");let s=!1,l=async()=>{if(s)return null;s=!0;let n=await Promise.resolve(a.Ku.plugins),t=c.eg.use();await (0,c.rh)(n);let e=[{name:"overview",title:"Overview",icon:(0,r.jsx)(o.VRM,{}),view:{type:"builtin",src:"/overview"}},{name:"config",title:"Config",icon:(0,r.jsx)(o.pZq,{}),view:{type:"builtin",src:"/config"}},{name:"pages",title:"Pages",icon:(0,r.jsx)(o.OiH,{}),view:{type:"builtin",src:"/pages"}},{name:"react",title:"React",icon:(0,r.jsx)(i.Ueg,{}),view:{type:"builtin",src:"/react"}},{name:"context",title:"Context",icon:(0,r.jsx)(o.sin,{}),view:{type:"builtin",src:"/context"}},{name:"headers",title:"Header Modifier",icon:(0,r.jsx)(o.KBe,{}),view:{type:"builtin",src:"/headers"}},{name:"doctor",title:"Doctor",icon:(0,r.jsx)(i.BwS,{}),view:{type:"builtin",src:"/doctor"}}];for(let n of(await t.callHook("tab:list",e),e))"object"==typeof n.icon&&(n.icon=(0,u.iH)(n.icon)),"external"===n.view.type&&(n.view.component=(0,u.iH)(n.view.component));return a.PA.length=0,a.PA.push(...e),null}},69748:function(n,t,e){"use strict";e.r(t),e.d(t,{default:function(){return j}});var r=e("86834");e("21975");var o=e("5872"),i=e("90979"),u=e("92927"),a=e("45179"),c=e("42183"),s=e("76416"),l=e("54305"),f=e("80339"),d=e("29214"),p=e("79197"),h=e("78328"),v=e("99480"),m=e("25642"),g=e("91470"),x=e("81881");let b=n=>{let{tab:t}=n,e="";if("builtin"===t.view.type)e=t.view.src;else if("iframe"===t.view.type)e="/iframe/".concat(t.view.src);else if("external"===t.view.type)e="/external/".concat(t.name);else throw Error('Invalid tab view of "'.concat(t.name,'".'));return(0,o.useEffect)(()=>{document.documentElement.classList.add("theme-register")},[]),(0,r.jsx)(a.u,{content:t.title,side:"right",children:(0,r.jsx)(i.OL,{to:e,className:h.tabButton,children:(0,r.jsx)(c.k,{justify:"center",align:"center",p:"1",className:h.tabButtonInner,children:(0,r.jsx)(s.x,{height:"5",width:"5",asChild:!0,children:t.icon})})})})},y=()=>{let{appearance:n}=(0,l.TC)();return(0,r.jsx)(a.u,{content:"Appearance",side:"right",children:(0,r.jsx)(s.x,{className:h.tabButton,onClick:()=>{(0,l.Eh)("light"===n?"dark":"light")},children:(0,r.jsx)(c.k,{justify:"center",align:"center",p:"1",className:h.tabButtonInner,children:(0,r.jsx)(s.x,{height:"5",width:"5",asChild:!0,children:"dark"===n?(0,r.jsx)(d.Fxr,{}):(0,r.jsx)(d.YGJ,{})})})})})},_=()=>{let n=(0,p.R)(v.PA);return(0,r.jsxs)(c.k,{direction:"column",shrink:"0",className:h.navigator,children:[n.map(n=>(0,r.jsx)(b,{tab:n},n.name)),(0,r.jsx)(s.x,{grow:"1"}),(0,r.jsx)(y,{})]})};function j(){return(0,r.jsxs)(m.Q,{className:h.wrapper,accentColor:"blue",panelBackground:"solid",children:[(0,r.jsx)(s.x,{className:h.inner,children:(0,r.jsx)(s.x,{className:h.innerRight,children:(0,r.jsx)(s.x,{className:h.container,children:(0,r.jsx)(u.j3,{})})})}),(0,r.jsx)(f.y,{defaultOpen:!1,style:{display:"none"}}),(0,r.jsx)(_,{}),(0,r.jsx)(g.O,{className:h.breadcrumbs}),(0,r.jsx)(x.f,{})]})}},18384:function(n,t,e){"use strict";var r=e("86834"),o=e("62809"),i=e("99480"),u=e("428");t.Z=()=>((0,o.Z)(async()=>{(await i.dL).remote.onFinishRender()}),(0,r.jsx)(u.g,{width:"100%",style:{height:"calc(100vh - var(--breadcrumb-height))"}}))},59448:function(n,t,e){"use strict";var r=e("70552");t.Z=r.M},84826:function(n,t,e){"use strict";e.r(t),e.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Overview"}}},66802:function(n,t,e){"use strict";var r=e("77393"),o=e("55058");t.Z=n=>{let{request:t}=n,e=(0,o.As)(t.url,"./overview");return(0,r.uX)(e)}},96303:function(n,t,e){"use strict";var r=e("70552");t.Z=r.M},93581:function(n,t,e){"use strict";e.r(t),e.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Pages"}}},24757:function(n,t,e){"use strict";e.r(t),e.d(t,{handle:function(){return i}});var r=e("86834"),o=e("62766");let i={breadcrumb:[{title:"React"},{title:(0,r.jsx)(o.l,{items:[{to:"/react/components",title:"Components"},{to:"/react/profiler",title:"Profiler"}]})}]}},92865:function(n,t,e){"use strict";var r=e("70552");t.Z=r.M},82193:function(n,t,e){"use strict";var r=e("77393"),o=e("55058");t.Z=n=>{let{request:t}=n,e=(0,o.As)(t.url,"./components");return(0,r.uX)(e)}},99480:function(n,t,e){"use strict";e.d(t,{BV:function(){return j},D7:function(){return p},Ku:function(){return y},PA:function(){return g},SZ:function(){return v},dL:function(){return f},h4:function(){return w},iF:function(){return h},q4:function(){return x},y9:function(){return m}});var r=e("90247"),o=e("55709"),i=e("10487"),u=e("88739"),a=e("65872"),c=e("55058"),s=e("81733");let l=(0,c.Jh)({protocol:"https:"===location.protocol?"wss:":"ws:",host:location.host,pathname:"/__devtools/rpc"}),f=i.MessagePortChannel.link(window.parent,"channel:connect:client").then(async n=>{let t=(0,a.Hu)();return{remote:(0,u.Fu)({async pullUp(n){await t.callHook("pullUp",n)}},(0,o._)((0,r._)({},n.handlers),{timeout:500})),hooks:t}}),d=new window.WebSocket(l),p=i.WebSocketChannel.link(d).then(async n=>{let t=(0,a.Hu)();return{remote:(0,u.Fu)({async refresh(){location.reload()},async updateFileSystemRoutes(n){await t.callHook("updateFileSystemRoutes",n)}},n),hooks:t}}),h=(0,s.sj)({context:p.then(n=>{let{remote:t}=n;return t.getAppContext()}),config:{resolved:p.then(n=>{let{remote:t}=n;return t.getFrameworkConfig()}),transformed:p.then(n=>{let{remote:t}=n;return t.getTransformedFrameworkConfig()})}}),v=(0,s.sj)({context:p.then(n=>{let{remote:t}=n;return t.getBuilderContext()}),config:{resolved:p.then(n=>{let{remote:t}=n;return t.getBuilderConfig()}),transformed:p.then(n=>{let{remote:t}=n;return t.getTransformedBuilderConfig()})}}),m=(0,s.sj)({config:{resolved:p.then(n=>{let{remote:t}=n;return t.getBundlerConfigs()}),transformed:p.then(n=>{let{remote:t}=n;return t.getTransformedBundlerConfigs()})}}),g=(0,s.sj)([]),x="2.49.4",b=p.then(n=>{let{remote:t}=n;return t.getClientDefinition()}),y=(0,s.sj)({name:b.then(n=>n.name),packages:b.then(n=>n.packages),assets:b.then(n=>n.assets),announcement:b.then(n=>n.announcement),doctor:b.then(n=>n.doctor),plugins:b.then(n=>n.plugins)}),_=p.then(n=>{let{remote:t}=n;return t.getDependencies()}),j=(0,s.sj)({});_.then(n=>Object.assign(j,n));let w=(0,s.sj)({compileDuration:p.then(n=>{let{remote:t}=n;return t.getCompileTimeCost()})})},74473:function(n,t,e){"use strict";e("86834"),e("5872")},38068:function(n,t,e){"use strict";e.d(t,{X7:function(){return o}}),e("52493"),e("5872");let r=new WeakMap,o=n=>{if(!(n instanceof Promise))return n;if(r.has(n)){let t=r.get(n);if(!(t instanceof Error))return t;throw t}throw n.then(t=>r.set(n,t)).catch(t=>r.set(n,t)),n}},24326:function(n,t,e){"use strict";e.d(t,{X7:function(){return r.X7}}),e("74473");var r=e("38068")},4693:function(n,t,e){"use strict";e.d(t,{eg:function(){return i},rh:function(){return u}});var r=e("10487"),o=e("65872");class i extends o.gl{static use(){return!(r.RUNTIME_GLOBALS in window)&&(window[r.RUNTIME_GLOBALS]=new i),window[r.RUNTIME_GLOBALS]}}async function u(n){i.use();let t=n.map(n=>new Promise((t,e)=>{let r=document.createElement("script");r.onload=()=>t(),r.onerror=n=>e(n),r.src=n,document.head.appendChild(r)}));await Promise.all(t)}},69051:function(n,t,e){"use strict";e.r(n.exports={tooltip:"tooltip-ce1d99"})},78328:function(n,t,e){"use strict";e.r(n.exports={breadcrumbs:"breadcrumbs-b08b87",container:"container-b08b87","fading-mask":"fading-mask-b08b87",fadingMask:"fading-mask-b08b87",inner:"inner-b08b87","inner-right":"inner-right-b08b87",innerRight:"inner-right-b08b87",navigator:"navigator-b08b87","tab-button":"tab-button-b08b87",tabButton:"tab-button-b08b87","tab-button-inner":"tab-button-inner-b08b87",tabButtonInner:"tab-button-inner-b08b87",wrapper:"wrapper-b08b87"})},21975:function(n,t,e){"use strict";e.r(n.exports={})}},function(n){var t=function(t){return n(n.s=t)};n.O(0,["118","126","522","567","58","637","696","707"],function(){return t("90915"),t("41975"),t("15326"),t("19449"),t("56036")}),n.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["567"],{60421:function(t,n,e){"use strict";e.r(t.exports={connector:"connector-b98d1a",link:"link-b98d1a"})},69796:function(t,n,e){"use strict";e.r(t.exports={"indicate-card":"indicate-card-dc33a2",indicateCard:"indicate-card-dc33a2"})},70130:function(t,n,e){"use strict";e.r(t.exports={container:"container-d69202"})},2395:function(t,n,e){"use strict";e.r(t.exports={container:"container-a4c108",fab:"fab-a4c108",logo:"logo-a4c108",slideInFromRight:"slideInFromRight-a4c108"})},80115:function(t,n,e){"use strict";e.r(t.exports={backdrop:"backdrop-c93e94","close-button":"close-button-c93e94",closeButton:"close-button-c93e94",container:"container-c93e94",frame:"frame-c93e94"})},92868:function(t,n,e){"use strict";e.r(t.exports={children:"children-ee33d8",container:"container-ee33d8"})},5386:function(t,n,e){"use strict";e.r(t.exports={loading:"loading-c0d889",rotate:"rotate-c0d889"})},98281:function(t,n,e){"use strict";e.r(t.exports={container:"container-f9786a"})},86825:function(t,n,e){"use strict";e.r(t.exports={container:"container-e82720"})},7580:function(t,n,e){"use strict";e.r(t.exports={container:"container-ee7c7b"})},86545:function(t,n,e){"use strict";e.r(t.exports={actions:"actions-e1e928","input-pair":"input-pair-e1e928",inputPair:"input-pair-e1e928"})},85479:function(t,n,e){"use strict";e.r(t.exports={container:"container-cbc558",content:"content-cbc558",mark:"mark-cbc558",slideDown:"slideDown-cbc558",slideUp:"slideUp-cbc558",trigger:"trigger-cbc558","url-text":"url-text-cbc558",urlText:"url-text-cbc558"})},57433:function(t,n,e){"use strict";e.r(t.exports={"endpoint-container":"endpoint-container-bcf270",endpointContainer:"endpoint-container-bcf270","endpoint-tag":"endpoint-tag-bcf270",endpointTag:"endpoint-tag-bcf270","shy-link":"shy-link-bcf270",shyLink:"shy-link-bcf270"})},82023:function(t,n,e){"use strict";e.r(t.exports={stats:"stats-ca9c06"})}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see lib-router.6ca49914.js.LICENSE.txt */
2
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["118"],{77393:function(e,t,n){"use strict";var r,a,o,i;function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Ep:function(){return m},J0:function(){return d},LX:function(){return R},OF:function(){return A},RQ:function(){return U},WK:function(){return F},WS:function(){return E},X3:function(){return j},Zn:function(){return D},aU:function(){return r},cP:function(){return v},cm:function(){return P},fp:function(){return b},lX:function(){return u},p7:function(){return Y},pC:function(){return k},q_:function(){return c},uX:function(){return O}}),(o=r||(r={})).Pop="POP",o.Push="PUSH",o.Replace="REPLACE";let s="popstate";function u(e){return void 0===e&&(e={}),y(function(e,t){let{pathname:n,search:r,hash:a}=e.location;return p("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:m(t)},null,e)}function c(e){return void 0===e&&(e={}),y(function(e,t){let{pathname:n="/",search:r="",hash:a=""}=v(e.location.hash.substr(1));return!n.startsWith("/")&&!n.startsWith(".")&&(n="/"+n),p("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:m(t))},function(e,t){h("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function d(e,t){if(!1===e||null==e)throw Error(t)}function h(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n,r){return void 0===n&&(n=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?v(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function m(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function v(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function y(e,t,n,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,u=o.history,c=r.Pop,h=null,v=y();function y(){return(u.state||{idx:null}).idx}function g(){c=r.Pop;let e=y(),t=null==e?null:e-v;v=e,h&&h({action:c,location:b.location,delta:t})}null==v&&(v=0,u.replaceState(l({},u.state,{idx:v}),""));function w(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:m(e);return d(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}let b={get action(){return c},get location(){return e(o,u)},listen(e){if(h)throw Error("A history only accepts one active listener");return o.addEventListener(s,g),h=e,()=>{o.removeEventListener(s,g),h=null}},createHref:e=>t(o,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=r.Push;let a=p(b.location,e,t);n&&n(a,e);let l=f(a,v=y()+1),s=b.createHref(a);try{u.pushState(l,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(s)}i&&h&&h({action:c,location:b.location,delta:1})},replace:function(e,t){c=r.Replace;let a=p(b.location,e,t);n&&n(a,e);let o=f(a,v=y()),l=b.createHref(a);u.replaceState(o,"",l),i&&h&&h({action:c,location:b.location,delta:0})},go:e=>u.go(e)};return b}(i=a||(a={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let g=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map((e,a)=>{let o=[...n,a],i="string"==typeof e.id?e.id:o.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!r[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let n=l({},e,t(e),{id:i});return r[i]=n,n}{let n=l({},e,t(e),{id:i,children:void 0});return r[i]=n,e.children&&(n.children=w(e.children,t,o,r)),n}})}function b(e,t,n){void 0===n&&(n="/");let r=D(("string"==typeof t?v(t):t).pathname||"/",n);if(null==r)return null;let a=function e(t,n,r,a){void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===a&&(a="");let o=(t,o,i)=>{let l={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};l.relativePath.startsWith("/")&&(d(l.relativePath.startsWith(a),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+a)+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),l.relativePath=l.relativePath.slice(a.length));let s=U([a,l.relativePath]),u=r.concat(l);t.children&&t.children.length>0&&(d(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),e(t.children,n,u,s)),(null!=t.path||t.index)&&n.push({path:s,score:function(e,t){let n=e.split("/"),r=n.length;return n.some(S)&&(r+=-2),t&&(r+=2),n.filter(e=>!S(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),r)}(s,t.index),routesMeta:u})};return t.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[r,...a]=n,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,n);else o(e,t)}),n}(e);(function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(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}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))})(a);let o=null;for(let e=0;null==o&&e<a.length;++e)o=function(e,t){let{routesMeta:n}=e,r={},a="/",o=[];for(let e=0;e<n.length;++e){let i=n[e],l=e===n.length-1,s="/"===a?t:t.slice(a.length)||"/",u=R({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},s);if(!u)return null;Object.assign(r,u.params);let c=i.route;o.push({params:r,pathname:U([a,u.pathname]),pathnameBase:T(U([a,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(a=U([a,u.pathnameBase]))}return o}(a[e],function(e){try{return decodeURI(e)}catch(t){return h(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t)+")."),e}}(r));return o}function E(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}let x=/^:[\w-]+$/,S=e=>"*"===e;function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),h("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*"))+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, '+('please change the route path to "'+e.replace(/\*$/,"/*"))+'".');let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=l[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}let s=l[n];return a&&!s?e[r]=void 0:e[r]=function(e,t){try{return decodeURIComponent(e)}catch(n){return h(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e)+'" is a malformed URL segment. This is probably'+(" due to a bad percent encoding ("+n)+")."),e}}(s||"",r),e},{}),pathname:o,pathnameBase:i,pattern:e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function L(e,t,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 C(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function P(e,t){let n=C(e);return t?n.map((t,n)=>n===e.length-1?t.pathname:t.pathnameBase):n.map(e=>e.pathnameBase)}function k(e,t,n,r){let a,o;void 0===r&&(r=!1),"string"==typeof e?a=v(e):(d(!(a=l({},e)).pathname||!a.pathname.includes("?"),L("?","pathname","search",a)),d(!a.pathname||!a.pathname.includes("#"),L("#","pathname","hash",a)),d(!a.search||!a.search.includes("#"),L("#","search","hash",a)));let i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?v(e):e;return{pathname:n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t,search:_(r),hash:M(a)}}(a,o),c=s&&"/"!==s&&s.endsWith("/"),h=(i||"."===s)&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||h)&&(u.pathname+="/"),u}let U=e=>e.join("/").replace(/\/\/+/g,"/"),T=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",M=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class j extends Error{}let O=function(e,t){void 0===t&&(t=302);let n=t;"number"==typeof n?n={status:n}:void 0===n.status&&(n.status=302);let r=new Headers(n.headers);return r.set("Location",e),new Response(null,l({},n,{headers:r}))};class A{constructor(e,t,n,r){void 0===r&&(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 F(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let B=["post","put","patch","delete"],W=new Set(B),z=new Set(["get",...B]),N=new Set([301,302,303,307,308]),H=new Set([307,308]),I={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},J={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},q=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,V=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),X="remix-router-transitions";function Y(e){let t,n,o,i,s;let u=e.window?e.window:"undefined"!=typeof window?window:void 0,c=void 0!==u&&void 0!==u.document&&void 0!==u.document.createElement,f=!c;if(d(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let n=e.detectErrorBoundary;t=e=>({hasErrorBoundary:n(e)})}else t=V;let m={},v=w(e.routes,t,void 0,m),y=e.basename||"/",g=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),x=null,S=new Set,R=null,L=null,C=null,P=null!=e.hydrationData,k=b(v,e.history.location,y),U=null;if(null==k){let t=ec(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=eu(v);k=n,U={[r.id]:t}}let T=k.some(e=>e.route.lazy),_=k.some(e=>e.route.loader);if(T)o=!1;else if(_){if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;o=k.every(e=>e.route.loader&&!0!==e.route.loader.hydrate&&(t&&void 0!==t[e.route.id]||n&&void 0!==n[e.route.id]))}else o=null!=e.hydrationData}else o=!0;let M={historyAction:e.history.action,location:e.history.location,matches:k,initialized:o,navigation:I,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||U,fetchers:new Map,blockers:new Map},j=r.Pop,O=!1,A=!1,F=new Map,B=null,W=!1,z=!1,N=[],Y=[],G=new Map,ee=0,et=-1,ea=new Map,eo=new Set,eh=new Map,ew=new Map,eD=new Set,eL=new Map,eC=new Map,eP=!1;function ek(e,t){void 0===t&&(t={}),M=l({},M,e);let n=[],r=[];g.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(eD.has(t)?r.push(t):n.push(t))}),[...S].forEach(e=>e(M,{deletedFetchers:r,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync})),g.v7_fetcherPersist&&(n.forEach(e=>M.fetchers.delete(e)),r.forEach(e=>eI(e)))}function eU(t,a,o){var i,s;let u,c;let{flushSync:d}=void 0===o?{}:o,h=null!=M.actionData&&null!=M.navigation.formMethod&&ev(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;u=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:h?M.actionData:null;let f=a.loaderData?el(M.loaderData,a.loaderData,a.matches||[],a.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,$));let m=!0===O||null!=M.navigation.formMethod&&ev(M.navigation.formMethod)&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;if(n&&(v=n,n=void 0),W||j===r.Pop||(j===r.Push?e.history.push(t,t.state):j===r.Replace&&e.history.replace(t,t.state)),j===r.Pop){let e=F.get(M.location.pathname);e&&e.has(t.pathname)?c={currentLocation:M.location,nextLocation:t}:F.has(t.pathname)&&(c={currentLocation:t,nextLocation:M.location})}else if(A){let e=F.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),F.set(M.location.pathname,e)),c={currentLocation:M.location,nextLocation:t}}ek(l({},a,{actionData:u,loaderData:f,historyAction:j,location:t,initialized:!0,navigation:I,revalidation:"idle",restoreScrollPosition:eG(t,a.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:c,flushSync:!0===d}),j=r.Pop,O=!1,A=!1,W=!1,z=!1,N=[],Y=[]}async function eT(t,n){if("number"==typeof t){e.history.go(t);return}let a=Q(M.location,M.matches,y,g.v7_prependBasename,t,g.v7_relativeSplatPath,null==n?void 0:n.fromRouteId,null==n?void 0:n.relative),{path:o,submission:i,error:s}=Z(g.v7_normalizeFormMethod,!1,a,n),u=M.location,c=p(M.location,o,n&&n.state);c=l({},c,e.history.encodeLocation(c));let d=n&&null!=n.replace?n.replace:void 0,h=r.Push;!0===d?h=r.Replace:!1===d||null!=i&&ev(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(h=r.Replace);let f=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,m=!0===(n&&n.unstable_flushSync),v=eQ({currentLocation:u,nextLocation:c,historyAction:h});if(v){eY(v,{state:"blocked",location:c,proceed(){eY(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eT(t,n)},reset(){let e=new Map(M.blockers);e.set(v,$),ek({blockers:e})}});return}return await e_(h,c,{submission:i,pendingError:s,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.unstable_viewTransition,flushSync:m})}async function e_(t,r,a){let o,i;s&&s.abort(),s=null,j=t,W=!0===(a&&a.startUninterruptedRevalidation),function(e,t){R&&C&&(R[eK(e,t)]=C())}(M.location,M.matches),O=!0===(a&&a.preventScrollReset),A=!0===(a&&a.enableViewTransition);let u=n||v,c=a&&a.overrideNavigation,d=b(u,r,y),h=!0===(a&&a.flushSync);if(!d){let e=ec(404,{pathname:r.pathname}),{matches:t,route:n}=eu(u);eZ(),eU(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:h});return}if(M.initialized&&!z&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(M.location,r)&&!(a&&a.submission&&ev(a.submission.formMethod))){eU(r,{matches:d},{flushSync:h});return}s=new AbortController;let f=er(e.history,r,s.signal,a&&a.submission);if(a&&a.pendingError)i={[es(d).route.id]:a.pendingError};else if(a&&a.submission&&ev(a.submission.formMethod)){let e=await eM(f,r,a.submission,d,{replace:a.replace,flushSync:h});if(e.shortCircuited)return;o=e.pendingActionData,i=e.pendingActionError,c=ex(r,a.submission),h=!1,f=new Request(f.url,{signal:f.signal})}let{shortCircuited:p,loaderData:m,errors:g}=await ej(f,r,d,c,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,h,o,i);!p&&(s=null,eU(r,l({matches:d},o?{actionData:o}:{},{loaderData:m,errors:g})))}async function eM(e,n,o,i,l){let s;void 0===l&&(l={}),eW(),ek({navigation:function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(n,o)},{flushSync:!0===l.flushSync});let u=eb(i,n);if(u.route.action||u.route.lazy){if(s=await en("action",e,u,i,m,t,y,g.v7_relativeSplatPath),e.signal.aborted)return{shortCircuited:!0}}else s={type:a.error,error:ec(405,{method:e.method,pathname:n.pathname,routeId:u.route.id})};if(em(s)){let e;return e=l&&null!=l.replace?l.replace:s.location===M.location.pathname+M.location.search,await eF(M,s,{submission:o,replace:e}),{shortCircuited:!0}}if(ep(s)){let e=es(i,u.route.id);return!0!==(l&&l.replace)&&(j=r.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:s.error}}}if(ef(s))throw ec(400,{type:"defer-action"});return{pendingActionData:{[u.route.id]:s.data}}}async function ej(t,r,a,o,i,u,c,d,h,f,p){let m=o||ex(r,i),w=i||u||eE(m),b=n||v,[E,x]=K(e.history,M,a,w,r,g.v7_partialHydration&&!0===d,z,N,Y,eD,eh,eo,b,y,f,p);if(eZ(e=>!(a&&a.some(t=>t.route.id===e))||E&&E.some(t=>t.route.id===e)),et=++ee,0===E.length&&0===x.length){let e=eq();return eU(r,l({matches:a,loaderData:{},errors:p||null},f?{actionData:f}:{},e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(!W&&(!g.v7_partialHydration||!d)){x.forEach(e=>{let t=M.fetchers.get(e.key),n=eS(void 0,t?t.data:void 0);M.fetchers.set(e.key,n)});let e=f||M.actionData;ek(l({navigation:m},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},x.length>0?{fetchers:new Map(M.fetchers)}:{}),{flushSync:h})}x.forEach(e=>{G.has(e.key)&&eJ(e.key),e.controller&&G.set(e.key,e.controller)});let S=()=>x.forEach(e=>eJ(e.key));s&&s.signal.addEventListener("abort",S);let{results:R,loaderResults:D,fetcherResults:L}=await eB(M.matches,a,E,x,t);if(t.signal.aborted)return{shortCircuited:!0};s&&s.signal.removeEventListener("abort",S),x.forEach(e=>G.delete(e.key));let C=ed(R);if(C){if(C.idx>=E.length){let e=x[C.idx-E.length].key;eo.add(e)}return await eF(M,C.result,{replace:c}),{shortCircuited:!0}}let{loaderData:P,errors:k}=ei(M,a,E,D,p,x,L,eL);eL.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&eL.delete(t)})});let U=eq(),T=eV(et),_=U||T||x.length>0;return l({loaderData:P,errors:k},_?{fetchers:new Map(M.fetchers)}:{})}async function eO(r,a,o,i,l,u,c){if(eW(),eh.delete(r),!i.route.action&&!i.route.lazy){let e=ec(405,{method:c.formMethod,pathname:o,routeId:a});eN(r,a,e,{flushSync:u});return}let h=M.fetchers.get(r);ez(r,function(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}}(c,h),{flushSync:u});let f=new AbortController,p=er(e.history,o,f.signal,c);G.set(r,f);let w=ee,E=await en("action",p,i,l,m,t,y,g.v7_relativeSplatPath);if(p.signal.aborted){G.get(r)===f&&G.delete(r);return}if(g.v7_fetcherPersist&&eD.has(r)){if(em(E)||ep(E)){ez(r,eR(void 0));return}}else{if(em(E)){if(G.delete(r),!(et>w))return eo.add(r),ez(r,eS(c)),eF(M,E,{fetcherSubmission:c});ez(r,eR(void 0));return}if(ep(E)){eN(r,a,E.error);return}}if(ef(E))throw ec(400,{type:"defer-action"});let x=M.navigation.location||M.location,S=er(e.history,x,f.signal),R=n||v,D="idle"!==M.navigation.state?b(R,M.navigation.location,y):M.matches;d(D,"Didn't find any matches after fetcher action");let L=++ee;ea.set(r,L);let C=eS(c,E.data);M.fetchers.set(r,C);let[P,k]=K(e.history,M,D,c,x,!1,z,N,Y,eD,eh,eo,R,y,{[i.route.id]:E.data},void 0);k.filter(e=>e.key!==r).forEach(e=>{let t=e.key,n=M.fetchers.get(t),r=eS(void 0,n?n.data:void 0);M.fetchers.set(t,r),G.has(t)&&eJ(t),e.controller&&G.set(t,e.controller)}),ek({fetchers:new Map(M.fetchers)});let U=()=>k.forEach(e=>eJ(e.key));f.signal.addEventListener("abort",U);let{results:T,loaderResults:_,fetcherResults:O}=await eB(M.matches,D,P,k,S);if(f.signal.aborted)return;f.signal.removeEventListener("abort",U),ea.delete(r),G.delete(r),k.forEach(e=>G.delete(e.key));let A=ed(T);if(A){if(A.idx>=P.length){let e=k[A.idx-P.length].key;eo.add(e)}return eF(M,A.result)}let{loaderData:F,errors:B}=ei(M,M.matches,P,_,void 0,k,O,eL);if(M.fetchers.has(r)){let e=eR(E.data);M.fetchers.set(r,e)}eV(L),"loading"===M.navigation.state&&L>et?(d(j,"Expected pending action"),s&&s.abort(),eU(M.navigation.location,{matches:D,loaderData:F,errors:B,fetchers:new Map(M.fetchers)})):(ek({errors:B,loaderData:el(M.loaderData,F,D,B),fetchers:new Map(M.fetchers)}),z=!1)}async function eA(n,r,a,o,i,l,s){let u=M.fetchers.get(n);ez(n,eS(s,u?u.data:void 0),{flushSync:l});let c=new AbortController,h=er(e.history,a,c.signal);G.set(n,c);let f=ee,p=await en("loader",h,o,i,m,t,y,g.v7_relativeSplatPath);if(ef(p)&&(p=await eg(p,h.signal,!0)||p),G.get(n)===c&&G.delete(n),!h.signal.aborted){if(eD.has(n)){ez(n,eR(void 0));return}if(em(p)){if(et>f){ez(n,eR(void 0));return}eo.add(n),await eF(M,p);return}if(ep(p)){eN(n,r,p.error);return}d(!ef(p),"Unhandled fetcher deferred data"),ez(n,eR(p.data))}}async function eF(t,n,a){let{submission:o,fetcherSubmission:i,replace:h}=void 0===a?{}:a;n.revalidate&&(z=!0);let f=p(t.location,n.location,{_isRedirect:!0});if(d(f,"Expected a location on the redirect navigation"),c){let t=!1;if(n.reloadDocument)t=!0;else if(q.test(n.location)){let r=e.history.createURL(n.location);t=r.origin!==u.location.origin||null==D(r.pathname,y)}if(t){h?u.location.replace(n.location):u.location.assign(n.location);return}}s=null;let m=!0===h?r.Replace:r.Push,{formMethod:v,formAction:g,formEncType:w}=t.navigation;!o&&!i&&v&&g&&w&&(o=eE(t.navigation));let b=o||i;if(H.has(n.status)&&b&&ev(b.formMethod))await e_(m,f,{submission:l({},b,{formAction:n.location}),preventScrollReset:O});else{let e=ex(f,o);await e_(m,f,{overrideNavigation:e,fetcherSubmission:i,preventScrollReset:O})}}async function eB(n,r,o,i,l){let s=await Promise.all([...o.map(e=>en("loader",l,e,r,m,t,y,g.v7_relativeSplatPath)),...i.map(n=>n.matches&&n.match&&n.controller?en("loader",er(e.history,n.path,n.controller.signal),n.match,n.matches,m,t,y,g.v7_relativeSplatPath):{type:a.error,error:ec(404,{pathname:n.path})})]),u=s.slice(0,o.length),c=s.slice(o.length);return await Promise.all([ey(n,o,u,u.map(()=>l.signal),!1,M.loaderData),ey(n,i.map(e=>e.match),c,i.map(e=>e.controller?e.controller.signal:null),!0)]),{results:s,loaderResults:u,fetcherResults:c}}function eW(){z=!0,N.push(...eZ()),eh.forEach((e,t)=>{G.has(t)&&(Y.push(t),eJ(t))})}function ez(e,t,n){void 0===n&&(n={}),M.fetchers.set(e,t),ek({fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function eN(e,t,n,r){void 0===r&&(r={});let a=es(M.matches,t);eI(e),ek({errors:{[a.route.id]:n},fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eH(e){return g.v7_fetcherPersist&&(ew.set(e,(ew.get(e)||0)+1),eD.has(e)&&eD.delete(e)),M.fetchers.get(e)||J}function eI(e){let t=M.fetchers.get(e);G.has(e)&&!(t&&"loading"===t.state&&ea.has(e))&&eJ(e),eh.delete(e),ea.delete(e),eo.delete(e),eD.delete(e),M.fetchers.delete(e)}function eJ(e){let t=G.get(e);d(t,"Expected fetch controller: "+e),t.abort(),G.delete(e)}function e$(e){for(let t of e){let e=eR(eH(t).data);M.fetchers.set(t,e)}}function eq(){let e=[],t=!1;for(let n of eo){let r=M.fetchers.get(n);d(r,"Expected fetcher: "+n),"loading"===r.state&&(eo.delete(n),e.push(n),t=!0)}return e$(e),t}function eV(e){let t=[];for(let[n,r]of ea)if(r<e){let e=M.fetchers.get(n);d(e,"Expected fetcher: "+n),"loading"===e.state&&(eJ(n),ea.delete(n),t.push(n))}return e$(t),t.length>0}function eX(e){M.blockers.delete(e),eC.delete(e)}function eY(e,t){let n=M.blockers.get(e)||$;d("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(M.blockers);r.set(e,t),ek({blockers:r})}function eQ(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===eC.size)return;eC.size>1&&h(!1,"A router only supports one blocker at a time");let a=Array.from(eC.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:n,historyAction:r}))return o}function eZ(e){let t=[];return eL.forEach((n,r)=>{(!e||e(r))&&(n.cancel(),t.push(r),eL.delete(r))}),t}function eK(e,t){return L&&L(e,t.map(e=>E(e,M.loaderData)))||e.key}function eG(e,t){if(R){let n=R[eK(e,t)];if("number"==typeof n)return n}return null}return i={get basename(){return y},get future(){return g},get state(){return M},get routes(){return v},get window(){return u},initialize:function(){if(x=e.history.listen(t=>{let{action:n,location:r,delta:a}=t;if(eP){eP=!1;return}h(0===eC.size||null!=a,"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 o=eQ({currentLocation:M.location,nextLocation:r,historyAction:n});if(o&&null!=a){eP=!0,e.history.go(-1*a),eY(o,{state:"blocked",location:r,proceed(){eY(o,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),e.history.go(a)},reset(){let e=new Map(M.blockers);e.set(o,$),ek({blockers:e})}});return}return e_(n,r)}),c){(function(e,t){try{let n=e.sessionStorage.getItem(X);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(e){}})(u,F);let e=()=>(function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(X,JSON.stringify(n))}catch(e){h(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(u,F);u.addEventListener("pagehide",e),B=()=>u.removeEventListener("pagehide",e)}return!M.initialized&&e_(r.Pop,M.location,{initialHydration:!0}),i},subscribe:function(e){return S.add(e),()=>S.delete(e)},enableScrollRestoration:function(e,t,n){if(R=e,C=t,L=n||null,!P&&M.navigation===I){P=!0;let e=eG(M.location,M.matches);null!=e&&ek({restoreScrollPosition:e})}return()=>{R=null,C=null,L=null}},navigate:eT,fetch:function(e,t,r,a){if(f)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");G.has(e)&&eJ(e);let o=!0===(a&&a.unstable_flushSync),i=n||v,l=Q(M.location,M.matches,y,g.v7_prependBasename,r,g.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=b(i,l,y);if(!s){eN(e,t,ec(404,{pathname:l}),{flushSync:o});return}let{path:u,submission:c,error:d}=Z(g.v7_normalizeFormMethod,!0,l,a);if(d){eN(e,t,d,{flushSync:o});return}let h=eb(s,u);if(O=!0===(a&&a.preventScrollReset),c&&ev(c.formMethod)){eO(e,t,u,h,s,o,c);return}eh.set(e,{routeId:t,path:u}),eA(e,t,u,h,s,o,c)},revalidate:function(){if(eW(),ek({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state){e_(M.historyAction,M.location,{startUninterruptedRevalidation:!0});return}e_(j||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eH,deleteFetcher:function(e){if(g.v7_fetcherPersist){let t=(ew.get(e)||0)-1;t<=0?(ew.delete(e),eD.add(e)):ew.set(e,t)}else eI(e);ek({fetchers:new Map(M.fetchers)})},dispose:function(){x&&x(),B&&B(),S.clear(),s&&s.abort(),M.fetchers.forEach((e,t)=>eI(t)),M.blockers.forEach((e,t)=>eX(t))},getBlocker:function(e,t){let n=M.blockers.get(e)||$;return eC.get(e)!==t&&eC.set(e,t),n},deleteBlocker:eX,_internalFetchControllers:G,_internalActiveDeferreds:eL,_internalSetRoutes:function(e){n=w(e,t,void 0,m={})}}}Symbol("deferred");function Q(e,t,n,r,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=k(a||".",P(s,o),D(e.pathname,n)||e.pathname,"path"===l);return null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u&&u.route.index&&!ew(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(c.pathname="/"===c.pathname?n:U([n,c.pathname])),m(c)}function Z(e,t,n,r){var a;let o,i;if(!r||!(null!=(a=r)&&("formData"in a&&null!=a.formData||"body"in a&&void 0!==a.body)))return{path:n};if(r.formMethod&&!function(e){return z.has(e.toLowerCase())}(r.formMethod))return{path:n,error:ec(405,{method:r.formMethod})};let l=()=>({path:n,error:ec(400,{type:"invalid-body"})}),s=r.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eh(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!ev(u))return l();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"},""):String(r.body);return{path:n,submission:{formMethod:u,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!ev(u))return l();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:u,formAction:c,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),r.formData)o=ea(r.formData),i=r.formData;else if(r.body instanceof FormData)o=ea(r.body),i=r.body;else if(r.body instanceof URLSearchParams)i=eo(o=r.body);else if(null==r.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(r.body),i=eo(o)}catch(e){return l()}let h={formMethod:u,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(ev(h.formMethod))return{path:n,submission:h};let f=v(n);return t&&f.search&&ew(f.search)&&o.append("index",""),f.search="?"+o,{path:m(f),submission:h}}function K(e,t,n,r,a,o,i,s,u,c,d,h,f,p,m,v){let y=v?Object.values(v)[0]:m?Object.values(m)[0]:void 0,g=e.createURL(t.location),w=e.createURL(a),E=(function(e,t){let n=e;if(t){let r=e.findIndex(e=>e.route.id===t);r>=0&&(n=e.slice(0,r))}return n})(n,v?Object.keys(v)[0]:void 0).filter((e,n)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return!!a.loader.hydrate||void 0===t.loaderData[a.id]&&(!t.errors||void 0===t.errors[a.id]);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,a=void 0===e[n.route.id];return r||a}(t.loaderData,t.matches[n],e)||s.some(t=>t===e.route.id))return!0;let u=t.matches[n];return ee(e,l({currentUrl:g,currentParams:u.params,nextUrl:w,nextParams:e.params},r,{actionResult:y,defaultShouldRevalidate:i||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||G(u,e)}))}),x=[];return d.forEach((e,a)=>{if(o||!n.some(t=>t.route.id===e.routeId)||c.has(a))return;let s=b(f,e.path,p);if(!s){x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let d=t.fetchers.get(a),m=eb(s,e.path),v=!1;(v=!h.has(a)&&(!!u.includes(a)||(d&&"idle"!==d.state&&void 0===d.data?i:ee(m,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},r,{actionResult:y,defaultShouldRevalidate:i})))))&&x.push({key:a,routeId:e.routeId,path:e.path,matches:s,match:m,controller:new AbortController})}),[E,x]}function G(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ee(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}async function et(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let a=n[e.id];d(a,"No route found in manifest");let o={};for(let e in r){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;h(!t,'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.'),!t&&!g.has(e)&&(o[e]=r[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}async function en(e,t,n,r,o,i,l,s,u){let c,h,f;void 0===u&&(u={});let p=e=>{let r;let a=new Promise((e,t)=>r=t);return f=()=>r(),t.signal.addEventListener("abort",f),Promise.race([e({request:t,params:n.params,context:u.requestContext}),a])};try{let r=n.route[e];if(n.route.lazy){if(r){let e;let t=await Promise.all([p(r).catch(t=>{e=t}),et(n.route,i,o)]);if(e)throw e;h=t[0]}else if(await et(n.route,i,o),r=n.route[e])h=await p(r);else{if("action"!==e)return{type:a.data,data:void 0};let r=new URL(t.url),o=r.pathname+r.search;throw ec(405,{method:t.method,pathname:o,routeId:n.route.id})}}else if(r)h=await p(r);else{let e=new URL(t.url),n=e.pathname+e.search;throw ec(404,{pathname:n})}d(void 0!==h,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e)+"` function. Please return a value or `null`.")}catch(e){c=a.error,h=e}finally{f&&t.signal.removeEventListener("abort",f)}if(function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}(h)){let e,o=h.status;if(N.has(o)){let e=h.headers.get("Location");if(d(e,"Redirects returned/thrown from loaders/actions must have a Location header"),q.test(e)){if(!u.isStaticRequest){let n=new URL(t.url),r=new URL(e.startsWith("//")?n.protocol+e:e),a=null!=D(r.pathname,l);r.origin===n.origin&&a&&(e=r.pathname+r.search+r.hash)}}else e=Q(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,e,s);if(u.isStaticRequest)throw h.headers.set("Location",e),h;return{type:a.redirect,status:o,location:e,revalidate:null!==h.headers.get("X-Remix-Revalidate"),reloadDocument:null!==h.headers.get("X-Remix-Reload-Document")}}if(u.isRouteRequest)throw{type:c===a.error?a.error:a.data,response:h};try{let t=h.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==h.body?null:await h.json():await h.text()}catch(e){return{type:a.error,error:e}}return c===a.error?{type:c,error:new A(o,h.statusText,e),headers:h.headers}:{type:a.data,data:e,statusCode:h.status,headers:h.headers}}if(c===a.error)return{type:c,error:h};if(function(e){return e&&"object"==typeof e&&"object"==typeof e.data&&"function"==typeof e.subscribe&&"function"==typeof e.cancel&&"function"==typeof e.resolveData}(h)){var m,v;return{type:a.deferred,deferredData:h,statusCode:null==(m=h.init)?void 0:m.status,headers:(null==(v=h.init)?void 0:v.headers)&&new Headers(h.init.headers)}}return{type:a.data,data:h}}function er(e,t,n,r){let a=e.createURL(eh(t)).toString(),o={signal:n};if(r&&ev(r.formMethod)){let{formMethod:e,formEncType:t}=r;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(r.json)):"text/plain"===t?o.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?o.body=ea(r.formData):o.body=r.formData}return new Request(a,o)}function ea(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function eo(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function ei(e,t,n,r,a,o,i,s){var u,c,h,f,p;let m,v,y,g,w;let{loaderData:b,errors:E}=(u=t,c=n,h=r,f=a,p=s,v={},y=null,g=!1,w={},h.forEach((e,t)=>{let n=c[t].route.id;if(d(!em(e),"Cannot handle redirect results in processLoaderData"),ep(e)){let t=es(u,n),r=e.error;f&&(r=Object.values(f)[0],f=void 0),null==(y=y||{})[t.route.id]&&(y[t.route.id]=r),v[n]=void 0,!g&&(g=!0,m=F(e.error)?e.error.status:500),e.headers&&(w[n]=e.headers)}else ef(e)?(p.set(n,e.deferredData),v[n]=e.deferredData.data):v[n]=e.data,null!=e.statusCode&&200!==e.statusCode&&!g&&(m=e.statusCode),e.headers&&(w[n]=e.headers)}),f&&(y=f,v[Object.keys(f)[0]]=void 0),{loaderData:v,errors:y,statusCode:m||200,loaderHeaders:w});for(let t=0;t<o.length;t++){let{key:n,match:r,controller:a}=o[t];d(void 0!==i&&void 0!==i[t],"Did not find corresponding fetcher result");let s=i[t];if(!a||!a.signal.aborted)if(ep(s)){let t=es(e.matches,null==r?void 0:r.route.id);!(E&&E[t.route.id])&&(E=l({},E,{[t.route.id]:s.error})),e.fetchers.delete(n)}else if(em(s))d(!1,"Unhandled fetcher revalidation redirect");else if(ef(s))d(!1,"Unhandled fetcher deferred data");else{let t=eR(s.data);e.fetchers.set(n,t)}}return{loaderData:b,errors:E}}function el(e,t,n,r){let a=l({},t);for(let o of n){let n=o.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(a[n]=t[n]):void 0!==e[n]&&o.route.loader&&(a[n]=e[n]),r&&r.hasOwnProperty(n))break}return a}function es(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eu(e){let t=1===e.length?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 ec(e,t){let{pathname:n,routeId:r,method:a,type:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request",a&&n&&r?l="You made a "+a+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r)+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):404===e?(i="Not Found",l='No route matches URL "'+n+'"'):405===e&&(i="Method Not Allowed",a&&n&&r?l="You made a "+a.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r)+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new A(e||500,i,Error(l),!0)}function ed(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(em(n))return{result:n,idx:t}}}function eh(e){let t="string"==typeof e?v(e):e;return m(l({},t,{hash:""}))}function ef(e){return e.type===a.deferred}function ep(e){return e.type===a.error}function em(e){return(e&&e.type)===a.redirect}function ev(e){return W.has(e.toLowerCase())}async function ey(e,t,n,r,a,o){for(let i=0;i<n.length;i++){let l=n[i],s=t[i];if(!s)continue;let u=e.find(e=>e.route.id===s.route.id),c=null!=u&&!G(u,s)&&(o&&o[s.route.id])!==void 0;if(ef(l)&&(a||c)){let e=r[i];d(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await eg(l,e,a).then(e=>{e&&(n[i]=e||n[i])})}}}async function eg(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:a.data,data:e.deferredData.unwrappedData}}catch(e){return{type:a.error,error:e}}return{type:a.data,data:e.deferredData.data}}}function ew(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eb(e,t){let n="string"==typeof t?v(t).search:t.search;if(e[e.length-1].route.index&&ew(n||""))return e[e.length-1];let r=C(e);return r[r.length-1]}function eE(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:o,json:i}=e;if(t&&n&&r){if(null!=a)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function ex(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eS(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 eR(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}},31988:function(e,t,n){"use strict";n.d(t,{OL:function(){return A},aj:function(){return x},cP:function(){return S},pG:function(){return T},rU:function(){return O}});var r,a,o,i,l,s,u=n("5872"),c=n("13922"),d=n("92927"),h=n("77393");function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(a[n]=e[n]);return a}let m="application/x-www-form-urlencoded";function v(e){return null!=e&&"string"==typeof e.tagName}let y=null,g=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function w(e){return null==e||g.has(e)?e:null}let b=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],E=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function x(e,t){return(0,h.p7)({basename:null==t?void 0:t.basename,future:f({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,h.lX)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||R(),routes:e,mapRouteProperties:d.us,window:null==t?void 0:t.window}).initialize()}function S(e,t){return(0,h.p7)({basename:null==t?void 0:t.basename,future:f({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,h.q_)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||R(),routes:e,mapRouteProperties:d.us,window:null==t?void 0:t.window}).initialize()}function R(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=f({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new h.OF(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let a=new t(r.message);a.stack="",n[e]=a}catch(e){}}if(null==n[e]){let t=Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}(t.errors)})),t}let D=u.createContext({isTransitioning:!1}),L=u.createContext(new Map),C=(o||(o=n.t(u,2))).startTransition,P=(i||(i=n.t(c,2))).flushSync;(o||(o=n.t(u,2))).useId;function k(e){P?P(e):e()}class U{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function T(e){let{fallbackElement:t,router:n,future:r}=e,[a,o]=u.useState(n.state),[i,l]=u.useState(),[s,c]=u.useState({isTransitioning:!1}),[h,f]=u.useState(),[p,m]=u.useState(),[v,y]=u.useState(),g=u.useRef(new Map),{v7_startTransition:w}=r||{},b=u.useCallback(e=>{if(w){var t;t=e,C?C(t):t()}else e()},[w]),E=u.useCallback((e,t)=>{let{deletedFetchers:r,unstable_flushSync:a,unstable_viewTransitionOpts:i}=t;r.forEach(e=>g.current.delete(e)),e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)});let s=null==n.window||"function"!=typeof n.window.document.startViewTransition;if(!i||s){a?k(()=>o(e)):b(()=>o(e));return}if(a){k(()=>{p&&(h&&h.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=n.window.document.startViewTransition(()=>{k(()=>o(e))});t.finished.finally(()=>{k(()=>{f(void 0),m(void 0),l(void 0),c({isTransitioning:!1})})}),k(()=>m(t));return}p?(h&&h.resolve(),p.skipTransition(),y({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),c({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[n.window,p,h,g,b]);u.useLayoutEffect(()=>n.subscribe(E),[n,E]),u.useEffect(()=>{s.isTransitioning&&!s.flushSync&&f(new U)},[s]),u.useEffect(()=>{if(h&&i&&n.window){let e=h.promise,t=n.window.document.startViewTransition(async()=>{b(()=>o(i)),await e});t.finished.finally(()=>{f(void 0),m(void 0),l(void 0),c({isTransitioning:!1})}),m(t)}},[b,i,h,n.window]),u.useEffect(()=>{h&&i&&a.location.key===i.location.key&&h.resolve()},[h,p,a.location,i]),u.useEffect(()=>{!s.isTransitioning&&v&&(l(v.state),c({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[s.isTransitioning,v]),u.useEffect(()=>{},[]);let x=u.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})}),[n]),S=n.basename||"/",R=u.useMemo(()=>({router:n,navigator:x,static:!1,basename:S}),[n,x,S]);return u.createElement(u.Fragment,null,u.createElement(d.w3.Provider,{value:R},u.createElement(d.FR.Provider,{value:a},u.createElement(L.Provider,{value:g.current},u.createElement(D.Provider,{value:s},u.createElement(d.F0,{basename:S,location:a.location,navigationType:a.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},a.initialized||n.future.v7_partialHydration?u.createElement(_,{routes:n.routes,future:n.future,state:a}):t))))),null)}function _(e){let{routes:t,future:n,state:r}=e;return(0,d.DY)(t,void 0,r,n)}let M="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,j=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,O=u.forwardRef(function(e,t){let n,{onClick:r,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:c,preventScrollReset:m,unstable_viewTransition:v}=e,y=p(e,b),{basename:g}=u.useContext(d.Us),w=!1;if("string"==typeof c&&j.test(c)&&(n=c,M))try{let e=new URL(window.location.href),t=new URL(c.startsWith("//")?e.protocol+c:c),n=(0,h.Zn)(t.pathname,g);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:w=!0}catch(e){}let E=(0,d.oQ)(c,{relative:a}),x=function(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:l}=void 0===t?{}:t,s=(0,d.s0)(),c=(0,d.TH)(),f=(0,d.WU)(e,{relative:i});return u.useCallback(t=>{var u,d,p;if(u=t,d=n,0===u.button&&(!d||"_self"===d)&&!((p=u).metaKey||p.altKey||p.ctrlKey||p.shiftKey))t.preventDefault(),s(e,{replace:void 0!==r?r:(0,h.Ep)(c)===(0,h.Ep)(f),state:a,preventScrollReset:o,relative:i,unstable_viewTransition:l})},[c,s,f,r,a,n,e,o,i,l])}(c,{replace:i,state:l,target:s,preventScrollReset:m,relative:a,unstable_viewTransition:v});return u.createElement("a",f({},y,{href:n||E,onClick:w||o?r:function(e){r&&r(e),!e.defaultPrevented&&x(e)},ref:t,target:s}))}),A=u.forwardRef(function(e,t){let n,{"aria-current":r="page",caseSensitive:a=!1,className:o="",end:i=!1,style:s,to:c,unstable_viewTransition:m,children:v}=e,y=p(e,E),g=(0,d.WU)(c,{relative:y.relative}),w=(0,d.TH)(),b=u.useContext(d.FR),{navigator:x,basename:S}=u.useContext(d.Us),R=null!=b&&function(e,t){void 0===t&&(t={});let n=u.useContext(D);null!=n||(0,h.J0)(!1);let{basename:r}=F(l.useViewTransitionState),a=(0,d.WU)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=(0,h.Zn)(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=(0,h.Zn)(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=(0,h.LX)(a.pathname,i)||null!=(0,h.LX)(a.pathname,o)}(g)&&!0===m,L=x.encodeLocation?x.encodeLocation(g).pathname:g.pathname,C=w.pathname,P=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;!a&&(C=C.toLowerCase(),P=P?P.toLowerCase():null,L=L.toLowerCase()),P&&S&&(P=(0,h.Zn)(P,S)||P);let k="/"!==L&&L.endsWith("/")?L.length-1:L.length,U=C===L||!i&&C.startsWith(L)&&"/"===C.charAt(k),T=null!=P&&(P===L||!i&&P.startsWith(L)&&"/"===P.charAt(L.length)),_={isActive:U,isPending:T,isTransitioning:R},M=U?r:void 0;n="function"==typeof o?o(_):[o,U?"active":null,T?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let j="function"==typeof s?s(_):s;return u.createElement(O,f({},y,{"aria-current":M,className:n,ref:t,style:j,to:c,unstable_viewTransition:m}),"function"==typeof v?v(_):v)});function F(e){let t=u.useContext(d.w3);return t||(0,h.J0)(!1),t}(r=l||(l={})).UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState",(a=s||(s={})).UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration";let B=0,W=()=>"__"+String(++B)+"__"},92927:function(e,t,n){"use strict";n.d(t,{AW:function(){return F},DY:function(){return R},F0:function(){return B},FR:function(){return d},SN:function(){return M},TH:function(){return g},UO:function(){return x},Us:function(){return h},WU:function(){return S},Yi:function(){return _},Z5:function(){return W},i7:function(){return N},j3:function(){return A},lk:function(){return j},oQ:function(){return v},pW:function(){return p},s0:function(){return b},us:function(){return H},w3:function(){return c}});var r,a,o,i,l=n("5872"),s=n("77393");function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let c=l.createContext(null),d=l.createContext(null),h=l.createContext(null),f=l.createContext(null),p=l.createContext({outlet:null,matches:[],isDataRoute:!1}),m=l.createContext(null);function v(e,t){let{relative:n}=void 0===t?{}:t;y()||(0,s.J0)(!1);let{basename:r,navigator:a}=l.useContext(h),{hash:o,pathname:i,search:u}=S(e,{relative:n}),c=i;return"/"!==r&&(c="/"===i?r:(0,s.RQ)([r,i])),a.createHref({pathname:c,search:u,hash:o})}function y(){return null!=l.useContext(f)}function g(){return y()||(0,s.J0)(!1),l.useContext(f).location}function w(e){!l.useContext(h).static&&l.useLayoutEffect(e)}function b(){let{isDataRoute:e}=l.useContext(p);return e?function(){var e;let t;let{router:n}=(e=P.UseNavigateStable,(t=l.useContext(c))||(0,s.J0)(!1),t),r=T(k.UseNavigateStable),a=l.useRef(!1);return w(()=>{a.current=!0}),l.useCallback(function(e,t){void 0===t&&(t={}),a.current&&("number"==typeof e?n.navigate(e):n.navigate(e,u({fromRouteId:r},t)))},[n,r])}():function(){y()||(0,s.J0)(!1);let e=l.useContext(c),{basename:t,future:n,navigator:r}=l.useContext(h),{matches:a}=l.useContext(p),{pathname:o}=g(),i=JSON.stringify((0,s.cm)(a,n.v7_relativeSplatPath)),u=l.useRef(!1);return w(()=>{u.current=!0}),l.useCallback(function(n,a){if(void 0===a&&(a={}),!u.current)return;if("number"==typeof n){r.go(n);return}let l=(0,s.pC)(n,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,s.RQ)([t,l.pathname])),(a.replace?r.replace:r.push)(l,a.state,a)},[t,r,i,o,e])}()}let E=l.createContext(null);function x(){let{matches:e}=l.useContext(p),t=e[e.length-1];return t?t.params:{}}function S(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=l.useContext(h),{matches:a}=l.useContext(p),{pathname:o}=g(),i=JSON.stringify((0,s.cm)(a,r.v7_relativeSplatPath));return l.useMemo(()=>(0,s.pC)(e,JSON.parse(i),o,"path"===n),[e,i,o,n])}function R(e,t,n,r){let a;y()||(0,s.J0)(!1);let{navigator:o}=l.useContext(h),{matches:i}=l.useContext(p),c=i[i.length-1],d=c?c.params:{};c&&c.pathname;let m=c?c.pathnameBase:"/";c&&c.route;let v=g();if(t){var w;let e="string"==typeof t?(0,s.cP)(t):t;"/"===m||(null==(w=e.pathname)?void 0:w.startsWith(m))||(0,s.J0)(!1),a=e}else a=v;let b=a.pathname||"/",E="/"===m?b:b.slice(m.length)||"/",x=(0,s.fp)(e,{pathname:E}),S=function(e,t,n,r){var a,o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){if(null==(o=n)||!o.errors)return null;e=n.matches}let i=e,u=null==(a=n)?void 0:a.errors;if(null!=u){let e=i.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id]));e>=0||(0,s.J0)(!1),i=i.slice(0,Math.min(i.length,e+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:r}=n,a=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){c=!0,i=d>=0?i.slice(0,d+1):[i[0]];break}}}return i.reduceRight((e,r,a)=>{let o;let s=!1,h=null,f=null;n&&(o=u&&r.route.id?u[r.route.id]:void 0,h=r.route.errorElement||D,c&&(d<0&&0===a?(function(e,t,n){!t&&!O[e]&&(O[e]=!0)}("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),s=!0,f=null):d===a&&(s=!0,f=r.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,a+1)),m=()=>{let t;return t=o?h:s?f:r.route.Component?l.createElement(r.route.Component,null):r.route.element?r.route.element:e,l.createElement(C,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===a)?l.createElement(L,{location:n.location,revalidation:n.revalidation,component:h,error:o,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}(x&&x.map(e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:(0,s.RQ)([m,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?m:(0,s.RQ)([m,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,n,r);return t&&S?l.createElement(f.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:s.aU.Pop}},S):S}let D=l.createElement(function(){let e=j(),t=(0,s.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},n):null,null)},null);class L extends l.Component{static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?l.createElement(p.Provider,{value:this.props.routeContext},l.createElement(m.Provider,{value:this.state.error,children:this.props.component})):this.props.children}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}}function C(e){let{routeContext:t,match:n,children:r}=e,a=l.useContext(c);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(p.Provider,{value:t},r)}var P=((r=P||{}).UseBlocker="useBlocker",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r);var k=((a=k||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function U(e){let t=l.useContext(d);return t||(0,s.J0)(!1),t}function T(e){var t;let n;let r=(t=0,(n=l.useContext(p))||(0,s.J0)(!1),n),a=r.matches[r.matches.length-1];return a.route.id||(0,s.J0)(!1),a.route.id}function _(){return T(k.UseRouteId)}function M(){let{matches:e,loaderData:t}=U(k.UseMatches);return l.useMemo(()=>e.map(e=>(0,s.WS)(e,t)),[e,t])}function j(){var e;let t=l.useContext(m),n=U(k.UseRouteError),r=T(k.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[r]}let O={};function A(e){var t;let n;return t=e.context,(n=l.useContext(p).outlet)?l.createElement(E.Provider,{value:t},n):n}function F(e){(0,s.J0)(!1)}function B(e){let{basename:t="/",children:n=null,location:r,navigationType:a=s.aU.Pop,navigator:o,static:i=!1,future:c}=e;y()&&(0,s.J0)(!1);let d=t.replace(/^\/*/,"/"),p=l.useMemo(()=>({basename:d,navigator:o,static:i,future:u({v7_relativeSplatPath:!1},c)}),[d,c,o,i]);"string"==typeof r&&(r=(0,s.cP)(r));let{pathname:m="/",search:v="",hash:g="",state:w=null,key:b="default"}=r,E=l.useMemo(()=>{let e=(0,s.Zn)(m,d);return null==e?null:{location:{pathname:e,search:v,hash:g,state:w,key:b},navigationType:a}},[d,m,v,g,w,b,a]);return null==E?null:l.createElement(h.Provider,{value:p},l.createElement(f.Provider,{children:n,value:E}))}function W(e){var t;let{children:n,location:r}=e;return t=N(n),R(t,r)}(i||(i=n.t(l,2))).startTransition;var z=((o=z||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);function N(e,t){void 0===t&&(t=[]);let n=[];return l.Children.forEach(e,(e,r)=>{if(!l.isValidElement(e))return;let a=[...t,r];if(e.type===l.Fragment){n.push.apply(n,N(e.props.children,a));return}e.type!==F&&(0,s.J0)(!1),!e.props.index||!e.props.children||(0,s.J0)(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=N(e.props.children,a)),n.push(o)}),n}function H(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:l.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:l.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:l.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}new Promise(()=>{})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{74709:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var o=n("86834");n("5872");var r=n("42666"),l=n("70130");let i=e=>{var t;let[n,i]=(0,r.Z)(()=>Promise.resolve(e.onClick()),[]);return(0,o.jsx)("button",{className:l.container,onClick:i,"data-type":null!==(t=e.type)&&void 0!==t?t:"default",disabled:n.loading,children:e.children})}},62325:function(e,t,n){"use strict";n.d(t,{t:function(){return b}});var o=n("90247"),r=n("55709"),l=n("86834"),i=n("54305"),s=n("42183"),c=n("5872"),a=n("56573"),u=n("71161"),d=n("36339"),v=n("29214"),m=n("55058"),h=n("45967"),p=n("2395"),f=n("10734"),_=n("74709"),y=n("94258"),g=n("28391"),w=n("51879");let k=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,{hash:n}=t,o=null===(e=n.match(/^#\/__devtools(.*)/))||void 0===e?void 0:e[1];return"string"!=typeof o?null:""===o?"/":o},b=e=>{let t=e.def.assets.logo,n=k(),[b,j]=(0,a.Z)(!!n),[x,C]=(0,c.useState)(!1),E=(0,m.jb)(e.endpoint,{src:e.dataSource}),O=(0,y.d)({clamp:!0}),[T,R]=(0,c.useState)(()=>{var e;let t=null!==(e=localStorage.getItem("__modern_js_devtools_appearance"))&&void 0!==e?e:"light";return localStorage.setItem("__modern_js_devtools_appearance",t),t});(0,u.Z)("storage",e=>{"__modern_js_devtools_appearance"===e.key&&R(e.newValue||void 0)}),(0,u.Z)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&j()}),(0,c.useEffect)(()=>{g.QB.hook("receive",e=>{"startInspectingNative"===e.event&&(j(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(j(!0),document.documentElement.style.removeProperty("cursor"))};return g.QB.hook("send",e),()=>{g.QB.removeHook("send",e)}},[]);let S=async()=>{document.documentElement.style.setProperty("cursor","wait"),j(!1),C(!0);try{(await (0,w.F)(g.mp,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,d.Z)(async()=>{if(!!n)(await (0,w.F)(g.mp,1e4)).remote.pullUp(n)},[]),(0,l.jsxs)(i.Q2,{appearance:T,className:T,children:[(0,l.jsx)(h.Z,{when:b,keepAlive:!0,load:x,children:(0,l.jsx)("div",{className:p.container,children:(0,l.jsx)(f.s,{src:E,onClose:()=>j(!1),style:{pointerEvents:O.isDragging?"none":"auto"}})})}),(0,l.jsxs)(s.k,(0,r._)((0,o._)({className:p.fab},O.props),{align:"center",children:[(0,l.jsx)(_.T,{type:"primary",onClick:j,children:(0,l.jsx)("img",{className:p.logo,src:t})}),(0,l.jsx)(_.T,{onClick:S,children:(0,l.jsx)(v.aur,{})})]}))]})}},10734:function(e,t,n){"use strict";n.d(t,{s:function(){return m}});var o=n("90247"),r=n("55709"),l=n("16170"),i=n("86834"),s=n("76416");n("5872");var c=n("29214"),a=n("79197"),u=n("428"),d=n("80115"),v=n("28391");let m=e=>{var{src:t,onClose:n}=e,m=(0,l._)(e,["src","onClose"]);let{loaded:h}=(0,a.R)(v.Cl);return(0,i.jsxs)(s.x,(0,r._)((0,o._)({className:d.container},m),{children:[(0,i.jsx)("iframe",{className:d.frame,src:t}),(0,i.jsx)(c.cu3,{className:d.closeButton,onClick:n}),(0,i.jsx)("div",{className:d.backdrop,style:{display:h?"none":void 0},children:(0,i.jsx)(u.g,{})})]}))}},45967:function(e,t,n){"use strict";var o=n("86834"),r=n("5872");t.Z=e=>{var t;let n=null===(t=e.keepAlive)||void 0===t||t,{when:l}=e,i=(0,r.useRef)(!1);l&&(i.current=!0);let s=e.load||(n?i.current:l);return s?(0,o.jsx)("div",{style:{display:!n||l?"unset":"none"},children:e.children}):null}},80295:function(e,t,n){"use strict";var o=n("90247"),r=n("86834");n("82231"),n("28391");var l=n("60182"),i=n("62484"),s=n("62325");document.addEventListener("DOMContentLoaded",()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),n=document.getElementById("_modern_js_devtools_styles");if(!(n instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(n.content);let c=document.createElement("div");c.classList.add("_modern_js_devtools_mountpoint","theme-register",i.container),t.appendChild(c);let a=window.__MODERN_JS_DEVTOOLS_OPTIONS__;(0,l.createRoot)(c).render((0,r.jsx)(s.t,(0,o._)({},a)))})},82231:function(e,t,n){"use strict";var o=n("57662");if(!window.opener)try{try{delete window.__REACT_DEVTOOLS_GLOBAL_HOOK__}catch(e){}(0,o.initialize)(window);let e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub;window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub=(t,n)=>{if("devtools-backend-installed"!==t)return e(t,n)}}catch(t){let e=Error("Failed to inject React DevTools backend.");e.cause=t,console.error(e)}},28391:function(e,t,n){"use strict";n.d(t,{Cl:function(){return _},QB:function(){return h},mp:function(){return f}});var o=n("90247"),r=n("55709"),l=n("10487"),i=n("88739"),s=n("65872"),c=n("9880"),a=n.n(c),u=n("81733"),d=n("57662"),v=n("24933");let m=l.MessagePortChannel.wait(window,"channel:connect:client"),h=new v.S,p=(0,d.createBridge)(window,h),f=m.then(e=>{let t=(0,s.Hu)();return{remote:(0,i.Fu)({async activateReactDevtools(){(0,d.activate)(window,{bridge:p})},async onFinishRender(){await t.callHook("onFinishRender")}},(0,r._)((0,o._)({},e.handlers),{timeout:500})),hooks:t}}),_=(0,u.sj)({loaded:!1}),y=a()();f.then(e=>{let{remote:t,hooks:n}=e;h.bindRemote(t,"sendReactDevtoolsData"),n.hook("onFinishRender",async()=>{_.loaded=!0,y.resolve()})})},94258:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var o=n("5872"),r=n("71161");let l=(e,t)=>{var n,o;return null!==(o=null===(n=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])||void 0===n?void 0:n.includes(t))&&void 0!==o&&o},i=e=>{let[t,...n]=[{key:"top",value:e.top},{key:"bottom",value:e.bottom},{key:"left",value:e.left},{key:"right",value:e.right}].sort((e,t)=>e.value-t.value),o=n.findIndex(e=>{let{key:n}=e;return l(t.key,n)}),[r]=n.splice(o,1);return[t,r,n[0],n[1]]},s=e=>{let{top:t,left:n,height:o,width:r}=e.getBoundingClientRect();return{top:t,left:n,bottom:window.innerHeight-t-o,right:window.innerWidth-n-r}},c=e=>{var t;let n=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",l="number"==typeof n?"".concat(n,"px"):n,[c,a]=(0,o.useState)(),u=()=>{if(!c)return;c.moveable=!1;let{el:e}=c,[t]=i(s(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{a(void 0),e.style[t.key]=l}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},d=t=>{let n="touches"in t?t.touches[0]:t;if(!(null==c?void 0:c.moveable))return;let{startX:o,startY:r}=c;(o-n.clientX)**2+(r-n.clientY)**2>9&&(c.clickable=!1);let{width:s,height:a}=c.el.getBoundingClientRect(),u=n.clientY-c.offsetY,d=n.clientX-c.offsetX,v=i({top:u,left:d,bottom:window.innerHeight-u-a,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:n}=e;return{key:t,value:"".concat(n,"px")}});if(null==e?void 0:e.clamp)for(let e of v){let t=["top","bottom"].includes(e.key)?window.innerHeight-a:window.innerWidth-s;e.value="clamp(".concat(l,", ").concat(e.value,", ").concat(t,"px)")}let[m,h,...p]=v,{style:f}=c.el;f.transition="",f[m.key]=m.value,f[h.key]=h.value,f[p[0].key]="auto",f[p[1].key]="auto"};(0,r.Z)("blur",u),(0,r.Z)("mouseup",u),(0,r.Z)("touchend",u),(0,r.Z)("mousemove",d),(0,r.Z)("touchmove",d);let v=e=>{let t="touches"in e?e.touches[0]:e,n=e.currentTarget,o=n.getBoundingClientRect(),r=t.clientX-o.left;a({el:n,clickable:!0,moveable:!0,offsetX:r,offsetY:t.clientY-o.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!c,props:{onMouseDown:v,onTouchStart:v,onClickCapture:e=>{(null==c?void 0:c.clickable)||e.stopPropagation()}}}}},51879:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});let o=(e,t)=>new Promise((n,o)=>{let r=!0,l=setTimeout(()=>{r=!1,o(Error("Promise Timeout"))},t);e.then(e=>{r&&n(e),clearTimeout(l)}),e.catch(o)})},24933:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});var o=n("65872");class r extends o.gl{listen(e){return this.hook("receive",e),e}send(e,t,n){this.callHook("send",{event:e,payload:t,transferable:n})}bindRemote(e,t){var n=this;return e.$functions[t]=function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];n.callHook("receive",e,...o)},this.hook("send",function(){for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];e[t](...o)}),this}constructor(){super(),this.status="close";let e=e=>{this.status!==e&&(this.status=e,this.callHook(e))};this.hook("send",t=>{"shutdown"===t.event&&e("close")}),this.hook("receive",t=>{"shutdown"===t.event?e("close"):"operations"===t.event?e("active"):e("open")})}}},62484:function(e,t,n){"use strict";n.r(e.exports={container:"container-c8bb15"})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","522","567","58","637","991"],function(){return t("90915"),t("41975"),t("15326"),t("19449"),t("80295")}),e.O()}]);