@vitejs/devtools 0.0.0-alpha.1 → 0.0.0-alpha.10

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 (70) hide show
  1. package/{bin.mjs → bin.js} +1 -1
  2. package/dist/cli-commands-CWESTkWI.js +97 -0
  3. package/dist/cli-commands.d.ts +18 -0
  4. package/dist/cli-commands.js +5 -0
  5. package/dist/cli.js +17 -0
  6. package/dist/client/inject.d.ts +4 -0
  7. package/dist/client/inject.js +33 -0
  8. package/dist/client/standalone/assets/index-BGdE2uyE.css +1 -0
  9. package/dist/client/standalone/assets/index-BXYGGkRo.js +7 -0
  10. package/dist/client/standalone/index.html +14 -0
  11. package/dist/client/webcomponents.d.ts +45 -0
  12. package/dist/client/webcomponents.js +1063 -0
  13. package/dist/dirs-DcSK9l9L.js +9 -0
  14. package/dist/dirs.d.ts +5 -0
  15. package/dist/dirs.js +3 -0
  16. package/dist/dist-B0hQ6r05.js +6779 -0
  17. package/dist/index-C-9eMTqf.d.ts +142 -0
  18. package/dist/index.d.ts +46 -0
  19. package/dist/index.js +4 -0
  20. package/dist/plugins-5VE4Mfdt.js +1365 -0
  21. package/package.json +50 -57
  22. package/dist/cli-B_fm1Ing.mjs +0 -1039
  23. package/dist/cli.d.mts +0 -1
  24. package/dist/cli.mjs +0 -3
  25. package/dist/dirs-6LDFDMFM.mjs +0 -7
  26. package/dist/dirs.d.mts +0 -4
  27. package/dist/dirs.mjs +0 -3
  28. package/dist/functions-BdbZxtmk.mjs +0 -3
  29. package/dist/functions-d6vvbndK.mjs +0 -234
  30. package/dist/index.d.mts +0 -13
  31. package/dist/index.mjs +0 -7
  32. package/dist/nitro.json +0 -15
  33. package/dist/node/cli.d.mts +0 -1
  34. package/dist/node/cli.mjs +0 -3
  35. package/dist/public/200.html +0 -16
  36. package/dist/public/404.html +0 -16
  37. package/dist/public/_nuxt/B4lqwDon.js +0 -1
  38. package/dist/public/_nuxt/BMB3EEfo.js +0 -1
  39. package/dist/public/_nuxt/BYYDnj5Q.js +0 -1
  40. package/dist/public/_nuxt/BeSFnMzD.js +0 -1
  41. package/dist/public/_nuxt/BfzgVO01.js +0 -1
  42. package/dist/public/_nuxt/BpyJ-U40.js +0 -1
  43. package/dist/public/_nuxt/BxkFQq1F.js +0 -1
  44. package/dist/public/_nuxt/C1DPtPHu.js +0 -1
  45. package/dist/public/_nuxt/C8oXVTvZ.js +0 -1
  46. package/dist/public/_nuxt/CWPvh8od.js +0 -1
  47. package/dist/public/_nuxt/CiwsH4Q6.js +0 -33
  48. package/dist/public/_nuxt/CsnZqsGp.js +0 -16
  49. package/dist/public/_nuxt/CzEHI6hC.js +0 -1
  50. package/dist/public/_nuxt/D-iXojuv.js +0 -1
  51. package/dist/public/_nuxt/DHpfOFMA.js +0 -1
  52. package/dist/public/_nuxt/DsbJux3u.js +0 -1
  53. package/dist/public/_nuxt/builds/latest.json +0 -1
  54. package/dist/public/_nuxt/builds/meta/3597016d-955b-44d8-83dd-f083d7311779.json +0 -1
  55. package/dist/public/_nuxt/diff.worker-9IK9E-UB.js +0 -10
  56. package/dist/public/_nuxt/entry.BHghYYEP.css +0 -1
  57. package/dist/public/_nuxt/error-404.7Y6KY23b.css +0 -1
  58. package/dist/public/_nuxt/error-500.CaUb23JJ.css +0 -1
  59. package/dist/public/_nuxt/graph.BGBTj9Q7.css +0 -1
  60. package/dist/public/dot-grid-dark.png +0 -0
  61. package/dist/public/dot-grid-light.png +0 -0
  62. package/dist/public/favicon.svg +0 -15
  63. package/dist/public/fonts/dmmono-612bc94f.woff2 +0 -0
  64. package/dist/public/fonts/dmmono-cbe07c46.woff2 +0 -0
  65. package/dist/public/fonts/dmsans-b28079ff.woff2 +0 -0
  66. package/dist/public/fonts/dmsans-b4f1d45c.woff2 +0 -0
  67. package/dist/public/index.html +0 -16
  68. package/dist/public/vite-devtools.svg +0 -17
  69. /package/{LICENSE.md → LICENSE} +0 -0
  70. /package/dist/{cli-C3YoliaZ.d.mts → cli.d.ts} +0 -0
@@ -0,0 +1,1063 @@
1
+ import { A as withCtx, B as toDisplayString, C as openBlock, D as useTemplateRef, E as useModel, F as shallowRef, I as toRefs, L as unref, M as markRaw, N as reactive, O as watch, P as ref, R as normalizeClass, S as onUnmounted, T as renderSlot, _ as createVNode, a as useWindowSize, b as nextTick, c as vShow, d as computed, f as createBaseVNode, g as createStaticVNode, h as createElementBlock, i as useScreenSafeArea, j as withDirectives, k as watchEffect, l as withModifiers, m as createCommentVNode, n as useEventListener, o as toRefs$1, p as createBlock, s as defineCustomElement, t as useElementBounding, u as Fragment, v as defineComponent, w as renderList, x as onMounted, y as mergeModels, z as normalizeStyle } from "../dist-B0hQ6r05.js";
2
+
3
+ //#region src/client/webcomponents/.generated/css.ts
4
+ var css_default = "*{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before{--un-content:\"\"}:after{--un-content:\"\"}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button{-webkit-appearance:button;background-color:transparent;background-image:none}[type=button]{-webkit-appearance:button;background-color:transparent;background-image:none}[type=reset]{-webkit-appearance:button;background-color:transparent;background-image:none}[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder{opacity:1;color:#9ca3af}textarea::placeholder{opacity:1;color:#9ca3af}button{cursor:pointer}[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--un-text-opacity:100%}.vite-devtools-resize-handle-horizontal{cursor:ns-resize;-webkit-border-radius:.375rem;border-radius:.375rem;height:10px;margin-top:-5px;margin-bottom:-5px;position:absolute;left:6px;right:6px}.vite-devtools-resize-handle-vertical{cursor:ew-resize;-webkit-border-radius:.375rem;border-radius:.375rem;width:10px;margin-left:-5px;margin-right:-5px;position:absolute;top:6px;bottom:0}.vite-devtools-resize-handle-corner{-webkit-border-radius:.375rem;border-radius:.375rem;width:14px;height:14px;margin:-6px;position:absolute}.vite-devtools-resize-handle{z-index:2147483644}.vite-devtools-resize-handle:hover{background-color:rgba(156,163,175,.1)}#vite-devtools-anchor{z-index:2147483644;box-sizing:border-box;transform-origin:50%;width:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:15px;position:fixed;transform:translate(-50%,-50%)rotate(0)}#vite-devtools-anchor #vite-devtools-dock-container{width:max-content;min-width:100px;height:40px;display:flex;position:absolute;top:0;left:0;transform:translate(-50%,-50%)}#vite-devtools-anchor.vite-devtools-vertical #vite-devtools-dock-container{transition-property:all;transition-duration:.5s;transition-timing-function:cubic-bezier(.4,0,.2,1);transform:translate(-50%,-50%)rotate(90deg)}#vite-devtools-anchor #vite-devtools-dock{touch-action:none;user-select:none;--vdt-border-opacity:.13;border-width:1px;border-color:rgba(136,136,136,var(--vdt-border-opacity));--vdt-backdrop-blur:blur(5px);height:40px;backdrop-filter:var(--vdt-backdrop-blur)var(--vdt-backdrop-brightness)var(--vdt-backdrop-contrast)var(--vdt-backdrop-grayscale)var(--vdt-backdrop-hue-rotate)var(--vdt-backdrop-invert)var(--vdt-backdrop-opacity)var(--vdt-backdrop-saturate)var(--vdt-backdrop-sepia);--vdt-text-opacity:1;color:rgba(255,255,255,var(--vdt-text-opacity));--vdt-shadow:var(--vdt-shadow-inset)0 1px 3px 0 var(--vdt-shadow-color,rgba(0,0,0,.1)),var(--vdt-shadow-inset)0 1px 2px -1px var(--vdt-shadow-color,rgba(0,0,0,.1));box-shadow:var(--vdt-ring-offset-shadow),var(--vdt-ring-shadow),var(--vdt-shadow);width:calc-size(max-content,size);background-color:rgba(255,255,255,.75);-webkit-border-radius:9999px;border-radius:9999px;margin:auto;padding-left:1rem;padding-right:1rem;transition-property:all;transition-duration:.5s;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (prefers-color-scheme:dark){#vite-devtools-anchor #vite-devtools-dock{background-color:rgba(17,17,17,.75)}}#vite-devtools-anchor.vite-devtools-minimized #vite-devtools-dock{width:22px;height:22px;padding:2px 0}#vite-devtools-anchor.vite-devtools-minimized .vite-devtools-dock-bracket{opacity:.5;width:.375rem}#vite-devtools-anchor:hover #vite-devtools-glowing{opacity:.6}#vite-devtools-anchor #vite-devtools-glowing{pointer-events:none;z-index:-1;opacity:0;--vdt-blur:blur(60px);width:160px;height:160px;filter:var(--vdt-blur)var(--vdt-brightness)var(--vdt-contrast)var(--vdt-drop-shadow)var(--vdt-grayscale)var(--vdt-hue-rotate)var(--vdt-invert)var(--vdt-saturate)var(--vdt-sepia);background-image:linear-gradient(45deg,#61d9ff,#7a23a1,#715ebd);-webkit-border-radius:9999px;border-radius:9999px;transition-property:all;transition-duration:1s;transition-timing-function:cubic-bezier(0,0,.2,1);position:absolute;top:0;left:0;transform:translate(-50%,-50%)}@media print{#vite-devtools-anchor{display:none}}*{--vdt-rotate:0;--vdt-rotate-x:0;--vdt-rotate-y:0;--vdt-rotate-z:0;--vdt-scale-x:1;--vdt-scale-y:1;--vdt-scale-z:1;--vdt-skew-x:0;--vdt-skew-y:0;--vdt-translate-x:0;--vdt-translate-y:0;--vdt-translate-z:0;--vdt-pan-x: ;--vdt-pan-y: ;--vdt-pinch-zoom: ;--vdt-scroll-snap-strictness:proximity;--vdt-ordinal: ;--vdt-slashed-zero: ;--vdt-numeric-figure: ;--vdt-numeric-spacing: ;--vdt-numeric-fraction: ;--vdt-border-spacing-x:0;--vdt-border-spacing-y:0;--vdt-ring-offset-shadow:0 0 transparent;--vdt-ring-shadow:0 0 transparent;--vdt-shadow-inset: ;--vdt-shadow:0 0 transparent;--vdt-ring-inset: ;--vdt-ring-offset-width:0px;--vdt-ring-offset-color:#fff;--vdt-ring-width:0px;--vdt-ring-color:rgba(147,197,253,.5);--vdt-blur: ;--vdt-brightness: ;--vdt-contrast: ;--vdt-drop-shadow: ;--vdt-grayscale: ;--vdt-hue-rotate: ;--vdt-invert: ;--vdt-saturate: ;--vdt-sepia: ;--vdt-backdrop-blur: ;--vdt-backdrop-brightness: ;--vdt-backdrop-contrast: ;--vdt-backdrop-grayscale: ;--vdt-backdrop-hue-rotate: ;--vdt-backdrop-invert: ;--vdt-backdrop-opacity: ;--vdt-backdrop-saturate: ;--vdt-backdrop-sepia: }:before{--vdt-rotate:0;--vdt-rotate-x:0;--vdt-rotate-y:0;--vdt-rotate-z:0;--vdt-scale-x:1;--vdt-scale-y:1;--vdt-scale-z:1;--vdt-skew-x:0;--vdt-skew-y:0;--vdt-translate-x:0;--vdt-translate-y:0;--vdt-translate-z:0;--vdt-pan-x: ;--vdt-pan-y: ;--vdt-pinch-zoom: ;--vdt-scroll-snap-strictness:proximity;--vdt-ordinal: ;--vdt-slashed-zero: ;--vdt-numeric-figure: ;--vdt-numeric-spacing: ;--vdt-numeric-fraction: ;--vdt-border-spacing-x:0;--vdt-border-spacing-y:0;--vdt-ring-offset-shadow:0 0 transparent;--vdt-ring-shadow:0 0 transparent;--vdt-shadow-inset: ;--vdt-shadow:0 0 transparent;--vdt-ring-inset: ;--vdt-ring-offset-width:0px;--vdt-ring-offset-color:#fff;--vdt-ring-width:0px;--vdt-ring-color:rgba(147,197,253,.5);--vdt-blur: ;--vdt-brightness: ;--vdt-contrast: ;--vdt-drop-shadow: ;--vdt-grayscale: ;--vdt-hue-rotate: ;--vdt-invert: ;--vdt-saturate: ;--vdt-sepia: ;--vdt-backdrop-blur: ;--vdt-backdrop-brightness: ;--vdt-backdrop-contrast: ;--vdt-backdrop-grayscale: ;--vdt-backdrop-hue-rotate: ;--vdt-backdrop-invert: ;--vdt-backdrop-opacity: ;--vdt-backdrop-saturate: ;--vdt-backdrop-sepia: }:after{--vdt-rotate:0;--vdt-rotate-x:0;--vdt-rotate-y:0;--vdt-rotate-z:0;--vdt-scale-x:1;--vdt-scale-y:1;--vdt-scale-z:1;--vdt-skew-x:0;--vdt-skew-y:0;--vdt-translate-x:0;--vdt-translate-y:0;--vdt-translate-z:0;--vdt-pan-x: ;--vdt-pan-y: ;--vdt-pinch-zoom: ;--vdt-scroll-snap-strictness:proximity;--vdt-ordinal: ;--vdt-slashed-zero: ;--vdt-numeric-figure: ;--vdt-numeric-spacing: ;--vdt-numeric-fraction: ;--vdt-border-spacing-x:0;--vdt-border-spacing-y:0;--vdt-ring-offset-shadow:0 0 transparent;--vdt-ring-shadow:0 0 transparent;--vdt-shadow-inset: ;--vdt-shadow:0 0 transparent;--vdt-ring-inset: ;--vdt-ring-offset-width:0px;--vdt-ring-offset-color:#fff;--vdt-ring-width:0px;--vdt-ring-color:rgba(147,197,253,.5);--vdt-blur: ;--vdt-brightness: ;--vdt-contrast: ;--vdt-drop-shadow: ;--vdt-grayscale: ;--vdt-hue-rotate: ;--vdt-invert: ;--vdt-saturate: ;--vdt-sepia: ;--vdt-backdrop-blur: ;--vdt-backdrop-brightness: ;--vdt-backdrop-contrast: ;--vdt-backdrop-grayscale: ;--vdt-backdrop-hue-rotate: ;--vdt-backdrop-invert: ;--vdt-backdrop-opacity: ;--vdt-backdrop-saturate: ;--vdt-backdrop-sepia: }::backdrop{--vdt-rotate:0;--vdt-rotate-x:0;--vdt-rotate-y:0;--vdt-rotate-z:0;--vdt-scale-x:1;--vdt-scale-y:1;--vdt-scale-z:1;--vdt-skew-x:0;--vdt-skew-y:0;--vdt-translate-x:0;--vdt-translate-y:0;--vdt-translate-z:0;--vdt-pan-x: ;--vdt-pan-y: ;--vdt-pinch-zoom: ;--vdt-scroll-snap-strictness:proximity;--vdt-ordinal: ;--vdt-slashed-zero: ;--vdt-numeric-figure: ;--vdt-numeric-spacing: ;--vdt-numeric-fraction: ;--vdt-border-spacing-x:0;--vdt-border-spacing-y:0;--vdt-ring-offset-shadow:0 0 transparent;--vdt-ring-shadow:0 0 transparent;--vdt-shadow-inset: ;--vdt-shadow:0 0 transparent;--vdt-ring-inset: ;--vdt-ring-offset-width:0px;--vdt-ring-offset-color:#fff;--vdt-ring-width:0px;--vdt-ring-color:rgba(147,197,253,.5);--vdt-blur: ;--vdt-brightness: ;--vdt-contrast: ;--vdt-drop-shadow: ;--vdt-grayscale: ;--vdt-hue-rotate: ;--vdt-invert: ;--vdt-saturate: ;--vdt-sepia: ;--vdt-backdrop-blur: ;--vdt-backdrop-brightness: ;--vdt-backdrop-contrast: ;--vdt-backdrop-grayscale: ;--vdt-backdrop-hue-rotate: ;--vdt-backdrop-invert: ;--vdt-backdrop-opacity: ;--vdt-backdrop-saturate: ;--vdt-backdrop-sepia: }.container{width:100%}.border-base{--vdt-border-opacity:.13;border-color:rgba(136,136,136,var(--vdt-border-opacity))}.bg-glass{--vdt-backdrop-blur:blur(5px);backdrop-filter:var(--vdt-backdrop-blur)var(--vdt-backdrop-brightness)var(--vdt-backdrop-contrast)var(--vdt-backdrop-grayscale)var(--vdt-backdrop-hue-rotate)var(--vdt-backdrop-invert)var(--vdt-backdrop-opacity)var(--vdt-backdrop-saturate)var(--vdt-backdrop-sepia);background-color:rgba(255,255,255,.75)}@media (prefers-color-scheme:dark){.bg-glass{background-color:rgba(17,17,17,.75)}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{top:0;bottom:0;left:0;right:0}.bottom-0{bottom:0}.left--1{left:-.25rem}.left-0{left:0}.left-1\\/2{left:50%}.right--1{right:-.25rem}.right-0{right:0}.top-0{top:0}.top-1\\/2{top:50%}.z--1{z-index:-1}.z-\\[2147483645\\]{z-index:2147483645}.m-auto{margin:auto}.h-3{height:.75rem}.h-5{height:1.25rem}.h-full{height:100%}.w-2\\.5{width:.625rem}.w-3{width:.75rem}.w-5{width:1.25rem}.w-full{width:100%}.w-max{width:max-content}.flex{display:flex}.translate-x--1\\/2{--vdt-translate-x:-50%;transform:translateX(var(--vdt-translate-x))translateY(var(--vdt-translate-y))translateZ(var(--vdt-translate-z))rotate(var(--vdt-rotate))rotateX(var(--vdt-rotate-x))rotateY(var(--vdt-rotate-y))rotateZ(var(--vdt-rotate-z))skewX(var(--vdt-skew-x))skewY(var(--vdt-skew-y))scaleX(var(--vdt-scale-x))scaleY(var(--vdt-scale-y))scaleZ(var(--vdt-scale-z))}.translate-y--1\\/2{--vdt-translate-y:-50%;transform:translateX(var(--vdt-translate-x))translateY(var(--vdt-translate-y))translateZ(var(--vdt-translate-z))rotate(var(--vdt-rotate))rotateX(var(--vdt-rotate-x))rotateY(var(--vdt-rotate-y))rotateZ(var(--vdt-rotate-z))skewX(var(--vdt-skew-x))skewY(var(--vdt-skew-y))scaleX(var(--vdt-scale-x))scaleY(var(--vdt-scale-y))scaleZ(var(--vdt-scale-z))}.rotate-270{--vdt-rotate-x:0;--vdt-rotate-y:0;--vdt-rotate-z:0;--vdt-rotate:270deg;transform:translateX(var(--vdt-translate-x))translateY(var(--vdt-translate-y))translateZ(var(--vdt-translate-z))rotate(var(--vdt-rotate))rotateX(var(--vdt-rotate-x))rotateY(var(--vdt-rotate-y))rotateZ(var(--vdt-rotate-z))skewX(var(--vdt-skew-x))skewY(var(--vdt-skew-y))scaleX(var(--vdt-scale-x))scaleY(var(--vdt-scale-y))scaleZ(var(--vdt-scale-z))}.scale-120{--vdt-scale-x:1.2;--vdt-scale-y:1.2;transform:translateX(var(--vdt-translate-x))translateY(var(--vdt-translate-y))translateZ(var(--vdt-translate-z))rotate(var(--vdt-rotate))rotateX(var(--vdt-rotate-x))rotateY(var(--vdt-rotate-y))rotateZ(var(--vdt-rotate-z))skewX(var(--vdt-skew-x))skewY(var(--vdt-skew-y))scaleX(var(--vdt-scale-x))scaleY(var(--vdt-scale-y))scaleZ(var(--vdt-scale-z))}.hover\\:scale-120:hover{--vdt-scale-x:1.2;--vdt-scale-y:1.2;transform:translateX(var(--vdt-translate-x))translateY(var(--vdt-translate-y))translateZ(var(--vdt-translate-z))rotate(var(--vdt-rotate))rotateX(var(--vdt-rotate-x))rotateY(var(--vdt-rotate-y))rotateZ(var(--vdt-rotate-z))skewX(var(--vdt-skew-x))skewY(var(--vdt-skew-y))scaleX(var(--vdt-scale-x))scaleY(var(--vdt-scale-y))scaleZ(var(--vdt-scale-z))}.scale-y--100{--vdt-scale-y:-1;transform:translateX(var(--vdt-translate-x))translateY(var(--vdt-translate-y))translateZ(var(--vdt-translate-z))rotate(var(--vdt-rotate))rotateX(var(--vdt-rotate-x))rotateY(var(--vdt-rotate-y))rotateZ(var(--vdt-rotate-z))skewX(var(--vdt-skew-x))skewY(var(--vdt-skew-y))scaleX(var(--vdt-scale-x))scaleY(var(--vdt-scale-y))scaleZ(var(--vdt-scale-z))}.transform{transform:translateX(var(--vdt-translate-x))translateY(var(--vdt-translate-y))translateZ(var(--vdt-translate-z))rotate(var(--vdt-rotate))rotateX(var(--vdt-rotate-x))rotateY(var(--vdt-rotate-y))rotateZ(var(--vdt-rotate-z))skewX(var(--vdt-skew-x))skewY(var(--vdt-skew-y))scaleX(var(--vdt-scale-x))scaleY(var(--vdt-scale-y))scaleZ(var(--vdt-scale-z))}.select-none{user-select:none}.resize{resize:both}.items-center{align-items:center}.justify-center{justify-content:center}.border{border-width:1px}.rounded{-webkit-border-radius:.25rem;border-radius:.25rem}.rounded-lg{-webkit-border-radius:.5rem;border-radius:.5rem}.rounded-xl{-webkit-border-radius:.75rem;border-radius:.75rem}.hover\\:bg-\\[\\#8881\\]:hover{--vdt-bg-opacity:.07;background-color:rgba(136,136,136,var(--vdt-bg-opacity))}.fill-black{--vdt-fill-opacity:1;fill:rgba(0,0,0,var(--vdt-fill-opacity))}.p1{padding:.25rem}.p1\\.5{padding:.375rem}.px{padding-left:1rem;padding-right:1rem}.px2{padding-left:.5rem;padding-right:.5rem}.text-xs{font-size:.75rem;line-height:1rem}.text-purple{--vdt-text-opacity:1;color:rgba(192,132,252,var(--vdt-text-opacity))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.op0,.opacity-0{opacity:0}.op100,.opacity-100{opacity:1}.op50{opacity:.5}.op75{opacity:.75}.shadow{--vdt-shadow:var(--vdt-shadow-inset)0 1px 3px 0 var(--vdt-shadow-color,rgba(0,0,0,.1)),var(--vdt-shadow-inset)0 1px 2px -1px var(--vdt-shadow-color,rgba(0,0,0,.1));box-shadow:var(--vdt-ring-offset-shadow),var(--vdt-ring-shadow),var(--vdt-shadow)}.saturate-0{--vdt-saturate:saturate(0);filter:var(--vdt-blur)var(--vdt-brightness)var(--vdt-contrast)var(--vdt-drop-shadow)var(--vdt-grayscale)var(--vdt-hue-rotate)var(--vdt-invert)var(--vdt-saturate)var(--vdt-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}@media (prefers-color-scheme:dark){.dark\\:fill-white{--vdt-fill-opacity:1;fill:rgba(255,255,255,var(--vdt-fill-opacity))}}";
5
+
6
+ //#endregion
7
+ //#region src/client/webcomponents/state/floating-tooltip.ts
8
+ const state = shallowRef(null);
9
+ function setFloatingTooltip(info) {
10
+ state.value = info;
11
+ }
12
+ function useFloatingTooltip() {
13
+ return state;
14
+ }
15
+
16
+ //#endregion
17
+ //#region src/client/webcomponents/components/DockIcon.vue
18
+ const _hoisted_1$6 = ["srcset"];
19
+ const _hoisted_2 = ["srcset"];
20
+ const _hoisted_3 = ["src", "alt"];
21
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
22
+ __name: "DockIcon",
23
+ props: {
24
+ icon: {},
25
+ title: {}
26
+ },
27
+ setup(__props) {
28
+ const props = __props;
29
+ function getIconUrl(str, color) {
30
+ if (str.includes("/")) return str;
31
+ const match = str.match(/^([\w-]+):([\w-]+)$/);
32
+ if (match) {
33
+ const [, collection, icon2] = match;
34
+ return `https://api.iconify.design/${collection}/${icon2}.svg${color === "dark" ? "?color=%23eee" : "?color=%23111"}`;
35
+ }
36
+ return str;
37
+ }
38
+ const icon = computed(() => {
39
+ return {
40
+ dark: getIconUrl(props.icon, "dark"),
41
+ light: getIconUrl(props.icon, "light")
42
+ };
43
+ });
44
+ return (_ctx, _cache) => {
45
+ return openBlock(), createElementBlock("picture", null, [
46
+ createBaseVNode("source", {
47
+ srcset: icon.value.dark,
48
+ media: "(prefers-color-scheme: dark)"
49
+ }, null, 8, _hoisted_1$6),
50
+ createBaseVNode("source", {
51
+ srcset: icon.value.light,
52
+ media: "(prefers-color-scheme: light)"
53
+ }, null, 8, _hoisted_2),
54
+ createBaseVNode("img", {
55
+ src: icon.value.light,
56
+ alt: __props.title,
57
+ class: "w-full h-full m-auto",
58
+ draggable: "false"
59
+ }, null, 8, _hoisted_3)
60
+ ]);
61
+ };
62
+ }
63
+ });
64
+ var DockIcon_default = _sfc_main$12;
65
+
66
+ //#endregion
67
+ //#region src/client/webcomponents/components/DockEntry.vue
68
+ const _hoisted_1$5 = ["title"];
69
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
70
+ __name: "DockEntry",
71
+ props: {
72
+ dock: {},
73
+ isSelected: { type: Boolean },
74
+ isDimmed: { type: Boolean },
75
+ isVertical: { type: Boolean }
76
+ },
77
+ setup(__props) {
78
+ const props = __props;
79
+ const button = useTemplateRef("button");
80
+ function updatePos() {
81
+ const rect = button.value?.getBoundingClientRect();
82
+ if (rect) setFloatingTooltip({
83
+ text: props.dock.title,
84
+ width: rect.width,
85
+ height: rect.height,
86
+ left: rect.left,
87
+ top: rect.top
88
+ });
89
+ }
90
+ function showTitle() {
91
+ updatePos();
92
+ }
93
+ function clearTitle() {
94
+ setFloatingTooltip(null);
95
+ }
96
+ useEventListener("pointerdown", () => {
97
+ setFloatingTooltip(null);
98
+ });
99
+ return (_ctx, _cache) => {
100
+ return openBlock(), createElementBlock("div", {
101
+ key: __props.dock.id,
102
+ class: "relative group vite-devtools-dock-entry",
103
+ onPointerenter: showTitle,
104
+ onPointerleave: clearTitle
105
+ }, [createBaseVNode("button", {
106
+ ref_key: "button",
107
+ ref: button,
108
+ title: __props.dock.title,
109
+ class: normalizeClass([[
110
+ __props.isVertical ? "rotate-270" : "",
111
+ __props.isDimmed ? "op50 saturate-0" : "",
112
+ __props.isSelected ? "scale-120 text-purple" : ""
113
+ ], "flex items-center justify-center p1.5 rounded-xl hover:bg-[#8881] hover:scale-120 transition-all duration-300 relative"])
114
+ }, [createVNode(DockIcon_default, {
115
+ icon: __props.dock.icon,
116
+ title: __props.dock.title,
117
+ class: "w-5 h-5 select-none"
118
+ }, null, 8, ["icon", "title"])], 10, _hoisted_1$5)], 32);
119
+ };
120
+ }
121
+ });
122
+ var DockEntry_default = _sfc_main$11;
123
+
124
+ //#endregion
125
+ //#region src/client/webcomponents/components/DockEntries.vue
126
+ const _hoisted_1$4 = { class: "vite-devtools-dock-entries flex items-center w-full h-full justify-center transition-opacity duration-300" };
127
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
128
+ __name: "DockEntries",
129
+ props: {
130
+ selected: {},
131
+ isVertical: { type: Boolean },
132
+ entries: {}
133
+ },
134
+ emits: ["select"],
135
+ setup(__props, { emit: __emit }) {
136
+ const props = __props;
137
+ const emit = __emit;
138
+ const { selected, isVertical, entries } = toRefs(props);
139
+ function toggleDockEntry(dock) {
140
+ if (selected.value?.id === dock.id) emit("select", void 0);
141
+ else emit("select", dock);
142
+ }
143
+ return (_ctx, _cache) => {
144
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(entries), (dock) => {
145
+ return openBlock(), createBlock(DockEntry_default, {
146
+ key: dock.id,
147
+ dock,
148
+ "is-selected": unref(selected)?.id === dock.id,
149
+ "is-dimmed": unref(selected) && unref(selected).id !== dock.id,
150
+ "is-vertical": unref(isVertical),
151
+ onClick: ($event) => toggleDockEntry(dock)
152
+ }, null, 8, [
153
+ "dock",
154
+ "is-selected",
155
+ "is-dimmed",
156
+ "is-vertical",
157
+ "onClick"
158
+ ]);
159
+ }), 128))]);
160
+ };
161
+ }
162
+ });
163
+ var DockEntries_default = _sfc_main$10;
164
+
165
+ //#endregion
166
+ //#region \0/plugin-vue/export-helper
167
+ var export_helper_default = (sfc, props) => {
168
+ const target = sfc.__vccOpts || sfc;
169
+ for (const [key, val] of props) target[key] = val;
170
+ return target;
171
+ };
172
+
173
+ //#endregion
174
+ //#region src/client/webcomponents/components/icons/BracketLeft.vue
175
+ const _sfc_main$9 = {};
176
+ const _hoisted_1$3 = {
177
+ viewBox: "0 0 9 20",
178
+ fill: "none",
179
+ xmlns: "http://www.w3.org/2000/svg"
180
+ };
181
+ function _sfc_render$2(_ctx, _cache) {
182
+ return openBlock(), createElementBlock("svg", _hoisted_1$3, [..._cache[0] || (_cache[0] = [createBaseVNode("path", {
183
+ d: "M4.95763 0C1.02563 5.628 1.00263 14.351 4.95763 20H7.61363C3.65963 14.35 3.68363 5.627 7.61363 0H4.95763Z",
184
+ class: "fill-black dark:fill-white"
185
+ }, null, -1)])]);
186
+ }
187
+ var BracketLeft_default = /* @__PURE__ */ export_helper_default(_sfc_main$9, [["render", _sfc_render$2]]);
188
+
189
+ //#endregion
190
+ //#region src/client/webcomponents/components/icons/BracketRight.vue
191
+ const _sfc_main$8 = {};
192
+ const _hoisted_1$2 = {
193
+ viewBox: "0 0 9 20",
194
+ fill: "none",
195
+ xmlns: "http://www.w3.org/2000/svg"
196
+ };
197
+ function _sfc_render$1(_ctx, _cache) {
198
+ return openBlock(), createElementBlock("svg", _hoisted_1$2, [..._cache[0] || (_cache[0] = [createBaseVNode("path", {
199
+ d: "M4.246 10H6.903C6.902 6.407 5.913 2.816 3.946 0H1.29C3.256 2.816 4.244 6.407 4.246 10ZM8.935 14.907H6.27C6.46624 14.1665 6.61752 13.4148 6.723 12.656H4.066C3.96052 13.4148 3.80924 14.1665 3.613 14.907H0.944C0.703507 15.8176 0.387753 16.7067 0 17.565H2.669C2.2859 18.4179 1.82388 19.2331 1.289 20H3.945C4.47988 19.2331 4.9419 18.4179 5.325 17.565H7.99C8.376 16.714 8.691 15.823 8.935 14.907Z",
200
+ class: "fill-black dark:fill-white"
201
+ }, null, -1)])]);
202
+ }
203
+ var BracketRight_default = /* @__PURE__ */ export_helper_default(_sfc_main$8, [["render", _sfc_render$1]]);
204
+
205
+ //#endregion
206
+ //#region src/client/webcomponents/components/icons/VitePlusCore.vue
207
+ const _sfc_main$7 = {};
208
+ const _hoisted_1$1 = {
209
+ viewBox: "0 0 22 22",
210
+ fill: "none",
211
+ xmlns: "http://www.w3.org/2000/svg"
212
+ };
213
+ function _sfc_render(_ctx, _cache) {
214
+ return openBlock(), createElementBlock("svg", _hoisted_1$1, [..._cache[0] || (_cache[0] = [createStaticVNode("<g clip-path=\"url(#clip0_2_2)\"><path d=\"M11.85 20.535C11.7881 20.6144 11.7029 20.6726 11.6064 20.7012C11.5098 20.7298 11.4067 20.7276 11.3115 20.6947C11.2163 20.6619 11.1337 20.6001 11.0754 20.5181C11.017 20.436 10.9858 20.3377 10.986 20.237V15.834C10.986 15.5775 10.8841 15.3316 10.7028 15.1502C10.5214 14.9689 10.2755 14.867 10.019 14.867H5.157C5.06821 14.867 4.98114 14.8426 4.90534 14.7964C4.82954 14.7501 4.76795 14.6839 4.72734 14.6049C4.68673 14.526 4.66866 14.4374 4.67513 14.3488C4.6816 14.2603 4.71235 14.1752 4.764 14.103L7.961 9.62801C8.06459 9.48335 8.12626 9.31291 8.13923 9.13546C8.15219 8.95801 8.11594 8.78042 8.03448 8.62224C7.95301 8.46406 7.82948 8.33143 7.67749 8.23893C7.52549 8.14644 7.35093 8.09768 7.173 8.09801H1.29C1.20122 8.09803 1.11414 8.07359 1.03834 8.02736C0.962542 7.98113 0.900953 7.91489 0.86034 7.83594C0.819727 7.75699 0.801662 7.66837 0.80813 7.57982C0.814597 7.49127 0.845347 7.40622 0.897 7.33401L5.04 1.53301C5.08452 1.46999 5.14358 1.41864 5.21217 1.38331C5.28075 1.34797 5.35685 1.32969 5.434 1.33001H17.782C18.175 1.33001 18.404 1.77501 18.175 2.09401L14.978 6.57001C14.521 7.21001 14.978 8.10001 15.766 8.10001H20.627C21.031 8.10001 21.257 8.56401 21.007 8.88201L11.85 20.535Z\" fill=\"#6254FE\"></path><mask id=\"mask0_2_2\" style=\"mask-type:alpha;\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"1\" width=\"22\" height=\"20\"><path d=\"M11.85 20.535C11.7881 20.6144 11.7029 20.6726 11.6064 20.7012C11.5098 20.7298 11.4067 20.7276 11.3115 20.6947C11.2163 20.6619 11.1337 20.6001 11.0754 20.5181C11.017 20.436 10.9858 20.3377 10.986 20.237V15.834C10.986 15.5775 10.8841 15.3316 10.7028 15.1502C10.5214 14.9689 10.2755 14.867 10.019 14.867H5.157C5.06821 14.867 4.98114 14.8426 4.90534 14.7964C4.82954 14.7501 4.76795 14.6839 4.72734 14.6049C4.68673 14.526 4.66866 14.4374 4.67513 14.3488C4.6816 14.2603 4.71235 14.1752 4.764 14.103L7.961 9.62801C8.06459 9.48335 8.12626 9.31291 8.13923 9.13546C8.15219 8.95801 8.11594 8.78042 8.03448 8.62224C7.95301 8.46406 7.82948 8.33143 7.67749 8.23893C7.52549 8.14644 7.35093 8.09768 7.173 8.09801H1.29C1.20122 8.09803 1.11414 8.07359 1.03834 8.02736C0.962542 7.98113 0.900953 7.91489 0.86034 7.83594C0.819727 7.75699 0.801662 7.66837 0.80813 7.57982C0.814597 7.49127 0.845347 7.40622 0.897 7.33401L5.04 1.53301C5.08452 1.46999 5.14358 1.41864 5.21217 1.38331C5.28075 1.34797 5.35685 1.32969 5.434 1.33001H17.782C18.175 1.33001 18.404 1.77501 18.175 2.09401L14.978 6.57001C14.521 7.21001 14.978 8.10001 15.766 8.10001H20.627C21.031 8.10001 21.257 8.56401 21.007 8.88201L11.85 20.535Z\" fill=\"#833BFF\"></path></mask><g mask=\"url(#mask0_2_2)\"><g filter=\"url(#filter0_f_2_2)\"><path d=\"M11.4271 17.1119C11.4313 18.412 8.62134 19.475 5.1508 19.4863C1.68026 19.4975 -1.13659 18.4528 -1.14081 17.1527C-1.14503 15.8526 1.66497 14.7896 5.13551 14.7783C8.60605 14.767 11.4229 15.8118 11.4271 17.1119Z\" fill=\"#EDE6FF\"></path></g><g filter=\"url(#filter1_f_2_2)\"><path d=\"M9.48364 9.06048C9.49161 11.5148 3.78614 13.523 -3.25987 13.5459C-10.3059 13.5688 -16.0243 11.5977 -16.0322 9.14332C-16.0402 6.68898 -10.3347 4.6808 -3.28872 4.65792C3.75729 4.63505 9.47567 6.60614 9.48364 9.06048Z\" fill=\"#EDE6FF\"></path></g><g filter=\"url(#filter2_f_2_2)\"><path d=\"M9.53104 8.43813C9.53526 9.7382 3.70543 10.8111 -3.49025 10.8344C-10.6859 10.8578 -16.5226 9.82279 -16.5268 8.52272C-16.531 7.22265 -10.7012 6.1498 -3.50554 6.12644C3.69014 6.10308 9.52682 7.13806 9.53104 8.43813Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter3_f_2_2)\"><path d=\"M11.5916 16.1293C11.5958 17.4293 5.74448 18.5022 -1.47775 18.5256C-8.69997 18.549 -14.5582 17.5141 -14.5624 16.214C-14.5666 14.9139 -8.71523 13.841 -1.493 13.8176C5.72923 13.7942 11.5874 14.8292 11.5916 16.1293Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter4_f_2_2)\"><path d=\"M12.2473 16.6206C12.2515 17.9206 6.40021 18.9935 -0.821978 19.017C-8.04417 19.0404 -13.9023 18.0055 -13.9066 16.7055C-13.9108 15.4054 -8.05945 14.3325 -0.837261 14.309C6.38493 14.2856 12.2431 15.3205 12.2473 16.6206Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter5_f_2_2)\"><path d=\"M14.047 5.7039C14.2411 2.38813 18.6158 -0.0529585 23.8183 0.251568C29.0207 0.556095 33.0808 3.49092 32.8867 6.80669C32.6926 10.1225 28.3179 12.5635 23.1154 12.259C17.913 11.9545 13.8529 9.01966 14.047 5.7039Z\" fill=\"#EDE6FF\"></path></g><g filter=\"url(#filter6_f_2_2)\"><path d=\"M14.7518 7.88531C14.7376 7.06639 18.8396 6.33138 23.9137 6.2436C28.9879 6.15583 33.1129 6.74854 33.127 7.56745C33.1412 8.38637 29.0392 9.12139 23.965 9.20916C18.8909 9.29693 14.7659 8.70422 14.7518 7.88531Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter7_f_2_2)\"><path d=\"M14.7518 7.88531C14.7376 7.06639 18.8396 6.33138 23.9137 6.2436C28.9879 6.15583 33.1129 6.74854 33.127 7.56745C33.1412 8.38637 29.0392 9.12139 23.965 9.20916C18.8909 9.29693 14.7659 8.70422 14.7518 7.88531Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter8_f_2_2)\"><path d=\"M-6.98848 14.7616C-6.18615 15.4233 -1.99229 11.6626 2.37876 6.362C6.74982 1.06138 9.64283 -3.77199 8.84049 -4.43362C8.03816 -5.09525 3.8443 -1.3346 -0.526755 3.96602C-4.89781 9.26665 -7.79082 14.1 -6.98848 14.7616Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter9_f_2_2)\"><path d=\"M13.4305 8.5449C14.2512 9.18361 18.3372 5.30605 22.5568 -0.115883C26.7764 -5.53781 29.5318 -10.4509 28.7111 -11.0896C27.8904 -11.7284 23.8044 -7.8508 19.5848 -2.42887C15.3651 2.99306 12.6098 7.90619 13.4305 8.5449Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter10_f_2_2)\"><path d=\"M14.9501 9.73878C16.4926 10.9392 19.2111 10.026 21.0221 7.69897C22.8331 5.37198 23.0507 2.51245 21.5083 1.31202C19.9658 0.111596 17.2473 1.02485 15.4363 3.35184C13.6253 5.67882 13.4077 8.53835 14.9501 9.73878Z\" fill=\"#2BFDD2\"></path></g><g filter=\"url(#filter11_f_2_2)\"><path d=\"M-7.68233 27.5293C-6.86163 28.168 -2.77563 24.2904 1.44401 18.8685C5.66365 13.4466 8.41904 8.53346 7.59834 7.89474C6.77764 7.25603 2.69164 11.1336 -1.528 16.5555C-5.74764 21.9775 -8.50303 26.8906 -7.68233 27.5293Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter12_f_2_2)\"><path d=\"M-7.68233 27.5293C-6.86163 28.168 -2.77563 24.2904 1.44401 18.8685C5.66365 13.4466 8.41904 8.53346 7.59834 7.89474C6.77764 7.25603 2.69164 11.1336 -1.528 16.5555C-5.74764 21.9775 -8.50303 26.8906 -7.68233 27.5293Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter13_f_2_2)\"><path d=\"M8.26366 23.8563C9.13579 24.535 13.2635 20.6899 17.4831 15.268C21.7028 9.84604 24.4165 4.90047 23.5443 4.22173C22.6722 3.54299 18.5445 7.38811 14.3249 12.81C10.1052 18.232 7.39153 23.1775 8.26366 23.8563Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter14_f_2_2)\"><path d=\"M12.2866 22.5389C13.7846 23.7047 17.4746 21.4689 20.5284 17.5449C23.5822 13.621 24.8434 9.49495 23.3454 8.32912C21.8474 7.16329 18.1574 9.39917 15.1036 13.3231C12.0498 17.247 10.7886 21.3731 12.2866 22.5389Z\" fill=\"#2BFDD2\"></path></g></g></g><defs><filter id=\"filter0_f_2_2\" x=\"-7.68682\" y=\"8.2322\" width=\"25.6599\" height=\"17.8002\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"3.273\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter1_f_2_2\" x=\"-22.5782\" y=\"-1.88827\" width=\"38.6079\" height=\"21.9804\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"3.273\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter2_f_2_2\" x=\"-20.4548\" y=\"2.19805\" width=\"33.9139\" height=\"12.5647\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter3_f_2_2\" x=\"-18.4904\" y=\"9.88925\" width=\"34.01\" height=\"12.5648\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter4_f_2_2\" x=\"-17.8346\" y=\"10.3806\" width=\"34.0099\" height=\"12.5648\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter5_f_2_2\" x=\"7.4943\" y=\"-6.32009\" width=\"31.9451\" height=\"25.1508\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"3.273\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter6_f_2_2\" x=\"10.8237\" y=\"2.30699\" width=\"26.2313\" height=\"10.8388\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter7_f_2_2\" x=\"10.8237\" y=\"2.30699\" width=\"26.2313\" height=\"10.8388\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter8_f_2_2\" x=\"-11.0501\" y=\"-8.43711\" width=\"23.9523\" height=\"27.2022\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter9_f_2_2\" x=\"9.35783\" y=\"-15.0865\" width=\"23.4259\" height=\"27.6282\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter10_f_2_2\" x=\"9.99386\" y=\"-3.14457\" width=\"16.4707\" height=\"17.3399\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter11_f_2_2\" x=\"-11.755\" y=\"3.89791\" width=\"23.4259\" height=\"27.6282\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter12_f_2_2\" x=\"-11.755\" y=\"3.89791\" width=\"23.4259\" height=\"27.6282\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter13_f_2_2\" x=\"4.17262\" y=\"0.216058\" width=\"23.4628\" height=\"27.6459\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter14_f_2_2\" x=\"7.72776\" y=\"4.09222\" width=\"20.1765\" height=\"22.6836\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><clipPath id=\"clip0_2_2\"><rect width=\"22\" height=\"22\" fill=\"white\"></rect></clipPath></defs>", 2)])]);
215
+ }
216
+ var VitePlusCore_default = /* @__PURE__ */ export_helper_default(_sfc_main$7, [["render", _sfc_render]]);
217
+
218
+ //#endregion
219
+ //#region src/client/webcomponents/components/Dock.vue
220
+ const PANEL_MARGIN = 5;
221
+ const SNAP_THRESHOLD = 2;
222
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
223
+ __name: "Dock",
224
+ props: /* @__PURE__ */ mergeModels({
225
+ state: {},
226
+ docks: {}
227
+ }, {
228
+ "isDragging": {
229
+ type: Boolean,
230
+ default: false
231
+ },
232
+ "isDraggingModifiers": {}
233
+ }),
234
+ emits: ["update:isDragging"],
235
+ setup(__props) {
236
+ const { state: state$1, docks } = toRefs(__props);
237
+ const isDragging = useModel(__props, "isDragging");
238
+ const isSafari = navigator.userAgent.includes("Safari") && !navigator.userAgent.includes("Chrome");
239
+ const panelMargins = reactive({
240
+ left: PANEL_MARGIN,
241
+ top: PANEL_MARGIN,
242
+ right: PANEL_MARGIN,
243
+ bottom: PANEL_MARGIN
244
+ });
245
+ const safeArea = useScreenSafeArea();
246
+ function toNumber(value) {
247
+ const num = +value;
248
+ if (Number.isNaN(num)) return 0;
249
+ return num;
250
+ }
251
+ watchEffect(() => {
252
+ panelMargins.left = toNumber(safeArea.left.value) + PANEL_MARGIN;
253
+ panelMargins.top = toNumber(safeArea.top.value) + PANEL_MARGIN;
254
+ panelMargins.right = toNumber(safeArea.right.value) + PANEL_MARGIN;
255
+ panelMargins.bottom = toNumber(safeArea.bottom.value) + PANEL_MARGIN;
256
+ });
257
+ const dockEl = useTemplateRef("dockEl");
258
+ const anchorEl = useTemplateRef("anchorEl");
259
+ const windowSize = reactive({
260
+ width: window.innerWidth,
261
+ height: window.innerHeight
262
+ });
263
+ const draggingOffset = reactive({
264
+ x: 0,
265
+ y: 0
266
+ });
267
+ const mousePosition = reactive({
268
+ x: 0,
269
+ y: 0
270
+ });
271
+ function onPointerDown(e) {
272
+ if (!dockEl.value) return;
273
+ isDragging.value = true;
274
+ const { left, top, width, height } = dockEl.value.getBoundingClientRect();
275
+ draggingOffset.x = e.clientX - left - width / 2;
276
+ draggingOffset.y = e.clientY - top - height / 2;
277
+ }
278
+ onMounted(() => {
279
+ windowSize.width = window.innerWidth;
280
+ windowSize.height = window.innerHeight;
281
+ useEventListener(window, "resize", () => {
282
+ windowSize.width = window.innerWidth;
283
+ windowSize.height = window.innerHeight;
284
+ });
285
+ useEventListener(window, "pointermove", (e) => {
286
+ if (!isDragging.value) return;
287
+ const centerX = window.innerWidth / 2;
288
+ const centerY = window.innerHeight / 2;
289
+ const x = e.clientX - draggingOffset.x;
290
+ const y = e.clientY - draggingOffset.y;
291
+ if (Number.isNaN(x) || Number.isNaN(y)) return;
292
+ mousePosition.x = x;
293
+ mousePosition.y = y;
294
+ const deg = Math.atan2(y - centerY, x - centerX);
295
+ const HORIZONTAL_MARGIN = 70;
296
+ const TL = Math.atan2(0 - centerY + HORIZONTAL_MARGIN, 0 - centerX);
297
+ const TR = Math.atan2(0 - centerY + HORIZONTAL_MARGIN, window.innerWidth - centerX);
298
+ const BL = Math.atan2(window.innerHeight - HORIZONTAL_MARGIN - centerY, 0 - centerX);
299
+ const BR = Math.atan2(window.innerHeight - HORIZONTAL_MARGIN - centerY, window.innerWidth - centerX);
300
+ state$1.value.position = deg >= TL && deg <= TR ? "top" : deg >= TR && deg <= BR ? "right" : deg >= BR && deg <= BL ? "bottom" : "left";
301
+ state$1.value.left = snapToPoints(x / window.innerWidth * 100);
302
+ state$1.value.top = snapToPoints(y / window.innerHeight * 100);
303
+ });
304
+ useEventListener(window, "pointerup", () => {
305
+ isDragging.value = false;
306
+ });
307
+ useEventListener(window, "pointerleave", () => {
308
+ isDragging.value = false;
309
+ });
310
+ });
311
+ function snapToPoints(value) {
312
+ if (value < 5) return 0;
313
+ if (value > 95) return 100;
314
+ if (Math.abs(value - 50) < SNAP_THRESHOLD) return 50;
315
+ return value;
316
+ }
317
+ function clamp(value, min, max) {
318
+ return Math.min(Math.max(value, min), max);
319
+ }
320
+ const recalculateCounter = ref(0);
321
+ const isHovering = ref(false);
322
+ const isVertical = computed(() => state$1.value.position === "left" || state$1.value.position === "right");
323
+ const anchorPos = computed(() => {
324
+ recalculateCounter.value;
325
+ const halfWidth = (dockEl.value?.clientWidth || 0) / 2;
326
+ const halfHeight = (dockEl.value?.clientHeight || 0) / 2;
327
+ const left = state$1.value.left * windowSize.width / 100;
328
+ const top = state$1.value.top * windowSize.height / 100;
329
+ switch (state$1.value.position) {
330
+ case "top": return {
331
+ left: clamp(left, halfWidth + panelMargins.left, windowSize.width - halfWidth - panelMargins.right),
332
+ top: panelMargins.top + halfHeight
333
+ };
334
+ case "right": return {
335
+ left: windowSize.width - panelMargins.right - halfHeight,
336
+ top: clamp(top, halfWidth + panelMargins.top, windowSize.height - halfWidth - panelMargins.bottom)
337
+ };
338
+ case "left": return {
339
+ left: panelMargins.left + halfHeight,
340
+ top: clamp(top, halfWidth + panelMargins.top, windowSize.height - halfWidth - panelMargins.bottom)
341
+ };
342
+ case "bottom":
343
+ default: return {
344
+ left: clamp(left, halfWidth + panelMargins.left, windowSize.width - halfWidth - panelMargins.right),
345
+ top: windowSize.height - panelMargins.bottom - halfHeight
346
+ };
347
+ }
348
+ });
349
+ let _timer = null;
350
+ function bringUp() {
351
+ isHovering.value = true;
352
+ if (state$1.value.minimizePanelInactive < 0) return;
353
+ if (_timer) clearTimeout(_timer);
354
+ _timer = setTimeout(() => {
355
+ isHovering.value = false;
356
+ }, +state$1.value.minimizePanelInactive || 0);
357
+ }
358
+ const isHidden = computed(() => false);
359
+ const isMinimized = computed(() => {
360
+ if (state$1.value.minimizePanelInactive < 0) return false;
361
+ if (state$1.value.minimizePanelInactive === 0) return true;
362
+ const isTouchDevice = "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
363
+ return !isDragging.value && !state$1.value.open && !isHovering.value && !isTouchDevice && state$1.value.minimizePanelInactive;
364
+ });
365
+ const anchorStyle = computed(() => {
366
+ return {
367
+ left: `${anchorPos.value.left}px`,
368
+ top: `${anchorPos.value.top}px`,
369
+ pointerEvents: isHidden.value ? "none" : "auto"
370
+ };
371
+ });
372
+ const panelStyle = computed(() => {
373
+ const style = { transform: isVertical.value ? `translate(-50%, -50%) rotate(90deg)` : `translate(-50%, -50%)` };
374
+ if (isHidden.value) {
375
+ style.opacity = 0;
376
+ style.pointerEvents = "none";
377
+ }
378
+ if (isDragging.value) style.transition = "none !important";
379
+ return style;
380
+ });
381
+ function importScript(entry) {
382
+ const id = entry.id;
383
+ return import(
384
+ /* @vite-ignore */
385
+ ["/.devtools", "imports"].join("-")
386
+ ).then((module) => {
387
+ const importFn = module.importsMap[id];
388
+ if (!importFn) return Promise.reject(/* @__PURE__ */ new Error(`[VITE DEVTOOLS] No import found for id: ${id}`));
389
+ return importFn();
390
+ }).catch((error) => {
391
+ console.error("[VITE DEVTOOLS] Error executing import action", error);
392
+ return Promise.reject(error);
393
+ });
394
+ }
395
+ function onSelected(entry) {
396
+ if (!entry) {
397
+ state$1.value.open = false;
398
+ state$1.value.dockEntry = void 0;
399
+ return;
400
+ }
401
+ const scriptContext = reactive({
402
+ dockEntry: entry,
403
+ dockState: computed({
404
+ get() {
405
+ return state$1.value.dockEntry?.id === entry.id ? "active" : "inactive";
406
+ },
407
+ set(val) {
408
+ if (val === "active") state$1.value.dockEntry = entry;
409
+ else if (state$1.value.dockEntry?.id === entry.id) state$1.value.dockEntry = void 0;
410
+ }
411
+ }),
412
+ hidePanel() {
413
+ state$1.value.open = false;
414
+ }
415
+ });
416
+ if (entry?.type === "action") return importScript(entry).then((fn) => fn(scriptContext));
417
+ state$1.value.dockEntry = entry;
418
+ state$1.value.open = true;
419
+ if (entry.import) importScript(entry).then((fn) => fn(scriptContext));
420
+ }
421
+ onMounted(() => {
422
+ bringUp();
423
+ recalculateCounter.value++;
424
+ });
425
+ return (_ctx, _cache) => {
426
+ return openBlock(), createElementBlock("div", {
427
+ id: "vite-devtools-anchor",
428
+ ref_key: "anchorEl",
429
+ ref: anchorEl,
430
+ style: normalizeStyle([anchorStyle.value]),
431
+ class: normalizeClass({
432
+ "vite-devtools-horizontal": !isVertical.value,
433
+ "vite-devtools-vertical": isVertical.value,
434
+ "vite-devtools-minimized": isMinimized.value
435
+ }),
436
+ onMousemove: bringUp
437
+ }, [
438
+ !unref(isSafari) ? (openBlock(), createElementBlock("div", {
439
+ key: 0,
440
+ id: "vite-devtools-glowing",
441
+ style: normalizeStyle(isDragging.value ? "opacity: 0.6 !important" : "")
442
+ }, null, 4)) : createCommentVNode("v-if", true),
443
+ createBaseVNode("div", {
444
+ id: "vite-devtools-dock-container",
445
+ ref_key: "dockEl",
446
+ ref: dockEl,
447
+ style: normalizeStyle(panelStyle.value)
448
+ }, [createBaseVNode("div", {
449
+ id: "vite-devtools-dock",
450
+ onPointerdown: onPointerDown
451
+ }, [
452
+ createVNode(BracketLeft_default, { class: "vite-devtools-dock-bracket absolute left--1 top-1/2 translate-y--1/2 bottom-0 w-2.5 op75 transition-opacity duration-300" }),
453
+ createVNode(BracketRight_default, { class: normalizeClass(["vite-devtools-dock-bracket absolute right--1 top-1/2 translate-y--1/2 bottom-0 w-2.5 op75 transition-opacity duration-300", isVertical.value ? "scale-y--100" : ""]) }, null, 8, ["class"]),
454
+ createVNode(VitePlusCore_default, { class: normalizeClass(["w-3 h-3 absolute left-1/2 top-1/2 translate-x--1/2 translate-y--1/2 transition-opacity duration-300", isMinimized.value ? "op100" : "op0"]) }, null, 8, ["class"]),
455
+ createVNode(DockEntries_default, {
456
+ entries: unref(docks),
457
+ class: normalizeClass(["transition duration-200", isMinimized.value ? "opacity-0 pointer-events-none" : "opacity-100"]),
458
+ "is-vertical": isVertical.value,
459
+ selected: unref(state$1).dockEntry,
460
+ onSelect: onSelected
461
+ }, null, 8, [
462
+ "entries",
463
+ "class",
464
+ "is-vertical",
465
+ "selected"
466
+ ])
467
+ ], 32)], 4),
468
+ renderSlot(_ctx.$slots, "default", {
469
+ dockEl: dockEl.value,
470
+ panelMargins,
471
+ state: unref(state$1),
472
+ entry: unref(state$1).dockEntry?.type === "action" ? void 0 : unref(state$1).dockEntry
473
+ })
474
+ ], 38);
475
+ };
476
+ }
477
+ });
478
+ var Dock_default = _sfc_main$6;
479
+
480
+ //#endregion
481
+ //#region src/client/webcomponents/components/DockPanelResizer.vue
482
+ const PANEL_MIN = 20;
483
+ const PANEL_MAX = 100;
484
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
485
+ __name: "DockPanelResizer",
486
+ props: /* @__PURE__ */ mergeModels({
487
+ state: {},
488
+ isDragging: { type: Boolean }
489
+ }, {
490
+ "isResizing": {
491
+ type: Boolean,
492
+ default: false
493
+ },
494
+ "isResizingModifiers": {}
495
+ }),
496
+ emits: ["update:isResizing"],
497
+ setup(__props) {
498
+ const props = __props;
499
+ const isResizing = useModel(__props, "isResizing");
500
+ const { state: state$1 } = toRefs$1(props);
501
+ const container = ref();
502
+ const resizingState = ref(false);
503
+ function handleResize(e) {
504
+ if (!resizingState.value) return;
505
+ const box = container.value?.getBoundingClientRect();
506
+ if (!box) return;
507
+ let widthPx, heightPx;
508
+ if (resizingState.value.right) {
509
+ widthPx = Math.abs(e instanceof MouseEvent ? e.clientX : (e.touches[0]?.clientX || 0) - (box?.left || 0));
510
+ state$1.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, widthPx / window.innerWidth * 100));
511
+ } else if (resizingState.value.left) {
512
+ widthPx = Math.abs((box?.right || 0) - (e instanceof MouseEvent ? e.clientX : e.touches[0]?.clientX || 0));
513
+ state$1.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, widthPx / window.innerWidth * 100));
514
+ }
515
+ if (resizingState.value.top) {
516
+ heightPx = Math.abs((box?.bottom || 0) - (e instanceof MouseEvent ? e.clientY : e.touches[0]?.clientY || 0));
517
+ state$1.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, heightPx / window.innerHeight * 100));
518
+ } else if (resizingState.value.bottom) {
519
+ heightPx = Math.abs(e instanceof MouseEvent ? e.clientY : (e.touches[0]?.clientY || 0) - (box?.top || 0));
520
+ state$1.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, heightPx / window.innerHeight * 100));
521
+ }
522
+ }
523
+ useEventListener(window, "mousemove", handleResize);
524
+ useEventListener(window, "touchmove", handleResize);
525
+ useEventListener(window, "mouseup", () => resizingState.value = false);
526
+ useEventListener(window, "touchend", () => resizingState.value = false);
527
+ useEventListener(window, "mouseleave", () => resizingState.value = false);
528
+ watch(resizingState, (value) => {
529
+ isResizing.value = !!value;
530
+ }, { flush: "sync" });
531
+ return (_ctx, _cache) => {
532
+ return openBlock(), createElementBlock("div", {
533
+ id: "vite-devtools-resize-container",
534
+ ref_key: "container",
535
+ ref: container,
536
+ class: "w-full h-full absolute left-0 right-0 bottom-0 top-0 antialiased"
537
+ }, [
538
+ createCommentVNode(" Handlers "),
539
+ withDirectives(createBaseVNode("div", {
540
+ class: "vite-devtools-resize-handle vite-devtools-resize-handle-horizontal",
541
+ style: { top: 0 },
542
+ onMousedown: _cache[0] || (_cache[0] = withModifiers(($event) => resizingState.value = { top: true }, ["prevent"])),
543
+ onTouchstartPassive: _cache[1] || (_cache[1] = () => resizingState.value = { top: true })
544
+ }, null, 544), [[vShow, unref(state$1).position !== "top"]]),
545
+ withDirectives(createBaseVNode("div", {
546
+ class: "vite-devtools-resize-handle vite-devtools-resize-handle-horizontal",
547
+ style: { bottom: 0 },
548
+ onMousedown: _cache[2] || (_cache[2] = withModifiers(() => resizingState.value = { bottom: true }, ["prevent"])),
549
+ onTouchstartPassive: _cache[3] || (_cache[3] = () => resizingState.value = { bottom: true })
550
+ }, null, 544), [[vShow, unref(state$1).position !== "bottom"]]),
551
+ withDirectives(createBaseVNode("div", {
552
+ class: "vite-devtools-resize-handle vite-devtools-resize-handle-vertical",
553
+ style: { left: 0 },
554
+ onMousedown: _cache[4] || (_cache[4] = withModifiers(() => resizingState.value = { left: true }, ["prevent"])),
555
+ onTouchstartPassive: _cache[5] || (_cache[5] = () => resizingState.value = { left: true })
556
+ }, null, 544), [[vShow, unref(state$1).position !== "left"]]),
557
+ withDirectives(createBaseVNode("div", {
558
+ class: "vite-devtools-resize-handle vite-devtools-resize-handle-vertical",
559
+ style: { right: 0 },
560
+ onMousedown: _cache[6] || (_cache[6] = withModifiers(() => resizingState.value = { right: true }, ["prevent"])),
561
+ onTouchstartPassive: _cache[7] || (_cache[7] = () => resizingState.value = { right: true })
562
+ }, null, 544), [[vShow, unref(state$1).position !== "right"]]),
563
+ withDirectives(createBaseVNode("div", {
564
+ class: "vite-devtools-resize-handle vite-devtools-resize-handle-corner",
565
+ style: {
566
+ top: 0,
567
+ left: 0,
568
+ cursor: "nwse-resize"
569
+ },
570
+ onMousedown: _cache[8] || (_cache[8] = withModifiers(() => resizingState.value = {
571
+ top: true,
572
+ left: true
573
+ }, ["prevent"])),
574
+ onTouchstartPassive: _cache[9] || (_cache[9] = () => resizingState.value = {
575
+ top: true,
576
+ left: true
577
+ })
578
+ }, null, 544), [[vShow, unref(state$1).position !== "top" && unref(state$1).position !== "left"]]),
579
+ withDirectives(createBaseVNode("div", {
580
+ class: "vite-devtools-resize-handle vite-devtools-resize-handle-corner",
581
+ style: {
582
+ top: 0,
583
+ right: 0,
584
+ cursor: "nesw-resize"
585
+ },
586
+ onMousedown: _cache[10] || (_cache[10] = withModifiers(() => resizingState.value = {
587
+ top: true,
588
+ right: true
589
+ }, ["prevent"])),
590
+ onTouchstartPassive: _cache[11] || (_cache[11] = () => resizingState.value = {
591
+ top: true,
592
+ right: true
593
+ })
594
+ }, null, 544), [[vShow, unref(state$1).position !== "top" && unref(state$1).position !== "right"]]),
595
+ withDirectives(createBaseVNode("div", {
596
+ class: "vite-devtools-resize-handle vite-devtools-resize-handle-corner",
597
+ style: {
598
+ bottom: 0,
599
+ left: 0,
600
+ cursor: "nesw-resize"
601
+ },
602
+ onMousedown: _cache[12] || (_cache[12] = withModifiers(() => resizingState.value = {
603
+ bottom: true,
604
+ left: true
605
+ }, ["prevent"])),
606
+ onTouchstartPassive: _cache[13] || (_cache[13] = () => resizingState.value = {
607
+ bottom: true,
608
+ left: true
609
+ })
610
+ }, null, 544), [[vShow, unref(state$1).position !== "bottom" && unref(state$1).position !== "left"]]),
611
+ withDirectives(createBaseVNode("div", {
612
+ class: "vite-devtools-resize-handle vite-devtools-resize-handle-corner",
613
+ style: {
614
+ bottom: 0,
615
+ right: 0,
616
+ cursor: "nwse-resize"
617
+ },
618
+ onMousedown: _cache[14] || (_cache[14] = withModifiers(() => resizingState.value = {
619
+ bottom: true,
620
+ right: true
621
+ }, ["prevent"])),
622
+ onTouchstartPassive: _cache[15] || (_cache[15] = () => resizingState.value = {
623
+ bottom: true,
624
+ right: true
625
+ })
626
+ }, null, 544), [[vShow, unref(state$1).position !== "bottom" && unref(state$1).position !== "right"]])
627
+ ], 512);
628
+ };
629
+ }
630
+ });
631
+ var DockPanelResizer_default = _sfc_main$5;
632
+
633
+ //#endregion
634
+ //#region src/client/webcomponents/components/IframeManager.ts
635
+ var IframeManager = class {
636
+ iframes = {};
637
+ container = void 0;
638
+ constructor() {}
639
+ setContainer(container) {
640
+ this.container = container;
641
+ }
642
+ getIframeHolder(id) {
643
+ let iframe;
644
+ if (!this.iframes[id]) {
645
+ const el = document.createElement("iframe");
646
+ this.iframes[id] = new IframeHolder(id, el);
647
+ this.container.appendChild(el);
648
+ iframe = this.iframes[id];
649
+ } else iframe = this.iframes[id];
650
+ return iframe;
651
+ }
652
+ };
653
+ var IframeHolder = class {
654
+ iframe;
655
+ id;
656
+ parent;
657
+ _cleanups = [];
658
+ constructor(id, iframe) {
659
+ this.id = id;
660
+ this.iframe = iframe;
661
+ }
662
+ cleanup() {
663
+ this._cleanups.forEach((cleanup) => cleanup());
664
+ this._cleanups = [];
665
+ }
666
+ mount(parent) {
667
+ if (this.parent === parent) {
668
+ this.show();
669
+ return;
670
+ }
671
+ this.cleanup();
672
+ this.parent = parent;
673
+ const func = () => this.update();
674
+ window.addEventListener("resize", func);
675
+ this._cleanups.push(() => window.removeEventListener("resize", func));
676
+ this.show();
677
+ }
678
+ hide() {
679
+ this.iframe.style.display = "none";
680
+ }
681
+ show() {
682
+ this.iframe.style.display = "block";
683
+ this.update();
684
+ }
685
+ update() {
686
+ if (!this.parent) return;
687
+ const rect = this.parent.getBoundingClientRect();
688
+ this.iframe.style.position = "absolute";
689
+ this.iframe.style.width = `${rect.width}px`;
690
+ this.iframe.style.height = `${rect.height}px`;
691
+ }
692
+ unmount() {
693
+ this.cleanup();
694
+ this.hide();
695
+ this.parent = void 0;
696
+ }
697
+ };
698
+
699
+ //#endregion
700
+ //#region src/client/webcomponents/components/ViewIframe.vue
701
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
702
+ __name: "ViewIframe",
703
+ props: {
704
+ state: {},
705
+ isDragging: { type: Boolean },
706
+ isResizing: { type: Boolean },
707
+ entry: {},
708
+ iframes: {},
709
+ iframeStyle: {}
710
+ },
711
+ setup(__props) {
712
+ const props = __props;
713
+ const viewFrame = useTemplateRef("viewFrame");
714
+ onMounted(() => {
715
+ const holder = props.iframes.getIframeHolder(props.entry.id);
716
+ holder.iframe.style.boxShadow = "none";
717
+ holder.iframe.style.outline = "none";
718
+ Object.assign(holder.iframe.style, props.iframeStyle);
719
+ if (!holder.iframe.src) holder.iframe.src = props.entry.url;
720
+ holder.mount(viewFrame.value);
721
+ nextTick(() => {
722
+ holder.update();
723
+ });
724
+ watch(() => props.state, () => {
725
+ holder.update();
726
+ }, { deep: true });
727
+ watchEffect(() => {
728
+ holder.iframe.style.pointerEvents = props.isDragging || props.isResizing ? "none" : "auto";
729
+ }, { flush: "sync" });
730
+ });
731
+ onUnmounted(() => {
732
+ props.iframes.getIframeHolder(props.entry.id).unmount();
733
+ });
734
+ return (_ctx, _cache) => {
735
+ return openBlock(), createElementBlock("div", {
736
+ ref_key: "viewFrame",
737
+ ref: viewFrame,
738
+ class: "vite-devtools-view-iframe w-full h-full flex items-center justify-center"
739
+ }, [..._cache[0] || (_cache[0] = [createBaseVNode("div", { class: "op50 z--1" }, " Loading iframe... ", -1)])], 512);
740
+ };
741
+ }
742
+ });
743
+ var ViewIframe_default = _sfc_main$4;
744
+
745
+ //#endregion
746
+ //#region src/client/webcomponents/components/ViewEntry.vue
747
+ const _hoisted_1 = { key: 1 };
748
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
749
+ __name: "ViewEntry",
750
+ props: {
751
+ state: {},
752
+ isDragging: { type: Boolean },
753
+ isResizing: { type: Boolean },
754
+ entry: {},
755
+ iframes: {},
756
+ iframeStyle: {}
757
+ },
758
+ setup(__props) {
759
+ return (_ctx, _cache) => {
760
+ return __props.entry.type === "iframe" ? (openBlock(), createBlock(ViewIframe_default, {
761
+ key: 0,
762
+ state: __props.state,
763
+ "is-dragging": __props.isDragging,
764
+ "is-resizing": __props.isResizing,
765
+ entry: __props.entry,
766
+ iframes: __props.iframes,
767
+ "iframe-style": __props.iframeStyle
768
+ }, null, 8, [
769
+ "state",
770
+ "is-dragging",
771
+ "is-resizing",
772
+ "entry",
773
+ "iframes",
774
+ "iframe-style"
775
+ ])) : (openBlock(), createElementBlock("div", _hoisted_1, " Unknown entry: " + toDisplayString(__props.entry), 1));
776
+ };
777
+ }
778
+ });
779
+ var ViewEntry_default = _sfc_main$3;
780
+
781
+ //#endregion
782
+ //#region src/client/webcomponents/components/DockPanel.vue
783
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
784
+ __name: "DockPanel",
785
+ props: {
786
+ state: {},
787
+ entry: {},
788
+ dockEl: {},
789
+ panelMargins: {}
790
+ },
791
+ setup(__props) {
792
+ const props = __props;
793
+ const { state: state$1, entry, panelMargins } = toRefs(props);
794
+ const dockPanel = useTemplateRef("dockPanel");
795
+ const iframesContainer = useTemplateRef("iframesContainer");
796
+ const iframes = markRaw(new IframeManager());
797
+ watchEffect(() => {
798
+ iframes.setContainer(iframesContainer.value);
799
+ }, { flush: "sync" });
800
+ const windowSize = reactive(useWindowSize());
801
+ const isDragging = ref(false);
802
+ const isResizing = ref(false);
803
+ const isHovering = ref(false);
804
+ const mousePosition = reactive({
805
+ x: 0,
806
+ y: 0
807
+ });
808
+ function clamp(value, min, max) {
809
+ return Math.min(Math.max(value, min), max);
810
+ }
811
+ const anchorPos = computed(() => {
812
+ const halfWidth = (props.dockEl?.clientWidth || 0) / 2;
813
+ const halfHeight = (props.dockEl?.clientHeight || 0) / 2;
814
+ const left = state$1.value.left * windowSize.width / 100;
815
+ const top = state$1.value.top * windowSize.height / 100;
816
+ switch (state$1.value.position) {
817
+ case "top": return {
818
+ left: clamp(left, halfWidth + panelMargins.value.left, windowSize.width - halfWidth - panelMargins.value.right),
819
+ top: panelMargins.value.top + halfHeight
820
+ };
821
+ case "right": return {
822
+ left: windowSize.width - panelMargins.value.right - halfHeight,
823
+ top: clamp(top, halfWidth + panelMargins.value.top, windowSize.height - halfWidth - panelMargins.value.bottom)
824
+ };
825
+ case "left": return {
826
+ left: panelMargins.value.left + halfHeight,
827
+ top: clamp(top, halfWidth + panelMargins.value.top, windowSize.height - halfWidth - panelMargins.value.bottom)
828
+ };
829
+ case "bottom":
830
+ default: return {
831
+ left: clamp(left, halfWidth + panelMargins.value.left, windowSize.width - halfWidth - panelMargins.value.right),
832
+ top: windowSize.height - panelMargins.value.bottom - halfHeight
833
+ };
834
+ }
835
+ });
836
+ let _timer = null;
837
+ function bringUp() {
838
+ isHovering.value = true;
839
+ if (state$1.value.minimizePanelInactive < 0) return;
840
+ if (_timer) clearTimeout(_timer);
841
+ _timer = setTimeout(() => {
842
+ isHovering.value = false;
843
+ }, +state$1.value.minimizePanelInactive || 0);
844
+ }
845
+ const { width: frameWidth, height: frameHeight } = useElementBounding(dockPanel);
846
+ const iframeStyle = computed(() => {
847
+ mousePosition.x, mousePosition.y;
848
+ const halfHeight = (props.dockEl?.clientHeight || 0) / 2;
849
+ const frameMargin = {
850
+ left: panelMargins.value.left + halfHeight,
851
+ top: panelMargins.value.top + halfHeight,
852
+ right: panelMargins.value.right + halfHeight,
853
+ bottom: panelMargins.value.bottom + halfHeight
854
+ };
855
+ const marginHorizontal = frameMargin.left + frameMargin.right;
856
+ const marginVertical = frameMargin.top + frameMargin.bottom;
857
+ const maxWidth = windowSize.width - marginHorizontal;
858
+ const maxHeight = windowSize.height - marginVertical;
859
+ const style = {
860
+ position: "fixed",
861
+ zIndex: -1,
862
+ pointerEvents: isDragging.value || isResizing.value ? "none" : "auto",
863
+ width: `min(${state$1.value.width}vw, calc(100vw - ${marginHorizontal}px))`,
864
+ height: `min(${state$1.value.height}vh, calc(100vh - ${marginVertical}px))`
865
+ };
866
+ const anchor = anchorPos.value;
867
+ const width = Math.min(maxWidth, state$1.value.width * windowSize.width / 100);
868
+ const height = Math.min(maxHeight, state$1.value.height * windowSize.height / 100);
869
+ const anchorX = anchor?.left || 0;
870
+ const anchorY = anchor?.top || 0;
871
+ switch (state$1.value.position) {
872
+ case "top":
873
+ case "bottom":
874
+ style.left = `${-frameWidth.value / 2}px`;
875
+ style.transform = "translate(0, 0)";
876
+ if (anchorX - frameMargin.left < width / 2) style.left = `${width / 2 - anchorX + frameMargin.left - frameWidth.value / 2}px`;
877
+ else if (windowSize.width - anchorX - frameMargin.right < width / 2) style.left = `${windowSize.width - anchorX - width / 2 - frameMargin.right - frameWidth.value / 2}px`;
878
+ break;
879
+ case "right":
880
+ case "left":
881
+ style.top = `${-frameHeight.value / 2}px`;
882
+ style.transform = "translate(0, 0)";
883
+ if (anchorY - frameMargin.top < height / 2) style.top = `${height / 2 - anchorY + frameMargin.top - frameHeight.value / 2}px`;
884
+ else if (windowSize.height - anchorY - frameMargin.bottom < height / 2) style.top = `${windowSize.height - anchorY - height / 2 - frameMargin.bottom - frameHeight.value / 2}px`;
885
+ break;
886
+ }
887
+ switch (state$1.value.position) {
888
+ case "top":
889
+ style.top = 0;
890
+ break;
891
+ case "right":
892
+ style.right = 0;
893
+ break;
894
+ case "left":
895
+ style.left = 0;
896
+ break;
897
+ case "bottom":
898
+ default:
899
+ style.bottom = 0;
900
+ break;
901
+ }
902
+ return style;
903
+ });
904
+ onMounted(() => {
905
+ bringUp();
906
+ });
907
+ return (_ctx, _cache) => {
908
+ return withDirectives((openBlock(), createElementBlock("div", {
909
+ id: "vite-devtools-dock-panel",
910
+ ref_key: "dockPanel",
911
+ ref: dockPanel,
912
+ class: "bg-glass rounded-lg border border-base shadow",
913
+ style: normalizeStyle(iframeStyle.value)
914
+ }, [
915
+ createVNode(DockPanelResizer_default, {
916
+ "is-resizing": isResizing.value,
917
+ "onUpdate:isResizing": _cache[0] || (_cache[0] = ($event) => isResizing.value = $event),
918
+ "is-dragging": isDragging.value,
919
+ state: unref(state$1),
920
+ entry: unref(entry)
921
+ }, null, 8, [
922
+ "is-resizing",
923
+ "is-dragging",
924
+ "state",
925
+ "entry"
926
+ ]),
927
+ unref(entry) && iframesContainer.value ? (openBlock(), createBlock(ViewEntry_default, {
928
+ key: unref(entry).id,
929
+ state: unref(state$1),
930
+ "is-dragging": isDragging.value,
931
+ "is-resizing": isResizing.value,
932
+ entry: unref(entry),
933
+ iframes: unref(iframes),
934
+ "iframe-style": {
935
+ border: "1px solid #8883",
936
+ borderRadius: "0.5rem",
937
+ zIndex: "2147483645"
938
+ },
939
+ rounded: ""
940
+ }, null, 8, [
941
+ "state",
942
+ "is-dragging",
943
+ "is-resizing",
944
+ "entry",
945
+ "iframes"
946
+ ])) : createCommentVNode("v-if", true),
947
+ createBaseVNode("div", {
948
+ id: "vite-devtools-iframe-container",
949
+ ref_key: "iframesContainer",
950
+ ref: iframesContainer,
951
+ class: "absolute inset-0"
952
+ }, null, 512)
953
+ ], 4)), [[vShow, unref(entry)]]);
954
+ };
955
+ }
956
+ });
957
+ var DockPanel_default = _sfc_main$2;
958
+
959
+ //#endregion
960
+ //#region src/client/webcomponents/components/FloatingTooltip.vue
961
+ const DETECT_MARGIN = 100;
962
+ const GAP = 10;
963
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
964
+ __name: "FloatingTooltip",
965
+ setup(__props) {
966
+ const current = useFloatingTooltip();
967
+ const box = ref({
968
+ text: "",
969
+ width: 0,
970
+ height: 0,
971
+ left: 0,
972
+ top: 0
973
+ });
974
+ const align = computed(() => {
975
+ const vw = window.innerWidth;
976
+ const vh = window.innerHeight;
977
+ if (box.value.left < DETECT_MARGIN) return "right";
978
+ if (box.value.left + box.value.width > vw - DETECT_MARGIN) return "left";
979
+ if (box.value.top < DETECT_MARGIN) return "bottom";
980
+ if (box.value.top + box.value.height > vh - DETECT_MARGIN) return "top";
981
+ return "bottom";
982
+ });
983
+ const style = computed(() => {
984
+ switch (align.value) {
985
+ case "bottom": return {
986
+ left: `${box.value.left + box.value.width / 2}px`,
987
+ top: `${box.value.top + box.value.height + GAP}px`,
988
+ transform: "translateX(-50%)"
989
+ };
990
+ case "top": return {
991
+ left: `${box.value.left + box.value.width / 2}px`,
992
+ bottom: `${window.innerHeight - box.value.top + GAP}px`,
993
+ transform: "translateX(-50%)"
994
+ };
995
+ case "left": return {
996
+ right: `${window.innerWidth - box.value.left + GAP}px`,
997
+ top: `${box.value.top + box.value.height / 2}px`,
998
+ transform: "translateY(-50%)"
999
+ };
1000
+ case "right": return {
1001
+ left: `${box.value.left + box.value.width + GAP}px`,
1002
+ top: `${box.value.top + box.value.height / 2}px`,
1003
+ transform: "translateY(-50%)"
1004
+ };
1005
+ default: throw new Error("Unreachable");
1006
+ }
1007
+ });
1008
+ watchEffect(() => {
1009
+ if (current.value) box.value = { ...current.value };
1010
+ });
1011
+ return (_ctx, _cache) => {
1012
+ return box.value.text ? (openBlock(), createElementBlock("div", {
1013
+ key: 0,
1014
+ class: normalizeClass(["vite-devtools-floating-title z-[2147483645] text-xs transition-all duration-300 w-max bg-glass border border-base rounded px2 fixed p1", unref(current) ? "op100" : "op0 pointer-events-none"]),
1015
+ style: normalizeStyle(style.value)
1016
+ }, toDisplayString(box.value.text), 7)) : createCommentVNode("v-if", true);
1017
+ };
1018
+ }
1019
+ });
1020
+ var FloatingTooltip_default = _sfc_main$1;
1021
+
1022
+ //#endregion
1023
+ //#region src/client/webcomponents/components/DockEmbedded.vue
1024
+ const _sfc_main = /* @__PURE__ */ defineComponent({
1025
+ __name: "DockEmbedded",
1026
+ props: {
1027
+ state: {},
1028
+ docks: {}
1029
+ },
1030
+ setup(__props) {
1031
+ return (_ctx, _cache) => {
1032
+ return openBlock(), createElementBlock(Fragment, null, [createVNode(Dock_default, {
1033
+ state: __props.state,
1034
+ docks: __props.docks
1035
+ }, {
1036
+ default: withCtx(({ dockEl, entry, panelMargins }) => [createVNode(DockPanel_default, {
1037
+ "dock-el": dockEl,
1038
+ state: __props.state,
1039
+ "panel-margins": panelMargins,
1040
+ entry
1041
+ }, null, 8, [
1042
+ "dock-el",
1043
+ "state",
1044
+ "panel-margins",
1045
+ "entry"
1046
+ ])]),
1047
+ _: 1
1048
+ }, 8, ["state", "docks"]), createVNode(FloatingTooltip_default)], 64);
1049
+ };
1050
+ }
1051
+ });
1052
+ var DockEmbedded_default = _sfc_main;
1053
+
1054
+ //#endregion
1055
+ //#region src/client/webcomponents/components/DockEmbedded.ts
1056
+ const DockEmbedded = defineCustomElement(DockEmbedded_default, {
1057
+ shadowRoot: true,
1058
+ styles: [css_default]
1059
+ });
1060
+ customElements.define("vite-devtools-dock-embedded", DockEmbedded);
1061
+
1062
+ //#endregion
1063
+ export { DockEmbedded, IframeHolder, IframeManager };