@modern-js/devtools-client 2.70.1 → 2.70.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/modern.config.json +1 -1
  2. package/dist/public/sw-proxy.js +1 -1
  3. package/dist/routes-manifest.json +21 -21
  4. package/dist/static/html/client/index.html +3 -3
  5. package/dist/static/html/mount/index.html +2 -2
  6. package/dist/static/js/async/client_config/(toolkit).(type)/{page.6f911696.js → page.66b7495b.js} +1 -1
  7. package/dist/static/js/async/client_config/{layout.1e244aab.js → layout.fda1cae7.js} +1 -1
  8. package/dist/static/js/async/client_context/{layout.2f2e4ae4.js → layout.0f40992a.js} +1 -1
  9. package/dist/static/js/async/client_external/{$.422bd531.js → $.49e5d747.js} +1 -1
  10. package/dist/static/js/async/client_external/{layout.45e4e45e.js → layout.fa2c5974.js} +1 -1
  11. package/dist/static/js/async/client_headers/{layout.8ff70c44.js → layout.cd753047.js} +1 -1
  12. package/dist/static/js/async/client_headers/welcome/{page.f5f42098.js → page.b8b545a4.js} +1 -1
  13. package/dist/static/js/async/client_overview/{layout.4ad4bffa.js → layout.7c7581c1.js} +1 -1
  14. package/dist/static/js/async/client_pages/{layout.f2461984.js → layout.8f94d14d.js} +1 -1
  15. package/dist/static/js/async/client_pages/page.0bc825a2.js +4 -0
  16. package/dist/static/js/async/client_react/(tab)/{layout.4b92826f.js → layout.b333aad9.js} +1 -1
  17. package/dist/static/js/async/client_react/(tab)/{page.d84af740.js → page.a1b43c7c.js} +1 -1
  18. package/dist/static/js/async/client_storage/preset/(id)/{page.58ada7af.js → page.b444ed06.js} +1 -1
  19. package/dist/static/js/async/client_storage/preset/{layout.3949d9e5.js → layout.a3975519.js} +1 -1
  20. package/dist/static/js/async/client_storage/preset/{page.2c4a39f1.js → page.6e3ac709.js} +1 -1
  21. package/dist/static/js/{builder-runtime.f2b37295.js → builder-runtime.d3dfccf2.js} +1 -1
  22. package/dist/static/js/client.c32e3e7f.js +1 -0
  23. package/dist/static/js/lib-router.b674b286.js +2 -0
  24. package/dist/static/js/{lib-router.2861b9d5.js.LICENSE.txt → lib-router.b674b286.js.LICENSE.txt} +3 -3
  25. package/package.json +9 -9
  26. package/dist/static/js/async/client_pages/page.4bc981c6.js +0 -4
  27. package/dist/static/js/client.8dc6d5b9.js +0 -1
  28. package/dist/static/js/lib-router.2861b9d5.js +0 -2
@@ -1 +1 @@
1
- (()=>{"use strict";var e,t,r,n,o,a,i,c,l={},s={};function d(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={id:e,loaded:!1,exports:{}};return l[e].call(r.exports,r,r.exports,d),r.loaded=!0,r.exports}if(d.m=l,d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,d.t=function(r,n){if(1&n&&(r=this(r)),8&n||"object"==typeof r&&r&&(4&n&&r.__esModule||16&n&&"function"==typeof r.then))return r;var o=Object.create(null);d.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var i=2&n&&r;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(e=>{a[e]=()=>r[e]});return a.default=()=>r,d.d(o,a),o},d.d=(e,t)=>{for(var r in t)d.o(t,r)&&!d.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},d.f={},d.e=e=>Promise.all(Object.keys(d.f).reduce((t,r)=>(d.f[r](e,t),t),[])),d.u=e=>"static/js/async/"+(({102:"client_external/layout",120:"client_pages/page",157:"client_pages/layout",172:"client_context/layout",246:"client_headers/page",305:"client_storage/preset/page",31:"client_config/(toolkit).(type)/page",34:"client_overview/layout",419:"client_overview/page",536:"client_storage/preset/layout",632:"client_config/page",635:"client_react/(tab)/layout",679:"client_headers/welcome/page",71:"client_doctor/page",748:"client_headers/editor/page",781:"client_config/layout",822:"client_react/(tab)/page",857:"client_page",866:"client_external/$",873:"client_context/builder/page",890:"client_storage/preset/(id)/page",901:"client_context/page",937:"client_react/page",939:"client_headers/layout",952:"client_context/framework/page",99:"client_react/offscreen/page"})[e]||e)+"."+({102:"45e4e45e",120:"4bc981c6",157:"f2461984",172:"2f2e4ae4",246:"83e3bd84",305:"2c4a39f1",31:"6f911696",34:"4ad4bffa",419:"13507b7e",536:"3949d9e5",632:"2c9aa752",635:"4b92826f",679:"f5f42098",71:"a076d23e",748:"29f69f31",781:"1e244aab",822:"d84af740",852:"953a9650",857:"6234f4ff",866:"422bd531",873:"b15a5956",890:"58ada7af",901:"896c9b29",937:"fc2b25d1",939:"8ff70c44",94:"23604a7e",952:"8d0a8157",99:"1f199c10"})[e]+".js",d.miniCssF=e=>"static/css/async/"+({120:"client_pages/page",305:"client_storage/preset/page",419:"client_overview/page",536:"client_storage/preset/layout",71:"client_doctor/page",748:"client_headers/editor/page",890:"client_storage/preset/(id)/page"})[e]+"."+({120:"d3851c0f",305:"c4cdd54f",419:"c0cb887a",536:"c4cdd54f",71:"c491d527",748:"84a7c425",890:"059d889d"})[e]+".css",d.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="modernjsDevtools:",d.l=function(e,t,o,a){if(r[e])return void r[e].push(t);if(void 0!==o)for(var i,c,l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var f=l[s];if(f.getAttribute("src")==e||f.getAttribute("data-rspack")==n+o){i=f;break}}i||(c=!0,(i=document.createElement("script")).timeout=120,d.nc&&i.setAttribute("nonce",d.nc),i.setAttribute("data-rspack",n+o),i.src=e),r[e]=[t];var u=function(t,n){i.onerror=i.onload=null,clearTimeout(p);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)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=u.bind(null,i.onerror),i.onload=u.bind(null,i.onload),c&&document.head.appendChild(i)},d.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),d.nc=void 0,o=[],d.O=(e,t,r,n)=>{if(t){n=n||0;for(var a=o.length;a>0&&o[a-1][2]>n;a--)o[a]=o[a-1];o[a]=[t,r,n];return}for(var i=1/0,a=0;a<o.length;a++){for(var[t,r,n]=o[a],c=!0,l=0;l<t.length;l++)(!1&n||i>=n)&&Object.keys(d.O).every(e=>d.O[e](t[l]))?t.splice(l--,1):(c=!1,n<i&&(i=n));if(c){o.splice(a--,1);var s=r();void 0!==s&&(e=s)}}return e},d.p="/","u">typeof document){var f=function(e,t,r,n,o){var a=document.createElement("link");return a.rel="stylesheet",a.type="text/css",d.nc&&(a.nonce=d.nc),a.href=t,a.onerror=a.onload=function(r){if(a.onerror=a.onload=null,"load"===r.type)n();else{var i=r&&("load"===r.type?"missing":r.type),c=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+c+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=i,l.request=c,a.parentNode&&a.parentNode.removeChild(a),o(l)}},r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a),a},u=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],a=o.getAttribute("data-href")||o.getAttribute("href");if(a&&(a=a.split("?")[0]),"stylesheet"===o.rel&&(a===e||a===t))return o}for(var i=document.getElementsByTagName("style"),n=0;n<i.length;n++){var o=i[n],a=o.getAttribute("data-href");if(a===e||a===t)return o}},p={408:0};d.f.miniCss=function(e,t){if(p[e])t.push(p[e]);else 0!==p[e]&&({120:1,305:1,419:1,536:1,71:1,748:1,890:1})[e]&&t.push(p[e]=new Promise(function(t,r){var n=d.miniCssF(e),o=d.p+n;if(u(n,o))return t();f(e,o,null,t,r)}).then(function(){p[e]=0},function(t){throw delete p[e],t}))}}a={408:0},d.f.j=function(e,t){var r=d.o(a,e)?a[e]:void 0;if(0!==r)if(r)t.push(r[2]);else if(408!=e){var n=new Promise((t,n)=>r=a[e]=[t,n]);t.push(r[2]=n);var o=d.p+d.u(e),i=Error();d.l(o,function(t){if(d.o(a,e)&&(0!==(r=a[e])&&(a[e]=void 0),r)){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r[1](i)}},"chunk-"+e,e)}else a[e]=0},d.O.j=e=>0===a[e],i=(e,t)=>{var r,n,[o,i,c]=t,l=0;if(o.some(e=>0!==a[e])){for(r in i)d.o(i,r)&&(d.m[r]=i[r]);if(c)var s=c(d)}for(e&&e(t);l<o.length;l++)n=o[l],d.o(a,n)&&a[n]&&a[n][0](),a[n]=0;return d.O(s)},(c=self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).forEach(i.bind(null,0)),c.push=i.bind(null,c.push.bind(c))})();
1
+ (()=>{"use strict";var e,t,r,n,o,a,i,c,l={},d={};function s(e){var t=d[e];if(void 0!==t)return t.exports;var r=d[e]={id:e,loaded:!1,exports:{}};return l[e].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}if(s.m=l,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(r,n){if(1&n&&(r=this(r)),8&n||"object"==typeof r&&r&&(4&n&&r.__esModule||16&n&&"function"==typeof r.then))return r;var o=Object.create(null);s.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var i=2&n&&r;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(e=>{a[e]=()=>r[e]});return a.default=()=>r,s.d(o,a),o},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>"static/js/async/"+(({102:"client_external/layout",120:"client_pages/page",157:"client_pages/layout",172:"client_context/layout",246:"client_headers/page",305:"client_storage/preset/page",31:"client_config/(toolkit).(type)/page",34:"client_overview/layout",419:"client_overview/page",536:"client_storage/preset/layout",632:"client_config/page",635:"client_react/(tab)/layout",679:"client_headers/welcome/page",71:"client_doctor/page",748:"client_headers/editor/page",781:"client_config/layout",822:"client_react/(tab)/page",857:"client_page",866:"client_external/$",873:"client_context/builder/page",890:"client_storage/preset/(id)/page",901:"client_context/page",937:"client_react/page",939:"client_headers/layout",952:"client_context/framework/page",99:"client_react/offscreen/page"})[e]||e)+"."+({102:"fa2c5974",120:"0bc825a2",157:"8f94d14d",172:"0f40992a",246:"83e3bd84",305:"6e3ac709",31:"66b7495b",34:"7c7581c1",419:"13507b7e",536:"a3975519",632:"2c9aa752",635:"b333aad9",679:"b8b545a4",71:"a076d23e",748:"29f69f31",781:"fda1cae7",822:"a1b43c7c",852:"953a9650",857:"6234f4ff",866:"49e5d747",873:"b15a5956",890:"b444ed06",901:"896c9b29",937:"fc2b25d1",939:"cd753047",94:"23604a7e",952:"8d0a8157",99:"1f199c10"})[e]+".js",s.miniCssF=e=>"static/css/async/"+({120:"client_pages/page",305:"client_storage/preset/page",419:"client_overview/page",536:"client_storage/preset/layout",71:"client_doctor/page",748:"client_headers/editor/page",890:"client_storage/preset/(id)/page"})[e]+"."+({120:"d3851c0f",305:"c4cdd54f",419:"c0cb887a",536:"c4cdd54f",71:"c491d527",748:"84a7c425",890:"059d889d"})[e]+".css",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="modernjsDevtools:",s.l=function(e,t,o,a){if(r[e])return void r[e].push(t);if(void 0!==o)for(var i,c,l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var f=l[d];if(f.getAttribute("src")==e||f.getAttribute("data-rspack")==n+o){i=f;break}}i||(c=!0,(i=document.createElement("script")).timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-rspack",n+o),i.src=e),r[e]=[t];var u=function(t,n){i.onerror=i.onload=null,clearTimeout(p);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)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=u.bind(null,i.onerror),i.onload=u.bind(null,i.onload),c&&document.head.appendChild(i)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.nc=void 0,o=[],s.O=(e,t,r,n)=>{if(t){n=n||0;for(var a=o.length;a>0&&o[a-1][2]>n;a--)o[a]=o[a-1];o[a]=[t,r,n];return}for(var i=1/0,a=0;a<o.length;a++){for(var[t,r,n]=o[a],c=!0,l=0;l<t.length;l++)(!1&n||i>=n)&&Object.keys(s.O).every(e=>s.O[e](t[l]))?t.splice(l--,1):(c=!1,n<i&&(i=n));if(c){o.splice(a--,1);var d=r();void 0!==d&&(e=d)}}return e},s.p="/","u">typeof document){var f=function(e,t,r,n,o){var a=document.createElement("link");return a.rel="stylesheet",a.type="text/css",s.nc&&(a.nonce=s.nc),a.href=t,a.onerror=a.onload=function(r){if(a.onerror=a.onload=null,"load"===r.type)n();else{var i=r&&("load"===r.type?"missing":r.type),c=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+c+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=i,l.request=c,a.parentNode&&a.parentNode.removeChild(a),o(l)}},r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a),a},u=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],a=o.getAttribute("data-href")||o.getAttribute("href");if(a&&(a=a.split("?")[0]),"stylesheet"===o.rel&&(a===e||a===t))return o}for(var i=document.getElementsByTagName("style"),n=0;n<i.length;n++){var o=i[n],a=o.getAttribute("data-href");if(a===e||a===t)return o}},p={408:0};s.f.miniCss=function(e,t){if(p[e])t.push(p[e]);else 0!==p[e]&&({120:1,305:1,419:1,536:1,71:1,748:1,890:1})[e]&&t.push(p[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(u(n,o))return t();f(e,o,null,t,r)}).then(function(){p[e]=0},function(t){throw delete p[e],t}))}}a={408:0},s.f.j=function(e,t){var r=s.o(a,e)?a[e]:void 0;if(0!==r)if(r)t.push(r[2]);else if(408!=e){var n=new Promise((t,n)=>r=a[e]=[t,n]);t.push(r[2]=n);var o=s.p+s.u(e),i=Error();s.l(o,function(t){if(s.o(a,e)&&(0!==(r=a[e])&&(a[e]=void 0),r)){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r[1](i)}},"chunk-"+e,e)}else a[e]=0},s.O.j=e=>0===a[e],i=(e,t)=>{var r,n,[o,i,c]=t,l=0;if(o.some(e=>0!==a[e])){for(r in i)s.o(i,r)&&(s.m[r]=i[r]);if(c)var d=c(s)}for(e&&e(t);l<o.length;l++)n=o[l],s.o(a,n)&&a[n]&&a[n][0](),a[n]=0;return s.O(d)},(c=self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).forEach(i.bind(null,0)),c.push=i.bind(null,c.push.bind(c))})();
@@ -0,0 +1 @@
1
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["719"],{40148(e){e.exports={}},31470(e,t,r){"use strict";r.d(t,{k:()=>d});var n=r(30255),o=r(45937),i=r(89637),a=r(78107),s=r(10002),l=r(22387),u=r(73271);let c=e=>{let{error:t}=e,r=t instanceof Error?"".concat(t.name,": ").concat(t.message):"Unknown Error",o=t instanceof Error?t.stack:Object.prototype.toString.call(t);return(0,n.jsxs)(i.a,{p:"4",children:[(0,n.jsx)(a.D,{as:"h4",mb:"4",children:(0,n.jsx)(s.E,{as:"span",children:r})}),(0,n.jsx)(l.f,{disabled:!0,style:{height:"50vh"},value:o})]})},d=()=>{let e=(0,o.r5)();return(0,u.useEffect)(()=>{console.error(e)},[e]),(0,n.jsx)(c,{resetErrorBoundary:()=>null,error:e})}},75629(e,t,r){"use strict";r.d(t,{v:()=>s});var n=r(30255),o=r(45937),i=r(75229),a=r(13675);let s=e=>{let{items:t}=e,r=(0,o.Zp)(),s=(0,o.zy)(),l=t.find(e=>(0,i.B6)(e.to,s.pathname));return(0,n.jsxs)(a.bL,{size:"1",value:null==l?void 0:l.to,onValueChange:r,children:[(0,n.jsx)(a.l9,{}),(0,n.jsx)(a.UC,{position:"popper",children:t.map(e=>{let{title:t,to:r}=e;return(0,n.jsx)(a.q7,{value:r,children:t},r)})})]})}},68069(e,t,r){"use strict";r.d(t,{r:()=>A,E:()=>k});var n=r(96816),o=r(43189),i=r(30255),a=r(8070),s=r(55499),l=r(73385);class u extends l.il{static use(){return s.RUNTIME_GLOBALS in window||(window[s.RUNTIME_GLOBALS]=new u),window[s.RUNTIME_GLOBALS]}}async function c(e){u.use();let t=e.map(e=>new Promise((t,r)=>{let n=document.createElement("script");n.onload=()=>t(),n.onerror=e=>r(e),n.src=e,document.head.appendChild(n)}));await Promise.all(t)}var d=r(20134),f=r(19512),p=r(19461),h=r.n(p),v=r(60824),m=r(83008),g=r(72522),y=r(67044),w=r(86891);let x=async()=>{let e=await s.MessagePortChannel.link(window.parent,"channel:connect:client"),t=(0,l.FF)();return{remote:(0,f.L4)({async pullUp(e){await t.callHook("pullUp",e)}},(0,o._)((0,n._)({},e.handlers),{timeout:8e3})),hooks:t}};class _ extends Error{constructor(e){super(),this.name="InitializeManifestError",this.cause=e,this.message="Failed to initialize manifest of DevTools"}}let b=async e=>{let t=await fetch(e);try{let e=await t.text();return JSON.parse(e,(0,s.reviver)())}catch(e){throw new _(e)}},j=async(e,t)=>{let r=new URL(e,location.href),i=new window.WebSocket(r),a=await s.WebSocketChannel.link(i),u=(0,l.FF)();return{remote:(0,f.L4)({async refresh(){location.reload()},async applyStateOperations(e){for(let r of e)(0,s.applyOperation)(t,r)}},(0,o._)((0,n._)({},a.handlers),{timeout:5e3})),hooks:u,url:r}},R=async()=>{let e=u.use(),t=(0,w.BX)([{name:"overview",title:"Overview",icon:(0,i.jsx)(m.pNx,{}),view:{type:"builtin",src:"/overview"}},{name:"config",title:"Config",icon:(0,i.jsx)(m.AN7,{}),view:{type:"builtin",src:"/config"}},{name:"pages",title:"Pages",icon:(0,i.jsx)(m.KUq,{}),view:{type:"builtin",src:"/pages"}},{name:"react",title:"React",icon:(0,i.jsx)(g.u3M,{}),view:{type:"builtin",src:"/react"}},{name:"context",title:"Context",icon:(0,i.jsx)(m.XVA,{}),view:{type:"builtin",src:"/context"}},{name:"headers",title:"Header Modifier",icon:(0,i.jsx)(m.lMP,{}),view:{type:"builtin",src:"/headers"}},{name:"doctor",title:"Doctor",icon:(0,i.jsx)(g.Gyc,{}),view:{type:"builtin",src:"/doctor"}},{name:"storage",title:"Storage",icon:(0,i.jsx)(m.vU0,{}),view:{type:"builtin",src:"/storage/preset"}}]);for(let r of(await e.callHook("tab:list",t),t))"object"==typeof r.icon&&(r.icon=(0,w.KR)(r.icon)),"external"===r.view.type&&(r.view.component=(0,w.KR)(r.view.component));return t},E=async e=>{let t=new d.s,r=t.bindRemote(e.remote,"sendReactDevtoolsData");await e.remote.activateReactDevtools();let n=(0,v.createBridge)(window.parent,t);n.shutdown=()=>null;let o=(0,v.createStore)(n),i=(0,v.initialize)(window.parent,{bridge:n,store:o});return{store:o,bridge:n,wallAgent:t,unreg:r,Renderer:i}},A=(async e=>{var t;let r=(0,y.mA)((0,y.vx)(e).search),i=null!=(t=h().castArray(r.src)[0])?t:(0,y.Gc)(e,"manifest"),a=x(),s=b(i),l=s.then(e=>e.websocket?j(e.websocket,(0,w.BX)(e)):null),u=s.then(e=>c(e.context.def.plugins)).then(R),d=a.then(E),[f,p,v,m,g]=await Promise.all([a,s,l,u,d]);return(0,w.BX)((0,o._)((0,n._)({},p),{version:"2.70.2",tabs:m,server:v?(0,w.KR)(v):null,mountPoint:(0,w.KR)(f),react:{devtools:{store:(0,w.KR)(g.store),bridge:(0,w.KR)(g.bridge),wallAgent:(0,w.KR)(g.wallAgent),unreg:(0,w.KR)(g.unreg),Renderer:(0,w.KR)(g.Renderer)}}}))})(location.href),k=()=>(0,a.Yx)(A)},78850(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(75229);let o=e=>{let{params:t}=e;return t.toolkit&&t.type&&["framework","builder","bundler"].includes(t.toolkit)?["resolved","transformed"].includes(t.type)?null:(0,n.V2)("/404"):(0,n.V2)("/404")}},67931(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},69713(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>h});var n=r(30255),o=r(45937),i=r(10002),a=r(83843),s=r(13675),l=r(89637),u=r(19461),c=r.n(u);let d=e=>{let{name:t,describe:r}=e,o=r.map(e=>(0,n.jsx)(i.E,{style:{display:"block"},children:e},e));return(0,n.jsx)(a.m,{className:"tooltip-i9AhnB",side:"right",content:o,children:(0,n.jsx)(s.q7,{value:t,children:(0,n.jsx)(l.a,{children:c().startCase(t)})})},t)},f=[{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."]}],p=[{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."]}],h={breadcrumb:[{title:"Config"},{title:(0,n.jsx)(()=>{let e=(0,o.zy)(),t=(0,o.Zp)(),[r,i]=e.pathname.split("/").slice(2);return(0,n.jsxs)(s.bL,{size:"1",value:r,onValueChange:e=>{t("/config/".concat(e,"/").concat(i))},children:[(0,n.jsx)(s.l9,{children:r}),(0,n.jsx)(s.UC,{children:f.map(e=>{let{name:t,describe:r}=e;return(0,n.jsx)(d,{name:t,describe:r},t)})})]})},{})},{title:(0,n.jsx)(()=>{let e=(0,o.zy)(),t=(0,o.Zp)(),[r,i]=e.pathname.split("/").slice(2);return(0,n.jsxs)(s.bL,{size:"1",value:i,onValueChange:e=>{t("/config/".concat(r,"/").concat(e))},children:[(0,n.jsx)(s.l9,{children:i}),(0,n.jsx)(s.UC,{children:p.map(e=>{let{name:t,describe:r}=e;return(0,n.jsx)(d,{name:t,describe:r},t)})})]})},{})}]}},2255(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(75229),o=r(67044);let i=e=>{let{request:t}=e,r=(0,o.Gc)(t.url,"./builder/transformed");return(0,n.V2)(r)}},86246(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},20714(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>i});var n=r(30255),o=r(75629);let i={breadcrumb:[{title:"Context"},{title:(0,n.jsx)(o.v,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},75836(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(75229),o=r(67044);let i=e=>{let{request:t}=e,r=(0,o.Gc)(t.url,"./builder");return(0,n.V2)(r)}},10595(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(30255),o=r(31470),i=r(13836),a=r(89637),s=r(78107),l=r(83008),u=r(50281);let c=e=>{let{title:t,children:r}=e;return(0,n.jsxs)(i.s,{className:u.A.container,mt:"9",mx:"auto",gap:"2",children:[(0,n.jsx)(i.s,{height:"var(--space-9)",align:"center",children:(0,n.jsx)(l.TMu,{size:"36"})}),(0,n.jsxs)(a.a,{children:[(0,n.jsx)(i.s,{height:"var(--space-9)",align:"center",children:(0,n.jsx)(s.D,{children:t})}),(0,n.jsx)(a.a,{className:u.A.children,children:r})]})]})};var d=r(68069),f=r(45937),p=r(85267),h=r(67044),v=r(63171);let m=()=>{let e=(0,f.r5)(),t=(0,d.E)(),{def:r}=(0,v.s)(t).context;if(!(e&&"object"==typeof e&&0===Object.keys(e).length))return(0,n.jsx)(o.k,{});{let e=(0,h.vx)(r.doctor.quickStart).host,t=(0,n.jsxs)(p.N,{href:r.doctor.quickStart,target:"_blank",rel:"noopener noreferrer",children:["\uD83D\uDD17",e]});return(0,n.jsx)(a.a,{width:"100%",children:(0,n.jsxs)(c,{title:"Doctor is not working",children:["Visit the website of ",t," to learn more."]})})}}},82764(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:{title:"Doctor"}}},97898(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},20564(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>s});var n=r(68069),o=r(8070),i=r(19461),a=r.n(i);let s={breadcrumb(e){var t;let r,{pathname:i}=e.location,s=null==(t=i.match(/^\/external\/(\w+)/))?void 0:t[1],{tabs:l}=(0,o.Yx)(n.r),u=a().find(l,{name:s});return u?{title:r}=u:r=s?a().startCase(s):"External",{title:r,pathname:i}}}},20005(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},7887(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:{title:"Header Modifier"}}},78462(e,t,r){"use strict";r.d(t,{w:()=>i});var n=r(75229),o=r(57900);let i=async()=>{let e=await o.AZ.service;return(0,n.V2)(e.rules?"./editor":"./welcome")}},57900(e,t,r){"use strict";r.d(t,{AZ:()=>u,DQ:()=>a,I:()=>s});var n=r(19461),o=r.n(n),i=r(86891);let a=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=encodeURIComponent(JSON.stringify(e)),r="".concat("/sw-proxy.js","?rules=").concat(t),n=await navigator.serviceWorker.register(r);return await navigator.serviceWorker.ready,u.service=await l(),n},s=async()=>{let e=await navigator.serviceWorker.getRegistrations(),t=!0;for(let r of e)t=t&&await r.unregister();return u.service=Promise.resolve({}),t},l=async()=>{for(let e of o().times(3))try{let e=AbortSignal.timeout(300),t=await fetch("/__devtools/service/status",{signal:e});return await t.json()}catch(e){}return{}},u=(0,i.BX)({service:l()})},85062(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>i});var n=r(30255),o=r(83008);let i={breadcrumb:{title:(0,n.jsx)(o.oGk,{}),pathname:"/overview"}}},51526(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>Z});var n=r(30255),o=r(96816),i=r(43189),a=r(45937),s=r(73116),l=r(13836),u=r(19461),c=r.n(u),d=r(91830),f=r(57404),p=r(37993),h=r(34991),v=r(73820),m=r(75229),g=r(8647),y=r(73271),w=r(37021);function x(e,t){return function(r){null==e||e(r),r.defaultPrevented||t(r)}}var _=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function b(){return(b=(0,p._)(function(e,t){var n,o;return(0,v._)(this,function(i){switch(i.label){case 0:if(!(n=e.id)||!t[n]||!(o=t[n].chunkIds))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all(o.map(function(e){return null===r.e||void 0===r.e?void 0:r.e(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 j=function(e,t){var r=window.location,n=r.protocol,o=r.host,i=new URL(e,"".concat(n,"//").concat(o));return i.searchParams.append("__loader",t),i.searchParams.append("__ssrDirect","true"),i},R=function(e,t,r){var o,i=e.id;return o=j("/"===r?t:"".concat(r).concat(t),i).toString(),(0,n.jsx)("link",{rel:"prefetch",as:"fetch",href:o},o)},E=function(e){var t=e.path,r=t.pathname,o=(0,y.useContext)(w.V_),i=o.routeManifest,a=o.routes,s=(i||{}).routeAssets,l=Array.isArray(a)?(0,m.ue)(a,r):[];return(Array.isArray(l)&&s&&(null==l||l.forEach(function(e){return function(e,t){return b.apply(this,arguments)}(e.route,s)})),window._SSR_DATA)?(0,n.jsx)(A,{matches:l,path:t,routeManifest:i}):null},A=function(e){var t=e.matches,r=e.path,o=e.routeManifest,i=r.pathname,s=r.search,l=r.hash,u=(0,a.FE)(),c=(0,a.$P)("/"),d=(0,y.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 r,n=new URL(location.pathname+location.search+location.hash,window.origin),o=new URL(i+s+l,window.origin),a=e.route.shouldRevalidate({currentUrl:n,currentParams:(null==(r=u[0])?void 0:r.params)||{},nextUrl:o,nextParams:e.params,defaultShouldRevalidate:!0});if("boolean"==typeof a)return a}var c=u[t];return!!(!c||c.id!==e.route.id||c.pathname!==e.pathname||c.pathname.endsWith("*")&&c.params["*"]!==e.params["*"])}).map(function(e){return R(e.route,i,c)})},[t,i,o]);return(0,n.jsx)(n.Fragment,{children:d})},k=function(e){return y.forwardRef(function(t,i){var s,l,u,c,d,p,v,m,g,w,b,j,R,A,k=t.to,S=t.prefetch,C=(0,f._)(t,["to","prefetch"]),P="string"==typeof k&&_.test(k),N=(0,h._)((s=void 0===S?"none":S,u=(l=(0,h._)(y.useState(!1),2))[0],c=l[1],p=(d=(0,h._)(y.useState(!1),2))[0],v=d[1],m=C.onFocus,g=C.onBlur,w=C.onMouseEnter,b=C.onMouseLeave,j=C.onTouchStart,y.useEffect(function(){"render"===s&&v(!0)},[s]),R=function(){"intent"===s&&c(!0)},A=function(){"intent"===s&&(c(!1),v(!1))},y.useEffect(function(){if(u){var e=setTimeout(function(){v(!0)},100);return function(){clearTimeout(e)}}},[u]),[p,{onFocus:x(m,R),onBlur:x(g,A),onMouseEnter:x(w,R),onMouseLeave:x(b,A),onTouchStart:x(j,R)}]),2),L=N[0],D=N[1],B=(0,a.x$)(k);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e,(0,o._)({ref:i,to:k},C,D)),L&&r.e&&!P?(0,n.jsx)(E,{path:B}):null]})})},S=k(g.N_);S.displayName="Link";var C=k(g.k2);C.displayName="NavLink";var P=r(85267);let N=e=>{let{to:t,children:r}=e,a=(0,f._)(e,["to","children"]);return(0,n.jsx)(P.N,(0,i._)((0,o._)({},a),{asChild:!0,children:(0,n.jsx)(S,{to:t,children:r})}))},L=e=>{let{location:t,handle:r}=e;if(!c().isObject(r)&&c().isNil(r))return[];let{breadcrumb:n}=r,o=[];c().isFunction(n)?o.push(...c().castArray(n({location:t}))):o.push(...c().castArray(n));let i=[];for(let t of o){if(!c().isObject(t)||c().isNull(t)||!("title"in t))continue;let r={id:e.id,title:t.title,pathname:e.pathname};"pathname"in t&&c().isString(t.pathname)&&(r.pathname=t.pathname),i.push(r)}return i},D=e=>{let t=[],r=(0,a.FE)(),u=(0,a.zy)(),c=[];for(let e of r)c.push(...L((0,i._)((0,o._)({},e),{location:u})));for(let[e,r]of(u.state&&"breadcrumb"in u.state&&c.push(...L({handle:u.state.breadcrumb,pathname:u.pathname,id:"external/".concat(u.pathname),location:u})),Object.entries(c))){let o=[r.id,r.pathname,e];t.push((0,n.jsx)(N,{color:"gray",size:"2",to:r.pathname,children:r.title},o.join("_"))),r!==c.at(-1)&&(o.push("#connector"),t.push((0,n.jsx)(s.vKP,{className:d.A.connector},o.join("_"))))}return(0,n.jsx)(l.s,(0,i._)((0,o._)({align:"center",height:"var(--space-8)",gap:"1",px:"4"},e),{children:t}))};var B=r(68069);let M="";B.r.then(e=>{let{mountPoint:t}=e;t.hooks.hookOnce("pullUp",async e=>{M=e})});let T=()=>{let e=(0,a.Zp)(),{mountPoint:t}=(0,B.E)();return(0,y.useEffect)(()=>{M&&e(M),t.hooks.hook("pullUp",async t=>{e(t)})},[]),null};var I=r(25177),O=r(63221);let U=e=>{let{children:t}=e,r=(0,f._)(e,["children"]),[a]=(0,I.B)();return(0,y.useEffect)(()=>{document.documentElement.classList.remove("dark","light"),document.documentElement.classList.add(a)},[a]),(0,n.jsx)(O.Sx,(0,i._)((0,o._)({},r),{appearance:a,children:t}))};var V=r(24992),q=r(83843),z=r(89637),F=r(83008),H=r(63171);let G="tab-button-MtqLNp",K="tab-button-inner-KmlACp",W=e=>{let{tab:t}=e,r="";if("builtin"===t.view.type)r=t.view.src;else if("iframe"===t.view.type)r="/iframe/".concat(t.view.src);else if("external"===t.view.type)r="/external/".concat(t.name);else throw Error('Invalid tab view of "'.concat(t.name,'".'));return(0,y.useEffect)(()=>{document.documentElement.classList.add("theme-register")},[]),(0,n.jsx)(q.m,{content:t.title,side:"right",children:(0,n.jsx)(C,{to:r,className:G,children:(0,n.jsx)(l.s,{justify:"center",align:"center",p:"1",className:K,children:(0,n.jsx)(z.a,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:t.icon})})})})},X=()=>{let{server:e}=(0,H.s)((0,B.E)());return(0,n.jsx)(q.m,{content:e?"Connected":"Disconnected",side:"right",children:(0,n.jsx)(z.a,{className:G,children:(0,n.jsxs)(z.a,{p:"1",position:"relative",className:K,children:[(0,n.jsx)(z.a,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:(0,n.jsx)(F.BSJ,{})}),(0,n.jsx)(z.a,{className:"online-indicator-E9Pryr","data-active":!!e})]})})})},J=()=>{let[e,t]=(0,I.B)();return(0,n.jsx)(q.m,{content:"Appearance",side:"right",children:(0,n.jsx)(z.a,{className:G,onClick:()=>{t("light"===e?"dark":"light")},children:(0,n.jsx)(l.s,{justify:"center",align:"center",p:"1",className:K,children:(0,n.jsx)(z.a,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:"dark"===e?(0,n.jsx)(F.DJT,{}):(0,n.jsx)(F._Nv,{})})})})})},Y=()=>{let{tabs:e}=(0,H.s)((0,B.E)());return(0,n.jsxs)(l.s,{direction:"column",flexShrink:"0",className:"navigator-O_AEE3",children:[e.map(e=>(0,n.jsx)(W,{tab:e},e.name)),(0,n.jsx)(z.a,{flexGrow:"1"}),(0,n.jsx)(X,{}),(0,n.jsx)(J,{})]})},Z=()=>(0,n.jsx)(U,{className:"wrapper-YAIt0k",accentColor:"blue",panelBackground:"solid",children:(0,n.jsxs)(V.Kq,{swipeDirection:"up",children:[(0,n.jsx)(Y,{}),(0,n.jsxs)(z.a,{width:"100%",position:"relative",pt:"4",children:[(0,n.jsx)(z.a,{width:"100%",height:"100%",position:"relative",children:(0,n.jsx)(a.sv,{})}),(0,n.jsx)(D,{className:"breadcrumbs-LVvAXj",height:"2.5rem",position:"absolute",top:"0",left:"0",right:"0"})]}),(0,n.jsx)(T,{})]})})},42211(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(30255),o=r(64921),i=r(68069),a=r(7498);let s=()=>{let{mountPoint:e}=(0,i.E)();return(0,a.A)(async()=>{e.remote.onFinishRender()}),(0,n.jsx)(o.R,{className:"loading-gmTvLE"})}},86832(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},95040(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:{title:"Overview"}}},56119(e,t,r){"use strict";r.d(t,{w:()=>i});var n=r(75229),o=r(67044);let i=e=>{let{request:t}=e,r=(0,o.Gc)(t.url,"./overview");return(0,n.V2)(r)}},26995(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},46957(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:{title:"Pages"}}},99334(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>i});var n=r(30255),o=r(75629);let i={breadcrumb:[{title:"React"},{title:(0,n.jsx)(o.v,{items:[{to:"/react/components",title:"Components"},{to:"/react/profiler",title:"Profiler"}]})}]}},12146(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},29336(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(75229),o=r(67044);let i=e=>{let{request:t}=e,r=(0,o.Gc)(t.url,"./components");return(0,n.V2)(r)}},34277(e,t,r){"use strict";r.d(t,{w:()=>s});var n=r(68069),o=r(75229),i=r(19461),a=r.n(i);let s=async e=>{let{params:t}=e,{id:r}=t;if(!r)throw TypeError("storage preset id is required");let{context:i}=await n.r,{storagePresets:s}=await Promise.resolve(i),l=a().find(s,{id:r});return l||(0,o.V2)("/storage/preset")}},13138(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:[{title:"Storage"},{title:"Preset"}]}},42768(e,t,r){"use strict";r.d(t,{X:()=>i,w:()=>o});var n=r(39319);let o=async e=>await (0,n.Ep)(),i=()=>null},35455(e,t,r){"use strict";r.d(t,{w:()=>o});var n=r(39319);let o=async e=>await (0,n.Ep)()},39319(e,t,r){"use strict";r.d(t,{Bf:()=>s,Ep:()=>c,Gq:()=>a,Z2:()=>l,ZB:()=>u});var n=r(68069),o=r(19461),i=r.n(o);let a=["cookie","localStorage","sessionStorage"],s={cookie:"yellow",localStorage:"green",sessionStorage:"blue"},l=(e,t)=>i().map(e[t],(r,n)=>{let o=[e.id,t,n].join("//");return{key:n,value:r,type:t,id:o}}),u=e=>{let t=[];for(let r of a)t.push(...l(e,r));return t},c=async e=>{let{mountPoint:t}=await n.r,[r,o,i]=await Promise.all([t.remote.cookies(null==e?void 0:e.cookie),t.remote.localStorage(null==e?void 0:e.localStorage),t.remote.sessionStorage(null==e?void 0:e.sessionStorage)]);return{cookie:r,localStorage:o,sessionStorage:i}}},8070(e,t,r){"use strict";r.d(t,{Yx:()=>o}),r(30255),r(73271),r(19461);let n=new WeakMap,o=e=>{if(!(e instanceof Promise))return e;if(n.has(e)){let t=n.get(e);if(t instanceof Error)throw t;if(!(t instanceof Promise))return t;throw t}throw n.set(e,e),e.then(t=>n.set(e,t)).catch(t=>n.set(e,t)),e}},57609(e,t,r){"use strict";r.d(t,{XX:()=>x});var n=r(37993),o=r(46757),i=r(96816),a=r(43189),s=r(34991),l=r(73820),u=r(50016),c=r(46833),d=r(37021),f=r(29571),p=r(73271);function h(e,t){return p.createElement(d.V_.Provider,{value:t},e)}var v=r(30255),m=r(26800),g=r(98780),y=function(e){var t=e.callback,r=e.children,n=(0,p.useRef)(!1);return(0,p.useLayoutEffect)(function(){n.current||(n.current=!0,t())},[t]),r},w=function(){return!0};function x(e,t){return _.apply(this,arguments)}function _(){return(_=(0,n._)(function(e,t){var r,p,x,_,R,E,A,k,S,C;function P(){return(P=(0,n._)(function(e){return(0,l._)(this,function(t){return[2,function(e,t){return b.apply(this,arguments)}(e,C)]})})).apply(this,arguments)}function N(){return(N=(0,n._)(function(e,t){return(0,l._)(this,function(r){return[2,function(e,t){return j.apply(this,arguments)}(e,C,t)]})})).apply(this,arguments)}return(0,l._)(this,function(b){var j,L,D,B,M,T,I,O,U,V,q,z,F,H,G,K,W;switch(b.label){case 0:if(r=(0,d.Ky)(),j=(0,n._)(function(e){var t,r;return(0,l._)(this,function(n){switch(n.label){case 0:return(t=(0,c.gy)()).pluginAPI.updateRuntimeContext(e),[4,t.hooks.onBeforeRender.call(e)];case 1:return n.sent(),[2,null==(r=(0,c.t8)())?void 0:r(e)]}})}),!(void 0===t||"string"==typeof t||"u">typeof HTMLElement&&(0,o._)(t,HTMLElement)))return[3,2];return p=function(e){return P.apply(this,arguments)},x=function(e,t){return N.apply(this,arguments)},T=null==(M=window._SSR_DATA)||null==(L=M.context)?void 0:L.request,k=Object.keys(A=(null==(_=(E=(0,a._)((0,i._)({},M||{renderLevel:0,mode:"string"}),{context:(0,a._)((0,i._)({},(null==M?void 0:M.context)||{}),{request:(0,a._)((0,i._)({},(null==M||null==(D=M.context)?void 0:D.request)||{}),{params:(null==T?void 0:T.params)||{},host:(null==T?void 0:T.host)||location.host,pathname:(null==T?void 0:T.pathname)||location.pathname,headers:(null==T?void 0:T.headers)||{},cookieMap:u.parse(document.cookie||"")||{},cookie:document.cookie||"",userAgent:(null==T||null==(B=T.headers)?void 0:B["user-agent"])||navigator.userAgent,referer:document.referrer,query:(0,i._)({},window.location.search.substring(1).split("&").reduce(function(e,t){var r=(0,s._)(t.split("="),2),n=r[0],o=r[1];return n&&(e[n]=o),e},{}),(null==T?void 0:T.query)||{}),url:location.href})})})).data)?void 0:_.loadersData)||{}).reduce(function(e,t){var r=A[t];return(null==r?void 0:r.loading)!==!1||(e[t]=r),e},{}),Object.assign(r,{loaderManager:(0,f.x)(k,{skipStatic:!0}),_internalRouterBaseName:e.props.basename,ssrContext:E.context}),r.initialData=null==(R=E.data)?void 0:R.initialData,[4,function(e){return j.apply(this,arguments)}(r)];case 1:if((S=b.sent())&&(r.initialData=S),C=t&&"string"!=typeof t?t:document.getElementById(t||"root"),window._SSR_DATA)return[2,(I=r,O=p,U=x,H=(0,a._)((0,i._)({},I),{get routes(){return I.routes},_hydration:!0}),G=function(){delete H._hydration},K=(null==(q=window)||null==(V=q._SSR_DATA)?void 0:V.renderLevel)||g.Bw.CLIENT_RENDER,W=(null==(F=window)||null==(z=F._SSR_DATA)?void 0:z.mode)||"string",w()&&"stream"===W?K===g.Bw.SERVER_RENDER?U(h((0,v.jsx)(function(){return(0,v.jsx)(y,{callback:G,children:e})},{}),H)):O(h(e,I)):K===g.Bw.CLIENT_RENDER||K===g.Bw.SERVER_PREFETCH?O(h(e,I)):K===g.Bw.SERVER_RENDER?new Promise(function(t){w()?(0,m.ai)(function(){U(h((0,v.jsx)(function(){return(0,v.jsx)(y,{callback:G,children:e})},{}),H)).then(function(e){t(e)})}):(0,m.ai)(function(){U(h(e,H),G).then(function(e){t(e)})})}):(console.warn("unknow render level: ".concat(K,", execute render()")),O(h(e,I))))];return[2,p(h(e,r))];case 2:throw Error("`render` function needs id in browser environment, it needs to be string or element")}})})).apply(this,arguments)}function b(){return(b=(0,n._)(function(e,t){var n;return(0,l._)(this,function(o){switch(o.label){case 0:return[4,r.e("783").then(r.t.bind(r,38987,19))];case 1:return(n=o.sent().createRoot(t)).render(e),[2,n]}})})).apply(this,arguments)}function j(){return(j=(0,n._)(function(e,t){return(0,l._)(this,function(n){switch(n.label){case 0:return[4,r.e("783").then(r.t.bind(r,38987,19))];case 1:return[2,n.sent().hydrateRoot(t,e)]}})})).apply(this,arguments)}},98780(e,t,r){"use strict";r.d(t,{Bw:()=>o,aQ:()=>a,rL:()=>i}),(n=o||(o={}))[n.CLIENT_RENDER=0]="CLIENT_RENDER",n[n.SERVER_PREFETCH=1]="SERVER_PREFETCH",n[n.SERVER_RENDER=2]="SERVER_RENDER";var n,o,i="__MODERN_SSR_DATA__",a="__MODERN_ROUTER_DATA__"},46833(e,t,r){"use strict";r.d(t,{A8:()=>u,J$:()=>o,Xj:()=>d,cG:()=>a,fn:()=>f,gy:()=>s,t8:()=>c,z_:()=>l,zm:()=>i});var n={};function o(){return n.isRscClient}function i(e){n.entryName=e.entryName,n.App=e.App,n.routes=e.routes,n.appInit=e.appInit,n.appConfig="function"==typeof e.appConfig?e.appConfig():e.appConfig,n.layoutApp=e.layoutApp,n.RSCRoot=e.RSCRoot,n.isRscClient=e.isRscClient,n.enableRsc=e.enableRsc}function a(e){n.internalRuntimeContext=e}function s(){return n.internalRuntimeContext}function l(){return n.App}function u(){return n.routes}function c(){var e,t;return n.appInit||(null==(e=l())?void 0:e.init)||(null==(t=f())?void 0:t.init)}function d(){var e,t;return n.appConfig||(null==(e=l())?void 0:e.config)||(null==(t=f())?void 0:t.config)}function f(){return n.layoutApp}},37021(e,t,r){"use strict";r.d(t,{Ky:()=>s,V_:()=>a});var n=r(18669),o=r(73271),i=r(29571),a=(0,o.createContext)({}),s=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1?arguments[1]:void 0;return{loaderManager:(0,i.x)({}),isBrowser:e,routeManifest:t||"u">typeof window&&window[n.Ae]}}},29571(e,t,r){"use strict";r.d(t,{x:()=>h});var n,o,i=r(37993),a=r(46757),s=r(34991),l=r(91345),u=r(73820),c=r(60191),d=r.n(c),f=function(){var e=new Map;return function(t){var r=e.get(t);if(r)return r;var n=JSON.stringify(t);return d()(n,"params should be not null value"),e.set(t,n),n}};(n=o||(o={}))[n.idle=0]="idle",n[n.loading=1]="loading",n[n.fulfilled=2]="fulfilled",n[n.rejected=3]="rejected";var p=function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{loading:!1,reloading:!1,data:void 0,error:void 0},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return Promise.resolve()},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=0,d=n.data,f=n.error,p=!1,h=new Set,v=(t=(0,i._)(function(){return(0,u._)(this,function(e){return s||1===c?[2,r]:(c=1,g(),[2,r=o().then(function(e){d=e,f=null,c=2}).catch(function(e){f=e,d=null,c=3}).finally(function(){r=null,p=!0,g()})])})}),function(){return t.apply(this,arguments)}),m=function(){return{loading:!p&&1===c,reloading:p&&1===c,data:d,error:(0,a._)(f,Error)?"".concat(f.message):f,_error:f}},g=function(){(0,l._)(h).forEach(function(e){e(c,m())})};return{get result(){return m()},get promise(){return r},onChange:function(e){return h.add(e),function(){h.delete(e)}},load:v}},h=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.skipStatic,o=void 0!==n&&n,l=r.skipNonStatic,c=void 0!==l&&l,d=new Map,h=f();return{hasPendingLoaders:function(){var e=!0,t=!1,r=void 0;try{for(var n,o=d.values()[Symbol.iterator]();!(e=(n=o.next()).done);e=!0){var i=n.value.promise;if((0,a._)(i,Promise))return!0}}catch(e){t=!0,r=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw r}}return!1},awaitPendingLoaders:(t=(0,i._)(function(){var e,t,r,n,o,i,l,c,f,p;return(0,u._)(this,function(u){switch(u.label){case 0:e=[],t=!0,r=!1,n=void 0;try{for(o=d[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)c=(l=(0,s._)(i.value,2))[0],p=(f=l[1]).promise,(0,a._)(p,Promise)&&e.push([c,f])}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}return[4,Promise.all(e.map(function(e){return e[1].promise}))];case 1:return u.sent(),[2,e.reduce(function(e,t){var r=(0,s._)(t,2),n=r[0],o=r[1];return e[n]=o.result,e},{})]}})}),function(){return t.apply(this,arguments)}),add:function(t,r){var n=h(r.params),i=d.get(n),a=r._cache;if(!i||!1===a){var s=c&&!r.static,l=o&&r.static;i=p(n,void 0!==e[n]?e[n]:{data:r.initialData},t,s||l),d.set(n,i)}return n},get:function(e){return d.get(e)}}}},86995(e,t,r){"use strict";r.d(t,{F:()=>j,R:()=>R});var n,o,i,a,s,l,u,c=r(91345),d=r(17089),f=r(61139),p=r(96816),h=r(57404),v=r(43189),m=r(19723),g=(o=function(e){u.clear(),n=e;var t=e.plugins,r=e.handleSetupResult;u.addPlugins(t);var o=u.getPlugins(),i=(g=(f={runtimeContext:{},config:n.config,plugins:o}).runtimeContext,y=f.config,w=f.plugins,x={},w.forEach(function(e){var t=e.registryHooks,r=void 0===t?{}:t;Object.keys(r).forEach(function(e){x[e]=r[e]})}),(0,v._)((0,p._)({},g),{hooks:(0,p._)({},{onBeforeRender:(0,m.Ve)(),wrapRoot:(0,m.Lt)(),pickContext:(0,m.Lt)(),config:(0,m.po)()},x),extendsHooks:x,config:y})),a=function(e){var t=e.context,r=e.plugins,n=t.hooks,o=t.extendsHooks;function i(){if(t){t.hooks,t.extendsHooks,t.config,t.pluginAPI;var e=(0,h._)(t,["hooks","extendsHooks","config","pluginAPI"]);return e._internalContext=t,e}throw Error("Cannot access context")}function a(e){t=(0,d.h)(t,e)}var s={};r.forEach(function(e){var t=e._registryApi;if(t){var r=t(i,a);Object.keys(r).forEach(function(e){s[e]=r[e]})}}),o&&Object.keys(o).forEach(function(e){s[e]=o[e].tap});var l=(0,p._)({updateRuntimeContext:a,getHooks:function(){return(0,p._)({},n,o)},getRuntimeConfig:function(){if(t.config)return t.config;throw Error("Cannot access config")},config:n.config.tap,onBeforeRender:n.onBeforeRender.tap,wrapRoot:n.wrapRoot.tap,pickContext:n.pickContext.tap},s);return"u"<typeof Proxy?l:new Proxy(l,{get:function(e,t){if("then"!==t)return t in e?e[t]:function(){console.warn("api.".concat(t.toString()," not exist"))}}})}({context:i,pluginManager:u,plugins:o});i.pluginAPI=a;var s=!0,l=!1,c=void 0;try{for(var f,g,y,w,x,_,b=o[Symbol.iterator]();!(s=(_=b.next()).done);s=!0){var j,R=_.value,E=null==(j=R.setup)?void 0:j.call(R,a);r&&r(E,a)}}catch(e){l=!0,c=e}finally{try{s||null==b.return||b.return()}finally{if(l)throw c}}return{runtimeContext:i}},i=new Map,a=new Map,s=function(e,t,r){a.has(t)||a.set(t,{pre:new Map,post:new Map}),"pre"===r?a.get(e).pre.set(t,{name:t,isUse:!1}):"post"===r?a.get(e).post.set(t,{name:t}):"use"!==r||a.get(e).post.has(t)||a.get(t).pre.has(e)||a.get(e).pre.set(t,{name:t,isUse:!0})},l=function(e){if(e){var t=e,r=void 0===t?"undefined":(0,f._)(t);if("object"!==r||null===t)throw Error("Expect CLI Plugin instance to be an object, but got ".concat(r,"."));if(t.setup&&"function"!=typeof t.setup)throw Error("Expect CLI Plugin plugin.setup to be a function, but got ".concat(r,"."));var n=e.name,o=e.usePlugins,u=e.pre,c=e.post;if(i.has(n))return void console.warn("Plugin ".concat(n," already exists."));i.set(n,e),a.set(n,{pre:new Map,post:new Map}),(void 0===u?[]:u).forEach(function(e){s(n,e,"pre")}),(void 0===c?[]:c).forEach(function(e){s(n,e,"post")}),(void 0===o?[]:o).forEach(function(e){i.has(e.name)||l(e),s(n,e.name,"use")})}},u={getPlugins:function(){var e=new Set,t=new Set,r=[],n=function(o){if(t.has(o))throw Error("Circular dependency detected: ".concat(o));if(!e.has(o)&&i.get(o)){t.add(o);var s=i.get(o).required;(void 0===s?[]:s).forEach(function(e){if(!i.get(e))throw Error("".concat(o," plugin required plugin ").concat(e,", but not found."))});var l=a.get(o).pre;Array.from(l.values()).filter(function(e){return!e.isUse}).forEach(function(e){return n(e.name)}),Array.from(l.values()).filter(function(e){return e.isUse}).forEach(function(e){return n(e.name)}),t.delete(o),e.add(o),r.push(i.get(o))}};return i.forEach(function(e,t){a.get(t).post.forEach(function(e){a.get(e.name).pre.has(t)||a.get(e.name).pre.set(t,{name:t,isUse:!1})})}),i.forEach(function(e,t){n(t)}),r=r.filter(function(e){return e})},addPlugins:function(e){var t=!0,r=!1,n=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=o.value;l(a)}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}},clear:function(){i.clear(),a.clear()},isPluginExists:function(e){return i.has(e)}},{run:function(e){var t=o(e).runtimeContext,r=t.hooks.config.call().filter(function(e){return!!e});return t.config=d.h.apply(void 0,[{}].concat((0,c._)(r),[t.config||{}])),{runtimeContext:t}}}),y=r(37993),w=r(73820);function x(e,t){e&&Object.keys(e).forEach(function(r){var n=e[r];if("function"==typeof n){var o="beforeRender"===r?"onBeforeRender":r;t[o]&&("beforeRender"===r?t[o]((0,y._)(function(){var e,t,r,o=arguments;return(0,w._)(this,function(i){switch(i.label){case 0:for(t=Array(e=o.length),r=0;r<e;r++)t[r]=o[r];return[4,n.apply(void 0,(0,c._)(t))];case 1:return i.sent(),[2]}})})):t[o](function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(void 0,(0,c._)(t))}))}})}var _=function(e){var t=e.ssrContext;return t?{isBrowser:e.isBrowser,request:t.request||{},response:t.response||{},logger:t.logger||{}}:{}},b=r(46833);function j(e,t){var r=(t||{}).plugins,n=g.run({plugins:[{name:"@modern-js/runtime-plugin-compat",_registryApi:function(e){return{useRuntimeConfigContext:function(){return e()._internalContext.config},useHookRunners:function(){var t,r;return t=e()._internalContext.hooks,{beforeRender:(r=(0,y._)(function(e){return(0,w._)(this,function(r){return[2,t.onBeforeRender.call(e)]})}),function(e){return r.apply(this,arguments)}),wrapRoot:function(e){return t.wrapRoot.call(e)},pickContext:function(e){return t.pickContext.call(e)},config:function(){return t.config.call()}}}}}},{name:"@modern-js/runtime-plugin-request-context",setup:function(e){e.onBeforeRender(function(e){var t=_(e);e.context=t})}}].concat((0,c._)(e),(0,c._)(void 0===r?[]:r)),config:t||{},handleSetupResult:x}).runtimeContext;return(0,b.cG)(n),n}function R(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return d.h.apply(void 0,[{},e].concat((0,c._)(r)))}},76329(e,t,r){"use strict";r.d(t,{H:()=>a});var n=function(e){var t=document.querySelectorAll("#".concat(e));if(0!==t.length){var r=t[t.length-1];if(r)try{return JSON.parse((null==r?void 0:r.textContent)||"")}catch(t){console.error("parse ".concat(e," error"),t)}}},o=r(98780),i=r(46833);function a(e){var t=e||(0,i.z_)();return"u">typeof window&&"nodejs"!==window.name&&(window._SSR_DATA=window._SSR_DATA||n(o.rL),window._ROUTER_DATA=window._ROUTER_DATA||n(o.aQ)),(0,i.gy)().hooks.wrapRoot.call(t)}},22521(e,t,r){"use strict";r.d(t,{jY:()=>X});var n=r(96816),o=r(43189),i=r(91345),a=r(30255),s=r(17089),l=r(45937),u=r(8647);function c(e){return"/"+e.replace(/^\/+|\/+$/g,"")}var d=r(73271),f=r.t(d,2),p=r(37021),h=r(46833),v=r(19723),m=(0,v.Lt)(),g=(0,v.Lt)(),y=r(37993),w=r(34991),x=r(61139),_=r(73820),b=r(86204),j=r(75229);(0,y._)(function(e){var t;return(0,_._)(this,function(r){switch(r.label){case 0:var n;return n=(0,y._)(function(e){return(0,_._)(this,function(r){switch(r.label){case 0:var n;return[4,Promise.all(e.map((n=(0,y._)(function(e){return(0,_._)(this,function(r){switch(r.label){case 0:var n;if(!("lazyImport"in e&&(n=e.component)&&(void 0===n?"undefined":(0,x._)(n))==="object"&&void 0!==n._init&&void 0!==n._payload))return[3,2];return[4,e.lazyImport()];case 1:e.component=r.sent().default,r.label=2;case 2:if(!(e.children&&Array.isArray(e.children)))return[3,4];return[4,t(e.children)];case 3:r.sent(),r.label=4;case 4:return[2]}})}),function(e){return n.apply(this,arguments)})))];case 1:return r.sent(),[2]}})}),[4,(t=function(e){return n.apply(this,arguments)})(e)];case 1:return r.sent(),[2]}})});var R=function(e,t){if(!t||!Array.isArray(t))return e;var r=new Map,o=function(e){e.forEach(function(e){e.id&&r.set(e.id,e),"children"in e&&e.children&&Array.isArray(e.children)&&o(e.children)})};o(e);var i=function(e){return e.map(function(e){if(e.id&&r.has(e.id)){var t=r.get(e.id),o=(0,n._)({loader:e.hasClientLoader?e.loader:void 0},t);return e.children&&Array.isArray(e.children)&&(o.children=i(e.children)),o}return e})};return i(t)},E=function(e,t){var r=!0,n=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){var s=i.value;if(s.id===t)return s;if(s.children&&Array.isArray(s.children)){var l=E(s.children,t);if(l)return l}}}catch(e){n=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}return null},A=function(e,t){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=R(e.routes.reduceRight(function(e,t){return e.length>0?[(0,o._)((0,n._)({},t),{children:e})]:[t]},[]),t),s=(0,u.Ys)(a,{hydrationData:e,basename:i,dataStrategy:(r=(0,y._)(function(e){var r,n,o,i,a,l,u,c,d;return(0,_._)(this,function(f){switch(f.label){case 0:var p;return r=e.request,n=e.matches,o={},i=n.filter(function(e){return e.route.hasClientLoader}),a=fetch(r.url,{headers:{"x-rsc-tree":"true"}}),l=i.length>0?Promise.all(i.map((p=(0,y._)(function(e){var r,n;return(0,_._)(this,function(o){switch(o.label){case 0:return r=E(t,e.route.id),e.route.loader=null==r?void 0:r.loader,[4,e.resolve()];case 1:return n=o.sent(),[2,{routeId:e.route.id,result:n}]}})}),function(e){return p.apply(this,arguments)}))):Promise.resolve([]),[4,a];case 1:if(c=(u=f.sent()).headers.get("X-Modernjs-Redirect"))return n.forEach(function(e){var t=e.route.id;t&&(o[t]={type:"redirect",result:(0,j.V2)(c)})}),[2,o];return[4,Promise.all([l])];case 2:return w._.apply(void 0,[f.sent(),1])[0].forEach(function(e){var t=e.routeId,r=e.result;o[t]=r}),[4,(0,b.createFromReadableStream)(u.body)];case 3:if(void 0===(d=f.sent()).type||"render"!==d.type)throw Error("Unexpected payload type");return n.forEach(function(e){var t,r=e.route.id,n=d.routes.find(function(e){return e.id===r});n&&s.patchRoutes(n.parentId,[n],!0),(null==(t=d.loaderData)?void 0:t[r])&&(o[r]={type:"data",result:d.loaderData[r]})}),[2,o]}})}),function(e){return r.apply(this,arguments)})});return s},k=r(57404),S=r(18669);function C(e){var t=.001*new Date().getTime(),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]}var P=function(e){var t=(0,w._)(C(e),2);return 1e3*t[0]+t[1]/1e6},N=function(){var e=C();return function(){return P(e)}},L="u">typeof window&&void 0!==window.document,D=function(){if(L)return console.error("You should not get async storage in browser"),null;try{return r(40148).getAsyncLocalStorage()}catch(e){return console.error("Failed to load server async storage",e),null}},B=r(67567),M=r(12209),T=r(51404),I=r(40746),O=r(64611),U=r(46757);function V(e,t){if(!1===e||null==e)throw Error(t)}var q=function(e){function t(){return(0,M._)(this,t),(0,B._)(this,t,arguments)}return(0,O._)(t,e),t}((0,r(96686)._)(Error)),z=function(e){var t,r,i,s,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=e.children,f=e.index,p=e.id,h=e.component,v=e.isRoot,m=e.lazyImport,g=e.config,w=e.handle,b=u.parent,j=u.props,R={caseSensitive:e.caseSensitive,path:e.path,id:e.id,loader:(i=(t=e).loader)?(r=(0,y._)(function(e){var r,n,o,a,s,l;return(0,_._)(this,function(u){switch(u.label){case 0:return"function"==typeof t.lazyImport&&t.lazyImport(),r=N(),[4,i(e)];case 1:n=u.sent();return o=r(),"u"<typeof document&&(null==(l=D())||null==(s=l.useContext().monitors)||s.timing("".concat(S.IV,"-").concat(null==(a=t.id)?void 0:a.replace(/\//g,"_")),o)),[2,n]}})}),function(e){return r.apply(this,arguments)}):function(){return"function"==typeof t.lazyImport&&t.lazyImport(),null},action:e.action,hasErrorBoundary:e.hasErrorBoundary,shouldRevalidate:e.shouldRevalidate,handle:(0,n._)({},w,(void 0===g?"undefined":(0,x._)(g))==="object"?null==g?void 0:g.handle:{}),index:e.index,element:e.element,errorElement:e.errorElement};if(e.error&&(R.errorElement=(0,a.jsx)(e.error,{})),h)if((null==b?void 0:b.loading)&&m){var E=b.loading;s=F(h)?(0,a.jsx)(h,{fallback:(0,a.jsx)(E,{})}):(0,a.jsx)(d.Suspense,{fallback:(0,a.jsx)(E,{}),children:(0,a.jsx)(h,{})})}else s=F(h)&&m?(0,a.jsx)(h,{}):v?(0,a.jsx)(h,(0,n._)({},void 0===j?{}:j)):m?(0,a.jsx)(d.Suspense,{fallback:null,children:(0,a.jsx)(h,{})}):(0,a.jsx)(h,{});else e.loading=null==b?void 0:b.loading,R.element=(0,a.jsx)(l.sv,{});s&&(R.element=s);var A=null==c?void 0:c.map(function(t){return z(t,{parent:e})});return f?(0,a.jsx)(l.qh,(0,o._)((0,n._)({},R),{index:!0}),p):(0,a.jsx)(l.qh,(0,o._)((0,n._)({},R),{index:!1,children:A}),p)};function F(e){return e&&"Loadable"===e.displayName&&e.preload&&"function"==typeof e.preload}var H=function(){return(0,a.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})};function G(){return null}var K=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=RegExp("".concat("/","{1,}"),"g");return(e=r.join("/").replace(o,"/"))&&"string"==typeof e&&(e.startsWith(".")&&(e=e.slice(1)),e.startsWith("/")||(e="/".concat(e)),e.endsWith("/")&&"/"!==e&&(e=e.slice(0,e.length-1))),e},W={routes:[]},X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"@modern-js/plugin-router",registryHooks:{modifyRoutes:m,onBeforeCreateRoutes:g},setup:function(t){var r={current:[]};t.onBeforeRender(function(t){if(window._SSR_DATA&&e.unstable_reloadOnURLMismatch){var n,o=t.ssrContext,i=c(window.location.pathname),a=(null==o||null==(n=o.request)?void 0:n.pathname)&&c(o.request.pathname);a&&a!==i&&(console.error("The initial URL ".concat(a," and the URL ").concat(i," to be hydrated do not match, reload.")),window.location.reload())}t.router={useMatches:l.FE,useLocation:l.zy,useHref:l.$P},Object.defineProperty(t,"routes",{get:function(){return r.current},enumerable:!0})}),t.wrapRoot(function(c){var f=(0,s.h)(t.getRuntimeConfig().router||{},e),v=f.serverBase,m=void 0===v?[]:v,g=f.supportHtml5History,y=void 0===g||g,_=f.basename,b=void 0===_?"":_,R=f.routesConfig,E=f.createRoutes,S=f.future;if(!(W=(0,n._)({routes:(0,h.A8)(),globalApp:(0,h.fn)()},R)).routes&&!E)return c;var C=function(e){return m.find(function(t){return function(e,t){var r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t||"/",n=e||"/";return n===r||n.startsWith("".concat(r,"/"))}(e,t)})||"/"};return function(e){var s,f,v,m,g,_,R,P,N,L,D,B,M,T=(s=(0,o._)((0,n._)({},e),{rscPayload:null==e?void 0:e.rscPayload}),v=(f={api:t,createRoutes:E,supportHtml5History:y,selectBasePath:C,basename:b,future:S}).api,m=f.createRoutes,g=f.supportHtml5History,_=f.selectBasePath,R=f.basename,P=(0,d.useContext)(p.V_),L="/"===(N=_(location.pathname).replace(/^\/*/,"/"))?K(N,P._internalRouterBaseName||R):N,D=P.unstable_getBlockNavState,B=(null==s?void 0:s.rscPayload)?Y(s.rscPayload):null,M=window._ROUTER_DATA||B,(0,d.useMemo)(function(){(null==M?void 0:M.errors)&&(M=(0,o._)((0,n._)({},M),{errors:function(e){if(!e)return null;var t=Object.entries(e),r={},n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=(0,w._)(a.value,2),u=l[0],c=l[1];if(c&&"RouteErrorResponse"===c.__type)r[u]=new j.VV(c.status,c.statusText,c.data,!0===c.internal);else if(c&&"Error"===c.__type){var d=Error(c.message);d.stack=c.stack,r[u]=d}else r[u]=c}}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(M.errors)}));var e=(0,h.J$)(),t=null;(t=e?m?m():function(e){var t=e.routesConfig,r=e.props,o=e.ssrMode;if(!t)return null;var i=t.routes,s=t.globalApp;return i?function e(t,r){var o=r.globalApp,i=r.ssrMode,s=r.props,l=function(e){return o?function(t){return(0,a.jsx)(o,(0,n._)({Component:e},t))}:e},u=[],c=!0,f=!1,p=void 0;try{for(var h,v=t[Symbol.iterator]();!(c=(h=v.next()).done);c=!0){var m=h.value;if("nested"===m.type){var g,y={path:m.path,id:m.id,loader:m.loader,action:m.action,hasErrorBoundary:m.hasErrorBoundary,shouldRevalidate:m.shouldRevalidate,handle:(0,n._)({},m.handle,"object"===(0,x._)(m.config)?null==(g=m.config)?void 0:g.handle:{}),index:m.index,hasClientLoader:!!m.clientData,Component:m.component?m.component:void 0,errorElement:m.error?(0,a.jsx)(m.error,{}):void 0,children:m.children?m.children.map(function(t){return e([t],{globalApp:o,ssrMode:i,props:s})[0]}):void 0};u.push(y)}else if("function"==typeof m.component||"object"===(0,x._)(m.component)){var w=l(m.component),_={path:m.path,element:d.createElement(w)};u.push(_)}}}catch(e){f=!0,p=e}finally{try{c||null==v.return||v.return()}finally{if(f)throw p}}return u.push({path:"*",element:(0,a.jsx)(H,{})}),u}(i,{globalApp:s,ssrMode:o,props:r}):null}({routesConfig:W}):m?m():(0,l.Eu)(function(e){var t=e.routesConfig,r=e.props,o=e.ssrMode;if(!t)return null;var i=t.routes,s=t.globalApp;return i?function(e,t){var r=t.globalApp,o=t.ssrMode,i=t.props,s=function(e){var t=e.Component,o=(0,k._)(e,["Component"]);return r?(0,a.jsx)(r,(0,n._)({Component:t},o)):(0,a.jsx)(t,(0,n._)({},o))},u=[],c=!0,d=!1,f=void 0;try{for(var p,h=e[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var v=p.value;if("nested"===v.type){var m=z(v,{DeferredDataComponent:"stream"===o?G:void 0,props:i});u.push(m)}else{var g=(0,a.jsx)(l.qh,{path:v.path,element:(0,a.jsx)(s,{Component:v.component})},v.path);u.push(g)}}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}return u.push((0,a.jsx)(l.qh,{path:"*",element:(0,a.jsx)(H,{})},"*")),u}(i,{globalApp:s,ssrMode:o,props:r}):null}({routesConfig:W,props:s})))||(t=[]);var r=v.getHooks();if(B)try{var c=A(B,t,L);return{router:c,routes:c.routes||[]}}catch(e){console.error("Failed to create router from RSC payload:",e)}var f=r.modifyRoutes.call(t),p=g?(0,u.Ys)(f,{basename:L,hydrationData:M}):(0,u.Ge)(f,{basename:L,hydrationData:M}),y=p.subscribe;return p.subscribe=function(e){return y(function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!(D&&D()))return e.apply(void 0,(0,i._)(r))})},{router:p,routes:f}},[W,s,L,M,D])),I=T.router;r.current=T.routes;var O=function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.pg,{router:I,future:S}),(0,a.jsx)(J,{}),(0,a.jsx)(J,{})]})};return c?(0,a.jsx)(c,{children:(0,a.jsx)(O,{})}):(0,a.jsx)(O,{})}})}}},J=function(){return null},Y=function(e){var t=f&&f.use;return"function"==typeof t?t(e):null}},24645(e,t,r){"use strict";r.d(t,{eM:()=>i,qF:()=>a,rl:()=>o});var n=r(18669),o=function(e){return function(t){var r,o,i=null==(o=window)||null==(r=o[n.Ql])?void 0:r[e];return i&&"function"==typeof i.shouldRevalidate?i.shouldRevalidate(t):t.defaultShouldRevalidate}},i=function(e,t){return"u">typeof document&&(window[n.Ql][t]=e),e},a=function(e){return console.error(e),null}},19723(e,t,r){"use strict";r.d(t,{Lt:()=>s,Ve:()=>a,po:()=>l});var n=r(37993),o=r(91345),i=r(73820);function a(){var e,t=[];return{tap:function(e){t.push(e)},call:(e=(0,n._)(function(){var e,r,n,a,s,l,u,c,d,f,p,h,v,m,g=arguments;return(0,i._)(this,function(i){switch(i.label){case 0:for(r=Array(e=g.length),n=0;n<e;n++)r[n]=g[n];a=!1,l=function(e){a=!0,s=e},u=!0,c=!1,d=void 0,i.label=1;case 1:i.trys.push([1,6,7,8]),f=t[Symbol.iterator](),i.label=2;case 2:if((u=(p=f.next()).done)||(h=p.value,a))return[3,5];return[4,h.apply(void 0,(0,o._)(r).concat([l]))];case 3:void 0!==(v=i.sent())&&(r[0]=v),i.label=4;case 4:return u=!0,[3,2];case 5:return[3,8];case 6:return m=i.sent(),c=!0,d=m,[3,8];case 7:try{u||null==f.return||f.return()}finally{if(c)throw d}return[7];case 8:return[2,a?s:r[0]||[]]}})}),function(){return e.apply(this,arguments)})}}function s(){var e=[];return{tap:function(t){e.push(t)},call:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=!0,a=!1,s=void 0;try{for(var l,u=e[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=l.value.apply(void 0,(0,o._)(r));void 0!==c&&(r[0]=c)}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return r[0]}}}function l(){var e=[];return{tap:function(t){e.push(t)},call:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=[],i=!0,a=!1,s=void 0;try{for(var l,u=e[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=(0,l.value)(r);void 0!==c&&o.push(c)}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return o}}}},17089(e,t,r){"use strict";r.d(t,{h:()=>function e(t){for(var r=arguments.length,i=Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];if(!i.length)return t;var l=i.shift();if(a(t)&&a(l))for(var u in l)a(l[u])?(t[u]||Object.assign(t,(0,n._)({},u,{})),e(t[u],l[u])):Object.assign(t,(0,n._)({},u,l[u]));return e.apply(void 0,[t].concat((0,o._)(i)))}});var n=r(40746),o=r(91345),i=r(61139);function a(e){return e&&(void 0===e?"undefined":(0,i._)(e))==="object"&&!Array.isArray(e)}},18669(e,t,r){"use strict";r.d(t,{Ae:()=>n,IV:()=>i,Ql:()=>o});var n="_MODERNJS_ROUTE_MANIFEST",o="_routeModules",i="server-loader"}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["184","422","493","514","535","783","792"],function(){return t(93125),t(89801),t(25953),t(50054),t(39325)}),e.O()}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see lib-router.b674b286.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["535"],{75229(e,t,r){var n,a,o,i;function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{AO:()=>v,B6:()=>D,Gh:()=>_,HS:()=>j,Oi:()=>d,RO:()=>C,Rr:()=>m,TM:()=>c,V2:()=>F,VV:()=>H,aE:()=>Q,pX:()=>I,pb:()=>L,rc:()=>n,ro:()=>R,tH:()=>B,ue:()=>b,yD:()=>T,zR:()=>u}),(o=n||(n={})).Pop="POP",o.Push="PUSH",o.Replace="REPLACE";let s="popstate";function u(e){return void 0===e&&(e={}),y(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:v(t)},null,e)}function c(e){return void 0===e&&(e={}),y(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=m(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:v(t))},function(e,t){h("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function d(e,t){if(!1===e||null==e)throw Error(t)}function h(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?m(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function v(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function m(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function y(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,u=o.history,c=n.Pop,h=null,m=y();function y(){return(u.state||{idx:null}).idx}function g(){c=n.Pop;let e=y(),t=null==e?null:e-m;m=e,h&&h({action:c,location:b.location,delta:t})}function w(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:v(e);return d(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==m&&(m=0,u.replaceState(l({},u.state,{idx:m}),""));let b={get action(){return c},get location(){return e(o,u)},listen(e){if(h)throw Error("A history only accepts one active listener");return o.addEventListener(s,g),h=e,()=>{o.removeEventListener(s,g),h=null}},createHref:e=>t(o,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=n.Push;let a=p(b.location,e,t);r&&r(a,e);let l=f(a,m=y()+1),s=b.createHref(a);try{u.pushState(l,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(s)}i&&h&&h({action:c,location:b.location,delta:1})},replace:function(e,t){c=n.Replace;let a=p(b.location,e,t);r&&r(a,e);let o=f(a,m=y()),l=b.createHref(a);u.replaceState(o,"",l),i&&h&&h({action:c,location:b.location,delta:0})},go:e=>u.go(e)};return b}(i=a||(a={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let g=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=l({},e,t(e),{id:i});return n[i]=r,r}{let r=l({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=w(e.children,t,o,n)),r}})}function b(e,t,r){return void 0===r&&(r="/"),E(e,t,r,!1)}function E(e,t,r,n){let a=L(("string"==typeof t?m(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{var l,s;let u,c,h={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};h.relativePath.startsWith("/")&&(d(h.relativePath.startsWith(a),'Absolute route path "'+h.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),h.relativePath=h.relativePath.slice(a.length));let f=j([a,h.relativePath]),p=n.concat(h);t.children&&t.children.length>0&&(d(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+f+'".'),e(t.children,r,p,f)),(null!=t.path||t.index)&&r.push({path:f,score:(l=f,s=t.index,c=(u=l.split("/")).length,u.some(S)&&(c+=-2),s&&(c+=2),u.filter(e=>!S(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),c)),routesMeta:p})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null;for(let e=0;null==i&&e<o.length;++e){let t=C(a);i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=D({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=D({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:j([o,c.pathname]),pathnameBase:U(j([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=j([o,c.pathnameBase]))}return i}(o[e],t,n)}return i}function R(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let x=/^:[\w-]+$/,S=e=>"*"===e;function D(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),h("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),f=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=f[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=f[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function C(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return h(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function L(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}let P=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function k(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function M(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function O(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function T(e,t){let r=O(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function _(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=m(e):(d(!(a=l({},e)).pathname||!a.pathname.includes("?"),M("?","pathname","search",a)),d(!a.pathname||!a.pathname.includes("#"),M("#","pathname","hash",a)),d(!a.search||!a.search.includes("#"),M("#","search","hash",a)));let i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){let r;void 0===t&&(t="/");let{pathname:n,search:a="",hash:o=""}="string"==typeof e?m(e):e;if(n){let e;(e=n,P.test(e))?r=n:(n.includes("//")&&h(!1,"Pathnames cannot have embedded double slashes - normalizing "+n+" -> "+(n=n.replace(/\/\/+/g,"/"))),r=n.startsWith("/")?k(n.substring(1),"/"):k(n,t))}else r=t;return{pathname:r,search:A(a),hash:z(o)}}(a,o),c=s&&"/"!==s&&s.endsWith("/"),f=(i||"."===s)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}let j=e=>e.join("/").replace(/\/\/+/g,"/"),U=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),A=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class B extends Error{}let F=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,l({},r,{headers:n}))};class H{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function I(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let N=["post","put","patch","delete"],W=new Set(N),$=new Set(["get",...N]),V=new Set([301,302,303,307,308]),q=new Set([307,308]),J={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Y={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},G={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},X=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,K=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Z="remix-router-transitions";function Q(e){let t,r,o,i,s,u,c=e.window?e.window:"u">typeof window?window:void 0,f=void 0!==c&&void 0!==c.document&&void 0!==c.document.createElement,v=!f;if(d(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=K;let m={},y=w(e.routes,t,void 0,m),g=e.basename||"/",x=e.dataStrategy||eu,S=e.patchRoutesOnNavigation,D=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),C=null,P=new Set,k=null,M=null,O=null,T=null!=e.hydrationData,_=b(y,e.history.location,g),j=!1,U=null;if(null==_&&!S){let t=eR(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eE(y);_=r,U={[n.id]:t}}if(_&&!e.hydrationData&&to(_,y,e.history.location.pathname).active&&(_=null),_)if(_.some(e=>e.route.lazy))o=!1;else if(_.some(e=>e.route.loader))if(D.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=_.findIndex(e=>void 0!==r[e.route.id]);o=_.slice(0,e+1).every(e=>!ea(e.route,t,r))}else o=_.every(e=>!ea(e.route,t,r))}else o=null!=e.hydrationData;else o=!0;else if(o=!1,_=[],D.v7_partialHydration){let t=to(null,y,e.history.location.pathname);t.active&&t.matches&&(j=!0,_=t.matches)}let A={historyAction:e.history.action,location:e.history.location,matches:_,initialized:o,navigation:J,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||U,fetchers:new Map,blockers:new Map},z=n.Pop,B=!1,F=!1,H=new Map,N=null,W=!1,$=!1,Q=[],er=new Set,eo=new Map,ei=0,es=-1,ed=new Map,ev=new Set,em=new Map,eS=new Map,eP=new Set,ej=new Map,eH=new Map;function eI(e,t){void 0===t&&(t={}),A=l({},A,e);let r=[],n=[];D.v7_fetcherPersist&&A.fetchers.forEach((e,t)=>{"idle"===e.state&&(eP.has(t)?n.push(t):r.push(t))}),eP.forEach(e=>{A.fetchers.has(e)||eo.has(e)||n.push(e)}),[...P].forEach(e=>e(A,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),D.v7_fetcherPersist?(r.forEach(e=>A.fetchers.delete(e)),n.forEach(e=>e4(e))):n.forEach(e=>eP.delete(e))}function eN(t,a,o){var i,s;let u,c,{flushSync:d}=void 0===o?{}:o,h=null!=A.actionData&&null!=A.navigation.formMethod&&eM(A.navigation.formMethod)&&"loading"===A.navigation.state&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;u=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:h?A.actionData:null;let f=a.loaderData?eg(A.loaderData,a.loaderData,a.matches||[],a.errors):A.loaderData,p=A.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,G));let v=!0===B||null!=A.navigation.formMethod&&eM(A.navigation.formMethod)&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;if(r&&(y=r,r=void 0),W||z===n.Pop||(z===n.Push?e.history.push(t,t.state):z===n.Replace&&e.history.replace(t,t.state)),z===n.Pop){let e=H.get(A.location.pathname);e&&e.has(t.pathname)?c={currentLocation:A.location,nextLocation:t}:H.has(t.pathname)&&(c={currentLocation:t,nextLocation:A.location})}else if(F){let e=H.get(A.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),H.set(A.location.pathname,e)),c={currentLocation:A.location,nextLocation:t}}eI(l({},a,{actionData:u,loaderData:f,historyAction:z,location:t,initialized:!0,navigation:J,revalidation:"idle",restoreScrollPosition:ta(t,a.matches||A.matches),preventScrollReset:v,blockers:p}),{viewTransitionOpts:c,flushSync:!0===d}),z=n.Pop,B=!1,F=!1,W=!1,$=!1,Q=[]}async function eW(t,r){if("number"==typeof t)return void e.history.go(t);let a=ee(A.location,A.matches,g,D.v7_prependBasename,t,D.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:i,error:s}=et(D.v7_normalizeFormMethod,!1,a,r),u=A.location,c=p(A.location,o,r&&r.state);c=l({},c,e.history.encodeLocation(c));let d=r&&null!=r.replace?r.replace:void 0,h=n.Push;!0===d?h=n.Replace:!1===d||null!=i&&eM(i.formMethod)&&i.formAction===A.location.pathname+A.location.search&&(h=n.Replace);let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,v=!0===(r&&r.flushSync),m=te({currentLocation:u,nextLocation:c,historyAction:h});return m?void e8(m,{state:"blocked",location:c,proceed(){e8(m,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eW(t,r)},reset(){let e=new Map(A.blockers);e.set(m,G),eI({blockers:e})}}):await e$(h,c,{submission:i,pendingError:s,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:v})}async function e$(t,n,o){var i,u,c,d;let h;s&&s.abort(),s=null,z=t,W=!0===(o&&o.startUninterruptedRevalidation),i=A.location,u=A.matches,k&&O&&(k[tn(i,u)]=O()),B=!0===(o&&o.preventScrollReset),F=!0===(o&&o.enableViewTransition);let f=r||y,p=o&&o.overrideNavigation,v=null!=o&&o.initialHydration&&A.matches&&A.matches.length>0&&!j?A.matches:b(f,n,g),m=!0===(o&&o.flushSync);if(v&&A.initialized&&!$&&(c=A.location,d=n,c.pathname===d.pathname&&c.search===d.search&&(""===c.hash?""!==d.hash:c.hash===d.hash||""!==d.hash||!1))&&!(o&&o.submission&&eM(o.submission.formMethod)))return void eN(n,{matches:v},{flushSync:m});let w=to(v,f,n.pathname);if(w.active&&w.matches&&(v=w.matches),!v){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);eN(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:m});return}s=new AbortController;let E=ep(e.history,n,s.signal,o&&o.submission);if(o&&o.pendingError)h=[eb(v).route.id,{type:a.error,error:o.pendingError}];else if(o&&o.submission&&eM(o.submission.formMethod)){let t=await eV(E,n,o.submission,v,w.active,{replace:o.replace,flushSync:m});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(eC(r)&&I(r.error)&&404===r.error.status){s=null,eN(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}v=t.matches||v,h=t.pendingActionResult,p=ez(n,o.submission),m=!1,w.active=!1,E=ep(e.history,E.url,E.signal)}let{shortCircuited:R,matches:x,loaderData:S,errors:D}=await eq(E,n,v,w.active,p,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,m,h);R||(s=null,eN(n,l({matches:x||v},ew(h),{loaderData:S,errors:D})))}async function eV(t,r,o,i,l,s){var u;let c;if(void 0===s&&(s={}),eQ(),eI({navigation:{state:"submitting",location:r,formMethod:(u=o).formMethod,formAction:u.formAction,formEncType:u.formEncType,formData:u.formData,json:u.json,text:u.text}},{flushSync:!0===s.flushSync}),l){let e=await ti(i,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eb(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:a.error,error:e.error}]}}if(e.matches)i=e.matches;else{let{notFoundMatches:e,error:t,route:n}=tt(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:a.error,error:t}]}}}let d=eU(i,r);if(d.route.action||d.route.lazy){if(c=(await eK("action",A,t,[d],i,null))[d.route.id],t.signal.aborted)return{shortCircuited:!0}}else c={type:a.error,error:eR(405,{method:t.method,pathname:r.pathname,routeId:d.route.id})};if(eL(c)){let r;return r=s&&null!=s.replace?s.replace:ef(c.response.headers.get("Location"),new URL(t.url),g,e.history)===A.location.pathname+A.location.search,await eX(t,c,!0,{submission:o,replace:r}),{shortCircuited:!0}}if(eD(c))throw eR(400,{type:"defer-action"});if(eC(c)){let e=eb(i,d.route.id);return!0!==(s&&s.replace)&&(z=n.Push),{matches:i,pendingActionResult:[e.route.id,c]}}return{matches:i,pendingActionResult:[d.route.id,c]}}async function eq(t,n,a,o,i,u,c,d,h,f,p){let v=i||ez(n,u),m=u||c||eA(v),w=!W&&(!D.v7_partialHydration||!h);if(o){if(w){let e=eJ(p);eI(l({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await ti(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eb(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let b=r||y,[E,R]=en(e.history,A,a,m,n,D.v7_partialHydration&&!0===h,D.v7_skipActionErrorRevalidation,$,Q,er,eP,em,ev,b,g,p);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||E&&E.some(t=>t.route.id===e)),es=++ei,0===E.length&&0===R.length){let e=e5();return eN(n,l({matches:a,loaderData:{},errors:p&&eC(p[1])?{[p[0]]:p[1].error}:null},ew(p),e?{fetchers:new Map(A.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(w){let e={};if(!o){e.navigation=v;let t=eJ(p);void 0!==t&&(e.actionData=t)}R.length>0&&(R.forEach(e=>{let t=A.fetchers.get(e.key),r=eB(void 0,t?t.data:void 0);A.fetchers.set(e.key,r)}),e.fetchers=new Map(A.fetchers)),eI(e,{flushSync:f})}R.forEach(e=>{e2(e.key),e.controller&&eo.set(e.key,e.controller)});let x=()=>R.forEach(e=>e2(e.key));s&&s.signal.addEventListener("abort",x);let{loaderResults:S,fetcherResults:C}=await eZ(A,a,E,R,t);if(t.signal.aborted)return{shortCircuited:!0};s&&s.signal.removeEventListener("abort",x),R.forEach(e=>eo.delete(e.key));let L=ex(S);if(L)return await eX(t,L.result,!0,{replace:d}),{shortCircuited:!0};if(L=ex(C))return ev.add(L.key),await eX(t,L.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:P,errors:k}=ey(A,a,S,p,R,C,ej);ej.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ej.delete(t)})}),D.v7_partialHydration&&h&&A.errors&&(k=l({},A.errors,k));let M=e5(),O=e6(es),T=M||O||R.length>0;return l({matches:a,loaderData:P,errors:k},T?{fetchers:new Map(A.fetchers)}:{})}function eJ(e){if(e&&!eC(e[1]))return{[e[0]]:e[1].data};if(A.actionData)if(0===Object.keys(A.actionData).length)return null;else return A.actionData}async function eY(t,n,a,o,i,l,u,c,h){var f,p;function v(e){if(!e.route.action&&!e.route.lazy){let e=eR(405,{method:h.formMethod,pathname:a,routeId:n});return e1(t,n,e,{flushSync:u}),!0}return!1}if(eQ(),em.delete(t),!l&&v(o))return;let m=A.fetchers.get(t);e0(t,(f=h,p=m,{state:"submitting",formMethod:f.formMethod,formAction:f.formAction,formEncType:f.formEncType,formData:f.formData,json:f.json,text:f.text,data:p?p.data:void 0}),{flushSync:u});let w=new AbortController,E=ep(e.history,a,w.signal,h);if(l){let e=await ti(i,new URL(E.url).pathname,E.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e1(t,n,e.error,{flushSync:u});if(!e.matches)return void e1(t,n,eR(404,{pathname:a}),{flushSync:u});if(v(o=eU(i=e.matches,a)))return}eo.set(t,w);let R=ei,x=(await eK("action",A,E,[o],i,t))[o.route.id];if(E.signal.aborted){eo.get(t)===w&&eo.delete(t);return}if(D.v7_fetcherPersist&&eP.has(t)){if(eL(x)||eC(x))return void e0(t,eF(void 0))}else{if(eL(x))return(eo.delete(t),es>R)?void e0(t,eF(void 0)):(ev.add(t),e0(t,eB(h)),eX(E,x,!1,{fetcherSubmission:h,preventScrollReset:c}));if(eC(x))return void e1(t,n,x.error)}if(eD(x))throw eR(400,{type:"defer-action"});let S=A.navigation.location||A.location,C=ep(e.history,S,w.signal),L=r||y,P="idle"!==A.navigation.state?b(L,A.navigation.location,g):A.matches;d(P,"Didn't find any matches after fetcher action");let k=++ei;ed.set(t,k);let M=eB(h,x.data);A.fetchers.set(t,M);let[O,T]=en(e.history,A,P,h,S,!1,D.v7_skipActionErrorRevalidation,$,Q,er,eP,em,ev,L,g,[o.route.id,x]);T.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=A.fetchers.get(t),n=eB(void 0,r?r.data:void 0);A.fetchers.set(t,n),e2(t),e.controller&&eo.set(t,e.controller)}),eI({fetchers:new Map(A.fetchers)});let _=()=>T.forEach(e=>e2(e.key));w.signal.addEventListener("abort",_);let{loaderResults:j,fetcherResults:U}=await eZ(A,P,O,T,C);if(w.signal.aborted)return;w.signal.removeEventListener("abort",_),ed.delete(t),eo.delete(t),T.forEach(e=>eo.delete(e.key));let B=ex(j);if(B)return eX(C,B.result,!1,{preventScrollReset:c});if(B=ex(U))return ev.add(B.key),eX(C,B.result,!1,{preventScrollReset:c});let{loaderData:F,errors:H}=ey(A,P,j,void 0,T,U,ej);if(A.fetchers.has(t)){let e=eF(x.data);A.fetchers.set(t,e)}e6(k),"loading"===A.navigation.state&&k>es?(d(z,"Expected pending action"),s&&s.abort(),eN(A.navigation.location,{matches:P,loaderData:F,errors:H,fetchers:new Map(A.fetchers)})):(eI({errors:H,loaderData:eg(A.loaderData,F,P,H),fetchers:new Map(A.fetchers)}),$=!1)}async function eG(t,r,n,a,o,i,l,s,u){let c=A.fetchers.get(t);e0(t,eB(u,c?c.data:void 0),{flushSync:l});let h=new AbortController,f=ep(e.history,n,h.signal);if(i){let e=await ti(o,new URL(f.url).pathname,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e1(t,r,e.error,{flushSync:l});if(!e.matches)return void e1(t,r,eR(404,{pathname:n}),{flushSync:l});a=eU(o=e.matches,n)}eo.set(t,h);let p=ei,v=(await eK("loader",A,f,[a],o,t))[a.route.id];if(eD(v)&&(v=await e_(v,f.signal,!0)||v),eo.get(t)===h&&eo.delete(t),!f.signal.aborted){if(eP.has(t))return void e0(t,eF(void 0));if(eL(v))if(es>p)return void e0(t,eF(void 0));else{ev.add(t),await eX(f,v,!1,{preventScrollReset:s});return}if(eC(v))return void e1(t,r,v.error);d(!eD(v),"Unhandled fetcher deferred data"),e0(t,eF(v.data))}}async function eX(t,r,a,o){let{submission:i,fetcherSubmission:u,preventScrollReset:h,replace:v}=void 0===o?{}:o;r.response.headers.has("X-Remix-Revalidate")&&($=!0);let m=r.response.headers.get("Location");d(m,"Expected a Location header on the redirect Response"),m=ef(m,new URL(t.url),g,e.history);let y=p(A.location,m,{_isRedirect:!0});if(f){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(X.test(m)){let r=e.history.createURL(m);t=r.origin!==c.location.origin||null==L(r.pathname,g)}if(t)return void(v?c.location.replace(m):c.location.assign(m))}s=null;let w=!0===v||r.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:b,formAction:E,formEncType:R}=A.navigation;!i&&!u&&b&&E&&R&&(i=eA(A.navigation));let x=i||u;if(q.has(r.response.status)&&x&&eM(x.formMethod))await e$(w,y,{submission:l({},x,{formAction:m}),preventScrollReset:h||B,enableViewTransition:a?F:void 0});else{let e=ez(y,i);await e$(w,y,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:h||B,enableViewTransition:a?F:void 0})}}async function eK(e,r,n,o,i,l){let s,u={};try{s=await ec(x,e,r,n,o,i,l,m,t)}catch(e){return o.forEach(t=>{u[t.route.id]={type:a.error,error:e}}),u}for(let[e,t]of Object.entries(s)){var c;if(ek((c=t).result)&&V.has(c.result.status)){let r=t.result;u[e]={type:a.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(d(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!X.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=ee(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,i,g,D.v7_relativeSplatPath)}}else u[e]=await eh(t)}return u}async function eZ(t,r,n,o,i){let l=t.matches,s=eK("loader",t,i,n,r,null),u=Promise.all(o.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:a.error,error:eR(404,{pathname:r.path})}});{let n=(await eK("loader",t,ep(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),c=await s,d=(await u).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eO(r,c,i.signal,l,t.loaderData),eT(r,d,o)]),{loaderResults:c,fetcherResults:d}}function eQ(){$=!0,Q.push(...tr()),em.forEach((e,t)=>{eo.has(t)&&er.add(t),e2(t)})}function e0(e,t,r){void 0===r&&(r={}),A.fetchers.set(e,t),eI({fetchers:new Map(A.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function e1(e,t,r,n){void 0===n&&(n={});let a=eb(A.matches,t);e4(e),eI({errors:{[a.route.id]:r},fetchers:new Map(A.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e7(e){return eS.set(e,(eS.get(e)||0)+1),eP.has(e)&&eP.delete(e),A.fetchers.get(e)||Y}function e4(e){let t=A.fetchers.get(e);eo.has(e)&&!(t&&"loading"===t.state&&ed.has(e))&&e2(e),em.delete(e),ed.delete(e),ev.delete(e),D.v7_fetcherPersist&&eP.delete(e),er.delete(e),A.fetchers.delete(e)}function e2(e){let t=eo.get(e);t&&(t.abort(),eo.delete(e))}function e3(e){for(let t of e){let e=eF(e7(t).data);A.fetchers.set(t,e)}}function e5(){let e=[],t=!1;for(let r of ev){let n=A.fetchers.get(r);d(n,"Expected fetcher: "+r),"loading"===n.state&&(ev.delete(r),e.push(r),t=!0)}return e3(e),t}function e6(e){let t=[];for(let[r,n]of ed)if(n<e){let e=A.fetchers.get(r);d(e,"Expected fetcher: "+r),"loading"===e.state&&(e2(r),ed.delete(r),t.push(r))}return e3(t),t.length>0}function e9(e){A.blockers.delete(e),eH.delete(e)}function e8(e,t){let r=A.blockers.get(e)||G;d("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(A.blockers);n.set(e,t),eI({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===eH.size)return;eH.size>1&&h(!1,"A router only supports one blocker at a time");let a=Array.from(eH.entries()),[o,i]=a[a.length-1],l=A.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function tt(e){let t=eR(404,{pathname:e}),{matches:n,route:a}=eE(r||y);return tr(),{notFoundMatches:n,route:a,error:t}}function tr(e){let t=[];return ej.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ej.delete(n))}),t}function tn(e,t){return M&&M(e,t.map(e=>R(e,A.loaderData)))||e.key}function ta(e,t){if(k){let r=k[tn(e,t)];if("number"==typeof r)return r}return null}function to(e,t,r){if(S){if(!e)return{active:!0,matches:E(t,r,g,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:E(t,r,g,!0)}}return{active:!1,matches:null}}async function ti(e,n,a,o){if(!S)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||y,s=m;try{await S({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||el(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(y=[...y])}if(a.aborted)return{type:"aborted"};let u=b(l,n,g);if(u)return{type:"success",matches:u};let c=E(l,n,g,!0);if(!c||i.length===c.length&&i.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};i=c}}return i={get basename(){return g},get future(){return D},get state(){return A},get routes(){return y},get window(){return c},initialize:function(){if(C=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(u){u(),u=void 0;return}h(0===eH.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=te({currentLocation:A.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{u=e});e.history.go(-1*a),e8(o,{state:"blocked",location:n,proceed(){e8(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(A.blockers);e.set(o,G),eI({blockers:e})}});return}return e$(r,n)}),f){var t=c,r=H;try{let e=t.sessionStorage.getItem(Z);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(Z,JSON.stringify(r))}catch(e){h(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(c,H);c.addEventListener("pagehide",e),N=()=>c.removeEventListener("pagehide",e)}return A.initialized||e$(n.Pop,A.location,{initialHydration:!0}),i},subscribe:function(e){return P.add(e),()=>P.delete(e)},enableScrollRestoration:function(e,t,r){if(k=e,O=t,M=r||null,!T&&A.navigation===J){T=!0;let e=ta(A.location,A.matches);null!=e&&eI({restoreScrollPosition:e})}return()=>{k=null,O=null,M=null}},navigate:eW,fetch:function(e,t,n,a){if(v)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");e2(e);let o=!0===(a&&a.flushSync),i=r||y,l=ee(A.location,A.matches,g,D.v7_prependBasename,n,D.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=b(i,l,g),u=to(s,i,l);if(u.active&&u.matches&&(s=u.matches),!s)return void e1(e,t,eR(404,{pathname:l}),{flushSync:o});let{path:c,submission:d,error:h}=et(D.v7_normalizeFormMethod,!0,l,a);if(h)return void e1(e,t,h,{flushSync:o});let f=eU(s,c),p=!0===(a&&a.preventScrollReset);d&&eM(d.formMethod)?eY(e,t,c,f,s,u.active,o,p,d):(em.set(e,{routeId:t,path:c}),eG(e,t,c,f,s,u.active,o,p,d))},revalidate:function(){if(eQ(),eI({revalidation:"loading"}),"submitting"!==A.navigation.state){if("idle"===A.navigation.state)return void e$(A.historyAction,A.location,{startUninterruptedRevalidation:!0});e$(z||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:!0===F})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e7,deleteFetcher:function(e){let t=(eS.get(e)||0)-1;t<=0?(eS.delete(e),eP.add(e),D.v7_fetcherPersist||e4(e)):eS.set(e,t),eI({fetchers:new Map(A.fetchers)})},dispose:function(){C&&C(),N&&N(),P.clear(),s&&s.abort(),A.fetchers.forEach((e,t)=>e4(t)),A.blockers.forEach((e,t)=>e9(t))},getBlocker:function(e,t){let r=A.blockers.get(e)||G;return eH.get(e)!==t&&eH.set(e,t),r},deleteBlocker:e9,patchRoutes:function(e,n){let a=null==r;el(e,n,r||y,m,t),a&&(y=[...y],eI({}))},_internalFetchControllers:eo,_internalActiveDeferreds:ej,_internalSetRoutes:function(e){r=w(e,t,void 0,m={})}}}function ee(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=_(a||".",T(s,o),L(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=ej(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:j([r,c.pathname])),v(c)}function et(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!$.has(a.toLowerCase())))return{path:r,error:eR(405,{method:n.formMethod})};let l=()=>({path:r,error:eR(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eS(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eM(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eM(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=ev(n.formData),i=n.formData;else if(n.body instanceof FormData)o=ev(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=em(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=em(o)}catch(e){return l()}let h={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eM(h.formMethod))return{path:r,submission:h};let f=m(r);return t&&f.search&&ej(f.search)&&o.append("index",""),f.search="?"+o,{path:v(f),submission:h}}function er(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function en(e,t,r,n,a,o,i,s,u,c,d,h,f,p,v,m){let y=m?eC(m[1])?m[1].error:m[1].data:void 0,g=e.createURL(t.location),w=e.createURL(a),E=r;o&&t.errors?E=er(r,Object.keys(t.errors)[0],!0):m&&eC(m[1])&&(E=er(r,m[0]));let R=m?m[1].statusCode:void 0,x=i&&R&&R>=400,S=E.filter((e,r)=>{var a,i,c;let d,h,{route:f}=e;if(f.lazy)return!0;if(null==f.loader)return!1;if(o)return ea(f,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],c=e,d=!i||c.route.id!==i.route.id,h=void 0===a[c.route.id],d||h||u.some(t=>t===e.route.id))return!0;let p=t.matches[r];return ei(e,l({currentUrl:g,currentParams:p.params,nextUrl:w,nextParams:e.params},n,{actionResult:y,actionStatus:R,defaultShouldRevalidate:!x&&(s||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||eo(p,e))}))}),D=[];return h.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||d.has(a))return;let i=b(p,e.path,v);if(!i)return void D.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(a),h=eU(i,e.path),m=!1;f.has(a)?m=!1:c.has(a)?(c.delete(a),m=!0):m=u&&"idle"!==u.state&&void 0===u.data?s:ei(h,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:R,defaultShouldRevalidate:!x&&s})),m&&D.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:h,controller:new AbortController})}),[S,D]}function ea(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function eo(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ei(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function el(e,t,r,n,a){var o;let i;if(e){let t=n[e];d(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=w(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}async function es(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];d(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;h(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||g.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}async function eu(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function ec(e,t,r,n,o,i,s,u,c,d){let h=i.map(e=>e.route.lazy?es(e.route,c,u):void 0),f=i.map((e,r)=>{let i=h[r],s=o.some(t=>t.route.id===e.route.id),u=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(s=!0),s?ed(t,n,e,i,r,d):Promise.resolve({type:a.data,result:void 0}));return l({},e,{shouldLoad:s,resolve:u})}),p=await e({matches:f,request:n,params:i[0].params,fetcherKey:s,context:d});try{await Promise.all(h)}catch(e){}return p}async function ed(e,t,r,n,o,i){let l,s,u=n=>{let a,l=new Promise((e,t)=>a=t);s=()=>a(),t.signal.addEventListener("abort",s);let u=a=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):n({request:t,params:r.params,context:i},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (o?o(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),l])};try{let o=r.route[e];if(n)if(o){let e,[t]=await Promise.all([u(o).catch(t=>{e=t}),n]);if(void 0!==e)throw e;l=t}else if(await n,o=r.route[e])l=await u(o);else{if("action"!==e)return{type:a.data,result:void 0};let n=new URL(t.url),o=n.pathname+n.search;throw eR(405,{method:t.method,pathname:o,routeId:r.route.id})}else if(o)l=await u(o);else{let e=new URL(t.url),r=e.pathname+e.search;throw eR(404,{pathname:r})}d(void 0!==l.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:a.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function eh(e){var t,r,n,o,i,l,s,u,c;let{result:d,type:h}=e;if(ek(d)){let e;try{let t=d.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==d.body?null:await d.json():await d.text()}catch(e){return{type:a.error,error:e}}return h===a.error?{type:a.error,error:new H(d.status,d.statusText,e),statusCode:d.status,headers:d.headers}:{type:a.data,data:e,statusCode:d.status,headers:d.headers}}if(h===a.error)return eP(d)?d.data instanceof Error?{type:a.error,error:d.data,statusCode:null==(n=d.init)?void 0:n.status,headers:null!=(o=d.init)&&o.headers?new Headers(d.init.headers):void 0}:{type:a.error,error:new H((null==(t=d.init)?void 0:t.status)||500,void 0,d.data),statusCode:I(d)?d.status:void 0,headers:null!=(r=d.init)&&r.headers?new Headers(d.init.headers):void 0}:{type:a.error,error:d,statusCode:I(d)?d.status:void 0};return(c=d)&&"object"==typeof c&&"object"==typeof c.data&&"function"==typeof c.subscribe&&"function"==typeof c.cancel&&"function"==typeof c.resolveData?{type:a.deferred,deferredData:d,statusCode:null==(i=d.init)?void 0:i.status,headers:(null==(l=d.init)?void 0:l.headers)&&new Headers(d.init.headers)}:eP(d)?{type:a.data,data:d.data,statusCode:null==(s=d.init)?void 0:s.status,headers:null!=(u=d.init)&&u.headers?new Headers(d.init.headers):void 0}:{type:a.data,data:d}}function ef(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(X.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e);if(a.includes(n.protocol))throw Error("Invalid redirect location");let o=null!=L(n.pathname,r);if(n.origin===t.origin&&o)return n.pathname+n.search+n.hash}try{let t=n.createURL(e);if(a.includes(t.protocol))throw Error("Invalid redirect location")}catch(e){}return e}function ep(e,t,r,n){let a=e.createURL(eS(t)).toString(),o={signal:r};if(n&&eM(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=ev(n.formData):o.body=n.formData}return new Request(a,o)}function ev(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function em(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function ey(e,t,r,n,a,o,i){let s,u,c,h,f,p,{loaderData:v,errors:m}=(u={},c=null,h=!1,f={},p=n&&eC(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(d(!eL(a),"Cannot handle redirect results in processLoaderData"),eC(a)){let e=a.error;void 0!==p&&(e=p,p=void 0),c=c||{},1;{let r=eb(t,n);null==c[r.route.id]&&(c[r.route.id]=e)}u[n]=void 0,h||(h=!0,s=I(a.error)?a.error.status:500),a.headers&&(f[n]=a.headers)}else eD(a)?(i.set(n,a.deferredData),u[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||h||(s=a.statusCode)):(u[n]=a.data,a.statusCode&&200!==a.statusCode&&!h&&(s=a.statusCode)),a.headers&&(f[n]=a.headers)}),void 0!==p&&n&&(c={[n[0]]:p},u[n[0]]=void 0),{loaderData:u,errors:c,statusCode:s||200,loaderHeaders:f});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(d(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(eC(i)){let t=eb(e.matches,null==n?void 0:n.route.id);m&&m[t.route.id]||(m=l({},m,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eL(i))d(!1,"Unhandled fetcher revalidation redirect");else if(eD(i))d(!1,"Unhandled fetcher deferred data");else{let t=eF(i.data);e.fetchers.set(r,t)}}),{loaderData:v,errors:m}}function eg(e,t,r,n){let a=l({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function ew(e){return e?eC(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eb(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eE(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eR(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new H(e||500,l,Error(s),!0)}function ex(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eL(n))return{key:r,result:n}}}function eS(e){let t="string"==typeof e?m(e):e;return v(l({},t,{hash:""}))}function eD(e){return e.type===a.deferred}function eC(e){return e.type===a.error}function eL(e){return(e&&e.type)===a.redirect}function eP(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function ek(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eM(e){return W.has(e.toLowerCase())}async function eO(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!eo(c,u)&&(a&&a[u.route.id])!==void 0;eD(s)&&d&&await e_(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function eT(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&eD(l)&&(d(i,"Expected an AbortController for revalidating fetcher deferred result"),await e_(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function e_(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:a.data,data:e.deferredData.unwrappedData}}catch(e){return{type:a.error,error:e}}return{type:a.data,data:e.deferredData.data}}}function ej(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eU(e,t){let r="string"==typeof t?m(t).search:t.search;if(e[e.length-1].route.index&&ej(r||""))return e[e.length-1];let n=O(e);return n[n.length-1]}function eA(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function ez(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eB(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eF(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},8647(e,t,r){r.d(t,{Ge:()=>g,N_:()=>M,Ys:()=>y,k2:()=>O,pg:()=>C});var n,a,o,i,l,s,u=r(73271),c=r(40626),d=r(45937),h=r(75229);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}let v=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],m=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function y(e,t){return(0,h.aE)({basename:null==t?void 0:t.basename,future:f({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,h.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||w(),routes:e,mapRouteProperties:d.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function g(e,t){return(0,h.aE)({basename:null==t?void 0:t.basename,future:f({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,h.TM)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||w(),routes:e,mapRouteProperties:d.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function w(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=f({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new h.VV(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let b=u.createContext({isTransitioning:!1}),E=u.createContext(new Map),R=(o||(o=r.t(u,2))).startTransition,x=(i||(i=r.t(c,2))).flushSync;function S(e){x?x(e):e()}(o||(o=r.t(u,2))).useId;class D{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function C(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=u.useState(r.state),[i,l]=u.useState(),[s,c]=u.useState({isTransitioning:!1}),[h,f]=u.useState(),[p,v]=u.useState(),[m,y]=u.useState(),g=u.useRef(new Map),{v7_startTransition:w}=n||{},x=u.useCallback(e=>{if(w)R?R(e):e();else e()},[w]),C=u.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)}),n.forEach(e=>g.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s)return void(a?S(()=>o(e)):x(()=>o(e)));if(a){S(()=>{p&&(h&&h.resolve(),p.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{S(()=>o(e))});t.finished.finally(()=>{S(()=>{f(void 0),v(void 0),l(void 0),c({isTransitioning:!1})})}),S(()=>v(t));return}p?(h&&h.resolve(),p.skipTransition(),y({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),c({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,p,h,g,x]);u.useLayoutEffect(()=>r.subscribe(C),[r,C]),u.useEffect(()=>{s.isTransitioning&&!s.flushSync&&f(new D)},[s]),u.useEffect(()=>{if(h&&i&&r.window){let e=h.promise,t=r.window.document.startViewTransition(async()=>{x(()=>o(i)),await e});t.finished.finally(()=>{f(void 0),v(void 0),l(void 0),c({isTransitioning:!1})}),v(t)}},[x,i,h,r.window]),u.useEffect(()=>{h&&i&&a.location.key===i.location.key&&h.resolve()},[h,p,a.location,i]),u.useEffect(()=>{!s.isTransitioning&&m&&(l(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),y(void 0))},[s.isTransitioning,m]),u.useEffect(()=>{},[]);let P=u.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),k=r.basename||"/",M=u.useMemo(()=>({router:r,navigator:P,static:!1,basename:k}),[r,P,k]),O=u.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return u.useEffect(()=>(0,d.V8)(n,r.future),[n,r.future]),u.createElement(u.Fragment,null,u.createElement(d.sp.Provider,{value:M},u.createElement(d.Rq.Provider,{value:a},u.createElement(E.Provider,{value:g.current},u.createElement(b.Provider,{value:s},u.createElement(d.Ix,{basename:k,location:a.location,navigationType:a.historyAction,navigator:P,future:O},a.initialized||r.future.v7_partialHydration?u.createElement(L,{routes:r.routes,future:r.future,state:a}):t))))),null)}let L=u.memo(function(e){let{routes:t,future:r,state:n}=e;return(0,d.ph)(t,void 0,n,r)}),P="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,k=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,M=u.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:c,preventScrollReset:m,viewTransition:y}=e,g=p(e,v),{basename:w}=u.useContext(d.jb),b=!1;if("string"==typeof c&&k.test(c)&&(r=c,P))try{let e=new URL(window.location.href),t=new URL(c.startsWith("//")?e.protocol+c:c),r=(0,h.pb)(t.pathname,w);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:b=!0}catch(e){}let E=(0,d.$P)(c,{relative:a}),R=function(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,s=(0,d.Zp)(),c=(0,d.zy)(),f=(0,d.x$)(e,{relative:i});return u.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),s(e,{replace:void 0!==n?n:(0,h.AO)(c)===(0,h.AO)(f),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[c,s,f,n,a,r,e,o,i,l])}(c,{replace:i,state:l,target:s,preventScrollReset:m,relative:a,viewTransition:y});return u.createElement("a",f({},g,{href:r||E,onClick:b||o?n:function(e){n&&n(e),e.defaultPrevented||R(e)},ref:t,target:s}))}),O=u.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:s,to:c,viewTransition:v,children:y}=e,g=p(e,m),w=(0,d.x$)(c,{relative:g.relative}),E=(0,d.zy)(),R=u.useContext(d.Rq),{navigator:x,basename:S}=u.useContext(d.jb),D=null!=R&&function(e,t){let r;void 0===t&&(t={});let n=u.useContext(b);null==n&&(0,h.Oi)(!1);let{basename:a}=(l.useViewTransitionState,(r=u.useContext(d.sp))||(0,h.Oi)(!1),r),o=(0,d.x$)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=(0,h.pb)(n.currentLocation.pathname,a)||n.currentLocation.pathname,s=(0,h.pb)(n.nextLocation.pathname,a)||n.nextLocation.pathname;return null!=(0,h.B6)(o.pathname,s)||null!=(0,h.B6)(o.pathname,i)}(w)&&!0===v,C=x.encodeLocation?x.encodeLocation(w).pathname:w.pathname,L=E.pathname,P=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;a||(L=L.toLowerCase(),P=P?P.toLowerCase():null,C=C.toLowerCase()),P&&S&&(P=(0,h.pb)(P,S)||P);let k="/"!==C&&C.endsWith("/")?C.length-1:C.length,O=L===C||!i&&L.startsWith(C)&&"/"===L.charAt(k),T=null!=P&&(P===C||!i&&P.startsWith(C)&&"/"===P.charAt(C.length)),_={isActive:O,isPending:T,isTransitioning:D},j=O?n:void 0;r="function"==typeof o?o(_):[o,O?"active":null,T?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let U="function"==typeof s?s(_):s;return u.createElement(M,f({},g,{"aria-current":j,className:r,ref:t,style:U,to:c,viewTransition:v}),"function"==typeof y?y(_):y)});(n=l||(l={})).UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState",(a=s||(s={})).UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"},45937(e,t,r){r.d(t,{$P:()=>m,BV:()=>$,Eu:()=>q,FE:()=>U,Ix:()=>W,LG:()=>A,RQ:()=>w,Rq:()=>d,V8:()=>H,Zp:()=>E,g:()=>x,jb:()=>h,ph:()=>D,qh:()=>N,r5:()=>z,sp:()=>c,sv:()=>I,vL:()=>j,wE:()=>J,x$:()=>S,zy:()=>g});var n,a,o,i,l=r(73271),s=r(75229);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let c=l.createContext(null),d=l.createContext(null),h=l.createContext(null),f=l.createContext(null),p=l.createContext({outlet:null,matches:[],isDataRoute:!1}),v=l.createContext(null);function m(e,t){let{relative:r}=void 0===t?{}:t;y()||(0,s.Oi)(!1);let{basename:n,navigator:a}=l.useContext(h),{hash:o,pathname:i,search:u}=S(e,{relative:r}),c=i;return"/"!==n&&(c="/"===i?n:(0,s.HS)([n,i])),a.createHref({pathname:c,search:u,hash:o})}function y(){return null!=l.useContext(f)}function g(){return y()||(0,s.Oi)(!1),l.useContext(f).location}function w(e){y()||(0,s.Oi)(!1);let{pathname:t}=g();return l.useMemo(()=>(0,s.B6)(e,(0,s.RO)(t)),[t,e])}function b(e){l.useContext(h).static||l.useLayoutEffect(e)}function E(){let{isDataRoute:e}=l.useContext(p);return e?function(){let{router:e}=O(k.UseNavigateStable),t=_(M.UseNavigateStable),r=l.useRef(!1);return b(()=>{r.current=!0}),l.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,u({fromRouteId:t},a)))},[e,t])}():function(){y()||(0,s.Oi)(!1);let e=l.useContext(c),{basename:t,future:r,navigator:n}=l.useContext(h),{matches:a}=l.useContext(p),{pathname:o}=g(),i=JSON.stringify((0,s.yD)(a,r.v7_relativeSplatPath)),u=l.useRef(!1);return b(()=>{u.current=!0}),l.useCallback(function(r,a){if(void 0===a&&(a={}),!u.current)return;if("number"==typeof r)return void n.go(r);let l=(0,s.Gh)(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,s.HS)([t,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)},[t,n,i,o,e])}()}let R=l.createContext(null);function x(){let{matches:e}=l.useContext(p),t=e[e.length-1];return t?t.params:{}}function S(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=l.useContext(h),{matches:a}=l.useContext(p),{pathname:o}=g(),i=JSON.stringify((0,s.yD)(a,n.v7_relativeSplatPath));return l.useMemo(()=>(0,s.Gh)(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function D(e,t,r,n){let a;y()||(0,s.Oi)(!1);let{navigator:o}=l.useContext(h),{matches:i}=l.useContext(p),c=i[i.length-1],d=c?c.params:{};c&&c.pathname;let v=c?c.pathnameBase:"/";c&&c.route;let m=g();if(t){var w;let e="string"==typeof t?(0,s.Rr)(t):t;"/"===v||(null==(w=e.pathname)?void 0:w.startsWith(v))||(0,s.Oi)(!1),a=e}else a=m;let b=a.pathname||"/",E=b;if("/"!==v){let e=v.replace(/^\//,"").split("/");E="/"+b.replace(/^\//,"").split("/").slice(e.length).join("/")}let R=(0,s.ue)(e,{pathname:E}),x=function(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,u=null==(a=r)?void 0:a.errors;if(null!=u){let e=i.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id])!==void 0);e>=0||(0,s.Oi)(!1),i=i.slice(0,Math.min(i.length,e+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){c=!0,i=d>=0?i.slice(0,d+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{var o;let s,h=!1,f=null,p=null;r&&(s=u&&n.route.id?u[n.route.id]:void 0,f=n.route.errorElement||C,c&&(d<0&&0===a?(o="route-fallback",B[o]||(B[o]=!0),h=!0,p=null):d===a&&(h=!0,p=n.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,a+1)),m=()=>{let t;return t=s?f:h?p:n.route.Component?l.createElement(n.route.Component,null):n.route.element?n.route.element:e,l.createElement(P,{match:n,routeContext:{outlet:e,matches:v,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?l.createElement(L,{location:r.location,revalidation:r.revalidation,component:f,error:s,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}(R&&R.map(e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:(0,s.HS)([v,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,s.HS)([v,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&x?l.createElement(f.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:s.rc.Pop}},x):x}let C=l.createElement(function(){let e=z(),t=(0,s.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),r?l.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class L extends l.Component{static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?l.createElement(p.Provider,{value:this.props.routeContext},l.createElement(v.Provider,{value:this.state.error,children:this.props.component})):this.props.children}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}}function P(e){let{routeContext:t,match:r,children:n}=e,a=l.useContext(c);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),l.createElement(p.Provider,{value:t},n)}var k=((n=k||{}).UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n),M=((a=M||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function O(e){let t=l.useContext(c);return t||(0,s.Oi)(!1),t}function T(e){let t=l.useContext(d);return t||(0,s.Oi)(!1),t}function _(e){let t,r=((t=l.useContext(p))||(0,s.Oi)(!1),t),n=r.matches[r.matches.length-1];return n.route.id||(0,s.Oi)(!1),n.route.id}function j(){let e=O(k.UseRevalidator),t=T(M.UseRevalidator);return l.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function U(){let{matches:e,loaderData:t}=T(M.UseMatches);return l.useMemo(()=>e.map(e=>(0,s.ro)(e,t)),[e,t])}function A(){let e=T(M.UseLoaderData),t=_(M.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function z(){var e;let t=l.useContext(v),r=T(M.UseRouteError),n=_(M.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}let B={},F=(e,t,r)=>{};function H(e,t){(null==e?void 0:e.v7_startTransition)===void 0&&F("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&void 0!==t.v7_relativeSplatPath||F("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&F("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&F("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&F("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&F("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function I(e){var t;let r;return t=e.context,(r=l.useContext(p).outlet)?l.createElement(R.Provider,{value:t},r):r}function N(e){(0,s.Oi)(!1)}function W(e){let{basename:t="/",children:r=null,location:n,navigationType:a=s.rc.Pop,navigator:o,static:i=!1,future:c}=e;y()&&(0,s.Oi)(!1);let d=t.replace(/^\/*/,"/"),p=l.useMemo(()=>({basename:d,navigator:o,static:i,future:u({v7_relativeSplatPath:!1},c)}),[d,c,o,i]);"string"==typeof n&&(n=(0,s.Rr)(n));let{pathname:v="/",search:m="",hash:g="",state:w=null,key:b="default"}=n,E=l.useMemo(()=>{let e=(0,s.pb)(v,d);return null==e?null:{location:{pathname:e,search:m,hash:g,state:w,key:b},navigationType:a}},[d,v,m,g,w,b,a]);return null==E?null:l.createElement(h.Provider,{value:p},l.createElement(f.Provider,{children:r,value:E}))}function $(e){let{children:t,location:r}=e;return D(q(t),r)}(i||(i=r.t(l,2))).startTransition;var V=((o=V||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);function q(e,t){void 0===t&&(t=[]);let r=[];return l.Children.forEach(e,(e,n)=>{if(!l.isValidElement(e))return;let a=[...t,n];if(e.type===l.Fragment)return void r.push.apply(r,q(e.props.children,a));e.type!==N&&(0,s.Oi)(!1),e.props.index&&e.props.children&&(0,s.Oi)(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=q(e.props.children,a)),r.push(o)}),r}function J(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:l.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:l.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:l.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}new Promise(()=>{}),l.Component}}]);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/router v1.20.0
2
+ * @remix-run/router v1.23.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -10,7 +10,7 @@
10
10
  */
11
11
 
12
12
  /**
13
- * React Router DOM v6.27.0
13
+ * React Router DOM v6.30.3
14
14
  *
15
15
  * Copyright (c) Remix Software Inc.
16
16
  *
@@ -21,7 +21,7 @@
21
21
  */
22
22
 
23
23
  /**
24
- * React Router v6.27.0
24
+ * React Router v6.30.3
25
25
  *
26
26
  * Copyright (c) Remix Software Inc.
27
27
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/devtools-client",
3
- "version": "2.70.1",
3
+ "version": "2.70.2",
4
4
  "engines": {
5
5
  "node": ">=14.0.0"
6
6
  },
@@ -57,14 +57,14 @@
57
57
  "typescript": "~5.0.4",
58
58
  "ufo": "^1.3.0",
59
59
  "valtio": "^1.11.1",
60
- "@modern-js/app-tools": "2.70.1",
61
- "@modern-js/plugin-proxy": "2.70.1",
62
- "@modern-js/devtools-kit": "2.70.1",
63
- "@modern-js/runtime": "2.70.1",
64
- "@modern-js/tsconfig": "2.70.1",
65
- "@scripts/jest-config": "2.66.0",
66
- "@modern-js/types": "2.70.1",
67
- "@modern-js/utils": "2.70.1"
60
+ "@modern-js/app-tools": "2.70.2",
61
+ "@modern-js/devtools-kit": "2.70.2",
62
+ "@modern-js/plugin-proxy": "2.70.2",
63
+ "@modern-js/tsconfig": "2.70.2",
64
+ "@modern-js/runtime": "2.70.2",
65
+ "@modern-js/types": "2.70.2",
66
+ "@modern-js/utils": "2.70.2",
67
+ "@scripts/jest-config": "2.66.0"
68
68
  },
69
69
  "dependencies": {
70
70
  "cookie-es": "^1.0.0"
@@ -1,4 +0,0 @@
1
- "use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["120"],{77731(e,t,r){function a(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function l(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}r.d(t,{AU:()=>l,Bd:()=>s,on:()=>a});var s="u">typeof window},22076(e,t,r){r.r(t),r.d(t,{default:()=>ez});var a=r(30255),l=r(73271),s=r.t(l,2);let n=(0,l.createContext)({url:""});var i=r(19461),o=r.n(i),c=r(13836),u=r(79400),d=r(1956),m=r(8193),p=r(62586);let f={...m.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"1",responsive:!0},...p.F,scrollbars:{type:"enum",values:["vertical","horizontal","both"],default:"both"}};var h=r(94631),v=r(78547),x=r(14953);let y=x.y.m.values,N=l.forwardRef((e,t)=>{let{rest:r,...a}=function(e){let{m:t,mx:r,my:a,mt:l,mr:s,mb:n,ml:i,...o}=e;return{m:t,mx:r,my:a,mt:l,mr:s,mb:n,ml:i,rest:o}}(e),[s,n]=function(e){let[t,r]=(0,h.tF)({className:"rt-r-m",customProperties:["--margin"],propValues:y,value:e.m}),[a,l]=(0,h.tF)({className:"rt-r-mx",customProperties:["--margin-left","--margin-right"],propValues:y,value:e.mx}),[s,n]=(0,h.tF)({className:"rt-r-my",customProperties:["--margin-top","--margin-bottom"],propValues:y,value:e.my}),[i,o]=(0,h.tF)({className:"rt-r-mt",customProperties:["--margin-top"],propValues:y,value:e.mt}),[c,d]=(0,h.tF)({className:"rt-r-mr",customProperties:["--margin-right"],propValues:y,value:e.mr}),[m,p]=(0,h.tF)({className:"rt-r-mb",customProperties:["--margin-bottom"],propValues:y,value:e.mb}),[f,x]=(0,h.tF)({className:"rt-r-ml",customProperties:["--margin-left"],propValues:y,value:e.ml});return[u(t,a,s,i,c,m,f),(0,v.Z)(r,l,n,o,d,p,x)]}(a),{asChild:i,children:o,className:c,style:m,type:p,scrollHideDelay:x="scroll"!==p?0:void 0,dir:N,size:g=f.size.default,radius:j=f.radius.default,scrollbars:b=f.scrollbars.default,...C}=r;return l.createElement(d.bL,{type:p,scrollHideDelay:x,className:u("rt-ScrollAreaRoot",s,c),style:(0,v.Z)(n,m),asChild:i},function(e,t){let{asChild:r,children:a}=e;if(!r)return"function"==typeof t?t(a):t;let s=l.Children.only(a);return l.cloneElement(s,{children:"function"==typeof t?t(s.props.children):t})}({asChild:i,children:o},e=>l.createElement(l.Fragment,null,l.createElement(d.LM,{...C,ref:t,className:"rt-ScrollAreaViewport"},e),l.createElement("div",{className:"rt-ScrollAreaViewportFocusRing"}),"vertical"!==b?l.createElement(d.Ze,{"data-radius":j,orientation:"horizontal",className:u("rt-ScrollAreaScrollbar",(0,h.J_)({className:"rt-r-size",value:g,propValues:f.size.values}))},l.createElement(d.zi,{className:"rt-ScrollAreaThumb"})):null,"horizontal"!==b?l.createElement(d.Ze,{"data-radius":j,orientation:"vertical",className:u("rt-ScrollAreaScrollbar",(0,h.J_)({className:"rt-r-size",value:g,propValues:f.size.values}))},l.createElement(d.zi,{className:"rt-ScrollAreaThumb"})):null,"both"===b?l.createElement(d.OK,{className:"rt-ScrollAreaCorner"}):null)))});N.displayName="ScrollArea";var g=r(25573),j=r(5385),b=r(79180),C=r(48207),E=r(14281),S=r(14830),w=r(30224),A=r(55822),F=s[" useId ".trim().toString()]||(()=>void 0),R=0,z="Collapsible",[T,P]=(0,b.A)(z),[k,L]=T(z),D=l.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:s,defaultOpen:n,disabled:i,onOpenChange:o,...c}=e,[u,d]=(0,C.i)({prop:s,defaultProp:n??!1,onChange:o,caller:z});return(0,a.jsx)(k,{scope:r,disabled:i,contentId:function(e){let[t,r]=l.useState(F());return(0,E.N)(()=>{r(e=>e??String(R++))},[void 0]),t?`radix-${t}`:""}(),open:u,onOpenToggle:l.useCallback(()=>d(e=>!e),[d]),children:(0,a.jsx)(w.sG.div,{"data-state":O(u),"data-disabled":i?"":void 0,...c,ref:t})})});D.displayName=z;var V="CollapsibleTrigger",G=l.forwardRef((e,t)=>{let{__scopeCollapsible:r,...l}=e,s=L(V,r);return(0,a.jsx)(w.sG.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":O(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...l,ref:t,onClick:(0,j.mK)(e.onClick,s.onOpenToggle)})});G.displayName=V;var _="CollapsibleContent",B=l.forwardRef((e,t)=>{let{forceMount:r,...l}=e,s=L(_,e.__scopeCollapsible);return(0,a.jsx)(A.C,{present:r||s.open,children:({present:e})=>(0,a.jsx)(J,{...l,ref:t,present:e})})});B.displayName=_;var J=l.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:s,children:n,...i}=e,o=L(_,r),[c,u]=l.useState(s),d=l.useRef(null),m=(0,S.s)(t,d),p=l.useRef(0),f=p.current,h=l.useRef(0),v=h.current,x=o.open||c,y=l.useRef(x),N=l.useRef(void 0);return l.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,E.N)(()=>{let e=d.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();p.current=t.height,h.current=t.width,y.current||(e.style.transitionDuration=N.current.transitionDuration,e.style.animationName=N.current.animationName),u(s)}},[o.open,s]),(0,a.jsx)(w.sG.div,{"data-state":O(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!x,...i,ref:m,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:x&&n})});function O(e){return e?"open":"closed"}var Z=r(73116),U=r(89637),I=r(10002),q=r(7048);let $=e=>{let{badge:t,route:r,title:s,children:i,open:o,onOpenChange:c}=e,{matched:u}=(0,l.useContext)(n),[d,m]=(0,l.useState)(!1),p=u===r,f=p||(null!=o?o:d);return(0,a.jsx)(U.a,{p:"3",className:q.A.container,children:(0,a.jsxs)(D,{open:f,onOpenChange:null!=c?c:m,children:[(0,a.jsxs)(G,{className:q.A.trigger,children:[t,(0,a.jsx)(I.E,{className:q.A.urlText,style:{opacity:u&&!p?.5:1},children:s}),(0,a.jsx)(U.a,{flexGrow:"1"}),(0,a.jsx)(U.a,{className:q.A.mark,"data-open":f,children:(0,a.jsx)(Z.TBE,{})})]}),(0,a.jsx)(B,{className:q.A.content,children:i})]})})};var H=r(68069),K=r(86891),M=r(63171);let W=()=>(0,a.jsx)(I.E,{children:"Unimplemented."});var X=r(9740),Y=r(67044);let Q=(0,l.createContext)([]);var ee=r(81814),et=r(16889),er=r(44987),ea=r(85630),el=r(60470),es=r(41216);let en={...m.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5","6","7","8","9"],responsive:!0},variant:{type:"enum",className:"rt-variant",values:["solid","soft","outline","ghost"],default:"soft"},...es.L,...et.un,...er.Z,...el.J,...ea.G};var ei=r(11242);let eo=l.forwardRef((e,t)=>{let{asChild:r,className:a,color:s,...n}=(0,ei.o)(e,en,x.y),i="ghost"===e.variant?s||void 0:s,o=r?ee.bL:"code";return l.createElement(o,{"data-accent-color":i,...n,ref:t,className:u("rt-reset","rt-Code",a)})});eo.displayName="Code";var ec=r(85267),eu=r(77731);let ed=function(e,t){void 0===t&&(t=!0);var r=(0,l.useState)(!1),a=r[0],s=r[1];return(0,l.useEffect)(function(){var r=function(){return s(!0)},a=function(){return s(!1)};t&&e&&e.current&&((0,eu.on)(e.current,"mouseover",r),(0,eu.on)(e.current,"mouseout",a));var l=e.current;return function(){t&&l&&((0,eu.AU)(l,"mouseover",r),(0,eu.AU)(l,"mouseout",a))}},[t,e]),a};var em=r(18704);let ep=e=>{var t,r;let{route:s}=e,n=o().castArray(s),i=o().last(n),u="_component"in i&&o().isString(i._component)?i._component:null,d=(0,Y.Gc)("/",...n.map(e=>e.path).filter(o().isString))||"/",m=null!=(t=i.index)&&t,p="/"===d,f=(0,l.useContext)(Q),h=!1===f||f.length>0,v=!!f&&!!o().find(f,{route:{id:i.id}}),x=(0,l.useRef)(null),y=ed(x);return(0,a.jsxs)(U.a,{ref:x,children:[(0,a.jsxs)(c.s,{gap:"2",align:"center",mb:i.children&&"1",children:[(0,a.jsxs)(U.a,{className:em.A.endpointContainer,"data-matched":!h||v,children:[m&&p||(0,a.jsx)(eo,{className:em.A.endpointTag,"data-compose":m&&"head",children:d}),m&&(0,a.jsx)(eo,{className:em.A.endpointTag,color:"purple","data-compose":!p&&"tail",children:"/(index)"})]}),u&&(0,a.jsx)(ec.N,{className:em.A.shyLink,style:{visibility:y?"visible":"hidden"},children:u})]}),(0,a.jsx)(c.s,{direction:"column",gap:"1",children:null==(r=i.children)?void 0:r.map(e=>(0,a.jsx)(ep,{route:n.concat(e)},e.id))})]})},ef=e=>{let{remixRoutes:t,route:r}=e,{matched:s,url:i}=(0,l.useContext)(n),o=(0,l.useMemo)(()=>{if(s!==r)return!s&&[];{var e;if(!t)return[];let a=(0,Y.Gq)(i.replace(r.urlPath,"/")),l=null!=(e=(0,X.ue)(t,a))?e:[];return!!l.length&&l}},[t,s,i]);return(null==t?void 0:t.length)?(0,a.jsx)(Q.Provider,{value:o,children:(0,a.jsx)(c.s,{gap:"2",direction:"column",children:t.map(e=>(0,a.jsx)(ep,{route:e},e.id))})}):null};(0,K.BX)({});let eh=e=>{let{route:t}=e,{entryName:r}=t;if(!r)throw TypeError("");let s=(0,H.E)(),{entrypoints:n}=(0,M.s)(s.framework).context,i=o().find(n,{entryName:r});if(!i)throw TypeError("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));let c=(0,M.s)(s.fileSystemRoutes)[i.entryName];if(!i)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));return(0,a.jsx)(l.Suspense,{children:(0,a.jsx)(()=>ev(c)?(0,a.jsx)(W,{}):(0,a.jsx)(ef,{remixRoutes:c,route:t}),{})})},ev=e=>(null==e?void 0:e[0])&&!("type"in e[0]),ex={...m.f,...el.J,...ea.G},ey=l.forwardRef((e,t)=>{let{asChild:r,className:a,...s}=(0,ei.o)(e,ex),n=r?ee.bL:"strong";return l.createElement(n,{...s,ref:t,className:u("rt-Strong",a)})});ey.displayName="Strong";var eN=r(53940);let eg=e=>{let{route:t}=e,r=(0,H.E)(),{entrypoints:l}=(0,M.s)(r.framework).context,s=t.entryName&&o().find(l,{entryName:t.entryName});if(!s)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));return(0,a.jsxs)(U.a,{className:eN.A.stats,children:[(0,a.jsxs)(c.s,{gap:"1",children:[(0,a.jsx)(ey,{children:"Directory: "}),(0,a.jsx)(I.E,{children:s.absoluteEntryDir})]}),(0,a.jsxs)(c.s,{gap:"1",children:[(0,a.jsx)(ey,{children:"Entry:"}),(0,a.jsx)(I.E,{children:s.entry})]})]})},ej=e=>{let{route:t}=e;return(0,a.jsx)($,{badge:eb,route:t,title:t.urlPath,children:(0,a.jsxs)(c.s,{direction:"column",gap:"2",children:[(0,a.jsx)(N,{scrollbars:"horizontal",children:(0,a.jsx)(eg,{route:t})}),(0,a.jsx)(N,{scrollbars:"horizontal",children:(0,a.jsx)(l.Suspense,{children:(0,a.jsx)(eh,{route:t})})})]})})},eb=(0,a.jsx)(g.E,{color:"cyan",children:"Entry"}),eC={...m.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5"],default:"1",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["surface","classic","ghost"],default:"surface"}},eE=l.forwardRef((e,t)=>{let{asChild:r,className:a,...s}=(0,ei.o)(e,eC,x.y),n=r?ee.bL:"div";return l.createElement(n,{ref:t,...s,className:u("rt-reset","rt-BaseCard","rt-Card",a)})});eE.displayName="Card";let eS=e=>{let{route:t}=e;return(0,a.jsx)($,{badge:ew,route:t,title:t.urlPath,children:(0,a.jsx)(eE,{children:"Unknown route type."})})},ew=(0,a.jsx)(g.E,{color:"gray",children:"Unknown"}),eA=e=>{let{route:t}=e;return o().isString(t.entryName)?(0,a.jsx)(ej,{route:t}):(0,a.jsx)(eS,{route:t})};var eF=r(11498),eR=r(83008);let ez=()=>{let e=(0,H.E)(),{serverRoutes:t}=(0,M.s)(e.framework).context,[r,s]=(0,l.useState)({url:""});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.s,{className:"list-xLGYni",direction:"column",gap:"2",align:"stretch",justify:"between",mx:"auto",children:(0,a.jsx)(n.Provider,{value:r,children:t.map(e=>(0,a.jsx)(eA,{route:e},e.entryPath))})}),(0,a.jsx)(U.a,{className:"input-ZLygVL",children:(0,a.jsx)(U.a,{mx:"auto",style:{maxWidth:"40rem"},children:(0,a.jsx)(eF.b,{placeholder:"/foo?bar#baz",onChange:e=>(e=>{let{pathname:r}=(0,Y.vx)(e);s({url:e,matched:t.find(e=>r===e.urlPath||r.startsWith((0,Y.Ay)(e.urlPath)))})})(e.target.value),type:"url",autoComplete:"false",autoCapitalize:"false",autoCorrect:"false",children:(0,a.jsx)(eF.D,{children:(0,a.jsx)(eR.F2d,{})})})})})]})}},25573(e,t,r){r.d(t,{E:()=>p});var a=r(73271),l=r(79400),s=r(81814),n=r(8193),i=r(16889),o=r(44987),c=r(62586);let u={...n.f,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"1",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["solid","soft","surface","outline"],default:"soft"},...i.un,...o.Z,...c.F};var d=r(11242),m=r(14953);let p=a.forwardRef((e,t)=>{let{asChild:r,className:n,color:i,radius:o,...c}=(0,d.o)(e,u,m.y),p=r?s.bL:"span";return a.createElement(p,{"data-accent-color":i,"data-radius":o,...c,ref:t,className:l("rt-reset","rt-Badge",n)})});p.displayName="Badge"},11498(e,t,r){r.d(t,{b:()=>f,D:()=>h});var a=r(73271),l=r(79400),s=r(95187),n=r(16889),i=r(83510),o=r(62586),c=r(53428);let u={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...n._s,...o.F},d={side:{type:"enum",values:["left","right"]},...n._s,gap:c.F.gap,px:i.T.px,pl:i.T.pl,pr:i.T.pr};var m=r(11242),p=r(14953);let f=a.forwardRef((e,t)=>{let r=a.useRef(null),{children:n,className:i,color:o,radius:c,style:d,...f}=(0,m.o)(e,u,p.y);return a.createElement("div",{"data-accent-color":o,"data-radius":c,style:d,className:l("rt-TextFieldRoot",i),onPointerDown:e=>{let t=e.target;if(t.closest("input, button, a"))return;let a=r.current;if(!a)return;let l=t.closest(`
2
- .rt-TextFieldSlot[data-side='right'],
3
- .rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left'])
4
- `)?a.value.length:0;requestAnimationFrame(()=>{try{a.setSelectionRange(l,l)}catch{}a.focus()})}},a.createElement("input",{spellCheck:"false",...f,ref:(0,s.t)(r,t),className:"rt-reset rt-TextFieldInput"}),n)});f.displayName="TextField.Root";let h=a.forwardRef((e,t)=>{let{className:r,color:s,side:n,...i}=(0,m.o)(e,d);return a.createElement("div",{"data-accent-color":s,"data-side":n,...i,ref:t,className:l("rt-TextFieldSlot",r)})});h.displayName="TextField.Slot"}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["719"],{40148(e){e.exports={}},31470(e,t,r){"use strict";r.d(t,{k:()=>d});var n=r(30255),o=r(69148),i=r(89637),a=r(78107),s=r(10002),l=r(22387),u=r(73271);let c=e=>{let{error:t}=e,r=t instanceof Error?"".concat(t.name,": ").concat(t.message):"Unknown Error",o=t instanceof Error?t.stack:Object.prototype.toString.call(t);return(0,n.jsxs)(i.a,{p:"4",children:[(0,n.jsx)(a.D,{as:"h4",mb:"4",children:(0,n.jsx)(s.E,{as:"span",children:r})}),(0,n.jsx)(l.f,{disabled:!0,style:{height:"50vh"},value:o})]})},d=()=>{let e=(0,o.r5)();return(0,u.useEffect)(()=>{console.error(e)},[e]),(0,n.jsx)(c,{resetErrorBoundary:()=>null,error:e})}},75629(e,t,r){"use strict";r.d(t,{v:()=>s});var n=r(30255),o=r(69148),i=r(9740),a=r(13675);let s=e=>{let{items:t}=e,r=(0,o.Zp)(),s=(0,o.zy)(),l=t.find(e=>(0,i.B6)(e.to,s.pathname));return(0,n.jsxs)(a.bL,{size:"1",value:null==l?void 0:l.to,onValueChange:r,children:[(0,n.jsx)(a.l9,{}),(0,n.jsx)(a.UC,{position:"popper",children:t.map(e=>{let{title:t,to:r}=e;return(0,n.jsx)(a.q7,{value:r,children:t},r)})})]})}},68069(e,t,r){"use strict";r.d(t,{r:()=>A,E:()=>k});var n=r(96816),o=r(43189),i=r(30255),a=r(8070),s=r(55499),l=r(73385);class u extends l.il{static use(){return s.RUNTIME_GLOBALS in window||(window[s.RUNTIME_GLOBALS]=new u),window[s.RUNTIME_GLOBALS]}}async function c(e){u.use();let t=e.map(e=>new Promise((t,r)=>{let n=document.createElement("script");n.onload=()=>t(),n.onerror=e=>r(e),n.src=e,document.head.appendChild(n)}));await Promise.all(t)}var d=r(20134),f=r(19512),p=r(19461),h=r.n(p),v=r(60824),m=r(83008),g=r(72522),y=r(67044),w=r(86891);let x=async()=>{let e=await s.MessagePortChannel.link(window.parent,"channel:connect:client"),t=(0,l.FF)();return{remote:(0,f.L4)({async pullUp(e){await t.callHook("pullUp",e)}},(0,o._)((0,n._)({},e.handlers),{timeout:8e3})),hooks:t}};class _ extends Error{constructor(e){super(),this.name="InitializeManifestError",this.cause=e,this.message="Failed to initialize manifest of DevTools"}}let b=async e=>{let t=await fetch(e);try{let e=await t.text();return JSON.parse(e,(0,s.reviver)())}catch(e){throw new _(e)}},j=async(e,t)=>{let r=new URL(e,location.href),i=new window.WebSocket(r),a=await s.WebSocketChannel.link(i),u=(0,l.FF)();return{remote:(0,f.L4)({async refresh(){location.reload()},async applyStateOperations(e){for(let r of e)(0,s.applyOperation)(t,r)}},(0,o._)((0,n._)({},a.handlers),{timeout:5e3})),hooks:u,url:r}},R=async()=>{let e=u.use(),t=(0,w.BX)([{name:"overview",title:"Overview",icon:(0,i.jsx)(m.pNx,{}),view:{type:"builtin",src:"/overview"}},{name:"config",title:"Config",icon:(0,i.jsx)(m.AN7,{}),view:{type:"builtin",src:"/config"}},{name:"pages",title:"Pages",icon:(0,i.jsx)(m.KUq,{}),view:{type:"builtin",src:"/pages"}},{name:"react",title:"React",icon:(0,i.jsx)(g.u3M,{}),view:{type:"builtin",src:"/react"}},{name:"context",title:"Context",icon:(0,i.jsx)(m.XVA,{}),view:{type:"builtin",src:"/context"}},{name:"headers",title:"Header Modifier",icon:(0,i.jsx)(m.lMP,{}),view:{type:"builtin",src:"/headers"}},{name:"doctor",title:"Doctor",icon:(0,i.jsx)(g.Gyc,{}),view:{type:"builtin",src:"/doctor"}},{name:"storage",title:"Storage",icon:(0,i.jsx)(m.vU0,{}),view:{type:"builtin",src:"/storage/preset"}}]);for(let r of(await e.callHook("tab:list",t),t))"object"==typeof r.icon&&(r.icon=(0,w.KR)(r.icon)),"external"===r.view.type&&(r.view.component=(0,w.KR)(r.view.component));return t},E=async e=>{let t=new d.s,r=t.bindRemote(e.remote,"sendReactDevtoolsData");await e.remote.activateReactDevtools();let n=(0,v.createBridge)(window.parent,t);n.shutdown=()=>null;let o=(0,v.createStore)(n),i=(0,v.initialize)(window.parent,{bridge:n,store:o});return{store:o,bridge:n,wallAgent:t,unreg:r,Renderer:i}},A=(async e=>{var t;let r=(0,y.mA)((0,y.vx)(e).search),i=null!=(t=h().castArray(r.src)[0])?t:(0,y.Gc)(e,"manifest"),a=x(),s=b(i),l=s.then(e=>e.websocket?j(e.websocket,(0,w.BX)(e)):null),u=s.then(e=>c(e.context.def.plugins)).then(R),d=a.then(E),[f,p,v,m,g]=await Promise.all([a,s,l,u,d]);return(0,w.BX)((0,o._)((0,n._)({},p),{version:"2.70.1",tabs:m,server:v?(0,w.KR)(v):null,mountPoint:(0,w.KR)(f),react:{devtools:{store:(0,w.KR)(g.store),bridge:(0,w.KR)(g.bridge),wallAgent:(0,w.KR)(g.wallAgent),unreg:(0,w.KR)(g.unreg),Renderer:(0,w.KR)(g.Renderer)}}}))})(location.href),k=()=>(0,a.Yx)(A)},78850(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(9740);let o=e=>{let{params:t}=e;return t.toolkit&&t.type&&["framework","builder","bundler"].includes(t.toolkit)?["resolved","transformed"].includes(t.type)?null:(0,n.V2)("/404"):(0,n.V2)("/404")}},67931(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},69713(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>h});var n=r(30255),o=r(69148),i=r(10002),a=r(83843),s=r(13675),l=r(89637),u=r(19461),c=r.n(u);let d=e=>{let{name:t,describe:r}=e,o=r.map(e=>(0,n.jsx)(i.E,{style:{display:"block"},children:e},e));return(0,n.jsx)(a.m,{className:"tooltip-i9AhnB",side:"right",content:o,children:(0,n.jsx)(s.q7,{value:t,children:(0,n.jsx)(l.a,{children:c().startCase(t)})})},t)},f=[{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."]}],p=[{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."]}],h={breadcrumb:[{title:"Config"},{title:(0,n.jsx)(()=>{let e=(0,o.zy)(),t=(0,o.Zp)(),[r,i]=e.pathname.split("/").slice(2);return(0,n.jsxs)(s.bL,{size:"1",value:r,onValueChange:e=>{t("/config/".concat(e,"/").concat(i))},children:[(0,n.jsx)(s.l9,{children:r}),(0,n.jsx)(s.UC,{children:f.map(e=>{let{name:t,describe:r}=e;return(0,n.jsx)(d,{name:t,describe:r},t)})})]})},{})},{title:(0,n.jsx)(()=>{let e=(0,o.zy)(),t=(0,o.Zp)(),[r,i]=e.pathname.split("/").slice(2);return(0,n.jsxs)(s.bL,{size:"1",value:i,onValueChange:e=>{t("/config/".concat(r,"/").concat(e))},children:[(0,n.jsx)(s.l9,{children:i}),(0,n.jsx)(s.UC,{children:p.map(e=>{let{name:t,describe:r}=e;return(0,n.jsx)(d,{name:t,describe:r},t)})})]})},{})}]}},2255(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(9740),o=r(67044);let i=e=>{let{request:t}=e,r=(0,o.Gc)(t.url,"./builder/transformed");return(0,n.V2)(r)}},86246(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},20714(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>i});var n=r(30255),o=r(75629);let i={breadcrumb:[{title:"Context"},{title:(0,n.jsx)(o.v,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},75836(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(9740),o=r(67044);let i=e=>{let{request:t}=e,r=(0,o.Gc)(t.url,"./builder");return(0,n.V2)(r)}},10595(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(30255),o=r(31470),i=r(13836),a=r(89637),s=r(78107),l=r(83008),u=r(50281);let c=e=>{let{title:t,children:r}=e;return(0,n.jsxs)(i.s,{className:u.A.container,mt:"9",mx:"auto",gap:"2",children:[(0,n.jsx)(i.s,{height:"var(--space-9)",align:"center",children:(0,n.jsx)(l.TMu,{size:"36"})}),(0,n.jsxs)(a.a,{children:[(0,n.jsx)(i.s,{height:"var(--space-9)",align:"center",children:(0,n.jsx)(s.D,{children:t})}),(0,n.jsx)(a.a,{className:u.A.children,children:r})]})]})};var d=r(68069),f=r(69148),p=r(85267),h=r(67044),v=r(63171);let m=()=>{let e=(0,f.r5)(),t=(0,d.E)(),{def:r}=(0,v.s)(t).context;if(!(e&&"object"==typeof e&&0===Object.keys(e).length))return(0,n.jsx)(o.k,{});{let e=(0,h.vx)(r.doctor.quickStart).host,t=(0,n.jsxs)(p.N,{href:r.doctor.quickStart,target:"_blank",rel:"noopener noreferrer",children:["\uD83D\uDD17",e]});return(0,n.jsx)(a.a,{width:"100%",children:(0,n.jsxs)(c,{title:"Doctor is not working",children:["Visit the website of ",t," to learn more."]})})}}},82764(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:{title:"Doctor"}}},97898(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},20564(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>s});var n=r(68069),o=r(8070),i=r(19461),a=r.n(i);let s={breadcrumb(e){var t;let r,{pathname:i}=e.location,s=null==(t=i.match(/^\/external\/(\w+)/))?void 0:t[1],{tabs:l}=(0,o.Yx)(n.r),u=a().find(l,{name:s});return u?{title:r}=u:r=s?a().startCase(s):"External",{title:r,pathname:i}}}},20005(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},7887(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:{title:"Header Modifier"}}},78462(e,t,r){"use strict";r.d(t,{w:()=>i});var n=r(9740),o=r(57900);let i=async()=>{let e=await o.AZ.service;return(0,n.V2)(e.rules?"./editor":"./welcome")}},57900(e,t,r){"use strict";r.d(t,{AZ:()=>u,DQ:()=>a,I:()=>s});var n=r(19461),o=r.n(n),i=r(86891);let a=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=encodeURIComponent(JSON.stringify(e)),r="".concat("/sw-proxy.js","?rules=").concat(t),n=await navigator.serviceWorker.register(r);return await navigator.serviceWorker.ready,u.service=await l(),n},s=async()=>{let e=await navigator.serviceWorker.getRegistrations(),t=!0;for(let r of e)t=t&&await r.unregister();return u.service=Promise.resolve({}),t},l=async()=>{for(let e of o().times(3))try{let e=AbortSignal.timeout(300),t=await fetch("/__devtools/service/status",{signal:e});return await t.json()}catch(e){}return{}},u=(0,i.BX)({service:l()})},85062(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>i});var n=r(30255),o=r(83008);let i={breadcrumb:{title:(0,n.jsx)(o.oGk,{}),pathname:"/overview"}}},51526(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>Z});var n=r(30255),o=r(96816),i=r(43189),a=r(69148),s=r(73116),l=r(13836),u=r(19461),c=r.n(u),d=r(91830),f=r(57404),p=r(37993),h=r(34991),v=r(73820),m=r(9740),g=r(91492),y=r(73271),w=r(37021);function x(e,t){return function(r){null==e||e(r),r.defaultPrevented||t(r)}}var _=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function b(){return(b=(0,p._)(function(e,t){var n,o;return(0,v._)(this,function(i){switch(i.label){case 0:if(!(n=e.id)||!t[n]||!(o=t[n].chunkIds))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all(o.map(function(e){return null===r.e||void 0===r.e?void 0:r.e(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 j=function(e,t){var r=window.location,n=r.protocol,o=r.host,i=new URL(e,"".concat(n,"//").concat(o));return i.searchParams.append("__loader",t),i.searchParams.append("__ssrDirect","true"),i},R=function(e,t,r){var o,i=e.id;return o=j("/"===r?t:"".concat(r).concat(t),i).toString(),(0,n.jsx)("link",{rel:"prefetch",as:"fetch",href:o},o)},E=function(e){var t=e.path,r=t.pathname,o=(0,y.useContext)(w.V_),i=o.routeManifest,a=o.routes,s=(i||{}).routeAssets,l=Array.isArray(a)?(0,m.ue)(a,r):[];return(Array.isArray(l)&&s&&(null==l||l.forEach(function(e){return function(e,t){return b.apply(this,arguments)}(e.route,s)})),window._SSR_DATA)?(0,n.jsx)(A,{matches:l,path:t,routeManifest:i}):null},A=function(e){var t=e.matches,r=e.path,o=e.routeManifest,i=r.pathname,s=r.search,l=r.hash,u=(0,a.FE)(),c=(0,a.$P)("/"),d=(0,y.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 r,n=new URL(location.pathname+location.search+location.hash,window.origin),o=new URL(i+s+l,window.origin),a=e.route.shouldRevalidate({currentUrl:n,currentParams:(null==(r=u[0])?void 0:r.params)||{},nextUrl:o,nextParams:e.params,defaultShouldRevalidate:!0});if("boolean"==typeof a)return a}var c=u[t];return!!(!c||c.id!==e.route.id||c.pathname!==e.pathname||c.pathname.endsWith("*")&&c.params["*"]!==e.params["*"])}).map(function(e){return R(e.route,i,c)})},[t,i,o]);return(0,n.jsx)(n.Fragment,{children:d})},k=function(e){return y.forwardRef(function(t,i){var s,l,u,c,d,p,v,m,g,w,b,j,R,A,k=t.to,S=t.prefetch,C=(0,f._)(t,["to","prefetch"]),P="string"==typeof k&&_.test(k),N=(0,h._)((s=void 0===S?"none":S,u=(l=(0,h._)(y.useState(!1),2))[0],c=l[1],p=(d=(0,h._)(y.useState(!1),2))[0],v=d[1],m=C.onFocus,g=C.onBlur,w=C.onMouseEnter,b=C.onMouseLeave,j=C.onTouchStart,y.useEffect(function(){"render"===s&&v(!0)},[s]),R=function(){"intent"===s&&c(!0)},A=function(){"intent"===s&&(c(!1),v(!1))},y.useEffect(function(){if(u){var e=setTimeout(function(){v(!0)},100);return function(){clearTimeout(e)}}},[u]),[p,{onFocus:x(m,R),onBlur:x(g,A),onMouseEnter:x(w,R),onMouseLeave:x(b,A),onTouchStart:x(j,R)}]),2),L=N[0],D=N[1],B=(0,a.x$)(k);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e,(0,o._)({ref:i,to:k},C,D)),L&&r.e&&!P?(0,n.jsx)(E,{path:B}):null]})})},S=k(g.N_);S.displayName="Link";var C=k(g.k2);C.displayName="NavLink";var P=r(85267);let N=e=>{let{to:t,children:r}=e,a=(0,f._)(e,["to","children"]);return(0,n.jsx)(P.N,(0,i._)((0,o._)({},a),{asChild:!0,children:(0,n.jsx)(S,{to:t,children:r})}))},L=e=>{let{location:t,handle:r}=e;if(!c().isObject(r)&&c().isNil(r))return[];let{breadcrumb:n}=r,o=[];c().isFunction(n)?o.push(...c().castArray(n({location:t}))):o.push(...c().castArray(n));let i=[];for(let t of o){if(!c().isObject(t)||c().isNull(t)||!("title"in t))continue;let r={id:e.id,title:t.title,pathname:e.pathname};"pathname"in t&&c().isString(t.pathname)&&(r.pathname=t.pathname),i.push(r)}return i},D=e=>{let t=[],r=(0,a.FE)(),u=(0,a.zy)(),c=[];for(let e of r)c.push(...L((0,i._)((0,o._)({},e),{location:u})));for(let[e,r]of(u.state&&"breadcrumb"in u.state&&c.push(...L({handle:u.state.breadcrumb,pathname:u.pathname,id:"external/".concat(u.pathname),location:u})),Object.entries(c))){let o=[r.id,r.pathname,e];t.push((0,n.jsx)(N,{color:"gray",size:"2",to:r.pathname,children:r.title},o.join("_"))),r!==c.at(-1)&&(o.push("#connector"),t.push((0,n.jsx)(s.vKP,{className:d.A.connector},o.join("_"))))}return(0,n.jsx)(l.s,(0,i._)((0,o._)({align:"center",height:"var(--space-8)",gap:"1",px:"4"},e),{children:t}))};var B=r(68069);let M="";B.r.then(e=>{let{mountPoint:t}=e;t.hooks.hookOnce("pullUp",async e=>{M=e})});let T=()=>{let e=(0,a.Zp)(),{mountPoint:t}=(0,B.E)();return(0,y.useEffect)(()=>{M&&e(M),t.hooks.hook("pullUp",async t=>{e(t)})},[]),null};var I=r(25177),O=r(63221);let U=e=>{let{children:t}=e,r=(0,f._)(e,["children"]),[a]=(0,I.B)();return(0,y.useEffect)(()=>{document.documentElement.classList.remove("dark","light"),document.documentElement.classList.add(a)},[a]),(0,n.jsx)(O.Sx,(0,i._)((0,o._)({},r),{appearance:a,children:t}))};var V=r(24992),q=r(83843),z=r(89637),F=r(83008),H=r(63171);let G="tab-button-MtqLNp",K="tab-button-inner-KmlACp",W=e=>{let{tab:t}=e,r="";if("builtin"===t.view.type)r=t.view.src;else if("iframe"===t.view.type)r="/iframe/".concat(t.view.src);else if("external"===t.view.type)r="/external/".concat(t.name);else throw Error('Invalid tab view of "'.concat(t.name,'".'));return(0,y.useEffect)(()=>{document.documentElement.classList.add("theme-register")},[]),(0,n.jsx)(q.m,{content:t.title,side:"right",children:(0,n.jsx)(C,{to:r,className:G,children:(0,n.jsx)(l.s,{justify:"center",align:"center",p:"1",className:K,children:(0,n.jsx)(z.a,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:t.icon})})})})},X=()=>{let{server:e}=(0,H.s)((0,B.E)());return(0,n.jsx)(q.m,{content:e?"Connected":"Disconnected",side:"right",children:(0,n.jsx)(z.a,{className:G,children:(0,n.jsxs)(z.a,{p:"1",position:"relative",className:K,children:[(0,n.jsx)(z.a,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:(0,n.jsx)(F.BSJ,{})}),(0,n.jsx)(z.a,{className:"online-indicator-E9Pryr","data-active":!!e})]})})})},J=()=>{let[e,t]=(0,I.B)();return(0,n.jsx)(q.m,{content:"Appearance",side:"right",children:(0,n.jsx)(z.a,{className:G,onClick:()=>{t("light"===e?"dark":"light")},children:(0,n.jsx)(l.s,{justify:"center",align:"center",p:"1",className:K,children:(0,n.jsx)(z.a,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:"dark"===e?(0,n.jsx)(F.DJT,{}):(0,n.jsx)(F._Nv,{})})})})})},Y=()=>{let{tabs:e}=(0,H.s)((0,B.E)());return(0,n.jsxs)(l.s,{direction:"column",flexShrink:"0",className:"navigator-O_AEE3",children:[e.map(e=>(0,n.jsx)(W,{tab:e},e.name)),(0,n.jsx)(z.a,{flexGrow:"1"}),(0,n.jsx)(X,{}),(0,n.jsx)(J,{})]})},Z=()=>(0,n.jsx)(U,{className:"wrapper-YAIt0k",accentColor:"blue",panelBackground:"solid",children:(0,n.jsxs)(V.Kq,{swipeDirection:"up",children:[(0,n.jsx)(Y,{}),(0,n.jsxs)(z.a,{width:"100%",position:"relative",pt:"4",children:[(0,n.jsx)(z.a,{width:"100%",height:"100%",position:"relative",children:(0,n.jsx)(a.sv,{})}),(0,n.jsx)(D,{className:"breadcrumbs-LVvAXj",height:"2.5rem",position:"absolute",top:"0",left:"0",right:"0"})]}),(0,n.jsx)(T,{})]})})},42211(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(30255),o=r(64921),i=r(68069),a=r(7498);let s=()=>{let{mountPoint:e}=(0,i.E)();return(0,a.A)(async()=>{e.remote.onFinishRender()}),(0,n.jsx)(o.R,{className:"loading-gmTvLE"})}},86832(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},95040(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:{title:"Overview"}}},56119(e,t,r){"use strict";r.d(t,{w:()=>i});var n=r(9740),o=r(67044);let i=e=>{let{request:t}=e,r=(0,o.Gc)(t.url,"./overview");return(0,n.V2)(r)}},26995(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},46957(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:{title:"Pages"}}},99334(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>i});var n=r(30255),o=r(75629);let i={breadcrumb:[{title:"React"},{title:(0,n.jsx)(o.v,{items:[{to:"/react/components",title:"Components"},{to:"/react/profiler",title:"Profiler"}]})}]}},12146(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(31470).k},29336(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(9740),o=r(67044);let i=e=>{let{request:t}=e,r=(0,o.Gc)(t.url,"./components");return(0,n.V2)(r)}},34277(e,t,r){"use strict";r.d(t,{w:()=>s});var n=r(68069),o=r(9740),i=r(19461),a=r.n(i);let s=async e=>{let{params:t}=e,{id:r}=t;if(!r)throw TypeError("storage preset id is required");let{context:i}=await n.r,{storagePresets:s}=await Promise.resolve(i),l=a().find(s,{id:r});return l||(0,o.V2)("/storage/preset")}},13138(e,t,r){"use strict";r.r(t),r.d(t,{handle:()=>n});let n={breadcrumb:[{title:"Storage"},{title:"Preset"}]}},42768(e,t,r){"use strict";r.d(t,{X:()=>i,w:()=>o});var n=r(39319);let o=async e=>await (0,n.Ep)(),i=()=>null},35455(e,t,r){"use strict";r.d(t,{w:()=>o});var n=r(39319);let o=async e=>await (0,n.Ep)()},39319(e,t,r){"use strict";r.d(t,{Bf:()=>s,Ep:()=>c,Gq:()=>a,Z2:()=>l,ZB:()=>u});var n=r(68069),o=r(19461),i=r.n(o);let a=["cookie","localStorage","sessionStorage"],s={cookie:"yellow",localStorage:"green",sessionStorage:"blue"},l=(e,t)=>i().map(e[t],(r,n)=>{let o=[e.id,t,n].join("//");return{key:n,value:r,type:t,id:o}}),u=e=>{let t=[];for(let r of a)t.push(...l(e,r));return t},c=async e=>{let{mountPoint:t}=await n.r,[r,o,i]=await Promise.all([t.remote.cookies(null==e?void 0:e.cookie),t.remote.localStorage(null==e?void 0:e.localStorage),t.remote.sessionStorage(null==e?void 0:e.sessionStorage)]);return{cookie:r,localStorage:o,sessionStorage:i}}},8070(e,t,r){"use strict";r.d(t,{Yx:()=>o}),r(30255),r(73271),r(19461);let n=new WeakMap,o=e=>{if(!(e instanceof Promise))return e;if(n.has(e)){let t=n.get(e);if(t instanceof Error)throw t;if(!(t instanceof Promise))return t;throw t}throw n.set(e,e),e.then(t=>n.set(e,t)).catch(t=>n.set(e,t)),e}},57609(e,t,r){"use strict";r.d(t,{XX:()=>x});var n=r(37993),o=r(46757),i=r(96816),a=r(43189),s=r(34991),l=r(73820),u=r(50016),c=r(46833),d=r(37021),f=r(29571),p=r(73271);function h(e,t){return p.createElement(d.V_.Provider,{value:t},e)}var v=r(30255),m=r(26800),g=r(98780),y=function(e){var t=e.callback,r=e.children,n=(0,p.useRef)(!1);return(0,p.useLayoutEffect)(function(){n.current||(n.current=!0,t())},[t]),r},w=function(){return!0};function x(e,t){return _.apply(this,arguments)}function _(){return(_=(0,n._)(function(e,t){var r,p,x,_,R,E,A,k,S,C;function P(){return(P=(0,n._)(function(e){return(0,l._)(this,function(t){return[2,function(e,t){return b.apply(this,arguments)}(e,C)]})})).apply(this,arguments)}function N(){return(N=(0,n._)(function(e,t){return(0,l._)(this,function(r){return[2,function(e,t){return j.apply(this,arguments)}(e,C,t)]})})).apply(this,arguments)}return(0,l._)(this,function(b){var j,L,D,B,M,T,I,O,U,V,q,z,F,H,G,K,W;switch(b.label){case 0:if(r=(0,d.Ky)(),j=(0,n._)(function(e){var t,r;return(0,l._)(this,function(n){switch(n.label){case 0:return(t=(0,c.gy)()).pluginAPI.updateRuntimeContext(e),[4,t.hooks.onBeforeRender.call(e)];case 1:return n.sent(),[2,null==(r=(0,c.t8)())?void 0:r(e)]}})}),!(void 0===t||"string"==typeof t||"u">typeof HTMLElement&&(0,o._)(t,HTMLElement)))return[3,2];return p=function(e){return P.apply(this,arguments)},x=function(e,t){return N.apply(this,arguments)},T=null==(M=window._SSR_DATA)||null==(L=M.context)?void 0:L.request,k=Object.keys(A=(null==(_=(E=(0,a._)((0,i._)({},M||{renderLevel:0,mode:"string"}),{context:(0,a._)((0,i._)({},(null==M?void 0:M.context)||{}),{request:(0,a._)((0,i._)({},(null==M||null==(D=M.context)?void 0:D.request)||{}),{params:(null==T?void 0:T.params)||{},host:(null==T?void 0:T.host)||location.host,pathname:(null==T?void 0:T.pathname)||location.pathname,headers:(null==T?void 0:T.headers)||{},cookieMap:u.parse(document.cookie||"")||{},cookie:document.cookie||"",userAgent:(null==T||null==(B=T.headers)?void 0:B["user-agent"])||navigator.userAgent,referer:document.referrer,query:(0,i._)({},window.location.search.substring(1).split("&").reduce(function(e,t){var r=(0,s._)(t.split("="),2),n=r[0],o=r[1];return n&&(e[n]=o),e},{}),(null==T?void 0:T.query)||{}),url:location.href})})})).data)?void 0:_.loadersData)||{}).reduce(function(e,t){var r=A[t];return(null==r?void 0:r.loading)!==!1||(e[t]=r),e},{}),Object.assign(r,{loaderManager:(0,f.x)(k,{skipStatic:!0}),_internalRouterBaseName:e.props.basename,ssrContext:E.context}),r.initialData=null==(R=E.data)?void 0:R.initialData,[4,function(e){return j.apply(this,arguments)}(r)];case 1:if((S=b.sent())&&(r.initialData=S),C=t&&"string"!=typeof t?t:document.getElementById(t||"root"),window._SSR_DATA)return[2,(I=r,O=p,U=x,H=(0,a._)((0,i._)({},I),{get routes(){return I.routes},_hydration:!0}),G=function(){delete H._hydration},K=(null==(q=window)||null==(V=q._SSR_DATA)?void 0:V.renderLevel)||g.Bw.CLIENT_RENDER,W=(null==(F=window)||null==(z=F._SSR_DATA)?void 0:z.mode)||"string",w()&&"stream"===W?K===g.Bw.SERVER_RENDER?U(h((0,v.jsx)(function(){return(0,v.jsx)(y,{callback:G,children:e})},{}),H)):O(h(e,I)):K===g.Bw.CLIENT_RENDER||K===g.Bw.SERVER_PREFETCH?O(h(e,I)):K===g.Bw.SERVER_RENDER?new Promise(function(t){w()?(0,m.ai)(function(){U(h((0,v.jsx)(function(){return(0,v.jsx)(y,{callback:G,children:e})},{}),H)).then(function(e){t(e)})}):(0,m.ai)(function(){U(h(e,H),G).then(function(e){t(e)})})}):(console.warn("unknow render level: ".concat(K,", execute render()")),O(h(e,I))))];return[2,p(h(e,r))];case 2:throw Error("`render` function needs id in browser environment, it needs to be string or element")}})})).apply(this,arguments)}function b(){return(b=(0,n._)(function(e,t){var n;return(0,l._)(this,function(o){switch(o.label){case 0:return[4,r.e("783").then(r.t.bind(r,38987,19))];case 1:return(n=o.sent().createRoot(t)).render(e),[2,n]}})})).apply(this,arguments)}function j(){return(j=(0,n._)(function(e,t){return(0,l._)(this,function(n){switch(n.label){case 0:return[4,r.e("783").then(r.t.bind(r,38987,19))];case 1:return[2,n.sent().hydrateRoot(t,e)]}})})).apply(this,arguments)}},98780(e,t,r){"use strict";r.d(t,{Bw:()=>o,aQ:()=>a,rL:()=>i}),(n=o||(o={}))[n.CLIENT_RENDER=0]="CLIENT_RENDER",n[n.SERVER_PREFETCH=1]="SERVER_PREFETCH",n[n.SERVER_RENDER=2]="SERVER_RENDER";var n,o,i="__MODERN_SSR_DATA__",a="__MODERN_ROUTER_DATA__"},46833(e,t,r){"use strict";r.d(t,{A8:()=>u,J$:()=>o,Xj:()=>d,cG:()=>a,fn:()=>f,gy:()=>s,t8:()=>c,z_:()=>l,zm:()=>i});var n={};function o(){return n.isRscClient}function i(e){n.entryName=e.entryName,n.App=e.App,n.routes=e.routes,n.appInit=e.appInit,n.appConfig="function"==typeof e.appConfig?e.appConfig():e.appConfig,n.layoutApp=e.layoutApp,n.RSCRoot=e.RSCRoot,n.isRscClient=e.isRscClient,n.enableRsc=e.enableRsc}function a(e){n.internalRuntimeContext=e}function s(){return n.internalRuntimeContext}function l(){return n.App}function u(){return n.routes}function c(){var e,t;return n.appInit||(null==(e=l())?void 0:e.init)||(null==(t=f())?void 0:t.init)}function d(){var e,t;return n.appConfig||(null==(e=l())?void 0:e.config)||(null==(t=f())?void 0:t.config)}function f(){return n.layoutApp}},37021(e,t,r){"use strict";r.d(t,{Ky:()=>s,V_:()=>a});var n=r(18669),o=r(73271),i=r(29571),a=(0,o.createContext)({}),s=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1?arguments[1]:void 0;return{loaderManager:(0,i.x)({}),isBrowser:e,routeManifest:t||"u">typeof window&&window[n.Ae]}}},29571(e,t,r){"use strict";r.d(t,{x:()=>h});var n,o,i=r(37993),a=r(46757),s=r(34991),l=r(91345),u=r(73820),c=r(60191),d=r.n(c),f=function(){var e=new Map;return function(t){var r=e.get(t);if(r)return r;var n=JSON.stringify(t);return d()(n,"params should be not null value"),e.set(t,n),n}};(n=o||(o={}))[n.idle=0]="idle",n[n.loading=1]="loading",n[n.fulfilled=2]="fulfilled",n[n.rejected=3]="rejected";var p=function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{loading:!1,reloading:!1,data:void 0,error:void 0},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return Promise.resolve()},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=0,d=n.data,f=n.error,p=!1,h=new Set,v=(t=(0,i._)(function(){return(0,u._)(this,function(e){return s||1===c?[2,r]:(c=1,g(),[2,r=o().then(function(e){d=e,f=null,c=2}).catch(function(e){f=e,d=null,c=3}).finally(function(){r=null,p=!0,g()})])})}),function(){return t.apply(this,arguments)}),m=function(){return{loading:!p&&1===c,reloading:p&&1===c,data:d,error:(0,a._)(f,Error)?"".concat(f.message):f,_error:f}},g=function(){(0,l._)(h).forEach(function(e){e(c,m())})};return{get result(){return m()},get promise(){return r},onChange:function(e){return h.add(e),function(){h.delete(e)}},load:v}},h=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.skipStatic,o=void 0!==n&&n,l=r.skipNonStatic,c=void 0!==l&&l,d=new Map,h=f();return{hasPendingLoaders:function(){var e=!0,t=!1,r=void 0;try{for(var n,o=d.values()[Symbol.iterator]();!(e=(n=o.next()).done);e=!0){var i=n.value.promise;if((0,a._)(i,Promise))return!0}}catch(e){t=!0,r=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw r}}return!1},awaitPendingLoaders:(t=(0,i._)(function(){var e,t,r,n,o,i,l,c,f,p;return(0,u._)(this,function(u){switch(u.label){case 0:e=[],t=!0,r=!1,n=void 0;try{for(o=d[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)c=(l=(0,s._)(i.value,2))[0],p=(f=l[1]).promise,(0,a._)(p,Promise)&&e.push([c,f])}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}return[4,Promise.all(e.map(function(e){return e[1].promise}))];case 1:return u.sent(),[2,e.reduce(function(e,t){var r=(0,s._)(t,2),n=r[0],o=r[1];return e[n]=o.result,e},{})]}})}),function(){return t.apply(this,arguments)}),add:function(t,r){var n=h(r.params),i=d.get(n),a=r._cache;if(!i||!1===a){var s=c&&!r.static,l=o&&r.static;i=p(n,void 0!==e[n]?e[n]:{data:r.initialData},t,s||l),d.set(n,i)}return n},get:function(e){return d.get(e)}}}},86995(e,t,r){"use strict";r.d(t,{F:()=>j,R:()=>R});var n,o,i,a,s,l,u,c=r(91345),d=r(17089),f=r(61139),p=r(96816),h=r(57404),v=r(43189),m=r(19723),g=(o=function(e){u.clear(),n=e;var t=e.plugins,r=e.handleSetupResult;u.addPlugins(t);var o=u.getPlugins(),i=(g=(f={runtimeContext:{},config:n.config,plugins:o}).runtimeContext,y=f.config,w=f.plugins,x={},w.forEach(function(e){var t=e.registryHooks,r=void 0===t?{}:t;Object.keys(r).forEach(function(e){x[e]=r[e]})}),(0,v._)((0,p._)({},g),{hooks:(0,p._)({},{onBeforeRender:(0,m.Ve)(),wrapRoot:(0,m.Lt)(),pickContext:(0,m.Lt)(),config:(0,m.po)()},x),extendsHooks:x,config:y})),a=function(e){var t=e.context,r=e.plugins,n=t.hooks,o=t.extendsHooks;function i(){if(t){t.hooks,t.extendsHooks,t.config,t.pluginAPI;var e=(0,h._)(t,["hooks","extendsHooks","config","pluginAPI"]);return e._internalContext=t,e}throw Error("Cannot access context")}function a(e){t=(0,d.h)(t,e)}var s={};r.forEach(function(e){var t=e._registryApi;if(t){var r=t(i,a);Object.keys(r).forEach(function(e){s[e]=r[e]})}}),o&&Object.keys(o).forEach(function(e){s[e]=o[e].tap});var l=(0,p._)({updateRuntimeContext:a,getHooks:function(){return(0,p._)({},n,o)},getRuntimeConfig:function(){if(t.config)return t.config;throw Error("Cannot access config")},config:n.config.tap,onBeforeRender:n.onBeforeRender.tap,wrapRoot:n.wrapRoot.tap,pickContext:n.pickContext.tap},s);return"u"<typeof Proxy?l:new Proxy(l,{get:function(e,t){if("then"!==t)return t in e?e[t]:function(){console.warn("api.".concat(t.toString()," not exist"))}}})}({context:i,pluginManager:u,plugins:o});i.pluginAPI=a;var s=!0,l=!1,c=void 0;try{for(var f,g,y,w,x,_,b=o[Symbol.iterator]();!(s=(_=b.next()).done);s=!0){var j,R=_.value,E=null==(j=R.setup)?void 0:j.call(R,a);r&&r(E,a)}}catch(e){l=!0,c=e}finally{try{s||null==b.return||b.return()}finally{if(l)throw c}}return{runtimeContext:i}},i=new Map,a=new Map,s=function(e,t,r){a.has(t)||a.set(t,{pre:new Map,post:new Map}),"pre"===r?a.get(e).pre.set(t,{name:t,isUse:!1}):"post"===r?a.get(e).post.set(t,{name:t}):"use"!==r||a.get(e).post.has(t)||a.get(t).pre.has(e)||a.get(e).pre.set(t,{name:t,isUse:!0})},l=function(e){if(e){var t=e,r=void 0===t?"undefined":(0,f._)(t);if("object"!==r||null===t)throw Error("Expect CLI Plugin instance to be an object, but got ".concat(r,"."));if(t.setup&&"function"!=typeof t.setup)throw Error("Expect CLI Plugin plugin.setup to be a function, but got ".concat(r,"."));var n=e.name,o=e.usePlugins,u=e.pre,c=e.post;if(i.has(n))return void console.warn("Plugin ".concat(n," already exists."));i.set(n,e),a.set(n,{pre:new Map,post:new Map}),(void 0===u?[]:u).forEach(function(e){s(n,e,"pre")}),(void 0===c?[]:c).forEach(function(e){s(n,e,"post")}),(void 0===o?[]:o).forEach(function(e){i.has(e.name)||l(e),s(n,e.name,"use")})}},u={getPlugins:function(){var e=new Set,t=new Set,r=[],n=function(o){if(t.has(o))throw Error("Circular dependency detected: ".concat(o));if(!e.has(o)&&i.get(o)){t.add(o);var s=i.get(o).required;(void 0===s?[]:s).forEach(function(e){if(!i.get(e))throw Error("".concat(o," plugin required plugin ").concat(e,", but not found."))});var l=a.get(o).pre;Array.from(l.values()).filter(function(e){return!e.isUse}).forEach(function(e){return n(e.name)}),Array.from(l.values()).filter(function(e){return e.isUse}).forEach(function(e){return n(e.name)}),t.delete(o),e.add(o),r.push(i.get(o))}};return i.forEach(function(e,t){a.get(t).post.forEach(function(e){a.get(e.name).pre.has(t)||a.get(e.name).pre.set(t,{name:t,isUse:!1})})}),i.forEach(function(e,t){n(t)}),r=r.filter(function(e){return e})},addPlugins:function(e){var t=!0,r=!1,n=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=o.value;l(a)}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}},clear:function(){i.clear(),a.clear()},isPluginExists:function(e){return i.has(e)}},{run:function(e){var t=o(e).runtimeContext,r=t.hooks.config.call().filter(function(e){return!!e});return t.config=d.h.apply(void 0,[{}].concat((0,c._)(r),[t.config||{}])),{runtimeContext:t}}}),y=r(37993),w=r(73820);function x(e,t){e&&Object.keys(e).forEach(function(r){var n=e[r];if("function"==typeof n){var o="beforeRender"===r?"onBeforeRender":r;t[o]&&("beforeRender"===r?t[o]((0,y._)(function(){var e,t,r,o=arguments;return(0,w._)(this,function(i){switch(i.label){case 0:for(t=Array(e=o.length),r=0;r<e;r++)t[r]=o[r];return[4,n.apply(void 0,(0,c._)(t))];case 1:return i.sent(),[2]}})})):t[o](function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(void 0,(0,c._)(t))}))}})}var _=function(e){var t=e.ssrContext;return t?{isBrowser:e.isBrowser,request:t.request||{},response:t.response||{},logger:t.logger||{}}:{}},b=r(46833);function j(e,t){var r=(t||{}).plugins,n=g.run({plugins:[{name:"@modern-js/runtime-plugin-compat",_registryApi:function(e){return{useRuntimeConfigContext:function(){return e()._internalContext.config},useHookRunners:function(){var t,r;return t=e()._internalContext.hooks,{beforeRender:(r=(0,y._)(function(e){return(0,w._)(this,function(r){return[2,t.onBeforeRender.call(e)]})}),function(e){return r.apply(this,arguments)}),wrapRoot:function(e){return t.wrapRoot.call(e)},pickContext:function(e){return t.pickContext.call(e)},config:function(){return t.config.call()}}}}}},{name:"@modern-js/runtime-plugin-request-context",setup:function(e){e.onBeforeRender(function(e){var t=_(e);e.context=t})}}].concat((0,c._)(e),(0,c._)(void 0===r?[]:r)),config:t||{},handleSetupResult:x}).runtimeContext;return(0,b.cG)(n),n}function R(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return d.h.apply(void 0,[{},e].concat((0,c._)(r)))}},76329(e,t,r){"use strict";r.d(t,{H:()=>a});var n=function(e){var t=document.querySelectorAll("#".concat(e));if(0!==t.length){var r=t[t.length-1];if(r)try{return JSON.parse((null==r?void 0:r.textContent)||"")}catch(t){console.error("parse ".concat(e," error"),t)}}},o=r(98780),i=r(46833);function a(e){var t=e||(0,i.z_)();return"u">typeof window&&"nodejs"!==window.name&&(window._SSR_DATA=window._SSR_DATA||n(o.rL),window._ROUTER_DATA=window._ROUTER_DATA||n(o.aQ)),(0,i.gy)().hooks.wrapRoot.call(t)}},22521(e,t,r){"use strict";r.d(t,{jY:()=>X});var n=r(96816),o=r(43189),i=r(91345),a=r(30255),s=r(17089),l=r(69148),u=r(91492);function c(e){return"/"+e.replace(/^\/+|\/+$/g,"")}var d=r(73271),f=r.t(d,2),p=r(37021),h=r(46833),v=r(19723),m=(0,v.Lt)(),g=(0,v.Lt)(),y=r(37993),w=r(34991),x=r(61139),_=r(73820),b=r(86204),j=r(9740);(0,y._)(function(e){var t;return(0,_._)(this,function(r){switch(r.label){case 0:var n;return n=(0,y._)(function(e){return(0,_._)(this,function(r){switch(r.label){case 0:var n;return[4,Promise.all(e.map((n=(0,y._)(function(e){return(0,_._)(this,function(r){switch(r.label){case 0:var n;if(!("lazyImport"in e&&(n=e.component)&&(void 0===n?"undefined":(0,x._)(n))==="object"&&void 0!==n._init&&void 0!==n._payload))return[3,2];return[4,e.lazyImport()];case 1:e.component=r.sent().default,r.label=2;case 2:if(!(e.children&&Array.isArray(e.children)))return[3,4];return[4,t(e.children)];case 3:r.sent(),r.label=4;case 4:return[2]}})}),function(e){return n.apply(this,arguments)})))];case 1:return r.sent(),[2]}})}),[4,(t=function(e){return n.apply(this,arguments)})(e)];case 1:return r.sent(),[2]}})});var R=function(e,t){if(!t||!Array.isArray(t))return e;var r=new Map,o=function(e){e.forEach(function(e){e.id&&r.set(e.id,e),"children"in e&&e.children&&Array.isArray(e.children)&&o(e.children)})};o(e);var i=function(e){return e.map(function(e){if(e.id&&r.has(e.id)){var t=r.get(e.id),o=(0,n._)({loader:e.hasClientLoader?e.loader:void 0},t);return e.children&&Array.isArray(e.children)&&(o.children=i(e.children)),o}return e})};return i(t)},E=function(e,t){var r=!0,n=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){var s=i.value;if(s.id===t)return s;if(s.children&&Array.isArray(s.children)){var l=E(s.children,t);if(l)return l}}}catch(e){n=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}return null},A=function(e,t){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=R(e.routes.reduceRight(function(e,t){return e.length>0?[(0,o._)((0,n._)({},t),{children:e})]:[t]},[]),t),s=(0,u.Ys)(a,{hydrationData:e,basename:i,dataStrategy:(r=(0,y._)(function(e){var r,n,o,i,a,l,u,c,d;return(0,_._)(this,function(f){switch(f.label){case 0:var p;return r=e.request,n=e.matches,o={},i=n.filter(function(e){return e.route.hasClientLoader}),a=fetch(r.url,{headers:{"x-rsc-tree":"true"}}),l=i.length>0?Promise.all(i.map((p=(0,y._)(function(e){var r,n;return(0,_._)(this,function(o){switch(o.label){case 0:return r=E(t,e.route.id),e.route.loader=null==r?void 0:r.loader,[4,e.resolve()];case 1:return n=o.sent(),[2,{routeId:e.route.id,result:n}]}})}),function(e){return p.apply(this,arguments)}))):Promise.resolve([]),[4,a];case 1:if(c=(u=f.sent()).headers.get("X-Modernjs-Redirect"))return n.forEach(function(e){var t=e.route.id;t&&(o[t]={type:"redirect",result:(0,j.V2)(c)})}),[2,o];return[4,Promise.all([l])];case 2:return w._.apply(void 0,[f.sent(),1])[0].forEach(function(e){var t=e.routeId,r=e.result;o[t]=r}),[4,(0,b.createFromReadableStream)(u.body)];case 3:if(void 0===(d=f.sent()).type||"render"!==d.type)throw Error("Unexpected payload type");return n.forEach(function(e){var t,r=e.route.id,n=d.routes.find(function(e){return e.id===r});n&&s.patchRoutes(n.parentId,[n],!0),(null==(t=d.loaderData)?void 0:t[r])&&(o[r]={type:"data",result:d.loaderData[r]})}),[2,o]}})}),function(e){return r.apply(this,arguments)})});return s},k=r(57404),S=r(18669);function C(e){var t=.001*new Date().getTime(),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]}var P=function(e){var t=(0,w._)(C(e),2);return 1e3*t[0]+t[1]/1e6},N=function(){var e=C();return function(){return P(e)}},L="u">typeof window&&void 0!==window.document,D=function(){if(L)return console.error("You should not get async storage in browser"),null;try{return r(40148).getAsyncLocalStorage()}catch(e){return console.error("Failed to load server async storage",e),null}},B=r(67567),M=r(12209),T=r(51404),I=r(40746),O=r(64611),U=r(46757);function V(e,t){if(!1===e||null==e)throw Error(t)}var q=function(e){function t(){return(0,M._)(this,t),(0,B._)(this,t,arguments)}return(0,O._)(t,e),t}((0,r(96686)._)(Error)),z=function(e){var t,r,i,s,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=e.children,f=e.index,p=e.id,h=e.component,v=e.isRoot,m=e.lazyImport,g=e.config,w=e.handle,b=u.parent,j=u.props,R={caseSensitive:e.caseSensitive,path:e.path,id:e.id,loader:(i=(t=e).loader)?(r=(0,y._)(function(e){var r,n,o,a,s,l;return(0,_._)(this,function(u){switch(u.label){case 0:return"function"==typeof t.lazyImport&&t.lazyImport(),r=N(),[4,i(e)];case 1:n=u.sent();return o=r(),"u"<typeof document&&(null==(l=D())||null==(s=l.useContext().monitors)||s.timing("".concat(S.IV,"-").concat(null==(a=t.id)?void 0:a.replace(/\//g,"_")),o)),[2,n]}})}),function(e){return r.apply(this,arguments)}):function(){return"function"==typeof t.lazyImport&&t.lazyImport(),null},action:e.action,hasErrorBoundary:e.hasErrorBoundary,shouldRevalidate:e.shouldRevalidate,handle:(0,n._)({},w,(void 0===g?"undefined":(0,x._)(g))==="object"?null==g?void 0:g.handle:{}),index:e.index,element:e.element,errorElement:e.errorElement};if(e.error&&(R.errorElement=(0,a.jsx)(e.error,{})),h)if((null==b?void 0:b.loading)&&m){var E=b.loading;s=F(h)?(0,a.jsx)(h,{fallback:(0,a.jsx)(E,{})}):(0,a.jsx)(d.Suspense,{fallback:(0,a.jsx)(E,{}),children:(0,a.jsx)(h,{})})}else s=F(h)&&m?(0,a.jsx)(h,{}):v?(0,a.jsx)(h,(0,n._)({},void 0===j?{}:j)):m?(0,a.jsx)(d.Suspense,{fallback:null,children:(0,a.jsx)(h,{})}):(0,a.jsx)(h,{});else e.loading=null==b?void 0:b.loading,R.element=(0,a.jsx)(l.sv,{});s&&(R.element=s);var A=null==c?void 0:c.map(function(t){return z(t,{parent:e})});return f?(0,a.jsx)(l.qh,(0,o._)((0,n._)({},R),{index:!0}),p):(0,a.jsx)(l.qh,(0,o._)((0,n._)({},R),{index:!1,children:A}),p)};function F(e){return e&&"Loadable"===e.displayName&&e.preload&&"function"==typeof e.preload}var H=function(){return(0,a.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})};function G(){return null}var K=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=RegExp("".concat("/","{1,}"),"g");return(e=r.join("/").replace(o,"/"))&&"string"==typeof e&&(e.startsWith(".")&&(e=e.slice(1)),e.startsWith("/")||(e="/".concat(e)),e.endsWith("/")&&"/"!==e&&(e=e.slice(0,e.length-1))),e},W={routes:[]},X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"@modern-js/plugin-router",registryHooks:{modifyRoutes:m,onBeforeCreateRoutes:g},setup:function(t){var r={current:[]};t.onBeforeRender(function(t){if(window._SSR_DATA&&e.unstable_reloadOnURLMismatch){var n,o=t.ssrContext,i=c(window.location.pathname),a=(null==o||null==(n=o.request)?void 0:n.pathname)&&c(o.request.pathname);a&&a!==i&&(console.error("The initial URL ".concat(a," and the URL ").concat(i," to be hydrated do not match, reload.")),window.location.reload())}t.router={useMatches:l.FE,useLocation:l.zy,useHref:l.$P},Object.defineProperty(t,"routes",{get:function(){return r.current},enumerable:!0})}),t.wrapRoot(function(c){var f=(0,s.h)(t.getRuntimeConfig().router||{},e),v=f.serverBase,m=void 0===v?[]:v,g=f.supportHtml5History,y=void 0===g||g,_=f.basename,b=void 0===_?"":_,R=f.routesConfig,E=f.createRoutes,S=f.future;if(!(W=(0,n._)({routes:(0,h.A8)(),globalApp:(0,h.fn)()},R)).routes&&!E)return c;var C=function(e){return m.find(function(t){return function(e,t){var r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t||"/",n=e||"/";return n===r||n.startsWith("".concat(r,"/"))}(e,t)})||"/"};return function(e){var s,f,v,m,g,_,R,P,N,L,D,B,M,T=(s=(0,o._)((0,n._)({},e),{rscPayload:null==e?void 0:e.rscPayload}),v=(f={api:t,createRoutes:E,supportHtml5History:y,selectBasePath:C,basename:b,future:S}).api,m=f.createRoutes,g=f.supportHtml5History,_=f.selectBasePath,R=f.basename,P=(0,d.useContext)(p.V_),L="/"===(N=_(location.pathname).replace(/^\/*/,"/"))?K(N,P._internalRouterBaseName||R):N,D=P.unstable_getBlockNavState,B=(null==s?void 0:s.rscPayload)?Y(s.rscPayload):null,M=window._ROUTER_DATA||B,(0,d.useMemo)(function(){(null==M?void 0:M.errors)&&(M=(0,o._)((0,n._)({},M),{errors:function(e){if(!e)return null;var t=Object.entries(e),r={},n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=(0,w._)(a.value,2),u=l[0],c=l[1];if(c&&"RouteErrorResponse"===c.__type)r[u]=new j.VV(c.status,c.statusText,c.data,!0===c.internal);else if(c&&"Error"===c.__type){var d=Error(c.message);d.stack=c.stack,r[u]=d}else r[u]=c}}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(M.errors)}));var e=(0,h.J$)(),t=null;(t=e?m?m():function(e){var t=e.routesConfig,r=e.props,o=e.ssrMode;if(!t)return null;var i=t.routes,s=t.globalApp;return i?function e(t,r){var o=r.globalApp,i=r.ssrMode,s=r.props,l=function(e){return o?function(t){return(0,a.jsx)(o,(0,n._)({Component:e},t))}:e},u=[],c=!0,f=!1,p=void 0;try{for(var h,v=t[Symbol.iterator]();!(c=(h=v.next()).done);c=!0){var m=h.value;if("nested"===m.type){var g,y={path:m.path,id:m.id,loader:m.loader,action:m.action,hasErrorBoundary:m.hasErrorBoundary,shouldRevalidate:m.shouldRevalidate,handle:(0,n._)({},m.handle,"object"===(0,x._)(m.config)?null==(g=m.config)?void 0:g.handle:{}),index:m.index,hasClientLoader:!!m.clientData,Component:m.component?m.component:void 0,errorElement:m.error?(0,a.jsx)(m.error,{}):void 0,children:m.children?m.children.map(function(t){return e([t],{globalApp:o,ssrMode:i,props:s})[0]}):void 0};u.push(y)}else if("function"==typeof m.component||"object"===(0,x._)(m.component)){var w=l(m.component),_={path:m.path,element:d.createElement(w)};u.push(_)}}}catch(e){f=!0,p=e}finally{try{c||null==v.return||v.return()}finally{if(f)throw p}}return u.push({path:"*",element:(0,a.jsx)(H,{})}),u}(i,{globalApp:s,ssrMode:o,props:r}):null}({routesConfig:W}):m?m():(0,l.Eu)(function(e){var t=e.routesConfig,r=e.props,o=e.ssrMode;if(!t)return null;var i=t.routes,s=t.globalApp;return i?function(e,t){var r=t.globalApp,o=t.ssrMode,i=t.props,s=function(e){var t=e.Component,o=(0,k._)(e,["Component"]);return r?(0,a.jsx)(r,(0,n._)({Component:t},o)):(0,a.jsx)(t,(0,n._)({},o))},u=[],c=!0,d=!1,f=void 0;try{for(var p,h=e[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var v=p.value;if("nested"===v.type){var m=z(v,{DeferredDataComponent:"stream"===o?G:void 0,props:i});u.push(m)}else{var g=(0,a.jsx)(l.qh,{path:v.path,element:(0,a.jsx)(s,{Component:v.component})},v.path);u.push(g)}}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}return u.push((0,a.jsx)(l.qh,{path:"*",element:(0,a.jsx)(H,{})},"*")),u}(i,{globalApp:s,ssrMode:o,props:r}):null}({routesConfig:W,props:s})))||(t=[]);var r=v.getHooks();if(B)try{var c=A(B,t,L);return{router:c,routes:c.routes||[]}}catch(e){console.error("Failed to create router from RSC payload:",e)}var f=r.modifyRoutes.call(t),p=g?(0,u.Ys)(f,{basename:L,hydrationData:M}):(0,u.Ge)(f,{basename:L,hydrationData:M}),y=p.subscribe;return p.subscribe=function(e){return y(function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!(D&&D()))return e.apply(void 0,(0,i._)(r))})},{router:p,routes:f}},[W,s,L,M,D])),I=T.router;r.current=T.routes;var O=function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.pg,{router:I,future:S}),(0,a.jsx)(J,{}),(0,a.jsx)(J,{})]})};return c?(0,a.jsx)(c,{children:(0,a.jsx)(O,{})}):(0,a.jsx)(O,{})}})}}},J=function(){return null},Y=function(e){var t=f&&f.use;return"function"==typeof t?t(e):null}},24645(e,t,r){"use strict";r.d(t,{eM:()=>i,qF:()=>a,rl:()=>o});var n=r(18669),o=function(e){return function(t){var r,o,i=null==(o=window)||null==(r=o[n.Ql])?void 0:r[e];return i&&"function"==typeof i.shouldRevalidate?i.shouldRevalidate(t):t.defaultShouldRevalidate}},i=function(e,t){return"u">typeof document&&(window[n.Ql][t]=e),e},a=function(e){return console.error(e),null}},19723(e,t,r){"use strict";r.d(t,{Lt:()=>s,Ve:()=>a,po:()=>l});var n=r(37993),o=r(91345),i=r(73820);function a(){var e,t=[];return{tap:function(e){t.push(e)},call:(e=(0,n._)(function(){var e,r,n,a,s,l,u,c,d,f,p,h,v,m,g=arguments;return(0,i._)(this,function(i){switch(i.label){case 0:for(r=Array(e=g.length),n=0;n<e;n++)r[n]=g[n];a=!1,l=function(e){a=!0,s=e},u=!0,c=!1,d=void 0,i.label=1;case 1:i.trys.push([1,6,7,8]),f=t[Symbol.iterator](),i.label=2;case 2:if((u=(p=f.next()).done)||(h=p.value,a))return[3,5];return[4,h.apply(void 0,(0,o._)(r).concat([l]))];case 3:void 0!==(v=i.sent())&&(r[0]=v),i.label=4;case 4:return u=!0,[3,2];case 5:return[3,8];case 6:return m=i.sent(),c=!0,d=m,[3,8];case 7:try{u||null==f.return||f.return()}finally{if(c)throw d}return[7];case 8:return[2,a?s:r[0]||[]]}})}),function(){return e.apply(this,arguments)})}}function s(){var e=[];return{tap:function(t){e.push(t)},call:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=!0,a=!1,s=void 0;try{for(var l,u=e[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=l.value.apply(void 0,(0,o._)(r));void 0!==c&&(r[0]=c)}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return r[0]}}}function l(){var e=[];return{tap:function(t){e.push(t)},call:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=[],i=!0,a=!1,s=void 0;try{for(var l,u=e[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=(0,l.value)(r);void 0!==c&&o.push(c)}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return o}}}},17089(e,t,r){"use strict";r.d(t,{h:()=>function e(t){for(var r=arguments.length,i=Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];if(!i.length)return t;var l=i.shift();if(a(t)&&a(l))for(var u in l)a(l[u])?(t[u]||Object.assign(t,(0,n._)({},u,{})),e(t[u],l[u])):Object.assign(t,(0,n._)({},u,l[u]));return e.apply(void 0,[t].concat((0,o._)(i)))}});var n=r(40746),o=r(91345),i=r(61139);function a(e){return e&&(void 0===e?"undefined":(0,i._)(e))==="object"&&!Array.isArray(e)}},18669(e,t,r){"use strict";r.d(t,{Ae:()=>n,IV:()=>i,Ql:()=>o});var n="_MODERNJS_ROUTE_MANIFEST",o="_routeModules",i="server-loader"}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["184","422","493","514","535","783","792"],function(){return t(93125),t(89801),t(25953),t(50054),t(39325)}),e.O()}]);