@modern-js/devtools-client 0.0.0-nightly-20240305170715 → 0.0.0-nightly-20240307170627
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 +3 -3
- package/dist/html/mount/index.html +3 -3
- package/dist/modern.config.json +1 -1
- package/dist/nestedRoutes.json +1 -1
- package/dist/routes-manifest.json +73 -64
- package/dist/static/js/{101.25761306.js → 101.2f6b4fdc.js} +2 -2
- package/dist/static/js/{101.25761306.js.LICENSE.txt → 101.2f6b4fdc.js.LICENSE.txt} +76 -64
- package/dist/static/js/637.8dd2ff80.js +2 -0
- package/dist/static/js/{637.4747e32e.js.LICENSE.txt → 637.8dd2ff80.js.LICENSE.txt} +137 -135
- package/dist/static/js/{55.f0dbad7f.js → 955.8524fd3e.js} +3 -3
- package/dist/static/js/{55.f0dbad7f.js.LICENSE.txt → 955.8524fd3e.js.LICENSE.txt} +247 -247
- package/dist/static/js/async/{447.5cb18bd5.js → 447.f4edfc0c.js} +2 -2
- package/dist/static/js/async/942.c6af899b.js +2 -0
- package/dist/static/js/async/942.c6af899b.js.LICENSE.txt +7 -0
- package/dist/static/js/async/client_context/builder/{page.f6f5227e.js → page.49456005.js} +2 -2
- package/dist/static/js/async/client_context/framework/{page.8cd09499.js → page.9c4956d5.js} +2 -2
- package/dist/static/js/async/client_doctor/{page.c4455408.js → page.a6f0b4b5.js} +2 -2
- package/dist/static/js/async/client_external/layout.7e04ffdd.js +2 -0
- package/dist/static/js/async/client_external/layout.7e04ffdd.js.LICENSE.txt +3 -0
- package/dist/static/js/async/client_headers/editor/page.f707da2f.js +2 -0
- package/dist/static/js/async/client_headers/editor/{page.ec9b48b1.js.LICENSE.txt → page.f707da2f.js.LICENSE.txt} +18 -18
- package/dist/static/js/async/client_headers/{layout.39145572.js → layout.081bc349.js} +2 -2
- package/dist/static/js/async/client_overview/page.e24aa0fe.js +2 -0
- package/dist/static/js/async/client_overview/{page.085b846a.js.LICENSE.txt → page.e24aa0fe.js.LICENSE.txt} +3 -3
- package/dist/static/js/async/client_pages/{layout.84628bc0.js → layout.e87c54d7.js} +2 -2
- package/dist/static/js/async/client_pages/{page.22c37b5f.js → page.e2091152.js} +2 -2
- package/dist/static/js/async/client_pages/{page.22c37b5f.js.LICENSE.txt → page.e2091152.js.LICENSE.txt} +22 -22
- package/dist/static/js/builder-runtime.033cbe12.js +1 -0
- package/dist/static/js/{client.b1770a86.js → client.54868ee3.js} +2 -2
- package/dist/static/js/{client.b1770a86.js.LICENSE.txt → client.54868ee3.js.LICENSE.txt} +150 -136
- package/dist/static/js/components.9c3812ca.js +1 -0
- package/dist/static/js/{lib-router.96f8407c.js → lib-router.e084a6fd.js} +2 -2
- package/dist/static/js/{lib-router.96f8407c.js.LICENSE.txt → lib-router.e084a6fd.js.LICENSE.txt} +10 -10
- package/dist/static/js/mount.8249f281.js +2 -0
- package/dist/static/js/{mount.893fbfbe.js.LICENSE.txt → mount.8249f281.js.LICENSE.txt} +38 -38
- package/package.json +12 -12
- package/dist/static/js/637.4747e32e.js +0 -2
- package/dist/static/js/async/client_headers/editor/page.ec9b48b1.js +0 -2
- package/dist/static/js/async/client_overview/page.085b846a.js +0 -2
- package/dist/static/js/builder-runtime.e7fb528e.js +0 -1
- package/dist/static/js/components.b7872779.js +0 -1
- package/dist/static/js/mount.893fbfbe.js +0 -2
- /package/dist/static/css/{55.1707421c.css → 955.87f81cb6.css} +0 -0
- /package/dist/static/css/async/client_doctor/{page.36cc31f0.css → page.e973f6c0.css} +0 -0
- /package/dist/static/css/async/client_headers/editor/{page.abdb11b6.css → page.5e88cf5d.css} +0 -0
- /package/dist/static/css/async/client_headers/{layout.f58ce7d3.css → layout.603b61e8.css} +0 -0
- /package/dist/static/css/async/client_overview/{page.8b92f0d4.css → page.d4e4a075.css} +0 -0
- /package/dist/static/css/async/client_pages/{layout.40fc6abc.css → layout.e78027ec.css} +0 -0
- /package/dist/static/css/async/client_pages/{page.caa31a02.css → page.b44251bf.css} +0 -0
- /package/dist/static/css/{client.7c273286.css → client.47ce11c3.css} +0 -0
- /package/dist/static/css/{components.9337c5b0.css → components.f6df2921.css} +0 -0
- /package/dist/static/css/{mount.46cf1459.css → mount.6da58dd4.css} +0 -0
- /package/dist/static/js/async/{447.5cb18bd5.js.LICENSE.txt → 447.f4edfc0c.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_context/builder/{page.f6f5227e.js.LICENSE.txt → page.49456005.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_context/framework/{page.8cd09499.js.LICENSE.txt → page.9c4956d5.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_doctor/{page.c4455408.js.LICENSE.txt → page.a6f0b4b5.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_headers/{layout.39145572.js.LICENSE.txt → layout.081bc349.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/client_pages/{layout.84628bc0.js.LICENSE.txt → layout.e87c54d7.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see page.e24aa0fe.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["161"],{88640:function(e,r,a){"use strict";a.r(r);r.default=function(){for(var e,r,a=0,i="";a<arguments.length;)(e=arguments[a++])&&(r=function e(r){var a,i,n="";if("string"==typeof r||"number"==typeof r)n+=r;else if("object"==typeof r){if(Array.isArray(r))for(a=0;a<r.length;a++)r[a]&&(i=e(r[a]))&&(n&&(n+=" "),n+=i);else for(a in r)r[a]&&(n&&(n+=" "),n+=a)}return n}(e))&&(i&&(i+=" "),i+=r);return i}},64456:function(e,r,a){"use strict";a.r(r),a.d(r,{IndicateCard:function(){return h}});var i=a("90247"),n=a("55709"),s=a("16170"),t=a("86834"),c=a("88640"),l=a("83982"),o=a("20105");let d=e=>{var{children:r,className:a}=e,d=(0,s._)(e,["children","className"]);return(0,t.jsx)(l.Box,(0,n._)((0,i._)({},d),{className:(0,c.default)(o.indicateCard,a),children:r}))};d.displayName="IndicateCard";let p=e=>(0,t.jsx)(l.Flex,(0,i._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e));p.displayName="IndicateCard.Column";let h=Object.assign(d,{Column:p})},72737:function(e,r,a){"use strict";a.r(r);var i=a("64456");a.es(i,r)},51090:function(e,r,a){"use strict";a.r(r);var i=a("86834"),n=a("83982");a("5872");var s=a("29214"),t=a("55058"),c=a("42700"),l=a("99480");a("20105");var o=a("12391"),d=a("72737");let p={webpack:"webpack",rspack:"@rspack/core"};r.default=()=>{let e=(0,c.useSnapshot)(l.$framework),r=(0,c.useSnapshot)(l.$definition),a=(0,c.useSnapshot)(l.$dependencies),h=(0,c.useSnapshot)(l.$builder),x=(0,c.useSnapshot)(l.$perf),u=window.navigator.userAgent.includes("Mac OS"),{toolsType:g}=e.context;if("app-tools"!==g)throw Error();let m=r.packages.appTools,j=a[m],{bundlerType:f}=h.context,b=p[f],y=a[b];return(0,i.jsxs)(n.Flex,{direction:"column",align:"center",p:"4",children:[(0,i.jsxs)(n.Flex,{wrap:"wrap",gap:"4",mb:"8",justify:"center",className:o.container,children:[(0,i.jsx)(d.IndicateCard,{className:o.primaryCard,children:(0,i.jsx)(n.Theme,{appearance:"dark",hasBackground:!1,asChild:!0,children:(0,i.jsxs)(d.IndicateCard.Column,{children:[(0,i.jsx)(n.Heading,{as:"h1",className:o.heading,children:"DevTools"}),(0,i.jsx)(n.Flex,{gap:"2",children:(0,i.jsxs)("button",{type:"button",children:["v",l.VERSION]})}),(0,i.jsxs)(n.Text,{as:"p",size:"1",children:["Powered by ",m,"@",j]})]})})}),(0,i.jsx)(d.IndicateCard,{className:o.infoCard,children:(0,i.jsxs)(n.Flex,{justify:"between",gap:"3",align:"center",height:"100%",children:[(0,i.jsxs)(n.Box,{children:[(0,i.jsx)(n.Text,{color:"gray",children:"Visit our website"}),(0,i.jsx)(n.Flex,{align:"center",asChild:!0,children:(0,i.jsxs)(n.Link,{href:r.announcement.fallback,target:"_blank",rel:"noopener noreferrer",children:[(0,i.jsx)(s.HiLink,{}),(0,i.jsx)(n.Text,{children:(0,t.parseURL)(r.announcement.fallback).host})]})})]}),(0,i.jsx)(n.Box,{color:"gray",asChild:!0,children:(0,i.jsx)(s.HiOutlineDocumentText,{size:"50",color:"var(--gray-6)"})})]})}),(0,i.jsx)(d.IndicateCard,{className:o.pluginCard,children:(0,i.jsxs)(n.Flex,{align:"center",justify:"between",height:"100%",gap:"6",children:[(0,i.jsxs)(n.Box,{children:[(0,i.jsx)(n.Text,{as:"p",size:"8",weight:"bold",style:{color:"var(--gray-11)"},mb:"2",children:e.context.plugins.length}),(0,i.jsx)(n.Text,{as:"p",size:"1",color:"gray",children:"Framework Plugins"})]}),(0,i.jsx)(s.HiOutlinePuzzlePiece,{size:"50",color:"var(--gray-6)"})]})}),(0,i.jsx)(d.IndicateCard,{className:o.compileTimeCard,children:(0,i.jsxs)(n.Flex,{align:"center",justify:"between",height:"100%",gap:"6",children:[(0,i.jsxs)(n.Box,{children:[(0,i.jsxs)(n.Text,{as:"p",size:"8",weight:"bold",style:{color:"var(--gray-11)"},children:[(x.compileDuration/1e3).toFixed(2),"s"]}),(0,i.jsxs)(n.Text,{as:"p",size:"1",color:"gray",children:["Compiled in ",b,"@",y]})]}),(0,i.jsx)(s.HiOutlineClock,{size:"50",color:"var(--gray-6)"})]})})]}),(0,i.jsxs)(n.Flex,{align:"center",className:o.bottomTip,children:[(0,i.jsx)(n.Text,{color:"gray",size:"2",children:"Use"}),(0,i.jsxs)(n.Kbd,{mx:"2",children:["Shift + ",u?"Opt":"Alt"," + D"]}),(0,i.jsx)(n.Text,{color:"gray",size:"2",children:"to open DevTools"})]})]})}},12391:function(e){"use strict";e.exports={"bottom-tip":"bottom-tip-_4de0d",bottomTip:"bottom-tip-_4de0d","compile-time-card":"compile-time-card-_5eda1",compileTimeCard:"compile-time-card-_5eda1",container:"container-_43720",heading:"heading-ecaa29","indicate-bar":"indicate-bar-_5118d",indicateBar:"indicate-bar-_5118d","info-card":"info-card-_07b33",infoCard:"info-card-_07b33","plugin-card":"plugin-card-f1e2dc",pluginCard:"plugin-card-f1e2dc","primary-card":"primary-card-a671aa",primaryCard:"primary-card-a671aa"}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see layout.
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["631"],{73835:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var o=t("86834"),s=t("39934"),r=t("83982"),c=t("
|
|
1
|
+
/*! For license information please see layout.e87c54d7.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["631"],{73835:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var o=t("86834"),s=t("39934"),r=t("83982"),c=t("26232");function u(){return(0,o.jsx)(r.Box,{px:"4",mx:"auto",pb:"4",className:c.container,children:(0,o.jsx)(s.Outlet,{})})}},26232:function(e){"use strict";e.exports={container:"container-a0c6fe"}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see page.
|
|
2
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["718"],{16887:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseRoute:function(){return c}});var r=n("86834"),o=n("5872"),a=n("1607"),i=n("83982"),s=n("60441"),l=n("
|
|
1
|
+
/*! For license information please see page.e2091152.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["718"],{16887:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseRoute:function(){return c}});var r=n("86834"),o=n("5872"),a=n("1607"),i=n("83982"),s=n("60441"),l=n("85176"),u=n("17862");let c=e=>{let{badge:t,route:n,title:c,children:d,open:x,onOpenChange:h}=e,{matched:p}=(0,o.useContext)(u.MatchUrlContext),[m,f]=(0,o.useState)(!1),j=p===n,g=j||(null!=x?x:m);return(0,r.jsx)(i.Box,{p:"3",className:l.container,children:(0,r.jsxs)(a.Root,{open:g,onOpenChange:null!=h?h:f,children:[(0,r.jsxs)(a.Trigger,{className:l.trigger,children:[t,(0,r.jsx)(i.Text,{className:l.urlText,style:{opacity:p&&!j?.5:1},children:c}),(0,r.jsx)(i.Box,{grow:"1"}),(0,r.jsx)(i.Box,{className:l.mark,"data-open":g,children:(0,r.jsx)(s.CaretSortIcon,{})})]}),(0,r.jsx)(a.Content,{className:l.content,children:d})]})})}},17862:function(e,t,n){"use strict";n.r(t),n.d(t,{MatchUrlContext:function(){return r}});let r=(0,n("5872").createContext)({url:""})},96737:function(e,t,n){"use strict";n.r(t),n.d(t,{LegacyRouteStats:function(){return a}});var r=n("86834");n("5872");var o=n("83982");let a=()=>(0,r.jsx)(o.Text,{children:"Unimplemented."})},68199:function(e,t,n){"use strict";n.r(t),n.d(t,{MatchRemixRouteContext:function(){return r}});let r=(0,n("5872").createContext)([])},14492:function(e,t,n){"use strict";n.r(t),n.d(t,{RemixRoute:function(){return x}});var r=n("86834"),o=n("5872"),a=n("83982"),i=n("52493"),s=n.n(i),l=n("55058"),u=n("20421"),c=n("68199"),d=n("81103");let x=e=>{var t,n;let{route:i}=e,h=s().castArray(i),p=s().last(h),m="_component"in p&&s().isString(p._component)?p._component:null,f=(0,l.resolveURL)("/",...h.map(e=>e.path).filter(s().isString))||"/",j=null!==(n=p.index)&&void 0!==n&&n,g="/"===f,y=(0,o.useContext)(c.MatchRemixRouteContext),v=!1===y||y.length>0,R=!!y&&!!s().find(y,{route:{id:p.id}}),C=(0,o.useRef)(null),b=(0,u.useHoverDirty)(C);return(0,r.jsxs)(a.Box,{ref:C,children:[(0,r.jsxs)(a.Flex,{gap:"2",align:"center",mb:p.children&&"1",children:[(0,r.jsxs)(a.Box,{className:d.endpointContainer,"data-matched":!v||R,children:[j&&g||(0,r.jsx)(a.Code,{className:d.endpointTag,"data-compose":j&&"head",children:f}),j&&(0,r.jsx)(a.Code,{className:d.endpointTag,color:"purple","data-compose":!g&&"tail",children:"/(index)"})]}),m&&(0,r.jsx)(a.Link,{className:d.shyLink,style:{visibility:b?"visible":"hidden"},children:m})]}),(0,r.jsx)(a.Flex,{direction:"column",gap:"1",children:null===(t=p.children)||void 0===t?void 0:t.map(e=>(0,r.jsx)(x,{route:h.concat(e)},e.id))})]})}},16197:function(e,t,n){"use strict";n.r(t),n.d(t,{RemixRouteStats:function(){return d}});var r=n("86834"),o=n("39934"),a=n("83982"),i=n("5872"),s=n("55058"),l=n("17862"),u=n("68199"),c=n("14492");let d=e=>{let{remixRoutes:t,route:n}=e,{matched:d,url:x}=(0,i.useContext)(l.MatchUrlContext),h=(0,i.useMemo)(()=>{if(d!==n)return!d&&[];{var e;if(!t)return[];let r=(0,s.cleanDoubleSlashes)(x.replace(n.urlPath,"/")),a=null!==(e=(0,o.matchRoutes)(t,r))&&void 0!==e?e:[];return!!a.length&&a}},[t,d,x]);return t.length?(0,r.jsx)(u.MatchRemixRouteContext.Provider,{value:h,children:(0,r.jsx)(a.Flex,{gap:"2",direction:"column",children:t.map(e=>(0,r.jsx)(c.RemixRoute,{route:e},e.id))})}):null}},85080:function(e,t,n){"use strict";n.r(t),n.d(t,{ClientRouteStats:function(){return x}});var r=n("86834"),o=n("52493"),a=n.n(o),i=n("5872"),s=n("42700"),l=n("96737"),u=n("16197"),c=n("99480"),d=n("24326");(0,s.proxy)({});let x=e=>{let{route:t}=e,n=(0,d.useThrowable)(c.$server),{entrypoints:o}=(0,s.useSnapshot)(c.$framework).context,x=t.entryName&&a().find(o,{entryName:t.entryName});if(!x)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));let p=n.remote.getFileSystemRoutes(x.entryName);return(0,r.jsx)(i.Suspense,{children:(0,r.jsx)(()=>{let e=(0,d.useThrowable)(p);return h(e)?(0,r.jsx)(l.LegacyRouteStats,{}):(0,r.jsx)(u.RemixRouteStats,{remixRoutes:e,route:t})},{})})},h=e=>e[0]&&!("type"in e[0])},38502:function(e,t,n){"use strict";n.r(t);var r=n("85080");n.es(r,t)},82616:function(e,t,n){"use strict";n.r(t),n.d(t,{EntryRoute:function(){return u}});var r=n("86834"),o=n("5872"),a=n("83982"),i=n("16887"),s=n("5489"),l=n("38502");let u=e=>{let{route:t}=e;return(0,r.jsx)(i.BaseRoute,{badge:c,route:t,title:t.urlPath,children:(0,r.jsxs)(a.Flex,{direction:"column",gap:"2",children:[(0,r.jsx)(a.ScrollArea,{scrollbars:"horizontal",children:(0,r.jsx)(s.EntryStats,{route:t})}),(0,r.jsx)(a.ScrollArea,{scrollbars:"horizontal",children:(0,r.jsx)(o.Suspense,{children:(0,r.jsx)(l.ClientRouteStats,{route:t})})})]})})},c=(0,r.jsx)(a.Badge,{color:"cyan",children:"Entry"})},5489:function(e,t,n){"use strict";n.r(t),n.d(t,{EntryStats:function(){return c}});var r=n("86834");n("5872");var o=n("52493"),a=n.n(o),i=n("42700"),s=n("83982"),l=n("94400"),u=n("99480");let c=e=>{let{route:t}=e,{entrypoints:n}=(0,i.useSnapshot)(u.$framework).context,o=t.entryName&&a().find(n,{entryName:t.entryName});if(!o)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));return(0,r.jsxs)(s.Box,{className:l.stats,children:[(0,r.jsxs)(s.Flex,{gap:"1",children:[(0,r.jsx)(s.Strong,{children:"Directory: "}),(0,r.jsx)(s.Text,{children:o.absoluteEntryDir})]}),(0,r.jsxs)(s.Flex,{gap:"1",children:[(0,r.jsx)(s.Strong,{children:"Entry:"}),(0,r.jsx)(s.Text,{children:o.entry})]})]})}},4992:function(e,t,n){"use strict";n.r(t);var r=n("82616");n.es(r,t)},97083:function(e,t,n){"use strict";n.r(t),n.d(t,{ServerRoute:function(){return l}});var r=n("86834");n("5872");var o=n("52493"),a=n.n(o),i=n("4992"),s=n("76533");let l=e=>{let{route:t}=e;return a().isString(t.entryName)?(0,r.jsx)(i.EntryRoute,{route:t}):(0,r.jsx)(s.UnknownRoute,{route:t})}},76533:function(e,t,n){"use strict";n.r(t),n.d(t,{UnknownRoute:function(){return i}});var r=n("86834");n("5872");var o=n("83982"),a=n("16887");let i=e=>{let{route:t}=e;return(0,r.jsx)(a.BaseRoute,{badge:s,route:t,title:t.urlPath,children:(0,r.jsx)(o.Card,{children:"Unknown route type."})})},s=(0,r.jsx)(o.Badge,{color:"gray",children:"Unknown"})},95879:function(e,t,n){"use strict";n.r(t);var r=n("86834"),o=n("83982"),a=n("5872"),i=n("42700"),s=n("55058"),l=n("29214"),u=n("99480"),c=n("60827"),d=n("17862"),x=n("97083");t.default=()=>{let{serverRoutes:e}=(0,i.useSnapshot)(u.$framework).context,[t,n]=(0,a.useState)({url:""}),h=t=>{let{pathname:r}=(0,s.parseURL)(t);n({url:t,matched:e.find(e=>r===e.urlPath||r.startsWith((0,s.withTrailingSlash)(e.urlPath)))})};return(0,r.jsx)(d.MatchUrlContext.Provider,{value:t,children:(0,r.jsxs)(o.Flex,{position:"relative",direction:"column",gap:"2",align:"stretch",justify:"between",pt:"8",children:[e.map(e=>(0,r.jsx)(x.ServerRoute,{route:e},e.entryPath)),(0,r.jsx)(o.Box,{mb:"2",className:c.input,children:(0,r.jsx)(o.Box,{style:{maxWidth:"40rem",margin:"0 auto",padding:"0 var(--space-4)"},children:(0,r.jsxs)(o.TextField.Root,{children:[(0,r.jsx)(o.TextField.Slot,{children:(0,r.jsx)(l.HiOutlineArrowsRightLeft,{})}),(0,r.jsx)(o.TextField.Input,{placeholder:"/foo?bar#baz",onChange:e=>h(e.target.value),type:"url",autoComplete:"false",autoCapitalize:"false",autoCorrect:"false"})]})})})]})})}},60827:function(e){"use strict";e.exports={input:"input-d0c7d8"}},1607:function(e,t,n){"use strict";n.r(t),n.d(t,{Content:function(){return w},Root:function(){return S},Trigger:function(){return N}});var r=n("83197"),o=n("5872"),a=n("67844"),i=n("82602"),s=n("88654"),l=n("59504"),u=n("88340"),c=n("63422"),d=n("78910"),x=n("63018");let h="Collapsible",[p,m]=(0,i.createContextScope)(h),[f,j]=p(h),g=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:n,open:a,defaultOpen:i,disabled:l,onOpenChange:u,...d}=e,[h=!1,p]=(0,s.useControllableState)({prop:a,defaultProp:i,onChange:u});return(0,o.createElement)(f,{scope:n,disabled:l,contentId:(0,x.useId)(),open:h,onOpenToggle:(0,o.useCallback)(()=>p(e=>!e),[p])},(0,o.createElement)(c.Primitive.div,(0,r.default)({"data-state":b(h),"data-disabled":l?"":void 0},d,{ref:t})))}),y=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:n,...i}=e,s=j("CollapsibleTrigger",n);return(0,o.createElement)(c.Primitive.button,(0,r.default)({type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":b(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled},i,{ref:t,onClick:(0,a.composeEventHandlers)(e.onClick,s.onOpenToggle)}))}),v="CollapsibleContent",R=(0,o.forwardRef)((e,t)=>{let{forceMount:n,...a}=e,i=j(v,e.__scopeCollapsible);return(0,o.createElement)(d.Presence,{present:n||i.open},({present:e})=>(0,o.createElement)(C,(0,r.default)({},a,{ref:t,present:e})))}),C=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:a,children:i,...s}=e,d=j(v,n),[x,h]=(0,o.useState)(a),p=(0,o.useRef)(null),m=(0,u.useComposedRefs)(t,p),f=(0,o.useRef)(0),g=f.current,y=(0,o.useRef)(0),R=y.current,C=d.open||x,S=(0,o.useRef)(C),N=(0,o.useRef)();return(0,o.useEffect)(()=>{let e=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,l.useLayoutEffect)(()=>{let e=p.current;if(e){N.current=N.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();f.current=t.height,y.current=t.width,!S.current&&(e.style.transitionDuration=N.current.transitionDuration,e.style.animationName=N.current.animationName),h(a)}},[d.open,a]),(0,o.createElement)(c.Primitive.div,(0,r.default)({"data-state":b(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!C},s,{ref:m,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":R?`${R}px`:void 0,...e.style}}),C&&i)});function b(e){return e?"open":"closed"}let S=g,N=y,w=R}}]);
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
/*! @radix-ui/react-
|
|
2
|
-
|
|
3
|
-
/*! @radix-ui/react-id */
|
|
1
|
+
/*! @radix-ui/react-primitive */
|
|
4
2
|
|
|
5
3
|
/*! @radix-ui/react-icons */
|
|
6
4
|
|
|
5
|
+
/*! @radix-ui/react-use-layout-effect */
|
|
6
|
+
|
|
7
7
|
/*! react */
|
|
8
8
|
|
|
9
|
+
/*! @radix-ui/react-presence */
|
|
10
|
+
|
|
9
11
|
/*! lodash */
|
|
10
12
|
|
|
11
13
|
/*! react/jsx-runtime */
|
|
12
14
|
|
|
13
15
|
/*! ./Stats.module.scss */
|
|
14
16
|
|
|
15
|
-
/*! @/components/ServerRoute/Route */
|
|
16
|
-
|
|
17
17
|
/*! ./Base */
|
|
18
18
|
|
|
19
|
+
/*! @radix-ui/primitive */
|
|
20
|
+
|
|
19
21
|
/*! react */
|
|
20
22
|
|
|
21
23
|
/*! react/jsx-runtime */
|
|
22
24
|
|
|
23
|
-
/*!
|
|
25
|
+
/*! @/components/ServerRoute/Context */
|
|
24
26
|
|
|
25
27
|
/*! react */
|
|
26
28
|
|
|
@@ -40,8 +42,12 @@
|
|
|
40
42
|
|
|
41
43
|
/*! ./Context */
|
|
42
44
|
|
|
45
|
+
/*! react */
|
|
46
|
+
|
|
43
47
|
/*! @radix-ui/themes */
|
|
44
48
|
|
|
49
|
+
/*! @babel/runtime/helpers/esm/extends */
|
|
50
|
+
|
|
45
51
|
/*! ./Route */
|
|
46
52
|
|
|
47
53
|
/*! @radix-ui/themes */
|
|
@@ -50,10 +56,14 @@
|
|
|
50
56
|
|
|
51
57
|
/*! ./Route */
|
|
52
58
|
|
|
59
|
+
/*! @/components/ServerRoute/Route */
|
|
60
|
+
|
|
53
61
|
/*! react */
|
|
54
62
|
|
|
55
63
|
/*! react/jsx-runtime */
|
|
56
64
|
|
|
65
|
+
/*! @radix-ui/react-compose-refs */
|
|
66
|
+
|
|
57
67
|
/*! react/jsx-runtime */
|
|
58
68
|
|
|
59
69
|
/*! react */
|
|
@@ -62,16 +72,10 @@
|
|
|
62
72
|
|
|
63
73
|
/*! ufo */
|
|
64
74
|
|
|
65
|
-
/*! @radix-ui/react-primitive */
|
|
66
|
-
|
|
67
75
|
/*! @/utils */
|
|
68
76
|
|
|
69
|
-
/*! @radix-ui/react-use-layout-effect */
|
|
70
|
-
|
|
71
77
|
/*! react */
|
|
72
78
|
|
|
73
|
-
/*! @radix-ui/react-presence */
|
|
74
|
-
|
|
75
79
|
/*! ../../../Context */
|
|
76
80
|
|
|
77
81
|
/*! ./Context */
|
|
@@ -88,14 +92,16 @@
|
|
|
88
92
|
|
|
89
93
|
/*! lodash */
|
|
90
94
|
|
|
91
|
-
/*! @radix-ui/primitive */
|
|
92
|
-
|
|
93
95
|
/*! react */
|
|
94
96
|
|
|
95
97
|
/*! react */
|
|
96
98
|
|
|
97
99
|
/*! ufo */
|
|
98
100
|
|
|
101
|
+
/*! @radix-ui/react-context */
|
|
102
|
+
|
|
103
|
+
/*! @radix-ui/react-id */
|
|
104
|
+
|
|
99
105
|
/*! @/entries/client/routes/state */
|
|
100
106
|
|
|
101
107
|
/*! ./Unknown */
|
|
@@ -112,14 +118,10 @@
|
|
|
112
118
|
|
|
113
119
|
/*! react */
|
|
114
120
|
|
|
115
|
-
/*! react */
|
|
116
|
-
|
|
117
121
|
/*! @radix-ui/themes */
|
|
118
122
|
|
|
119
123
|
/*! react/jsx-runtime */
|
|
120
124
|
|
|
121
|
-
/*! @babel/runtime/helpers/esm/extends */
|
|
122
|
-
|
|
123
125
|
/*! @/entries/client/routes/state */
|
|
124
126
|
|
|
125
127
|
/*! ./page.module.scss */
|
|
@@ -128,20 +130,18 @@
|
|
|
128
130
|
|
|
129
131
|
/*! valtio */
|
|
130
132
|
|
|
133
|
+
/*! @radix-ui/react-use-controllable-state */
|
|
134
|
+
|
|
131
135
|
/*! react-use */
|
|
132
136
|
|
|
133
137
|
/*! ./Context */
|
|
134
138
|
|
|
135
|
-
/*! @radix-ui/react-compose-refs */
|
|
136
|
-
|
|
137
139
|
/*! @radix-ui/themes */
|
|
138
140
|
|
|
139
141
|
/*! valtio */
|
|
140
142
|
|
|
141
143
|
/*! ../Base */
|
|
142
144
|
|
|
143
|
-
/*! @/components/ServerRoute/Context */
|
|
144
|
-
|
|
145
145
|
/*! react */
|
|
146
146
|
|
|
147
147
|
/*! valtio */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){var e,t,n,r,o,a,i,c,u,l,f,d,s,p,b={},g={};function h(e){var t=g[e];if(void 0!==t)return t.exports;var n=g[e]={id:e,loaded:!1,exports:{}};return b[e].call(n.exports,n,n.exports,h),n.loaded=!0,n.exports}h.m=b,h.es=function(e,t){return Object.keys(e).forEach(function(n){"default"!==n&&!Object.prototype.hasOwnProperty.call(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})}),e},h.f={},h.e=function(e){return Promise.all(Object.keys(h.f).reduce(function(t,n){return h.f[n](e,t),t},[]))},h.p="/__devtools/",e=[],h.O=function(t,n,r,o){if(n){o=o||0;for(var a=e.length;a>0&&e[a-1][2]>o;a--)e[a]=e[a-1];e[a]=[n,r,o];return}for(var i=1/0,a=0;a<e.length;a++){for(var n=e[a][0],r=e[a][1],o=e[a][2],c=!0,u=0;u<n.length;u++)i>=o&&Object.keys(h.O).every(function(e){return h.O[e](n[u])})?n.splice(u--,1):(c=!1,o<i&&(i=o));if(c){e.splice(a--,1);var l=r();void 0!==l&&(t=l)}}return t},h.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),h.d=function(e,t){for(var n in t)h.o(t,n)&&!h.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},h.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},h.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var o=Object.create(null);h.r(o);var a={};t=t||[null,n({}),n([]),n(n)];for(var i=2&r&&e;"object"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(t){a[t]=function(){return e[t]}});return a.default=function(){return e},h.d(o,a),o},h.nmd=function(e){return e.paths=[],!e.children&&(e.children=[]),e},h.nc=void 0,h.u=function(e){return"static/js/async/"+(({127:"client_page",161:"client_overview/page",299:"client_react/(tab)/layout",361:"client_context/page",483:"client_react/(tab)/page",488:"client_doctor/page",504:"client_context/layout",518:"client_config/layout",631:"client_pages/layout",718:"client_pages/page",730:"client_headers/editor/page",744:"client_external/layout",752:"client_react/offscreen/page",818:"client_context/framework/page",860:"client_headers/welcome/page",925:"client_headers/layout",943:"client_config/page",945:"client_react/page",958:"client_context/builder/page",963:"client_headers/page"})[e]||e)+"."+({127:"5e12b570",161:"e24aa0fe",299:"b25a0a9b",361:"635cc0cb",447:"f4edfc0c",483:"3317c84a",488:"a6f0b4b5",504:"d57d4a8b",518:"ba4d2992",631:"e87c54d7",718:"e2091152",730:"f707da2f",744:"7e04ffdd",752:"44e6922b",769:"e85f7c76",818:"9c4956d5",851:"ee5298ce",860:"1af1ede1",925:"081bc349",942:"c6af899b",943:"a63f5a35",945:"5660dc8e",958:"49456005",963:"d2a0f47d"})[e]+".js"},h.k=function(e){return"static/css/async/"+({161:"client_overview/page",488:"client_doctor/page",631:"client_pages/layout",718:"client_pages/page",730:"client_headers/editor/page",925:"client_headers/layout"})[e]+"."+({161:"d4e4a075",488:"e973f6c0",631:"e78027ec",718:"b44251bf",730:"5e88cf5d",925:"603b61e8"})[e]+".css"},r={},o="modernjsDevtools:",h.l=function(e,t,n,a){if(r[e]){r[e].push(t);return}if(void 0!==n){for(var i,c,u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==o+n){i=f;break}}}!i&&(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,h.nc&&i.setAttribute("nonce",h.nc),i.setAttribute("data-webpack",o+n),i.src=e),r[e]=[t];var d=function(t,n){i.onerror=i.onload=null,clearTimeout(s);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(n)}),t)return t(n)},s=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)},h.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a={242:0},h.f.j=function(e,t){var n=h.o(a,e)?a[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(242!=e){var r=new Promise(function(t,r){n=a[e]=[t,r]});t.push(n[2]=r);var o=h.p+h.u(e),i=Error();h.l(o,function(t){if(h.o(a,e)&&(0!==(n=a[e])&&(a[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,n[1](i)}},"chunk-"+e,e)}else a[e]=0}},h.O.j=function(e){return 0===a[e]},i=function(e,t){var n=t[0],r=t[1],o=t[2],i,c,u=0;if(n.some(function(e){return 0!==a[e]})){for(i in r)h.o(r,i)&&(h.m[i]=r[i]);if(o)var l=o(h)}for(e&&e(t);u<n.length;u++)c=n[u],h.o(a,c)&&a[c]&&a[c][0](),a[c]=0;return h.O(l)},(c=self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).forEach(i.bind(null,0)),c.push=i.bind(null,c.push.bind(c)),u={101:0,118:0,126:0,242:0,58:0,637:0,707:0,768:0},l="webpack",f="data-webpack-loading",d=function(e,t,n,r){var o,a,i="chunk-"+e;if(!r){for(var c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var d=c[u],s=d.getAttribute("href")||d.href;if(s&&!s.startsWith(h.p)&&(s=h.p+(s.startsWith("/")?s.slice(1):s)),"stylesheet"==d.rel&&(s&&s.startsWith(t)||d.getAttribute("data-webpack")==l+":"+i)){o=d;break}}if(!n)return o}!o&&(a=!0,(o=document.createElement("link")).setAttribute("data-webpack",l+":"+i),o.setAttribute(f,1),o.rel="stylesheet",o.href=t);var p=function(e,t){if(o.onerror=o.onload=null,o.removeAttribute(f),clearTimeout(b),t&&"load"!=t.type&&o.parentNode.removeChild(o),n(t),e)return e(t)};if(o.getAttribute(f)){var b=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload)}else p(void 0,{type:"load",target:o});return r?r.parentNode.insertBefore(o,r):a&&document.head.appendChild(o),o},h.f.css=function(e,t){var n=h.o(u,e)?u[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(/^(4(00|62|88)|161|567|631|718|730|925|955)$/.test(e)){var r=new Promise(function(t,r){n=u[e]=[t,r]});t.push(n[2]=r);var o=h.p+h.k(e),a=Error();d(e,o,function(t){if(h.o(u,e)&&(0!==(n=u[e])&&(u[e]=void 0),n)){if("load"!==t.type){var r=t&&t.type,o=t&&t.target&&t.target.src;a.message="Loading css chunk "+e+" failed.\n("+r+": "+o+")",a.name="ChunkLoadError",a.type=r,a.request=o,n[1](a)}else n[0]()}})}else u[e]=0}},s=function(e,t){var n=t[0];e&&e(t);for(var r=0;r<n.length;r++)void 0===u[n[r]]&&(u[n[r]]=0)},(p=self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).forEach(s.bind(null,0)),p.push=s.bind(null,p.push.bind(p))}();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see client.
|
|
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"),y=new WeakMap,_=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=_(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 y.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 S;if(o=e,!(a=y.get(o))&&(o=b({plugins:[]})(o),a=y.get(o)),c=_(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(S=t)||"undefined"!=typeof HTMLElement&&(0,i._)(S,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)(y,{matches:a,path:t,routeManifest:o}):null},y=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})},_=function(e){return l().forwardRef(function(t,r){var a,s,d,v,m,g,y,_,b,R,w,j,E,k,S,L=t.to,C=t.prefetch,A=(0,i._)(t,["to","prefetch"]),M="string"==typeof L&&h.test(L);var O=(0,u._)((a=void 0===C?"none":C,s=A,v=(d=(0,u._)(l().useState(!1),2))[0],m=d[1],y=(g=(0,u._)(l().useState(!1),2))[0],_=g[1],b=s.onFocus,R=s.onBlur,w=s.onMouseEnter,j=s.onMouseLeave,E=s.onTouchStart,l().useEffect(function(){"render"===a&&_(!0)},[a]),k=function(){"intent"===a&&m(!0)},S=function(){"intent"===a&&(m(!1),_(!1))},l().useEffect(function(){if(v){var e=setTimeout(function(){_(!0)},100);return function(){clearTimeout(e)}}},[v]),[y,{onFocus:p(b,k),onBlur:p(R,S),onMouseEnter:p(w,k),onMouseLeave:p(j,S),onTouchStart:p(E,k)}]),2),N=O[0],P=O[1],T=(0,f.useResolvedPath)(L);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,(0,o._)({ref:r,to:L},A,P)),N&&n.e&&!M?(0,c.jsx)(x,{path:T}):null]})})},b=_(f.Link);b.displayName="Link";var R=_(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 i.Link},NavLink:function(){return i.NavLink},createShouldRevalidate:function(){return u.createShouldRevalidate},default:function(){return a},handleRouteModule:function(){return u.handleRouteModule},handleRouteModuleError:function(){return u.handleRouteModuleError}});var r=n("29552"),o=n("78771");n.es(o,t);var i=n("85371"),u=n("83366"),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,y=e.routesConfig,_=e.createRoutes,b=[];return v=y,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&&!_)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),y=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=_?_():(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(!(y&&y()))return e.apply(void 0,(0,i._)(n))})},Object.defineProperty(g,"remixRouter",{get:function(){return n},configurable:!0}),n},[v,t,f,p,y])},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==y?void 0:y.globalApp)?s({App:l()(g,y.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,y=e[Symbol.iterator]();!(v=(x=y.next()).done);v=!0){var _=x.value;if("nested"===_.type){var b=(0,s.renderNestedRoute)(_,{DeferredDataComponent:"stream"===i?f.default:void 0,props:c,reporter:d});h.push(b)}else{var R=(0,u.jsx)(a.Route,{path:_.path,element:(0,u.jsx)(p,{Component:_.component})},_.path);h.push(R)}}}catch(e){m=!0,g=e}finally{try{!v&&null!=y.return&&y.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 P},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 }"))},y=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(_))),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},_=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)))}},S=Symbol.for("MODERN_ASYNC_WORKFLOW"),L=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(C))),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)}},S,!0));return t},C=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))})})}},A=function(e){},M=function(e){return null!==e&&"object"==typeof e},O="SYNC_PLUGIN_SYMBOL",N={name:"untitled",pre:[],post:[],rivals:[],required:[],usePlugins:[],registerHook:{}},P=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._)({},N),{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 A(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 y();if(null==(r=e)?void 0:r[b])return R();if(null==(o=e)?void 0:o[S])return L();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("31988"),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,y=e.lazyImport,_=e.config,b=e.handle,R=n.parent,w=n.DeferredDataComponent,j=n.props,E=void 0===j?{}:j,k=n.reporter,S={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 _?null==_?void 0:_.handle:{}),index:e.index,element:e.element,errorElement:e.errorElement};if(e.error){var L=(0,a.jsx)(e.error,{});S.errorElement=L}if(g){if((null==R?void 0:R.loading)&&y){var C=R.loading;t=p(g)?(0,a.jsx)(g,{fallback:(0,a.jsx)(C,{})}):(0,a.jsx)(c.Suspense,{fallback:(0,a.jsx)(C,{}),children:(0,a.jsx)(g,{})})}else t=p(g)&&y?(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})]}):y?(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,S.element=(0,a.jsx)(s.Outlet,{});t&&(S.element=t);var A=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._)({},S),{index:!0}),m):(0,a.jsx)(s.Route,(0,i._)((0,o._)({},S),{index:!1,children:A}),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("77393");n.es(r,t)},78771:function(e,t,n){"use strict";n.r(t);var r=n("31988");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}},19336:function(e,t,n){"use strict";e.exports=n.p+"static/font/NotoSans-latin-subset.0dd84d42.woff2"},91470: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("41003"),d=n("7870");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}))}},81881:function(e,t,n){"use strict";n.r(t),n.d(t,{Puller:function(){return c}});var r=n("5872"),o=n("39934"),i=n("24326"),u=n("99480");let a="";u.$mountPoint.then(e=>{let{hooks:t}=e;t.hookOnce("pullUp",async e=>{a=e})});let c=()=>{let e=(0,o.useNavigate)(),t=(0,i.useThrowable)(u.$mountPoint);return(0,r.useEffect)(()=>{a&&e(a),t.hooks.hook("pullUp",async t=>{e(t)})},[]),null}},70552:function(e,t,n){"use strict";n.r(t),n.d(t,{ErrorRouteHandler:function(){return a}});var r=n("86834");n("5872");var o=n("39934"),i=n("83982");let u=e=>{let{error:t}=e,n=t instanceof Error?"".concat(t.name,": ").concat(t.message):"Unknown Error",o=t instanceof Error?t.stack:Object.prototype.toString.call(t);return(0,r.jsxs)(i.Box,{p:"4",children:[(0,r.jsx)(i.Heading,{as:"h4",mb:"4",children:(0,r.jsx)(i.Text,{as:"span",children:n})}),(0,r.jsx)(i.TextArea,{disabled:!0,style:{height:"50vh"},value:o})]})},a=()=>{let e=(0,o.useRouteError)();return(0,r.jsx)(u,{resetErrorBoundary:()=>null,error:e})}},99036:function(e,t,n){"use strict";n.r(t),n.d(t,{FeatureDisabled:function(){return a}});var r=n("86834");n("5872");var o=n("83982"),i=n("29214"),u=n("45426");let a=e=>{let{title:t,children:n}=e;return(0,r.jsxs)(o.Flex,{className:u.container,mt:"9",mx:"auto",gap:"2",children:[(0,r.jsx)(o.Flex,{height:"9",align:"center",children:(0,r.jsx)(i.HiExclamationCircle,{size:"36"})}),(0,r.jsxs)(o.Box,{children:[(0,r.jsx)(o.Flex,{height:"9",align:"center",children:(0,r.jsx)(o.Heading,{children:t})}),(0,r.jsx)(o.Box,{className:u.children,children:n})]})]})}},7870: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})}))}},62766: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)})})]})}},25642: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})}))}},17700:function(e,t,n){"use strict";n.r(t);var r=n("39934");t.default=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}},19744:function(e,t,n){"use strict";n.r(t);var r=n("70552");t.default=r.ErrorRouteHandler},36466: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("4890");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)})})]})},{})}]}},99956:function(e,t,n){"use strict";n.r(t);var r=n("39934"),o=n("55058");t.default=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./builder/transformed");return(0,r.redirect)(n)}},64953:function(e,t,n){"use strict";n.r(t);var r=n("70552");t.default=r.ErrorRouteHandler},15549:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return i}});var r=n("86834"),o=n("62766");let i={breadcrumb:[{title:"Context"},{title:(0,r.jsx)(o.SelectLink,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},97815:function(e,t,n){"use strict";n.r(t);var r=n("39934"),o=n("55058");t.default=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./builder");return(0,r.redirect)(n)}},29922:function(e,t,n){"use strict";n.r(t);var r=n("86834"),o=n("39934"),i=n("83982"),u=n("42700"),a=n("55058"),c=n("99480"),s=n("70552"),l=n("99036");t.default=()=>{let e=(0,o.useRouteError)(),t=(0,u.useSnapshot)(c.$definition);if(!(e&&"object"==typeof e&&0===Object.keys(e).length))return(0,r.jsx)(s.ErrorRouteHandler,{});{let e=(0,a.parseURL)(t.doctor.quickStart).host,n=(0,r.jsxs)(i.Link,{href:t.doctor.quickStart,target:"_blank",rel:"noopener noreferrer",children:["\uD83D\uDD17",e]});return(0,r.jsx)(i.Box,{width:"100%",children:(0,r.jsxs)(l.FeatureDisabled,{title:"Doctor is not working",children:["Visit the website of ",n," to learn more."]})})}}},68605:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Doctor"}}},62522:function(e,t,n){"use strict";n.r(t);var r=n("70552");t.default=r.ErrorRouteHandler},37650:function(e,t,n){"use strict";n.r(t);var r=n("70552");t.default=r.ErrorRouteHandler},17306:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Header Modifier"}}},15401:function(e,t,n){"use strict";n.r(t),n.d(t,{loader:function(){return i}});var r=n("39934"),o=n("81695");let i=async()=>{let e=await o.$state.service;return(0,r.redirect)(e.rules?"./editor":"./welcome")}},81695:function(e,t,n){"use strict";n.r(t),n.d(t,{$state:function(){return s},registerService:function(){return u},unregisterService:function(){return a}});var r=n("42700"),o=n("52493"),i=n.n(o);let u=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=encodeURIComponent(JSON.stringify(e)),n="".concat("/sw-proxy.js","?rules=").concat(t),r=await navigator.serviceWorker.register(n);return await navigator.serviceWorker.ready,s.service=await c(),r},a=async()=>{let e=await navigator.serviceWorker.getRegistrations(),t=!0;for(let n of e)t=t&&await n.unregister();return s.service=Promise.resolve({}),t},c=async()=>{for(let e of i().times(3))try{let e=AbortSignal.timeout(300),t=await fetch("/__devtools/service/status",{signal:e});return await t.json()}catch(e){}return{}},s=(0,r.proxy)({service:c()})},40193: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"}}},69748:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=n("86834");n("20149");var o=n("5872"),i=n("39934"),u=n("83982"),a=n("29214"),c=n("42700"),s=n("32619"),l=n("99480"),f=n("25642"),d=n("91470"),p=n("81881");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.Puller,{})]})}},18384:function(e,t,n){"use strict";n.r(t);var r=n("86834"),o=n("20421"),i=n("99480"),u=n("428");t.default=()=>((0,o.useUnmount)(async()=>{(await i.$mountPoint).remote.onFinishRender()}),(0,r.jsx)(u.Loading,{width:"100%",style:{height:"calc(100vh - var(--breadcrumb-height))"}}))},59448:function(e,t,n){"use strict";n.r(t);var r=n("70552");t.default=r.ErrorRouteHandler},84826:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Overview"}}},66802:function(e,t,n){"use strict";n.r(t);var r=n("39934"),o=n("55058");t.default=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./overview");return(0,r.redirect)(n)}},96303:function(e,t,n){"use strict";n.r(t);var r=n("70552");t.default=r.ErrorRouteHandler},93581:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Pages"}}},24757:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return i}});var r=n("86834"),o=n("62766");let i={breadcrumb:[{title:"React"},{title:(0,r.jsx)(o.SelectLink,{items:[{to:"/react/components",title:"Components"},{to:"/react/profiler",title:"Profiler"}]})}]}},92865:function(e,t,n){"use strict";n.r(t);var r=n("70552");t.default=r.ErrorRouteHandler},82193:function(e,t,n){"use strict";n.r(t);var r=n("39934"),o=n("55058");t.default=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./components");return(0,r.redirect)(n)}},99480:function(e,t,n){"use strict";n.r(t),n.d(t,{$builder:function(){return x},$bundler:function(){return y},$definition:function(){return w},$dependencies:function(){return E},$framework:function(){return g},$mountPoint:function(){return h},$perf:function(){return k},$server:function(){return m},$tabs:function(){return _},VERSION:function(){return b}});var r=n("90247"),o=n("55709"),i=n("86834"),u=n("10487"),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 pullUp(e){await t.callHook("pullUp",e)}},(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()})}}),y=(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()})}}),_=(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"}},{name:"doctor",title:"Doctor",icon:(0,d.ref)((0,i.jsx)(l.RiShieldCrossLine,{})),view:{type:"builtin",url:"/doctor"}}]),b="2.48.0",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),doctor:R.then(e=>e.doctor)}),j=m.then(e=>{let{remote:t}=e;return t.getDependencies()}),E=(0,d.proxy)({});j.then(e=>Object.assign(E,e));let k=(0,d.proxy)({compileDuration:m.then(e=>{let{remote:t}=e;return t.getCompileTimeCost()})})},74473:function(e,t,n){"use strict";n.r(t),n("86834"),n("5872")},38068: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}},24326:function(e,t,n){"use strict";n.r(t);var r=n("74473");n.es(r,t);var o=n("38068");n.es(o,t)},4890:function(e){"use strict";e.exports={tooltip:"tooltip-ece352"}},32619: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"}},20149:function(e){}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["101","118","126","55","567","58","637","707"],function(){return t("90915"),t("69394"),t("81816"),t("19449"),t("56036")}),e.O()}]);
|
|
1
|
+
/*! For license information please see client.54868ee3.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 w},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"),y=new WeakMap,_=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=_(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 y.set(i,t),i}};var w=(r=(0,o._)(function(e,t,n,r){var o,a,c,l,f,p,h,v,m,g,w,R,j,E,k;return(0,s._)(this,function(s){switch(s.label){case 0:var S;if(o=e,!(a=y.get(o))&&(o=b({plugins:[]})(o),a=y.get(o)),c=_(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(S=t)||"undefined"!=typeof HTMLElement&&(0,i._)(S,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),w="string"!=typeof t?t:document.getElementById(t||"root"),!r)throw Error("The `bootstrap` need provide `ReactDOM` parameter");return R=function(e){if(n)n.render(e);else if(r.createRoot)r.createRoot(w).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(w,e)},[2,a.client({App:o,context:c,ModernRender:R,ModernHydrate:j},{onLast:function(e){var t=e.App;R(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 w}});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)(y,{matches:a,path:t,routeManifest:o}):null},y=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})},_=function(e){return l().forwardRef(function(t,r){var a,s,d,v,m,g,y,_,b,w,R,j,E,k,S,L=t.to,C=t.prefetch,A=(0,i._)(t,["to","prefetch"]),M="string"==typeof L&&h.test(L);var O=(0,u._)((a=void 0===C?"none":C,s=A,v=(d=(0,u._)(l().useState(!1),2))[0],m=d[1],y=(g=(0,u._)(l().useState(!1),2))[0],_=g[1],b=s.onFocus,w=s.onBlur,R=s.onMouseEnter,j=s.onMouseLeave,E=s.onTouchStart,l().useEffect(function(){"render"===a&&_(!0)},[a]),k=function(){"intent"===a&&m(!0)},S=function(){"intent"===a&&(m(!1),_(!1))},l().useEffect(function(){if(v){var e=setTimeout(function(){_(!0)},100);return function(){clearTimeout(e)}}},[v]),[y,{onFocus:p(b,k),onBlur:p(w,S),onMouseEnter:p(R,k),onMouseLeave:p(j,S),onTouchStart:p(E,k)}]),2),P=O[0],N=O[1],T=(0,f.useResolvedPath)(L);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e,(0,o._)({ref:r,to:L},A,N)),P&&n.e&&!M?(0,c.jsx)(x,{path:T}):null]})})},b=_(f.Link);b.displayName="Link";var w=_(f.NavLink);w.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 i.Link},NavLink:function(){return i.NavLink},createShouldRevalidate:function(){return u.createShouldRevalidate},default:function(){return a},handleRouteModule:function(){return u.handleRouteModule},handleRouteModuleError:function(){return u.handleRouteModuleError}});var r=n("29552"),o=n("78771");n.es(o,t);var i=n("85371"),u=n("83366"),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,y=e.routesConfig,_=e.createRoutes,b=[];return v=y,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&&!_)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),y=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=_?_():(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(!(y&&y()))return e.apply(void 0,(0,i._)(n))})},Object.defineProperty(g,"remixRouter",{get:function(){return n},configurable:!0}),n},[v,t,f,p,y])},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==y?void 0:y.globalApp)?s({App:l()(g,y.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,y=e[Symbol.iterator]();!(v=(x=y.next()).done);v=!0){var _=x.value;if("nested"===_.type){var b=(0,s.renderNestedRoute)(_,{DeferredDataComponent:"stream"===i?f.default:void 0,props:c,reporter:d});h.push(b)}else{var w=(0,u.jsx)(a.Route,{path:_.path,element:(0,u.jsx)(p,{Component:_.component})},_.path);h.push(w)}}}catch(e){m=!0,g=e}finally{try{!v&&null!=y.return&&y.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 }"))},y=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(_))),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},_=function(e){return function(t,n){return Promise.resolve(e(t)).then(function(e){return n(e)})}},b=Symbol.for("MODERN_WORKFLOW"),w=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(R))),t},run:function(t){return e.run(t,{onLast:function(){return[]}}).filter(Boolean)}},b,!0));return t},R=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)))}},S=Symbol.for("MODERN_ASYNC_WORKFLOW"),L=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(C))),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)}},S,!0));return t},C=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))})})}},A=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 A(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 y();if(null==(r=e)?void 0:r[b])return w();if(null==(o=e)?void 0:o[S])return L();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("31988"),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,y=e.lazyImport,_=e.config,b=e.handle,w=n.parent,R=n.DeferredDataComponent,j=n.props,E=void 0===j?{}:j,k=n.reporter,S={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 _?null==_?void 0:_.handle:{}),index:e.index,element:e.element,errorElement:e.errorElement};if(e.error){var L=(0,a.jsx)(e.error,{});S.errorElement=L}if(g){if((null==w?void 0:w.loading)&&y){var C=w.loading;t=p(g)?(0,a.jsx)(g,{fallback:(0,a.jsx)(C,{})}):(0,a.jsx)(c.Suspense,{fallback:(0,a.jsx)(C,{}),children:(0,a.jsx)(g,{})})}else t=p(g)&&y?(0,a.jsx)(g,{}):x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g,(0,o._)({},E)),"undefined"==typeof document&&R&&(0,a.jsx)(R,{nonce:null==E?void 0:E.nonce})]}):y?(0,a.jsx)(c.Suspense,{fallback:null,children:(0,a.jsx)(g,{})}):(0,a.jsx)(g,{})}else e.loading=null==w?void 0:w.loading,S.element=(0,a.jsx)(s.Outlet,{});t&&(S.element=t);var A=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._)({},S),{index:!0}),m):(0,a.jsx)(s.Route,(0,i._)((0,o._)({},S),{index:!1,children:A}),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("77393");n.es(r,t)},78771:function(e,t,n){"use strict";n.r(t);var r=n("31988");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}},19336:function(e,t,n){"use strict";e.exports=n.p+"static/font/NotoSans-latin-subset.0dd84d42.woff2"},91470:function(e,t,n){"use strict";n.r(t),n.d(t,{Breadcrumbs:function(){return h}});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("52909"),d=n("7870");let p=e=>{let{location:t}=e,n=a().get(e,"handle.breadcrumb");if(a().isFunction(n)&&(n=n({location:t})),!a().isObject(n)||a().isNull(n)||!("title"in n)||!n.title)return null;let r={id:e.id,title:n.title,pathname:e.pathname};return"pathname"in n&&a().isString(n.pathname)&&(r.pathname=n.pathname),r},h=e=>{let t=[],n=(0,l.useMatches)(),u=(0,l.useLocation)(),a=[];for(let e of n){let t=p((0,o._)((0,r._)({},e),{location:u}));t&&a.push(t)}if(u.state&&"breadcrumb"in u.state){let e=p({handle:u.state.breadcrumb,pathname:u.pathname,id:"external/".concat(u.pathname),location:u});e&&a.push(e)}for(let[e,n]of Object.entries(a)){let r=[n.id,n.pathname,e];t.push((0,i.jsx)(d.Link,{color:"gray",size:"2",to:n.pathname,children:n.title},r.join("_"))),n!==a.at(-1)&&(r.push("#connector"),t.push((0,i.jsx)(s.ChevronRightIcon,{className:f.connector},r.join("_"))))}return(0,i.jsx)(c.Flex,(0,o._)((0,r._)({align:"center",height:"8",gap:"1",px:"4"},e),{children:t}))}},81881:function(e,t,n){"use strict";n.r(t),n.d(t,{Puller:function(){return c}});var r=n("5872"),o=n("39934"),i=n("24326"),u=n("99480");let a="";u.$mountPoint.then(e=>{let{hooks:t}=e;t.hookOnce("pullUp",async e=>{a=e})});let c=()=>{let e=(0,o.useNavigate)(),t=(0,i.useThrowable)(u.$mountPoint);return(0,r.useEffect)(()=>{a&&e(a),t.hooks.hook("pullUp",async t=>{e(t)})},[]),null}},70552:function(e,t,n){"use strict";n.r(t),n.d(t,{ErrorRouteHandler:function(){return a}});var r=n("86834");n("5872");var o=n("39934"),i=n("83982");let u=e=>{let{error:t}=e,n=t instanceof Error?"".concat(t.name,": ").concat(t.message):"Unknown Error",o=t instanceof Error?t.stack:Object.prototype.toString.call(t);return(0,r.jsxs)(i.Box,{p:"4",children:[(0,r.jsx)(i.Heading,{as:"h4",mb:"4",children:(0,r.jsx)(i.Text,{as:"span",children:n})}),(0,r.jsx)(i.TextArea,{disabled:!0,style:{height:"50vh"},value:o})]})},a=()=>{let e=(0,o.useRouteError)();return(0,r.jsx)(u,{resetErrorBoundary:()=>null,error:e})}},99036:function(e,t,n){"use strict";n.r(t),n.d(t,{FeatureDisabled:function(){return a}});var r=n("86834");n("5872");var o=n("83982"),i=n("29214"),u=n("32782");let a=e=>{let{title:t,children:n}=e;return(0,r.jsxs)(o.Flex,{className:u.container,mt:"9",mx:"auto",gap:"2",children:[(0,r.jsx)(o.Flex,{height:"9",align:"center",children:(0,r.jsx)(i.HiExclamationCircle,{size:"36"})}),(0,r.jsxs)(o.Box,{children:[(0,r.jsx)(o.Flex,{height:"9",align:"center",children:(0,r.jsx)(o.Heading,{children:t})}),(0,r.jsx)(o.Box,{className:u.children,children:n})]})]})}},7870: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})}))}},62766: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)})})]})}},25642: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})}))}},17700:function(e,t,n){"use strict";n.r(t);var r=n("39934");t.default=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}},19744:function(e,t,n){"use strict";n.r(t);var r=n("70552");t.default=r.ErrorRouteHandler},36466: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("81649");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)})})]})},{})}]}},99956:function(e,t,n){"use strict";n.r(t);var r=n("39934"),o=n("55058");t.default=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./builder/transformed");return(0,r.redirect)(n)}},64953:function(e,t,n){"use strict";n.r(t);var r=n("70552");t.default=r.ErrorRouteHandler},15549:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return i}});var r=n("86834"),o=n("62766");let i={breadcrumb:[{title:"Context"},{title:(0,r.jsx)(o.SelectLink,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},97815:function(e,t,n){"use strict";n.r(t);var r=n("39934"),o=n("55058");t.default=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./builder");return(0,r.redirect)(n)}},29922:function(e,t,n){"use strict";n.r(t);var r=n("86834"),o=n("39934"),i=n("83982"),u=n("42700"),a=n("55058"),c=n("99480"),s=n("70552"),l=n("99036");t.default=()=>{let e=(0,o.useRouteError)(),t=(0,u.useSnapshot)(c.$definition);if(!(e&&"object"==typeof e&&0===Object.keys(e).length))return(0,r.jsx)(s.ErrorRouteHandler,{});{let e=(0,a.parseURL)(t.doctor.quickStart).host,n=(0,r.jsxs)(i.Link,{href:t.doctor.quickStart,target:"_blank",rel:"noopener noreferrer",children:["\uD83D\uDD17",e]});return(0,r.jsx)(i.Box,{width:"100%",children:(0,r.jsxs)(l.FeatureDisabled,{title:"Doctor is not working",children:["Visit the website of ",n," to learn more."]})})}}},68605:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Doctor"}}},62522:function(e,t,n){"use strict";n.r(t);var r=n("70552");t.default=r.ErrorRouteHandler},15343:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return u}});var r=n("52493"),o=n.n(r),i=n("99480");let u={breadcrumb(e){var t;let n;let{pathname:r}=e.location,u=null===(t=r.match(/^\/external\/(\w+)/))||void 0===t?void 0:t[1],a=o().find(i.$tabs,{name:u});return a?{title:n}=a:n=u?o().startCase(u):"External",{title:n,pathname:r}}}},37650:function(e,t,n){"use strict";n.r(t);var r=n("70552");t.default=r.ErrorRouteHandler},17306:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Header Modifier"}}},15401:function(e,t,n){"use strict";n.r(t),n.d(t,{loader:function(){return i}});var r=n("39934"),o=n("81695");let i=async()=>{let e=await o.$state.service;return(0,r.redirect)(e.rules?"./editor":"./welcome")}},81695:function(e,t,n){"use strict";n.r(t),n.d(t,{$state:function(){return s},registerService:function(){return u},unregisterService:function(){return a}});var r=n("42700"),o=n("52493"),i=n.n(o);let u=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=encodeURIComponent(JSON.stringify(e)),n="".concat("/sw-proxy.js","?rules=").concat(t),r=await navigator.serviceWorker.register(n);return await navigator.serviceWorker.ready,s.service=await c(),r},a=async()=>{let e=await navigator.serviceWorker.getRegistrations(),t=!0;for(let n of e)t=t&&await n.unregister();return s.service=Promise.resolve({}),t},c=async()=>{for(let e of i().times(3))try{let e=AbortSignal.timeout(300),t=await fetch("/__devtools/service/status",{signal:e});return await t.json()}catch(e){}return{}},s=(0,r.proxy)({service:c()})},40193: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"}}},49605:function(e,t,n){"use strict";n.r(t),n.d(t,{loader:function(){return l}});var r=n("86834"),o=n("29214"),i=n("54201"),u=n("42700"),a=n("99480"),c=n("4693");let s=!1,l=async()=>{if(s)return null;s=!0;let e=await Promise.resolve(a.$definition.plugins),t=c.PluginGlobals.use();await (0,c.setupPlugins)(e);let n=[{name:"overview",title:"Overview",icon:(0,r.jsx)(o.HiOutlineHome,{}),view:{type:"builtin",src:"/overview"}},{name:"config",title:"Config",icon:(0,r.jsx)(o.HiOutlineAdjustmentsHorizontal,{}),view:{type:"builtin",src:"/config"}},{name:"pages",title:"Pages",icon:(0,r.jsx)(o.HiOutlineRectangleGroup,{}),view:{type:"builtin",src:"/pages"}},{name:"react",title:"React",icon:(0,r.jsx)(i.RiReactjsLine,{}),view:{type:"builtin",src:"/react"}},{name:"context",title:"Context",icon:(0,r.jsx)(o.HiOutlineCube,{}),view:{type:"builtin",src:"/context"}},{name:"headers",title:"Header Modifier",icon:(0,r.jsx)(o.HiOutlineAcademicCap,{}),view:{type:"builtin",src:"/headers"}},{name:"doctor",title:"Doctor",icon:(0,r.jsx)(i.RiShieldCrossLine,{}),view:{type:"builtin",src:"/doctor"}}];for(let e of(await t.callHook("tab:list",n),n))"object"==typeof e.icon&&(e.icon=(0,u.ref)(e.icon)),"external"===e.view.type&&(e.view.component=(0,u.ref)(e.view.component));return a.$tabs.length=0,a.$tabs.push(...n),null}},69748:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=n("86834");n("85983");var o=n("5872"),i=n("39934"),u=n("83982"),a=n("29214"),c=n("42700"),s=n("85378"),l=n("99480"),f=n("25642"),d=n("91470"),p=n("81881");let h=e=>{let{tab:t}=e,n="";if("builtin"===t.view.type)n=t.view.src;else if("iframe"===t.view.type)n="/iframe/".concat(t.view.src);else if("external"===t.view.type)n="/external/".concat(t.name);else throw Error('Invalid tab view of "'.concat(t.name,'".'));return(0,o.useEffect)(()=>{document.documentElement.classList.add("theme-register")},[]),(0,r.jsx)(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.Puller,{})]})}},18384:function(e,t,n){"use strict";n.r(t);var r=n("86834"),o=n("20421"),i=n("99480"),u=n("428");t.default=()=>((0,o.useUnmount)(async()=>{(await i.$mountPoint).remote.onFinishRender()}),(0,r.jsx)(u.Loading,{width:"100%",style:{height:"calc(100vh - var(--breadcrumb-height))"}}))},59448:function(e,t,n){"use strict";n.r(t);var r=n("70552");t.default=r.ErrorRouteHandler},84826:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Overview"}}},66802:function(e,t,n){"use strict";n.r(t);var r=n("39934"),o=n("55058");t.default=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./overview");return(0,r.redirect)(n)}},96303:function(e,t,n){"use strict";n.r(t);var r=n("70552");t.default=r.ErrorRouteHandler},93581:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return r}});let r={breadcrumb:{title:"Pages"}}},24757:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:function(){return i}});var r=n("86834"),o=n("62766");let i={breadcrumb:[{title:"React"},{title:(0,r.jsx)(o.SelectLink,{items:[{to:"/react/components",title:"Components"},{to:"/react/profiler",title:"Profiler"}]})}]}},92865:function(e,t,n){"use strict";n.r(t);var r=n("70552");t.default=r.ErrorRouteHandler},82193:function(e,t,n){"use strict";n.r(t);var r=n("39934"),o=n("55058");t.default=e=>{let{request:t}=e,n=(0,o.resolveURL)(t.url,"./components");return(0,r.redirect)(n)}},99480:function(e,t,n){"use strict";n.r(t),n.d(t,{$builder:function(){return v},$bundler:function(){return m},$definition:function(){return _},$dependencies:function(){return w},$framework:function(){return h},$mountPoint:function(){return f},$perf:function(){return R},$server:function(){return p},$tabs:function(){return g},VERSION:function(){return x}});var r=n("90247"),o=n("55709"),i=n("10487"),u=n("88739"),a=n("65872"),c=n("55058"),s=n("42700");let l=(0,c.stringifyParsedURL)({protocol:"https:"===location.protocol?"wss:":"ws:",host:location.host,pathname:"/__devtools/rpc"}),f=i.MessagePortChannel.link(window.parent,"channel:connect:client").then(async e=>{let t=(0,a.createHooks)();return{remote:(0,u.createBirpc)({async pullUp(e){await t.callHook("pullUp",e)}},(0,o._)((0,r._)({},e.handlers),{timeout:500})),hooks:t}}),d=new window.WebSocket(l),p=i.WebSocketChannel.link(d).then(async e=>{let t=(0,a.createHooks)();return{remote:(0,u.createBirpc)({async refresh(){location.reload()},async updateFileSystemRoutes(e){await t.callHook("updateFileSystemRoutes",e)}},e),hooks:t}}),h=(0,s.proxy)({context:p.then(e=>{let{remote:t}=e;return t.getAppContext()}),config:{resolved:p.then(e=>{let{remote:t}=e;return t.getFrameworkConfig()}),transformed:p.then(e=>{let{remote:t}=e;return t.getTransformedFrameworkConfig()})}}),v=(0,s.proxy)({context:p.then(e=>{let{remote:t}=e;return t.getBuilderContext()}),config:{resolved:p.then(e=>{let{remote:t}=e;return t.getBuilderConfig()}),transformed:p.then(e=>{let{remote:t}=e;return t.getTransformedBuilderConfig()})}}),m=(0,s.proxy)({config:{resolved:p.then(e=>{let{remote:t}=e;return t.getBundlerConfigs()}),transformed:p.then(e=>{let{remote:t}=e;return t.getTransformedBundlerConfigs()})}}),g=(0,s.proxy)([]),x="2.48.0",y=p.then(e=>{let{remote:t}=e;return t.getClientDefinition()}),_=(0,s.proxy)({name:y.then(e=>e.name),packages:y.then(e=>e.packages),assets:y.then(e=>e.assets),announcement:y.then(e=>e.announcement),doctor:y.then(e=>e.doctor),plugins:y.then(e=>e.plugins)}),b=p.then(e=>{let{remote:t}=e;return t.getDependencies()}),w=(0,s.proxy)({});b.then(e=>Object.assign(w,e));let R=(0,s.proxy)({compileDuration:p.then(e=>{let{remote:t}=e;return t.getCompileTimeCost()})})},74473:function(e,t,n){"use strict";n.r(t),n("86834"),n("5872")},38068: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}},24326:function(e,t,n){"use strict";n.r(t);var r=n("74473");n.es(r,t);var o=n("38068");n.es(o,t)},4693:function(e,t,n){"use strict";n.r(t),n.d(t,{PluginGlobals:function(){return i},setupPlugins:function(){return u}});var r=n("10487"),o=n("65872");class i extends o.Hookable{static use(){return!(r.RUNTIME_GLOBALS in window)&&(window[r.RUNTIME_GLOBALS]=new i),window[r.RUNTIME_GLOBALS]}}async function u(e){i.use();let t=e.map(e=>new Promise((t,n)=>{let r=document.createElement("script");r.onload=()=>t(),r.onerror=e=>n(e),r.src=e,document.head.appendChild(r)}));await Promise.all(t)}},81649:function(e){"use strict";e.exports={tooltip:"tooltip-ece352"}},85378: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"}},85983:function(e){}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["101","118","126","567","58","637","707","955"],function(){return t("90915"),t("92033"),t("19161"),t("19449"),t("56036")}),e.O()}]);
|