@modern-js/devtools-client 2.43.0 → 2.45.0

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 (26) 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 +3 -3
  4. package/dist/public/sw-proxy.js +1 -1
  5. package/dist/routes-manifest.json +19 -23
  6. package/dist/static/js/807.62f63a5a.js +2 -0
  7. package/dist/static/js/{476.eab4dac1.js.LICENSE.txt → 807.62f63a5a.js.LICENSE.txt} +463 -475
  8. package/dist/static/js/821.8fa77df7.js +2 -0
  9. package/dist/static/js/{mount.b0e9024b.js.LICENSE.txt → 821.8fa77df7.js.LICENSE.txt} +13 -1
  10. package/dist/static/js/async/client_overview/page.9fd93497.js +2 -0
  11. package/dist/static/js/async/client_overview/{page.cba414eb.js.LICENSE.txt → page.9fd93497.js.LICENSE.txt} +11 -11
  12. package/dist/static/js/builder-runtime.785a3fe1.js +1 -0
  13. package/dist/static/js/{client.0d42a9c4.js → client.3c927f36.js} +2 -2
  14. package/dist/static/js/client.3c927f36.js.LICENSE.txt +939 -0
  15. package/dist/static/js/mount.6c2069cb.js +2 -0
  16. package/dist/static/js/{372.ab6c4244.js.LICENSE.txt → mount.6c2069cb.js.LICENSE.txt} +265 -261
  17. package/exports/mount.mjs +1 -24
  18. package/package.json +13 -13
  19. package/dist/static/js/372.ab6c4244.js +0 -2
  20. package/dist/static/js/476.eab4dac1.js +0 -2
  21. package/dist/static/js/async/client_overview/page.cba414eb.js +0 -2
  22. package/dist/static/js/builder-runtime.e4bcef02.js +0 -1
  23. package/dist/static/js/client.0d42a9c4.js.LICENSE.txt +0 -351
  24. package/dist/static/js/mount.b0e9024b.js +0 -2
  25. /package/dist/static/css/{476.8be470d9.css → 807.8be470d9.css} +0 -0
  26. /package/dist/static/css/{372.272e03b0.css → mount.272e03b0.css} +0 -0
package/exports/mount.mjs CHANGED
@@ -1,29 +1,5 @@
1
- import { initialize } from 'react-devtools-inline/backend';
2
1
  import routesManifest from '../dist/routes-manifest.json';
3
2
 
4
- if (!window.opener) {
5
- try {
6
- // Delete existing devtools hooks registered by react devtools extension.
7
- try {
8
- delete window.__REACT_DEVTOOLS_GLOBAL_HOOK__;
9
- } catch {}
10
- // Call this before importing React (or any other packages that might import React).
11
- initialize(window);
12
- // Deny react devtools extension to activate.
13
- const originSubHook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub;
14
- window.__REACT_DEVTOOLS_GLOBAL_HOOK__.sub = (e, handler) => {
15
- if (e === 'devtools-backend-installed') {
16
- return undefined;
17
- }
18
- return originSubHook(e, handler);
19
- };
20
- } catch (err) {
21
- const e = new Error('Failed to inject React DevTools backend.');
22
- e.cause = err;
23
- console.error(e);
24
- }
25
- }
26
-
27
3
  try {
28
4
  const container = document.createElement('div');
29
5
  container.className = '_modern_js_devtools_container';
@@ -60,4 +36,5 @@ try {
60
36
  const e = new Error('Failed to execute mount point of DevTools.');
61
37
  e.cause = err;
62
38
  console.error(e);
39
+ console.error(err);
63
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/devtools-client",
3
- "version": "2.43.0",
3
+ "version": "2.45.0",
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.2.7",
25
+ "@rsbuild/core": "0.2.15",
26
26
  "@types/jest": "^29",
27
27
  "@types/lodash": "^4.14.202",
28
28
  "@types/node": "~16.11.7",
@@ -53,17 +53,17 @@
53
53
  "typescript": "~5.0.4",
54
54
  "ufo": "^1.3.0",
55
55
  "valtio": "^1.11.1",
56
- "@modern-js-app/eslint-config": "2.43.0",
57
- "@modern-js/app-tools": "2.43.0",
58
- "@modern-js/builder-rspack-provider": "2.43.0",
59
- "@modern-js/devtools-kit": "2.43.0",
60
- "@modern-js/eslint-config": "2.43.0",
61
- "@modern-js/plugin-proxy": "2.43.0",
62
- "@modern-js/builder-shared": "2.43.0",
63
- "@modern-js/runtime": "2.43.0",
64
- "@modern-js/tsconfig": "2.43.0",
65
- "@modern-js/utils": "2.43.0",
66
- "@modern-js/types": "2.43.0"
56
+ "@modern-js-app/eslint-config": "2.45.0",
57
+ "@modern-js/builder-rspack-provider": "2.45.0",
58
+ "@modern-js/app-tools": "2.45.0",
59
+ "@modern-js/builder-shared": "2.45.0",
60
+ "@modern-js/devtools-kit": "2.45.0",
61
+ "@modern-js/eslint-config": "2.45.0",
62
+ "@modern-js/plugin-proxy": "2.45.0",
63
+ "@modern-js/tsconfig": "2.45.0",
64
+ "@modern-js/runtime": "2.45.0",
65
+ "@modern-js/types": "2.45.0",
66
+ "@modern-js/utils": "2.45.0"
67
67
  },
68
68
  "scripts": {
69
69
  "reset": "npx rimraf ./**/node_modules",
@@ -1,2 +0,0 @@
1
- /*! For license information please see 372.ab6c4244.js.LICENSE.txt */
2
- (self.webpackChunk_modern_js_devtools_client=self.webpackChunk_modern_js_devtools_client||[]).push([["372"],{1233:function(e,t,n){"use strict";n.r(t),n.d(t,{ReactComponent:function(){return i}});var a,o=n("5872");function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=e=>o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:455.127,height:76.954,viewBox:"0 0 455.127 76.954"},e),a||(a=o.createElement("g",{fill:"currentColor",fillRule:"evenodd",strokeLinecap:"round",fontSize:12},o.createElement("path",{d:"M23.096 75.977H0V4.59h24.707a55.919 55.919 0 0 1 8.783.653q4.823.767 8.844 2.438a32.184 32.184 0 0 1 1.904.864q8.008 3.955 12.183 11.572a32.438 32.438 0 0 1 3.257 9.058q.803 3.869.903 8.313a56.775 56.775 0 0 1 .015 1.282 55.441 55.441 0 0 1-.653 8.747q-1.087 6.798-3.986 11.956-4.639 8.252-13.061 12.378-8.423 4.126-19.8 4.126Zm1.806-55.811h-5.615v39.99h4.297a23.978 23.978 0 0 0 4.805-.449q5.202-1.066 8.086-4.653a15.925 15.925 0 0 0 2.578-4.81q1.523-4.394 1.523-10.791a40.21 40.21 0 0 0-.234-4.469q-.402-3.594-1.499-6.297a14.688 14.688 0 0 0-2.006-3.534 11.922 11.922 0 0 0-3.194-2.863 13.658 13.658 0 0 0-4.056-1.626q-1.731-.405-3.742-.48a24.996 24.996 0 0 0-.943-.018ZM123.291 44.971v8.496H89.16a10.988 10.988 0 0 0 .884 3.843 9.877 9.877 0 0 0 2.363 3.286q3.003 2.783 8.863 2.783 5.175 0 9.497-1.025a42.981 42.981 0 0 0 5.506-1.721 52.544 52.544 0 0 0 3.405-1.453V72.9q-4.004 2.1-8.74 3.077a41.172 41.172 0 0 1-3.859.59q-3.56.386-8.104.386a40.077 40.077 0 0 1-8.372-.84 32.226 32.226 0 0 1-6.57-2.138 22.906 22.906 0 0 1-10.376-9.229q-3.289-5.432-3.719-13.556a47.413 47.413 0 0 1-.065-2.508q0-9.961 3.418-16.382a22.599 22.599 0 0 1 5.501-6.864 21.455 21.455 0 0 1 4.069-2.658 28.536 28.536 0 0 1 8.473-2.664 37.588 37.588 0 0 1 5.834-.436q7.915 0 13.709 2.71a24.328 24.328 0 0 1 .207.097q5.859 2.808 9.033 8.423a23.114 23.114 0 0 1 2.381 6.323q.632 2.802.76 6.053a42.733 42.733 0 0 1 .033 1.687Zm-33.74-3.516h16.406a11.664 11.664 0 0 0-.404-2.879 10.108 10.108 0 0 0-.573-1.564q-.927-2.002-2.709-3.174a6.912 6.912 0 0 0-2.409-.977 9.817 9.817 0 0 0-2.01-.195 8.801 8.801 0 0 0-2.918.467 7.628 7.628 0 0 0-2.722 1.657 7.286 7.286 0 0 0-1.672 2.421q-.46 1.046-.723 2.346a16.942 16.942 0 0 0-.266 1.898ZM167.48 75.977h-18.896L127.49 20.654h19.922l9.375 32.715q.137.411.467 2.02a112.258 112.258 0 0 1 .046.226 19.061 19.061 0 0 1 .291 1.903 14.863 14.863 0 0 1 .075 1.466h.342a14.573 14.573 0 0 1 .252-2.745 13.298 13.298 0 0 1 .09-.428q.261-1.159.437-1.918a136.744 136.744 0 0 1 .1-.426l9.814-32.813h19.873L167.48 75.977ZM227.783 20.361v55.616h-19.287V20.361h-17.432V4.59h54.102v15.771h-17.383ZM306.662 54.35a43.23 43.23 0 0 0 .418-6.157q0-4.303-.778-7.983a26.737 26.737 0 0 0-2.762-7.544 23.91 23.91 0 0 0-9.741-9.668 27.016 27.016 0 0 0-6.2-2.383 32.596 32.596 0 0 0-7.96-.937 37.958 37.958 0 0 0-6.862.591 27.435 27.435 0 0 0-8.006 2.729 22.673 22.673 0 0 0-9.571 9.668 24.588 24.588 0 0 0-.648 1.325q-2.697 5.959-2.697 14.202a41.077 41.077 0 0 0 .388 5.768 30.674 30.674 0 0 0 1.639 6.537 28.789 28.789 0 0 0 .856 2.033 24.022 24.022 0 0 0 4.881 7 24.539 24.539 0 0 0 8.716 5.542 28.236 28.236 0 0 0 4.232 1.217 33.502 33.502 0 0 0 6.779.663 39.162 39.162 0 0 0 5.019-.31 30.239 30.239 0 0 0 6.553-1.57 26.901 26.901 0 0 0 .477-.18 23.287 23.287 0 0 0 8.263-5.362q3.613-3.662 5.518-9.033a32.011 32.011 0 0 0 1.486-6.148Zm-35.422-6.157q0 4.737.83 7.984t2.661 4.931a6.244 6.244 0 0 0 3.102 1.529 8.91 8.91 0 0 0 1.708.156 8.544 8.544 0 0 0 1.983-.218 5.857 5.857 0 0 0 2.753-1.467 7.765 7.765 0 0 0 1.439-1.922q.479-.883.831-1.974a15.643 15.643 0 0 0 .294-1.035 24.171 24.171 0 0 0 .491-2.645q.195-1.477.269-3.179a49.717 49.717 0 0 0 .045-2.16 46.12 46.12 0 0 0-.11-3.3q-.188-2.614-.695-4.61-.806-3.174-2.588-4.785a6.007 6.007 0 0 0-2.635-1.365q-.922-.229-2.009-.245a11.184 11.184 0 0 0-.166-.001 8.132 8.132 0 0 0-2.619.398q-2.256.764-3.532 2.992a8.551 8.551 0 0 0-.123.223 13.288 13.288 0 0 0-1.078 2.819q-.851 3.173-.851 7.874ZM370.382 54.35a43.23 43.23 0 0 0 .419-6.157q0-4.303-.778-7.983a26.737 26.737 0 0 0-2.762-7.544 23.91 23.91 0 0 0-9.741-9.668 27.016 27.016 0 0 0-6.2-2.383 32.596 32.596 0 0 0-7.961-.937 37.958 37.958 0 0 0-6.862.591 27.435 27.435 0 0 0-8.006 2.729 22.673 22.673 0 0 0-9.57 9.668 24.588 24.588 0 0 0-.648 1.325q-2.697 5.959-2.697 14.202a41.077 41.077 0 0 0 .388 5.768 30.674 30.674 0 0 0 1.639 6.537 28.789 28.789 0 0 0 .855 2.033 24.022 24.022 0 0 0 4.882 7 24.539 24.539 0 0 0 8.716 5.542 28.236 28.236 0 0 0 4.231 1.217 33.502 33.502 0 0 0 6.779.663 39.162 39.162 0 0 0 5.02-.31 30.239 30.239 0 0 0 6.553-1.57 26.901 26.901 0 0 0 .477-.18 23.287 23.287 0 0 0 8.263-5.362q3.613-3.662 5.517-9.033a32.011 32.011 0 0 0 1.486-6.148Zm-35.421-6.157q0 4.737.83 7.984t2.661 4.931a6.244 6.244 0 0 0 3.101 1.529 8.91 8.91 0 0 0 1.709.156 8.544 8.544 0 0 0 1.983-.218 5.857 5.857 0 0 0 2.753-1.467 7.765 7.765 0 0 0 1.439-1.922q.479-.883.831-1.974a15.643 15.643 0 0 0 .294-1.035 24.171 24.171 0 0 0 .49-2.645q.196-1.477.27-3.179a49.717 49.717 0 0 0 .045-2.16 46.12 46.12 0 0 0-.111-3.3q-.188-2.614-.694-4.61-.806-3.174-2.588-4.785a6.007 6.007 0 0 0-2.635-1.365q-.923-.229-2.01-.245a11.184 11.184 0 0 0-.165-.001 8.132 8.132 0 0 0-2.619.398q-2.256.764-3.532 2.992a8.551 8.551 0 0 0-.123.223 13.288 13.288 0 0 0-1.079 2.819q-.85 3.173-.85 7.874ZM400.781 0v75.977h-19.092V0h19.092ZM411.719 73.877V58.594a46.942 46.942 0 0 0 10.644 3.442q4.467.865 7.376 1.017a22.453 22.453 0 0 0 1.169.033 23.338 23.338 0 0 0 1.633-.053q1.997-.141 3.079-.655a3.273 3.273 0 0 0 .737-.469 2.089 2.089 0 0 0 .752-1.655q0-1.221-1.001-2.075a6.393 6.393 0 0 0-.664-.488q-.753-.489-1.94-1.053a34.704 34.704 0 0 0-.96-.437q-1.963-.86-5.142-2.177a655.312 655.312 0 0 0-2.06-.85q-4.59-1.904-7.642-4.151a15.29 15.29 0 0 1-3.214-3.151 13.596 13.596 0 0 1-1.351-2.22 14.224 14.224 0 0 1-1.111-3.359q-.321-1.566-.386-3.371a25.946 25.946 0 0 1-.017-.936 16.624 16.624 0 0 1 .773-5.204 13.104 13.104 0 0 1 5.477-7.003q5.212-3.42 13.244-3.988a46.937 46.937 0 0 1 3.309-.113 44.511 44.511 0 0 1 7.533.618 38.904 38.904 0 0 1 2.77.578 56.912 56.912 0 0 1 6.491 2.043 69.134 69.134 0 0 1 3.518 1.448l-5.224 12.305q-4.102-1.856-8.301-2.979-3.888-1.039-6.311-1.116a11.911 11.911 0 0 0-.379-.007q-2.246 0-3.466.586a2.789 2.789 0 0 0-.59.372 1.672 1.672 0 0 0-.631 1.337 2.288 2.288 0 0 0 .586 1.531 3.206 3.206 0 0 0 .268.276q.649.593 2.184 1.327a28.563 28.563 0 0 0 1.064.48q2.392 1.025 6.982 2.88a51.888 51.888 0 0 1 3.65 1.632q1.693.841 3.107 1.728a27.253 27.253 0 0 1 1.226.815 14.95 14.95 0 0 1 3.24 3.061 13.247 13.247 0 0 1 1.448 2.335 14.028 14.028 0 0 1 1.051 3.104q.487 2.206.487 4.952a20.16 20.16 0 0 1-.662 5.259 16.821 16.821 0 0 1-1.682 4.068 14.139 14.139 0 0 1-4.22 4.516 19.641 19.641 0 0 1-3.275 1.831 23.27 23.27 0 0 1-4.52 1.443q-2.2.479-4.782.689a52.548 52.548 0 0 1-4.248.163 94.534 94.534 0 0 1-5.265-.139q-2.829-.158-5.306-.496a42.222 42.222 0 0 1-7.658-1.805 48.282 48.282 0 0 1-1.79-.636Z",vectorEffect:"non-scaling-stroke"}))))},93328:function(e,t,n){"use strict";n.r(t),n.d(t,{ReactComponent:function(){return i}});var a,o=n("5872");function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var i=e=>o.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",stroke:"currentColor",strokeWidth:0,"aria-hidden":"true",style:{"--darkreader-inline-fill":"currentColor","--darkreader-inline-stroke":"currentColor"},viewBox:"0 0 20 20"},e),a||(a=o.createElement("path",{stroke:"none",d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22z"})))},92366:function(e,t,n){"use strict";e.exports={container:"container-_2b857",fab:"fab-_08a6e",heading:"heading-_1bbcd",logo:"logo-ed314b"}},61001:function(e,t,n){"use strict";e.exports={backdrop:"backdrop-_51706","close-button":"close-button-c3742a",closeButton:"close-button-c3742a",container:"container-fb8255",frame:"frame-_5d7ff",loading:"loading-b07c1f",rotate:"rotate-db7214"}},98497:function(e,t,n){"use strict";e.exports={container:"container-d972e2"}},78097:function(e,t,n){"use strict";n.r(t),n("95818"),n("15787"),n("62940"),n("31401"),n("20578"),n("72595"),n("71614"),n("57762"),n("53049"),n("59890"),n("52489"),n("37179"),n("45059"),n("48759"),n("7783"),n("20964"),n("74366"),n("14078"),n("10029"),n("21992"),n("92271"),n("83318"),n("92111"),n("72656"),n("71851"),n("5026"),n("87361"),n("54957"),n("52027"),n("48668"),n("42160"),n("36480"),n("12577"),n("16997"),n("64045"),n("71217"),n("29640"),n("11288"),n("91809"),n("43990"),n("41484"),n("41910"),n("18840"),n("79956"),n("27364"),n("43308"),n("87295"),n("60315"),n("86876"),n("59424"),n("97219"),n("3712"),n("44117"),n("45434"),n("75460"),n("44503"),n("76383"),n("41195"),n("4331"),n("5780"),n("51826"),n("2392"),n("70157"),n("80495"),n("87313"),n("56273"),n("75069"),n("3091"),n("8256"),n("65244"),n("31867"),n("56821"),n("12035"),n("26249"),n("22584"),n("57497"),n("56221"),n("25283"),n("44913"),n("43743"),n("46911"),n("98617"),n("75190"),n("89765"),n("2913"),n("71242"),n("47062"),n("5377"),n("19971"),n("75779"),n("36800"),n("79148"),n("99803"),n("84036"),n("76728"),n("26548"),n("54615"),n("16982"),n("67393"),n("17781"),n("83418"),n("92417"),n("29267"),n("75182"),n("51297"),n("5732"),n("80907"),n("24638"),n("25983"),n("12620"),n("42393"),n("11935"),n("31938"),n("42542"),n("29910"),n("97630"),n("1016"),n("31922"),n("76739"),n("66354"),n("14942"),n("66066"),n("71829"),n("59186"),n("81660"),n("48053"),n("76959"),n("53183"),n("8532"),n("6868"),n("71859"),n("5574"),n("36825"),n("93567"),n("3200"),n("3238"),n("21862"),n("69660"),n("33350"),n("45661"),n("62323"),n("25221"),n("71510"),n("5258"),n("52348"),n("63305"),n("82997"),n("64667"),n("76544"),n("72499"),n("4600"),n("7229"),n("78394"),n("71874"),n("54626"),n("11057"),n("76074"),n("54925"),n("8254"),n("76805"),n("98846"),n("84691"),n("49191"),n("50558"),n("18031"),n("92816"),n("53423"),n("10166"),n("88849"),n("99885"),n("83323"),n("57101"),n("68883"),n("51104"),n("14218"),n("43421"),n("53116"),n("66923"),n("68961"),n("45259"),n("2531"),n("74814"),n("80401"),n("58627"),n("92798"),n("97748"),n("34999"),n("25911"),n("94384"),n("15056"),n("86706"),n("48373"),n("96709"),n("82176"),n("82495"),n("44477"),n("79944"),n("97461"),n("98451"),n("31119"),n("92881"),n("85304"),n("14182"),n("58922"),n("15919"),n("55723"),n("85373"),n("61554"),n("42634"),n("34414"),n("94117"),n("84733"),n("40184"),n("52450"),n("23101"),n("80779"),n("52823"),n("37799"),n("25837"),n("50375"),n("18001"),n("33059"),n("23566"),n("76270"),n("64983"),n("80072"),n("79061"),n("35397"),n("96746"),n("76462"),n("37850"),n("68590"),n("1733"),n("39779"),n("51558"),n("5794"),n("92265"),n("79914"),n("29294"),n("32451"),n("26743"),n("26579"),n("41773"),n("75281"),n("76682"),n("49985"),n("42067"),n("93220"),n("7549"),n("99623"),n("72814"),n("52253"),n("93625"),n("92180"),n("154"),n("77904"),n("76179"),n("1587"),n("39177"),n("45109"),n("1336"),n("78136"),n("7005"),n("84960"),n("32642"),n("99149"),n("29814"),n("75870"),n("71571"),n("77313"),n("95577"),n("72340"),n("20995"),n("1254"),n("84594"),n("37806"),n("33132"),n("83367"),n("90602"),n("52400"),n("84518"),n("27093"),n("44904"),n("65272"),n("15262"),n("65308"),n("70241"),n("17905"),n("39022"),n("34353"),n("49128"),n("72104"),n("1676"),n("50882")},80161:function(e,t,n){"use strict";n.r(t),window.__assetPrefix__="/__devtools"},92774:function(e,t,n){"use strict";n.r(t),n.d(t,{DevtoolsActionButton:function(){return h}});var a=n("2382"),o=n("43382"),r=n("86834"),i=n("83982"),s=n("5872"),c=n("20421"),l=n("55058"),u=n("47081"),d=n("92366"),v=n("47232"),f=n("1233"),p=n("95981"),h=e=>{var t=e.def.assets.logo,[n,h]=(0,c.useToggle)(!1),g=(0,l.withQuery)(e.endpoint,{src:e.dataSource}),m=(0,p.useStickyDraggable)({clamp:!0}),[w,q]=(0,s.useState)(()=>{var e,t=null!==(e=localStorage.getItem("__modern_js_devtools_appearance"))&&void 0!==e?e:"light";return localStorage.setItem("__modern_js_devtools_appearance",t),t});return(0,c.useEvent)("storage",e=>{"__modern_js_devtools_appearance"===e.key&&q(e.newValue||void 0)}),(0,c.useEvent)("keydown",e=>{e.shiftKey&&e.altKey&&"KeyD"===e.code&&h()}),(0,r.jsxs)(i.Theme,{appearance:w,className:w,children:[(0,r.jsx)(u.default,{when:n,keepAlive:!0,children:(0,r.jsx)("div",{className:d.container,children:(0,r.jsx)(v.FrameBox,{src:g,onClose:()=>h(!1),style:{pointerEvents:m.isDragging?"none":"auto"}})})}),(0,r.jsx)(i.Flex,{asChild:!0,py:"1",px:"2",align:"center",children:(0,r.jsxs)("button",(0,o._)((0,a._)({className:d.fab,onClick:()=>h()},m.props),{children:[(0,r.jsx)("img",{className:d.logo,src:t,alt:""}),(0,r.jsx)(f.ReactComponent,{className:d.heading})]}))})]})}},47232:function(e,t,n){"use strict";n.r(t),n.d(t,{FrameBox:function(){return v}});var a=n("2382"),o=n("43382"),r=n("19672"),i=n("86834"),s=n("5872"),c=n("83982"),l=n("56971"),u=n("61001"),d=n("93328"),v=e=>{var{src:t,onClose:n}=e,v=(0,r._)(e,["src","onClose"]),[f,p]=(0,s.useState)(!1);return(0,i.jsxs)(c.Box,(0,o._)((0,a._)({className:u.container},v),{children:[(0,i.jsx)("iframe",{className:u.frame,onLoad:()=>p(!0),src:t}),(0,i.jsx)(d.ReactComponent,{className:u.closeButton,onClick:()=>null==n?void 0:n()}),(0,i.jsx)("div",{className:u.backdrop,style:{display:f?"none":void 0},children:(0,i.jsx)(l.LoaderIcon,{className:u.loading})})]}))}},56971:function(e,t,n){"use strict";n.r(t),n.d(t,{LoaderIcon:function(){return i}});var a=n("2382"),o=n("43382"),r=n("86834");n("5872");var i=e=>(0,r.jsx)("svg",(0,o._)((0,a._)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10",strokeDasharray:"56.548667764616276",strokeDashoffset:"14.137166941154069"})}))},47081:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var a=n("86834"),o=n("5872"),r=e=>{var t,n=null===(t=e.keepAlive)||void 0===t||t,{when:r}=e,i=(0,o.useRef)(!1);r&&(i.current=!0);var s=n?i.current:r;return s?(0,a.jsx)("div",{style:{display:!n||r?"unset":"none"},children:e.children}):null}},90309:function(e,t,n){"use strict";n.r(t);var a=n("2382"),o=n("86834"),r=n("60182"),i=n("55058"),s=n("52493"),c=n.n(s),l=n("25442"),u=n("98497"),d=n("92774"),{container:v,resourceQuery:f}=window._modern_js_devtools_app;v.classList.add(u.container);var p=(0,r.createRoot)(v),h=(0,i.parseQuery)(f);if(!c().isString(h.dataSource)||!c().isString(h.def)||!c().isString(h.endpoint))throw TypeError("Failed to parse client definitions of devtools: ".concat(f));var g={dataSource:h.dataSource,endpoint:h.endpoint,def:JSON.parse(h.def)};(0,l.waitClientConnection)(),p.render((0,o.jsx)(d.DevtoolsActionButton,(0,a._)({},g)))},96177:function(e,t,n){"use strict";n.r(t),n.d(t,{waitClientConnection:function(){return f}});var a,o,r=n("92255"),i=n("9880"),s=n.n(i),c=n("88739"),l=n("57662"),u=n("2046"),d=n("27542");var v=(a=(0,r._)(function*(e){var{port:t}=e,n=new d.ReactDevtoolsWallAgent,a=(0,c.createBirpc)({sendReactDevtoolsData:e=>(0,r._)(function*(){n.emit(e)})(),activateReactDevtools:()=>(0,r._)(function*(){var e=(0,l.createBridge)(window,n);(0,l.activate)(window,{bridge:e})})()},{post:e=>t.postMessage(e),on:e=>t.onmessage=e,deserialize:e=>e.data,timeout:500});return n.sender=e=>a.sendReactDevtoolsData(e),{client:a,wall:n}}),function(e){return a.apply(this,arguments)});var f=(o=(0,r._)(function*(){var e,t=s()();var n=(e=(0,r._)(function*(e){if(!!e.data&&"object"==typeof e.data){if(e.data.type===u.CLIENT_CONNECT_EVENT){var a=e.ports[0];if(!a)throw Error("Missing message channel port from devtools.");window.removeEventListener("message",n);var o=yield v({port:a});yield o.client.onMountPointConnect(),t.resolve(o)}}}),function(t){return e.apply(this,arguments)});return window.addEventListener("message",n),t.promise}),function(){return o.apply(this,arguments)})},25442:function(e,t,n){"use strict";n.r(t);var a=n("96177");n.es(a,t)},2046:function(e,t,n){"use strict";n.r(t),n.d(t,{CLIENT_CONNECT_EVENT:function(){return a}});var a="modern_js_devtools::client::connect"},95981:function(e,t,n){"use strict";n.r(t),n.d(t,{useStickyDraggable:function(){return c}});var a=n("5872"),o=n("20421"),r=(e,t)=>{var n,a;return null!==(a=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!==a&&a},i=e=>{var[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),a=n.findIndex(e=>{var{key:n}=e;return r(t.key,n)}),[o]=n.splice(a,1);return[t,o,n[0],n[1]]},s=e=>{var{top:t,left:n,height:a,width:o}=e.getBoundingClientRect();return{top:t,left:n,bottom:window.innerHeight-t-a,right:window.innerWidth-n-o}},c=e=>{var t,n=null!==(t=null==e?void 0:e.margin)&&void 0!==t?t:"10px",r="number"==typeof n?"".concat(n,"px"):n,[c,l]=(0,a.useState)(),u=()=>{if(c){c.moveable=!1;var{el:e}=c,[t]=i(s(e));e.style.transition="".concat(t.key," 200ms"),requestIdleCallback(()=>{l(void 0),e.style[t.key]=r})}},d=t=>{var n="touches"in t?t.touches[0]:t;if(null==c?void 0:c.moveable){var{startX:a,startY:o}=c;Math.pow(a-n.clientX,2)+Math.pow(o-n.clientY,2)>9&&(c.clickable=!1);var{width:s,height:l}=c.el.getBoundingClientRect(),u=n.clientY-c.offsetY,d=n.clientX-c.offsetX,v=i({top:u,left:d,bottom:window.innerHeight-u-l,right:window.innerWidth-d-s}).map(e=>{var{key:t,value:n}=e;return{key:t,value:"".concat(n,"px")}});if(null==e?void 0:e.clamp)for(var f of v){var p=["top","bottom"].includes(f.key)?window.innerHeight-l:window.innerWidth-s;f.value="clamp(".concat(r,", ").concat(f.value,", ").concat(p,"px)")}var[h,g,...m]=v,{style:w}=c.el;w.transition="",w[h.key]=h.value,w[g.key]=g.value,w[m[0].key]="auto",w[m[1].key]="auto"}};(0,o.useEvent)("blur",u),(0,o.useEvent)("mouseup",u),(0,o.useEvent)("touchend",u),(0,o.useEvent)("mousemove",d),(0,o.useEvent)("touchmove",d);var v=e=>{var t="touches"in e?e.touches[0]:e,n=e.currentTarget,a=n.getBoundingClientRect(),o=t.clientX-a.left;l({el:n,clickable:!0,moveable:!0,offsetX:o,offsetY:t.clientY-a.top,startX:t.clientX,startY:t.clientY})};return{isDragging:!!c,props:{onMouseDown:v,onTouchStart:v,onClickCapture:e=>{(null==c?void 0:c.clickable)||e.stopPropagation()}}}}},27542:function(e,t,n){"use strict";n.r(t),n.d(t,{ReactDevtoolsWallAgent:function(){return a}});class a{send(e,t,n){var a;null===(a=this.sender)||void 0===a||a.call(this,{event:e,payload:t,transferable:n})}listen(e){return this.listeners.includes(e)||this.listeners.push(e),e}emit(e){for(var t of this.listeners)t(e)}constructor(){this.listeners=[]}}}}]);