@modern-js/devtools-client 2.48.3 → 2.48.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/html/client/index.html +3 -3
  2. package/dist/html/mount/index.html +3 -3
  3. package/dist/modern.config.json +4 -4
  4. package/dist/public/sw-proxy.js +1 -1
  5. package/dist/routes-manifest.json +64 -64
  6. package/dist/static/js/{610.d7cbe2d6.js → 623.95120cf9.js} +3 -3
  7. package/dist/static/js/{637.bb6142e6.js → 637.94b02786.js} +2 -2
  8. package/dist/static/js/async/447.510f52a0.js +2 -0
  9. package/dist/static/js/async/{447.de1c74b3.js.LICENSE.txt → 447.510f52a0.js.LICENSE.txt} +5 -5
  10. package/dist/static/js/async/client_context/builder/page.c824403f.js +2 -0
  11. package/dist/static/js/async/client_context/builder/{page.5c3ea615.js.LICENSE.txt → page.c824403f.js.LICENSE.txt} +6 -6
  12. package/dist/static/js/async/client_context/framework/page.e8f1d5c0.js +2 -0
  13. package/dist/static/js/async/client_context/framework/{page.0cc29303.js.LICENSE.txt → page.e8f1d5c0.js.LICENSE.txt} +6 -6
  14. package/dist/static/js/async/client_doctor/{page.676c5ee2.js → page.a87593b9.js} +2 -2
  15. package/dist/static/js/async/client_headers/editor/page.9ba55b99.js +2 -0
  16. package/dist/static/js/async/client_headers/editor/{page.0d45e366.js.LICENSE.txt → page.9ba55b99.js.LICENSE.txt} +13 -13
  17. package/dist/static/js/async/client_headers/{layout.12c73353.js → layout.874b19f6.js} +2 -2
  18. package/dist/static/js/async/client_overview/{page.4c10470c.js → page.f96cfdc3.js} +2 -2
  19. package/dist/static/js/async/client_pages/{layout.fc389a62.js → layout.a3501bd0.js} +2 -2
  20. package/dist/static/js/async/client_pages/page.af958361.js +2 -0
  21. package/dist/static/js/async/client_pages/{page.17318d21.js.LICENSE.txt → page.af958361.js.LICENSE.txt} +71 -71
  22. package/dist/static/js/{builder-runtime.6555dfa0.js → builder-runtime.485851b0.js} +1 -1
  23. package/dist/static/js/{client.a7f24cfe.js → client.a99bf1d1.js} +2 -2
  24. package/dist/static/js/{client.a7f24cfe.js.LICENSE.txt → client.a99bf1d1.js.LICENSE.txt} +146 -146
  25. package/dist/static/js/components.e41a9be2.js +1 -0
  26. package/dist/static/js/{lib-polyfill.4350f405.js → lib-polyfill.308ec9c4.js} +2 -2
  27. package/dist/static/js/{lib-polyfill.4350f405.js.LICENSE.txt → lib-polyfill.308ec9c4.js.LICENSE.txt} +26 -26
  28. package/dist/static/js/mount.bb5c31be.js +2 -0
  29. package/dist/static/js/{mount.00b978a3.js.LICENSE.txt → mount.bb5c31be.js.LICENSE.txt} +38 -38
  30. package/package.json +12 -12
  31. package/dist/static/js/async/447.de1c74b3.js +0 -2
  32. package/dist/static/js/async/client_context/builder/page.5c3ea615.js +0 -2
  33. package/dist/static/js/async/client_context/framework/page.0cc29303.js +0 -2
  34. package/dist/static/js/async/client_headers/editor/page.0d45e366.js +0 -2
  35. package/dist/static/js/async/client_pages/page.17318d21.js +0 -2
  36. package/dist/static/js/components.0e9702c9.js +0 -1
  37. package/dist/static/js/mount.00b978a3.js +0 -2
  38. /package/dist/static/css/{610.86ca73a8.css → 623.03fac707.css} +0 -0
  39. /package/dist/static/css/async/client_doctor/{page.70e4fc6b.css → page.04551be6.css} +0 -0
  40. /package/dist/static/css/async/client_headers/editor/{page.0f830a9e.css → page.bc5efe81.css} +0 -0
  41. /package/dist/static/css/async/client_headers/{layout.85737bd6.css → layout.fde8f0b7.css} +0 -0
  42. /package/dist/static/css/async/client_overview/{page.b032858f.css → page.89173379.css} +0 -0
  43. /package/dist/static/css/async/client_pages/{layout.ada1ecbd.css → layout.db60c0c2.css} +0 -0
  44. /package/dist/static/css/async/client_pages/{page.c100068e.css → page.28a6d9a6.css} +0 -0
  45. /package/dist/static/css/{client.fca9840b.css → client.46284eec.css} +0 -0
  46. /package/dist/static/css/{components.6259116d.css → components.bdf3d6b5.css} +0 -0
  47. /package/dist/static/css/{mount.2f84060f.css → mount.b8741f79.css} +0 -0
  48. /package/dist/static/js/{610.d7cbe2d6.js.LICENSE.txt → 623.95120cf9.js.LICENSE.txt} +0 -0
  49. /package/dist/static/js/{637.bb6142e6.js.LICENSE.txt → 637.94b02786.js.LICENSE.txt} +0 -0
  50. /package/dist/static/js/async/client_doctor/{page.676c5ee2.js.LICENSE.txt → page.a87593b9.js.LICENSE.txt} +0 -0
  51. /package/dist/static/js/async/client_headers/{layout.12c73353.js.LICENSE.txt → layout.874b19f6.js.LICENSE.txt} +0 -0
  52. /package/dist/static/js/async/client_overview/{page.4c10470c.js.LICENSE.txt → page.f96cfdc3.js.LICENSE.txt} +0 -0
  53. /package/dist/static/js/async/client_pages/{layout.fc389a62.js.LICENSE.txt → layout.a3501bd0.js.LICENSE.txt} +0 -0
@@ -814,6 +814,8 @@
814
814
 
815
815
  /*! ../internals/export */
816
816
 
817
+ /*! ./_object_without_properties_loose.js */
818
+
817
819
  /*! ../internals/function-uncurry-this */
818
820
 
819
821
  /*! ../internals/global */
@@ -1014,8 +1016,6 @@
1014
1016
 
1015
1017
  /*! ../modules/es.string.iterator */
1016
1018
 
1017
- /*! ./_object_without_properties_loose.js */
1018
-
1019
1019
  /*! ../internals/iterate-simple */
1020
1020
 
1021
1021
  /*! ../internals/function-apply */
@@ -1112,6 +1112,8 @@
1112
1112
 
1113
1113
  /*! ../internals/detach-transferable */
1114
1114
 
1115
+ /*! ./_iterable_to_array.js */
1116
+
1115
1117
  /*! ../internals/define-built-in-accessor */
1116
1118
 
1117
1119
  /*! ../internals/weak-map-helpers */
@@ -1302,8 +1304,6 @@
1302
1304
 
1303
1305
  /*! ../internals/get-iterator-direct */
1304
1306
 
1305
- /*! ./_iterable_to_array.js */
1306
-
1307
1307
  /*! ../internals/function-uncurry-this */
1308
1308
 
1309
1309
  /*! ../internals/an-object */
@@ -1516,12 +1516,16 @@
1516
1516
 
1517
1517
  /*! ../internals/descriptors */
1518
1518
 
1519
+ /*! tslib */
1520
+
1519
1521
  /*! ../internals/is-callable */
1520
1522
 
1521
1523
  /*! ../internals/define-built-in */
1522
1524
 
1523
1525
  /*! ../internals/object-get-own-property-descriptor */
1524
1526
 
1527
+ /*! ./_array_like_to_array.js */
1528
+
1525
1529
  /*! ../internals/array-from-constructor-and-list */
1526
1530
 
1527
1531
  /*! ../internals/export */
@@ -1718,12 +1722,8 @@
1718
1722
 
1719
1723
  /*! ../internals/array-buffer-byte-length */
1720
1724
 
1721
- /*! ./_array_like_to_array.js */
1722
-
1723
1725
  /*! ../internals/is-constructor */
1724
1726
 
1725
- /*! tslib */
1726
-
1727
1727
  /*! ../internals/well-known-symbol */
1728
1728
 
1729
1729
  /*! ../internals/function-call */
@@ -1878,6 +1878,8 @@
1878
1878
 
1879
1879
  /*! ../internals/function-uncurry-this */
1880
1880
 
1881
+ /*! ./_define_property.js */
1882
+
1881
1883
  /*! ../internals/global */
1882
1884
 
1883
1885
  /*! ../internals/function-apply */
@@ -2030,8 +2032,6 @@
2030
2032
 
2031
2033
  /*! ../internals/classof-raw */
2032
2034
 
2033
- /*! ./_define_property.js */
2034
-
2035
2035
  /*! ../internals/object-get-prototype-of */
2036
2036
 
2037
2037
  /*! ../internals/get-iterator-direct */
@@ -2360,6 +2360,8 @@
2360
2360
 
2361
2361
  /*! ../internals/create-iter-result-object */
2362
2362
 
2363
+ /*! ./_array_like_to_array.js */
2364
+
2363
2365
  /*! ../internals/promise-statics-incorrect-iteration */
2364
2366
 
2365
2367
  /*! ../internals/get-built-in */
@@ -2522,8 +2524,6 @@
2522
2524
 
2523
2525
  /*! ../internals/internal-state */
2524
2526
 
2525
- /*! ./_array_like_to_array.js */
2526
-
2527
2527
  /*! ../internals/is-array */
2528
2528
 
2529
2529
  /*! ../internals/global */
@@ -2630,6 +2630,8 @@
2630
2630
 
2631
2631
  /*! ../internals/engine-is-browser */
2632
2632
 
2633
+ /*! ./_non_iterable_spread.js */
2634
+
2633
2635
  /*! ../internals/whitespaces */
2634
2636
 
2635
2637
  /*! ../internals/a-callable */
@@ -2640,6 +2642,8 @@
2640
2642
 
2641
2643
  /*! ../internals/a-callable */
2642
2644
 
2645
+ /*! ./_non_iterable_rest.js */
2646
+
2643
2647
  /*! ../internals/get-iterator */
2644
2648
 
2645
2649
  /*! ../internals/to-length */
@@ -2820,16 +2824,12 @@
2820
2824
 
2821
2825
  /*! ../internals/regexp-get-flags */
2822
2826
 
2823
- /*! ./_non_iterable_spread.js */
2824
-
2825
2827
  /*! ../internals/has-own-property */
2826
2828
 
2827
2829
  /*! ../internals/to-integer-or-infinity */
2828
2830
 
2829
2831
  /*! ../internals/an-object */
2830
2832
 
2831
- /*! ./_non_iterable_rest.js */
2832
-
2833
2833
  /*! ../internals/to-length */
2834
2834
 
2835
2835
  /*! ../internals/export */
@@ -3058,6 +3058,8 @@
3058
3058
 
3059
3059
  /*! ../internals/fails */
3060
3060
 
3061
+ /*! ./_array_with_holes.js */
3062
+
3061
3063
  /*! ../internals/well-known-symbol */
3062
3064
 
3063
3065
  /*! ../internals/is-pure */
@@ -3226,8 +3228,6 @@
3226
3228
 
3227
3229
  /*! ../internals/an-object */
3228
3230
 
3229
- /*! ./_array_with_holes.js */
3230
-
3231
3231
  /*! ../internals/get-built-in */
3232
3232
 
3233
3233
  /*! ../internals/perform */
@@ -3788,6 +3788,8 @@
3788
3788
 
3789
3789
  /*! ../internals/well-known-symbol */
3790
3790
 
3791
+ /*! ./_unsupported_iterable_to_array.js */
3792
+
3791
3793
  /*! ../internals/an-object */
3792
3794
 
3793
3795
  /*! ../internals/function-uncurry-this */
@@ -3796,6 +3798,8 @@
3796
3798
 
3797
3799
  /*! ../internals/well-known-symbol */
3798
3800
 
3801
+ /*! ./_unsupported_iterable_to_array.js */
3802
+
3799
3803
  /*! ../internals/engine-user-agent */
3800
3804
 
3801
3805
  /*! ../internals/set-is-superset-of */
@@ -3980,8 +3984,6 @@
3980
3984
 
3981
3985
  /*! ../internals/iterator-create-proxy */
3982
3986
 
3983
- /*! ./_unsupported_iterable_to_array.js */
3984
-
3985
3987
  /*! ../internals/export */
3986
3988
 
3987
3989
  /*! ../internals/array-buffer-view-core */
@@ -3992,8 +3994,6 @@
3992
3994
 
3993
3995
  /*! ../internals/well-known-symbol */
3994
3996
 
3995
- /*! ./_unsupported_iterable_to_array.js */
3996
-
3997
3997
  /*! ../internals/global */
3998
3998
 
3999
3999
  /*! ../internals/define-built-in-accessor */
@@ -4412,6 +4412,8 @@
4412
4412
 
4413
4413
  /*! ../internals/get-built-in */
4414
4414
 
4415
+ /*! ./_iterable_to_array_limit.js */
4416
+
4415
4417
  /*! ../internals/symbol-is-well-known */
4416
4418
 
4417
4419
  /*! ../internals/descriptors */
@@ -4584,8 +4586,6 @@
4584
4586
 
4585
4587
  /*! ../internals/add-to-unscopables */
4586
4588
 
4587
- /*! ./_iterable_to_array_limit.js */
4588
-
4589
4589
  /*! ../internals/export */
4590
4590
 
4591
4591
  /*! ../internals/export */
@@ -4594,6 +4594,8 @@
4594
4594
 
4595
4595
  /*! ../internals/export */
4596
4596
 
4597
+ /*! ./_array_without_holes.js */
4598
+
4597
4599
  /*! ../internals/function-uncurry-this */
4598
4600
 
4599
4601
  /*! ../internals/typed-array-constructor */
@@ -4790,8 +4792,6 @@
4790
4792
 
4791
4793
  /*! ../internals/define-built-in-accessor */
4792
4794
 
4793
- /*! ./_array_without_holes.js */
4794
-
4795
4795
  /*! ../internals/array-group */
4796
4796
 
4797
4797
  /*! ../internals/set-is-subset-of */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see mount.bb5c31be.js.LICENSE.txt */
2
+ (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{74709:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsCapsuleButton:function(){return i}});var o=n("86834");n("5872");var r=n("20421"),l=n("47225");let i=e=>{var t;let[n,i]=(0,r.useAsyncFn)(()=>Promise.resolve(e.onClick()),[]);return(0,o.jsx)("button",{className:l.container,onClick:i,"data-type":null!==(t=e.type)&&void 0!==t?t:"default",disabled:n.loading,children:e.children})}},62325:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsCapsule:function(){return y}});var o=n("90247"),r=n("55709"),l=n("86834"),i=n("83982"),s=n("5872"),a=n("20421"),c=n("29214"),u=n("55058"),d=n("45967"),v=n("61087"),m=n("10734"),p=n("74709"),h=n("94258"),f=n("28391"),_=n("51879");let g=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,{hash:n}=t,o=null===(e=n.match(/^#\/__devtools(.*)/))||void 0===e?void 0:e[1];return"string"!=typeof o?null:""===o?"/":o},y=e=>{let t=e.def.assets.logo,n=g(),[y,w]=(0,a.useToggle)(!!n),[k,b]=(0,s.useState)(!1),E=(0,u.withQuery)(e.endpoint,{src:e.dataSource}),x=(0,h.useStickyDraggable)({clamp:!0}),[C,j]=(0,s.useState)(()=>{var e;let t=null!==(e=localStorage.getItem("__modern_js_devtools_appearance"))&&void 0!==e?e:"light";return localStorage.setItem("__modern_js_devtools_appearance",t),t});(0,a.useEvent)("storage",e=>{"__modern_js_devtools_appearance"===e.key&&j(e.newValue||void 0)}),(0,a.useEvent)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&w()}),(0,s.useEffect)(()=>{f.wallAgent.hook("receive",e=>{"startInspectingNative"===e.event&&(w(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(w(!0),document.documentElement.style.removeProperty("cursor"))};return f.wallAgent.hook("send",e),()=>{f.wallAgent.removeHook("send",e)}},[]);let O=async()=>{document.documentElement.style.setProperty("cursor","wait"),w(!1),b(!0);try{(await (0,_.pTimeout)(f.$client,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,a.useAsync)(async()=>{if(!!n)(await (0,_.pTimeout)(f.$client,1e4)).remote.pullUp(n)},[]),(0,l.jsxs)(i.Theme,{appearance:C,className:C,children:[(0,l.jsx)(d.default,{when:y,keepAlive:!0,load:k,children:(0,l.jsx)("div",{className:v.container,children:(0,l.jsx)(m.FrameBox,{src:E,onClose:()=>w(!1),style:{pointerEvents:x.isDragging?"none":"auto"}})})}),(0,l.jsxs)(i.Flex,(0,r._)((0,o._)({className:v.fab},x.props),{align:"center",children:[(0,l.jsx)(p.DevtoolsCapsuleButton,{type:"primary",onClick:w,children:(0,l.jsx)("img",{className:v.logo,src:t})}),(0,l.jsx)(p.DevtoolsCapsuleButton,{onClick:O,children:(0,l.jsx)(c.HiMiniCursorArrowRipple,{})})]}))]})}},10734:function(e,t,n){"use strict";n.r(t),n.d(t,{FrameBox:function(){return m}});var o=n("90247"),r=n("55709"),l=n("16170"),i=n("86834"),s=n("83982");n("5872");var a=n("29214"),c=n("42700"),u=n("428"),d=n("55775"),v=n("28391");let m=e=>{var{src:t,onClose:n}=e,m=(0,l._)(e,["src","onClose"]);let{loaded:p}=(0,c.useSnapshot)(v.$inner);return(0,i.jsxs)(s.Box,(0,r._)((0,o._)({className:d.container},m),{children:[(0,i.jsx)("iframe",{className:d.frame,src:t}),(0,i.jsx)(a.HiMiniXMark,{className:d.closeButton,onClick:n}),(0,i.jsx)("div",{className:d.backdrop,style:{display:p?"none":void 0},children:(0,i.jsx)(u.Loading,{})})]}))}},45967:function(e,t,n){"use strict";n.r(t);var o=n("86834"),r=n("5872");t.default=e=>{var t;let n=null===(t=e.keepAlive)||void 0===t||t,{when:l}=e,i=(0,r.useRef)(!1);l&&(i.current=!0);let s=e.load||(n?i.current:l);return s?(0,o.jsx)("div",{style:{display:!n||l?"unset":"none"},children:e.children}):null}},80295:function(e,t,n){"use strict";n.r(t);var o=n("90247"),r=n("86834");n("82231"),n("28391");var l=n("60182"),i=n("41020"),s=n("62325");document.addEventListener("DOMContentLoaded",()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),n=document.getElementById("_modern_js_devtools_styles");if(!(n instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(n.content);let a=document.createElement("div");a.classList.add("_modern_js_devtools_mountpoint","theme-register",i.container),t.appendChild(a);let c=window.__MODERN_JS_DEVTOOLS_OPTIONS__;(0,l.createRoot)(a).render((0,r.jsx)(s.DevtoolsCapsule,(0,o._)({},c)))})},82231:function(e,t,n){"use strict";n.r(t);var o=n("57662");if(!window.opener)try{try{delete window.__REACT_DEVTOOLS_GLOBAL_HOOK__}catch(e){}(0,o.initialize)(window);let e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub;window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub=(t,n)=>{if("devtools-backend-installed"!==t)return e(t,n)}}catch(t){let e=Error("Failed to inject React DevTools backend.");e.cause=t,console.error(e)}},28391:function(e,t,n){"use strict";n.r(t),n.d(t,{$client:function(){return f},$inner:function(){return _},wallAgent:function(){return p}});var o=n("90247"),r=n("55709"),l=n("10487"),i=n("88739"),s=n("65872"),a=n("9880"),c=n.n(a),u=n("42700"),d=n("57662"),v=n("24933");let m=l.MessagePortChannel.wait(window,"channel:connect:client"),p=new v.WallAgent,h=(0,d.createBridge)(window,p),f=m.then(e=>{let t=(0,s.createHooks)();return{remote:(0,i.createBirpc)({async activateReactDevtools(){(0,d.activate)(window,{bridge:h})},async onFinishRender(){await t.callHook("onFinishRender")}},(0,r._)((0,o._)({},e.handlers),{timeout:500})),hooks:t}}),_=(0,u.proxy)({loaded:!1}),g=c()();f.then(e=>{let{remote:t,hooks:n}=e;p.bindRemote(t,"sendReactDevtoolsData"),n.hook("onFinishRender",async()=>{_.loaded=!0,g.resolve()})})},94258:function(e,t,n){"use strict";n.r(t),n.d(t,{useStickyDraggable:function(){return a}});var o=n("5872"),r=n("20421");let l=(e,t)=>{var n,o;return null!==(o=null===(n=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])||void 0===n?void 0:n.includes(t))&&void 0!==o&&o},i=e=>{let[t,...n]=[{key:"top",value:e.top},{key:"bottom",value:e.bottom},{key:"left",value:e.left},{key:"right",value:e.right}].sort((e,t)=>e.value-t.value),o=n.findIndex(e=>{let{key:n}=e;return l(t.key,n)}),[r]=n.splice(o,1);return[t,r,n[0],n[1]]},s=e=>{let{top:t,left:n,height:o,width:r}=e.getBoundingClientRect();return{top:t,left:n,bottom:window.innerHeight-t-o,right:window.innerWidth-n-r}},a=e=>{var t;let n=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",l="number"==typeof n?"".concat(n,"px"):n,[a,c]=(0,o.useState)(),u=()=>{if(!a)return;a.moveable=!1;let{el:e}=a,[t]=i(s(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{c(void 0),e.style[t.key]=l}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},d=t=>{let n="touches"in t?t.touches[0]:t;if(!(null==a?void 0:a.moveable))return;let{startX:o,startY:r}=a;(o-n.clientX)**2+(r-n.clientY)**2>9&&(a.clickable=!1);let{width:s,height:c}=a.el.getBoundingClientRect(),u=n.clientY-a.offsetY,d=n.clientX-a.offsetX,v=i({top:u,left:d,bottom:window.innerHeight-u-c,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:n}=e;return{key:t,value:"".concat(n,"px")}});if(null==e?void 0:e.clamp)for(let e of v){let t=["top","bottom"].includes(e.key)?window.innerHeight-c:window.innerWidth-s;e.value="clamp(".concat(l,", ").concat(e.value,", ").concat(t,"px)")}let[m,p,...h]=v,{style:f}=a.el;f.transition="",f[m.key]=m.value,f[p.key]=p.value,f[h[0].key]="auto",f[h[1].key]="auto"};(0,r.useEvent)("blur",u),(0,r.useEvent)("mouseup",u),(0,r.useEvent)("touchend",u),(0,r.useEvent)("mousemove",d),(0,r.useEvent)("touchmove",d);let v=e=>{let t="touches"in e?e.touches[0]:e,n=e.currentTarget,o=n.getBoundingClientRect(),r=t.clientX-o.left;c({el:n,clickable:!0,moveable:!0,offsetX:r,offsetY:t.clientY-o.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!a,props:{onMouseDown:v,onTouchStart:v,onClickCapture:e=>{(null==a?void 0:a.clickable)||e.stopPropagation()}}}}},51879:function(e,t,n){"use strict";n.r(t),n.d(t,{pTimeout:function(){return o}});let o=(e,t)=>new Promise((n,o)=>{let r=!0,l=setTimeout(()=>{r=!1,o(Error("Promise Timeout"))},t);e.then(e=>{r&&n(e),clearTimeout(l)}),e.catch(o)})},24933:function(e,t,n){"use strict";n.r(t),n.d(t,{WallAgent:function(){return r}});var o=n("65872");class r extends o.Hookable{listen(e){return this.hook("receive",e),e}send(e,t,n){this.callHook("send",{event:e,payload:t,transferable:n})}bindRemote(e,t){var n=this;return e.$functions[t]=function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];n.callHook("receive",e,...o)},this.hook("send",function(){for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];e[t](...o)}),this}constructor(){super(),this.status="close";let e=e=>{this.status!==e&&(this.status=e,this.callHook(e))};this.hook("send",t=>{"shutdown"===t.event&&e("close")}),this.hook("receive",t=>{"shutdown"===t.event?e("close"):"operations"===t.event?e("active"):e("open")})}}},41020:function(e){"use strict";e.exports={container:"container-d972e2"}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","567","58","623","637","768"],function(){return t("90915"),t("90651"),t("28576"),t("19449"),t("80295")}),e.O()}]);
@@ -1,22 +1,10 @@
1
- /*! react */
2
-
3
- /*! hookable */
1
+ /*! react/jsx-runtime */
4
2
 
5
3
  /*! ./Capsule.module.scss */
6
4
 
7
5
  /*! ../Visible */
8
6
 
9
- /*! ./index.module.scss */
10
-
11
- /*! react */
12
-
13
- /*! react-devtools-inline/backend */
14
-
15
- /*! react/jsx-runtime */
16
-
17
- /*! @swc/helpers/_/_object_spread_props */
18
-
19
- /*! @/entries/mount/state */
7
+ /*! @swc/helpers/_/_object_spread */
20
8
 
21
9
  /*! ./FrameBox.module.scss */
22
10
 
@@ -24,19 +12,17 @@
24
12
 
25
13
  /*! ../Loading */
26
14
 
27
- /*! react-devtools-inline/backend */
28
-
29
- /*! react-use */
30
-
31
15
  /*! ./Button.module.scss */
32
16
 
33
17
  /*! @/utils/draggable */
34
18
 
19
+ /*! birpc */
20
+
35
21
  /*! @radix-ui/themes */
36
22
 
37
- /*! react-use */
23
+ /*! ./state */
38
24
 
39
- /*! valtio */
25
+ /*! react-use */
40
26
 
41
27
  /*! react */
42
28
 
@@ -44,30 +30,18 @@
44
30
 
45
31
  /*! react/jsx-runtime */
46
32
 
47
- /*! @/utils/react-devtools */
48
-
49
- /*! @modern-js/devtools-kit/runtime */
50
-
51
- /*! p-defer */
52
-
53
33
  /*! @/utils/promise */
54
34
 
55
35
  /*! react-use */
56
36
 
57
37
  /*! react */
58
38
 
59
- /*! @/components/Devtools/Capsule */
60
-
61
39
  /*! @swc/helpers/_/_object_spread */
62
40
 
63
- /*! react-dom/client */
64
-
65
41
  /*! @radix-ui/themes */
66
42
 
67
43
  /*! react/jsx-runtime */
68
44
 
69
- /*! react/jsx-runtime */
70
-
71
45
  /*! react-icons/hi2 */
72
46
 
73
47
  /*! ufo */
@@ -76,28 +50,54 @@
76
50
 
77
51
  /*! @swc/helpers/_/_object_spread_props */
78
52
 
79
- /*! @swc/helpers/_/_object_spread */
53
+ /*! hookable */
54
+
55
+ /*! ./react-devtools-backend */
80
56
 
81
57
  /*! valtio */
82
58
 
59
+ /*! @swc/helpers/_/_object_spread */
60
+
83
61
  /*! @swc/helpers/_/_object_spread_props */
84
62
 
85
- /*! birpc */
63
+ /*! react */
86
64
 
87
65
  /*! react/jsx-runtime */
88
66
 
89
- /*! ./state */
67
+ /*! hookable */
68
+
69
+ /*! ./index.module.scss */
70
+
71
+ /*! react */
72
+
73
+ /*! react-devtools-inline/backend */
90
74
 
91
75
  /*! @swc/helpers/_/_object_without_properties */
92
76
 
77
+ /*! react/jsx-runtime */
78
+
79
+ /*! @swc/helpers/_/_object_spread_props */
80
+
81
+ /*! @/entries/mount/state */
82
+
83
+ /*! react-devtools-inline/backend */
84
+
85
+ /*! react-use */
86
+
93
87
  /*! @/entries/mount/state */
94
88
 
95
89
  /*! ./FrameBox */
96
90
 
91
+ /*! valtio */
92
+
97
93
  /*! react-icons/hi2 */
98
94
 
99
- /*! hookable */
95
+ /*! @/utils/react-devtools */
100
96
 
101
- /*! ./react-devtools-backend */
97
+ /*! @modern-js/devtools-kit/runtime */
98
+
99
+ /*! p-defer */
100
+
101
+ /*! @/components/Devtools/Capsule */
102
102
 
103
- /*! @swc/helpers/_/_object_spread */
103
+ /*! react-dom/client */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/devtools-client",
3
- "version": "2.48.3",
3
+ "version": "2.48.4",
4
4
  "engines": {
5
5
  "node": ">=14.0.0"
6
6
  },
@@ -22,7 +22,7 @@
22
22
  "@radix-ui/react-popover": "^1.0.7",
23
23
  "@radix-ui/react-tabs": "^1.0.4",
24
24
  "@radix-ui/themes": "^2.0.0",
25
- "@rsbuild/core": "0.5.1",
25
+ "@rsbuild/core": "0.5.4",
26
26
  "@types/jest": "^29",
27
27
  "@types/lodash": "^4.14.202",
28
28
  "@types/node": "~16.11.7",
@@ -56,16 +56,16 @@
56
56
  "ufo": "^1.3.0",
57
57
  "valtio": "^1.11.1",
58
58
  "jest": "^29",
59
- "@modern-js-app/eslint-config": "2.48.3",
60
- "@modern-js/devtools-kit": "2.48.3",
61
- "@modern-js/app-tools": "2.48.3",
62
- "@modern-js/eslint-config": "2.48.3",
63
- "@modern-js/plugin-proxy": "2.48.3",
64
- "@modern-js/runtime": "2.48.3",
65
- "@modern-js/tsconfig": "2.48.3",
66
- "@modern-js/types": "2.48.3",
67
- "@scripts/jest-config": "2.48.3",
68
- "@modern-js/utils": "2.48.3"
59
+ "@modern-js-app/eslint-config": "2.48.4",
60
+ "@modern-js/devtools-kit": "2.48.4",
61
+ "@modern-js/app-tools": "2.48.4",
62
+ "@modern-js/eslint-config": "2.48.4",
63
+ "@modern-js/plugin-proxy": "2.48.4",
64
+ "@modern-js/tsconfig": "2.48.4",
65
+ "@modern-js/runtime": "2.48.4",
66
+ "@modern-js/types": "2.48.4",
67
+ "@modern-js/utils": "2.48.4",
68
+ "@scripts/jest-config": "2.48.4"
69
69
  },
70
70
  "scripts": {
71
71
  "reset": "npx rimraf ./**/node_modules",
@@ -1,2 +0,0 @@
1
- /*! For license information please see 447.de1c74b3.js.LICENSE.txt */
2
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["447"],{87864:function(e,s,a){"use strict";a.r(s),a.d(s,{ObjectInspector:function(){return u}});var b=a("90247"),r=a("86834"),t=a("83982"),n=a("28291"),o=a("69992");let c={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"transparent",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},u=e=>(0,r.jsx)(t.Box,{className:o.container,children:(0,r.jsx)(n.JSONTree,(0,b._)({theme:c},e))})},9383:function(e,s,a){"use strict";a.r(s);var b=a("86834");a("5872");var r=a("42700"),t=a("39934"),n=a("99480"),o=a("87864");s.default=()=>{let e={framework:(0,r.useSnapshot)(n.$framework).config,builder:(0,r.useSnapshot)(n.$builder).config,bundler:(0,r.useSnapshot)(n.$bundler).config},{toolkit:s,type:a}=(0,t.useParams)(),c=e[s][a];return(0,b.jsx)(o.ObjectInspector,{data:c,sortObjectKeys:!0})}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see page.5c3ea615.js.LICENSE.txt */
2
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["958"],{87864:function(e,s,a){"use strict";a.r(s),a.d(s,{ObjectInspector:function(){return f}});var b=a("90247"),t=a("86834"),r=a("83982"),c=a("28291"),n=a("69992");let o={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"transparent",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},f=e=>(0,t.jsx)(r.Box,{className:n.container,children:(0,t.jsx)(c.JSONTree,(0,b._)({theme:o},e))})},84496:function(e,s,a){"use strict";a.r(s);var b=a("86834");a("5872");var t=a("42700"),r=a("99480"),c=a("87864");s.default=()=>{let{context:e}=(0,t.useSnapshot)(r.$builder);return(0,b.jsx)(c.ObjectInspector,{data:e,sortObjectKeys:!0})}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see page.0cc29303.js.LICENSE.txt */
2
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["818"],{87864:function(e,s,a){"use strict";a.r(s),a.d(s,{ObjectInspector:function(){return f}});var b=a("90247"),t=a("86834"),r=a("83982"),c=a("28291"),o=a("69992");let n={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"transparent",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},f=e=>(0,t.jsx)(r.Box,{className:o.container,children:(0,t.jsx)(c.JSONTree,(0,b._)({theme:n},e))})},12909:function(e,s,a){"use strict";a.r(s);var b=a("86834");a("5872");var t=a("42700"),r=a("99480"),c=a("87864");s.default=()=>{let{context:e}=(0,t.useSnapshot)(r.$framework);return(0,b.jsx)(c.ObjectInspector,{data:e,sortObjectKeys:!0})}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see page.0d45e366.js.LICENSE.txt */
2
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["730"],{13493:function(e,r,s){"use strict";s.r(r),s.d(r,{PairsEditor:function(){return x}});var a=s("90247"),i=s("55709"),n=s("16170"),l=s("86834"),t=s("83982"),c=s("89677"),o=s("5872"),d=s("42700"),u=s("98797"),h=s("68492");let x=e=>{var{$data:r=(0,d.proxy)([]),disabled:s,placeholders:x}=e,p=(0,n._)(e,["$data","disabled","placeholders"]);let v=(0,d.useSnapshot)(r);return(0,o.useEffect)(()=>{v.length<=0&&r.push({id:(0,c.nanoid)(),key:"",value:""})},[v.length]),(0,l.jsx)(t.Box,(0,i._)((0,a._)({className:u.container},p),{children:v.map((e,a)=>(0,l.jsx)(h.Pair,{$data:r[a],disabled:s,placeholders:x,onDelete:()=>r.splice(a,1),onInsert:()=>r.splice(a+1,0,{id:(0,c.nanoid)(),key:"",value:""})},e.id))}))}},68492:function(e,r,s){"use strict";s.r(r),s.d(r,{Pair:function(){return c}});var a=s("86834"),i=s("83982");s("5872");var n=s("29214"),l=s("42700"),t=s("7041");let c=e=>{let{$data:r,onDelete:s,onInsert:c,disabled:o,placeholders:d=["Key...","Value..."]}=e,u=(0,l.useSnapshot)(r);return(0,a.jsxs)(i.Box,{className:t.inputPair,"aria-disabled":o,children:[(0,a.jsx)(i.TextField.Root,{children:(0,a.jsx)(i.TextField.Input,{value:u.key,disabled:o,placeholder:d[0],onChange:e=>r.key=e.currentTarget.value})}),(0,a.jsx)(i.Box,{asChild:!0,grow:"1",children:(0,a.jsx)(i.TextField.Root,{children:(0,a.jsx)(i.TextField.Input,{value:u.value,disabled:o,placeholder:d[1],onChange:e=>r.value=e.currentTarget.value})})}),(0,a.jsxs)(i.Box,{className:t.actions,children:[(0,a.jsx)(i.IconButton,{variant:"ghost",color:"gray",onClick:s,children:(0,a.jsx)(n.HiMinusSmall,{})}),(0,a.jsx)(i.IconButton,{variant:"ghost",color:"gray",onClick:c,children:(0,a.jsx)(n.HiPlusSmall,{})})]})]},u.id)}},98214:function(e,r,s){"use strict";s.r(r);var a=s("86834"),i=s("52493"),n=s.n(i),l=s("5872"),t=s("83982"),c=s("42700"),o=s("55058"),d=s("81695"),u=s("27196"),h=s("13493");r.default=()=>{let e=(0,c.useSnapshot)(d.$state),r=!!e.service.href,s=(0,l.useMemo)(()=>{var r;return(0,c.proxy)(null!==(r=n().cloneDeep(e.service.rules))&&void 0!==r?r:[])},[]),i=(0,c.useSnapshot)(s),x=r?"Active":"Offline",p=async()=>{await (0,d.registerService)(i.filter(e=>e.key))},v=async()=>{await (0,d.unregisterService)()};return(0,a.jsxs)(t.Box,{className:u.container,children:[(0,a.jsx)(t.Heading,{mt:"4",children:"Header Modifier"}),(0,a.jsxs)(t.Flex,{align:"center",gap:"1",children:[(0,a.jsx)(t.Box,{className:u.signal,"data-active":r}),(0,a.jsx)(t.Text,{color:"gray",size:"1",children:x}),e.service.href&&(0,a.jsx)(t.Link,{size:"1",href:e.service.href,target:"_blank",children:(0,o.parseURL)(e.service.href).pathname})]}),(0,a.jsx)(h.PairsEditor,{$data:s,disabled:r,my:"3",placeholders:["Match header field...","Replace by..."]}),(0,a.jsx)(t.Flex,{justify:"end",gap:"2",children:r?(0,a.jsx)(t.Button,{color:"red",onClick:v,children:"Unregister"}):(0,a.jsx)(t.Button,{onClick:p,children:"Register"})})]})}},27196:function(e){"use strict";e.exports={signal:"signal-_8af82"}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see page.17318d21.js.LICENSE.txt */
2
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["718"],{16887:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseRoute:function(){return c}});var r=n("86834"),o=n("5872"),a=n("1607"),i=n("83982"),s=n("60441"),l=n("49945"),u=n("17862");let c=e=>{let{badge:t,route:n,title:c,children:d,open:x,onOpenChange:h}=e,{matched:p}=(0,o.useContext)(u.MatchUrlContext),[m,f]=(0,o.useState)(!1),j=p===n,g=j||(null!=x?x:m);return(0,r.jsx)(i.Box,{p:"3",className:l.container,children:(0,r.jsxs)(a.Root,{open:g,onOpenChange:null!=h?h:f,children:[(0,r.jsxs)(a.Trigger,{className:l.trigger,children:[t,(0,r.jsx)(i.Text,{className:l.urlText,style:{opacity:p&&!j?.5:1},children:c}),(0,r.jsx)(i.Box,{grow:"1"}),(0,r.jsx)(i.Box,{className:l.mark,"data-open":g,children:(0,r.jsx)(s.CaretSortIcon,{})})]}),(0,r.jsx)(a.Content,{className:l.content,children:d})]})})}},17862:function(e,t,n){"use strict";n.r(t),n.d(t,{MatchUrlContext:function(){return r}});let r=(0,n("5872").createContext)({url:""})},96737:function(e,t,n){"use strict";n.r(t),n.d(t,{LegacyRouteStats:function(){return a}});var r=n("86834");n("5872");var o=n("83982");let a=()=>(0,r.jsx)(o.Text,{children:"Unimplemented."})},68199:function(e,t,n){"use strict";n.r(t),n.d(t,{MatchRemixRouteContext:function(){return r}});let r=(0,n("5872").createContext)([])},14492:function(e,t,n){"use strict";n.r(t),n.d(t,{RemixRoute:function(){return x}});var r=n("86834"),o=n("5872"),a=n("83982"),i=n("52493"),s=n.n(i),l=n("55058"),u=n("20421"),c=n("68199"),d=n("290");let x=e=>{var t,n;let{route:i}=e,h=s().castArray(i),p=s().last(h),m="_component"in p&&s().isString(p._component)?p._component:null,f=(0,l.resolveURL)("/",...h.map(e=>e.path).filter(s().isString))||"/",j=null!==(n=p.index)&&void 0!==n&&n,g="/"===f,y=(0,o.useContext)(c.MatchRemixRouteContext),v=!1===y||y.length>0,R=!!y&&!!s().find(y,{route:{id:p.id}}),C=(0,o.useRef)(null),b=(0,u.useHoverDirty)(C);return(0,r.jsxs)(a.Box,{ref:C,children:[(0,r.jsxs)(a.Flex,{gap:"2",align:"center",mb:p.children&&"1",children:[(0,r.jsxs)(a.Box,{className:d.endpointContainer,"data-matched":!v||R,children:[j&&g||(0,r.jsx)(a.Code,{className:d.endpointTag,"data-compose":j&&"head",children:f}),j&&(0,r.jsx)(a.Code,{className:d.endpointTag,color:"purple","data-compose":!g&&"tail",children:"/(index)"})]}),m&&(0,r.jsx)(a.Link,{className:d.shyLink,style:{visibility:b?"visible":"hidden"},children:m})]}),(0,r.jsx)(a.Flex,{direction:"column",gap:"1",children:null===(t=p.children)||void 0===t?void 0:t.map(e=>(0,r.jsx)(x,{route:h.concat(e)},e.id))})]})}},16197:function(e,t,n){"use strict";n.r(t),n.d(t,{RemixRouteStats:function(){return d}});var r=n("86834"),o=n("39934"),a=n("83982"),i=n("5872"),s=n("55058"),l=n("17862"),u=n("68199"),c=n("14492");let d=e=>{let{remixRoutes:t,route:n}=e,{matched:d,url:x}=(0,i.useContext)(l.MatchUrlContext),h=(0,i.useMemo)(()=>{if(d!==n)return!d&&[];{var e;if(!t)return[];let r=(0,s.cleanDoubleSlashes)(x.replace(n.urlPath,"/")),a=null!==(e=(0,o.matchRoutes)(t,r))&&void 0!==e?e:[];return!!a.length&&a}},[t,d,x]);return t.length?(0,r.jsx)(u.MatchRemixRouteContext.Provider,{value:h,children:(0,r.jsx)(a.Flex,{gap:"2",direction:"column",children:t.map(e=>(0,r.jsx)(c.RemixRoute,{route:e},e.id))})}):null}},85080:function(e,t,n){"use strict";n.r(t),n.d(t,{ClientRouteStats:function(){return x}});var r=n("86834"),o=n("52493"),a=n.n(o),i=n("5872"),s=n("42700"),l=n("96737"),u=n("16197"),c=n("99480"),d=n("24326");(0,s.proxy)({});let x=e=>{let{route:t}=e,n=(0,d.useThrowable)(c.$server),{entrypoints:o}=(0,s.useSnapshot)(c.$framework).context,x=t.entryName&&a().find(o,{entryName:t.entryName});if(!x)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));let p=n.remote.getFileSystemRoutes(x.entryName);return(0,r.jsx)(i.Suspense,{children:(0,r.jsx)(()=>{let e=(0,d.useThrowable)(p);return h(e)?(0,r.jsx)(l.LegacyRouteStats,{}):(0,r.jsx)(u.RemixRouteStats,{remixRoutes:e,route:t})},{})})},h=e=>e[0]&&!("type"in e[0])},38502:function(e,t,n){"use strict";n.r(t);var r=n("85080");n.es(r,t)},82616:function(e,t,n){"use strict";n.r(t),n.d(t,{EntryRoute:function(){return u}});var r=n("86834"),o=n("5872"),a=n("83982"),i=n("16887"),s=n("5489"),l=n("38502");let u=e=>{let{route:t}=e;return(0,r.jsx)(i.BaseRoute,{badge:c,route:t,title:t.urlPath,children:(0,r.jsxs)(a.Flex,{direction:"column",gap:"2",children:[(0,r.jsx)(a.ScrollArea,{scrollbars:"horizontal",children:(0,r.jsx)(s.EntryStats,{route:t})}),(0,r.jsx)(a.ScrollArea,{scrollbars:"horizontal",children:(0,r.jsx)(o.Suspense,{children:(0,r.jsx)(l.ClientRouteStats,{route:t})})})]})})},c=(0,r.jsx)(a.Badge,{color:"cyan",children:"Entry"})},5489:function(e,t,n){"use strict";n.r(t),n.d(t,{EntryStats:function(){return c}});var r=n("86834");n("5872");var o=n("52493"),a=n.n(o),i=n("42700"),s=n("83982"),l=n("32821"),u=n("99480");let c=e=>{let{route:t}=e,{entrypoints:n}=(0,i.useSnapshot)(u.$framework).context,o=t.entryName&&a().find(n,{entryName:t.entryName});if(!o)throw Error("Can't found the entrypoint named ".concat(JSON.stringify(t.entryName)));return(0,r.jsxs)(s.Box,{className:l.stats,children:[(0,r.jsxs)(s.Flex,{gap:"1",children:[(0,r.jsx)(s.Strong,{children:"Directory: "}),(0,r.jsx)(s.Text,{children:o.absoluteEntryDir})]}),(0,r.jsxs)(s.Flex,{gap:"1",children:[(0,r.jsx)(s.Strong,{children:"Entry:"}),(0,r.jsx)(s.Text,{children:o.entry})]})]})}},4992:function(e,t,n){"use strict";n.r(t);var r=n("82616");n.es(r,t)},97083:function(e,t,n){"use strict";n.r(t),n.d(t,{ServerRoute:function(){return l}});var r=n("86834");n("5872");var o=n("52493"),a=n.n(o),i=n("4992"),s=n("76533");let l=e=>{let{route:t}=e;return a().isString(t.entryName)?(0,r.jsx)(i.EntryRoute,{route:t}):(0,r.jsx)(s.UnknownRoute,{route:t})}},76533:function(e,t,n){"use strict";n.r(t),n.d(t,{UnknownRoute:function(){return i}});var r=n("86834");n("5872");var o=n("83982"),a=n("16887");let i=e=>{let{route:t}=e;return(0,r.jsx)(a.BaseRoute,{badge:s,route:t,title:t.urlPath,children:(0,r.jsx)(o.Card,{children:"Unknown route type."})})},s=(0,r.jsx)(o.Badge,{color:"gray",children:"Unknown"})},95879:function(e,t,n){"use strict";n.r(t);var r=n("86834"),o=n("83982"),a=n("5872"),i=n("42700"),s=n("55058"),l=n("29214"),u=n("99480"),c=n("30674"),d=n("17862"),x=n("97083");t.default=()=>{let{serverRoutes:e}=(0,i.useSnapshot)(u.$framework).context,[t,n]=(0,a.useState)({url:""}),h=t=>{let{pathname:r}=(0,s.parseURL)(t);n({url:t,matched:e.find(e=>r===e.urlPath||r.startsWith((0,s.withTrailingSlash)(e.urlPath)))})};return(0,r.jsx)(d.MatchUrlContext.Provider,{value:t,children:(0,r.jsxs)(o.Flex,{position:"relative",direction:"column",gap:"2",align:"stretch",justify:"between",pt:"8",children:[e.map(e=>(0,r.jsx)(x.ServerRoute,{route:e},e.entryPath)),(0,r.jsx)(o.Box,{mb:"2",className:c.input,children:(0,r.jsx)(o.Box,{style:{maxWidth:"40rem",margin:"0 auto",padding:"0 var(--space-4)"},children:(0,r.jsxs)(o.TextField.Root,{children:[(0,r.jsx)(o.TextField.Slot,{children:(0,r.jsx)(l.HiOutlineArrowsRightLeft,{})}),(0,r.jsx)(o.TextField.Input,{placeholder:"/foo?bar#baz",onChange:e=>h(e.target.value),type:"url",autoComplete:"false",autoCapitalize:"false",autoCorrect:"false"})]})})})]})})}},30674:function(e){"use strict";e.exports={input:"input-d0c7d8"}},1607:function(e,t,n){"use strict";n.r(t),n.d(t,{Content:function(){return w},Root:function(){return S},Trigger:function(){return N}});var r=n("83197"),o=n("5872"),a=n("67844"),i=n("82602"),s=n("88654"),l=n("59504"),u=n("88340"),c=n("63422"),d=n("78910"),x=n("63018");let h="Collapsible",[p,m]=(0,i.createContextScope)(h),[f,j]=p(h),g=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:n,open:a,defaultOpen:i,disabled:l,onOpenChange:u,...d}=e,[h=!1,p]=(0,s.useControllableState)({prop:a,defaultProp:i,onChange:u});return(0,o.createElement)(f,{scope:n,disabled:l,contentId:(0,x.useId)(),open:h,onOpenToggle:(0,o.useCallback)(()=>p(e=>!e),[p])},(0,o.createElement)(c.Primitive.div,(0,r.default)({"data-state":b(h),"data-disabled":l?"":void 0},d,{ref:t})))}),y=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:n,...i}=e,s=j("CollapsibleTrigger",n);return(0,o.createElement)(c.Primitive.button,(0,r.default)({type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":b(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled},i,{ref:t,onClick:(0,a.composeEventHandlers)(e.onClick,s.onOpenToggle)}))}),v="CollapsibleContent",R=(0,o.forwardRef)((e,t)=>{let{forceMount:n,...a}=e,i=j(v,e.__scopeCollapsible);return(0,o.createElement)(d.Presence,{present:n||i.open},({present:e})=>(0,o.createElement)(C,(0,r.default)({},a,{ref:t,present:e})))}),C=(0,o.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:a,children:i,...s}=e,d=j(v,n),[x,h]=(0,o.useState)(a),p=(0,o.useRef)(null),m=(0,u.useComposedRefs)(t,p),f=(0,o.useRef)(0),g=f.current,y=(0,o.useRef)(0),R=y.current,C=d.open||x,S=(0,o.useRef)(C),N=(0,o.useRef)();return(0,o.useEffect)(()=>{let e=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,l.useLayoutEffect)(()=>{let e=p.current;if(e){N.current=N.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();f.current=t.height,y.current=t.width,!S.current&&(e.style.transitionDuration=N.current.transitionDuration,e.style.animationName=N.current.animationName),h(a)}},[d.open,a]),(0,o.createElement)(c.Primitive.div,(0,r.default)({"data-state":b(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!C},s,{ref:m,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":R?`${R}px`:void 0,...e.style}}),C&&i)});function b(e){return e?"open":"closed"}let S=g,N=y,w=R}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["567"],{49804:function(t){"use strict";t.exports={connector:"connector-_43720",link:"link-_26ee2"}},17065:function(t){"use strict";t.exports={"indicate-card":"indicate-card-_974b8",indicateCard:"indicate-card-_974b8"}},73478:function(t){"use strict";t.exports={container:"container-a41eae"}},44798:function(t){"use strict";t.exports={container:"container-c37ff8",fab:"fab-b17740",logo:"logo-c7a29e",slideInFromRight:"slideInFromRight-e1026d"}},8932:function(t){"use strict";t.exports={backdrop:"backdrop-_51706","close-button":"close-button-c3742a",closeButton:"close-button-c3742a",container:"container-fb8255",frame:"frame-_5d7ff"}},20109:function(t){"use strict";t.exports={children:"children-ce277e",container:"container-feec25"}},92677:function(t){"use strict";t.exports={loading:"loading-f4a5e7",rotate:"rotate-d4ee47"}},58091:function(t){"use strict";t.exports={container:"container-_6ff2e"}},69992:function(t){"use strict";t.exports={container:"container-_1260b"}},98797:function(t){"use strict";t.exports={container:"container-_560f9"}},7041:function(t){"use strict";t.exports={actions:"actions-_5b76a","input-pair":"input-pair-_55005",inputPair:"input-pair-_55005"}},49945:function(t){"use strict";t.exports={container:"container-_729f8",content:"content-_01b01",mark:"mark-_92790",slideDown:"slideDown-b8bce3",slideUp:"slideUp-dbcad1",trigger:"trigger-_13b59","url-text":"url-text-a0e7e4",urlText:"url-text-a0e7e4"}},290:function(t){"use strict";t.exports={"endpoint-container":"endpoint-container-_4be65",endpointContainer:"endpoint-container-_4be65","endpoint-tag":"endpoint-tag-_0664a",endpointTag:"endpoint-tag-_0664a","shy-link":"shy-link-d59f70",shyLink:"shy-link-d59f70"}},32821:function(t){"use strict";t.exports={stats:"stats-e82970"}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see mount.00b978a3.js.LICENSE.txt */
2
- (self.webpackChunkmodernjsDevtools=self.webpackChunkmodernjsDevtools||[]).push([["400"],{74709:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsCapsuleButton:function(){return i}});var o=n("86834");n("5872");var r=n("20421"),l=n("73478");let i=e=>{var t;let[n,i]=(0,r.useAsyncFn)(()=>Promise.resolve(e.onClick()),[]);return(0,o.jsx)("button",{className:l.container,onClick:i,"data-type":null!==(t=e.type)&&void 0!==t?t:"default",disabled:n.loading,children:e.children})}},62325:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsCapsule:function(){return y}});var o=n("90247"),r=n("55709"),l=n("86834"),i=n("83982"),s=n("5872"),a=n("20421"),c=n("29214"),u=n("55058"),d=n("45967"),v=n("44798"),m=n("10734"),p=n("74709"),h=n("94258"),f=n("28391"),_=n("51879");let g=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,{hash:n}=t,o=null===(e=n.match(/^#\/__devtools(.*)/))||void 0===e?void 0:e[1];return"string"!=typeof o?null:""===o?"/":o},y=e=>{let t=e.def.assets.logo,n=g(),[y,w]=(0,a.useToggle)(!!n),[k,b]=(0,s.useState)(!1),E=(0,u.withQuery)(e.endpoint,{src:e.dataSource}),x=(0,h.useStickyDraggable)({clamp:!0}),[C,j]=(0,s.useState)(()=>{var e;let t=null!==(e=localStorage.getItem("__modern_js_devtools_appearance"))&&void 0!==e?e:"light";return localStorage.setItem("__modern_js_devtools_appearance",t),t});(0,a.useEvent)("storage",e=>{"__modern_js_devtools_appearance"===e.key&&j(e.newValue||void 0)}),(0,a.useEvent)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&w()}),(0,s.useEffect)(()=>{f.wallAgent.hook("receive",e=>{"startInspectingNative"===e.event&&(w(!1),document.documentElement.style.setProperty("cursor","cell"))});let e=e=>{"stopInspectingNative"===e.event&&(w(!0),document.documentElement.style.removeProperty("cursor"))};return f.wallAgent.hook("send",e),()=>{f.wallAgent.removeHook("send",e)}},[]);let O=async()=>{document.documentElement.style.setProperty("cursor","wait"),w(!1),b(!0);try{(await (0,_.pTimeout)(f.$client,1e4)).remote.pullUp("/react/components#inspecting")}catch(e){console.error(e),document.documentElement.style.removeProperty("cursor")}};return(0,a.useAsync)(async()=>{if(!!n)(await (0,_.pTimeout)(f.$client,1e4)).remote.pullUp(n)},[]),(0,l.jsxs)(i.Theme,{appearance:C,className:C,children:[(0,l.jsx)(d.default,{when:y,keepAlive:!0,load:k,children:(0,l.jsx)("div",{className:v.container,children:(0,l.jsx)(m.FrameBox,{src:E,onClose:()=>w(!1),style:{pointerEvents:x.isDragging?"none":"auto"}})})}),(0,l.jsxs)(i.Flex,(0,r._)((0,o._)({className:v.fab},x.props),{align:"center",children:[(0,l.jsx)(p.DevtoolsCapsuleButton,{type:"primary",onClick:w,children:(0,l.jsx)("img",{className:v.logo,src:t})}),(0,l.jsx)(p.DevtoolsCapsuleButton,{onClick:O,children:(0,l.jsx)(c.HiMiniCursorArrowRipple,{})})]}))]})}},10734:function(e,t,n){"use strict";n.r(t),n.d(t,{FrameBox:function(){return m}});var o=n("90247"),r=n("55709"),l=n("16170"),i=n("86834"),s=n("83982");n("5872");var a=n("29214"),c=n("42700"),u=n("428"),d=n("8932"),v=n("28391");let m=e=>{var{src:t,onClose:n}=e,m=(0,l._)(e,["src","onClose"]);let{loaded:p}=(0,c.useSnapshot)(v.$inner);return(0,i.jsxs)(s.Box,(0,r._)((0,o._)({className:d.container},m),{children:[(0,i.jsx)("iframe",{className:d.frame,src:t}),(0,i.jsx)(a.HiMiniXMark,{className:d.closeButton,onClick:n}),(0,i.jsx)("div",{className:d.backdrop,style:{display:p?"none":void 0},children:(0,i.jsx)(u.Loading,{})})]}))}},45967:function(e,t,n){"use strict";n.r(t);var o=n("86834"),r=n("5872");t.default=e=>{var t;let n=null===(t=e.keepAlive)||void 0===t||t,{when:l}=e,i=(0,r.useRef)(!1);l&&(i.current=!0);let s=e.load||(n?i.current:l);return s?(0,o.jsx)("div",{style:{display:!n||l?"unset":"none"},children:e.children}):null}},80295:function(e,t,n){"use strict";n.r(t);var o=n("90247"),r=n("86834");n("82231"),n("28391");var l=n("60182"),i=n("86111"),s=n("62325");document.addEventListener("DOMContentLoaded",()=>{let e=document.createElement("div");e.className="_modern_js_devtools_container",document.body.appendChild(e);let t=e.attachShadow({mode:"closed"}),n=document.getElementById("_modern_js_devtools_styles");if(!(n instanceof HTMLTemplateElement))throw Error("template not found");t.appendChild(n.content);let a=document.createElement("div");a.classList.add("_modern_js_devtools_mountpoint","theme-register",i.container),t.appendChild(a);let c=window.__MODERN_JS_DEVTOOLS_OPTIONS__;(0,l.createRoot)(a).render((0,r.jsx)(s.DevtoolsCapsule,(0,o._)({},c)))})},82231:function(e,t,n){"use strict";n.r(t);var o=n("57662");if(!window.opener)try{try{delete window.__REACT_DEVTOOLS_GLOBAL_HOOK__}catch(e){}(0,o.initialize)(window);let e=window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub;window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub=(t,n)=>{if("devtools-backend-installed"!==t)return e(t,n)}}catch(t){let e=Error("Failed to inject React DevTools backend.");e.cause=t,console.error(e)}},28391:function(e,t,n){"use strict";n.r(t),n.d(t,{$client:function(){return f},$inner:function(){return _},wallAgent:function(){return p}});var o=n("90247"),r=n("55709"),l=n("10487"),i=n("88739"),s=n("65872"),a=n("9880"),c=n.n(a),u=n("42700"),d=n("57662"),v=n("24933");let m=l.MessagePortChannel.wait(window,"channel:connect:client"),p=new v.WallAgent,h=(0,d.createBridge)(window,p),f=m.then(e=>{let t=(0,s.createHooks)();return{remote:(0,i.createBirpc)({async activateReactDevtools(){(0,d.activate)(window,{bridge:h})},async onFinishRender(){await t.callHook("onFinishRender")}},(0,r._)((0,o._)({},e.handlers),{timeout:500})),hooks:t}}),_=(0,u.proxy)({loaded:!1}),g=c()();f.then(e=>{let{remote:t,hooks:n}=e;p.bindRemote(t,"sendReactDevtoolsData"),n.hook("onFinishRender",async()=>{_.loaded=!0,g.resolve()})})},94258:function(e,t,n){"use strict";n.r(t),n.d(t,{useStickyDraggable:function(){return a}});var o=n("5872"),r=n("20421");let l=(e,t)=>{var n,o;return null!==(o=null===(n=({top:["left","right"],bottom:["left","right"],left:["top","bottom"],right:["top","bottom"]})[e])||void 0===n?void 0:n.includes(t))&&void 0!==o&&o},i=e=>{let[t,...n]=[{key:"top",value:e.top},{key:"bottom",value:e.bottom},{key:"left",value:e.left},{key:"right",value:e.right}].sort((e,t)=>e.value-t.value),o=n.findIndex(e=>{let{key:n}=e;return l(t.key,n)}),[r]=n.splice(o,1);return[t,r,n[0],n[1]]},s=e=>{let{top:t,left:n,height:o,width:r}=e.getBoundingClientRect();return{top:t,left:n,bottom:window.innerHeight-t-o,right:window.innerWidth-n-r}},a=e=>{var t;let n=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",l="number"==typeof n?"".concat(n,"px"):n,[a,c]=(0,o.useState)(),u=()=>{if(!a)return;a.moveable=!1;let{el:e}=a,[t]=i(s(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{c(void 0),e.style[t.key]=l}),e.addEventListener("transitionend",()=>e.style.transition="",{once:!0})},d=t=>{let n="touches"in t?t.touches[0]:t;if(!(null==a?void 0:a.moveable))return;let{startX:o,startY:r}=a;(o-n.clientX)**2+(r-n.clientY)**2>9&&(a.clickable=!1);let{width:s,height:c}=a.el.getBoundingClientRect(),u=n.clientY-a.offsetY,d=n.clientX-a.offsetX,v=i({top:u,left:d,bottom:window.innerHeight-u-c,right:window.innerWidth-d-s}).map(e=>{let{key:t,value:n}=e;return{key:t,value:"".concat(n,"px")}});if(null==e?void 0:e.clamp)for(let e of v){let t=["top","bottom"].includes(e.key)?window.innerHeight-c:window.innerWidth-s;e.value="clamp(".concat(l,", ").concat(e.value,", ").concat(t,"px)")}let[m,p,...h]=v,{style:f}=a.el;f.transition="",f[m.key]=m.value,f[p.key]=p.value,f[h[0].key]="auto",f[h[1].key]="auto"};(0,r.useEvent)("blur",u),(0,r.useEvent)("mouseup",u),(0,r.useEvent)("touchend",u),(0,r.useEvent)("mousemove",d),(0,r.useEvent)("touchmove",d);let v=e=>{let t="touches"in e?e.touches[0]:e,n=e.currentTarget,o=n.getBoundingClientRect(),r=t.clientX-o.left;c({el:n,clickable:!0,moveable:!0,offsetX:r,offsetY:t.clientY-o.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!a,props:{onMouseDown:v,onTouchStart:v,onClickCapture:e=>{(null==a?void 0:a.clickable)||e.stopPropagation()}}}}},51879:function(e,t,n){"use strict";n.r(t),n.d(t,{pTimeout:function(){return o}});let o=(e,t)=>new Promise((n,o)=>{let r=!0,l=setTimeout(()=>{r=!1,o(Error("Promise Timeout"))},t);e.then(e=>{r&&n(e),clearTimeout(l)}),e.catch(o)})},24933:function(e,t,n){"use strict";n.r(t),n.d(t,{WallAgent:function(){return r}});var o=n("65872");class r extends o.Hookable{listen(e){return this.hook("receive",e),e}send(e,t,n){this.callHook("send",{event:e,payload:t,transferable:n})}bindRemote(e,t){var n=this;return e.$functions[t]=function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];n.callHook("receive",e,...o)},this.hook("send",function(){for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];e[t](...o)}),this}constructor(){super(),this.status="close";let e=e=>{this.status!==e&&(this.status=e,this.callHook(e))};this.hook("send",t=>{"shutdown"===t.event&&e("close")}),this.hook("receive",t=>{"shutdown"===t.event?e("close"):"operations"===t.event?e("active"):e("open")})}}},86111:function(e){"use strict";e.exports={container:"container-d972e2"}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["126","567","58","610","637","768"],function(){return t("90915"),t("84606"),t("59174"),t("19449"),t("80295")}),e.O()}]);