@modern-js/devtools-client 0.0.0-nightly-20240124170638 → 0.0.0-nightly-20240125170634
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.
- package/dist/html/client/index.html +2 -2
- package/dist/modern.config.json +1 -1
- package/dist/routes-manifest.json +2 -2
- package/dist/static/js/client.c92ddbaa.js +2 -0
- package/dist/static/js/{client.a8b8c91f.js.LICENSE.txt → client.c92ddbaa.js.LICENSE.txt} +156 -156
- package/package.json +11 -11
- package/dist/static/js/client.a8b8c91f.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!doctype html><html><head><title></title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,viewport-fit=cover,minimum-scale=1,maximum-scale=1,user-scalable=no"><meta http-equiv="x-ua-compatible" content="ie=edge"><meta name="renderer" content="webkit"><meta name="layoutmode" content="standard"><meta name="imagemode" content="force"><meta name="wap-font-scale" content="no"><meta name="format-detection" content="telephone=no"><script defer="defer" src="/__devtools/static/js/builder-runtime.2a0b224c.js"></script><script >
|
|
2
2
|
;(function(){
|
|
3
|
-
window._MODERNJS_ROUTE_MANIFEST = {"routeAssets":{"client":{"chunkIds":["242","126","58","118","707","464","729","810","462"],"assets":["static/js/builder-runtime.2a0b224c.js","static/js/lib-polyfill.65ea0a24.js","static/js/lib-react.023116e5.js","static/js/lib-router.2a47df19.js","static/js/lib-lodash.423c7620.js","static/css/464.ad540914.css","static/js/464.2cdd566b.js","static/js/729.4e95d957.js","static/css/810.d3a7b418.css","static/js/810.00bd18a0.js","static/
|
|
3
|
+
window._MODERNJS_ROUTE_MANIFEST = {"routeAssets":{"client":{"chunkIds":["242","126","58","118","707","464","729","810","462"],"assets":["static/js/builder-runtime.2a0b224c.js","static/js/lib-polyfill.65ea0a24.js","static/js/lib-react.023116e5.js","static/js/lib-router.2a47df19.js","static/js/lib-lodash.423c7620.js","static/css/464.ad540914.css","static/js/464.2cdd566b.js","static/js/729.4e95d957.js","static/css/810.d3a7b418.css","static/js/810.00bd18a0.js","static/js/client.c92ddbaa.js","static/css/client.a698094e.css"],"referenceCssAssets":["static/css/464.ad540914.css","static/css/810.d3a7b418.css","static/css/client.a698094e.css"]},"client_config/layout":{"chunkIds":["518"],"assets":["static/js/async/client_config/layout.166501ba.js"],"referenceCssAssets":[]},"client_config/page":{"chunkIds":["943"],"assets":["static/js/async/client_config/page.af0017fb.js"],"referenceCssAssets":[]},"client_context/builder/page":{"chunkIds":["769","958"],"assets":["static/js/async/769.d97a8752.js","static/js/async/client_context/builder/page.2f20003d.js","static/css/async/client_context/builder/page.c5c9f155.css"],"referenceCssAssets":["static/css/async/client_context/builder/page.c5c9f155.css"]},"client_context/framework/page":{"chunkIds":["769","818"],"assets":["static/js/async/769.d97a8752.js","static/css/async/client_context/framework/page.c5c9f155.css","static/js/async/client_context/framework/page.5da3a416.js"],"referenceCssAssets":["static/css/async/client_context/framework/page.c5c9f155.css"]},"client_context/layout":{"chunkIds":["504"],"assets":["static/js/async/client_context/layout.7142f660.js"],"referenceCssAssets":[]},"client_context/page":{"chunkIds":["361"],"assets":["static/js/async/client_context/page.227fc159.js"],"referenceCssAssets":[]},"client_headers/editor/page":{"chunkIds":["730"],"assets":["static/css/async/client_headers/editor/page.1cafd3ec.css","static/js/async/client_headers/editor/page.5bea5d85.js"],"referenceCssAssets":["static/css/async/client_headers/editor/page.1cafd3ec.css"]},"client_headers/layout":{"chunkIds":["925"],"assets":["static/js/async/client_headers/layout.2b809c91.js","static/css/async/client_headers/layout.90917891.css"],"referenceCssAssets":["static/css/async/client_headers/layout.90917891.css"]},"client_headers/page":{"chunkIds":["963"],"assets":["static/js/async/client_headers/page.83f30498.js"],"referenceCssAssets":[]},"client_headers/welcome/page":{"chunkIds":["860"],"assets":["static/js/async/client_headers/welcome/page.bb592578.js"],"referenceCssAssets":[]},"client_overview/page":{"chunkIds":["161"],"assets":["static/css/async/client_overview/page.a49e16bb.css","static/js/async/client_overview/page.eb7afddf.js"],"referenceCssAssets":["static/css/async/client_overview/page.a49e16bb.css"]},"client_page":{"chunkIds":["127"],"assets":["static/js/async/client_page.f1d2eb8e.js"],"referenceCssAssets":[]},"client_pages/layout":{"chunkIds":["631"],"assets":["static/css/async/client_pages/layout.4e0a9ce4.css","static/js/async/client_pages/layout.f25702f6.js"],"referenceCssAssets":["static/css/async/client_pages/layout.4e0a9ce4.css"]},"client_pages/page":{"chunkIds":["718"],"assets":["static/css/async/client_pages/page.0e153ba3.css","static/js/async/client_pages/page.e87cee29.js"],"referenceCssAssets":["static/css/async/client_pages/page.0e153ba3.css"]},"client_react/(tab)/layout":{"chunkIds":["299"],"assets":["static/js/async/client_react/(tab)/layout.3becf66e.js"],"referenceCssAssets":[]},"client_react/(tab)/page":{"chunkIds":["483"],"assets":["static/js/async/client_react/(tab)/page.72c702ed.js"],"referenceCssAssets":[]},"client_react/offscreen/page":{"chunkIds":["752"],"assets":["static/js/async/client_react/offscreen/page.0074d754.js"],"referenceCssAssets":[]},"client_react/page":{"chunkIds":["945"],"assets":["static/js/async/client_react/page.be45dcc6.js"],"referenceCssAssets":[]}}};
|
|
4
4
|
})();
|
|
5
|
-
</script><script defer="defer" src="/__devtools/static/js/lib-polyfill.65ea0a24.js"></script><script defer="defer" src="/__devtools/static/js/lib-react.023116e5.js"></script><script defer="defer" src="/__devtools/static/js/lib-router.2a47df19.js"></script><script defer="defer" src="/__devtools/static/js/lib-lodash.423c7620.js"></script><script defer="defer" src="/__devtools/static/js/464.2cdd566b.js"></script><script defer="defer" src="/__devtools/static/js/729.4e95d957.js"></script><script defer="defer" src="/__devtools/static/js/810.00bd18a0.js"></script><script defer="defer" src="/__devtools/static/js/client.
|
|
5
|
+
</script><script defer="defer" src="/__devtools/static/js/lib-polyfill.65ea0a24.js"></script><script defer="defer" src="/__devtools/static/js/lib-react.023116e5.js"></script><script defer="defer" src="/__devtools/static/js/lib-router.2a47df19.js"></script><script defer="defer" src="/__devtools/static/js/lib-lodash.423c7620.js"></script><script defer="defer" src="/__devtools/static/js/464.2cdd566b.js"></script><script defer="defer" src="/__devtools/static/js/729.4e95d957.js"></script><script defer="defer" src="/__devtools/static/js/810.00bd18a0.js"></script><script defer="defer" src="/__devtools/static/js/client.c92ddbaa.js"></script><link href="/__devtools/static/css/464.ad540914.css" rel="stylesheet"><link href="/__devtools/static/css/810.d3a7b418.css" rel="stylesheet"><link href="/__devtools/static/css/client.a698094e.css" rel="stylesheet"></head><body><div id="root"><!--<?- html ?>--></div><!--<?- chunksMap.js ?>--><!--<?- SSRDataScript ?>--></body></html>
|
package/dist/modern.config.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
{
|
|
27
27
|
"process.env.VERSION": "2.46.1",
|
|
28
28
|
"process.env.PKG_VERSION": "2.46.1",
|
|
29
|
-
"process.env.DEVTOOLS_MARK": "-
|
|
29
|
+
"process.env.DEVTOOLS_MARK": "jyY_J6TuA-h0VO2mwlLcn",
|
|
30
30
|
"__REACT_DEVTOOLS_GLOBAL_HOOK__": {
|
|
31
31
|
"isDisabled": true
|
|
32
32
|
}
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/__devtools/static/js/729.4e95d957.js",
|
|
24
24
|
"/__devtools/static/css/810.d3a7b418.css",
|
|
25
25
|
"/__devtools/static/js/810.00bd18a0.js",
|
|
26
|
-
"/__devtools/static/
|
|
27
|
-
"/__devtools/static/
|
|
26
|
+
"/__devtools/static/js/client.c92ddbaa.js",
|
|
27
|
+
"/__devtools/static/css/client.a698094e.css"
|
|
28
28
|
],
|
|
29
29
|
"referenceCssAssets": [
|
|
30
30
|
"/__devtools/static/css/464.ad540914.css",
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see client.c92ddbaa.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["462"],{58266:function(e,t,n){"use strict";n.r(t),n.d(t,{bootstrap:function(){return R},createApp:function(){return b}});var r,o=n("73839"),i=n("64534"),u=n("90247"),a=n("16170"),c=n("44518"),s=n("2759"),l=n("86834"),f=n("5872"),d=n.n(f),p=n("13266"),h=n.n(p),v=n("63415"),m=n("59535"),g=n("4513"),x=n("13063"),_=new WeakMap,y=function(e){return{loaderManager:(0,x.createLoaderManager)({}),runner:e,isBrowser:!0,routeManifest:"undefined"!=typeof window&&window[v.ROUTE_MANIFEST]}},b=function(e){var t=e.plugins,n=e.props,r=g.runtime.clone();return r.usePlugin.apply(r,(0,c._)(t)),function(e){var t=r.init(),o=function(n){var r,o=d().createElement(e||d().Fragment,e?(0,u._)({},n):null,e?n.children:d().cloneElement(n.children,(0,u._)({},null===(r=n.children)||void 0===r?void 0:r.props,n))),i=(0,f.useContext)(m.RuntimeReactContext);return t.provide({element:o,props:(0,u._)({},n),context:i},{onLast:function(e){return e.element}})};e&&h()(o,e);var i=t.hoc({App:o},{onLast:function(e){var r=e.App;return h()(function(e){var o=e.context,i=(0,a._)(e,["context"]),c=o;!(null==c?void 0:c.runner)&&(c=y(t),t.init({context:c},{onLast:function(e){var t,n=e.context;return null==r?void 0:null===(t=r.init)||void 0===t?void 0:t.call(r,n)}}));var s=(0,u._)({},i,n);return(0,l.jsx)(m.RuntimeReactContext.Provider,{value:c,children:(0,l.jsx)(r,(0,u._)({},s))})},r)}});return _.set(i,t),i}};var R=(r=(0,o._)(function(e,t,n,r){var o,a,c,l,f,p,h,v,m,g,R,w,j,E,k;return(0,s._)(this,function(s){switch(s.label){case 0:var L;if(o=e,!(a=_.get(o))&&(o=b({plugins:[]})(o),a=_.get(o)),c=y(a),l=function(e){return a.init({context:e},{onLast:function(e){var t,n=e.context;return null==o?void 0:null===(t=o.init)||void 0===t?void 0:t.call(o,n)}})},!t)return[2,d().createElement(o,{context:c})];if(!("undefined"!=typeof window&&"nodejs"!==window.name))return[3,4];if(!("string"==typeof(L=t)||"undefined"!=typeof HTMLElement&&(0,i._)(L,HTMLElement)))return[3,2];return m=Object.keys(v=(null==(h=window._SSR_DATA)?void 0:null===(f=h.data)||void 0===f?void 0:f.loadersData)||{}).reduce(function(e,t){var n=v[t];return!1!==n.loading?e:(e[t]=n,e)},{}),Object.assign(c,(0,u._)({loaderManager:(0,x.createLoaderManager)(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((g=s.sent())&&(c.initialData=g),R="string"!=typeof t?t:document.getElementById(t||"root"),!r)throw Error("The `bootstrap` need provide `ReactDOM` parameter");return w=function(e){if(n)n.render(e);else if(r.createRoot)r.createRoot(R).render(e);else throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `createRoot` method")},j=function(e,t){if(!r.hydrateRoot)throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `hydrateRoot` method");r.hydrateRoot(R,e)},[2,a.client({App:o,context:c,ModernRender:w,ModernHydrate:j},{onLast:function(e){var t=e.App;w(d().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,x.createLoaderManager)({},{skipNonStatic:t.staticGenerate,skipStatic:!t.staticGenerate})}),E=function(e){if("undefined"!=typeof Response&&(0,i._)(e,Response)&&e.status>=300&&e.status<=399){var t=e.status,n=e.headers.get("Location")||"/",r=c.ssrContext;return r&&(r.res.statusCode=t,r.res.setHeader("Location",n),r.redirection=r.redirection||{},r.redirection.status=t,r.redirection.url=n),!0}return!1},[4,l(c)];case 5:if(k=s.sent(),!E(k))return c.initialData=k,[2,a.server({App:o,context:c})];s.label=6;case 6:return[2]}})}),function(e,t,n,o){return r.apply(this,arguments)})},25543:function(e,t,n){"use strict";n.r(t),n.d(t,{RuntimeReactContext:function(){return o.RuntimeReactContext}});var r=n("58266");n.es(r,t);var o=n("59535"),i=n("15413");n.es(i,t)},13063:function(e,t,n){"use strict";n.r(t),n.d(t,{createLoaderManager:function(){return h}});var r,o,i=n("73839"),u=n("64534"),a=n("70749"),c=n("44518"),s=n("2759"),l=n("24546"),f=n.n(l),d=function(){var e=new Map;return function(t){var n=e.get(t);if(n)return n;var r=JSON.stringify(t);return f()(r,"params should be not null value"),e.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(e){var t,n,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._)(this,function(e){return a||1===l?[2,n]:(l=1,g(),[2,n=o().then(function(e){f=e,d=null,l=2}).catch(function(e){d=e,f=null,l=3}).finally(function(){n=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(e){e(l,m())})};return{get result(){return m()},get promise(){return n},onChange:function(e){return h.add(e),function(){h.delete(e)}},load:v}},h=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipStatic,o=void 0!==r&&r,c=n.skipNonStatic,l=void 0!==c&&c,f=new Map,h=d();return{hasPendingLoaders:function(){var e=!0,t=!1,n=void 0;try{for(var r,o=f.values()[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var i=r.value.promise;if((0,u._)(i,Promise))return!0}}catch(e){t=!0,n=e}finally{try{!e&&null!=o.return&&o.return()}finally{if(t)throw n}}return!1},awaitPendingLoaders:(t=(0,i._)(function(){var e,t,n,r,o,i,c,l,d,p;return(0,s._)(this,function(s){switch(s.label){case 0:e=[],t=!0,n=!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)&&e.push([l,d])}catch(e){n=!0,r=e}finally{try{!t&&null!=o.return&&o.return()}finally{if(n)throw r}}return[4,Promise.all(e.map(function(e){return e[1].promise}))];case 1:return s.sent(),[2,e.reduce(function(e,t){var n=(0,a._)(t,2),r=n[0],o=n[1];return e[r]=o.result,e},{})]}})}),function(){return t.apply(this,arguments)}),add:function(t,n){var r=h(n.params),i=f.get(r),u=n._cache;if(!i||!1===u){var a=l&&!n.static,c=o&&n.static;i=p(r,void 0!==e[r]?e[r]:{data:n.initialData},t,a||c),f.set(r,i)}return r},get:function(e){return f.get(e)}}}},4513:function(e,t,n){"use strict";n.r(t),n.d(t,{runtime:function(){return l}});var r=n("15413"),o=(0,r.createPipeline)(),i=(0,r.createPipeline)(),u=(0,r.createAsyncPipeline)(),a=(0,r.createAsyncPipeline)(),c=(0,r.createAsyncPipeline)(),s={hoc:o,provide:i,client:u,server:a,init:c,pickContext:(0,r.createPipeline)()},l=(0,r.createManager)(s);l.createPlugin},46606:function(e,t,n){"use strict";n.r(t),n.d(t,{bootstrap:function(){return r.bootstrap},createApp:function(){return r.createApp}});var r=n("25543")},39934:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.default}});var r=n("90979");n.es(r,t)},47534:function(e,t,n){"use strict";n.r(t),n.d(t,{DefaultNotFound:function(){return o}});var r=n("86834"),o=function(){return(0,r.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})}},21446:function(e,t,n){"use strict";function r(){return null}n.r(t),n.d(t,{default:function(){return r}})},85371:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return b},NavLink:function(){return R}});var r=n("73839"),o=n("90247"),i=n("16170"),u=n("70749"),a=n("2759"),c=n("86834"),s=n("5872"),l=n.n(s),f=n("78771"),d=n("25543");function p(e,t){return function(n){null==e||e(n),!n.defaultPrevented&&t(n)}}var h=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function v(){return(v=(0,r._)(function(e,t){var r,o;return(0,a._)(this,function(i){switch(i.label){case 0:if(!(r=e.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(e){return null===n.e||void 0===n.e?void 0:n.e(String(e))}))];case 2:return i.sent(),[3,4];case 3:return console.error(i.sent()),[3,4];case 4:return[2]}})})).apply(this,arguments)}var m=function(e,t){var n=window.location,r=n.protocol,o=n.host,i=new URL(e,"".concat(r,"//").concat(o));return i.searchParams.append("__loader",t),i.searchParams.append("__ssrDirect","true"),i},g=function(e,t,n){var r,o=e.id;return r=m("/"===n?t:"".concat(n).concat(t),o).toString(),(0,c.jsx)("link",{rel:"prefetch",as:"fetch",href:r},r)},x=function(e){var t=e.path,n=t.pathname,r=(0,s.useContext)(d.RuntimeReactContext),o=r.routeManifest,i=r.routes,u=(o||{}).routeAssets,a=Array.isArray(i)?(0,f.matchRoutes)(i,n):[];return(Array.isArray(a)&&u&&(null==a||a.forEach(function(e){return function(e,t){return v.apply(this,arguments)}(e.route,u)})),window._SSR_DATA)?(0,c.jsx)(_,{matches:a,path:t,routeManifest:o}):null},_=function(e){var t=e.matches,n=e.path,r=e.routeManifest,o=n.pathname,i=n.search,u=n.hash,a=(0,f.useMatches)(),l=(0,f.useHref)("/"),d=(0,s.useMemo)(function(){return null==t?void 0:t.filter(function(e,t){if(!e.route.loader||"function"!=typeof e.route.loader||0===e.route.loader.length)return!1;if(e.route.shouldRevalidate){var n,r=new URL(location.pathname+location.search+location.hash,window.origin),c=new URL(o+i+u,window.origin),s=e.route.shouldRevalidate({currentUrl:r,currentParams:(null===(n=a[0])||void 0===n?void 0:n.params)||{},nextUrl:c,nextParams:e.params,defaultShouldRevalidate:!0});if("boolean"==typeof s)return s}var l=a[t];return!!(!l||l.id!==e.route.id||l.pathname!==e.pathname||l.pathname.endsWith("*")&&l.params["*"]!==e.params["*"])||!1}).map(function(e){return g(e.route,o,l)})},[t,o,r]);return(0,c.jsx)(c.Fragment,{children:d})},y=function(e){return l().forwardRef(function(t,r){var a,s,d,v,m,g,_,y,b,R,w,j,E,k,L,S=t.to,A=t.prefetch,C=(0,i._)(t,["to","prefetch"]),M="string"==typeof S&&h.test(S);var O=(0,u._)((a=void 0===A?"none":A,s=C,v=(d=(0,u._)(l().useState(!1),2))[0],m=d[1],_=(g=(0,u._)(l().useState(!1),2))[0],y=g[1],b=s.onFocus,R=s.onBlur,w=s.onMouseEnter,j=s.onMouseLeave,E=s.onTouchStart,l().useEffect(function(){"render"===a&&y(!0)},[a]),k=function(){"intent"===a&&m(!0)},L=function(){"intent"===a&&(m(!1),y(!1))},l().useEffect(function(){if(v){var e=setTimeout(function(){y(!0)},100);return function(){clearTimeout(e)}}},[v]),[_,{onFocus:p(b,k),onBlur:p(R,L),onMouseEnter:p(w,k),onMouseLeave:p(j,L),onTouchStart:p(E,k)}]),2),P=O[0],N=O[1],T=(0,f.useResolvedPath)(S);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,(0,o._)({ref:r,to:S},C,N)),P&&n.e&&!M?(0,c.jsx)(x,{path:T}):null]})})},b=y(f.Link);b.displayName="Link";var R=y(f.NavLink);R.displayName="NavLink"},68705:function(e,t,n){"use strict";n.r(t),n.d(t,{modifyRoutes:function(){return r}});var r=(0,n("15413").createWaterfall)()},90979:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return o.Link},NavLink:function(){return o.NavLink},Outlet:function(){return u.Outlet},createShouldRevalidate:function(){return i.createShouldRevalidate},default:function(){return a},handleRouteModule:function(){return i.handleRouteModule},handleRouteModuleError:function(){return i.handleRouteModuleError},matchPath:function(){return u.matchPath},matchRoutes:function(){return u.matchRoutes},redirect:function(){return u.redirect},useLocation:function(){return u.useLocation},useMatches:function(){return u.useMatches},useNavigate:function(){return u.useNavigate},useParams:function(){return u.useParams},useRouteError:function(){return u.useRouteError}});var r=n("29552"),o=n("85371"),i=n("83366"),u=n("78771"),a=r.routerPlugin},29552:function(e,t,n){"use strict";n.r(t),n.d(t,{routerPlugin:function(){return g}});var r=n("90247"),o=n("55709"),i=n("44518"),u=n("86834"),a=n("5872"),c=n("78771"),s=n("13266"),l=n.n(s),f=n("89736"),d=n("25543"),p=n("68705"),h=n("78923"),v={routes:[]},m=!0,g=function(e){var t=e.serverBase,n=void 0===t?[]:t,s=e.supportHtml5History,m=void 0===s||s,g=e.basename,x=void 0===g?"":g,_=e.routesConfig,y=e.createRoutes,b=[];return v=_,window._SERVER_DATA=(0,f.parsedJSONFromElement)("__MODERN_SERVER_DATA__"),{name:"@modern-js/plugin-router",registerHook:{modifyRoutes:p.modifyRoutes},setup:function(e){return{init:function(e,t){var n=e.context;return n.router={useMatches:c.useMatches,useLocation:c.useLocation,useHref:c.useHref},Object.defineProperty(n,"routes",{get:function(){return b}}),t({context:n})},hoc:function(t,s){var f,p=t.App;if(!v&&!y)return s({App:p});var g=(f=function(t){var u,s,l=(null===(s=window._SERVER_DATA)||void 0===s?void 0:s.router.baseUrl)||(u=location.pathname,n.find(function(e){return 0===u.search(e)})||"/"),f="/"===l?(0,h.urlJoin)(l,x):l,p=window._ROUTER_DATA,g=(0,a.useContext)(d.RuntimeReactContext),_=g.unstable_getBlockNavState;return(0,a.useMemo)(function(){(null==p?void 0:p.errors)&&(p=(0,o._)((0,r._)({},p),{errors:(0,h.deserializeErrors)(p.errors)})),b=y?y():(0,c.createRoutesFromElements)((0,h.renderRoutes)({routesConfig:v,props:t})),b=e.useHookRunners().modifyRoutes(b);var n=m?(0,c.createBrowserRouter)(b,{basename:f,hydrationData:p}):(0,c.createHashRouter)(b,{basename:f,hydrationData:p}),u=n.subscribe;return n.subscribe=function(e){return u(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!(_&&_()))return e.apply(void 0,(0,i._)(n))})},Object.defineProperty(g,"remixRouter",{get:function(){return n},configurable:!0}),n},[v,t,f,p,_])},function(e){var t=f(e);return(0,u.jsx)(p,(0,o._)((0,r._)({},e),{children:(0,u.jsx)(c.RouterProvider,{router:t})}))});return(p&&(g=l()(g,p)),null==_?void 0:_.globalApp)?s({App:l()(g,_.globalApp)}):s({App:g})},pickContext:function(e,t){var n=e.context,i=e.pickedContext,u=n.remixRouter;if(!u)return t({context:n,pickedContext:i});var a={navigate:u.navigate,get location(){return u.state.location}};return t({context:n,pickedContext:(0,o._)((0,r._)({},i),{router:a})})}}}}}},83366:function(e,t,n){"use strict";n.r(t),n.d(t,{createShouldRevalidate:function(){return o},handleRouteModule:function(){return i},handleRouteModuleError:function(){return u}});var r=n("63415"),o=function(e){return function(t){var n,o,i=null===(o=window)||void 0===o?void 0:null===(n=o[r.ROUTE_MODULES])||void 0===n?void 0:n[e];return i&&"function"==typeof i.shouldRevalidate?i.shouldRevalidate(t):t.defaultShouldRevalidate}},i=function(e,t){return"undefined"!=typeof document&&(window[r.ROUTE_MODULES][t]=e),e},u=function(e){return console.error(e),null}},78923:function(e,t,n){"use strict";n.r(t),n.d(t,{deserializeErrors:function(){return h},renderRoutes:function(){return d},urlJoin:function(){return p}});var r=n("90247"),o=n("16170"),i=n("70749"),u=n("86834"),a=n("78771"),c=n("69444"),s=n("48747"),l=n("47534"),f=n("21446");function d(e){var t=e.routesConfig,n=e.props,i=e.ssrMode,c=e.reporter;if(!t)return null;var d=t.routes,p=t.globalApp;return d?function(e,t){var n=t.globalApp,i=t.ssrMode,c=t.props,d=t.reporter,p=function(e){var t=e.Component,i=(0,o._)(e,["Component"]);return n?(0,u.jsx)(n,(0,r._)({Component:t},i)):(0,u.jsx)(t,(0,r._)({},i))},h=[],v=!0,m=!1,g=void 0;try{for(var x,_=e[Symbol.iterator]();!(v=(x=_.next()).done);v=!0){var y=x.value;if("nested"===y.type){var b=(0,s.renderNestedRoute)(y,{DeferredDataComponent:"stream"===i?f.default:void 0,props:c,reporter:d});h.push(b)}else{var R=(0,u.jsx)(a.Route,{path:y.path,element:(0,u.jsx)(p,{Component:y.component})},y.path);h.push(R)}}}catch(e){m=!0,g=e}finally{try{!v&&null!=_.return&&_.return()}finally{if(m)throw g}}return h.push((0,u.jsx)(a.Route,{path:"*",element:(0,u.jsx)(l.DefaultNotFound,{})},"*")),h}(d,{globalApp:p,ssrMode:i,props:n,reporter:c}):null}var p=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=RegExp("".concat("/","{1,}"),"g");return function(e){var t=e;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(e){if(!e)return null;var t=Object.entries(e),n={},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)n[f]=new c.UNSAFE_ErrorResponseImpl(d.status,d.statusText,d.data,!0===d.internal);else if(d&&"Error"===d.__type){var p=Error(d.message);p.stack=d.stack,n[f]=p}else n[f]=d}}catch(e){o=!0,u=e}finally{try{!r&&null!=s.return&&s.return()}finally{if(o)throw u}}return n}},59535:function(e,t,n){"use strict";n.r(t),n.d(t,{RuntimeReactContext:function(){return o}});var r=n("5872"),o=(0,r.createContext)({});(0,r.createContext)({})},15413:function(e,t,n){"use strict";n.r(t),n.d(t,{createAsyncPipeline:function(){return d},createManager:function(){return N},createPipeline:function(){return f},createWaterfall:function(){return v}});var r=n("18360"),o=n("90247"),i=n("44518"),u=n("55709"),a=n("76492"),c=function(e){var t=function(n,r){return e(n,r,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return t(n+1,e)})};return{start:function(e){return t(0,e)},dispatch:t}},s=Symbol.for("MODERN_PIPELINE"),l=function(e){if("function"==typeof e)return e;if(e&&"function"==typeof e.middleware)return e.middleware;throw Error("".concat(e," is not a Middleware"))},f=function(){var e,t=[],n=function(e){return c(function(n,r,o){if(n>=t.length){if(e)return e(r);throw Error("Expect returning a value, but all middlewares just calling next()")}return t[n](r,o)})},o=n(),u=function(e,t){var r;return((r=t)?n(null==r?void 0:r.onLast):o).start(e)},a=(e={},(0,r._)(e,s,!0),(0,r._)(e,"use",function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.push.apply(t,(0,i._)(n.map(l))),a}),(0,r._)(e,"run",u),(0,r._)(e,"middleware",function(e,t){return u(e,{onLast:t})}),e);return a},d=function(){var e=f();return(0,o._)({},e)},p=Symbol.for("MODERN_WATERFALL"),h=function(e){if("function"==typeof e)return e;if(e&&"function"==typeof e.middleware)return e.middleware;throw Error("".concat(e," is not a Brook or { brook: Brook }"))},v=function(){var e=f(),t=(0,u._)((0,o._)({},e),(0,r._)({use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(h).map(m))),t},run:function(t,n){return e.run(t,(0,u._)((0,o._)({},n),{onLast:function(e){return e}}))},middleware:function(t){return e.run(t,{onLast:function(e){return e}})}},p,!0));return t},m=function(e){return function(t,n){return n(e(t))}},g=Symbol.for("MODERN_ASYNC_WATERFALL"),x=function(e){if("function"==typeof e)return e;if(e&&"function"==typeof e.middleware)return e.middleware;throw Error("".concat(e," is not a AsyncBrook or { brook: AsyncBrook }"))},_=function(){var e=d(),t=(0,u._)((0,o._)({},e),(0,r._)({use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(x).map(y))),t},run:function(t,n){return e.run(t,(0,u._)((0,o._)({},n),{onLast:function(e){return e}}))},middleware:function(t){return e.run(t,{onLast:function(e){return e}})}},g,!0));return t},y=function(e){return function(t,n){return Promise.resolve(e(t)).then(function(e){return n(e)})}},b=Symbol.for("MODERN_WORKFLOW"),R=function(){var e=f(),t=(0,u._)((0,o._)({},e),(0,r._)({use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(w))),t},run:function(t){return e.run(t,{onLast:function(){return[]}}).filter(Boolean)}},b,!0));return t},w=function(e){return function(t,n){return[e(t)].concat((0,i._)(n(t)))}},j=Symbol.for("MODERN_PARALLEL_WORKFLOW"),E=function(){var e=f(),t=(0,u._)((0,o._)({},e),(0,r._)({run:function(t){return Promise.all(e.run(t,{onLast:function(){return[]}})).then(function(e){return e.filter(Boolean)})},use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(k))),t}},j,!0));return t},k=function(e){return function(t,n){return[e(t)].concat((0,i._)(n(t)))}},L=Symbol.for("MODERN_ASYNC_WORKFLOW"),S=function(){var e=d(),t=(0,u._)((0,o._)({},e),(0,r._)({use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(A))),t},run:function(t){var n,r=e.run(t,{onLast:function(){return[]}});return(n=r)&&"function"==typeof n.then?r.then(function(e){return e.filter(Boolean)}):r.filter(Boolean)}},L,!0));return t},A=function(e){return function(t,n){return Promise.resolve(e(t)).then(function(e){return Promise.resolve(n(t)).then(function(t){return[e].concat((0,i._)(t))})})}},C=function(e){},M=function(e){return null!==e&&"object"==typeof e},O="SYNC_PLUGIN_SYMBOL",P={name:"untitled",pre:[],post:[],rivals:[],required:[],usePlugins:[],registerHook:{}},N=function(e,t){var n,r=0,i=(0,o._)({},e),c=function(){return n},s=function(e){i=(0,o._)({},e,i)},l=function(e){var t,n;return M(e)&&(t=e,n=O,t.hasOwnProperty(n))&&e[O]===O},f=(0,u._)((0,o._)({},t),{useHookRunners:c}),d=function(e){var t=[],p=function(e){var n,r;if(n=t,r=e,!n.some(function(e){return e.name===r.name}))t.push((0,o._)({},e))},h=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.forEach(function(e){if(l(e))p(e);else if("function"==typeof e){var t=e();p(v(t.setup,t))}else M(e)&&p(v(e.setup,e))}),m},v=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(null===(e=n.usePlugins)||void 0===e?void 0:e.length)&&n.usePlugins.forEach(function(e){h(v(e.setup,e))}),n.registerHook&&s(n.registerHook),(0,u._)((0,o._)((0,u._)((0,o._)({},P),{name:"No.".concat(r++," plugin")}),n),{SYNC_PLUGIN_SYMBOL:O,setup:t})},m={createPlugin:v,isPlugin:l,usePlugin:h,init:function(){var r,u=(r=t,(0,a.pluginDagSort)(r.slice())),c=(0,o._)({},f,e);return C(u),n=T(u.map(function(e){return e.setup(c)}),i)},clear:function(){t=[]},run:function(e){return e()},registerHook:s,useRunner:c,clone:d};return m};return d()},T=function(e,t){var n={},r=D(t);if(t){var i=function(t){e.forEach(function(e){(null==e?void 0:e[t])&&r[t].use(e[t])}),n[t]=function(e,n){return r[t].run(e,(0,o._)({},n))}};for(var u in r)i(u)}return n},B=function(e){var t,n,r,o,i,u;if(null==(t=e)?void 0:t[p])return v();if(null==(n=e)?void 0:n[g])return _();if(null==(r=e)?void 0:r[b])return R();if(null==(o=e)?void 0:o[L])return S();if(null==(i=e)?void 0:i[j])return E();if(null==(u=e)?void 0:u[s])return f();throw Error("Unknown hook: ".concat(e))},D=function(e){if(!e)return e;var t={};for(var n in e)t[n]=B(e[n]);return t}},48747:function(e,t,n){"use strict";n.r(t);var r=n("8921");n.es(r,t)},8921:function(e,t,n){"use strict";n.r(t),n.d(t,{renderNestedRoute:function(){return d}});var r=n("73839"),o=n("90247"),i=n("55709"),u=n("2759"),a=n("86834"),c=n("5872"),s=n("3369"),l=n("63415"),f=n("67791"),d=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=e.children,v=e.index,m=e.id,g=e.component,x=e.isRoot,_=e.lazyImport,y=e.config,b=e.handle,R=n.parent,w=n.DeferredDataComponent,j=n.props,E=void 0===j?{}:j,k=n.reporter,L={caseSensitive:e.caseSensitive,path:e.path,id:e.id,loader:function(e,t){var n,o=e.loader;if(!o)return function(){return"function"==typeof e.lazyImport&&e.lazyImport(),null};return n=(0,r._)(function(n){var r,i,a;return(0,u._)(this,function(u){switch(u.label){case 0:return"function"==typeof e.lazyImport&&e.lazyImport(),r=(0,f.time)(),[4,o(n)];case 1:return i=u.sent(),a=r(),"undefined"==typeof document&&t&&(null==t||t.reportTiming("".concat(l.LOADER_REPORTER_NAME,"-").concat(e.id),a)),[2,i]}})}),function(e){return n.apply(this,arguments)}}(e,k),action:e.action,hasErrorBoundary:e.hasErrorBoundary,shouldRevalidate:e.shouldRevalidate,handle:(0,o._)({},b,"object"==typeof y?null==y?void 0:y.handle:{}),index:e.index,element:e.element,errorElement:e.errorElement};if(e.error){var S=(0,a.jsx)(e.error,{});L.errorElement=S}if(g){if((null==R?void 0:R.loading)&&_){var A=R.loading;t=p(g)?(0,a.jsx)(g,{fallback:(0,a.jsx)(A,{})}):(0,a.jsx)(c.Suspense,{fallback:(0,a.jsx)(A,{}),children:(0,a.jsx)(g,{})})}else t=p(g)&&_?(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})]}):_?(0,a.jsx)(c.Suspense,{fallback:null,children:(0,a.jsx)(g,{})}):(0,a.jsx)(g,{})}else e.loading=null==R?void 0:R.loading,L.element=(0,a.jsx)(s.Outlet,{});t&&(L.element=t);var C=null==h?void 0:h.map(function(t){return d(t,{parent:e,reporter:k})});return v?(0,a.jsx)(s.Route,(0,i._)((0,o._)({},L),{index:!0}),m):(0,a.jsx)(s.Route,(0,i._)((0,o._)({},L),{index:!1,children:C}),m)};function p(e){return e&&"Loadable"===e.displayName&&e.preload&&"function"==typeof e.preload}},89736:function(e,t,n){"use strict";n.r(t),n.d(t,{parsedJSONFromElement:function(){return r}});var r=function(e){var t=document.querySelectorAll("#".concat(e));if(0!==t.length){var n=t[t.length-1];if(n)try{return JSON.parse((null==n?void 0:n.textContent)||"")}catch(t){console.error("parse ".concat(e," error"),t)}}}},69444:function(e,t,n){"use strict";n.r(t);var r=n("75078");n.es(r,t)},78771:function(e,t,n){"use strict";n.r(t);var r=n("3369");n.es(r,t)},67791:function(e,t,n){"use strict";n.r(t),n.d(t,{time:function(){return u}});var r=n("70749");function o(e){var t=.001*new Date().getTime(),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]}var i=function(e){var t=(0,r._)(o(e),2);return 1e3*t[0]+t[1]/1e6},u=function(){var e=o();return function(){return i(e)}}},63415:function(e,t,n){"use strict";n.r(t),n.d(t,{LOADER_REPORTER_NAME:function(){return i},ROUTE_MANIFEST:function(){return r},ROUTE_MODULES:function(){return o}});var r="_MODERNJS_ROUTE_MANIFEST",o="_routeModules",i="server-loader"},76492:function(e,t,n){"use strict";n.r(t),n.d(t,{pluginDagSort:function(){return r}});var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"pre",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"post",o=function(n){var r=e.find(function(e){return"string"==typeof n?e[t]===n:e[t]===n[t]});if(!r)throw Error("plugin ".concat(n," not existed"));return r},i=[];e.forEach(function(u){var a,c;null===(a=u[n])||void 0===a||a.forEach(function(n){e.find(function(e){return e.name===n})&&i.push([o(n)[t],o(u)[t]])}),null===(c=u[r])||void 0===c||c.forEach(function(n){e.find(function(e){return e.name===n})&&i.push([o(u)[t],o(n)[t]])})});for(var u=e.filter(function(e){return!i.find(function(n){return n[1]===e[t]})}),a=[];u.length;)!function(){var n=u.shift();a.push(o(n)),i=i.filter(function(e){return e[0]!==o(n)[t]}),u=e.filter(function(e){return!a.find(function(n){return n[t]===e[t]})}).filter(function(e){return!i.find(function(n){return n[1]===e[t]})})}();if(i.length){var c={};throw i.forEach(function(e){c[e[0]]=!0,c[e[1]]=!0}),Error("plugins dependencies has loop: ".concat(Object.keys(c).join(",")))}return a}},44801:function(e,t,n){"use strict";n.r(t),n.d(t,{Breadcrumbs:function(){return p}});var r=n("90247"),o=n("55709"),i=n("86834");n("5872");var u=n("52493"),a=n.n(u),c=n("83982"),s=n("60441"),l=n("39934"),f=n("29045"),d=n("54109");let p=e=>{let t=[],n=[];for(let e of(0,l.useMatches)()){let t=a().get(e,"handle.breadcrumb");if(!!t)for(let r of a().castArray(t).filter(a().isObject)){if(!("title"in r))continue;let t="pathname"in r&&a().isString(r.pathname)?r.pathname:e.pathname;n.push({title:r.title,pathname:t,id:e.id})}}for(let[e,r]of Object.entries(n)){let o=[r.id,r.pathname,e];t.push((0,i.jsx)(d.Link,{color:"gray",size:"2",to:r.pathname,children:r.title},o.join("_"))),r!==n.at(-1)&&(o.push("#connector"),t.push((0,i.jsx)(s.ChevronRightIcon,{className:f.connector},o.join("_"))))}return(0,i.jsx)(c.Flex,(0,o._)((0,r._)({align:"center",height:"8",gap:"1",px:"4"},e),{children:t}))}},96617:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsPuller:function(){return s}});var r=n("5872"),o=n("39934"),i=n("82516"),u=n("43897"),a=n("22496");let c=!1;u.$mountPoint.then(e=>{let{hooks:t}=e;t.hookOnce("pullUpReactInspector",async()=>{c=!0})});let s=()=>{let e=(0,o.useNavigate)(),t=(0,i.useThrowable)(u.$mountPoint),s=async()=>{e("/react");let{store:t}=await n.el("96617@660:705").then(n.bind(n,"22496"));if(t.backendVersion)a.bridge.send("startInspectingNative");else{let e=()=>{a.bridge.removeListener("operations",e),a.bridge.send("startInspectingNative")};a.bridge.addListener("operations",e)}};return(0,r.useEffect)(()=>{c&&s(),t.hooks.hook("pullUpReactInspector",s)},[]),null}},76471:function(e,t,n){"use strict";n.r(t),n.d(t,{ErrorRouteHandler:function(){return s}});var r=n("90247"),o=n("55709"),i=n("86834");n("5872");var u=n("39934"),a=n("83982");let c=e=>{let{error:t}=e,n=t instanceof Error?"".concat(t.name,": ").concat(t.message):"Unknown Error",r=t instanceof Error?t.stack:Object.prototype.toString.call(t);return(0,i.jsxs)(a.Box,{p:"4",children:[(0,i.jsx)(a.Heading,{as:"h4",mb:"4",children:(0,i.jsx)(a.Text,{as:"span",children:n})}),(0,i.jsx)(a.TextArea,{disabled:!0,style:{height:"50vh"},children:r})]})},s=e=>{let t=(0,u.useRouteError)();return(0,i.jsx)(c,(0,o._)((0,r._)({},e),{error:t}))}},54109:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return s}});var r=n("90247"),o=n("55709"),i=n("16170"),u=n("86834"),a=n("39934"),c=n("83982");let s=e=>{var{to:t,children:n}=e,s=(0,i._)(e,["to","children"]);return(0,u.jsx)(c.Link,(0,o._)((0,r._)({},s),{asChild:!0,children:(0,u.jsx)(a.Link,{to:t,children:n})}))}},80267:function(e,t,n){"use strict";n.r(t),n.d(t,{SelectLink:function(){return u}});var r=n("86834");n("5872");var o=n("83982"),i=n("39934");let u=e=>{let{items:t}=e,n=(0,i.useNavigate)(),u=(0,i.useLocation)(),a=t.find(e=>(0,i.matchPath)(e.to,u.pathname));return(0,r.jsxs)(o.Select.Root,{size:"1",value:null==a?void 0:a.to,onValueChange:n,children:[(0,r.jsx)(o.Select.Trigger,{}),(0,r.jsx)(o.Select.Content,{position:"popper",children:t.map(e=>{let{title:t,to:n}=e;return(0,r.jsx)(o.Select.Item,{value:n,children:t},n)})})]})}},65530:function(e,t,n){"use strict";n.r(t),n.d(t,{Theme:function(){return h}});var r=n("90247"),o=n("55709"),i=n("16170"),u=n("86834"),a=n("5872"),c=n("83982"),s=n("55058"),l=n("52493"),f=n.n(l);let d=e=>["inherit","light","dark"].includes(e),p=e=>{let{children:t}=e,{appearance:n}=(0,c.useThemeContext)();return(0,a.useEffect)(()=>{localStorage.setItem("__modern_js_devtools_appearance",n),"inherit"!==n&&(document.documentElement.classList.remove("dark","light"),document.documentElement.classList.add(n))},[n]),(0,u.jsx)(u.Fragment,{children:t})},h=e=>{var{appearance:t,children:n}=e,a=(0,i._)(e,["appearance","children"]);let l=t||f().castArray((0,s.getQuery)(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.Theme,(0,o._)((0,r._)({},a),{appearance:l,children:(0,u.jsx)(p,{children:n})}))}},74350:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n("39934"),o=e=>{let{params:t}=e;if(!t.toolkit||!t.type)return(0,r.redirect)("/404");if(!["framework","builder","bundler"].includes(t.toolkit))return(0,r.redirect)("/404");if(!["resolved","transformed"].includes(t.type))return(0,r.redirect)("/404");else return null}},30628:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},64981:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return d}});var r=n("86834");n("5872");var o=n("83982"),i=n("39934"),u=n("52493"),a=n.n(u),c=n("64671");let s=e=>{let{name:t,describe:n}=e,i=n.map(e=>(0,r.jsx)(o.Text,{style:{display:"block"},children:e},e));return(0,r.jsx)(o.Tooltip,{className:c.tooltip,side:"right",content:i,children:(0,r.jsx)(o.Select.Item,{value:t,children:(0,r.jsx)(o.Box,{children:a().startCase(t)})})},t)},l=[{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."]}],f=[{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."]}],d={breadcrumb:[{title:"Config"},{title:(0,r.jsx)(()=>{let e=(0,i.useLocation)(),t=(0,i.useNavigate)(),[n,u]=e.pathname.split("/").slice(2);return(0,r.jsxs)(o.Select.Root,{size:"1",value:n,onValueChange:e=>{t("/config/".concat(e,"/").concat(u))},children:[(0,r.jsx)(o.Select.Trigger,{children:n}),(0,r.jsx)(o.Select.Content,{children:l.map(e=>{let{name:t,describe:n}=e;return(0,r.jsx)(s,{name:t,describe:n},t)})})]})},{})},{title:(0,r.jsx)(()=>{let e=(0,i.useLocation)(),t=(0,i.useNavigate)(),[n,u]=e.pathname.split("/").slice(2);return(0,r.jsxs)(o.Select.Root,{size:"1",value:u,onValueChange:e=>{t("/config/".concat(n,"/").concat(e))},children:[(0,r.jsx)(o.Select.Trigger,{children:u}),(0,r.jsx)(o.Select.Content,{children:f.map(e=>{let{name:t,describe:n}=e;return(0,r.jsx)(s,{name:t,describe:n},t)})})]})},{})}]}},92563:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("39934"),o=n("55058"),i=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./builder/transformed");return(0,r.redirect)(n)}},53978:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},22359:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return i}});var r=n("86834"),o=n("80267");let i={breadcrumb:[{title:"Context"},{title:(0,r.jsx)(o.SelectLink,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},30383:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("39934"),o=n("55058"),i=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./builder");return(0,r.redirect)(n)}},8073:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},58237:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},93656:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Header Modifier"}}},92019:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return i}});var r=n("86834"),o=n("29214");let i={breadcrumb:{title:(0,r.jsx)(o.HiHomeModern,{}),pathname:"/overview"}}},65556:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=n("86834");n("49275");var o=n("5872"),i=n("39934"),u=n("83982"),a=n("29214"),c=n("42700"),s=n("31211"),l=n("43897"),f=n("65530"),d=n("44801"),p=n("96617");let h=e=>{let{tab:t}=e,n="";if("builtin"===t.view.type)n=t.view.url;else if("iframe"===t.view.type)n="/external/".concat(t.view.src);else throw Error('Invalid tab view of "'.concat(t.name,'".'));return(0,o.useEffect)(()=>{document.documentElement.classList.add("theme-register")},[]),(0,r.jsx)(u.Tooltip,{content:t.title,side:"right",children:(0,r.jsx)(i.NavLink,{to:n,className:s.tabButton,children:(0,r.jsx)(u.Flex,{justify:"center",align:"center",p:"1",className:s.tabButtonInner,children:(0,r.jsx)(u.Box,{height:"5",width:"5",asChild:!0,children:t.icon})})})})},v=()=>{let{appearance:e}=(0,u.useThemeContext)();return(0,r.jsx)(u.Tooltip,{content:"Appearance",side:"right",children:(0,r.jsx)(u.Box,{className:s.tabButton,onClick:()=>{(0,u.updateThemeAppearanceClass)("light"===e?"dark":"light")},children:(0,r.jsx)(u.Flex,{justify:"center",align:"center",p:"1",className:s.tabButtonInner,children:(0,r.jsx)(u.Box,{height:"5",width:"5",asChild:!0,children:"dark"===e?(0,r.jsx)(a.HiOutlineMoon,{}):(0,r.jsx)(a.HiOutlineSun,{})})})})})},m=()=>{let e=(0,c.useSnapshot)(l.$tabs);return(0,r.jsxs)(u.Flex,{direction:"column",shrink:"0",className:s.navigator,children:[e.map(e=>(0,r.jsx)(h,{tab:e},e.name)),(0,r.jsx)(u.Box,{grow:"1"}),(0,r.jsx)(v,{})]})};function g(){return(0,r.jsxs)(f.Theme,{className:s.wrapper,accentColor:"blue",panelBackground:"solid",children:[(0,r.jsx)(u.Box,{className:s.inner,children:(0,r.jsx)(u.Box,{className:s.innerRight,children:(0,r.jsx)(u.Box,{className:s.container,children:(0,r.jsx)(i.Outlet,{})})})}),(0,r.jsx)(u.ThemePanel,{defaultOpen:!1,style:{display:"none"}}),(0,r.jsx)(m,{}),(0,r.jsx)(d.Breadcrumbs,{className:s.breadcrumbs}),(0,r.jsx)(p.DevtoolsPuller,{})]})}},70853:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n("86834"),o=n("20421"),i=n("43897"),u=n("19512"),a=()=>((0,o.useUnmount)(async()=>{(await i.$mountPoint).remote.onFinishRender()}),(0,r.jsx)(u.Loading,{width:"100%",style:{height:"calc(100vh - var(--breadcrumb-height))"}}))},39134:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},99025:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Overview"}}},50512:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("39934"),o=n("55058"),i=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./overview");return(0,r.redirect)(n)}},47743:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},9845:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Pages"}}},41058:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return i}});var r=n("86834"),o=n("80267");let i={breadcrumb:[{title:"React"},{title:(0,r.jsx)(o.SelectLink,{items:[{to:"/react/components",title:"Components"},{to:"/react/profiler",title:"Profiler"}]})}]}},6521:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},67080:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("39934"),o=n("55058"),i=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./components");return(0,r.redirect)(n)}},22496:function(e,t,n){"use strict";n.r(t),n.d(t,{bridge:function(){return u},store:function(){return a},wallAgent:function(){return i}});var r=n("3570"),o=n("43897");let i=new(n("48463")).WallAgent;o.$mountPoint.then(e=>{i.bindRemote(e.remote,"sendReactDevtoolsData")});let u=(0,r.createBridge)(window.parent,i),a=(0,r.createStore)(u)},43897:function(e,t,n){"use strict";n.r(t),n.d(t,{$builder:function(){return x},$bundler:function(){return _},$definition:function(){return w},$dependencies:function(){return j},$framework:function(){return g},$mountPoint:function(){return h},$perf:function(){return E},$server:function(){return m},$tabs:function(){return y},VERSION:function(){return b}});var r=n("90247"),o=n("55709"),i=n("86834"),u=n("93549"),a=n("88739"),c=n("65872"),s=n("29214"),l=n("54201"),f=n("55058"),d=n("42700");let p=(0,f.stringifyParsedURL)({protocol:"https:"===location.protocol?"wss:":"ws:",host:location.host,pathname:"/__devtools/rpc"}),h=u.MessagePortChannel.link(window.parent,"channel:connect:client").then(async e=>{let t=(0,c.createHooks)();return{remote:(0,a.createBirpc)({async pullUpReactInspector(){await t.callHook("pullUpReactInspector")}},(0,o._)((0,r._)({},e.handlers),{timeout:500})),hooks:t}}),v=new window.WebSocket(p),m=u.WebSocketChannel.link(v).then(async e=>{let t=(0,c.createHooks)();return{remote:(0,a.createBirpc)({async refresh(){location.reload()},async updateFileSystemRoutes(e){await t.callHook("updateFileSystemRoutes",e)}},e),hooks:t}}),g=(0,d.proxy)({context:m.then(e=>{let{remote:t}=e;return t.getAppContext()}),config:{resolved:m.then(e=>{let{remote:t}=e;return t.getFrameworkConfig()}),transformed:m.then(e=>{let{remote:t}=e;return t.getTransformedFrameworkConfig()})}}),x=(0,d.proxy)({context:m.then(e=>{let{remote:t}=e;return t.getBuilderContext()}),config:{resolved:m.then(e=>{let{remote:t}=e;return t.getBuilderConfig()}),transformed:m.then(e=>{let{remote:t}=e;return t.getTransformedBuilderConfig()})}}),_=(0,d.proxy)({config:{resolved:m.then(e=>{let{remote:t}=e;return t.getBundlerConfigs()}),transformed:m.then(e=>{let{remote:t}=e;return t.getTransformedBundlerConfigs()})}}),y=(0,d.proxy)([{name:"overview",title:"Overview",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineHome,{})),view:{type:"builtin",url:"/overview"}},{name:"config",title:"Config",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineAdjustmentsHorizontal,{})),view:{type:"builtin",url:"/config"}},{name:"pages",title:"Pages",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineRectangleGroup,{})),view:{type:"builtin",url:"/pages"}},{name:"react",title:"React",icon:(0,d.ref)((0,i.jsx)(l.RiReactjsLine,{})),view:{type:"builtin",url:"/react"}},{name:"context",title:"Context",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineCube,{})),view:{type:"builtin",url:"/context"}},{name:"headers",title:"Header Modifier",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineAcademicCap,{})),view:{type:"builtin",url:"/headers"}}]),b="2.46.1",R=m.then(e=>{let{remote:t}=e;return t.getClientDefinition()}),w=(0,d.proxy)({name:R.then(e=>e.name),packages:R.then(e=>e.packages),assets:R.then(e=>e.assets),announcement:R.then(e=>e.announcement)}),j=(0,d.proxy)({}),E=(0,d.proxy)({compileDuration:m.then(e=>{let{remote:t}=e;return t.getCompileTimeCost()})})},73393:function(e,t,n){"use strict";n.r(t),n("86834"),n("5872")},86135:function(e,t,n){"use strict";n.r(t),n.d(t,{useThrowable:function(){return o}}),n("52493"),n("5872");let r=new WeakMap,o=e=>{if(!(e instanceof Promise))return e;if(r.has(e)){let t=r.get(e);if(!(t instanceof Error))return t;throw t}throw e.then(t=>r.set(e,t)).catch(t=>r.set(e,t)),e}},82516:function(e,t,n){"use strict";n.r(t);var r=n("73393");n.es(r,t);var o=n("86135");n.es(o,t)},29045:function(e){"use strict";e.exports={connector:"connector-_43720",link:"link-_26ee2"}},64671:function(e){"use strict";e.exports={tooltip:"tooltip-ece352"}},31211:function(e){"use strict";e.exports={breadcrumbs:"breadcrumbs-_6b38a",container:"container-_7aa7d","fading-mask":"fading-mask-d5651b",fadingMask:"fading-mask-d5651b",inner:"inner-e0e4a8","inner-right":"inner-right-c4d5b6",innerRight:"inner-right-c4d5b6",navigator:"navigator-bd780c","tab-button":"tab-button-_97258",tabButton:"tab-button-_97258","tab-button-inner":"tab-button-inner-_2887d",tabButtonInner:"tab-button-inner-_2887d",wrapper:"wrapper-_97d72"}},49275:function(e){}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["118","126","464","58","707","729","810"],function(){return t("18466"),t("79155"),t("65183"),t("24366"),t("76273")}),e.O()}]);
|
|
@@ -6,360 +6,360 @@
|
|
|
6
6
|
|
|
7
7
|
/*! react/jsx-runtime */
|
|
8
8
|
|
|
9
|
-
/*! @
|
|
9
|
+
/*! @radix-ui/themes */
|
|
10
10
|
|
|
11
|
-
/*! @
|
|
11
|
+
/*! @modern-js/runtime/router */
|
|
12
12
|
|
|
13
|
-
/*!
|
|
13
|
+
/*! ufo */
|
|
14
14
|
|
|
15
|
-
/*! @
|
|
15
|
+
/*! @modern-js/runtime-utils/parsed */
|
|
16
16
|
|
|
17
|
-
/*!
|
|
17
|
+
/*! @swc/helpers/_/_object_spread */
|
|
18
18
|
|
|
19
|
-
/*!
|
|
19
|
+
/*! @modern-js/runtime/router */
|
|
20
20
|
|
|
21
|
-
/*!
|
|
21
|
+
/*! ufo */
|
|
22
22
|
|
|
23
|
-
/*!
|
|
23
|
+
/*! @/components/ErrorFallback/ErrorFallback */
|
|
24
24
|
|
|
25
|
-
/*!
|
|
25
|
+
/*! ./core */
|
|
26
26
|
|
|
27
|
-
/*! @/
|
|
27
|
+
/*! @/utils/react-devtools */
|
|
28
28
|
|
|
29
|
-
/*!
|
|
29
|
+
/*! @swc/helpers/_/_object_spread_props */
|
|
30
30
|
|
|
31
31
|
/*! react/jsx-runtime */
|
|
32
32
|
|
|
33
|
-
/*! @modern-js/
|
|
33
|
+
/*! @modern-js/runtime/router */
|
|
34
|
+
|
|
35
|
+
/*! @modern-js/runtime-utils/browser */
|
|
34
36
|
|
|
35
37
|
/*! @modern-js/runtime-utils/router */
|
|
36
38
|
|
|
37
39
|
/*! @swc/helpers/_/_sliced_to_array */
|
|
38
40
|
|
|
39
|
-
/*! @swc/helpers/_/_object_spread_props */
|
|
40
|
-
|
|
41
41
|
/*! hoist-non-react-statics */
|
|
42
42
|
|
|
43
|
+
/*! @modern-js/runtime/router */
|
|
44
|
+
|
|
43
45
|
/*! @/components/ErrorFallback/ErrorFallback */
|
|
44
46
|
|
|
45
|
-
/*! @
|
|
47
|
+
/*! @modern-js/runtime/router */
|
|
46
48
|
|
|
47
|
-
/*!
|
|
49
|
+
/*! @/components/SelectLink */
|
|
48
50
|
|
|
49
|
-
/*!
|
|
51
|
+
/*! @modern-js/runtime/router */
|
|
50
52
|
|
|
51
|
-
/*!
|
|
53
|
+
/*! @swc/helpers/_/_object_spread */
|
|
52
54
|
|
|
53
|
-
/*! @swc/helpers/_/
|
|
55
|
+
/*! @swc/helpers/_/_object_spread */
|
|
54
56
|
|
|
55
|
-
/*!
|
|
57
|
+
/*! @swc/helpers/_/_sliced_to_array */
|
|
56
58
|
|
|
57
|
-
/*!
|
|
59
|
+
/*! @/entries/client/routes/react/state */
|
|
58
60
|
|
|
59
|
-
/*!
|
|
61
|
+
/*! @/styles/theme.scss */
|
|
60
62
|
|
|
61
|
-
/*!
|
|
63
|
+
/*! @modern-js/runtime/router */
|
|
62
64
|
|
|
63
|
-
/*! react
|
|
65
|
+
/*! react-use */
|
|
64
66
|
|
|
65
|
-
/*!
|
|
67
|
+
/*! @swc/helpers/_/_object_without_properties */
|
|
66
68
|
|
|
67
|
-
/*!
|
|
69
|
+
/*! @/components/ErrorFallback/ErrorFallback */
|
|
68
70
|
|
|
69
|
-
/*! @
|
|
71
|
+
/*! @modern-js/plugin */
|
|
70
72
|
|
|
71
|
-
/*!
|
|
73
|
+
/*! @swc/helpers/_/_to_consumable_array */
|
|
72
74
|
|
|
73
|
-
/*!
|
|
75
|
+
/*! valtio */
|
|
74
76
|
|
|
75
|
-
/*!
|
|
77
|
+
/*! ./hooks */
|
|
76
78
|
|
|
77
|
-
/*!
|
|
79
|
+
/*! ./hooks */
|
|
78
80
|
|
|
79
|
-
/*!
|
|
81
|
+
/*! @modern-js/devtools-kit */
|
|
80
82
|
|
|
81
|
-
/*!
|
|
83
|
+
/*! ../runtimeContext */
|
|
82
84
|
|
|
83
|
-
/*!
|
|
85
|
+
/*! ufo */
|
|
84
86
|
|
|
85
87
|
/*! @swc/helpers/_/_instanceof */
|
|
86
88
|
|
|
87
|
-
/*!
|
|
88
|
-
|
|
89
|
-
/*! ufo */
|
|
90
|
-
|
|
91
|
-
/*! react-router-dom */
|
|
89
|
+
/*! ./utils */
|
|
92
90
|
|
|
93
|
-
/*!
|
|
91
|
+
/*! @modern-js/runtime/router */
|
|
94
92
|
|
|
95
|
-
/*!
|
|
93
|
+
/*! ./PrefetchLink */
|
|
96
94
|
|
|
97
|
-
/*!
|
|
95
|
+
/*! @swc/helpers/_/_object_spread */
|
|
98
96
|
|
|
99
|
-
/*! @
|
|
97
|
+
/*! @swc/helpers/_/_async_to_generator */
|
|
100
98
|
|
|
101
|
-
/*!
|
|
99
|
+
/*! @swc/helpers/_/_object_spread_props */
|
|
102
100
|
|
|
103
|
-
/*! react */
|
|
101
|
+
/*! react/jsx-runtime */
|
|
104
102
|
|
|
105
|
-
/*!
|
|
103
|
+
/*! ../state */
|
|
106
104
|
|
|
107
|
-
/*!
|
|
105
|
+
/*! @/components/ErrorFallback/ErrorFallback */
|
|
108
106
|
|
|
109
|
-
/*! react */
|
|
107
|
+
/*! react-router-dom */
|
|
110
108
|
|
|
111
|
-
/*!
|
|
109
|
+
/*! @swc/helpers/_/_object_without_properties */
|
|
112
110
|
|
|
113
|
-
/*!
|
|
111
|
+
/*! @swc/helpers/_/_object_without_properties */
|
|
114
112
|
|
|
115
|
-
/*!
|
|
113
|
+
/*! hookable */
|
|
116
114
|
|
|
117
|
-
/*! @
|
|
115
|
+
/*! @modern-js/runtime/router */
|
|
118
116
|
|
|
119
117
|
/*! react/jsx-runtime */
|
|
120
118
|
|
|
121
|
-
/*!
|
|
119
|
+
/*! @modern-js/runtime/router */
|
|
122
120
|
|
|
123
121
|
/*! @modern-js/plugin */
|
|
124
122
|
|
|
125
123
|
/*! @swc/helpers/_/_object_spread */
|
|
126
124
|
|
|
127
|
-
/*!
|
|
128
|
-
|
|
129
|
-
/*! react-icons/ri */
|
|
125
|
+
/*! @modern-js/runtime/router */
|
|
130
126
|
|
|
131
127
|
/*! @swc/helpers/_/_object_spread_props */
|
|
132
128
|
|
|
133
|
-
/*!
|
|
129
|
+
/*! @swc/helpers/_/_ts_generator */
|
|
134
130
|
|
|
135
|
-
/*!
|
|
131
|
+
/*! ../runtimeContext */
|
|
136
132
|
|
|
137
133
|
/*! @swc/helpers/_/_sliced_to_array */
|
|
138
134
|
|
|
139
|
-
/*!
|
|
135
|
+
/*! ./nestedRoutes */
|
|
140
136
|
|
|
141
137
|
/*! @swc/helpers/_/_ts_generator */
|
|
142
138
|
|
|
143
139
|
/*! ./loader/loaderManager */
|
|
144
140
|
|
|
145
|
-
/*!
|
|
146
|
-
|
|
147
|
-
/*! react/jsx-runtime */
|
|
141
|
+
/*! @swc/helpers/_/_define_property */
|
|
148
142
|
|
|
149
|
-
/*!
|
|
143
|
+
/*! ../time */
|
|
150
144
|
|
|
151
|
-
/*!
|
|
145
|
+
/*! ./layout.module.scss */
|
|
152
146
|
|
|
153
147
|
/*! react/jsx-runtime */
|
|
154
148
|
|
|
155
149
|
/*! react */
|
|
156
150
|
|
|
157
|
-
/*!
|
|
151
|
+
/*! react-icons/hi2 */
|
|
158
152
|
|
|
159
|
-
/*!
|
|
153
|
+
/*! react/jsx-runtime */
|
|
160
154
|
|
|
161
|
-
/*!
|
|
155
|
+
/*! @swc/helpers/_/_sliced_to_array */
|
|
162
156
|
|
|
163
|
-
/*! @swc/helpers/_/
|
|
157
|
+
/*! @swc/helpers/_/_object_spread_props */
|
|
164
158
|
|
|
165
|
-
/*!
|
|
159
|
+
/*! ./layout.module.scss */
|
|
166
160
|
|
|
167
|
-
/*!
|
|
161
|
+
/*! @swc/helpers/_/_async_to_generator */
|
|
168
162
|
|
|
169
|
-
/*!
|
|
163
|
+
/*! @/components/Theme */
|
|
170
164
|
|
|
171
|
-
/*!
|
|
165
|
+
/*! ./DefaultNotFound */
|
|
172
166
|
|
|
173
|
-
/*!
|
|
167
|
+
/*! ./routeModule */
|
|
174
168
|
|
|
175
|
-
/*! @swc/helpers/_/
|
|
169
|
+
/*! @swc/helpers/_/_to_consumable_array */
|
|
176
170
|
|
|
177
|
-
/*!
|
|
171
|
+
/*! @/components/Breadcrumbs */
|
|
178
172
|
|
|
179
|
-
/*!
|
|
173
|
+
/*! @swc/helpers/_/_object_spread_props */
|
|
180
174
|
|
|
181
|
-
/*!
|
|
175
|
+
/*! @remix-run/router */
|
|
182
176
|
|
|
183
|
-
/*!
|
|
177
|
+
/*! @/components/SelectLink */
|
|
184
178
|
|
|
185
|
-
/*!
|
|
179
|
+
/*! ./compatible */
|
|
186
180
|
|
|
187
|
-
/*!
|
|
181
|
+
/*! valtio */
|
|
188
182
|
|
|
189
|
-
/*! @
|
|
183
|
+
/*! @modern-js/runtime-utils/router */
|
|
190
184
|
|
|
191
185
|
/*! react/jsx-runtime */
|
|
192
186
|
|
|
193
|
-
/*! @
|
|
194
|
-
|
|
195
|
-
/*! @swc/helpers/_/_object_spread */
|
|
187
|
+
/*! @radix-ui/themes */
|
|
196
188
|
|
|
197
|
-
/*!
|
|
189
|
+
/*! ./context */
|
|
198
190
|
|
|
199
|
-
/*!
|
|
191
|
+
/*! lodash */
|
|
200
192
|
|
|
201
|
-
/*! @
|
|
193
|
+
/*! @swc/helpers/_/_async_to_generator */
|
|
202
194
|
|
|
203
|
-
/*!
|
|
195
|
+
/*! ./plugin */
|
|
204
196
|
|
|
205
|
-
/*!
|
|
197
|
+
/*! react-devtools-inline/frontend */
|
|
206
198
|
|
|
207
|
-
/*!
|
|
199
|
+
/*! react */
|
|
208
200
|
|
|
209
|
-
/*!
|
|
201
|
+
/*! @/entries/client/routes/state */
|
|
210
202
|
|
|
211
|
-
/*!
|
|
203
|
+
/*! react/jsx-runtime */
|
|
212
204
|
|
|
213
|
-
/*! ./
|
|
205
|
+
/*! ./state */
|
|
214
206
|
|
|
215
|
-
/*!
|
|
207
|
+
/*! @modern-js/utils/universal/constants */
|
|
216
208
|
|
|
217
209
|
/*! react */
|
|
218
210
|
|
|
219
211
|
/*! react/jsx-runtime */
|
|
220
212
|
|
|
221
|
-
/*! @/utils/react-devtools */
|
|
222
|
-
|
|
223
213
|
/*! @swc/helpers/_/_instanceof */
|
|
224
214
|
|
|
225
215
|
/*! @swc/helpers/_/_object_spread_props */
|
|
226
216
|
|
|
227
|
-
/*! react/jsx-runtime */
|
|
228
|
-
|
|
229
217
|
/*! @swc/helpers/_/_to_consumable_array */
|
|
230
218
|
|
|
231
|
-
/*!
|
|
232
|
-
|
|
233
|
-
/*! @modern-js/runtime-utils/browser */
|
|
219
|
+
/*! @/components/ErrorFallback/ErrorFallback */
|
|
234
220
|
|
|
235
221
|
/*! @swc/helpers/_/_to_consumable_array */
|
|
236
222
|
|
|
237
|
-
/*!
|
|
238
|
-
|
|
239
|
-
/*! @/components/ErrorFallback/ErrorFallback */
|
|
223
|
+
/*! react */
|
|
240
224
|
|
|
241
|
-
/*!
|
|
225
|
+
/*! @/components/Devtools/Puller */
|
|
242
226
|
|
|
243
|
-
/*!
|
|
227
|
+
/*! react */
|
|
244
228
|
|
|
245
|
-
/*!
|
|
229
|
+
/*! react */
|
|
246
230
|
|
|
247
|
-
/*!
|
|
231
|
+
/*! ./Breadcrumbs.module.scss */
|
|
248
232
|
|
|
249
|
-
/*!
|
|
233
|
+
/*! react */
|
|
250
234
|
|
|
251
|
-
/*!
|
|
235
|
+
/*! react/jsx-runtime */
|
|
252
236
|
|
|
253
|
-
/*!
|
|
237
|
+
/*! @swc/helpers/_/_object_spread */
|
|
254
238
|
|
|
255
|
-
/*! @
|
|
239
|
+
/*! @swc/helpers/_/_ts_generator */
|
|
256
240
|
|
|
257
|
-
/*! react
|
|
241
|
+
/*! react */
|
|
258
242
|
|
|
259
|
-
/*!
|
|
243
|
+
/*! @radix-ui/react-icons */
|
|
260
244
|
|
|
261
|
-
/*!
|
|
245
|
+
/*! react/jsx-runtime */
|
|
262
246
|
|
|
263
247
|
/*! react */
|
|
264
248
|
|
|
265
249
|
/*! react/jsx-runtime */
|
|
266
250
|
|
|
267
|
-
/*!
|
|
251
|
+
/*! react-icons/hi2 */
|
|
268
252
|
|
|
269
|
-
/*!
|
|
253
|
+
/*! lodash */
|
|
270
254
|
|
|
271
|
-
/*!
|
|
255
|
+
/*! @swc/helpers/_/_object_spread */
|
|
272
256
|
|
|
273
|
-
/*! @modern-js/
|
|
257
|
+
/*! @modern-js/utils/universal/plugin-dag-sort */
|
|
258
|
+
|
|
259
|
+
/*! @modern-js/utils/universal/constants */
|
|
274
260
|
|
|
275
261
|
/*! ufo */
|
|
276
262
|
|
|
277
|
-
/*!
|
|
263
|
+
/*! react-router-dom */
|
|
278
264
|
|
|
279
|
-
/*!
|
|
265
|
+
/*! react/jsx-runtime */
|
|
280
266
|
|
|
281
|
-
/*!
|
|
267
|
+
/*! @/components/ErrorFallback/ErrorFallback */
|
|
282
268
|
|
|
283
|
-
/*!
|
|
269
|
+
/*! hoist-non-react-statics */
|
|
284
270
|
|
|
285
|
-
/*! @
|
|
271
|
+
/*! @radix-ui/themes */
|
|
286
272
|
|
|
287
|
-
/*!
|
|
273
|
+
/*! @/utils */
|
|
288
274
|
|
|
289
|
-
/*! react
|
|
275
|
+
/*! react */
|
|
290
276
|
|
|
291
|
-
/*!
|
|
277
|
+
/*! @modern-js/runtime-utils/remix-router */
|
|
292
278
|
|
|
293
|
-
/*!
|
|
279
|
+
/*! ../../core */
|
|
294
280
|
|
|
295
|
-
/*!
|
|
281
|
+
/*! react */
|
|
296
282
|
|
|
297
|
-
/*! react-
|
|
283
|
+
/*! react/jsx-runtime */
|
|
298
284
|
|
|
299
|
-
/*!
|
|
285
|
+
/*! @/components/Loading */
|
|
300
286
|
|
|
301
|
-
/*! @
|
|
287
|
+
/*! @radix-ui/themes */
|
|
302
288
|
|
|
303
|
-
/*!
|
|
289
|
+
/*! ./Link */
|
|
304
290
|
|
|
305
|
-
/*!
|
|
291
|
+
/*! @/entries/client/routes/react/state */
|
|
306
292
|
|
|
307
|
-
/*!
|
|
293
|
+
/*! @swc/helpers/_/_object_spread */
|
|
308
294
|
|
|
309
|
-
/*!
|
|
295
|
+
/*! ./plugin */
|
|
310
296
|
|
|
311
|
-
/*!
|
|
297
|
+
/*! ./state */
|
|
312
298
|
|
|
313
|
-
/*!
|
|
299
|
+
/*! react-icons/ri */
|
|
314
300
|
|
|
315
|
-
/*!
|
|
301
|
+
/*! ../../core */
|
|
316
302
|
|
|
317
|
-
/*!
|
|
303
|
+
/*! @radix-ui/themes */
|
|
304
|
+
|
|
305
|
+
/*! lodash */
|
|
318
306
|
|
|
319
307
|
/*! @swc/helpers/_/_ts_generator */
|
|
320
308
|
|
|
321
309
|
/*! invariant */
|
|
322
310
|
|
|
323
|
-
/*! @swc/helpers/_/_define_property */
|
|
324
|
-
|
|
325
|
-
/*! ../time */
|
|
326
|
-
|
|
327
311
|
/*! @modern-js/utils/universal/constants */
|
|
328
312
|
|
|
329
|
-
/*!
|
|
313
|
+
/*! @/components/ErrorFallback/ErrorFallback */
|
|
330
314
|
|
|
331
315
|
/*! react/jsx-runtime */
|
|
332
316
|
|
|
317
|
+
/*! @swc/helpers/_/_object_spread */
|
|
318
|
+
|
|
333
319
|
/*! react */
|
|
334
320
|
|
|
335
|
-
/*!
|
|
321
|
+
/*! lodash */
|
|
336
322
|
|
|
337
323
|
/*! react/jsx-runtime */
|
|
338
324
|
|
|
339
|
-
/*!
|
|
325
|
+
/*! ufo */
|
|
340
326
|
|
|
341
|
-
/*!
|
|
327
|
+
/*! ufo */
|
|
328
|
+
|
|
329
|
+
/*! ./DeferredDataScripts */
|
|
342
330
|
|
|
343
331
|
/*! @swc/helpers/_/_async_to_generator */
|
|
344
332
|
|
|
345
|
-
/*!
|
|
333
|
+
/*! @radix-ui/themes */
|
|
346
334
|
|
|
347
|
-
/*!
|
|
335
|
+
/*! birpc */
|
|
348
336
|
|
|
349
|
-
/*!
|
|
337
|
+
/*! @modern-js/runtime-utils/router */
|
|
350
338
|
|
|
351
|
-
/*!
|
|
339
|
+
/*! @swc/helpers/_/_object_spread_props */
|
|
340
|
+
|
|
341
|
+
/*! react */
|
|
352
342
|
|
|
353
343
|
/*! @swc/helpers/_/_object_spread */
|
|
354
344
|
|
|
355
|
-
/*!
|
|
345
|
+
/*! react/jsx-runtime */
|
|
356
346
|
|
|
357
|
-
/*!
|
|
347
|
+
/*! react/jsx-runtime */
|
|
358
348
|
|
|
359
349
|
/*! ./runtime */
|
|
360
350
|
|
|
361
|
-
/*!
|
|
351
|
+
/*! @swc/helpers/_/_object_without_properties */
|
|
352
|
+
|
|
353
|
+
/*! @swc/helpers/_/_object_spread_props */
|
|
354
|
+
|
|
355
|
+
/*! react/jsx-runtime */
|
|
356
|
+
|
|
357
|
+
/*! @modern-js/runtime/router */
|
|
362
358
|
|
|
363
359
|
/*! @swc/helpers/_/_object_without_properties */
|
|
364
360
|
|
|
365
|
-
/*!
|
|
361
|
+
/*! @swc/helpers/_/_object_spread */
|
|
362
|
+
|
|
363
|
+
/*! react-icons/hi2 */
|
|
364
|
+
|
|
365
|
+
/*! @radix-ui/themes */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/devtools-client",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240125170634",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.0.0"
|
|
6
6
|
},
|
|
@@ -56,16 +56,16 @@
|
|
|
56
56
|
"ufo": "^1.3.0",
|
|
57
57
|
"valtio": "^1.11.1",
|
|
58
58
|
"jest": "^29",
|
|
59
|
-
"@modern-js/app-tools": "0.0.0-nightly-
|
|
60
|
-
"@modern-js-app/eslint-config": "0.0.0-nightly-
|
|
61
|
-
"@modern-js/devtools-kit": "0.0.0-nightly-
|
|
62
|
-
"@modern-js/
|
|
63
|
-
"@modern-js/plugin-proxy": "0.0.0-nightly-
|
|
64
|
-
"@modern-js/tsconfig": "0.0.0-nightly-
|
|
65
|
-
"@modern-js/
|
|
66
|
-
"@modern-js/
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
59
|
+
"@modern-js/app-tools": "0.0.0-nightly-20240125170634",
|
|
60
|
+
"@modern-js-app/eslint-config": "0.0.0-nightly-20240125170634",
|
|
61
|
+
"@modern-js/devtools-kit": "0.0.0-nightly-20240125170634",
|
|
62
|
+
"@modern-js/runtime": "0.0.0-nightly-20240125170634",
|
|
63
|
+
"@modern-js/plugin-proxy": "0.0.0-nightly-20240125170634",
|
|
64
|
+
"@modern-js/tsconfig": "0.0.0-nightly-20240125170634",
|
|
65
|
+
"@modern-js/eslint-config": "0.0.0-nightly-20240125170634",
|
|
66
|
+
"@modern-js/types": "0.0.0-nightly-20240125170634",
|
|
67
|
+
"@scripts/jest-config": "0.0.0-nightly-20240125170634",
|
|
68
|
+
"@modern-js/utils": "0.0.0-nightly-20240125170634"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"reset": "npx rimraf ./**/node_modules",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see client.a8b8c91f.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["462"],{58266:function(e,t,n){"use strict";n.r(t),n.d(t,{bootstrap:function(){return R},createApp:function(){return b}});var r,o=n("73839"),i=n("64534"),u=n("90247"),a=n("16170"),c=n("44518"),s=n("2759"),l=n("86834"),f=n("5872"),d=n.n(f),p=n("13266"),h=n.n(p),v=n("63415"),m=n("59535"),g=n("4513"),x=n("13063"),_=new WeakMap,y=function(e){return{loaderManager:(0,x.createLoaderManager)({}),runner:e,isBrowser:!0,routeManifest:"undefined"!=typeof window&&window[v.ROUTE_MANIFEST]}},b=function(e){var t=e.plugins,n=e.props,r=g.runtime.clone();return r.usePlugin.apply(r,(0,c._)(t)),function(e){var t=r.init(),o=function(n){var r,o=d().createElement(e||d().Fragment,e?(0,u._)({},n):null,e?n.children:d().cloneElement(n.children,(0,u._)({},null===(r=n.children)||void 0===r?void 0:r.props,n))),i=(0,f.useContext)(m.RuntimeReactContext);return t.provide({element:o,props:(0,u._)({},n),context:i},{onLast:function(e){return e.element}})};e&&h()(o,e);var i=t.hoc({App:o},{onLast:function(e){var r=e.App;return h()(function(e){var o=e.context,i=(0,a._)(e,["context"]),c=o;!(null==c?void 0:c.runner)&&(c=y(t),t.init({context:c},{onLast:function(e){var t,n=e.context;return null==r?void 0:null===(t=r.init)||void 0===t?void 0:t.call(r,n)}}));var s=(0,u._)({},i,n);return(0,l.jsx)(m.RuntimeReactContext.Provider,{value:c,children:(0,l.jsx)(r,(0,u._)({},s))})},r)}});return _.set(i,t),i}};var R=(r=(0,o._)(function(e,t,n,r){var o,a,c,l,f,p,h,v,m,g,R,w,j,E,k;return(0,s._)(this,function(s){switch(s.label){case 0:var L;if(o=e,!(a=_.get(o))&&(o=b({plugins:[]})(o),a=_.get(o)),c=y(a),l=function(e){return a.init({context:e},{onLast:function(e){var t,n=e.context;return null==o?void 0:null===(t=o.init)||void 0===t?void 0:t.call(o,n)}})},!t)return[2,d().createElement(o,{context:c})];if(!("undefined"!=typeof window&&"nodejs"!==window.name))return[3,4];if(!("string"==typeof(L=t)||"undefined"!=typeof HTMLElement&&(0,i._)(L,HTMLElement)))return[3,2];return m=Object.keys(v=(null==(h=window._SSR_DATA)?void 0:null===(f=h.data)||void 0===f?void 0:f.loadersData)||{}).reduce(function(e,t){var n=v[t];return!1!==n.loading?e:(e[t]=n,e)},{}),Object.assign(c,(0,u._)({loaderManager:(0,x.createLoaderManager)(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((g=s.sent())&&(c.initialData=g),R="string"!=typeof t?t:document.getElementById(t||"root"),!r)throw Error("The `bootstrap` need provide `ReactDOM` parameter");return w=function(e){if(n)n.render(e);else if(r.createRoot)r.createRoot(R).render(e);else throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `createRoot` method")},j=function(e,t){if(!r.hydrateRoot)throw Error("The `bootstrap` `ReactDOM` parameter needs to provide the `hydrateRoot` method");r.hydrateRoot(R,e)},[2,a.client({App:o,context:c,ModernRender:w,ModernHydrate:j},{onLast:function(e){var t=e.App;w(d().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,x.createLoaderManager)({},{skipNonStatic:t.staticGenerate,skipStatic:!t.staticGenerate})}),E=function(e){if("undefined"!=typeof Response&&(0,i._)(e,Response)&&e.status>=300&&e.status<=399){var t=e.status,n=e.headers.get("Location")||"/",r=c.ssrContext;return r&&(r.res.statusCode=t,r.res.setHeader("Location",n),r.redirection=r.redirection||{},r.redirection.status=t,r.redirection.url=n),!0}return!1},[4,l(c)];case 5:if(k=s.sent(),!E(k))return c.initialData=k,[2,a.server({App:o,context:c})];s.label=6;case 6:return[2]}})}),function(e,t,n,o){return r.apply(this,arguments)})},25543:function(e,t,n){"use strict";n.r(t),n.d(t,{RuntimeReactContext:function(){return o.RuntimeReactContext}});var r=n("58266");n.es(r,t);var o=n("59535"),i=n("15413");n.es(i,t)},13063:function(e,t,n){"use strict";n.r(t),n.d(t,{createLoaderManager:function(){return h}});var r,o,i=n("73839"),u=n("64534"),a=n("70749"),c=n("44518"),s=n("2759"),l=n("24546"),f=n.n(l),d=function(){var e=new Map;return function(t){var n=e.get(t);if(n)return n;var r=JSON.stringify(t);return f()(r,"params should be not null value"),e.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(e){var t,n,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._)(this,function(e){return a||1===l?[2,n]:(l=1,g(),[2,n=o().then(function(e){f=e,d=null,l=2}).catch(function(e){d=e,f=null,l=3}).finally(function(){n=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(e){e(l,m())})};return{get result(){return m()},get promise(){return n},onChange:function(e){return h.add(e),function(){h.delete(e)}},load:v}},h=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipStatic,o=void 0!==r&&r,c=n.skipNonStatic,l=void 0!==c&&c,f=new Map,h=d();return{hasPendingLoaders:function(){var e=!0,t=!1,n=void 0;try{for(var r,o=f.values()[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var i=r.value.promise;if((0,u._)(i,Promise))return!0}}catch(e){t=!0,n=e}finally{try{!e&&null!=o.return&&o.return()}finally{if(t)throw n}}return!1},awaitPendingLoaders:(t=(0,i._)(function(){var e,t,n,r,o,i,c,l,d,p;return(0,s._)(this,function(s){switch(s.label){case 0:e=[],t=!0,n=!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)&&e.push([l,d])}catch(e){n=!0,r=e}finally{try{!t&&null!=o.return&&o.return()}finally{if(n)throw r}}return[4,Promise.all(e.map(function(e){return e[1].promise}))];case 1:return s.sent(),[2,e.reduce(function(e,t){var n=(0,a._)(t,2),r=n[0],o=n[1];return e[r]=o.result,e},{})]}})}),function(){return t.apply(this,arguments)}),add:function(t,n){var r=h(n.params),i=f.get(r),u=n._cache;if(!i||!1===u){var a=l&&!n.static,c=o&&n.static;i=p(r,void 0!==e[r]?e[r]:{data:n.initialData},t,a||c),f.set(r,i)}return r},get:function(e){return f.get(e)}}}},4513:function(e,t,n){"use strict";n.r(t),n.d(t,{runtime:function(){return l}});var r=n("15413"),o=(0,r.createPipeline)(),i=(0,r.createPipeline)(),u=(0,r.createAsyncPipeline)(),a=(0,r.createAsyncPipeline)(),c=(0,r.createAsyncPipeline)(),s={hoc:o,provide:i,client:u,server:a,init:c,pickContext:(0,r.createPipeline)()},l=(0,r.createManager)(s);l.createPlugin},46606:function(e,t,n){"use strict";n.r(t),n.d(t,{bootstrap:function(){return r.bootstrap},createApp:function(){return r.createApp}});var r=n("25543")},39934:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.default}});var r=n("90979");n.es(r,t)},47534:function(e,t,n){"use strict";n.r(t),n.d(t,{DefaultNotFound:function(){return o}});var r=n("86834"),o=function(){return(0,r.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})}},21446:function(e,t,n){"use strict";function r(){return null}n.r(t),n.d(t,{default:function(){return r}})},85371:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return b},NavLink:function(){return R}});var r=n("73839"),o=n("90247"),i=n("16170"),u=n("70749"),a=n("2759"),c=n("86834"),s=n("5872"),l=n.n(s),f=n("78771"),d=n("25543");function p(e,t){return function(n){null==e||e(n),!n.defaultPrevented&&t(n)}}var h=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function v(){return(v=(0,r._)(function(e,t){var r,o;return(0,a._)(this,function(i){switch(i.label){case 0:if(!(r=e.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(e){return null===n.e||void 0===n.e?void 0:n.e(String(e))}))];case 2:return i.sent(),[3,4];case 3:return console.error(i.sent()),[3,4];case 4:return[2]}})})).apply(this,arguments)}var m=function(e,t){var n=window.location,r=n.protocol,o=n.host,i=new URL(e,"".concat(r,"//").concat(o));return i.searchParams.append("__loader",t),i.searchParams.append("__ssrDirect","true"),i},g=function(e,t,n){var r,o=e.id;return r=m("/"===n?t:"".concat(n).concat(t),o).toString(),(0,c.jsx)("link",{rel:"prefetch",as:"fetch",href:r},r)},x=function(e){var t=e.path,n=t.pathname,r=(0,s.useContext)(d.RuntimeReactContext),o=r.routeManifest,i=r.routes,u=(o||{}).routeAssets,a=Array.isArray(i)?(0,f.matchRoutes)(i,n):[];return(Array.isArray(a)&&u&&(null==a||a.forEach(function(e){return function(e,t){return v.apply(this,arguments)}(e.route,u)})),window._SSR_DATA)?(0,c.jsx)(_,{matches:a,path:t,routeManifest:o}):null},_=function(e){var t=e.matches,n=e.path,r=e.routeManifest,o=n.pathname,i=n.search,u=n.hash,a=(0,f.useMatches)(),l=(0,f.useHref)("/"),d=(0,s.useMemo)(function(){return null==t?void 0:t.filter(function(e,t){if(!e.route.loader||"function"!=typeof e.route.loader||0===e.route.loader.length)return!1;if(e.route.shouldRevalidate){var n,r=new URL(location.pathname+location.search+location.hash,window.origin),c=new URL(o+i+u,window.origin),s=e.route.shouldRevalidate({currentUrl:r,currentParams:(null===(n=a[0])||void 0===n?void 0:n.params)||{},nextUrl:c,nextParams:e.params,defaultShouldRevalidate:!0});if("boolean"==typeof s)return s}var l=a[t];return!!(!l||l.id!==e.route.id||l.pathname!==e.pathname||l.pathname.endsWith("*")&&l.params["*"]!==e.params["*"])||!1}).map(function(e){return g(e.route,o,l)})},[t,o,r]);return(0,c.jsx)(c.Fragment,{children:d})},y=function(e){return l().forwardRef(function(t,r){var a,s,d,v,m,g,_,y,b,R,w,j,E,k,L,S=t.to,A=t.prefetch,C=(0,i._)(t,["to","prefetch"]),M="string"==typeof S&&h.test(S);var O=(0,u._)((a=void 0===A?"none":A,s=C,v=(d=(0,u._)(l().useState(!1),2))[0],m=d[1],_=(g=(0,u._)(l().useState(!1),2))[0],y=g[1],b=s.onFocus,R=s.onBlur,w=s.onMouseEnter,j=s.onMouseLeave,E=s.onTouchStart,l().useEffect(function(){"render"===a&&y(!0)},[a]),k=function(){"intent"===a&&m(!0)},L=function(){"intent"===a&&(m(!1),y(!1))},l().useEffect(function(){if(v){var e=setTimeout(function(){y(!0)},100);return function(){clearTimeout(e)}}},[v]),[_,{onFocus:p(b,k),onBlur:p(R,L),onMouseEnter:p(w,k),onMouseLeave:p(j,L),onTouchStart:p(E,k)}]),2),P=O[0],N=O[1],T=(0,f.useResolvedPath)(S);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,(0,o._)({ref:r,to:S},C,N)),P&&n.e&&!M?(0,c.jsx)(x,{path:T}):null]})})},b=y(f.Link);b.displayName="Link";var R=y(f.NavLink);R.displayName="NavLink"},68705:function(e,t,n){"use strict";n.r(t),n.d(t,{modifyRoutes:function(){return r}});var r=(0,n("15413").createWaterfall)()},90979:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return o.Link},NavLink:function(){return o.NavLink},Outlet:function(){return u.Outlet},createShouldRevalidate:function(){return i.createShouldRevalidate},default:function(){return a},handleRouteModule:function(){return i.handleRouteModule},handleRouteModuleError:function(){return i.handleRouteModuleError},matchPath:function(){return u.matchPath},matchRoutes:function(){return u.matchRoutes},redirect:function(){return u.redirect},useLocation:function(){return u.useLocation},useMatches:function(){return u.useMatches},useNavigate:function(){return u.useNavigate},useParams:function(){return u.useParams},useRouteError:function(){return u.useRouteError}});var r=n("29552"),o=n("85371"),i=n("83366"),u=n("78771"),a=r.routerPlugin},29552:function(e,t,n){"use strict";n.r(t),n.d(t,{routerPlugin:function(){return g}});var r=n("90247"),o=n("55709"),i=n("44518"),u=n("86834"),a=n("5872"),c=n("78771"),s=n("13266"),l=n.n(s),f=n("89736"),d=n("25543"),p=n("68705"),h=n("78923"),v={routes:[]},m=!0,g=function(e){var t=e.serverBase,n=void 0===t?[]:t,s=e.supportHtml5History,m=void 0===s||s,g=e.basename,x=void 0===g?"":g,_=e.routesConfig,y=e.createRoutes,b=[];return v=_,window._SERVER_DATA=(0,f.parsedJSONFromElement)("__MODERN_SERVER_DATA__"),{name:"@modern-js/plugin-router",registerHook:{modifyRoutes:p.modifyRoutes},setup:function(e){return{init:function(e,t){var n=e.context;return n.router={useMatches:c.useMatches,useLocation:c.useLocation},Object.defineProperty(n,"routes",{get:function(){return b}}),t({context:n})},hoc:function(t,s){var f,p=t.App;if(!v&&!y)return s({App:p});var g=(f=function(t){var u,s,l=(null===(s=window._SERVER_DATA)||void 0===s?void 0:s.router.baseUrl)||(u=location.pathname,n.find(function(e){return 0===u.search(e)})||"/"),f="/"===l?(0,h.urlJoin)(l,x):l,p=window._ROUTER_DATA,g=(0,a.useContext)(d.RuntimeReactContext),_=g.unstable_getBlockNavState;return(0,a.useMemo)(function(){(null==p?void 0:p.errors)&&(p=(0,o._)((0,r._)({},p),{errors:(0,h.deserializeErrors)(p.errors)})),b=y?y():(0,c.createRoutesFromElements)((0,h.renderRoutes)({routesConfig:v,props:t})),b=e.useHookRunners().modifyRoutes(b);var n=m?(0,c.createBrowserRouter)(b,{basename:f,hydrationData:p}):(0,c.createHashRouter)(b,{basename:f,hydrationData:p}),u=n.subscribe;return n.subscribe=function(e){return u(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!(_&&_()))return e.apply(void 0,(0,i._)(n))})},Object.defineProperty(g,"remixRouter",{get:function(){return n},configurable:!0}),n},[v,t,f,p,_])},function(e){var t=f(e);return(0,u.jsx)(p,(0,o._)((0,r._)({},e),{children:(0,u.jsx)(c.RouterProvider,{router:t})}))});return(p&&(g=l()(g,p)),null==_?void 0:_.globalApp)?s({App:l()(g,_.globalApp)}):s({App:g})},pickContext:function(e,t){var n=e.context,i=e.pickedContext,u=n.remixRouter;if(!u)return t({context:n,pickedContext:i});var a={navigate:u.navigate,get location(){return u.state.location}};return t({context:n,pickedContext:(0,o._)((0,r._)({},i),{router:a})})}}}}}},83366:function(e,t,n){"use strict";n.r(t),n.d(t,{createShouldRevalidate:function(){return o},handleRouteModule:function(){return i},handleRouteModuleError:function(){return u}});var r=n("63415"),o=function(e){return function(t){var n,o,i=null===(o=window)||void 0===o?void 0:null===(n=o[r.ROUTE_MODULES])||void 0===n?void 0:n[e];return i&&"function"==typeof i.shouldRevalidate?i.shouldRevalidate(t):t.defaultShouldRevalidate}},i=function(e,t){return"undefined"!=typeof document&&(window[r.ROUTE_MODULES][t]=e),e},u=function(e){return console.error(e),null}},78923:function(e,t,n){"use strict";n.r(t),n.d(t,{deserializeErrors:function(){return h},renderRoutes:function(){return d},urlJoin:function(){return p}});var r=n("90247"),o=n("16170"),i=n("70749"),u=n("86834"),a=n("78771"),c=n("69444"),s=n("48747"),l=n("47534"),f=n("21446");function d(e){var t=e.routesConfig,n=e.props,i=e.ssrMode,c=e.reporter;if(!t)return null;var d=t.routes,p=t.globalApp;return d?function(e,t){var n=t.globalApp,i=t.ssrMode,c=t.props,d=t.reporter,p=function(e){var t=e.Component,i=(0,o._)(e,["Component"]);return n?(0,u.jsx)(n,(0,r._)({Component:t},i)):(0,u.jsx)(t,(0,r._)({},i))},h=[],v=!0,m=!1,g=void 0;try{for(var x,_=e[Symbol.iterator]();!(v=(x=_.next()).done);v=!0){var y=x.value;if("nested"===y.type){var b=(0,s.renderNestedRoute)(y,{DeferredDataComponent:"stream"===i?f.default:void 0,props:c,reporter:d});h.push(b)}else{var R=(0,u.jsx)(a.Route,{path:y.path,element:(0,u.jsx)(p,{Component:y.component})},y.path);h.push(R)}}}catch(e){m=!0,g=e}finally{try{!v&&null!=_.return&&_.return()}finally{if(m)throw g}}return h.push((0,u.jsx)(a.Route,{path:"*",element:(0,u.jsx)(l.DefaultNotFound,{})},"*")),h}(d,{globalApp:p,ssrMode:i,props:n,reporter:c}):null}var p=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=RegExp("".concat("/","{1,}"),"g");return function(e){var t=e;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(e){if(!e)return null;var t=Object.entries(e),n={},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)n[f]=new c.UNSAFE_ErrorResponseImpl(d.status,d.statusText,d.data,!0===d.internal);else if(d&&"Error"===d.__type){var p=Error(d.message);p.stack=d.stack,n[f]=p}else n[f]=d}}catch(e){o=!0,u=e}finally{try{!r&&null!=s.return&&s.return()}finally{if(o)throw u}}return n}},59535:function(e,t,n){"use strict";n.r(t),n.d(t,{RuntimeReactContext:function(){return o}});var r=n("5872"),o=(0,r.createContext)({});(0,r.createContext)({})},15413:function(e,t,n){"use strict";n.r(t),n.d(t,{createAsyncPipeline:function(){return d},createManager:function(){return N},createPipeline:function(){return f},createWaterfall:function(){return v}});var r=n("18360"),o=n("90247"),i=n("44518"),u=n("55709"),a=n("76492"),c=function(e){var t=function(n,r){return e(n,r,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return t(n+1,e)})};return{start:function(e){return t(0,e)},dispatch:t}},s=Symbol.for("MODERN_PIPELINE"),l=function(e){if("function"==typeof e)return e;if(e&&"function"==typeof e.middleware)return e.middleware;throw Error("".concat(e," is not a Middleware"))},f=function(){var e,t=[],n=function(e){return c(function(n,r,o){if(n>=t.length){if(e)return e(r);throw Error("Expect returning a value, but all middlewares just calling next()")}return t[n](r,o)})},o=n(),u=function(e,t){var r;return((r=t)?n(null==r?void 0:r.onLast):o).start(e)},a=(e={},(0,r._)(e,s,!0),(0,r._)(e,"use",function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.push.apply(t,(0,i._)(n.map(l))),a}),(0,r._)(e,"run",u),(0,r._)(e,"middleware",function(e,t){return u(e,{onLast:t})}),e);return a},d=function(){var e=f();return(0,o._)({},e)},p=Symbol.for("MODERN_WATERFALL"),h=function(e){if("function"==typeof e)return e;if(e&&"function"==typeof e.middleware)return e.middleware;throw Error("".concat(e," is not a Brook or { brook: Brook }"))},v=function(){var e=f(),t=(0,u._)((0,o._)({},e),(0,r._)({use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(h).map(m))),t},run:function(t,n){return e.run(t,(0,u._)((0,o._)({},n),{onLast:function(e){return e}}))},middleware:function(t){return e.run(t,{onLast:function(e){return e}})}},p,!0));return t},m=function(e){return function(t,n){return n(e(t))}},g=Symbol.for("MODERN_ASYNC_WATERFALL"),x=function(e){if("function"==typeof e)return e;if(e&&"function"==typeof e.middleware)return e.middleware;throw Error("".concat(e," is not a AsyncBrook or { brook: AsyncBrook }"))},_=function(){var e=d(),t=(0,u._)((0,o._)({},e),(0,r._)({use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(x).map(y))),t},run:function(t,n){return e.run(t,(0,u._)((0,o._)({},n),{onLast:function(e){return e}}))},middleware:function(t){return e.run(t,{onLast:function(e){return e}})}},g,!0));return t},y=function(e){return function(t,n){return Promise.resolve(e(t)).then(function(e){return n(e)})}},b=Symbol.for("MODERN_WORKFLOW"),R=function(){var e=f(),t=(0,u._)((0,o._)({},e),(0,r._)({use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(w))),t},run:function(t){return e.run(t,{onLast:function(){return[]}}).filter(Boolean)}},b,!0));return t},w=function(e){return function(t,n){return[e(t)].concat((0,i._)(n(t)))}},j=Symbol.for("MODERN_PARALLEL_WORKFLOW"),E=function(){var e=f(),t=(0,u._)((0,o._)({},e),(0,r._)({run:function(t){return Promise.all(e.run(t,{onLast:function(){return[]}})).then(function(e){return e.filter(Boolean)})},use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(k))),t}},j,!0));return t},k=function(e){return function(t,n){return[e(t)].concat((0,i._)(n(t)))}},L=Symbol.for("MODERN_ASYNC_WORKFLOW"),S=function(){var e=d(),t=(0,u._)((0,o._)({},e),(0,r._)({use:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.use.apply(e,(0,i._)(r.map(A))),t},run:function(t){var n,r=e.run(t,{onLast:function(){return[]}});return(n=r)&&"function"==typeof n.then?r.then(function(e){return e.filter(Boolean)}):r.filter(Boolean)}},L,!0));return t},A=function(e){return function(t,n){return Promise.resolve(e(t)).then(function(e){return Promise.resolve(n(t)).then(function(t){return[e].concat((0,i._)(t))})})}},C=function(e){},M=function(e){return null!==e&&"object"==typeof e},O="SYNC_PLUGIN_SYMBOL",P={name:"untitled",pre:[],post:[],rivals:[],required:[],usePlugins:[],registerHook:{}},N=function(e,t){var n,r=0,i=(0,o._)({},e),c=function(){return n},s=function(e){i=(0,o._)({},e,i)},l=function(e){var t,n;return M(e)&&(t=e,n=O,t.hasOwnProperty(n))&&e[O]===O},f=(0,u._)((0,o._)({},t),{useHookRunners:c}),d=function(e){var t=[],p=function(e){var n,r;if(n=t,r=e,!n.some(function(e){return e.name===r.name}))t.push((0,o._)({},e))},h=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.forEach(function(e){if(l(e))p(e);else if("function"==typeof e){var t=e();p(v(t.setup,t))}else M(e)&&p(v(e.setup,e))}),m},v=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(null===(e=n.usePlugins)||void 0===e?void 0:e.length)&&n.usePlugins.forEach(function(e){h(v(e.setup,e))}),n.registerHook&&s(n.registerHook),(0,u._)((0,o._)((0,u._)((0,o._)({},P),{name:"No.".concat(r++," plugin")}),n),{SYNC_PLUGIN_SYMBOL:O,setup:t})},m={createPlugin:v,isPlugin:l,usePlugin:h,init:function(){var r,u=(r=t,(0,a.pluginDagSort)(r.slice())),c=(0,o._)({},f,e);return C(u),n=T(u.map(function(e){return e.setup(c)}),i)},clear:function(){t=[]},run:function(e){return e()},registerHook:s,useRunner:c,clone:d};return m};return d()},T=function(e,t){var n={},r=D(t);if(t){var i=function(t){e.forEach(function(e){(null==e?void 0:e[t])&&r[t].use(e[t])}),n[t]=function(e,n){return r[t].run(e,(0,o._)({},n))}};for(var u in r)i(u)}return n},B=function(e){var t,n,r,o,i,u;if(null==(t=e)?void 0:t[p])return v();if(null==(n=e)?void 0:n[g])return _();if(null==(r=e)?void 0:r[b])return R();if(null==(o=e)?void 0:o[L])return S();if(null==(i=e)?void 0:i[j])return E();if(null==(u=e)?void 0:u[s])return f();throw Error("Unknown hook: ".concat(e))},D=function(e){if(!e)return e;var t={};for(var n in e)t[n]=B(e[n]);return t}},48747:function(e,t,n){"use strict";n.r(t);var r=n("8921");n.es(r,t)},8921:function(e,t,n){"use strict";n.r(t),n.d(t,{renderNestedRoute:function(){return d}});var r=n("73839"),o=n("90247"),i=n("55709"),u=n("2759"),a=n("86834"),c=n("5872"),s=n("3369"),l=n("63415"),f=n("67791"),d=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=e.children,v=e.index,m=e.id,g=e.component,x=e.isRoot,_=e.lazyImport,y=e.config,b=e.handle,R=n.parent,w=n.DeferredDataComponent,j=n.props,E=void 0===j?{}:j,k=n.reporter,L={caseSensitive:e.caseSensitive,path:e.path,id:e.id,loader:function(e,t){var n,o=e.loader;if(!o)return function(){return"function"==typeof e.lazyImport&&e.lazyImport(),null};return n=(0,r._)(function(n){var r,i,a;return(0,u._)(this,function(u){switch(u.label){case 0:return"function"==typeof e.lazyImport&&e.lazyImport(),r=(0,f.time)(),[4,o(n)];case 1:return i=u.sent(),a=r(),"undefined"==typeof document&&t&&(null==t||t.reportTiming("".concat(l.LOADER_REPORTER_NAME,"-").concat(e.id),a)),[2,i]}})}),function(e){return n.apply(this,arguments)}}(e,k),action:e.action,hasErrorBoundary:e.hasErrorBoundary,shouldRevalidate:e.shouldRevalidate,handle:(0,o._)({},b,"object"==typeof y?null==y?void 0:y.handle:{}),index:e.index,element:e.element,errorElement:e.errorElement};if(e.error){var S=(0,a.jsx)(e.error,{});L.errorElement=S}if(g){if((null==R?void 0:R.loading)&&_){var A=R.loading;t=p(g)?(0,a.jsx)(g,{fallback:(0,a.jsx)(A,{})}):(0,a.jsx)(c.Suspense,{fallback:(0,a.jsx)(A,{}),children:(0,a.jsx)(g,{})})}else t=p(g)&&_?(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})]}):_?(0,a.jsx)(c.Suspense,{fallback:null,children:(0,a.jsx)(g,{})}):(0,a.jsx)(g,{})}else e.loading=null==R?void 0:R.loading,L.element=(0,a.jsx)(s.Outlet,{});t&&(L.element=t);var C=null==h?void 0:h.map(function(t){return d(t,{parent:e,reporter:k})});return v?(0,a.jsx)(s.Route,(0,i._)((0,o._)({},L),{index:!0}),m):(0,a.jsx)(s.Route,(0,i._)((0,o._)({},L),{index:!1,children:C}),m)};function p(e){return e&&"Loadable"===e.displayName&&e.preload&&"function"==typeof e.preload}},89736:function(e,t,n){"use strict";n.r(t),n.d(t,{parsedJSONFromElement:function(){return r}});var r=function(e){var t=document.querySelectorAll("#".concat(e));if(0!==t.length){var n=t[t.length-1];if(n)try{return JSON.parse((null==n?void 0:n.textContent)||"")}catch(t){console.error("parse ".concat(e," error"),t)}}}},69444:function(e,t,n){"use strict";n.r(t);var r=n("75078");n.es(r,t)},78771:function(e,t,n){"use strict";n.r(t);var r=n("3369");n.es(r,t)},67791:function(e,t,n){"use strict";n.r(t),n.d(t,{time:function(){return u}});var r=n("70749");function o(e){var t=.001*new Date().getTime(),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]}var i=function(e){var t=(0,r._)(o(e),2);return 1e3*t[0]+t[1]/1e6},u=function(){var e=o();return function(){return i(e)}}},63415:function(e,t,n){"use strict";n.r(t),n.d(t,{LOADER_REPORTER_NAME:function(){return i},ROUTE_MANIFEST:function(){return r},ROUTE_MODULES:function(){return o}});var r="_MODERNJS_ROUTE_MANIFEST",o="_routeModules",i="server-loader"},76492:function(e,t,n){"use strict";n.r(t),n.d(t,{pluginDagSort:function(){return r}});var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"pre",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"post",o=function(n){var r=e.find(function(e){return"string"==typeof n?e[t]===n:e[t]===n[t]});if(!r)throw Error("plugin ".concat(n," not existed"));return r},i=[];e.forEach(function(u){var a,c;null===(a=u[n])||void 0===a||a.forEach(function(n){e.find(function(e){return e.name===n})&&i.push([o(n)[t],o(u)[t]])}),null===(c=u[r])||void 0===c||c.forEach(function(n){e.find(function(e){return e.name===n})&&i.push([o(u)[t],o(n)[t]])})});for(var u=e.filter(function(e){return!i.find(function(n){return n[1]===e[t]})}),a=[];u.length;)!function(){var n=u.shift();a.push(o(n)),i=i.filter(function(e){return e[0]!==o(n)[t]}),u=e.filter(function(e){return!a.find(function(n){return n[t]===e[t]})}).filter(function(e){return!i.find(function(n){return n[1]===e[t]})})}();if(i.length){var c={};throw i.forEach(function(e){c[e[0]]=!0,c[e[1]]=!0}),Error("plugins dependencies has loop: ".concat(Object.keys(c).join(",")))}return a}},44801:function(e,t,n){"use strict";n.r(t),n.d(t,{Breadcrumbs:function(){return p}});var r=n("90247"),o=n("55709"),i=n("86834");n("5872");var u=n("52493"),a=n.n(u),c=n("83982"),s=n("60441"),l=n("39934"),f=n("29045"),d=n("54109");let p=e=>{let t=[],n=[];for(let e of(0,l.useMatches)()){let t=a().get(e,"handle.breadcrumb");if(!!t)for(let r of a().castArray(t).filter(a().isObject)){if(!("title"in r))continue;let t="pathname"in r&&a().isString(r.pathname)?r.pathname:e.pathname;n.push({title:r.title,pathname:t,id:e.id})}}for(let[e,r]of Object.entries(n)){let o=[r.id,r.pathname,e];t.push((0,i.jsx)(d.Link,{color:"gray",size:"2",to:r.pathname,children:r.title},o.join("_"))),r!==n.at(-1)&&(o.push("#connector"),t.push((0,i.jsx)(s.ChevronRightIcon,{className:f.connector},o.join("_"))))}return(0,i.jsx)(c.Flex,(0,o._)((0,r._)({align:"center",height:"8",gap:"1",px:"4"},e),{children:t}))}},96617:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsPuller:function(){return s}});var r=n("5872"),o=n("39934"),i=n("82516"),u=n("43897"),a=n("22496");let c=!1;u.$mountPoint.then(e=>{let{hooks:t}=e;t.hookOnce("pullUpReactInspector",async()=>{c=!0})});let s=()=>{let e=(0,o.useNavigate)(),t=(0,i.useThrowable)(u.$mountPoint),s=async()=>{e("/react");let{store:t}=await n.el("96617@660:705").then(n.bind(n,"22496"));if(t.backendVersion)a.bridge.send("startInspectingNative");else{let e=()=>{a.bridge.removeListener("operations",e),a.bridge.send("startInspectingNative")};a.bridge.addListener("operations",e)}};return(0,r.useEffect)(()=>{c&&s(),t.hooks.hook("pullUpReactInspector",s)},[]),null}},76471:function(e,t,n){"use strict";n.r(t),n.d(t,{ErrorRouteHandler:function(){return s}});var r=n("90247"),o=n("55709"),i=n("86834");n("5872");var u=n("39934"),a=n("83982");let c=e=>{let{error:t}=e,n=t instanceof Error?"".concat(t.name,": ").concat(t.message):"Unknown Error",r=t instanceof Error?t.stack:Object.prototype.toString.call(t);return(0,i.jsxs)(a.Box,{p:"4",children:[(0,i.jsx)(a.Heading,{as:"h4",mb:"4",children:(0,i.jsx)(a.Text,{as:"span",children:n})}),(0,i.jsx)(a.TextArea,{disabled:!0,style:{height:"50vh"},children:r})]})},s=e=>{let t=(0,u.useRouteError)();return(0,i.jsx)(c,(0,o._)((0,r._)({},e),{error:t}))}},54109:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return s}});var r=n("90247"),o=n("55709"),i=n("16170"),u=n("86834"),a=n("39934"),c=n("83982");let s=e=>{var{to:t,children:n}=e,s=(0,i._)(e,["to","children"]);return(0,u.jsx)(c.Link,(0,o._)((0,r._)({},s),{asChild:!0,children:(0,u.jsx)(a.Link,{to:t,children:n})}))}},80267:function(e,t,n){"use strict";n.r(t),n.d(t,{SelectLink:function(){return u}});var r=n("86834");n("5872");var o=n("83982"),i=n("39934");let u=e=>{let{items:t}=e,n=(0,i.useNavigate)(),u=(0,i.useLocation)(),a=t.find(e=>(0,i.matchPath)(e.to,u.pathname));return(0,r.jsxs)(o.Select.Root,{size:"1",value:null==a?void 0:a.to,onValueChange:n,children:[(0,r.jsx)(o.Select.Trigger,{}),(0,r.jsx)(o.Select.Content,{position:"popper",children:t.map(e=>{let{title:t,to:n}=e;return(0,r.jsx)(o.Select.Item,{value:n,children:t},n)})})]})}},65530:function(e,t,n){"use strict";n.r(t),n.d(t,{Theme:function(){return h}});var r=n("90247"),o=n("55709"),i=n("16170"),u=n("86834"),a=n("5872"),c=n("83982"),s=n("55058"),l=n("52493"),f=n.n(l);let d=e=>["inherit","light","dark"].includes(e),p=e=>{let{children:t}=e,{appearance:n}=(0,c.useThemeContext)();return(0,a.useEffect)(()=>{localStorage.setItem("__modern_js_devtools_appearance",n),"inherit"!==n&&(document.documentElement.classList.remove("dark","light"),document.documentElement.classList.add(n))},[n]),(0,u.jsx)(u.Fragment,{children:t})},h=e=>{var{appearance:t,children:n}=e,a=(0,i._)(e,["appearance","children"]);let l=t||f().castArray((0,s.getQuery)(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.Theme,(0,o._)((0,r._)({},a),{appearance:l,children:(0,u.jsx)(p,{children:n})}))}},74350:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n("39934"),o=e=>{let{params:t}=e;if(!t.toolkit||!t.type)return(0,r.redirect)("/404");if(!["framework","builder","bundler"].includes(t.toolkit))return(0,r.redirect)("/404");if(!["resolved","transformed"].includes(t.type))return(0,r.redirect)("/404");else return null}},30628:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},64981:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return d}});var r=n("86834");n("5872");var o=n("83982"),i=n("39934"),u=n("52493"),a=n.n(u),c=n("64671");let s=e=>{let{name:t,describe:n}=e,i=n.map(e=>(0,r.jsx)(o.Text,{style:{display:"block"},children:e},e));return(0,r.jsx)(o.Tooltip,{className:c.tooltip,side:"right",content:i,children:(0,r.jsx)(o.Select.Item,{value:t,children:(0,r.jsx)(o.Box,{children:a().startCase(t)})})},t)},l=[{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."]}],f=[{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."]}],d={breadcrumb:[{title:"Config"},{title:(0,r.jsx)(()=>{let e=(0,i.useLocation)(),t=(0,i.useNavigate)(),[n,u]=e.pathname.split("/").slice(2);return(0,r.jsxs)(o.Select.Root,{size:"1",value:n,onValueChange:e=>{t("/config/".concat(e,"/").concat(u))},children:[(0,r.jsx)(o.Select.Trigger,{children:n}),(0,r.jsx)(o.Select.Content,{children:l.map(e=>{let{name:t,describe:n}=e;return(0,r.jsx)(s,{name:t,describe:n},t)})})]})},{})},{title:(0,r.jsx)(()=>{let e=(0,i.useLocation)(),t=(0,i.useNavigate)(),[n,u]=e.pathname.split("/").slice(2);return(0,r.jsxs)(o.Select.Root,{size:"1",value:u,onValueChange:e=>{t("/config/".concat(n,"/").concat(e))},children:[(0,r.jsx)(o.Select.Trigger,{children:u}),(0,r.jsx)(o.Select.Content,{children:f.map(e=>{let{name:t,describe:n}=e;return(0,r.jsx)(s,{name:t,describe:n},t)})})]})},{})}]}},92563:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("39934"),o=n("55058"),i=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./builder/transformed");return(0,r.redirect)(n)}},53978:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},22359:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return i}});var r=n("86834"),o=n("80267");let i={breadcrumb:[{title:"Context"},{title:(0,r.jsx)(o.SelectLink,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},30383:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("39934"),o=n("55058"),i=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./builder");return(0,r.redirect)(n)}},8073:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},58237:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},93656:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Header Modifier"}}},92019:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return i}});var r=n("86834"),o=n("29214");let i={breadcrumb:{title:(0,r.jsx)(o.HiHomeModern,{}),pathname:"/overview"}}},65556:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=n("86834");n("49275");var o=n("5872"),i=n("39934"),u=n("83982"),a=n("29214"),c=n("42700"),s=n("31211"),l=n("43897"),f=n("65530"),d=n("44801"),p=n("96617");let h=e=>{let{tab:t}=e,n="";if("builtin"===t.view.type)n=t.view.url;else if("iframe"===t.view.type)n="/external/".concat(t.view.src);else throw Error('Invalid tab view of "'.concat(t.name,'".'));return(0,o.useEffect)(()=>{document.documentElement.classList.add("theme-register")},[]),(0,r.jsx)(u.Tooltip,{content:t.title,side:"right",children:(0,r.jsx)(i.NavLink,{to:n,className:s.tabButton,children:(0,r.jsx)(u.Flex,{justify:"center",align:"center",p:"1",className:s.tabButtonInner,children:(0,r.jsx)(u.Box,{height:"5",width:"5",asChild:!0,children:t.icon})})})})},v=()=>{let{appearance:e}=(0,u.useThemeContext)();return(0,r.jsx)(u.Tooltip,{content:"Appearance",side:"right",children:(0,r.jsx)(u.Box,{className:s.tabButton,onClick:()=>{(0,u.updateThemeAppearanceClass)("light"===e?"dark":"light")},children:(0,r.jsx)(u.Flex,{justify:"center",align:"center",p:"1",className:s.tabButtonInner,children:(0,r.jsx)(u.Box,{height:"5",width:"5",asChild:!0,children:"dark"===e?(0,r.jsx)(a.HiOutlineMoon,{}):(0,r.jsx)(a.HiOutlineSun,{})})})})})},m=()=>{let e=(0,c.useSnapshot)(l.$tabs);return(0,r.jsxs)(u.Flex,{direction:"column",shrink:"0",className:s.navigator,children:[e.map(e=>(0,r.jsx)(h,{tab:e},e.name)),(0,r.jsx)(u.Box,{grow:"1"}),(0,r.jsx)(v,{})]})};function g(){return(0,r.jsxs)(f.Theme,{className:s.wrapper,accentColor:"blue",panelBackground:"solid",children:[(0,r.jsx)(u.Box,{className:s.inner,children:(0,r.jsx)(u.Box,{className:s.innerRight,children:(0,r.jsx)(u.Box,{className:s.container,children:(0,r.jsx)(i.Outlet,{})})})}),(0,r.jsx)(u.ThemePanel,{defaultOpen:!1,style:{display:"none"}}),(0,r.jsx)(m,{}),(0,r.jsx)(d.Breadcrumbs,{className:s.breadcrumbs}),(0,r.jsx)(p.DevtoolsPuller,{})]})}},70853:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n("86834"),o=n("20421"),i=n("43897"),u=n("19512"),a=()=>((0,o.useUnmount)(async()=>{(await i.$mountPoint).remote.onFinishRender()}),(0,r.jsx)(u.Loading,{width:"100%",style:{height:"calc(100vh - var(--breadcrumb-height))"}}))},39134:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},99025:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Overview"}}},50512:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("39934"),o=n("55058"),i=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./overview");return(0,r.redirect)(n)}},47743:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},9845:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Pages"}}},41058:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return i}});var r=n("86834"),o=n("80267");let i={breadcrumb:[{title:"React"},{title:(0,r.jsx)(o.SelectLink,{items:[{to:"/react/components",title:"Components"},{to:"/react/profiler",title:"Profiler"}]})}]}},6521:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var r=n("76471").ErrorRouteHandler},67080:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("39934"),o=n("55058"),i=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./components");return(0,r.redirect)(n)}},22496:function(e,t,n){"use strict";n.r(t),n.d(t,{bridge:function(){return u},store:function(){return a},wallAgent:function(){return i}});var r=n("3570"),o=n("43897");let i=new(n("48463")).WallAgent;o.$mountPoint.then(e=>{i.bindRemote(e.remote,"sendReactDevtoolsData")});let u=(0,r.createBridge)(window.parent,i),a=(0,r.createStore)(u)},43897:function(e,t,n){"use strict";n.r(t),n.d(t,{$builder:function(){return x},$bundler:function(){return _},$definition:function(){return w},$dependencies:function(){return j},$framework:function(){return g},$mountPoint:function(){return h},$perf:function(){return E},$server:function(){return m},$tabs:function(){return y},VERSION:function(){return b}});var r=n("90247"),o=n("55709"),i=n("86834"),u=n("93549"),a=n("88739"),c=n("65872"),s=n("29214"),l=n("54201"),f=n("55058"),d=n("42700");let p=(0,f.stringifyParsedURL)({protocol:"https:"===location.protocol?"wss:":"ws:",host:location.host,pathname:"/__devtools/rpc"}),h=u.MessagePortChannel.link(window.parent,"channel:connect:client").then(async e=>{let t=(0,c.createHooks)();return{remote:(0,a.createBirpc)({async pullUpReactInspector(){await t.callHook("pullUpReactInspector")}},(0,o._)((0,r._)({},e.handlers),{timeout:500})),hooks:t}}),v=new window.WebSocket(p),m=u.WebSocketChannel.link(v).then(async e=>{let t=(0,c.createHooks)();return{remote:(0,a.createBirpc)({async refresh(){location.reload()},async updateFileSystemRoutes(e){await t.callHook("updateFileSystemRoutes",e)}},e),hooks:t}}),g=(0,d.proxy)({context:m.then(e=>{let{remote:t}=e;return t.getAppContext()}),config:{resolved:m.then(e=>{let{remote:t}=e;return t.getFrameworkConfig()}),transformed:m.then(e=>{let{remote:t}=e;return t.getTransformedFrameworkConfig()})}}),x=(0,d.proxy)({context:m.then(e=>{let{remote:t}=e;return t.getBuilderContext()}),config:{resolved:m.then(e=>{let{remote:t}=e;return t.getBuilderConfig()}),transformed:m.then(e=>{let{remote:t}=e;return t.getTransformedBuilderConfig()})}}),_=(0,d.proxy)({config:{resolved:m.then(e=>{let{remote:t}=e;return t.getBundlerConfigs()}),transformed:m.then(e=>{let{remote:t}=e;return t.getTransformedBundlerConfigs()})}}),y=(0,d.proxy)([{name:"overview",title:"Overview",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineHome,{})),view:{type:"builtin",url:"/overview"}},{name:"config",title:"Config",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineAdjustmentsHorizontal,{})),view:{type:"builtin",url:"/config"}},{name:"pages",title:"Pages",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineRectangleGroup,{})),view:{type:"builtin",url:"/pages"}},{name:"react",title:"React",icon:(0,d.ref)((0,i.jsx)(l.RiReactjsLine,{})),view:{type:"builtin",url:"/react"}},{name:"context",title:"Context",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineCube,{})),view:{type:"builtin",url:"/context"}},{name:"headers",title:"Header Modifier",icon:(0,d.ref)((0,i.jsx)(s.HiOutlineAcademicCap,{})),view:{type:"builtin",url:"/headers"}}]),b="2.46.1",R=m.then(e=>{let{remote:t}=e;return t.getClientDefinition()}),w=(0,d.proxy)({name:R.then(e=>e.name),packages:R.then(e=>e.packages),assets:R.then(e=>e.assets),announcement:R.then(e=>e.announcement)}),j=(0,d.proxy)({}),E=(0,d.proxy)({compileDuration:m.then(e=>{let{remote:t}=e;return t.getCompileTimeCost()})})},73393:function(e,t,n){"use strict";n.r(t),n("86834"),n("5872")},86135:function(e,t,n){"use strict";n.r(t),n.d(t,{useThrowable:function(){return o}}),n("52493"),n("5872");let r=new WeakMap,o=e=>{if(!(e instanceof Promise))return e;if(r.has(e)){let t=r.get(e);if(!(t instanceof Error))return t;throw t}throw e.then(t=>r.set(e,t)).catch(t=>r.set(e,t)),e}},82516:function(e,t,n){"use strict";n.r(t);var r=n("73393");n.es(r,t);var o=n("86135");n.es(o,t)},29045:function(e){"use strict";e.exports={connector:"connector-_43720",link:"link-_26ee2"}},64671:function(e){"use strict";e.exports={tooltip:"tooltip-ece352"}},31211:function(e){"use strict";e.exports={breadcrumbs:"breadcrumbs-_6b38a",container:"container-_7aa7d","fading-mask":"fading-mask-d5651b",fadingMask:"fading-mask-d5651b",inner:"inner-e0e4a8","inner-right":"inner-right-c4d5b6",innerRight:"inner-right-c4d5b6",navigator:"navigator-bd780c","tab-button":"tab-button-_97258",tabButton:"tab-button-_97258","tab-button-inner":"tab-button-inner-_2887d",tabButtonInner:"tab-button-inner-_2887d",wrapper:"wrapper-_97d72"}},49275:function(e){}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["118","126","464","58","707","729","810"],function(){return t("18466"),t("79155"),t("65183"),t("24366"),t("76273")}),e.O()}]);
|