@modern-js/devtools-client 2.67.6 → 2.67.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modern.config.json +1 -1
- package/dist/public/sw-proxy.js +1 -1
- package/dist/routes-manifest.json +42 -42
- package/dist/static/html/client/index.html +3 -3
- package/dist/static/html/mount/index.html +3 -3
- package/dist/static/js/{875.50b9d4a7.js → 245.ab549374.js} +2 -2
- package/dist/static/js/{114.22dad1f3.js → 415.8e6e23fd.js} +3 -3
- package/dist/static/js/{746.26fc6cc6.js → 746.7522c665.js} +1 -1
- package/dist/static/js/async/client_config/(toolkit).(type)/{page.f1676295.js → page.e9f8556f.js} +1 -1
- package/dist/static/js/async/client_context/builder/{page.2bd166ee.js → page.31c9256d.js} +1 -1
- package/dist/static/js/async/client_context/framework/{page.c130299d.js → page.25541e57.js} +1 -1
- package/dist/static/js/async/client_doctor/page.6cbdc466.js +1 -0
- package/dist/static/js/async/client_headers/editor/{page.5d47ed02.js → page.938fa19a.js} +1 -1
- package/dist/static/js/async/client_overview/page.da3d0d32.js +1 -0
- package/dist/static/js/async/client_pages/{page.43383a94.js → page.8067ff5f.js} +1 -1
- package/dist/static/js/async/client_storage/preset/(id)/page.2ff9b41c.js +1 -0
- package/dist/static/js/async/client_storage/preset/layout.650778e9.js +1 -0
- package/dist/static/js/async/client_storage/preset/page.56d8f855.js +1 -0
- package/dist/static/js/{builder-runtime.b48f1bac.js → builder-runtime.0052d0a9.js} +1 -1
- package/dist/static/js/{client.e5b4073f.js → client.1927d770.js} +1 -1
- package/dist/static/js/components.1436992e.js +1 -0
- package/dist/static/js/{mount.eb523393.js → mount.f11cba8b.js} +1 -1
- package/package.json +14 -14
- package/dist/static/js/async/client_doctor/page.b9712880.js +0 -1
- package/dist/static/js/async/client_overview/page.0cbce797.js +0 -1
- package/dist/static/js/async/client_storage/preset/(id)/page.b6892ea3.js +0 -1
- package/dist/static/js/async/client_storage/preset/layout.427ba761.js +0 -1
- package/dist/static/js/async/client_storage/preset/page.6f765764.js +0 -1
- package/dist/static/js/components.9d49eaac.js +0 -1
- /package/dist/static/css/{875.649dd1fe.css → 245.649dd1fe.css} +0 -0
- /package/dist/static/css/{114.f5c7162b.css → 415.f5c7162b.css} +0 -0
- /package/dist/static/js/{875.50b9d4a7.js.LICENSE.txt → 245.ab549374.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{114.22dad1f3.js.LICENSE.txt → 415.8e6e23fd.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["462"],{95942:function(e,t,n){"use strict";n.d(t,{sY:()=>w});var r=n(86902),o=n(63963),i=n(34202),a=n(25176),s=n(53845),u=n(99613),l=n(75192),c=n(62641),d=n(24644),f=n(13063),p=n(5872);function h(e,t){return p.createElement(d.JO.Provider,{value:t},e)}var v=n(86834),m=n(48249),g=n(24348),y=function(e){var t=e.callback,n=e.children,r=(0,p.useRef)(!1);return(0,p.useLayoutEffect)(function(){r.current||(r.current=!0,t())},[t]),n},x=function(){return!0};function w(e,t){return _.apply(this,arguments)}function _(){return(_=(0,r._)(function(e,t){var n,p,w,_,j,E,k,A,S,C;function N(){return(N=(0,r._)(function(e){return(0,u.Jh)(this,function(t){return[2,function(e,t){return b.apply(this,arguments)}(e,C)]})})).apply(this,arguments)}function T(){return(T=(0,r._)(function(e,t){return(0,u.Jh)(this,function(n){return[2,function(e,t){return R.apply(this,arguments)}(e,C,t)]})})).apply(this,arguments)}return(0,u.Jh)(this,function(b){var R,M,P,D,O,L,H,B,U,I,J,z,F,q,Z,V,W;switch(b.label){case 0:if(n=(0,d.zv)(),R=(0,r._)(function(e){var t,n;return(0,u.Jh)(this,function(r){switch(r.label){case 0:return(t=(0,c.Uk)()).pluginAPI.updateRuntimeContext(e),[4,t.hooks.onBeforeRender.call(e)];case 1:return r.sent(),[2,null==(n=(0,c.Hb)())?void 0:n(e)]}})}),!(void 0===t||"string"==typeof t||"undefined"!=typeof HTMLElement&&(0,o._)(t,HTMLElement)))return[3,2];return p=function(e){return N.apply(this,arguments)},w=function(e,t){return T.apply(this,arguments)},L=null==(O=window._SSR_DATA)||null==(M=O.context)?void 0:M.request,A=Object.keys(k=(null==(_=(E=(0,a._)((0,i._)({},O||{renderLevel:0,mode:"string"}),{context:(0,a._)((0,i._)({},(null==O?void 0:O.context)||{}),{request:(0,a._)((0,i._)({},(null==O||null==(P=O.context)?void 0:P.request)||{}),{params:(null==L?void 0:L.params)||{},host:(null==L?void 0:L.host)||location.host,pathname:(null==L?void 0:L.pathname)||location.pathname,headers:(null==L?void 0:L.headers)||{},cookieMap:l.parse(document.cookie||"")||{},cookie:document.cookie||"",userAgent:(null==L||null==(D=L.headers)?void 0:D["user-agent"])||navigator.userAgent,referer:document.referrer,query:(0,i._)({},window.location.search.substring(1).split("&").reduce(function(e,t){var n=(0,s._)(t.split("="),2),r=n[0],o=n[1];return r&&(e[r]=o),e},{}),(null==L?void 0:L.query)||{}),url:location.href})})})).data)?void 0:_.loadersData)||{}).reduce(function(e,t){var n=k[t];return(null==n?void 0:n.loading)!==!1||(e[t]=n),e},{}),Object.assign(n,{loaderManager:(0,f.K)(A,{skipStatic:!0}),_internalRouterBaseName:e.props.basename,ssrContext:E.context}),n.initialData=null==(j=E.data)?void 0:j.initialData,[4,function(e){return R.apply(this,arguments)}(n)];case 1:if((S=b.sent())&&(n.initialData=S),C=t&&"string"!=typeof t?t:document.getElementById(t||"root"),window._SSR_DATA)return[2,(H=n,B=p,U=w,q=(0,a._)((0,i._)({},H),{get routes(){return H.routes},_hydration:!0}),Z=function(){delete q._hydration},V=(null==(J=window)||null==(I=J._SSR_DATA)?void 0:I.renderLevel)||g.Nm.CLIENT_RENDER,W=(null==(F=window)||null==(z=F._SSR_DATA)?void 0:z.mode)||"string",x()&&"stream"===W?V===g.Nm.SERVER_RENDER?U(h((0,v.jsx)(function(){return(0,v.jsx)(y,{callback:Z,children:e})},{}),q)):B(h(e,H)):V===g.Nm.CLIENT_RENDER||V===g.Nm.SERVER_PREFETCH?B(h(e,H)):V===g.Nm.SERVER_RENDER?new Promise(function(t){x()?(0,m.TA)(function(){U(h((0,v.jsx)(function(){return(0,v.jsx)(y,{callback:Z,children:e})},{}),q)).then(function(e){t(e)})}):(0,m.TA)(function(){U(h(e,q),Z).then(function(e){t(e)})})}):(console.warn("unknow render level: ".concat(V,", execute render()")),B(h(e,H))))];return[2,p(h(e,n))];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,r._)(function(e,t){var r;return(0,u.Jh)(this,function(o){switch(o.label){case 0:return[4,n.e("58").then(n.t.bind(n,41035,19))];case 1:return(r=o.sent().createRoot(t)).render(e),[2,r]}})})).apply(this,arguments)}function j(){return(j=(0,r._)(function(e,t){return(0,u.Jh)(this,function(r){switch(r.label){case 0:return[4,Promise.resolve().then(n.t.bind(n,54e3,19))];case 1:return r.sent().render(e,t),[2,t]}})})).apply(this,arguments)}function R(){return(R=(0,r._)(function(e,t){return(0,u.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e("58").then(n.t.bind(n,41035,19))];case 1:return[2,r.sent().hydrateRoot(t,e)]}})})).apply(this,arguments)}function E(){return(E=(0,r._)(function(e,t,r){return(0,u.Jh)(this,function(o){switch(o.label){case 0:return[4,Promise.resolve().then(n.t.bind(n,54e3,19))];case 1:return[2,o.sent().hydrate(e,t,r)]}})})).apply(this,arguments)}},24348:function(e,t,n){"use strict";n.d(t,{Ni:()=>a,Nm:()=>o,pc:()=>i}),(r=o||(o={}))[r.CLIENT_RENDER=0]="CLIENT_RENDER",r[r.SERVER_PREFETCH=1]="SERVER_PREFETCH",r[r.SERVER_RENDER=2]="SERVER_RENDER";var r,o,i="__MODERN_SSR_DATA__",a="__MODERN_ROUTER_DATA__"},62641:function(e,t,n){"use strict";n.d(t,{CH:()=>d,FM:()=>s,Hb:()=>l,Uk:()=>a,cE:()=>o,hb:()=>i,jn:()=>u,nB:()=>c});var r={};function o(e){r.entryName=e.entryName,r.App=e.App,r.routes=e.routes,r.appInit=e.appInit,r.appConfig="function"==typeof e.appConfig?e.appConfig():e.appConfig,r.layoutApp=e.layoutApp,r.RSCRoot=e.RSCRoot}function i(e){r.internalRuntimeContext=e}function a(){return r.internalRuntimeContext}function s(){return r.App}function u(){return r.routes}function l(){var e,t;return r.appInit||(null==(e=s())?void 0:e.init)||(null==(t=d())?void 0:t.init)}function c(){var e,t;return r.appConfig||(null==(e=s())?void 0:e.config)||(null==(t=d())?void 0:t.config)}function d(){return r.layoutApp}},24644:function(e,t,n){"use strict";n.d(t,{JO:()=>a,zv:()=>s});var r=n(63415),o=n(5872),i=n(13063),a=(0,o.createContext)({});(0,o.createContext)({});var 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.K)({}),isBrowser:e,routeManifest:t||"undefined"!=typeof window&&window[r.p9]}}},13063:function(e,t,n){"use strict";n.d(t,{K:()=>h});var r,o,i=n(86902),a=n(63963),s=n(53845),u=n(77689),l=n(99613),c=n(24546),d=n.n(c),f=function(){var e=new Map;return function(t){var n=e.get(t);if(n)return n;var r=JSON.stringify(t);return d()(r,"params should be not null value"),e.set(t,r),r}};(r=o||(o={}))[r.idle=0]="idle",r[r.loading=1]="loading",r[r.fulfilled=2]="fulfilled",r[r.rejected=3]="rejected";var p=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{loading:!1,reloading:!1,data:void 0,error:void 0},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return Promise.resolve()},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=0,d=r.data,f=r.error,p=!1,h=new Set,v=(t=(0,i._)(function(){return(0,l.Jh)(this,function(e){return s||1===c?[2,n]:(c=1,g(),[2,n=o().then(function(e){d=e,f=null,c=2}).catch(function(e){f=e,d=null,c=3}).finally(function(){n=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,u._)(h).forEach(function(e){e(c,m())})};return{get result(){return m()},get promise(){return n},onChange:function(e){return h.add(e),function(){h.delete(e)}},load:v}},h=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipStatic,o=void 0!==r&&r,u=n.skipNonStatic,c=void 0!==u&&u,d=new Map,h=f();return{hasPendingLoaders:function(){var e=!0,t=!1,n=void 0;try{for(var r,o=d.values()[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var i=r.value.promise;if((0,a._)(i,Promise))return!0}}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}return!1},awaitPendingLoaders:(t=(0,i._)(function(){var e,t,n,r,o,i,u,c,f,p;return(0,l.Jh)(this,function(l){switch(l.label){case 0:e=[],t=!0,n=!1,r=void 0;try{for(o=d[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)c=(u=(0,s._)(i.value,2))[0],p=(f=u[1]).promise,(0,a._)(p,Promise)&&e.push([c,f])}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}return[4,Promise.all(e.map(function(e){return e[1].promise}))];case 1:return l.sent(),[2,e.reduce(function(e,t){var n=(0,s._)(t,2),r=n[0],o=n[1];return e[r]=o.result,e},{})]}})}),function(){return t.apply(this,arguments)}),add:function(t,n){var r=h(n.params),i=d.get(r),a=n._cache;if(!i||!1===a){var s=c&&!n.static,u=o&&n.static;i=p(r,void 0!==e[r]?e[r]:{data:n.initialData},t,s||u),d.set(r,i)}return r},get:function(e){return d.get(e)}}}},30169:function(e,t,n){"use strict";n.d(t,{v:()=>j,f:()=>R});var r,o,i,a,s,u,l,c=n(77689),d=n(27293),f=n(66871),p=n(34202),h=n(30309),v=n(25176),m=n(22589),g=(o=function(e){l.clear(),r=e;var t=e.plugins,n=e.handleSetupResult;l.addPlugins(t);var o=l.getPlugins(),i=(g=(f={runtimeContext:{},config:r.config,plugins:o}).runtimeContext,y=f.config,x=f.plugins,w={},x.forEach(function(e){var t=e.registryHooks,n=void 0===t?{}:t;Object.keys(n).forEach(function(e){w[e]=n[e]})}),(0,v._)((0,p._)({},g),{hooks:(0,p._)({},{onBeforeRender:(0,m.Ol)(),wrapRoot:(0,m.y2)(),pickContext:(0,m.y2)(),config:(0,m.rG)()},w),extendsHooks:w,config:y})),a=function(e){var t=e.context,n=e.plugins,r=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.T)(t,e)}var s={};n.forEach(function(e){var t=e._registryApi;if(t){var n=t(i,a);Object.keys(n).forEach(function(e){s[e]=n[e]})}}),o&&Object.keys(o).forEach(function(e){s[e]=o[e].tap});var u=(0,p._)({updateRuntimeContext:a,getHooks:function(){return(0,p._)({},r,o)},getRuntimeConfig:function(){if(t.config)return t.config;throw Error("Cannot access config")},config:r.config.tap,onBeforeRender:r.onBeforeRender.tap,wrapRoot:r.wrapRoot.tap,pickContext:r.pickContext.tap},s);return"undefined"==typeof Proxy?u:new Proxy(u,{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:l,plugins:o});i.pluginAPI=a;var s=!0,u=!1,c=void 0;try{for(var f,g,y,x,w,_,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);n&&n(E,a)}}catch(e){u=!0,c=e}finally{try{s||null==b.return||b.return()}finally{if(u)throw c}}return{runtimeContext:i}},i=new Map,a=new Map,s=function(e,t,n){a.has(t)||a.set(t,{pre:new Map,post:new Map}),"pre"===n?a.get(e).pre.set(t,{name:t,isUse:!1}):"post"===n?a.get(e).post.set(t,{name:t}):"use"!==n||a.get(e).post.has(t)||a.get(t).pre.has(e)||a.get(e).pre.set(t,{name:t,isUse:!0})},u=function(e){if(e){var t=e,n=void 0===t?"undefined":(0,f._)(t);if("object"!==n||null===t)throw Error("Expect CLI Plugin instance to be an object, but got ".concat(n,"."));if(t.setup&&"function"!=typeof t.setup)throw Error("Expect CLI Plugin plugin.setup to be a function, but got ".concat(n,"."));var r=e.name,o=e.usePlugins,l=e.pre,c=e.post;if(i.has(r))return void console.warn("Plugin ".concat(r," already exists."));i.set(r,e),a.set(r,{pre:new Map,post:new Map}),(void 0===l?[]:l).forEach(function(e){s(r,e,"pre")}),(void 0===c?[]:c).forEach(function(e){s(r,e,"post")}),(void 0===o?[]:o).forEach(function(e){i.has(e.name)||u(e),s(r,e.name,"use")})}},l={getPlugins:function(){var e=new Set,t=new Set,n=[],r=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 u=a.get(o).pre;Array.from(u.values()).filter(function(e){return!e.isUse}).forEach(function(e){return r(e.name)}),Array.from(u.values()).filter(function(e){return e.isUse}).forEach(function(e){return r(e.name)}),t.delete(o),e.add(o),n.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){r(t)}),n=n.filter(function(e){return e})},addPlugins:function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=o.value;u(a)}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}},clear:function(){i.clear(),a.clear()},isPluginExists:function(e){return i.has(e)}},{run:function(e){var t=o(e).runtimeContext,n=t.hooks.config.call().filter(function(e){return!!e});return t.config=d.T.apply(void 0,[{}].concat((0,c._)(n),[t.config||{}])),{runtimeContext:t}}}),y=n(86902),x=n(99613);function w(e,t){e&&Object.keys(e).forEach(function(n){var r=e[n];if("function"==typeof r){var o="beforeRender"===n?"onBeforeRender":n;t[o]&&("beforeRender"===n?t[o]((0,y._)(function(){var e,t,n,o=arguments;return(0,x.Jh)(this,function(i){switch(i.label){case 0:for(t=Array(e=o.length),n=0;n<e;n++)t[n]=o[n];return[4,r.apply(void 0,(0,c._)(t))];case 1:return i.sent(),[2]}})})):t[o](function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.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=n(62641);function j(e,t){var n=(t||{}).plugins,r=g.run({plugins:[{name:"@modern-js/runtime-plugin-compat",_registryApi:function(e){return{useRuntimeConfigContext:function(){return e()._internalContext.config},useHookRunners:function(){var t,n;return t=e()._internalContext.hooks,{beforeRender:(n=(0,y._)(function(e){return(0,x.Jh)(this,function(n){return[2,t.onBeforeRender.call(e)]})}),function(e){return n.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===n?[]:n)),config:t||{},handleSetupResult:w}).runtimeContext;return(0,b.hb)(r),r}function R(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return d.T.apply(void 0,[{},e].concat((0,c._)(n)))}},62192:function(e,t,n){"use strict";n.d(t,{s:()=>a});var r=function(e){var t=document.querySelectorAll("#".concat(e));if(0!==t.length){var n=t[t.length-1];if(n)try{return JSON.parse((null==n?void 0:n.textContent)||"")}catch(t){console.error("parse ".concat(e," error"),t)}}},o=n(24348),i=n(62641);function a(e){var t=e||(0,i.FM)();return"undefined"!=typeof window&&"nodejs"!==window.name&&(window._SSR_DATA=window._SSR_DATA||r(o.pc),window._ROUTER_DATA=window._ROUTER_DATA||r(o.Ni)),(0,i.Uk)().hooks.wrapRoot.call(t)}},48899:function(e,t,n){"use strict";n.d(t,{NA:()=>F});var r=n(34202),o=n(25176),i=n(77689),a=n(86834),s=n(27293),u=n(49607),l=n(29001);function c(e){return"/"+e.replace(/^\/+|\/+$/g,"")}var d=n(5872),f=n(24644),p=n(62641),h=n(22589),v=(0,h.y2)(),m=(0,h.y2)(),g=n(30309),y=n(53845),x=n(86902),w=n(66871),_=n(99613),b=n(63415);function j(e){var t=.001*new Date().getTime(),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]}var R=function(e){var t=(0,y._)(j(e),2);return 1e3*t[0]+t[1]/1e6},E=function(){var e=j();return function(){return R(e)}},k="undefined"!=typeof window&&void 0!==window.document,A=function(){if(k)return console.error("You should not get async storage in browser"),null;try{return n(6131).getAsyncLocalStorage()}catch(e){return console.error("Failed to load server async storage",e),null}},S=n(26345),C=n(92497),N=n(29686),T=n(19916),M=n(53774),P=n(63963);function D(e,t){if(!1===e||null==e)throw Error(t)}var O=function(e){function t(){return(0,C._)(this,t),(0,S._)(this,t,arguments)}return(0,M._)(t,e),t}((0,n(4453)._)(Error)),L=function(e){var t,n,i,s,l=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,y=e.handle,j=l.parent,R=l.props,k={caseSensitive:e.caseSensitive,path:e.path,id:e.id,loader:(i=(t=e).loader)?(n=(0,x._)(function(e){var n,r,o,a,s,u;return(0,_.Jh)(this,function(l){switch(l.label){case 0:return"function"==typeof t.lazyImport&&t.lazyImport(),n=E(),[4,i(e)];case 1:r=l.sent();return o=n(),"undefined"==typeof document&&(null==(u=A())||null==(s=u.useContext().monitors)||s.timing("".concat(b.m5,"-").concat(null==(a=t.id)?void 0:a.replace(/\//g,"_")),o)),[2,r]}})}),function(e){return n.apply(this,arguments)}):function(){return"function"==typeof t.lazyImport&&t.lazyImport(),null},action:e.action,hasErrorBoundary:e.hasErrorBoundary,shouldRevalidate:e.shouldRevalidate,handle:(0,r._)({},y,(void 0===g?"undefined":(0,w._)(g))==="object"?null==g?void 0:g.handle:{}),index:e.index,element:e.element,errorElement:e.errorElement};if(e.error&&(k.errorElement=(0,a.jsx)(e.error,{})),h)if((null==j?void 0:j.loading)&&m){var S=j.loading;s=H(h)?(0,a.jsx)(h,{fallback:(0,a.jsx)(S,{})}):(0,a.jsx)(d.Suspense,{fallback:(0,a.jsx)(S,{}),children:(0,a.jsx)(h,{})})}else s=H(h)&&m?(0,a.jsx)(h,{}):v?(0,a.jsx)(h,(0,r._)({},void 0===R?{}:R)):m?(0,a.jsx)(d.Suspense,{fallback:null,children:(0,a.jsx)(h,{})}):(0,a.jsx)(h,{});else e.loading=null==j?void 0:j.loading,k.element=(0,a.jsx)(u.j3,{});s&&(k.element=s);var C=null==c?void 0:c.map(function(t){return L(t,{parent:e})});return f?(0,a.jsx)(u.AW,(0,o._)((0,r._)({},k),{index:!0}),p):(0,a.jsx)(u.AW,(0,o._)((0,r._)({},k),{index:!1,children:C}),p)};function H(e){return e&&"Loadable"===e.displayName&&e.preload&&"function"==typeof e.preload}var B=n(52911),U=function(){return(0,a.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})};function I(){return null}var J=function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=RegExp("".concat("/","{1,}"),"g");return(e=n.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},z={routes:[]},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"@modern-js/plugin-router",registryHooks:{modifyRoutes:v,onBeforeCreateRoutes:m},setup:function(t){var n=[];t.onBeforeRender(function(t){if(window._SSR_DATA&&e.unstable_reloadOnURLMismatch){var r,o=t.ssrContext,i=c(window.location.pathname),a=(null==o||null==(r=o.request)?void 0:r.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:u.SN,useLocation:u.TH,useHref:u.oQ},Object.defineProperty(t,"routes",{get:function(){return n},enumerable:!0})}),t.wrapRoot(function(c){var h,v,m=t.getRuntimeConfig(),x=(0,s.T)(m.router||{},e),w=x.serverBase,_=void 0===w?[]:w,b=x.supportHtml5History,j=void 0===b||b,R=x.basename,E=void 0===R?"":R,k=x.routesConfig,A=x.createRoutes,S=x.future;return(z=(0,r._)({routes:(0,p.jn)(),globalApp:(0,p.CH)()},k)).routes||A?(h=function(e){var s,c=(0,d.useContext)(f.JO),p=(s=location.pathname,_.find(function(e){return 0===s.search(e)})||"/").replace(/^\/*/,"/"),h="/"===p?J(p,c._internalRouterBaseName||E):p,v=window._ROUTER_DATA,m=c.unstable_getBlockNavState;return(0,d.useMemo)(function(){(null==v?void 0:v.errors)&&(v=(0,o._)((0,r._)({},v),{errors:function(e){if(!e)return null;var t=Object.entries(e),n={},r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=(0,y._)(a.value,2),l=u[0],c=u[1];if(c&&"RouteErrorResponse"===c.__type)n[l]=new B.OF(c.status,c.statusText,c.data,!0===c.internal);else if(c&&"Error"===c.__type){var d=Error(c.message);d.stack=c.stack,n[l]=d}else n[l]=c}}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(v.errors)})),n=A?A():(0,u.i7)(function(e){var t=e.routesConfig,n=e.props,o=e.ssrMode;if(!t)return null;var i=t.routes,s=t.globalApp;return i?function(e,t){var n=t.globalApp,o=t.ssrMode,i=t.props,s=function(e){var t=e.Component,o=(0,g._)(e,["Component"]);return n?(0,a.jsx)(n,(0,r._)({Component:t},o)):(0,a.jsx)(t,(0,r._)({},o))},l=[],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=L(v,{DeferredDataComponent:"stream"===o?I:void 0,props:i});l.push(m)}else{var y=(0,a.jsx)(u.AW,{path:v.path,element:(0,a.jsx)(s,{Component:v.component})},v.path);l.push(y)}}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}return l.push((0,a.jsx)(u.AW,{path:"*",element:(0,a.jsx)(U,{})},"*")),l}(i,{globalApp:s,ssrMode:o,props:n}):null}({routesConfig:z,props:e})),n=t.getHooks().modifyRoutes.call(n);var s=j?(0,l.aj)(n,{basename:h,hydrationData:v}):(0,l.cP)(n,{basename:h,hydrationData:v}),c=s.subscribe;return s.subscribe=function(e){return c(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!(m&&m()))return e.apply(void 0,(0,i._)(n))})},s},[z,e,h,v,m])},v=function(){return null},function(e){var t=h(e),n=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.pG,{router:t,future:S}),(0,a.jsx)(v,{}),(0,a.jsx)(v,{})]});return c?(0,a.jsx)(c,{children:n}):n}):c})}}}},83366:function(e,t,n){"use strict";n.d(t,{RC:()=>o,UC:()=>a,u3:()=>i});var r=n(63415),o=function(e){return function(t){var n,o,i=null==(o=window)||null==(n=o[r.u$])?void 0:n[e];return i&&"function"==typeof i.shouldRevalidate?i.shouldRevalidate(t):t.defaultShouldRevalidate}},i=function(e,t){return"undefined"!=typeof document&&(window[r.u$][t]=e),e},a=function(e){return console.error(e),null}},6131:function(e){e.exports={}},22589:function(e,t,n){"use strict";n.d(t,{Ol:()=>a,rG:()=>u,y2:()=>s});var r=n(86902),o=n(77689),i=n(99613);function a(){var e,t=[];return{tap:function(e){t.push(e)},call:(e=(0,r._)(function(){var e,n,r,a,s,u,l,c,d,f,p,h,v,m,g=arguments;return(0,i.Jh)(this,function(i){switch(i.label){case 0:for(n=Array(e=g.length),r=0;r<e;r++)n[r]=g[r];a=!1,u=function(e){a=!0,s=e},l=!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((l=(p=f.next()).done)||(h=p.value,a))return[3,5];return[4,h.apply(void 0,(0,o._)(n).concat([u]))];case 3:void 0!==(v=i.sent())&&(n[0]=v),i.label=4;case 4:return l=!0,[3,2];case 5:return[3,8];case 6:return m=i.sent(),c=!0,d=m,[3,8];case 7:try{l||null==f.return||f.return()}finally{if(c)throw d}return[7];case 8:return[2,a?s:n[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,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=!0,a=!1,s=void 0;try{for(var u,l=e[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value.apply(void 0,(0,o._)(n));void 0!==c&&(n[0]=c)}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}return n[0]}}}function u(){var e=[];return{tap:function(t){e.push(t)},call:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=[],i=!0,a=!1,s=void 0;try{for(var u,l=e[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=(0,u.value)(n);void 0!==c&&o.push(c)}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}return o}}}},27293:function(e,t,n){"use strict";n.d(t,{T:()=>function e(t){for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];if(!i.length)return t;var u=i.shift();if(a(t)&&a(u))for(var l in u)a(u[l])?(t[l]||Object.assign(t,(0,r._)({},l,{})),e(t[l],u[l])):Object.assign(t,(0,r._)({},l,u[l]));return e.apply(void 0,[t].concat((0,o._)(i)))}});var r=n(19916),o=n(77689),i=n(66871);function a(e){return e&&(void 0===e?"undefined":(0,i._)(e))==="object"&&!Array.isArray(e)}},63415:function(e,t,n){"use strict";n.d(t,{m5:()=>i,p9:()=>r,u$:()=>o});var r="_MODERNJS_ROUTE_MANIFEST",o="_routeModules",i="server-loader"},93703:function(e,t,n){"use strict";n.d(t,{M:()=>d});var r=n(86834),o=n(49607),i=n(46722),a=n(8047),s=n(52701),u=n(59825),l=n(5872);let c=e=>{let{error:t}=e,n=t instanceof Error?"".concat(t.name,": ").concat(t.message):"Unknown Error",o=t instanceof Error?t.stack:Object.prototype.toString.call(t);return(0,r.jsxs)(i.x,{p:"4",children:[(0,r.jsx)(a.X,{as:"h4",mb:"4",children:(0,r.jsx)(s.x,{as:"span",children:n})}),(0,r.jsx)(u.K,{disabled:!0,style:{height:"50vh"},value:o})]})},d=()=>{let e=(0,o.lk)();return(0,l.useEffect)(()=>{console.error(e)},[e]),(0,r.jsx)(c,{resetErrorBoundary:()=>null,error:e})}},83530:function(e,t,n){"use strict";n.d(t,{l:()=>s});var r=n(86834),o=n(49607),i=n(52911),a=n(82985);let s=e=>{let{items:t}=e,n=(0,o.s0)(),s=(0,o.TH)(),u=t.find(e=>(0,i.LX)(e.to,s.pathname));return(0,r.jsxs)(a.fC,{size:"1",value:null==u?void 0:u.to,onValueChange:n,children:[(0,r.jsx)(a.xz,{}),(0,r.jsx)(a.VY,{position:"popper",children:t.map(e=>{let{title:t,to:n}=e;return(0,r.jsx)(a.ck,{value:n,children:t},n)})})]})}},31330:function(e,t,n){"use strict";n.d(t,{T:()=>k,k:()=>A});var r=n(34202),o=n(25176),i=n(86834),a=n(36558),s=n(10487),u=n(65872);class l extends u.gl{static use(){return s.RUNTIME_GLOBALS in window||(window[s.RUNTIME_GLOBALS]=new l),window[s.RUNTIME_GLOBALS]}}async function c(e){l.use();let t=e.map(e=>new Promise((t,n)=>{let r=document.createElement("script");r.onload=()=>t(),r.onerror=e=>n(e),r.src=e,document.head.appendChild(r)}));await Promise.all(t)}var d=n(75943),f=n(7459),p=n(52493),h=n.n(p),v=n(3570),m=n(13190),g=n(4390),y=n(9014),x=n(41839);let w=async()=>{let e=await s.MessagePortChannel.link(window.parent,"channel:connect:client"),t=(0,u.Hu)();return{remote:(0,f.Fu)({async pullUp(e){await t.callHook("pullUp",e)}},(0,o._)((0,r._)({},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 n=new URL(e,location.href),i=new window.WebSocket(n),a=await s.WebSocketChannel.link(i),l=(0,u.Hu)();return{remote:(0,f.Fu)({async refresh(){location.reload()},async applyStateOperations(e){for(let n of e)(0,s.applyOperation)(t,n)}},(0,o._)((0,r._)({},a.handlers),{timeout:5e3})),hooks:l,url:n}},R=async()=>{let e=l.use(),t=(0,x.sj)([{name:"overview",title:"Overview",icon:(0,i.jsx)(m.VRM,{}),view:{type:"builtin",src:"/overview"}},{name:"config",title:"Config",icon:(0,i.jsx)(m.pZq,{}),view:{type:"builtin",src:"/config"}},{name:"pages",title:"Pages",icon:(0,i.jsx)(m.OiH,{}),view:{type:"builtin",src:"/pages"}},{name:"react",title:"React",icon:(0,i.jsx)(g.Ueg,{}),view:{type:"builtin",src:"/react"}},{name:"context",title:"Context",icon:(0,i.jsx)(m.sin,{}),view:{type:"builtin",src:"/context"}},{name:"headers",title:"Header Modifier",icon:(0,i.jsx)(m.KBe,{}),view:{type:"builtin",src:"/headers"}},{name:"doctor",title:"Doctor",icon:(0,i.jsx)(g.BwS,{}),view:{type:"builtin",src:"/doctor"}},{name:"storage",title:"Storage",icon:(0,i.jsx)(m.RMk,{}),view:{type:"builtin",src:"/storage/preset"}}]);for(let n of(await e.callHook("tab:list",t),t))"object"==typeof n.icon&&(n.icon=(0,x.iH)(n.icon)),"external"===n.view.type&&(n.view.component=(0,x.iH)(n.view.component));return t},E=async e=>{let t=new d.S,n=t.bindRemote(e.remote,"sendReactDevtoolsData");await e.remote.activateReactDevtools();let r=(0,v.createBridge)(window.parent,t);r.shutdown=()=>null;let o=(0,v.createStore)(r),i=(0,v.initialize)(window.parent,{bridge:r,store:o});return{store:o,bridge:r,wallAgent:t,unreg:n,Renderer:i}},k=(async e=>{var t;let n=(0,y.mB)((0,y.Lk)(e).search),i=null!=(t=h().castArray(n.src)[0])?t:(0,y.As)(e,"manifest"),a=w(),s=b(i),u=s.then(e=>e.websocket?j(e.websocket,(0,x.sj)(e)):null),l=s.then(e=>c(e.context.def.plugins)).then(R),d=a.then(E),[f,p,v,m,g]=await Promise.all([a,s,u,l,d]);return(0,x.sj)((0,o._)((0,r._)({},p),{version:"2.67.6",tabs:m,server:v?(0,x.iH)(v):null,mountPoint:(0,x.iH)(f),react:{devtools:{store:(0,x.iH)(g.store),bridge:(0,x.iH)(g.bridge),wallAgent:(0,x.iH)(g.wallAgent),unreg:(0,x.iH)(g.unreg),Renderer:(0,x.iH)(g.Renderer)}}}))})(location.href),A=()=>(0,a.D$)(k)},15477:function(e,t,n){"use strict";n.d(t,{Z:()=>o});var r=n(52911);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,r.uX)("/404"):(0,r.uX)("/404")}},22185:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(93703).M},89995:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>h});var r=n(86834),o=n(49607),i=n(52701),a=n(67251),s=n(82985),u=n(46722),l=n(52493),c=n.n(l);let d=e=>{let{name:t,describe:n}=e,o=n.map(e=>(0,r.jsx)(i.x,{style:{display:"block"},children:e},e));return(0,r.jsx)(a.u,{className:"tooltip-i9AhnB",side:"right",content:o,children:(0,r.jsx)(s.ck,{value:t,children:(0,r.jsx)(u.x,{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,r.jsx)(()=>{let e=(0,o.TH)(),t=(0,o.s0)(),[n,i]=e.pathname.split("/").slice(2);return(0,r.jsxs)(s.fC,{size:"1",value:n,onValueChange:e=>{t("/config/".concat(e,"/").concat(i))},children:[(0,r.jsx)(s.xz,{children:n}),(0,r.jsx)(s.VY,{children:f.map(e=>{let{name:t,describe:n}=e;return(0,r.jsx)(d,{name:t,describe:n},t)})})]})},{})},{title:(0,r.jsx)(()=>{let e=(0,o.TH)(),t=(0,o.s0)(),[n,i]=e.pathname.split("/").slice(2);return(0,r.jsxs)(s.fC,{size:"1",value:i,onValueChange:e=>{t("/config/".concat(n,"/").concat(e))},children:[(0,r.jsx)(s.xz,{children:i}),(0,r.jsx)(s.VY,{children:p.map(e=>{let{name:t,describe:n}=e;return(0,r.jsx)(d,{name:t,describe:n},t)})})]})},{})}]}},53161:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=n(52911),o=n(9014);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./builder/transformed");return(0,r.uX)(n)}},76029:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(93703).M},76641:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>i});var r=n(86834),o=n(83530);let i={breadcrumb:[{title:"Context"},{title:(0,r.jsx)(o.l,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},16913:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=n(52911),o=n(9014);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./builder");return(0,r.uX)(n)}},13760:function(e,t,n){"use strict";n.d(t,{Z:()=>m});var r=n(86834),o=n(93703),i=n(49497),a=n(46722),s=n(8047),u=n(13190),l=n(54755);let c=e=>{let{title:t,children:n}=e;return(0,r.jsxs)(i.k,{className:l.Z.container,mt:"9",mx:"auto",gap:"2",children:[(0,r.jsx)(i.k,{height:"var(--space-9)",align:"center",children:(0,r.jsx)(u.fd$,{size:"36"})}),(0,r.jsxs)(a.x,{children:[(0,r.jsx)(i.k,{height:"var(--space-9)",align:"center",children:(0,r.jsx)(s.X,{children:t})}),(0,r.jsx)(a.x,{className:l.Z.children,children:n})]})]})};var d=n(31330),f=n(49607),p=n(37970),h=n(9014),v=n(20610);let m=()=>{let e=(0,f.lk)(),t=(0,d.k)(),{def:n}=(0,v.R)(t).context;if(!(e&&"object"==typeof e&&0===Object.keys(e).length))return(0,r.jsx)(o.M,{});{let e=(0,h.Lk)(n.doctor.quickStart).host,t=(0,r.jsxs)(p.r,{href:n.doctor.quickStart,target:"_blank",rel:"noopener noreferrer",children:["\uD83D\uDD17",e]});return(0,r.jsx)(a.x,{width:"100%",children:(0,r.jsxs)(c,{title:"Doctor is not working",children:["Visit the website of ",t," to learn more."]})})}}},93615:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Doctor"}}},94750:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(93703).M},91787:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>s});var r=n(31330),o=n(36558),i=n(52493),a=n.n(i);let s={breadcrumb(e){var t;let n,{pathname:i}=e.location,s=null==(t=i.match(/^\/external\/(\w+)/))?void 0:t[1],{tabs:u}=(0,o.D$)(r.T),l=a().find(u,{name:s});return l?{title:n}=l:n=s?a().startCase(s):"External",{title:n,pathname:i}}}},94287:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(93703).M},59855:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Header Modifier"}}},72763:function(e,t,n){"use strict";n.d(t,{_:()=>i});var r=n(52911),o=n(73062);let i=async()=>{let e=await o.ok.service;return(0,r.uX)(e.rules?"./editor":"./welcome")}},73062:function(e,t,n){"use strict";n.d(t,{gM:()=>a,m:()=>s,ok:()=>l});var r=n(52493),o=n.n(r),i=n(41839);let a=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=encodeURIComponent(JSON.stringify(e)),n="".concat("/sw-proxy.js","?rules=").concat(t),r=await navigator.serviceWorker.register(n);return await navigator.serviceWorker.ready,l.service=await u(),r},s=async()=>{let e=await navigator.serviceWorker.getRegistrations(),t=!0;for(let n of e)t=t&&await n.unregister();return l.service=Promise.resolve({}),t},u=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{}},l=(0,i.sj)({service:u()})},84376:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>i});var r=n(86834),o=n(13190);let i={breadcrumb:{title:(0,r.jsx)(o.Zn9,{}),pathname:"/overview"}}},61665:function(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Y});var r=n(86834),o=n(34202),i=n(25176),a=n(49607),s=n(66671),u=n(49497),l=n(52493),c=n.n(l),d=n(89320),f=n(30309),p=n(86902),h=n(53845),v=n(99613),m=n(52911),g=n(29001),y=n(5872),x=n(24644);function w(e,t){return function(n){null==e||e(n),n.defaultPrevented||t(n)}}var _=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function b(){return(b=(0,p._)(function(e,t){var r,o;return(0,v.Jh)(this,function(i){switch(i.label){case 0:if(!(r=e.id)||!t[r]||!(o=t[r].chunkIds))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all(o.map(function(e){return null===n.e||void 0===n.e?void 0:n.e(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 n=window.location,r=n.protocol,o=n.host,i=new URL(e,"".concat(r,"//").concat(o));return i.searchParams.append("__loader",t),i.searchParams.append("__ssrDirect","true"),i},R=function(e,t,n){var o,i=e.id;return o=j("/"===n?t:"".concat(n).concat(t),i).toString(),(0,r.jsx)("link",{rel:"prefetch",as:"fetch",href:o},o)},E=function(e){var t=e.path,n=t.pathname,o=(0,y.useContext)(x.JO),i=o.routeManifest,a=o.routes,s=(i||{}).routeAssets,u=Array.isArray(a)?(0,m.fp)(a,n):[];return(Array.isArray(u)&&s&&(null==u||u.forEach(function(e){return function(e,t){return b.apply(this,arguments)}(e.route,s)})),window._SSR_DATA)?(0,r.jsx)(k,{matches:u,path:t,routeManifest:i}):null},k=function(e){var t=e.matches,n=e.path,o=e.routeManifest,i=n.pathname,s=n.search,u=n.hash,l=(0,a.SN)(),c=(0,a.oQ)("/"),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 n,r=new URL(location.pathname+location.search+location.hash,window.origin),o=new URL(i+s+u,window.origin),a=e.route.shouldRevalidate({currentUrl:r,currentParams:(null==(n=l[0])?void 0:n.params)||{},nextUrl:o,nextParams:e.params,defaultShouldRevalidate:!0});if("boolean"==typeof a)return a}var c=l[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,r.jsx)(r.Fragment,{children:d})},A=function(e){return y.forwardRef(function(t,i){var s,u,l,c,d,p,v,m,g,x,b,j,R,k,A=t.to,S=t.prefetch,C=(0,f._)(t,["to","prefetch"]),N="string"==typeof A&&_.test(A),T=(0,h._)((s=void 0===S?"none":S,l=(u=(0,h._)(y.useState(!1),2))[0],c=u[1],p=(d=(0,h._)(y.useState(!1),2))[0],v=d[1],m=C.onFocus,g=C.onBlur,x=C.onMouseEnter,b=C.onMouseLeave,j=C.onTouchStart,y.useEffect(function(){"render"===s&&v(!0)},[s]),R=function(){"intent"===s&&c(!0)},k=function(){"intent"===s&&(c(!1),v(!1))},y.useEffect(function(){if(l){var e=setTimeout(function(){v(!0)},100);return function(){clearTimeout(e)}}},[l]),[p,{onFocus:w(m,R),onBlur:w(g,k),onMouseEnter:w(x,R),onMouseLeave:w(b,k),onTouchStart:w(j,R)}]),2),M=T[0],P=T[1],D=(0,a.WU)(A);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e,(0,o._)({ref:i,to:A},C,P)),M&&n.e&&!N?(0,r.jsx)(E,{path:D}):null]})})},S=A(g.rU);S.displayName="Link";var C=A(g.OL);C.displayName="NavLink";var N=n(37970);let T=e=>{var{to:t,children:n}=e,a=(0,f._)(e,["to","children"]);return(0,r.jsx)(N.r,(0,i._)((0,o._)({},a),{asChild:!0,children:(0,r.jsx)(S,{to:t,children:n})}))},M=e=>{let{location:t,handle:n}=e;if(!c().isObject(n)&&c().isNil(n))return[];let{breadcrumb:r}=n,o=[];c().isFunction(r)?o.push(...c().castArray(r({location:t}))):o.push(...c().castArray(r));let i=[];for(let t of o){if(!c().isObject(t)||c().isNull(t)||!("title"in t))continue;let n={id:e.id,title:t.title,pathname:e.pathname};"pathname"in t&&c().isString(t.pathname)&&(n.pathname=t.pathname),i.push(n)}return i},P=e=>{let t=[],n=(0,a.SN)(),l=(0,a.TH)(),c=[];for(let e of n)c.push(...M((0,i._)((0,o._)({},e),{location:l})));for(let[e,n]of(l.state&&"breadcrumb"in l.state&&c.push(...M({handle:l.state.breadcrumb,pathname:l.pathname,id:"external/".concat(l.pathname),location:l})),Object.entries(c))){let o=[n.id,n.pathname,e];t.push((0,r.jsx)(T,{color:"gray",size:"2",to:n.pathname,children:n.title},o.join("_"))),n!==c.at(-1)&&(o.push("#connector"),t.push((0,r.jsx)(s.XCv,{className:d.Z.connector},o.join("_"))))}return(0,r.jsx)(u.k,(0,i._)((0,o._)({align:"center",height:"var(--space-8)",gap:"1",px:"4"},e),{children:t}))};var D=n(31330);let O="";D.T.then(e=>{let{mountPoint:t}=e;t.hooks.hookOnce("pullUp",async e=>{O=e})});let L=()=>{let e=(0,a.s0)(),{mountPoint:t}=(0,D.k)();return(0,y.useEffect)(()=>{O&&e(O),t.hooks.hook("pullUp",async t=>{e(t)})},[]),null};var H=n(42764),B=n(87420);let U=e=>{var{children:t}=e,n=(0,f._)(e,["children"]);let[a]=(0,H.U)();return(0,y.useEffect)(()=>{document.documentElement.classList.remove("dark","light"),document.documentElement.classList.add(a)},[a]),(0,r.jsx)(B.Q2,(0,i._)((0,o._)({},n),{appearance:a,children:t}))};var I=n(18229),J=n(67251),z=n(46722),F=n(13190),q=n(20610);let Z="tab-button-MtqLNp",V="tab-button-inner-KmlACp",W=e=>{let{tab:t}=e,n="";if("builtin"===t.view.type)n=t.view.src;else if("iframe"===t.view.type)n="/iframe/".concat(t.view.src);else if("external"===t.view.type)n="/external/".concat(t.name);else throw Error('Invalid tab view of "'.concat(t.name,'".'));return(0,y.useEffect)(()=>{document.documentElement.classList.add("theme-register")},[]),(0,r.jsx)(J.u,{content:t.title,side:"right",children:(0,r.jsx)(C,{to:n,className:Z,children:(0,r.jsx)(u.k,{justify:"center",align:"center",p:"1",className:V,children:(0,r.jsx)(z.x,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:t.icon})})})})},X=()=>{let{server:e}=(0,q.R)((0,D.k)());return(0,r.jsx)(J.u,{content:e?"Connected":"Disconnected",side:"right",children:(0,r.jsx)(z.x,{className:Z,children:(0,r.jsxs)(z.x,{p:"1",position:"relative",className:V,children:[(0,r.jsx)(z.x,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:(0,r.jsx)(F.Qa9,{})}),(0,r.jsx)(z.x,{className:"online-indicator-E9Pryr","data-active":!!e})]})})})},G=()=>{let[e,t]=(0,H.U)();return(0,r.jsx)(J.u,{content:"Appearance",side:"right",children:(0,r.jsx)(z.x,{className:Z,onClick:()=>{t("light"===e?"dark":"light")},children:(0,r.jsx)(u.k,{justify:"center",align:"center",p:"1",className:V,children:(0,r.jsx)(z.x,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:"dark"===e?(0,r.jsx)(F.Fxr,{}):(0,r.jsx)(F.YGJ,{})})})})})},$=()=>{let{tabs:e}=(0,q.R)((0,D.k)());return(0,r.jsxs)(u.k,{direction:"column",flexShrink:"0",className:"navigator-O_AEE3",children:[e.map(e=>(0,r.jsx)(W,{tab:e},e.name)),(0,r.jsx)(z.x,{flexGrow:"1"}),(0,r.jsx)(X,{}),(0,r.jsx)(G,{})]})},Y=()=>(0,r.jsx)(U,{className:"wrapper-YAIt0k",accentColor:"blue",panelBackground:"solid",children:(0,r.jsxs)(I.zt,{swipeDirection:"up",children:[(0,r.jsx)($,{}),(0,r.jsxs)(z.x,{width:"100%",position:"relative",pt:"4",children:[(0,r.jsx)(z.x,{width:"100%",height:"100%",position:"relative",children:(0,r.jsx)(a.j3,{})}),(0,r.jsx)(P,{className:"breadcrumbs-LVvAXj",height:"2.5rem",position:"absolute",top:"0",left:"0",right:"0"})]}),(0,r.jsx)(L,{})]})})},67570:function(e,t,n){"use strict";n.d(t,{Z:()=>s});var r=n(86834),o=n(72235),i=n(31330),a=n(12564);let s=()=>{let{mountPoint:e}=(0,i.k)();return(0,a.Z)(async()=>{e.remote.onFinishRender()}),(0,r.jsx)(o.g,{className:"loading-gmTvLE"})}},50516:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(93703).M},55124:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Overview"}}},19664:function(e,t,n){"use strict";n.d(t,{_:()=>i});var r=n(52911),o=n(9014);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./overview");return(0,r.uX)(n)}},16315:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(93703).M},36921:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Pages"}}},93347:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>i});var r=n(86834),o=n(83530);let i={breadcrumb:[{title:"React"},{title:(0,r.jsx)(o.l,{items:[{to:"/react/components",title:"Components"},{to:"/react/profiler",title:"Profiler"}]})}]}},42773:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(93703).M},34640:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=n(52911),o=n(9014);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./components");return(0,r.uX)(n)}},98036:function(e,t,n){"use strict";n.d(t,{_:()=>s});var r=n(31330),o=n(52911),i=n(52493),a=n.n(i);let s=async e=>{let{params:t}=e,{id:n}=t;if(!n)throw TypeError("storage preset id is required");let{context:i}=await r.T,{storagePresets:s}=await Promise.resolve(i),u=a().find(s,{id:n});return u||(0,o.uX)("/storage/preset")}},48052:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:[{title:"Storage"},{title:"Preset"}]}},30713:function(e,t,n){"use strict";n.d(t,{_:()=>o,a:()=>i});var r=n(21441);let o=async e=>await (0,r.l5)(),i=()=>null},34743:function(e,t,n){"use strict";n.d(t,{_:()=>o});var r=n(21441);let o=async e=>await (0,r.l5)()},21441:function(e,t,n){"use strict";n.d(t,{SR:()=>u,dR:()=>a,f:()=>l,l5:()=>c,xq:()=>s});var r=n(31330),o=n(52493),i=n.n(o);let a=["cookie","localStorage","sessionStorage"],s={cookie:"yellow",localStorage:"green",sessionStorage:"blue"},u=(e,t)=>i().map(e[t],(n,r)=>{let o=[e.id,t,r].join("//");return{key:r,value:n,type:t,id:o}}),l=e=>{let t=[];for(let n of a)t.push(...u(e,n));return t},c=async e=>{let{mountPoint:t}=await r.T,[n,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:n,localStorage:o,sessionStorage:i}}},36558:function(e,t,n){"use strict";n.d(t,{D$:()=>o}),n(86834),n(5872),n(52493);let r=new WeakMap,o=e=>{if(!(e instanceof Promise))return e;if(r.has(e)){let t=r.get(e);if(t instanceof Error)throw t;if(!(t instanceof Promise))return t;throw t}throw r.set(e,e),e.then(t=>r.set(e,t)).catch(t=>r.set(e,t)),e}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["114","118","126","567","58","746","875"],function(){return t(50803),t(34817),t(82827),t(76762),t(35570)}),e.O()}]);
|
|
1
|
+
(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["462"],{95942:function(e,t,n){"use strict";n.d(t,{sY:()=>w});var r=n(86902),o=n(63963),i=n(34202),a=n(25176),s=n(53845),u=n(99613),l=n(75192),c=n(62641),d=n(24644),f=n(13063),p=n(5872);function h(e,t){return p.createElement(d.JO.Provider,{value:t},e)}var v=n(86834),m=n(48249),g=n(24348),y=function(e){var t=e.callback,n=e.children,r=(0,p.useRef)(!1);return(0,p.useLayoutEffect)(function(){r.current||(r.current=!0,t())},[t]),n},x=function(){return!0};function w(e,t){return _.apply(this,arguments)}function _(){return(_=(0,r._)(function(e,t){var n,p,w,_,j,E,k,A,S,C;function N(){return(N=(0,r._)(function(e){return(0,u.Jh)(this,function(t){return[2,function(e,t){return b.apply(this,arguments)}(e,C)]})})).apply(this,arguments)}function T(){return(T=(0,r._)(function(e,t){return(0,u.Jh)(this,function(n){return[2,function(e,t){return R.apply(this,arguments)}(e,C,t)]})})).apply(this,arguments)}return(0,u.Jh)(this,function(b){var R,M,P,D,O,L,H,B,U,I,J,z,F,q,Z,V,W;switch(b.label){case 0:if(n=(0,d.zv)(),R=(0,r._)(function(e){var t,n;return(0,u.Jh)(this,function(r){switch(r.label){case 0:return(t=(0,c.Uk)()).pluginAPI.updateRuntimeContext(e),[4,t.hooks.onBeforeRender.call(e)];case 1:return r.sent(),[2,null==(n=(0,c.Hb)())?void 0:n(e)]}})}),!(void 0===t||"string"==typeof t||"undefined"!=typeof HTMLElement&&(0,o._)(t,HTMLElement)))return[3,2];return p=function(e){return N.apply(this,arguments)},w=function(e,t){return T.apply(this,arguments)},L=null==(O=window._SSR_DATA)||null==(M=O.context)?void 0:M.request,A=Object.keys(k=(null==(_=(E=(0,a._)((0,i._)({},O||{renderLevel:0,mode:"string"}),{context:(0,a._)((0,i._)({},(null==O?void 0:O.context)||{}),{request:(0,a._)((0,i._)({},(null==O||null==(P=O.context)?void 0:P.request)||{}),{params:(null==L?void 0:L.params)||{},host:(null==L?void 0:L.host)||location.host,pathname:(null==L?void 0:L.pathname)||location.pathname,headers:(null==L?void 0:L.headers)||{},cookieMap:l.parse(document.cookie||"")||{},cookie:document.cookie||"",userAgent:(null==L||null==(D=L.headers)?void 0:D["user-agent"])||navigator.userAgent,referer:document.referrer,query:(0,i._)({},window.location.search.substring(1).split("&").reduce(function(e,t){var n=(0,s._)(t.split("="),2),r=n[0],o=n[1];return r&&(e[r]=o),e},{}),(null==L?void 0:L.query)||{}),url:location.href})})})).data)?void 0:_.loadersData)||{}).reduce(function(e,t){var n=k[t];return(null==n?void 0:n.loading)!==!1||(e[t]=n),e},{}),Object.assign(n,{loaderManager:(0,f.K)(A,{skipStatic:!0}),_internalRouterBaseName:e.props.basename,ssrContext:E.context}),n.initialData=null==(j=E.data)?void 0:j.initialData,[4,function(e){return R.apply(this,arguments)}(n)];case 1:if((S=b.sent())&&(n.initialData=S),C=t&&"string"!=typeof t?t:document.getElementById(t||"root"),window._SSR_DATA)return[2,(H=n,B=p,U=w,q=(0,a._)((0,i._)({},H),{get routes(){return H.routes},_hydration:!0}),Z=function(){delete q._hydration},V=(null==(J=window)||null==(I=J._SSR_DATA)?void 0:I.renderLevel)||g.Nm.CLIENT_RENDER,W=(null==(F=window)||null==(z=F._SSR_DATA)?void 0:z.mode)||"string",x()&&"stream"===W?V===g.Nm.SERVER_RENDER?U(h((0,v.jsx)(function(){return(0,v.jsx)(y,{callback:Z,children:e})},{}),q)):B(h(e,H)):V===g.Nm.CLIENT_RENDER||V===g.Nm.SERVER_PREFETCH?B(h(e,H)):V===g.Nm.SERVER_RENDER?new Promise(function(t){x()?(0,m.TA)(function(){U(h((0,v.jsx)(function(){return(0,v.jsx)(y,{callback:Z,children:e})},{}),q)).then(function(e){t(e)})}):(0,m.TA)(function(){U(h(e,q),Z).then(function(e){t(e)})})}):(console.warn("unknow render level: ".concat(V,", execute render()")),B(h(e,H))))];return[2,p(h(e,n))];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,r._)(function(e,t){var r;return(0,u.Jh)(this,function(o){switch(o.label){case 0:return[4,n.e("58").then(n.t.bind(n,41035,19))];case 1:return(r=o.sent().createRoot(t)).render(e),[2,r]}})})).apply(this,arguments)}function j(){return(j=(0,r._)(function(e,t){return(0,u.Jh)(this,function(r){switch(r.label){case 0:return[4,Promise.resolve().then(n.t.bind(n,54e3,19))];case 1:return r.sent().render(e,t),[2,t]}})})).apply(this,arguments)}function R(){return(R=(0,r._)(function(e,t){return(0,u.Jh)(this,function(r){switch(r.label){case 0:return[4,n.e("58").then(n.t.bind(n,41035,19))];case 1:return[2,r.sent().hydrateRoot(t,e)]}})})).apply(this,arguments)}function E(){return(E=(0,r._)(function(e,t,r){return(0,u.Jh)(this,function(o){switch(o.label){case 0:return[4,Promise.resolve().then(n.t.bind(n,54e3,19))];case 1:return[2,o.sent().hydrate(e,t,r)]}})})).apply(this,arguments)}},24348:function(e,t,n){"use strict";n.d(t,{Ni:()=>a,Nm:()=>o,pc:()=>i}),(r=o||(o={}))[r.CLIENT_RENDER=0]="CLIENT_RENDER",r[r.SERVER_PREFETCH=1]="SERVER_PREFETCH",r[r.SERVER_RENDER=2]="SERVER_RENDER";var r,o,i="__MODERN_SSR_DATA__",a="__MODERN_ROUTER_DATA__"},62641:function(e,t,n){"use strict";n.d(t,{CH:()=>d,FM:()=>s,Hb:()=>l,Uk:()=>a,cE:()=>o,hb:()=>i,jn:()=>u,nB:()=>c});var r={};function o(e){r.entryName=e.entryName,r.App=e.App,r.routes=e.routes,r.appInit=e.appInit,r.appConfig="function"==typeof e.appConfig?e.appConfig():e.appConfig,r.layoutApp=e.layoutApp,r.RSCRoot=e.RSCRoot}function i(e){r.internalRuntimeContext=e}function a(){return r.internalRuntimeContext}function s(){return r.App}function u(){return r.routes}function l(){var e,t;return r.appInit||(null==(e=s())?void 0:e.init)||(null==(t=d())?void 0:t.init)}function c(){var e,t;return r.appConfig||(null==(e=s())?void 0:e.config)||(null==(t=d())?void 0:t.config)}function d(){return r.layoutApp}},24644:function(e,t,n){"use strict";n.d(t,{JO:()=>a,zv:()=>s});var r=n(63415),o=n(5872),i=n(13063),a=(0,o.createContext)({});(0,o.createContext)({});var 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.K)({}),isBrowser:e,routeManifest:t||"undefined"!=typeof window&&window[r.p9]}}},13063:function(e,t,n){"use strict";n.d(t,{K:()=>h});var r,o,i=n(86902),a=n(63963),s=n(53845),u=n(77689),l=n(99613),c=n(24546),d=n.n(c),f=function(){var e=new Map;return function(t){var n=e.get(t);if(n)return n;var r=JSON.stringify(t);return d()(r,"params should be not null value"),e.set(t,r),r}};(r=o||(o={}))[r.idle=0]="idle",r[r.loading=1]="loading",r[r.fulfilled=2]="fulfilled",r[r.rejected=3]="rejected";var p=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{loading:!1,reloading:!1,data:void 0,error:void 0},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return Promise.resolve()},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=0,d=r.data,f=r.error,p=!1,h=new Set,v=(t=(0,i._)(function(){return(0,l.Jh)(this,function(e){return s||1===c?[2,n]:(c=1,g(),[2,n=o().then(function(e){d=e,f=null,c=2}).catch(function(e){f=e,d=null,c=3}).finally(function(){n=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,u._)(h).forEach(function(e){e(c,m())})};return{get result(){return m()},get promise(){return n},onChange:function(e){return h.add(e),function(){h.delete(e)}},load:v}},h=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipStatic,o=void 0!==r&&r,u=n.skipNonStatic,c=void 0!==u&&u,d=new Map,h=f();return{hasPendingLoaders:function(){var e=!0,t=!1,n=void 0;try{for(var r,o=d.values()[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var i=r.value.promise;if((0,a._)(i,Promise))return!0}}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}return!1},awaitPendingLoaders:(t=(0,i._)(function(){var e,t,n,r,o,i,u,c,f,p;return(0,l.Jh)(this,function(l){switch(l.label){case 0:e=[],t=!0,n=!1,r=void 0;try{for(o=d[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)c=(u=(0,s._)(i.value,2))[0],p=(f=u[1]).promise,(0,a._)(p,Promise)&&e.push([c,f])}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}return[4,Promise.all(e.map(function(e){return e[1].promise}))];case 1:return l.sent(),[2,e.reduce(function(e,t){var n=(0,s._)(t,2),r=n[0],o=n[1];return e[r]=o.result,e},{})]}})}),function(){return t.apply(this,arguments)}),add:function(t,n){var r=h(n.params),i=d.get(r),a=n._cache;if(!i||!1===a){var s=c&&!n.static,u=o&&n.static;i=p(r,void 0!==e[r]?e[r]:{data:n.initialData},t,s||u),d.set(r,i)}return r},get:function(e){return d.get(e)}}}},30169:function(e,t,n){"use strict";n.d(t,{v:()=>j,f:()=>R});var r,o,i,a,s,u,l,c=n(77689),d=n(27293),f=n(66871),p=n(34202),h=n(30309),v=n(25176),m=n(22589),g=(o=function(e){l.clear(),r=e;var t=e.plugins,n=e.handleSetupResult;l.addPlugins(t);var o=l.getPlugins(),i=(g=(f={runtimeContext:{},config:r.config,plugins:o}).runtimeContext,y=f.config,x=f.plugins,w={},x.forEach(function(e){var t=e.registryHooks,n=void 0===t?{}:t;Object.keys(n).forEach(function(e){w[e]=n[e]})}),(0,v._)((0,p._)({},g),{hooks:(0,p._)({},{onBeforeRender:(0,m.Ol)(),wrapRoot:(0,m.y2)(),pickContext:(0,m.y2)(),config:(0,m.rG)()},w),extendsHooks:w,config:y})),a=function(e){var t=e.context,n=e.plugins,r=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.T)(t,e)}var s={};n.forEach(function(e){var t=e._registryApi;if(t){var n=t(i,a);Object.keys(n).forEach(function(e){s[e]=n[e]})}}),o&&Object.keys(o).forEach(function(e){s[e]=o[e].tap});var u=(0,p._)({updateRuntimeContext:a,getHooks:function(){return(0,p._)({},r,o)},getRuntimeConfig:function(){if(t.config)return t.config;throw Error("Cannot access config")},config:r.config.tap,onBeforeRender:r.onBeforeRender.tap,wrapRoot:r.wrapRoot.tap,pickContext:r.pickContext.tap},s);return"undefined"==typeof Proxy?u:new Proxy(u,{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:l,plugins:o});i.pluginAPI=a;var s=!0,u=!1,c=void 0;try{for(var f,g,y,x,w,_,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);n&&n(E,a)}}catch(e){u=!0,c=e}finally{try{s||null==b.return||b.return()}finally{if(u)throw c}}return{runtimeContext:i}},i=new Map,a=new Map,s=function(e,t,n){a.has(t)||a.set(t,{pre:new Map,post:new Map}),"pre"===n?a.get(e).pre.set(t,{name:t,isUse:!1}):"post"===n?a.get(e).post.set(t,{name:t}):"use"!==n||a.get(e).post.has(t)||a.get(t).pre.has(e)||a.get(e).pre.set(t,{name:t,isUse:!0})},u=function(e){if(e){var t=e,n=void 0===t?"undefined":(0,f._)(t);if("object"!==n||null===t)throw Error("Expect CLI Plugin instance to be an object, but got ".concat(n,"."));if(t.setup&&"function"!=typeof t.setup)throw Error("Expect CLI Plugin plugin.setup to be a function, but got ".concat(n,"."));var r=e.name,o=e.usePlugins,l=e.pre,c=e.post;if(i.has(r))return void console.warn("Plugin ".concat(r," already exists."));i.set(r,e),a.set(r,{pre:new Map,post:new Map}),(void 0===l?[]:l).forEach(function(e){s(r,e,"pre")}),(void 0===c?[]:c).forEach(function(e){s(r,e,"post")}),(void 0===o?[]:o).forEach(function(e){i.has(e.name)||u(e),s(r,e.name,"use")})}},l={getPlugins:function(){var e=new Set,t=new Set,n=[],r=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 u=a.get(o).pre;Array.from(u.values()).filter(function(e){return!e.isUse}).forEach(function(e){return r(e.name)}),Array.from(u.values()).filter(function(e){return e.isUse}).forEach(function(e){return r(e.name)}),t.delete(o),e.add(o),n.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){r(t)}),n=n.filter(function(e){return e})},addPlugins:function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=o.value;u(a)}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}},clear:function(){i.clear(),a.clear()},isPluginExists:function(e){return i.has(e)}},{run:function(e){var t=o(e).runtimeContext,n=t.hooks.config.call().filter(function(e){return!!e});return t.config=d.T.apply(void 0,[{}].concat((0,c._)(n),[t.config||{}])),{runtimeContext:t}}}),y=n(86902),x=n(99613);function w(e,t){e&&Object.keys(e).forEach(function(n){var r=e[n];if("function"==typeof r){var o="beforeRender"===n?"onBeforeRender":n;t[o]&&("beforeRender"===n?t[o]((0,y._)(function(){var e,t,n,o=arguments;return(0,x.Jh)(this,function(i){switch(i.label){case 0:for(t=Array(e=o.length),n=0;n<e;n++)t[n]=o[n];return[4,r.apply(void 0,(0,c._)(t))];case 1:return i.sent(),[2]}})})):t[o](function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.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=n(62641);function j(e,t){var n=(t||{}).plugins,r=g.run({plugins:[{name:"@modern-js/runtime-plugin-compat",_registryApi:function(e){return{useRuntimeConfigContext:function(){return e()._internalContext.config},useHookRunners:function(){var t,n;return t=e()._internalContext.hooks,{beforeRender:(n=(0,y._)(function(e){return(0,x.Jh)(this,function(n){return[2,t.onBeforeRender.call(e)]})}),function(e){return n.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===n?[]:n)),config:t||{},handleSetupResult:w}).runtimeContext;return(0,b.hb)(r),r}function R(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return d.T.apply(void 0,[{},e].concat((0,c._)(n)))}},62192:function(e,t,n){"use strict";n.d(t,{s:()=>a});var r=function(e){var t=document.querySelectorAll("#".concat(e));if(0!==t.length){var n=t[t.length-1];if(n)try{return JSON.parse((null==n?void 0:n.textContent)||"")}catch(t){console.error("parse ".concat(e," error"),t)}}},o=n(24348),i=n(62641);function a(e){var t=e||(0,i.FM)();return"undefined"!=typeof window&&"nodejs"!==window.name&&(window._SSR_DATA=window._SSR_DATA||r(o.pc),window._ROUTER_DATA=window._ROUTER_DATA||r(o.Ni)),(0,i.Uk)().hooks.wrapRoot.call(t)}},48899:function(e,t,n){"use strict";n.d(t,{NA:()=>F});var r=n(34202),o=n(25176),i=n(77689),a=n(86834),s=n(27293),u=n(49607),l=n(29001);function c(e){return"/"+e.replace(/^\/+|\/+$/g,"")}var d=n(5872),f=n(24644),p=n(62641),h=n(22589),v=(0,h.y2)(),m=(0,h.y2)(),g=n(30309),y=n(53845),x=n(86902),w=n(66871),_=n(99613),b=n(63415);function j(e){var t=.001*new Date().getTime(),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]}var R=function(e){var t=(0,y._)(j(e),2);return 1e3*t[0]+t[1]/1e6},E=function(){var e=j();return function(){return R(e)}},k="undefined"!=typeof window&&void 0!==window.document,A=function(){if(k)return console.error("You should not get async storage in browser"),null;try{return n(6131).getAsyncLocalStorage()}catch(e){return console.error("Failed to load server async storage",e),null}},S=n(26345),C=n(92497),N=n(29686),T=n(19916),M=n(53774),P=n(63963);function D(e,t){if(!1===e||null==e)throw Error(t)}var O=function(e){function t(){return(0,C._)(this,t),(0,S._)(this,t,arguments)}return(0,M._)(t,e),t}((0,n(4453)._)(Error)),L=function(e){var t,n,i,s,l=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,y=e.handle,j=l.parent,R=l.props,k={caseSensitive:e.caseSensitive,path:e.path,id:e.id,loader:(i=(t=e).loader)?(n=(0,x._)(function(e){var n,r,o,a,s,u;return(0,_.Jh)(this,function(l){switch(l.label){case 0:return"function"==typeof t.lazyImport&&t.lazyImport(),n=E(),[4,i(e)];case 1:r=l.sent();return o=n(),"undefined"==typeof document&&(null==(u=A())||null==(s=u.useContext().monitors)||s.timing("".concat(b.m5,"-").concat(null==(a=t.id)?void 0:a.replace(/\//g,"_")),o)),[2,r]}})}),function(e){return n.apply(this,arguments)}):function(){return"function"==typeof t.lazyImport&&t.lazyImport(),null},action:e.action,hasErrorBoundary:e.hasErrorBoundary,shouldRevalidate:e.shouldRevalidate,handle:(0,r._)({},y,(void 0===g?"undefined":(0,w._)(g))==="object"?null==g?void 0:g.handle:{}),index:e.index,element:e.element,errorElement:e.errorElement};if(e.error&&(k.errorElement=(0,a.jsx)(e.error,{})),h)if((null==j?void 0:j.loading)&&m){var S=j.loading;s=H(h)?(0,a.jsx)(h,{fallback:(0,a.jsx)(S,{})}):(0,a.jsx)(d.Suspense,{fallback:(0,a.jsx)(S,{}),children:(0,a.jsx)(h,{})})}else s=H(h)&&m?(0,a.jsx)(h,{}):v?(0,a.jsx)(h,(0,r._)({},void 0===R?{}:R)):m?(0,a.jsx)(d.Suspense,{fallback:null,children:(0,a.jsx)(h,{})}):(0,a.jsx)(h,{});else e.loading=null==j?void 0:j.loading,k.element=(0,a.jsx)(u.j3,{});s&&(k.element=s);var C=null==c?void 0:c.map(function(t){return L(t,{parent:e})});return f?(0,a.jsx)(u.AW,(0,o._)((0,r._)({},k),{index:!0}),p):(0,a.jsx)(u.AW,(0,o._)((0,r._)({},k),{index:!1,children:C}),p)};function H(e){return e&&"Loadable"===e.displayName&&e.preload&&"function"==typeof e.preload}var B=n(52911),U=function(){return(0,a.jsx)("div",{style:{margin:"150px auto",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"},children:"404"})};function I(){return null}var J=function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=RegExp("".concat("/","{1,}"),"g");return(e=n.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},z={routes:[]},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"@modern-js/plugin-router",registryHooks:{modifyRoutes:v,onBeforeCreateRoutes:m},setup:function(t){var n=[];t.onBeforeRender(function(t){if(window._SSR_DATA&&e.unstable_reloadOnURLMismatch){var r,o=t.ssrContext,i=c(window.location.pathname),a=(null==o||null==(r=o.request)?void 0:r.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:u.SN,useLocation:u.TH,useHref:u.oQ},Object.defineProperty(t,"routes",{get:function(){return n},enumerable:!0})}),t.wrapRoot(function(c){var h,v,m=t.getRuntimeConfig(),x=(0,s.T)(m.router||{},e),w=x.serverBase,_=void 0===w?[]:w,b=x.supportHtml5History,j=void 0===b||b,R=x.basename,E=void 0===R?"":R,k=x.routesConfig,A=x.createRoutes,S=x.future;return(z=(0,r._)({routes:(0,p.jn)(),globalApp:(0,p.CH)()},k)).routes||A?(h=function(e){var s,c=(0,d.useContext)(f.JO),p=(s=location.pathname,_.find(function(e){return 0===s.search(e)})||"/").replace(/^\/*/,"/"),h="/"===p?J(p,c._internalRouterBaseName||E):p,v=window._ROUTER_DATA,m=c.unstable_getBlockNavState;return(0,d.useMemo)(function(){(null==v?void 0:v.errors)&&(v=(0,o._)((0,r._)({},v),{errors:function(e){if(!e)return null;var t=Object.entries(e),n={},r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=(0,y._)(a.value,2),l=u[0],c=u[1];if(c&&"RouteErrorResponse"===c.__type)n[l]=new B.OF(c.status,c.statusText,c.data,!0===c.internal);else if(c&&"Error"===c.__type){var d=Error(c.message);d.stack=c.stack,n[l]=d}else n[l]=c}}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(v.errors)})),n=A?A():(0,u.i7)(function(e){var t=e.routesConfig,n=e.props,o=e.ssrMode;if(!t)return null;var i=t.routes,s=t.globalApp;return i?function(e,t){var n=t.globalApp,o=t.ssrMode,i=t.props,s=function(e){var t=e.Component,o=(0,g._)(e,["Component"]);return n?(0,a.jsx)(n,(0,r._)({Component:t},o)):(0,a.jsx)(t,(0,r._)({},o))},l=[],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=L(v,{DeferredDataComponent:"stream"===o?I:void 0,props:i});l.push(m)}else{var y=(0,a.jsx)(u.AW,{path:v.path,element:(0,a.jsx)(s,{Component:v.component})},v.path);l.push(y)}}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}return l.push((0,a.jsx)(u.AW,{path:"*",element:(0,a.jsx)(U,{})},"*")),l}(i,{globalApp:s,ssrMode:o,props:n}):null}({routesConfig:z,props:e})),n=t.getHooks().modifyRoutes.call(n);var s=j?(0,l.aj)(n,{basename:h,hydrationData:v}):(0,l.cP)(n,{basename:h,hydrationData:v}),c=s.subscribe;return s.subscribe=function(e){return c(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!(m&&m()))return e.apply(void 0,(0,i._)(n))})},s},[z,e,h,v,m])},v=function(){return null},function(e){var t=h(e),n=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.pG,{router:t,future:S}),(0,a.jsx)(v,{}),(0,a.jsx)(v,{})]});return c?(0,a.jsx)(c,{children:n}):n}):c})}}}},83366:function(e,t,n){"use strict";n.d(t,{RC:()=>o,UC:()=>a,u3:()=>i});var r=n(63415),o=function(e){return function(t){var n,o,i=null==(o=window)||null==(n=o[r.u$])?void 0:n[e];return i&&"function"==typeof i.shouldRevalidate?i.shouldRevalidate(t):t.defaultShouldRevalidate}},i=function(e,t){return"undefined"!=typeof document&&(window[r.u$][t]=e),e},a=function(e){return console.error(e),null}},6131:function(e){e.exports={}},22589:function(e,t,n){"use strict";n.d(t,{Ol:()=>a,rG:()=>u,y2:()=>s});var r=n(86902),o=n(77689),i=n(99613);function a(){var e,t=[];return{tap:function(e){t.push(e)},call:(e=(0,r._)(function(){var e,n,r,a,s,u,l,c,d,f,p,h,v,m,g=arguments;return(0,i.Jh)(this,function(i){switch(i.label){case 0:for(n=Array(e=g.length),r=0;r<e;r++)n[r]=g[r];a=!1,u=function(e){a=!0,s=e},l=!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((l=(p=f.next()).done)||(h=p.value,a))return[3,5];return[4,h.apply(void 0,(0,o._)(n).concat([u]))];case 3:void 0!==(v=i.sent())&&(n[0]=v),i.label=4;case 4:return l=!0,[3,2];case 5:return[3,8];case 6:return m=i.sent(),c=!0,d=m,[3,8];case 7:try{l||null==f.return||f.return()}finally{if(c)throw d}return[7];case 8:return[2,a?s:n[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,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=!0,a=!1,s=void 0;try{for(var u,l=e[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value.apply(void 0,(0,o._)(n));void 0!==c&&(n[0]=c)}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}return n[0]}}}function u(){var e=[];return{tap:function(t){e.push(t)},call:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=[],i=!0,a=!1,s=void 0;try{for(var u,l=e[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=(0,u.value)(n);void 0!==c&&o.push(c)}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}return o}}}},27293:function(e,t,n){"use strict";n.d(t,{T:()=>function e(t){for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];if(!i.length)return t;var u=i.shift();if(a(t)&&a(u))for(var l in u)a(u[l])?(t[l]||Object.assign(t,(0,r._)({},l,{})),e(t[l],u[l])):Object.assign(t,(0,r._)({},l,u[l]));return e.apply(void 0,[t].concat((0,o._)(i)))}});var r=n(19916),o=n(77689),i=n(66871);function a(e){return e&&(void 0===e?"undefined":(0,i._)(e))==="object"&&!Array.isArray(e)}},63415:function(e,t,n){"use strict";n.d(t,{m5:()=>i,p9:()=>r,u$:()=>o});var r="_MODERNJS_ROUTE_MANIFEST",o="_routeModules",i="server-loader"},93703:function(e,t,n){"use strict";n.d(t,{M:()=>d});var r=n(86834),o=n(49607),i=n(46722),a=n(8047),s=n(52701),u=n(59825),l=n(5872);let c=e=>{let{error:t}=e,n=t instanceof Error?"".concat(t.name,": ").concat(t.message):"Unknown Error",o=t instanceof Error?t.stack:Object.prototype.toString.call(t);return(0,r.jsxs)(i.x,{p:"4",children:[(0,r.jsx)(a.X,{as:"h4",mb:"4",children:(0,r.jsx)(s.x,{as:"span",children:n})}),(0,r.jsx)(u.K,{disabled:!0,style:{height:"50vh"},value:o})]})},d=()=>{let e=(0,o.lk)();return(0,l.useEffect)(()=>{console.error(e)},[e]),(0,r.jsx)(c,{resetErrorBoundary:()=>null,error:e})}},83530:function(e,t,n){"use strict";n.d(t,{l:()=>s});var r=n(86834),o=n(49607),i=n(52911),a=n(82985);let s=e=>{let{items:t}=e,n=(0,o.s0)(),s=(0,o.TH)(),u=t.find(e=>(0,i.LX)(e.to,s.pathname));return(0,r.jsxs)(a.fC,{size:"1",value:null==u?void 0:u.to,onValueChange:n,children:[(0,r.jsx)(a.xz,{}),(0,r.jsx)(a.VY,{position:"popper",children:t.map(e=>{let{title:t,to:n}=e;return(0,r.jsx)(a.ck,{value:n,children:t},n)})})]})}},31330:function(e,t,n){"use strict";n.d(t,{T:()=>k,k:()=>A});var r=n(34202),o=n(25176),i=n(86834),a=n(36558),s=n(10487),u=n(65872);class l extends u.gl{static use(){return s.RUNTIME_GLOBALS in window||(window[s.RUNTIME_GLOBALS]=new l),window[s.RUNTIME_GLOBALS]}}async function c(e){l.use();let t=e.map(e=>new Promise((t,n)=>{let r=document.createElement("script");r.onload=()=>t(),r.onerror=e=>n(e),r.src=e,document.head.appendChild(r)}));await Promise.all(t)}var d=n(75943),f=n(7459),p=n(52493),h=n.n(p),v=n(3570),m=n(13190),g=n(4390),y=n(9014),x=n(41839);let w=async()=>{let e=await s.MessagePortChannel.link(window.parent,"channel:connect:client"),t=(0,u.Hu)();return{remote:(0,f.Fu)({async pullUp(e){await t.callHook("pullUp",e)}},(0,o._)((0,r._)({},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 n=new URL(e,location.href),i=new window.WebSocket(n),a=await s.WebSocketChannel.link(i),l=(0,u.Hu)();return{remote:(0,f.Fu)({async refresh(){location.reload()},async applyStateOperations(e){for(let n of e)(0,s.applyOperation)(t,n)}},(0,o._)((0,r._)({},a.handlers),{timeout:5e3})),hooks:l,url:n}},R=async()=>{let e=l.use(),t=(0,x.sj)([{name:"overview",title:"Overview",icon:(0,i.jsx)(m.VRM,{}),view:{type:"builtin",src:"/overview"}},{name:"config",title:"Config",icon:(0,i.jsx)(m.pZq,{}),view:{type:"builtin",src:"/config"}},{name:"pages",title:"Pages",icon:(0,i.jsx)(m.OiH,{}),view:{type:"builtin",src:"/pages"}},{name:"react",title:"React",icon:(0,i.jsx)(g.Ueg,{}),view:{type:"builtin",src:"/react"}},{name:"context",title:"Context",icon:(0,i.jsx)(m.sin,{}),view:{type:"builtin",src:"/context"}},{name:"headers",title:"Header Modifier",icon:(0,i.jsx)(m.KBe,{}),view:{type:"builtin",src:"/headers"}},{name:"doctor",title:"Doctor",icon:(0,i.jsx)(g.BwS,{}),view:{type:"builtin",src:"/doctor"}},{name:"storage",title:"Storage",icon:(0,i.jsx)(m.RMk,{}),view:{type:"builtin",src:"/storage/preset"}}]);for(let n of(await e.callHook("tab:list",t),t))"object"==typeof n.icon&&(n.icon=(0,x.iH)(n.icon)),"external"===n.view.type&&(n.view.component=(0,x.iH)(n.view.component));return t},E=async e=>{let t=new d.S,n=t.bindRemote(e.remote,"sendReactDevtoolsData");await e.remote.activateReactDevtools();let r=(0,v.createBridge)(window.parent,t);r.shutdown=()=>null;let o=(0,v.createStore)(r),i=(0,v.initialize)(window.parent,{bridge:r,store:o});return{store:o,bridge:r,wallAgent:t,unreg:n,Renderer:i}},k=(async e=>{var t;let n=(0,y.mB)((0,y.Lk)(e).search),i=null!=(t=h().castArray(n.src)[0])?t:(0,y.As)(e,"manifest"),a=w(),s=b(i),u=s.then(e=>e.websocket?j(e.websocket,(0,x.sj)(e)):null),l=s.then(e=>c(e.context.def.plugins)).then(R),d=a.then(E),[f,p,v,m,g]=await Promise.all([a,s,u,l,d]);return(0,x.sj)((0,o._)((0,r._)({},p),{version:"2.67.7",tabs:m,server:v?(0,x.iH)(v):null,mountPoint:(0,x.iH)(f),react:{devtools:{store:(0,x.iH)(g.store),bridge:(0,x.iH)(g.bridge),wallAgent:(0,x.iH)(g.wallAgent),unreg:(0,x.iH)(g.unreg),Renderer:(0,x.iH)(g.Renderer)}}}))})(location.href),A=()=>(0,a.D$)(k)},15477:function(e,t,n){"use strict";n.d(t,{Z:()=>o});var r=n(52911);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,r.uX)("/404"):(0,r.uX)("/404")}},22185:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(93703).M},89995:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>h});var r=n(86834),o=n(49607),i=n(52701),a=n(67251),s=n(82985),u=n(46722),l=n(52493),c=n.n(l);let d=e=>{let{name:t,describe:n}=e,o=n.map(e=>(0,r.jsx)(i.x,{style:{display:"block"},children:e},e));return(0,r.jsx)(a.u,{className:"tooltip-i9AhnB",side:"right",content:o,children:(0,r.jsx)(s.ck,{value:t,children:(0,r.jsx)(u.x,{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,r.jsx)(()=>{let e=(0,o.TH)(),t=(0,o.s0)(),[n,i]=e.pathname.split("/").slice(2);return(0,r.jsxs)(s.fC,{size:"1",value:n,onValueChange:e=>{t("/config/".concat(e,"/").concat(i))},children:[(0,r.jsx)(s.xz,{children:n}),(0,r.jsx)(s.VY,{children:f.map(e=>{let{name:t,describe:n}=e;return(0,r.jsx)(d,{name:t,describe:n},t)})})]})},{})},{title:(0,r.jsx)(()=>{let e=(0,o.TH)(),t=(0,o.s0)(),[n,i]=e.pathname.split("/").slice(2);return(0,r.jsxs)(s.fC,{size:"1",value:i,onValueChange:e=>{t("/config/".concat(n,"/").concat(e))},children:[(0,r.jsx)(s.xz,{children:i}),(0,r.jsx)(s.VY,{children:p.map(e=>{let{name:t,describe:n}=e;return(0,r.jsx)(d,{name:t,describe:n},t)})})]})},{})}]}},53161:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=n(52911),o=n(9014);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./builder/transformed");return(0,r.uX)(n)}},76029:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(93703).M},76641:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>i});var r=n(86834),o=n(83530);let i={breadcrumb:[{title:"Context"},{title:(0,r.jsx)(o.l,{items:[{to:"/context/builder",title:"Builder"},{to:"/context/framework",title:"Framework"}]})}]}},16913:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=n(52911),o=n(9014);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./builder");return(0,r.uX)(n)}},13760:function(e,t,n){"use strict";n.d(t,{Z:()=>m});var r=n(86834),o=n(93703),i=n(49497),a=n(46722),s=n(8047),u=n(13190),l=n(28045);let c=e=>{let{title:t,children:n}=e;return(0,r.jsxs)(i.k,{className:l.Z.container,mt:"9",mx:"auto",gap:"2",children:[(0,r.jsx)(i.k,{height:"var(--space-9)",align:"center",children:(0,r.jsx)(u.fd$,{size:"36"})}),(0,r.jsxs)(a.x,{children:[(0,r.jsx)(i.k,{height:"var(--space-9)",align:"center",children:(0,r.jsx)(s.X,{children:t})}),(0,r.jsx)(a.x,{className:l.Z.children,children:n})]})]})};var d=n(31330),f=n(49607),p=n(37970),h=n(9014),v=n(20610);let m=()=>{let e=(0,f.lk)(),t=(0,d.k)(),{def:n}=(0,v.R)(t).context;if(!(e&&"object"==typeof e&&0===Object.keys(e).length))return(0,r.jsx)(o.M,{});{let e=(0,h.Lk)(n.doctor.quickStart).host,t=(0,r.jsxs)(p.r,{href:n.doctor.quickStart,target:"_blank",rel:"noopener noreferrer",children:["\uD83D\uDD17",e]});return(0,r.jsx)(a.x,{width:"100%",children:(0,r.jsxs)(c,{title:"Doctor is not working",children:["Visit the website of ",t," to learn more."]})})}}},93615:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Doctor"}}},94750:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(93703).M},91787:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>s});var r=n(31330),o=n(36558),i=n(52493),a=n.n(i);let s={breadcrumb(e){var t;let n,{pathname:i}=e.location,s=null==(t=i.match(/^\/external\/(\w+)/))?void 0:t[1],{tabs:u}=(0,o.D$)(r.T),l=a().find(u,{name:s});return l?{title:n}=l:n=s?a().startCase(s):"External",{title:n,pathname:i}}}},94287:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(93703).M},59855:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Header Modifier"}}},72763:function(e,t,n){"use strict";n.d(t,{_:()=>i});var r=n(52911),o=n(73062);let i=async()=>{let e=await o.ok.service;return(0,r.uX)(e.rules?"./editor":"./welcome")}},73062:function(e,t,n){"use strict";n.d(t,{gM:()=>a,m:()=>s,ok:()=>l});var r=n(52493),o=n.n(r),i=n(41839);let a=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=encodeURIComponent(JSON.stringify(e)),n="".concat("/sw-proxy.js","?rules=").concat(t),r=await navigator.serviceWorker.register(n);return await navigator.serviceWorker.ready,l.service=await u(),r},s=async()=>{let e=await navigator.serviceWorker.getRegistrations(),t=!0;for(let n of e)t=t&&await n.unregister();return l.service=Promise.resolve({}),t},u=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{}},l=(0,i.sj)({service:u()})},84376:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>i});var r=n(86834),o=n(13190);let i={breadcrumb:{title:(0,r.jsx)(o.Zn9,{}),pathname:"/overview"}}},61665:function(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Y});var r=n(86834),o=n(34202),i=n(25176),a=n(49607),s=n(66671),u=n(49497),l=n(52493),c=n.n(l),d=n(54432),f=n(30309),p=n(86902),h=n(53845),v=n(99613),m=n(52911),g=n(29001),y=n(5872),x=n(24644);function w(e,t){return function(n){null==e||e(n),n.defaultPrevented||t(n)}}var _=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function b(){return(b=(0,p._)(function(e,t){var r,o;return(0,v.Jh)(this,function(i){switch(i.label){case 0:if(!(r=e.id)||!t[r]||!(o=t[r].chunkIds))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Promise.all(o.map(function(e){return null===n.e||void 0===n.e?void 0:n.e(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 n=window.location,r=n.protocol,o=n.host,i=new URL(e,"".concat(r,"//").concat(o));return i.searchParams.append("__loader",t),i.searchParams.append("__ssrDirect","true"),i},R=function(e,t,n){var o,i=e.id;return o=j("/"===n?t:"".concat(n).concat(t),i).toString(),(0,r.jsx)("link",{rel:"prefetch",as:"fetch",href:o},o)},E=function(e){var t=e.path,n=t.pathname,o=(0,y.useContext)(x.JO),i=o.routeManifest,a=o.routes,s=(i||{}).routeAssets,u=Array.isArray(a)?(0,m.fp)(a,n):[];return(Array.isArray(u)&&s&&(null==u||u.forEach(function(e){return function(e,t){return b.apply(this,arguments)}(e.route,s)})),window._SSR_DATA)?(0,r.jsx)(k,{matches:u,path:t,routeManifest:i}):null},k=function(e){var t=e.matches,n=e.path,o=e.routeManifest,i=n.pathname,s=n.search,u=n.hash,l=(0,a.SN)(),c=(0,a.oQ)("/"),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 n,r=new URL(location.pathname+location.search+location.hash,window.origin),o=new URL(i+s+u,window.origin),a=e.route.shouldRevalidate({currentUrl:r,currentParams:(null==(n=l[0])?void 0:n.params)||{},nextUrl:o,nextParams:e.params,defaultShouldRevalidate:!0});if("boolean"==typeof a)return a}var c=l[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,r.jsx)(r.Fragment,{children:d})},A=function(e){return y.forwardRef(function(t,i){var s,u,l,c,d,p,v,m,g,x,b,j,R,k,A=t.to,S=t.prefetch,C=(0,f._)(t,["to","prefetch"]),N="string"==typeof A&&_.test(A),T=(0,h._)((s=void 0===S?"none":S,l=(u=(0,h._)(y.useState(!1),2))[0],c=u[1],p=(d=(0,h._)(y.useState(!1),2))[0],v=d[1],m=C.onFocus,g=C.onBlur,x=C.onMouseEnter,b=C.onMouseLeave,j=C.onTouchStart,y.useEffect(function(){"render"===s&&v(!0)},[s]),R=function(){"intent"===s&&c(!0)},k=function(){"intent"===s&&(c(!1),v(!1))},y.useEffect(function(){if(l){var e=setTimeout(function(){v(!0)},100);return function(){clearTimeout(e)}}},[l]),[p,{onFocus:w(m,R),onBlur:w(g,k),onMouseEnter:w(x,R),onMouseLeave:w(b,k),onTouchStart:w(j,R)}]),2),M=T[0],P=T[1],D=(0,a.WU)(A);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e,(0,o._)({ref:i,to:A},C,P)),M&&n.e&&!N?(0,r.jsx)(E,{path:D}):null]})})},S=A(g.rU);S.displayName="Link";var C=A(g.OL);C.displayName="NavLink";var N=n(37970);let T=e=>{var{to:t,children:n}=e,a=(0,f._)(e,["to","children"]);return(0,r.jsx)(N.r,(0,i._)((0,o._)({},a),{asChild:!0,children:(0,r.jsx)(S,{to:t,children:n})}))},M=e=>{let{location:t,handle:n}=e;if(!c().isObject(n)&&c().isNil(n))return[];let{breadcrumb:r}=n,o=[];c().isFunction(r)?o.push(...c().castArray(r({location:t}))):o.push(...c().castArray(r));let i=[];for(let t of o){if(!c().isObject(t)||c().isNull(t)||!("title"in t))continue;let n={id:e.id,title:t.title,pathname:e.pathname};"pathname"in t&&c().isString(t.pathname)&&(n.pathname=t.pathname),i.push(n)}return i},P=e=>{let t=[],n=(0,a.SN)(),l=(0,a.TH)(),c=[];for(let e of n)c.push(...M((0,i._)((0,o._)({},e),{location:l})));for(let[e,n]of(l.state&&"breadcrumb"in l.state&&c.push(...M({handle:l.state.breadcrumb,pathname:l.pathname,id:"external/".concat(l.pathname),location:l})),Object.entries(c))){let o=[n.id,n.pathname,e];t.push((0,r.jsx)(T,{color:"gray",size:"2",to:n.pathname,children:n.title},o.join("_"))),n!==c.at(-1)&&(o.push("#connector"),t.push((0,r.jsx)(s.XCv,{className:d.Z.connector},o.join("_"))))}return(0,r.jsx)(u.k,(0,i._)((0,o._)({align:"center",height:"var(--space-8)",gap:"1",px:"4"},e),{children:t}))};var D=n(31330);let O="";D.T.then(e=>{let{mountPoint:t}=e;t.hooks.hookOnce("pullUp",async e=>{O=e})});let L=()=>{let e=(0,a.s0)(),{mountPoint:t}=(0,D.k)();return(0,y.useEffect)(()=>{O&&e(O),t.hooks.hook("pullUp",async t=>{e(t)})},[]),null};var H=n(42764),B=n(87420);let U=e=>{var{children:t}=e,n=(0,f._)(e,["children"]);let[a]=(0,H.U)();return(0,y.useEffect)(()=>{document.documentElement.classList.remove("dark","light"),document.documentElement.classList.add(a)},[a]),(0,r.jsx)(B.Q2,(0,i._)((0,o._)({},n),{appearance:a,children:t}))};var I=n(66997),J=n(67251),z=n(46722),F=n(13190),q=n(20610);let Z="tab-button-MtqLNp",V="tab-button-inner-KmlACp",W=e=>{let{tab:t}=e,n="";if("builtin"===t.view.type)n=t.view.src;else if("iframe"===t.view.type)n="/iframe/".concat(t.view.src);else if("external"===t.view.type)n="/external/".concat(t.name);else throw Error('Invalid tab view of "'.concat(t.name,'".'));return(0,y.useEffect)(()=>{document.documentElement.classList.add("theme-register")},[]),(0,r.jsx)(J.u,{content:t.title,side:"right",children:(0,r.jsx)(C,{to:n,className:Z,children:(0,r.jsx)(u.k,{justify:"center",align:"center",p:"1",className:V,children:(0,r.jsx)(z.x,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:t.icon})})})})},X=()=>{let{server:e}=(0,q.R)((0,D.k)());return(0,r.jsx)(J.u,{content:e?"Connected":"Disconnected",side:"right",children:(0,r.jsx)(z.x,{className:Z,children:(0,r.jsxs)(z.x,{p:"1",position:"relative",className:V,children:[(0,r.jsx)(z.x,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:(0,r.jsx)(F.Qa9,{})}),(0,r.jsx)(z.x,{className:"online-indicator-E9Pryr","data-active":!!e})]})})})},G=()=>{let[e,t]=(0,H.U)();return(0,r.jsx)(J.u,{content:"Appearance",side:"right",children:(0,r.jsx)(z.x,{className:Z,onClick:()=>{t("light"===e?"dark":"light")},children:(0,r.jsx)(u.k,{justify:"center",align:"center",p:"1",className:V,children:(0,r.jsx)(z.x,{height:"var(--space-5)",width:"var(--space-5)",asChild:!0,children:"dark"===e?(0,r.jsx)(F.Fxr,{}):(0,r.jsx)(F.YGJ,{})})})})})},$=()=>{let{tabs:e}=(0,q.R)((0,D.k)());return(0,r.jsxs)(u.k,{direction:"column",flexShrink:"0",className:"navigator-O_AEE3",children:[e.map(e=>(0,r.jsx)(W,{tab:e},e.name)),(0,r.jsx)(z.x,{flexGrow:"1"}),(0,r.jsx)(X,{}),(0,r.jsx)(G,{})]})},Y=()=>(0,r.jsx)(U,{className:"wrapper-YAIt0k",accentColor:"blue",panelBackground:"solid",children:(0,r.jsxs)(I.zt,{swipeDirection:"up",children:[(0,r.jsx)($,{}),(0,r.jsxs)(z.x,{width:"100%",position:"relative",pt:"4",children:[(0,r.jsx)(z.x,{width:"100%",height:"100%",position:"relative",children:(0,r.jsx)(a.j3,{})}),(0,r.jsx)(P,{className:"breadcrumbs-LVvAXj",height:"2.5rem",position:"absolute",top:"0",left:"0",right:"0"})]}),(0,r.jsx)(L,{})]})})},67570:function(e,t,n){"use strict";n.d(t,{Z:()=>s});var r=n(86834),o=n(72235),i=n(31330),a=n(12564);let s=()=>{let{mountPoint:e}=(0,i.k)();return(0,a.Z)(async()=>{e.remote.onFinishRender()}),(0,r.jsx)(o.g,{className:"loading-gmTvLE"})}},50516:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(93703).M},55124:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Overview"}}},19664:function(e,t,n){"use strict";n.d(t,{_:()=>i});var r=n(52911),o=n(9014);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./overview");return(0,r.uX)(n)}},16315:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(93703).M},36921:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:{title:"Pages"}}},93347:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>i});var r=n(86834),o=n(83530);let i={breadcrumb:[{title:"React"},{title:(0,r.jsx)(o.l,{items:[{to:"/react/components",title:"Components"},{to:"/react/profiler",title:"Profiler"}]})}]}},42773:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(93703).M},34640:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=n(52911),o=n(9014);let i=e=>{let{request:t}=e,n=(0,o.As)(t.url,"./components");return(0,r.uX)(n)}},98036:function(e,t,n){"use strict";n.d(t,{_:()=>s});var r=n(31330),o=n(52911),i=n(52493),a=n.n(i);let s=async e=>{let{params:t}=e,{id:n}=t;if(!n)throw TypeError("storage preset id is required");let{context:i}=await r.T,{storagePresets:s}=await Promise.resolve(i),u=a().find(s,{id:n});return u||(0,o.uX)("/storage/preset")}},48052:function(e,t,n){"use strict";n.r(t),n.d(t,{handle:()=>r});let r={breadcrumb:[{title:"Storage"},{title:"Preset"}]}},30713:function(e,t,n){"use strict";n.d(t,{_:()=>o,a:()=>i});var r=n(21441);let o=async e=>await (0,r.l5)(),i=()=>null},34743:function(e,t,n){"use strict";n.d(t,{_:()=>o});var r=n(21441);let o=async e=>await (0,r.l5)()},21441:function(e,t,n){"use strict";n.d(t,{SR:()=>u,dR:()=>a,f:()=>l,l5:()=>c,xq:()=>s});var r=n(31330),o=n(52493),i=n.n(o);let a=["cookie","localStorage","sessionStorage"],s={cookie:"yellow",localStorage:"green",sessionStorage:"blue"},u=(e,t)=>i().map(e[t],(n,r)=>{let o=[e.id,t,r].join("//");return{key:r,value:n,type:t,id:o}}),l=e=>{let t=[];for(let n of a)t.push(...u(e,n));return t},c=async e=>{let{mountPoint:t}=await r.T,[n,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:n,localStorage:o,sessionStorage:i}}},36558:function(e,t,n){"use strict";n.d(t,{D$:()=>o}),n(86834),n(5872),n(52493);let r=new WeakMap,o=e=>{if(!(e instanceof Promise))return e;if(r.has(e)){let t=r.get(e);if(t instanceof Error)throw t;if(!(t instanceof Promise))return t;throw t}throw r.set(e,e),e.then(t=>r.set(e,t)).catch(t=>r.set(e,t)),e}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["118","126","245","415","567","58","746"],function(){return t(50803),t(67237),t(38439),t(76762),t(35570)}),e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["567"],{54432:function(n,t,e){e.d(t,{Z:()=>o});let o={link:"link-znMYnO",connector:"connector-BqtwBd"}},63810:function(n,t,e){e.d(t,{Z:()=>o});let o={card:"card-If0911"}},41937:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-WHe0d3"}},7269:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-tsQk3U",fab:"fab-_shO90",slideInFromRight:"slideInFromRight-cmflGC",logo:"logo-nXXNIB"}},82352:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-tcM8fB","close-button":"close-button-weoXpd",closeButton:"close-button-weoXpd",frame:"frame-PSYQgj",backdrop:"backdrop-SWoFLh"}},28045:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-uSZ85N",children:"children-cVMy6R"}},8178:function(n,t,e){e.d(t,{Z:()=>o});let o={loading:"loading-HrjYdW",rotate:"rotate-CPIjfB"}},58157:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-COzu4H"}},37271:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-SkRv4t"}},93536:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-e3dQes"}},23667:function(n,t,e){e.d(t,{Z:()=>o});let o={"input-pair":"input-pair-rQmmCj",inputPair:"input-pair-rQmmCj",actions:"actions-AIkunB"}},76665:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-e74VUa",trigger:"trigger-THjT7j",content:"content-Qso8ca",slideDown:"slideDown-Z9IIi_",slideUp:"slideUp-H_SR0p","url-text":"url-text-OqB5_M",urlText:"url-text-OqB5_M",mark:"mark-cUxPxy"}},74162:function(n,t,e){e.d(t,{Z:()=>o});let o={"endpoint-tag":"endpoint-tag-y0SEjj",endpointTag:"endpoint-tag-y0SEjj","shy-link":"shy-link-Xazm8H",shyLink:"shy-link-Xazm8H","endpoint-container":"endpoint-container-XVJeZy",endpointContainer:"endpoint-container-XVJeZy"}},56277:function(n,t,e){e.d(t,{Z:()=>o});let o={stats:"stats-cb58Fz"}},92245:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-dWGOkz",slideIn:"slideIn-AQnKGk",hide:"hide-LUv_Hv",swipeOut:"swipeOut-ZTbSGG",viewport:"viewport-Owdzo8",close:"close-i8MeRu"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{15501:function(e,t,o){var n=o(86834),l=o(34202),r=o(25176),i=o(75943),s=o(10487),a=o(7459),c=o(65872),d=o(52493),u=o.n(d),m=o(9880),h=o.n(m),v=o(57662),p=o(41839);let y=s.MessagePortChannel.wait(window,"channel:connect:client"),f=new i.S,g=(0,v.createBridge)(window,f),w=y.then(e=>{let t=(0,c.Hu)();return{remote:(0,a.Fu)({async activateReactDevtools(){(0,v.activate)(window,{bridge:g})},async onFinishRender(){await t.callHook("onFinishRender")},async cookies(e){let t=await fetch("/__devtools/api/cookies",{method:"POST",body:JSON.stringify({setCookies:e})}),{cookies:n}=await t.json();if(!n||"object"!=typeof n)throw TypeError("No cookies returned from server");let{parse:l}=await o.e("883").then(o.bind(o,10851)),r=l(document.cookie),i=u().omit(n,Object.keys(r));return{client:r,server:i}},localStorage:async e=>(u().each(e,(e,t)=>{window.localStorage.setItem(t,e)}),(0,l._)({},window.localStorage)),sessionStorage:async e=>(u().each(e,(e,t)=>{window.sessionStorage.setItem(t,e)}),(0,l._)({},window.sessionStorage))},(0,r._)((0,l._)({},e.handlers),{timeout:500})),hooks:t}}),k=(0,p.sj)({loaded:!1}),b=h()();w.then(e=>{let{remote:t,hooks:o}=e;f.bindRemote(t,"sendReactDevtoolsData"),o.hook("onFinishRender",async()=>{k.loaded=!0,b.resolve()})});var _=o(41035),j=o(5872),x=o(28962);let C=(e,t)=>{var o,n;return null!=(n=null==(o=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])?void 0:o.includes(t))&&n},E=e=>{let[t,...o]=[{key:"top",value:e.top},{key:"bottom",value:e.bottom},{key:"left",value:e.left},{key:"right",value:e.right}].sort((e,t)=>e.value-t.value),n=o.findIndex(e=>{let{key:o}=e;return C(t.key,o)}),[l]=o.splice(n,1);return[t,l,o[0],o[1]]},Z=e=>{let{top:t,left:o,height:n,width:l}=e.getBoundingClientRect();return{top:t,left:o,bottom:window.innerHeight-t-n,right:window.innerWidth-o-l}},N=e=>{var t;let o=null!=(t=null==e?void 0:e.margin)?t:"10px",n="number"==typeof o?"".concat(o,"px"):o,[l,r]=(0,j.useState)(),i=()=>{if(!l)return;l.moveable=!1;let{el:e}=l,[t]=E(Z(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{r(void 0),e.style[t.key]=n}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},s=t=>{let o="touches"in t?t.touches[0]:t;if(!(null==l?void 0:l.moveable))return;let{startX:r,startY:i}=l;(r-o.clientX)**2+(i-o.clientY)**2>9&&(l.clickable=!1);let{width:s,height:a}=l.el.getBoundingClientRect(),c=o.clientY-l.offsetY,d=o.clientX-l.offsetX,u=E({top:c,left:d,bottom:window.innerHeight-c-a,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:o}=e;return{key:t,value:"".concat(o,"px")}});if(null==e?void 0:e.clamp)for(let e of u){let t=["top","bottom"].includes(e.key)?window.innerHeight-a:window.innerWidth-s;e.value="clamp(".concat(n,", ").concat(e.value,", ").concat(t,"px)")}let[m,h,...v]=u,{style:p}=l.el;p.transition="",p[m.key]=m.value,p[h.key]=h.value,p[v[0].key]="auto",p[v[1].key]="auto"};(0,x.Z)("blur",i),(0,x.Z)("mouseup",i),(0,x.Z)("touchend",i),(0,x.Z)("mousemove",s),(0,x.Z)("touchmove",s);let a=e=>{let t="touches"in e?e.touches[0]:e,o=e.currentTarget,n=o.getBoundingClientRect();r({el:o,clickable:!0,moveable:!0,offsetX:t.clientX-n.left,offsetY:t.clientY-n.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!l,props:{onMouseDown:a,onTouchStart:a,onClickCapture:e=>{(null==l?void 0:l.clickable)||e.stopPropagation()}}}},R=(e,t)=>new Promise((o,n)=>{let l=!0,r=setTimeout(()=>{l=!1,n(Error("Promise Timeout"))},t);e.then(e=>{l&&o(e),clearTimeout(r)}),e.catch(n)});var S=o(42764),D=o(87420),P=o(49497),T=o(13190),H=o(86209),Y=o(42226);let B=e=>{var t;let o=null==(t=e.keepAlive)||t,{when:l}=e,r=(0,j.useRef)(!1);return l&&(r.current=!0),e.load||(o?r.current:l)?(0,n.jsx)("div",{style:{display:!o||l?"unset":"none"},children:e.children}):null};var I=o(38651),L=o(
|
|
1
|
+
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{15501:function(e,t,o){var n=o(86834),l=o(34202),r=o(25176),i=o(75943),s=o(10487),a=o(7459),c=o(65872),d=o(52493),u=o.n(d),m=o(9880),h=o.n(m),v=o(57662),p=o(41839);let y=s.MessagePortChannel.wait(window,"channel:connect:client"),f=new i.S,g=(0,v.createBridge)(window,f),w=y.then(e=>{let t=(0,c.Hu)();return{remote:(0,a.Fu)({async activateReactDevtools(){(0,v.activate)(window,{bridge:g})},async onFinishRender(){await t.callHook("onFinishRender")},async cookies(e){let t=await fetch("/__devtools/api/cookies",{method:"POST",body:JSON.stringify({setCookies:e})}),{cookies:n}=await t.json();if(!n||"object"!=typeof n)throw TypeError("No cookies returned from server");let{parse:l}=await o.e("883").then(o.bind(o,10851)),r=l(document.cookie),i=u().omit(n,Object.keys(r));return{client:r,server:i}},localStorage:async e=>(u().each(e,(e,t)=>{window.localStorage.setItem(t,e)}),(0,l._)({},window.localStorage)),sessionStorage:async e=>(u().each(e,(e,t)=>{window.sessionStorage.setItem(t,e)}),(0,l._)({},window.sessionStorage))},(0,r._)((0,l._)({},e.handlers),{timeout:500})),hooks:t}}),k=(0,p.sj)({loaded:!1}),b=h()();w.then(e=>{let{remote:t,hooks:o}=e;f.bindRemote(t,"sendReactDevtoolsData"),o.hook("onFinishRender",async()=>{k.loaded=!0,b.resolve()})});var _=o(41035),j=o(5872),x=o(28962);let C=(e,t)=>{var o,n;return null!=(n=null==(o=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])?void 0:o.includes(t))&&n},E=e=>{let[t,...o]=[{key:"top",value:e.top},{key:"bottom",value:e.bottom},{key:"left",value:e.left},{key:"right",value:e.right}].sort((e,t)=>e.value-t.value),n=o.findIndex(e=>{let{key:o}=e;return C(t.key,o)}),[l]=o.splice(n,1);return[t,l,o[0],o[1]]},Z=e=>{let{top:t,left:o,height:n,width:l}=e.getBoundingClientRect();return{top:t,left:o,bottom:window.innerHeight-t-n,right:window.innerWidth-o-l}},N=e=>{var t;let o=null!=(t=null==e?void 0:e.margin)?t:"10px",n="number"==typeof o?"".concat(o,"px"):o,[l,r]=(0,j.useState)(),i=()=>{if(!l)return;l.moveable=!1;let{el:e}=l,[t]=E(Z(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{r(void 0),e.style[t.key]=n}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},s=t=>{let o="touches"in t?t.touches[0]:t;if(!(null==l?void 0:l.moveable))return;let{startX:r,startY:i}=l;(r-o.clientX)**2+(i-o.clientY)**2>9&&(l.clickable=!1);let{width:s,height:a}=l.el.getBoundingClientRect(),c=o.clientY-l.offsetY,d=o.clientX-l.offsetX,u=E({top:c,left:d,bottom:window.innerHeight-c-a,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:o}=e;return{key:t,value:"".concat(o,"px")}});if(null==e?void 0:e.clamp)for(let e of u){let t=["top","bottom"].includes(e.key)?window.innerHeight-a:window.innerWidth-s;e.value="clamp(".concat(n,", ").concat(e.value,", ").concat(t,"px)")}let[m,h,...v]=u,{style:p}=l.el;p.transition="",p[m.key]=m.value,p[h.key]=h.value,p[v[0].key]="auto",p[v[1].key]="auto"};(0,x.Z)("blur",i),(0,x.Z)("mouseup",i),(0,x.Z)("touchend",i),(0,x.Z)("mousemove",s),(0,x.Z)("touchmove",s);let a=e=>{let t="touches"in e?e.touches[0]:e,o=e.currentTarget,n=o.getBoundingClientRect();r({el:o,clickable:!0,moveable:!0,offsetX:t.clientX-n.left,offsetY:t.clientY-n.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!l,props:{onMouseDown:a,onTouchStart:a,onClickCapture:e=>{(null==l?void 0:l.clickable)||e.stopPropagation()}}}},R=(e,t)=>new Promise((o,n)=>{let l=!0,r=setTimeout(()=>{l=!1,n(Error("Promise Timeout"))},t);e.then(e=>{l&&o(e),clearTimeout(r)}),e.catch(n)});var S=o(42764),D=o(87420),P=o(49497),T=o(13190),H=o(86209),Y=o(42226);let B=e=>{var t;let o=null==(t=e.keepAlive)||t,{when:l}=e,r=(0,j.useRef)(!1);return l&&(r.current=!0),e.load||(o?r.current:l)?(0,n.jsx)("div",{style:{display:!o||l?"unset":"none"},children:e.children}):null};var I=o(38651),L=o(41937);let X=e=>{var t;let[o,l]=(0,I.Z)(()=>Promise.resolve(e.onClick()),[]);return(0,n.jsx)("button",{className:L.Z.container,onClick:l,"data-type":null!=(t=e.type)?t:"default",disabled:o.loading,children:e.children})};var O=o(7269),U=o(30309),F=o(46722),W=o(20610),K=o(72235),M=o(82352);let A=e=>{var{src:t,onClose:o}=e,i=(0,U._)(e,["src","onClose"]);let{loaded:s}=(0,W.R)(k);return(0,n.jsxs)(F.x,(0,r._)((0,l._)({className:M.Z.container},i),{children:[(0,n.jsx)("iframe",{className:M.Z.frame,src:t}),(0,n.jsx)(T.cu3,{className:M.Z.closeButton,onClick:o}),(0,n.jsx)("div",{className:M.Z.backdrop,style:{display:s?"none":void 0},children:(0,n.jsx)(K.g,{})})]}))},q=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,{hash:o}=t,n=null==(e=o.match(/^#\/__devtools(.*)/))?void 0:e[1];return"string"!=typeof n?null:""===n?"/":n},J=e=>{let t=q(),[o,i]=(0,H.Z)(!!t),[s,a]=(0,j.useState)(!1),c=N({clamp:!0}),[d]=(0,S.U)();(0,x.Z)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&i()}),(0,j.useEffect)(()=>{f.hook("receive",e=>{"startInspectingNative"===e.event&&(i(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(i(!0),document.documentElement.style.removeProperty("cursor"))};return f.hook("send",e),()=>{f.removeHook("send",e)}},[]);let u=async()=>{document.documentElement.style.setProperty("cursor","wait"),i(!1),a(!0);try{(await R(w,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,Y.Z)(async()=>{t&&(await R(w,1e4)).remote.pullUp(t)},[]),(0,n.jsxs)(D.Q2,{appearance:d,className:d,hasBackground:!1,style:{height:0,width:0,minHeight:0,minWidth:0},children:[(0,n.jsx)(B,{when:o,keepAlive:!0,load:s,children:(0,n.jsx)("div",{className:O.Z.container,children:(0,n.jsx)(A,{src:e.src,onClose:()=>i(!1),style:{pointerEvents:c.isDragging?"none":"auto"}})})}),(0,n.jsxs)(P.k,(0,r._)((0,l._)({className:O.Z.fab},c.props),{align:"center",children:[(0,n.jsx)(X,{type:"primary",onClick:i,children:(0,n.jsx)("img",{className:O.Z.logo,src:e.logo})}),(0,n.jsx)(X,{onClick:u,children:(0,n.jsx)(T.aur,{})})]}))]})},Q=()=>{let e=window.__modern_js_devtools_manifest;if(!e)throw TypeError("Devtools manifest is not found");let t=e.client;if(!t)throw TypeError("Devtools client source is not found");let o=e.source,l=new URL(t,location.href);if(o){let e=new URL(o,location.href);l.searchParams.set("src",e.href)}return(0,n.jsx)(J,{logo:e.context.def.assets.logo,src:l.href})},V=()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),o=document.getElementById("_modern_js_devtools_styles");if(!(o instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(o.content);let l=document.createElement("div");l.classList.add("_modern_js_devtools_mountpoint","theme-register","container-bYVevn"),t.appendChild(l),(0,_.createRoot)(l).render((0,n.jsx)(Q,{}))};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",V):V()}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","245","567","58","746","94"],function(){return t(50803),t(67237),t(38439),t(76762),t(15501)}),e.O()}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/devtools-client",
|
|
3
|
-
"version": "2.67.
|
|
3
|
+
"version": "2.67.7",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.0.0"
|
|
6
6
|
},
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@radix-ui/react-collapsible": "^1.1.
|
|
20
|
+
"@radix-ui/react-collapsible": "^1.1.11",
|
|
21
21
|
"@radix-ui/react-icons": "^1.3.2",
|
|
22
|
-
"@radix-ui/react-popover": "^1.1.
|
|
23
|
-
"@radix-ui/react-tabs": "^1.1.
|
|
24
|
-
"@radix-ui/react-toast": "^1.2.
|
|
22
|
+
"@radix-ui/react-popover": "^1.1.14",
|
|
23
|
+
"@radix-ui/react-tabs": "^1.1.12",
|
|
24
|
+
"@radix-ui/react-toast": "^1.2.14",
|
|
25
25
|
"@radix-ui/themes": "^3.2.1",
|
|
26
|
-
"@rsbuild/core": "1.3.
|
|
26
|
+
"@rsbuild/core": "1.3.22",
|
|
27
27
|
"@types/jest": "^29",
|
|
28
28
|
"@types/lodash": "^4.14.202",
|
|
29
29
|
"@types/node": "~16.11.7",
|
|
@@ -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.67.
|
|
61
|
-
"@modern-js/devtools-kit": "2.67.
|
|
62
|
-
"@modern-js/
|
|
63
|
-
"@modern-js/
|
|
64
|
-
"@modern-js/
|
|
65
|
-
"@modern-js/types": "2.67.
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
60
|
+
"@modern-js/app-tools": "2.67.7",
|
|
61
|
+
"@modern-js/devtools-kit": "2.67.7",
|
|
62
|
+
"@modern-js/runtime": "2.67.7",
|
|
63
|
+
"@modern-js/tsconfig": "2.67.7",
|
|
64
|
+
"@modern-js/plugin-proxy": "2.67.7",
|
|
65
|
+
"@modern-js/types": "2.67.7",
|
|
66
|
+
"@modern-js/utils": "2.67.7",
|
|
67
|
+
"@scripts/jest-config": "2.66.0"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"cookie-es": "^1.0.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["488"],{88640:function(e,r,t){t.d(r,{Z:()=>n});let n=function(){for(var e,r,t=0,n="";t<arguments.length;)(e=arguments[t++])&&(r=function e(r){var t,n,o="";if("string"==typeof r||"number"==typeof r)o+=r;else if("object"==typeof r)if(Array.isArray(r))for(t=0;t<r.length;t++)r[t]&&(n=e(r[t]))&&(o&&(o+=" "),o+=n);else for(t in r)r[t]&&(o&&(o+=" "),o+=t);return o}(e))&&(n&&(n+=" "),n+=r);return n}},8242:function(e,r,t){t.d(r,{x:()=>p,Z:()=>u});var n=t(34202),o=t(25176),a=t(30309),s=t(86834),i=t(46722),c=t(49497),l=t(88640),d=t(6800);let u=e=>{let{children:r,className:t,variant:c,clickable:u=!1,selected:p=!1,inset:h=!1}=e,x=(0,a._)(e,["children","className","variant","clickable","selected","inset"]);return(0,s.jsx)(i.x,(0,o._)((0,n._)({},x),{"data-variant":null!=c?c:"","data-clickable":u,"data-selected":p,"data-inset":h,className:(0,l.Z)(d.Z.card,t),children:r}))},p=e=>(0,s.jsx)(c.k,(0,n._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},9105:function(e,r,t){t.r(r),t.d(r,{default:()=>ei});var n,o=t(34202),a=t(25176),s=t(86834),i=t(8242),c=t(31330),l=t(5872),d=t(94193),u=t(63145),p=t(11039),h=t(65021),x=t(25698),m=t(93157),f=t(17019),g=t(61938),j=t(56988),v=t(31355),b="HoverCard",[C,y]=(0,p.b)(b,[m.D7]),w=(0,m.D7)(),[k,N]=C(b),E=e=>{let{__scopeHoverCard:r,children:t,open:n,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:c=300}=e,d=w(r),u=l.useRef(0),p=l.useRef(0),x=l.useRef(!1),f=l.useRef(!1),[g=!1,j]=(0,h.T)({prop:n,defaultProp:o,onChange:a}),v=l.useCallback(()=>{clearTimeout(p.current),u.current=window.setTimeout(()=>j(!0),i)},[i,j]),b=l.useCallback(()=>{clearTimeout(u.current),x.current||f.current||(p.current=window.setTimeout(()=>j(!1),c))},[c,j]),C=l.useCallback(()=>j(!1),[j]);return l.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(p.current)},[]),(0,s.jsx)(k,{scope:r,open:g,onOpenChange:j,onOpen:v,onClose:b,onDismiss:C,hasSelectionRef:x,isPointerDownOnContentRef:f,children:(0,s.jsx)(m.fC,{...d,children:t})})};E.displayName=b;var R="HoverCardTrigger",T=l.forwardRef((e,r)=>{let{__scopeHoverCard:t,...n}=e,o=N(R,t),a=w(t);return(0,s.jsx)(m.ee,{asChild:!0,...a,children:(0,s.jsx)(j.WV.a,{"data-state":o.open?"open":"closed",...n,ref:r,onPointerEnter:(0,u.M)(e.onPointerEnter,M(o.onOpen)),onPointerLeave:(0,u.M)(e.onPointerLeave,M(o.onClose)),onFocus:(0,u.M)(e.onFocus,o.onOpen),onBlur:(0,u.M)(e.onBlur,o.onClose),onTouchStart:(0,u.M)(e.onTouchStart,e=>e.preventDefault())})})});T.displayName=R;var P="HoverCardPortal",[S,_]=C(P,{forceMount:void 0}),D=e=>{let{__scopeHoverCard:r,forceMount:t,children:n,container:o}=e,a=N(P,r);return(0,s.jsx)(S,{scope:r,forceMount:t,children:(0,s.jsx)(g.z,{present:t||a.open,children:(0,s.jsx)(f.h,{asChild:!0,container:o,children:n})})})};D.displayName=P;var z="HoverCardContent",O=l.forwardRef((e,r)=>{let t=_(z,e.__scopeHoverCard),{forceMount:n=t.forceMount,...o}=e,a=N(z,e.__scopeHoverCard);return(0,s.jsx)(g.z,{present:n||a.open,children:(0,s.jsx)(H,{"data-state":a.open?"open":"closed",...o,onPointerEnter:(0,u.M)(e.onPointerEnter,M(a.onOpen)),onPointerLeave:(0,u.M)(e.onPointerLeave,M(a.onClose)),ref:r})})});O.displayName=z;var H=l.forwardRef((e,r)=>{let{__scopeHoverCard:t,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:c,...d}=e,p=N(z,t),h=w(t),f=l.useRef(null),g=(0,x.e)(r,f),[j,b]=l.useState(!1);return l.useEffect(()=>{if(j){let e=document.body;return n=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=n,e.style.webkitUserSelect=n}}},[j]),l.useEffect(()=>{if(f.current){let e=()=>{b(!1),p.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(p.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),p.hasSelectionRef.current=!1,p.isPointerDownOnContentRef.current=!1}}},[p.isPointerDownOnContentRef,p.hasSelectionRef]),l.useEffect(()=>{f.current&&(function(e){let r=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;t.nextNode();)r.push(t.currentNode);return r})(f.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,s.jsx)(v.XB,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:c,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:(0,u.M)(i,e=>{e.preventDefault()}),onDismiss:p.onDismiss,children:(0,s.jsx)(m.VY,{...h,...d,onPointerDown:(0,u.M)(d.onPointerDown,e=>{e.currentTarget.contains(e.target)&&b(!0),p.hasSelectionRef.current=!1,p.isPointerDownOnContentRef.current=!0}),ref:g,style:{...d.style,userSelect:j?"text":void 0,WebkitUserSelect:j?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function M(e){return r=>"touch"===r.pointerType?void 0:e()}l.forwardRef((e,r)=>{let{__scopeHoverCard:t,...n}=e,o=w(t);return(0,s.jsx)(m.Eh,{...o,...n,ref:r})}).displayName="HoverCardArrow";var F=t(64808),L=t(69513),U=t(45909);let W={...F.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},width:U.n.width,minWidth:U.n.minWidth,maxWidth:{...U.n.maxWidth,default:"480px"},...L.F};var B=t(76524);let A=e=>{if(!l.isValidElement(e))throw Error(`Expected a single React Element child, but got: ${l.Children.toArray(e).map(e=>"object"==typeof e&&"type"in e&&"string"==typeof e.type?e.type:typeof e).join(", ")}`);return e};var Z=t(87420);let I=e=>l.createElement(E,{closeDelay:150,openDelay:200,...e});I.displayName="HoverCard.Root";let V=l.forwardRef(({children:e,className:r,...t},n)=>l.createElement(T,{ref:n,className:d("rt-HoverCardTrigger",r),...t,asChild:!0},A(e)));V.displayName="HoverCard.Trigger";let J=l.forwardRef((e,r)=>{let{className:t,forceMount:n,container:o,...a}=(0,B.y)(e,W);return l.createElement(D,{container:o,forceMount:n},l.createElement(Z.Q2,{asChild:!0},l.createElement(O,{align:"start",sideOffset:8,collisionPadding:10,...a,ref:r,className:d("rt-PopperContent","rt-HoverCardContent",t)})))});J.displayName="HoverCard.Content";var X=t(46722),Y=t(52701),q=t(37970),G=t(49497),K=t(8047),Q=t(88640),$=t(52493),ee=t.n($),er=t(13190),et=t(9014),en=t(20610);let eo={container:"container-tngPYT","primary-card":"primary-card-wrJYru",primaryCard:"primary-card-wrJYru","info-card":"info-card-vFI4Ue",infoCard:"info-card-vFI4Ue","count-card":"count-card-nPDp4G",countCard:"count-card-nPDp4G","compile-cost-card":"compile-cost-card-HAKRNe",compileCostCard:"compile-cost-card-HAKRNe",logo:"logo-L2qUVd","count-text":"count-text-SERJmy",countText:"count-text-SERJmy","error-item":"error-item-seXl02",errorItem:"error-item-seXl02","text-truncation":"text-truncation-AwJ4FU",textTruncation:"text-truncation-AwJ4FU","cost-box":"cost-box-rUPGBo",costBox:"cost-box-rUPGBo","cost-bar":"cost-bar-g3W7tq",costBar:"cost-bar-g3W7tq","cost-label":"cost-label-lYCgOV",costLabel:"cost-label-lYCgOV",heading:"heading-_UWATX"},ea=t.p+"static/image/rsdoctor-large.5549d958.png",es=e=>{let{cost:r}=e,[t,n]=r.name.split("->"),[o,a]=[t,n].map(e=>["bootstrap","done"].includes(e)?void 0:"".concat("https://webpack.js.org/api/compiler-hooks","#").concat(e.toLowerCase())),i=r.costs>1e3?"".concat((r.costs/1e3).toFixed(2),"s"):"".concat(r.costs,"ms");return(0,s.jsxs)(I,{children:[(0,s.jsx)(V,{children:(0,s.jsxs)(X.x,{className:eo.costBox,style:{flex:r.costs},children:[(0,s.jsxs)(Y.x,{size:"1",color:"gray",className:(0,Q.Z)(eo.textTruncation,eo.costLabel),children:[ee().startCase(r.title),"(",i,")"]}),(0,s.jsx)(X.x,{className:eo.costBar})]})}),(0,s.jsx)(J,{size:"1",children:(0,s.jsxs)(Y.x,{size:"1",color:"gray",children:[(0,s.jsx)(q.r,{target:"_blank",href:o,children:t}),(0,s.jsxs)(Y.x,{children:[" \xb7\xb7\xb7",i,"\xb7\xb7\xb7 "]}),(0,s.jsx)(q.r,{target:"_blank",href:a,children:n})]})})]})},ei=()=>{var e,r,t,n,l,d;let u=(0,c.k)(),{doctor:p,dependencies:h,context:{def:x}}=(0,en.R)(u);if(!p)throw TypeError("Doctor is not available");let m=Object.keys(h).find(e=>e.startsWith("@web-doctor/"))?"Web Doctor":"Rsdoctor",f=null!=(d=null!=(l=null!=(n=null!=(t=null!=(r=null!=(e=h["@web-doctor/webpack-plugin(builder)"])?e:h["@web-doctor/rspack-plugin(builder)"])?r:h["@web-doctor/webpack-plugin"])?t:h["@web-doctor/rspack-plugin"])?n:h["@rsdoctor/rspack-plugin"])?l:h["@rsdoctor/webpack-plugin"])?d:h["@rsdoctor/core"],g=ee()(p.summary.costs).sortBy(["startAt","name","costs"]).sortedUniqBy("name").cloneDeep().map(e=>"bootstrap->beforeCompile"===e.name?(0,a._)((0,o._)({},e),{title:"prepare"}):"beforeCompile->afterCompile"===e.name?(0,a._)((0,o._)({},e),{title:"compile"}):"afterCompile->done"===e.name?(0,a._)((0,o._)({},e),{title:"optimize"}):(0,a._)((0,o._)({},e),{title:"unknown"})),j=ee().groupBy(p.errors,"description");return(0,s.jsx)(G.k,{direction:"column",align:"center",p:"4",children:(0,s.jsxs)(G.k,{wrap:"wrap",gap:"4",mb:"8",justify:"center",className:eo.container,children:[(0,s.jsx)(i.Z,{variant:"indicate",className:eo.primaryCard,children:(0,s.jsx)(Z.Q2,{appearance:"light",hasBackground:!1,asChild:!0,children:(0,s.jsxs)(i.x,{children:[(0,s.jsx)(K.X,{as:"h1",color:"gray",className:eo.heading,children:m}),(0,s.jsx)(G.k,{gap:"2",children:(0,s.jsx)("button",{type:"button",children:f?"v".concat(f):"Unknown"})}),(0,s.jsxs)(q.r,{href:x.doctor.quickStart,color:"gray",size:"1",underline:"always",target:"_blank",rel:"noopener noreferrer",children:["Launch ",m," with complete features."]})]})})}),(0,s.jsx)(i.Z,{variant:"indicate",className:eo.infoCard,children:(0,s.jsxs)(G.k,{justify:"between",gap:"2",align:"center",height:"100%",children:[(0,s.jsxs)(X.x,{children:[(0,s.jsx)(Y.x,{color:"gray",children:"Visit our website"}),(0,s.jsx)(G.k,{align:"center",asChild:!0,children:(0,s.jsxs)(q.r,{href:x.doctor.home,target:"_blank",rel:"noopener noreferrer",children:[(0,s.jsx)(er.WRS,{}),(0,s.jsx)(Y.x,{children:(0,et.Lk)(x.doctor.home).host})]})})]}),(0,s.jsx)("img",{className:eo.logo,src:ea})]})}),(0,s.jsx)(i.Z,{variant:"indicate",className:eo.countCard,children:(0,s.jsxs)(i.x,{children:[(0,s.jsxs)(Y.x,{className:eo.countText,size:"1",children:[(0,s.jsx)(er.bMg,{})," ",p.numModules," modules"]}),(0,s.jsxs)(Y.x,{className:eo.countText,size:"1",children:[(0,s.jsx)(er.hsV,{})," ",p.numPackages," packages"]}),(0,s.jsxs)(Y.x,{className:eo.countText,size:"1",children:[(0,s.jsx)(er.DlH,{})," ",p.numChunks," chunks"]})]})}),(0,s.jsx)(i.Z,{variant:"indicate",className:eo.compileCostCard,children:(0,s.jsxs)(i.x,{children:[(0,s.jsx)(G.k,{asChild:!0,align:"center",gap:"1",children:(0,s.jsxs)(K.X,{as:"h3",size:"2",color:"gray",children:[(0,s.jsx)(er.h4y,{}),"Compile Overall"]})}),(0,s.jsx)(G.k,{width:"100%",gap:"1",children:g.map(e=>(0,s.jsx)(es,{cost:e},e.name))})]})}),(0,s.jsx)(i.Z,{variant:"indicate",width:"100%",children:(0,s.jsxs)(i.x,{children:[(0,s.jsxs)(Y.x,{weight:"bold",size:"1",color:"gray",children:["Found ",ee().size(j)," ",ee().size(j)>1?"errors":"error"]}),Object.entries(j).map(e=>{let[r,t]=e;return(0,s.jsxs)(X.x,{className:eo.errorItem,children:[(0,s.jsx)(er.Sbn,{className:eo.errorIcon})," ",(0,s.jsx)(Y.x,{size:"1",className:eo.textTruncation,children:r}),t.length>1&&(0,s.jsxs)(Y.x,{size:"1",className:eo.errorCount,children:["(x",t.length,")"]})]},r)})]})})]})})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["161"],{88640:function(e,r,s){s.d(r,{Z:()=>a});let a=function(){for(var e,r,s=0,a="";s<arguments.length;)(e=arguments[s++])&&(r=function e(r){var s,a,n="";if("string"==typeof r||"number"==typeof r)n+=r;else if("object"==typeof r)if(Array.isArray(r))for(s=0;s<r.length;s++)r[s]&&(a=e(r[s]))&&(n&&(n+=" "),n+=a);else for(s in r)r[s]&&(n&&(n+=" "),n+=s);return n}(e))&&(a&&(a+=" "),a+=r);return a}},8242:function(e,r,s){s.d(r,{x:()=>x,Z:()=>h});var a=s(34202),n=s(25176),i=s(30309),l=s(86834),t=s(46722),c=s(49497),o=s(88640),d=s(6800);let h=e=>{let{children:r,className:s,variant:c,clickable:h=!1,selected:x=!1,inset:p=!1}=e,j=(0,i._)(e,["children","className","variant","clickable","selected","inset"]);return(0,l.jsx)(t.x,(0,n._)((0,a._)({},j),{"data-variant":null!=c?c:"","data-clickable":h,"data-selected":x,"data-inset":p,className:(0,o.Z)(d.Z.card,s),children:r}))},x=e=>(0,l.jsx)(c.k,(0,a._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},37897:function(e,r,s){s.r(r),s.d(r,{default:()=>w});var a=s(86834),n=s(49497),i=s(87420),l=s(8047),t=s(52701),c=s(46722),o=s(37970),d=s(5872),h=s(94193),x=s(39021);let p={...s(64808).C,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5","6","7","8","9"],responsive:!0}};var j=s(76524),g=s(78839);let u=d.forwardRef((e,r)=>{let{asChild:s,className:a,...n}=(0,j.y)(e,p,g.E),i=s?x.fC:"kbd";return d.createElement(i,{...n,ref:r,className:h("rt-reset","rt-Kbd",a)})});u.displayName="Kbd";var f=s(13190),m=s(9014),k=s(20610);s(6800);var y=s(8242),b=s(31330);let v={webpack:"webpack",rspack:"@rspack/core"},w=()=>{let e=(0,b.k)(),{version:r}=(0,k.R)(e),s=(0,k.R)(e.framework).context,{def:d}=(0,k.R)(e).context,h=(0,k.R)(e.dependencies),x=(0,k.R)(e.builder).context,{compileDuration:p}=(0,k.R)(e).performance,j=window.navigator.userAgent.includes("Mac OS"),{toolsType:g}=s;if("app-tools"!==g)throw Error();let w=d.packages.appTools,z=h[w],{bundlerType:N}=x,Z=v[N],C=h[Z];return(0,a.jsxs)(n.k,{direction:"column",align:"center",children:[(0,a.jsxs)(n.k,{wrap:"wrap",gap:"4",mb:"8",justify:"center",className:"container-p5QVGS",children:[(0,a.jsx)(y.Z,{variant:"indicate",className:"primary-card-plqY_q",children:(0,a.jsx)(i.Q2,{appearance:"dark",hasBackground:!1,asChild:!0,children:(0,a.jsxs)(y.x,{children:[(0,a.jsx)(l.X,{as:"h1",className:"heading-hVMxZh",children:"DevTools"}),(0,a.jsx)(n.k,{gap:"2",children:(0,a.jsxs)("button",{type:"button",children:["v",r]})}),(0,a.jsxs)(t.x,{as:"p",size:"1",children:["Powered by ",w,"@",z]})]})})}),(0,a.jsx)(y.Z,{variant:"indicate",className:"info-card-rAI3LL",children:(0,a.jsxs)(n.k,{justify:"between",gap:"3",align:"center",height:"100%",children:[(0,a.jsxs)(c.x,{children:[(0,a.jsx)(t.x,{color:"gray",children:"Visit our website"}),(0,a.jsx)(n.k,{align:"center",asChild:!0,children:(0,a.jsxs)(o.r,{href:d.announcement.fallback,target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)(f.WRS,{}),(0,a.jsx)(t.x,{children:(0,m.Lk)(d.announcement.fallback).host})]})})]}),(0,a.jsx)(f.vrJ,{size:"50",color:"var(--gray-6)"})]})}),(0,a.jsx)(y.Z,{variant:"indicate",className:"plugin-card-RzXrFC",children:(0,a.jsxs)(n.k,{align:"center",justify:"between",height:"100%",gap:"6",children:[(0,a.jsxs)(c.x,{children:[(0,a.jsx)(t.x,{as:"p",size:"8",weight:"bold",style:{color:"var(--gray-11)"},mb:"2",children:s.plugins.length}),(0,a.jsx)(t.x,{as:"p",size:"1",color:"gray",children:"Framework Plugins"})]}),(0,a.jsx)(f.hjZ,{size:"50",color:"var(--gray-6)"})]})}),(0,a.jsx)(y.Z,{variant:"indicate",className:"compile-time-card-_p7KQL",children:(0,a.jsxs)(n.k,{align:"center",justify:"between",height:"100%",gap:"6",children:[(0,a.jsxs)(c.x,{children:[(0,a.jsxs)(t.x,{as:"p",size:"8",weight:"bold",style:{color:"var(--gray-11)"},children:[(p/1e3).toFixed(2),"s"]}),(0,a.jsxs)(t.x,{as:"p",size:"1",color:"gray",children:["Compiled in ",Z,"@",C]})]}),(0,a.jsx)(f.XoX,{size:"50",color:"var(--gray-6)"})]})})]}),(0,a.jsxs)(n.k,{align:"center",className:"bottom-tip-K062Gu",children:[(0,a.jsx)(t.x,{color:"gray",size:"2",children:"Use"}),(0,a.jsxs)(u,{mx:"2",children:["Shift + ",j?"Opt":"Alt"," + D"]}),(0,a.jsx)(t.x,{color:"gray",size:"2",children:"to open DevTools"})]})]})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["244"],{88640:function(e,t,a){a.d(t,{Z:()=>n});let n=function(){for(var e,t,a=0,n="";a<arguments.length;)(e=arguments[a++])&&(t=function e(t){var a,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(a=0;a<t.length;a++)t[a]&&(n=e(t[a]))&&(r&&(r+=" "),r+=n);else for(a in t)t[a]&&(r&&(r+=" "),r+=a);return r}(e))&&(n&&(n+=" "),n+=t);return n}},8242:function(e,t,a){a.d(t,{x:()=>p,Z:()=>u});var n=a(34202),r=a(25176),l=a(30309),s=a(86834),i=a(46722),o=a(49497),c=a(88640),d=a(6800);let u=e=>{let{children:t,className:a,variant:o,clickable:u=!1,selected:p=!1,inset:f=!1}=e,m=(0,l._)(e,["children","className","variant","clickable","selected","inset"]);return(0,s.jsx)(i.x,(0,r._)((0,n._)({},m),{"data-variant":null!=o?o:"","data-clickable":u,"data-selected":p,"data-inset":f,className:(0,c.Z)(d.Z.card,a),children:t}))},p=e=>(0,s.jsx)(o.k,(0,n._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},94513:function(e,t,a){a.r(t),a.d(t,{default:()=>b});var n=a(34202),r=a(25176),l=a(30309),s=a(86834),i=a(8242),o=a(18229),c=a(46722),d=a(5872),u=a(13190),p=a(53068);let f=e=>{let{title:t,content:a,children:i}=e,d=(0,l._)(e,["title","content","children"]);return(0,s.jsxs)(o.fC,(0,r._)((0,n._)({},d),{className:p.Z.container,children:[t&&(0,s.jsx)(o.Dx,{children:t}),(0,s.jsx)(o.dk,{children:a}),i&&(0,s.jsx)(o.aU,{altText:"",asChild:!0,children:i}),(0,s.jsx)(c.x,{flexGrow:"1"}),(0,s.jsx)(o.x8,{className:p.Z.close,"aria-label":"Close",children:(0,s.jsx)(u.cu3,{})})]}))},m=e=>{let{duration:t=5e3}=e,a=(0,l._)(e,["duration"]),[i,c]=(0,d.useState)(!1),u=(0,s.jsxs)(d.Fragment,{children:[(0,s.jsx)(f,(0,r._)((0,n._)({},a),{open:i,onOpenChange:c})),(0,s.jsx)(o.l_,{className:p.Z.viewport})]}),m=(0,d.useRef)(null);return{element:u,open:()=>{c(!0),m.current&&clearTimeout(m.current),m.current=null,t&&(m.current=window.setTimeout(()=>c(!1),t))}}};var h=a(31330),y=a(49607),g=a(49497),x=a(67251),j=a(85254),v=a(52701),N=a(85462),w=a(41839),C=a(21441);let k=e=>{let{onCopyAction:t,onOpenAction:a,onApplyAction:i,onPasteAction:o}=e,c=(0,l._)(e,["onCopyAction","onOpenAction","onApplyAction","onPasteAction"]);return(0,s.jsxs)(g.k,(0,r._)((0,n._)({position:"relative",gap:"3",height:"var(--space-5)",align:"center"},c),{children:[(0,s.jsx)(x.u,{content:"Copy as Data URL",delayDuration:200,children:(0,s.jsx)(j.h,{onClick:t,variant:"ghost",color:"gray",children:(0,s.jsx)(u.oiB,{})})}),(0,s.jsx)(x.u,{content:"Paste from Data URL",delayDuration:200,children:(0,s.jsx)(j.h,{onClick:o,variant:"ghost",color:"gray",children:(0,s.jsx)(u.MK7,{})})}),(0,s.jsx)(x.u,{content:"Open File",delayDuration:200,children:(0,s.jsx)(j.h,{onClick:a,variant:"ghost",color:"gray",children:(0,s.jsx)(u.g1w,{})})}),(0,s.jsx)(x.u,{content:"Apply Preset",delayDuration:200,children:(0,s.jsx)(j.h,{onClick:i,variant:"ghost",color:"gray",children:(0,s.jsx)(u.VyF,{})})})]}))},E=async e=>{let t={cookie:{},localStorage:{},sessionStorage:{}};for(let a of C.dR){let n=e[a];n&&Object.assign(t[a],n)}return await (0,C.l5)(t)},S=e=>{let{title:t,records:a,color:o}=e,c=(0,l._)(e,["title","records","color"]);return(0,s.jsx)(i.Z,(0,r._)((0,n._)({asChild:!0},c),{children:(0,s.jsxs)(g.k,{direction:"column",gap:"2",children:[(0,s.jsx)(v.x,{size:"1",weight:"bold",children:t}),(0,s.jsxs)(g.k,{width:"100%",wrap:"wrap",align:"start",gap:"2",children:[0===a.length&&(0,s.jsx)(N.C,{color:"gray",children:"Empty"}),a.map(e=>(0,s.jsxs)(N.C,{color:o,children:[e.key,": ",e.value]},e.id))]})]})}))},b=()=>{let{revalidate:e}=(0,y.xW)(),t=(0,h.k)(),{server:a}=t;(0,d.useEffect)(()=>(0,w.Ld)(t,e),[]);let n=(0,y.f_)(),r=[...(0,C.SR)(n,"cookie"),...(0,C.SR)(n,"localStorage"),...(0,C.SR)(n,"sessionStorage")],l=m({content:"\uD83D\uDD25 Fired"}),i=m({content:"\uD83D\uDCCB Copied"}),o=m({content:"\uD83D\uDCCB Pasted"}),u=async()=>{await E(n),l.open(),e()},p=async()=>{let e=new Blob([JSON.stringify(n)],{type:"application/json"}),t=new FileReader;t.readAsDataURL(e);let a=await new Promise(e=>{t.onload=t=>{var a,n,r;return e(null!=(r=null==(n=t.target)||null==(a=n.result)?void 0:a.toString())?r:null)}});a?(navigator.clipboard.writeText(a),i.open()):console.error("Failed to copy preset as data URL")},f=async()=>{a&&(await a.remote.pasteStoragePreset(n),o.open())};return(0,s.jsxs)(g.k,{direction:"column",gap:"2",children:[(0,s.jsxs)(g.k,{flexGrow:"0",px:"2",gap:"2",justify:"between",align:"center",width:"100%",children:[(0,s.jsx)(c.x,{flexShrink:"0",className:"text-ellipsis-sg296B",children:(0,s.jsx)(v.x,{size:"1",weight:"bold",color:"gray",children:n.name})}),(0,s.jsx)(k,{flexShrink:"0",flexGrow:"0",px:"2",justify:"end",onCopyAction:p,onPasteAction:f,onOpenAction:()=>null==a?void 0:a.remote.open(n.filename),onApplyAction:u})]}),(0,s.jsx)(c.x,{flexGrow:"1",pb:"2",pr:"2",style:{overflowY:"scroll"},children:(0,s.jsxs)(g.k,{direction:"column",gap:"2",children:[(0,s.jsx)(S,{title:"Cookie",records:r.filter(e=>"cookie"===e.type),color:"yellow"}),(0,s.jsx)(S,{title:"Local Storage",records:r.filter(e=>"localStorage"===e.type),color:"green"}),(0,s.jsx)(S,{title:"Session Storage",records:r.filter(e=>"sessionStorage"===e.type),color:"blue"})]})}),l.element,i.element,o.element]})}},40838:function(e,t,a){a.d(t,{Y:()=>j});var n=a(5872),r=a(94193),l=a(39021),s=a(64808),i=a(46981),o=a(63583),c=a(26101);let d={...s.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","solid","soft","surface","outline","ghost"],default:"solid"},...i.o3,...o.K,...c.I,loading:{type:"boolean",className:"rt-loading",default:!1}};var u=a(49497);let p={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},loading:{type:"boolean",default:!0}};var f=a(76524),m=a(78839);let h=n.forwardRef((e,t)=>{let{className:a,children:l,loading:s,...i}=(0,f.y)(e,p,m.E);if(!s)return l;let o=n.createElement("span",{...i,ref:t,className:r("rt-Spinner",a)},n.createElement("span",{className:"rt-SpinnerLeaf"}),n.createElement("span",{className:"rt-SpinnerLeaf"}),n.createElement("span",{className:"rt-SpinnerLeaf"}),n.createElement("span",{className:"rt-SpinnerLeaf"}),n.createElement("span",{className:"rt-SpinnerLeaf"}),n.createElement("span",{className:"rt-SpinnerLeaf"}),n.createElement("span",{className:"rt-SpinnerLeaf"}),n.createElement("span",{className:"rt-SpinnerLeaf"}));return void 0===l?o:n.createElement(u.k,{asChild:!0,position:"relative",align:"center",justify:"center"},n.createElement("span",null,n.createElement("span",{"aria-hidden":!0,style:{display:"contents",visibility:"hidden"},inert:void 0},l),n.createElement(u.k,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},n.createElement("span",null,o))))});h.displayName="Spinner";var y=a(55147);let g=y.f;function x(e){switch(e){case"1":return"1";case"2":case"3":return"2";case"4":return"3"}}y.f;let j=n.forwardRef((e,t)=>{let{size:a=d.size.default}=e,{className:s,children:i,asChild:o,color:c,radius:p,disabled:y=e.loading,...j}=(0,f.y)(e,d,m.E),v=o?l.fC:"button";return n.createElement(v,{"data-disabled":y||void 0,"data-accent-color":c,"data-radius":p,...j,ref:t,className:r("rt-reset","rt-BaseButton",s),disabled:y},e.loading?n.createElement(n.Fragment,null,n.createElement("span",{style:{display:"contents",visibility:"hidden"},"aria-hidden":!0},i),n.createElement(g,null,i),n.createElement(u.k,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},n.createElement("span",null,n.createElement(h,{size:function(e,t){if(void 0!==e)return"string"==typeof e?t(e):Object.fromEntries(Object.entries(e).map(([e,a])=>[e,t(a)]))}(a,x)})))):i)});j.displayName="BaseButton"},85462:function(e,t,a){a.d(t,{C:()=>f});var n=a(5872),r=a(94193),l=a(39021),s=a(64808),i=a(46981),o=a(63583),c=a(26101);let d={...s.C,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.o3,...o.K,...c.I};var u=a(76524),p=a(78839);let f=n.forwardRef((e,t)=>{let{asChild:a,className:s,color:i,radius:o,...c}=(0,u.y)(e,d,p.E),f=a?l.fC:"span";return n.createElement(f,{"data-accent-color":i,"data-radius":o,...c,ref:t,className:r("rt-reset","rt-Badge",s)})});f.displayName="Badge"},85254:function(e,t,a){a.d(t,{h:()=>s});var n=a(5872),r=a(94193),l=a(40838);let s=n.forwardRef(({className:e,...t},a)=>n.createElement(l.Y,{...t,ref:a,className:r("rt-IconButton",e)}));s.displayName="IconButton"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["470"],{13657:function(e,t,a){a.d(t,{Z:()=>l});let l={container:"container-ewltyx","side-panel":"side-panel-bdvL2J",sidePanel:"side-panel-bdvL2J","overflow-badge":"overflow-badge-jy83Ta",overflowBadge:"overflow-badge-jy83Ta","preview-badge-list":"preview-badge-list-gW0J6X",previewBadgeList:"preview-badge-list-gW0J6X","btn-create-preset":"btn-create-preset-hoeILU",btnCreatePreset:"btn-create-preset-hoeILU",divider:"divider-lbRk1F","text-ellipsis":"text-ellipsis-F0lpeD",textEllipsis:"text-ellipsis-F0lpeD",badge:"badge-V1CqD5",scrollable:"scrollable-HHlcgf"}},88640:function(e,t,a){a.d(t,{Z:()=>l});let l=function(){for(var e,t,a=0,l="";a<arguments.length;)(e=arguments[a++])&&(t=function e(t){var a,l,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(a=0;a<t.length;a++)t[a]&&(l=e(t[a]))&&(r&&(r+=" "),r+=l);else for(a in t)t[a]&&(r&&(r+=" "),r+=a);return r}(e))&&(l&&(l+=" "),l+=t);return l}},8242:function(e,t,a){a.d(t,{x:()=>h,Z:()=>u});var l=a(34202),r=a(25176),s=a(30309),i=a(86834),n=a(46722),o=a(49497),c=a(88640),d=a(6800);let u=e=>{let{children:t,className:a,variant:o,clickable:u=!1,selected:h=!1,inset:f=!1}=e,g=(0,s._)(e,["children","className","variant","clickable","selected","inset"]);return(0,i.jsx)(n.x,(0,r._)((0,l._)({},g),{"data-variant":null!=o?o:"","data-clickable":u,"data-selected":h,"data-inset":f,className:(0,c.Z)(d.Z.card,a),children:t}))},h=e=>(0,i.jsx)(o.k,(0,l._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},34372:function(e,t,a){let l;a.r(t),a.d(t,{default:()=>C});var r=a(34202),s=a(25176),i=a(30309),n=a(86834),o=a(8242),c=a(31330),d=a(49607),u=a(49497),h=a(52701),f=a(85462),g=a(46722),p=a(52493),x=a.n(p),m=a(13190),v=a(20610),j=a(41839);Symbol();var y=a(13657),b=a(21441);let k=e=>{let{selected:t,to:a}=e,l=(0,i._)(e,["selected","to"]),s=(0,d.s0)(),c=(0,d.bS)(null!=a?a:"");return(0,n.jsx)(o.Z,{variant:"small",selected:null!=t?t:!!c,clickable:!0,asChild:!0,onClick:()=>a&&s(a),children:(0,n.jsx)(u.k,(0,r._)({},l))})},w=e=>{let{preset:t,highlight:a}=e,l=(0,i._)(e,["preset","highlight"]),o=!t.filename.match(/[/\\]node_modules[/\\]/),c=null;return a&&(c=(0,n.jsx)(h.x,{size:"1",color:"red",asChild:!0,children:(0,n.jsx)(m.XC2,{})})),(0,n.jsxs)(k,(0,s._)((0,r._)({direction:"column"},l),{children:[(0,n.jsxs)(h.x,{size:"1",weight:"bold",as:"p",mb:"2",children:[t.name," ",o||(0,n.jsx)(h.x,{size:"1",color:"gray",children:"*"}),c]}),(0,n.jsx)(u.k,{align:"center",children:(0,n.jsxs)(u.k,{className:y.Z.previewBadgeList,children:[0===t.items.length&&(0,n.jsx)(f.C,{color:"gray",children:"Empty"}),t.items.map(e=>(0,n.jsxs)(f.C,{color:b.xq[e.type],children:[e.key,": ",e.value]},e.id))]})})]}))},C=()=>{let e=(0,c.k)(),{server:t}=e,{storagePresets:a}=(0,v.R)(e).context,i=(0,d.f_)(),o={cookie:(0,r._)({},i.cookie.client,i.cookie.server),localStorage:i.localStorage,sessionStorage:i.sessionStorage},f=(0,d.s0)(),p={cookie:x()(a).flatMap(e=>x().keys(e.cookie)).countBy().value(),localStorage:x()(a).flatMap(e=>x().keys(e.localStorage)).countBy().value(),sessionStorage:x()(a).flatMap(e=>x().keys(e.sessionStorage)).countBy().value()},C=a.map(e=>(0,s._)((0,r._)({},e),{items:x()((0,b.f)(e)).sortBy(e=>{var t;return null!=(t=p[e.type][e.key])?t:0}).reverse().value()})),S=async()=>{if(!t)return;let{id:a}=await t.remote.createTemporaryStoragePreset(),r=function(e,t){let a=!0,r=new Set,s=new Map,i=()=>{a&&(a=!1,r.forEach(e=>e()),r.clear(),s.forEach(e=>e()),s.clear())},n=()=>{if(!a)return;r.forEach(e=>e()),r.clear();let t=new Set,i=l;l=r;try{let a=e(e=>(t.add(e),e));a&&r.add(a)}finally{l=i}s.forEach((e,a)=>{t.has(a)?t.delete(a):(s.delete(a),e())}),t.forEach(e=>{let t=(0,j.Ld)(e,n,void 0);s.set(e,t)})};return l&&l.add(i),n(),i}(t=>{let{storagePresets:l}=(0,j.CO)(t(e)).context;x().find(l,{id:a})&&(r(),f("/storage/preset/".concat(a)))})};return(0,n.jsxs)(u.k,{width:"100%",pt:"4",className:y.Z.container,children:[(0,n.jsxs)(u.k,{direction:"column",className:y.Z.sidePanel,children:[(0,n.jsxs)(k,{to:"/storage/preset",m:"2",align:"center",gap:"1",children:[(0,n.jsx)(h.x,{size:"1",weight:"bold",children:"Current Storage"}),(0,n.jsx)(h.x,{size:"1",color:"red",asChild:!0,children:(0,n.jsx)(m.XC2,{})})]}),(0,n.jsx)(g.x,{mx:"2",className:y.Z.divider}),(0,n.jsxs)(u.k,{p:"2",direction:"column",gap:"2",className:y.Z.scrollable,children:[C.map(e=>(0,n.jsx)(w,{to:"/storage/preset/".concat(e.id),preset:e,highlight:e.items.length>0&&x().isMatch(o,x().pick(e,["cookie","localStorage","sessionStorage"]))},e.id)),(0,n.jsx)(k,{justify:"center",align:"center",onClick:S,className:y.Z.btnCreatePreset,children:(0,n.jsx)(m.b9W,{})})]})]}),(0,n.jsx)(g.x,{width:"0",flexGrow:"1",height:"100%",flexShrink:"1",pt:"2",children:(0,n.jsx)(d.j3,{})})]})}},85462:function(e,t,a){a.d(t,{C:()=>f});var l=a(5872),r=a(94193),s=a(39021),i=a(64808),n=a(46981),o=a(63583),c=a(26101);let d={...i.C,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"},...n.o3,...o.K,...c.I};var u=a(76524),h=a(78839);let f=l.forwardRef((e,t)=>{let{asChild:a,className:i,color:n,radius:o,...c}=(0,u.y)(e,d,h.E),f=a?s.fC:"span";return l.createElement(f,{"data-accent-color":n,"data-radius":o,...c,ref:t,className:r("rt-reset","rt-Badge",i)})});f.displayName="Badge"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["146"],{13657:function(e,l,r){r.d(l,{Z:()=>t});let t={container:"container-ewltyx","side-panel":"side-panel-bdvL2J",sidePanel:"side-panel-bdvL2J","overflow-badge":"overflow-badge-jy83Ta",overflowBadge:"overflow-badge-jy83Ta","preview-badge-list":"preview-badge-list-gW0J6X",previewBadgeList:"preview-badge-list-gW0J6X","btn-create-preset":"btn-create-preset-hoeILU",btnCreatePreset:"btn-create-preset-hoeILU",divider:"divider-lbRk1F","text-ellipsis":"text-ellipsis-F0lpeD",textEllipsis:"text-ellipsis-F0lpeD",badge:"badge-V1CqD5",scrollable:"scrollable-HHlcgf"}},88640:function(e,l,r){r.d(l,{Z:()=>t});let t=function(){for(var e,l,r=0,t="";r<arguments.length;)(e=arguments[r++])&&(l=function e(l){var r,t,a="";if("string"==typeof l||"number"==typeof l)a+=l;else if("object"==typeof l)if(Array.isArray(l))for(r=0;r<l.length;r++)l[r]&&(t=e(l[r]))&&(a&&(a+=" "),a+=t);else for(r in l)l[r]&&(a&&(a+=" "),a+=r);return a}(e))&&(t&&(t+=" "),t+=l);return t}},8242:function(e,l,r){r.d(l,{x:()=>g,Z:()=>p});var t=r(34202),a=r(25176),s=r(30309),i=r(86834),o=r(46722),n=r(49497),c=r(88640),d=r(6800);let p=e=>{let{children:l,className:r,variant:n,clickable:p=!1,selected:g=!1,inset:f=!1}=e,u=(0,s._)(e,["children","className","variant","clickable","selected","inset"]);return(0,i.jsx)(o.x,(0,a._)((0,t._)({},u),{"data-variant":null!=n?n:"","data-clickable":p,"data-selected":g,"data-inset":f,className:(0,c.Z)(d.Z.card,r),children:l}))},g=e=>(0,i.jsx)(n.k,(0,t._)({gap:"2",height:"100%",justify:"center",direction:"column",align:"start"},e))},85797:function(e,l,r){r.r(l),r.d(l,{default:()=>b});var t=r(34202),a=r(25176),s=r(30309),i=r(86834),o=r(8242),n=r(49607),c=r(49497),d=r(52701),p=r(85462),g=r(46722),f=r(52493),u=r.n(f),x=r(13657);let h=e=>{let{title:l,records:r,color:n}=e,g=(0,s._)(e,["title","records","color"]);return(0,i.jsx)(o.Z,(0,a._)((0,t._)({asChild:!0},g),{children:(0,i.jsxs)(c.k,{direction:"column",gap:"2",children:[(0,i.jsx)(d.x,{size:"1",weight:"bold",children:l}),(0,i.jsxs)(c.k,{width:"100%",wrap:"wrap",align:"start",gap:"2",children:[0===r.length&&(0,i.jsx)(p.C,{color:"gray",children:"Empty"}),r.map(e=>(0,i.jsxs)(p.C,{color:n,className:x.Z.badge,children:[e.key,": ",e.value]},e.id))]})]})}))},b=()=>{let e=(0,n.f_)(),l=u().map(e.cookie.client,(e,l)=>({key:l,value:e,id:l})),r=u().map(e.cookie.server,(e,l)=>({key:l,value:e,id:l})),t=u().map(e.localStorage,(e,l)=>({key:l,value:e,id:l})),a=u().map(e.sessionStorage,(e,l)=>({key:l,value:e,id:l}));return(0,i.jsxs)(c.k,{direction:"column",gap:"2",height:"100%",flexShrink:"1",children:[(0,i.jsx)(c.k,{flexGrow:"0",px:"2",gap:"2",justify:"between",align:"center",width:"100%",children:(0,i.jsx)(g.x,{flexShrink:"0",className:x.Z.textEllipsis,children:(0,i.jsx)(d.x,{size:"1",weight:"bold",color:"gray",children:"Current Storage"})})}),(0,i.jsx)(g.x,{flexGrow:"1",pb:"2",pr:"2",className:x.Z.scrollable,children:(0,i.jsxs)(c.k,{direction:"column",gap:"2",children:[(0,i.jsx)(h,{title:"Cookie",records:l,color:"yellow"}),(0,i.jsx)(h,{title:"Cookie (HTTP Only)",records:r,color:"yellow"}),(0,i.jsx)(h,{title:"Local Storage",records:t,color:"green"}),(0,i.jsx)(h,{title:"Session Storage",records:a,color:"blue"})]})})]})}},85462:function(e,l,r){r.d(l,{C:()=>f});var t=r(5872),a=r(94193),s=r(39021),i=r(64808),o=r(46981),n=r(63583),c=r(26101);let d={...i.C,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"},...o.o3,...n.K,...c.I};var p=r(76524),g=r(78839);let f=t.forwardRef((e,l)=>{let{asChild:r,className:i,color:o,radius:n,...c}=(0,p.y)(e,d,g.E),f=r?s.fC:"span";return t.createElement(f,{"data-accent-color":o,"data-radius":n,...c,ref:l,className:a("rt-reset","rt-Badge",i)})});f.displayName="Badge"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["567"],{89320:function(n,t,e){e.d(t,{Z:()=>o});let o={link:"link-znMYnO",connector:"connector-BqtwBd"}},6800:function(n,t,e){e.d(t,{Z:()=>o});let o={card:"card-If0911"}},77962:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-WHe0d3"}},16425:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-tsQk3U",fab:"fab-_shO90",slideInFromRight:"slideInFromRight-cmflGC",logo:"logo-nXXNIB"}},58948:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-tcM8fB","close-button":"close-button-weoXpd",closeButton:"close-button-weoXpd",frame:"frame-PSYQgj",backdrop:"backdrop-SWoFLh"}},54755:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-uSZ85N",children:"children-cVMy6R"}},55433:function(n,t,e){e.d(t,{Z:()=>o});let o={loading:"loading-HrjYdW",rotate:"rotate-CPIjfB"}},26501:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-COzu4H"}},37677:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-SkRv4t"}},54706:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-e3dQes"}},21169:function(n,t,e){e.d(t,{Z:()=>o});let o={"input-pair":"input-pair-rQmmCj",inputPair:"input-pair-rQmmCj",actions:"actions-AIkunB"}},77013:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-e74VUa",trigger:"trigger-THjT7j",content:"content-Qso8ca",slideDown:"slideDown-Z9IIi_",slideUp:"slideUp-H_SR0p","url-text":"url-text-OqB5_M",urlText:"url-text-OqB5_M",mark:"mark-cUxPxy"}},5307:function(n,t,e){e.d(t,{Z:()=>o});let o={"endpoint-tag":"endpoint-tag-y0SEjj",endpointTag:"endpoint-tag-y0SEjj","shy-link":"shy-link-Xazm8H",shyLink:"shy-link-Xazm8H","endpoint-container":"endpoint-container-XVJeZy",endpointContainer:"endpoint-container-XVJeZy"}},48290:function(n,t,e){e.d(t,{Z:()=>o});let o={stats:"stats-cb58Fz"}},53068:function(n,t,e){e.d(t,{Z:()=>o});let o={container:"container-dWGOkz",slideIn:"slideIn-AQnKGk",hide:"hide-LUv_Hv",swipeOut:"swipeOut-ZTbSGG",viewport:"viewport-Owdzo8",close:"close-i8MeRu"}}}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|