@vitejs/devtools 0.1.11 → 0.1.13

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 (40) hide show
  1. package/dist/{DockStandalone-CX4RwLuJ.js → DockStandalone-kfuGuU1K.js} +128 -21
  2. package/dist/{LogItem-Ca0SsU39.js → LogItem-DOamSzjc.js} +1 -1
  3. package/dist/{ViewBuiltinLogs-B_CLlali.js → ViewBuiltinLogs-BW-Z3LV1.js} +35 -25
  4. package/dist/{ViewBuiltinTerminals-ZrMObMte.js → ViewBuiltinTerminals-D_aHYGk9.js} +1 -1
  5. package/dist/{ViewJsonRender-Cc5BPfnv.js → ViewJsonRender-BlN5HDyU.js} +1 -1
  6. package/dist/{build-static-BX4XcGdI.js → build-static-SRf6Mx0K.js} +1 -1
  7. package/dist/cli-commands.js +8 -5
  8. package/dist/client/inject.js +3 -3
  9. package/dist/client/standalone/assets/DockIcon-Bn9P0BA3.js +1 -0
  10. package/dist/client/standalone/assets/DockStandalone-BNVMXM6t.js +3 -0
  11. package/dist/client/standalone/assets/DockStandalone-GABFNqKk.js +1 -0
  12. package/dist/client/standalone/assets/{LogItem-BnVhub2j.js → LogItem-B2zhdfw_.js} +1 -1
  13. package/dist/client/standalone/assets/ViewBuiltinLogs-Bv93zOX9.js +1 -0
  14. package/dist/client/standalone/assets/{ViewBuiltinTerminals-DqaYBA6Q.js → ViewBuiltinTerminals-DPB8d-Q0.js} +4 -4
  15. package/dist/client/standalone/assets/{ViewJsonRender-De5eeIha.js → ViewJsonRender-CSnziLMr.js} +1 -1
  16. package/dist/client/standalone/assets/dist-DIiIv9-S.js +5 -0
  17. package/dist/client/standalone/assets/index-C05Px9az.css +1 -0
  18. package/dist/client/standalone/assets/index-C9nheAgG.js +1 -0
  19. package/dist/client/standalone/assets/runtime-core.esm-bundler-Dfaj58fA.js +1 -0
  20. package/dist/client/standalone/index.html +8 -6
  21. package/dist/client/webcomponents.js +3 -3
  22. package/dist/{context-BWju7fup.js → context-WJ5shSfy.js} +564 -506
  23. package/dist/{dist-CCdqIez-.js → dist-DD29zy1v.js} +390 -5
  24. package/dist/index.d.ts +90 -87
  25. package/dist/index.js +3 -3
  26. package/dist/{plugins-DxggNo2I.js → plugins-D8NH18dj.js} +4 -3
  27. package/dist/{popup-DgYOsFy3.js → popup-D4DzCx7h.js} +1 -1
  28. package/dist/{server-DSh-GQIq.js → server-CE1QMUPY.js} +4 -4
  29. package/dist/server-Cz5aS6Hb.js +2 -0
  30. package/dist/{server-ZWEvQMOm.js → server-kLW_T-bo.js} +3 -3
  31. package/dist/{standalone-CBP9wm6I.js → standalone-eqACht_F.js} +2 -2
  32. package/package.json +17 -14
  33. package/dist/client/standalone/assets/DockStandalone-BvXvOkmY.js +0 -1
  34. package/dist/client/standalone/assets/ViewBuiltinLogs-rU-E-8qT.js +0 -1
  35. package/dist/client/standalone/assets/dist-CAaP5Isp.js +0 -1
  36. package/dist/client/standalone/assets/index-2_yFTdkG.js +0 -3
  37. package/dist/client/standalone/assets/index-DtZFMvER.css +0 -1
  38. package/dist/client/standalone/assets/runtime-core.esm-bundler-Bvz2jy0O.js +0 -1
  39. package/dist/server-BQ4s1VXj.js +0 -2
  40. /package/dist/client/standalone/assets/{iconify-C-CPDXMf.js → iconify-DTCjcGxu.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { s as useTimeAgo } from "./dist-CCdqIez-.js";
1
+ import { l as useTimeAgo } from "./dist-DD29zy1v.js";
2
2
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, reactive, renderList, renderSlot, toDisplayString, unref } from "vue";
3
3
  //#region src/client/webcomponents/state/toasts.ts
4
4
  const toasts = reactive([]);
@@ -1,6 +1,6 @@
1
- import { s as useTimeAgo } from "./dist-CCdqIez-.js";
2
- import { a as levels, i as getHashColorFromString, n as _sfc_main$3, o as markLogsAsRead, r as formEntries, s as useLogs, t as _sfc_main$2 } from "./LogItem-Ca0SsU39.js";
3
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, toDisplayString, unref, vModelText, withCtx, withDirectives, withModifiers } from "vue";
1
+ import { l as useTimeAgo, n as useClipboard } from "./dist-DD29zy1v.js";
2
+ import { a as levels, i as getHashColorFromString, n as _sfc_main$3, o as markLogsAsRead, r as formEntries, s as useLogs, t as _sfc_main$2 } from "./LogItem-DOamSzjc.js";
3
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, toDisplayString, unref, vModelText, watch, withCtx, withDirectives, withModifiers } from "vue";
4
4
  //#region src/client/webcomponents/components/display/FilterToggles.vue
5
5
  const _hoisted_1$1 = { class: "text-xs op40" };
6
6
  const _hoisted_2$1 = { class: "flex flex-wrap items-center gap-0.5" };
@@ -102,20 +102,21 @@ const _hoisted_27 = {
102
102
  key: 4,
103
103
  class: "mb-3"
104
104
  };
105
- const _hoisted_28 = { class: "text-xs bg-gray/5 rounded p-2 of-x-auto whitespace-pre-wrap font-mono" };
106
- const _hoisted_29 = {
105
+ const _hoisted_28 = { class: "group relative" };
106
+ const _hoisted_29 = { class: "text-xs bg-gray/5 rounded p-2 of-x-auto whitespace-pre-wrap font-mono" };
107
+ const _hoisted_30 = {
107
108
  key: 5,
108
109
  class: "flex flex-wrap gap-3 mb-3 text-xs op50"
109
110
  };
110
- const _hoisted_30 = {
111
+ const _hoisted_31 = {
111
112
  key: 0,
112
113
  class: "flex items-center gap-1"
113
114
  };
114
- const _hoisted_31 = {
115
+ const _hoisted_32 = {
115
116
  key: 1,
116
117
  class: "flex items-center gap-1"
117
118
  };
118
- const _hoisted_32 = { class: "flex flex-col gap-1 mb-3 text-xs op40 font-mono border-t border-base pt-3" };
119
+ const _hoisted_33 = { class: "flex flex-col gap-1 mb-3 text-xs op40 font-mono border-t border-base pt-3" };
119
120
  const _sfc_main = /* @__PURE__ */ defineComponent({
120
121
  __name: "ViewBuiltinLogs",
121
122
  props: { context: {} },
@@ -217,7 +218,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
217
218
  if (!selectedId.value) return null;
218
219
  return logsState.entries.find((e) => e.id === selectedId.value) ?? null;
219
220
  });
221
+ watch(selectedEntry, async (entry) => {
222
+ if (!entry?.autoDelete) return;
223
+ await props.context.rpc.call("devtoolskit:internal:logs:update", entry.id, { autoDelete: 0 });
224
+ });
220
225
  const selectedTimeAgo = useTimeAgo(computed(() => selectedEntry.value?.timestamp ?? Date.now()));
226
+ const { copy: copyStacktrace, copied: stacktraceCopied } = useClipboard();
221
227
  async function openFile(entry) {
222
228
  if (!entry.filePosition) return;
223
229
  const { file, line, column } = entry.filePosition;
@@ -259,27 +265,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
259
265
  title: sortLabels[sortBy.value],
260
266
  onClick: cycleSortMode
261
267
  }, [createElementVNode("div", { class: normalizeClass([sortIcons[sortBy.value], "w-4 h-4"]) }, null, 2)], 8, _hoisted_4),
262
- _cache[7] || (_cache[7] = createElementVNode("div", { class: "flex-1" }, null, -1)),
268
+ _cache[8] || (_cache[8] = createElementVNode("div", { class: "flex-1" }, null, -1)),
263
269
  filteredEntries.value.length !== unref(logsState).entries.length ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(filteredEntries.value.length) + "/" + toDisplayString(unref(logsState).entries.length), 1)) : createCommentVNode("v-if", true),
264
270
  hasActiveFilter.value ? (openBlock(), createElementBlock("button", {
265
271
  key: 1,
266
272
  class: "text-xs op50 hover:op100 px-1.5 py-0.5 hover:bg-active rounded transition flex items-center gap-0.5",
267
273
  title: "Reset all filters",
268
274
  onClick: resetFilters
269
- }, [..._cache[4] || (_cache[4] = [createElementVNode("div", { class: "i-ph:funnel-x-duotone w-3.5 h-3.5" }, null, -1), createTextVNode(" Reset Filters ", -1)])])) : createCommentVNode("v-if", true),
275
+ }, [..._cache[5] || (_cache[5] = [createElementVNode("div", { class: "i-ph:funnel-x-duotone w-3.5 h-3.5" }, null, -1), createTextVNode(" Reset Filters ", -1)])])) : createCommentVNode("v-if", true),
270
276
  hasActiveFilter.value ? (openBlock(), createElementBlock("div", _hoisted_6)) : createCommentVNode("v-if", true),
271
277
  hasActiveFilter.value && filteredEntries.value.length > 0 ? (openBlock(), createElementBlock("button", {
272
278
  key: 3,
273
279
  class: "text-xs op50 hover:op100 px-1.5 py-0.5 hover:bg-active rounded transition flex items-center gap-0.5",
274
280
  title: "Dismiss all matching the current filter",
275
281
  onClick: dismissFiltered
276
- }, [..._cache[5] || (_cache[5] = [createElementVNode("div", { class: "i-ph:trash-duotone w-3.5 h-3.5" }, null, -1), createTextVNode(" Dismiss filtered ", -1)])])) : createCommentVNode("v-if", true),
282
+ }, [..._cache[6] || (_cache[6] = [createElementVNode("div", { class: "i-ph:trash-duotone w-3.5 h-3.5" }, null, -1), createTextVNode(" Dismiss filtered ", -1)])])) : createCommentVNode("v-if", true),
277
283
  !hasActiveFilter.value && unref(logsState).entries.length > 0 ? (openBlock(), createElementBlock("button", {
278
284
  key: 4,
279
285
  class: "text-xs op50 hover:op100 px-1.5 py-0.5 hover:bg-active rounded transition flex items-center gap-0.5",
280
286
  title: "Dismiss all logs",
281
287
  onClick: clearAll
282
- }, [..._cache[6] || (_cache[6] = [createElementVNode("div", { class: "i-ph:trash-duotone w-3.5 h-3.5" }, null, -1), createTextVNode(" Dismiss all ", -1)])])) : createCommentVNode("v-if", true)
288
+ }, [..._cache[7] || (_cache[7] = [createElementVNode("div", { class: "i-ph:trash-duotone w-3.5 h-3.5" }, null, -1), createTextVNode(" Dismiss all ", -1)])])) : createCommentVNode("v-if", true)
283
289
  ]),
284
290
  createCommentVNode(" Row 2: Level + source + category + label filters "),
285
291
  createElementVNode("div", _hoisted_7, [
@@ -294,7 +300,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
294
300
  "active",
295
301
  "styles"
296
302
  ]),
297
- _cache[10] || (_cache[10] = createElementVNode("div", { class: "border-l border-base h-4 mx-0.5" }, null, -1)),
303
+ _cache[11] || (_cache[11] = createElementVNode("div", { class: "border-l border-base h-4 mx-0.5" }, null, -1)),
298
304
  createVNode(_sfc_main$1, {
299
305
  label: "From",
300
306
  items: unref(allFroms),
@@ -307,7 +313,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
307
313
  "styles",
308
314
  "onToggle"
309
315
  ]),
310
- allCategories.value.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [_cache[8] || (_cache[8] = createElementVNode("div", { class: "border-l border-base h-4 mx-1" }, null, -1)), createVNode(_sfc_main$1, {
316
+ allCategories.value.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [_cache[9] || (_cache[9] = createElementVNode("div", { class: "border-l border-base h-4 mx-1" }, null, -1)), createVNode(_sfc_main$1, {
311
317
  label: "Category",
312
318
  items: allCategories.value,
313
319
  active: activeCategories.value,
@@ -318,7 +324,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
318
324
  "active",
319
325
  "hash-color"
320
326
  ])], 64)) : createCommentVNode("v-if", true),
321
- allLabels.value.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [_cache[9] || (_cache[9] = createElementVNode("div", { class: "border-l border-base h-4 mx-1" }, null, -1)), createVNode(_sfc_main$1, {
327
+ allLabels.value.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [_cache[10] || (_cache[10] = createElementVNode("div", { class: "border-l border-base h-4 mx-1" }, null, -1)), createVNode(_sfc_main$1, {
322
328
  label: "Labels",
323
329
  items: allLabels.value,
324
330
  active: activeLabelFilters.value,
@@ -347,7 +353,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
347
353
  class: "op0 group-hover:op50 hover:op100! p-0.5 rounded hover:bg-active flex-none",
348
354
  title: "Dismiss",
349
355
  onClick: withModifiers(($event) => removeEntry(entry.id), ["stop"])
350
- }, [..._cache[11] || (_cache[11] = [createElementVNode("div", { class: "i-ph-trash-duotone w-3 h-3" }, null, -1)])], 8, _hoisted_11)]),
356
+ }, [..._cache[12] || (_cache[12] = [createElementVNode("div", { class: "i-ph-trash-duotone w-3 h-3" }, null, -1)])], 8, _hoisted_11)]),
351
357
  _: 2
352
358
  }, 1032, ["entry"])], 10, _hoisted_10);
353
359
  }), 128))]),
@@ -361,13 +367,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
361
367
  class: "op50 hover:op100 p-1",
362
368
  title: "Dismiss",
363
369
  onClick: _cache[1] || (_cache[1] = ($event) => removeEntry(selectedEntry.value.id))
364
- }, [..._cache[12] || (_cache[12] = [createElementVNode("div", { class: "i-ph-trash-duotone w-4 h-4" }, null, -1)])]),
370
+ }, [..._cache[13] || (_cache[13] = [createElementVNode("div", { class: "i-ph-trash-duotone w-4 h-4" }, null, -1)])]),
365
371
  createCommentVNode(" Close button "),
366
372
  createElementVNode("button", {
367
373
  class: "op50 hover:op100 p-1",
368
374
  title: "Close detail",
369
375
  onClick: _cache[2] || (_cache[2] = ($event) => selectedId.value = null)
370
- }, [..._cache[13] || (_cache[13] = [createElementVNode("div", { class: "i-ph-x w-4 h-4" }, null, -1)])])
376
+ }, [..._cache[14] || (_cache[14] = [createElementVNode("div", { class: "i-ph-x w-4 h-4" }, null, -1)])])
371
377
  ]),
372
378
  createCommentVNode(" Metadata row "),
373
379
  createElementVNode("div", _hoisted_16, [
@@ -376,12 +382,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
376
382
  key: 0,
377
383
  class: normalizeClass(["flex items-center gap-1", unref(formEntries)[selectedEntry.value.from].color])
378
384
  }, [createElementVNode("div", { class: normalizeClass([unref(formEntries)[selectedEntry.value.from].icon, "w-3.5 h-3.5"]) }, null, 2), createTextVNode(" " + toDisplayString(unref(formEntries)[selectedEntry.value.from].label), 1)], 2)) : createCommentVNode("v-if", true),
379
- selectedEntry.value.status === "loading" ? (openBlock(), createElementBlock("span", _hoisted_18, [..._cache[14] || (_cache[14] = [createElementVNode("div", { class: "w-3 h-3 border-1.5 border-current border-t-transparent rounded-full animate-spin" }, null, -1), createTextVNode(" Loading ", -1)])])) : createCommentVNode("v-if", true),
385
+ selectedEntry.value.status === "loading" ? (openBlock(), createElementBlock("span", _hoisted_18, [..._cache[15] || (_cache[15] = [createElementVNode("div", { class: "w-3 h-3 border-1.5 border-current border-t-transparent rounded-full animate-spin" }, null, -1), createTextVNode(" Loading ", -1)])])) : createCommentVNode("v-if", true),
380
386
  createElementVNode("span", {
381
387
  class: "op40",
382
388
  title: formatAbsoluteTime(selectedEntry.value.timestamp)
383
389
  }, toDisplayString(unref(selectedTimeAgo)), 9, _hoisted_19),
384
- selectedEntry.value.notify ? (openBlock(), createElementBlock("span", _hoisted_20, [..._cache[15] || (_cache[15] = [createElementVNode("div", { class: "i-ph:bell-duotone w-3.5 h-3.5" }, null, -1), createTextVNode(" notify ", -1)])])) : createCommentVNode("v-if", true)
390
+ selectedEntry.value.notify ? (openBlock(), createElementBlock("span", _hoisted_20, [..._cache[16] || (_cache[16] = [createElementVNode("div", { class: "i-ph:bell-duotone w-3.5 h-3.5" }, null, -1), createTextVNode(" notify ", -1)])])) : createCommentVNode("v-if", true)
385
391
  ]),
386
392
  createCommentVNode(" Description "),
387
393
  selectedEntry.value.description ? (openBlock(), createElementBlock("div", _hoisted_21, toDisplayString(selectedEntry.value.description), 1)) : createCommentVNode("v-if", true),
@@ -400,24 +406,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
400
406
  key: 2,
401
407
  class: "flex items-center gap-1.5 text-sm text-blue hover:underline mb-3",
402
408
  onClick: _cache[3] || (_cache[3] = ($event) => openFile(selectedEntry.value))
403
- }, [_cache[16] || (_cache[16] = createElementVNode("div", { class: "i-ph:file-code-duotone w-4 h-4" }, null, -1)), createElementVNode("span", null, [
409
+ }, [_cache[17] || (_cache[17] = createElementVNode("div", { class: "i-ph:file-code-duotone w-4 h-4" }, null, -1)), createElementVNode("span", null, [
404
410
  createTextVNode(toDisplayString(selectedEntry.value.filePosition.file), 1),
405
411
  selectedEntry.value.filePosition.line ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(":" + toDisplayString(selectedEntry.value.filePosition.line), 1)], 64)) : createCommentVNode("v-if", true),
406
412
  selectedEntry.value.filePosition.column ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(":" + toDisplayString(selectedEntry.value.filePosition.column), 1)], 64)) : createCommentVNode("v-if", true)
407
413
  ])])) : createCommentVNode("v-if", true),
408
414
  createCommentVNode(" Element position "),
409
415
  selectedEntry.value.elementPosition ? (openBlock(), createElementBlock("div", _hoisted_23, [
410
- _cache[17] || (_cache[17] = createElementVNode("div", { class: "op50 text-xs mb-1" }, " Element ", -1)),
416
+ _cache[18] || (_cache[18] = createElementVNode("div", { class: "op50 text-xs mb-1" }, " Element ", -1)),
411
417
  selectedEntry.value.elementPosition.selector ? (openBlock(), createElementBlock("div", _hoisted_24, toDisplayString(selectedEntry.value.elementPosition.selector), 1)) : createCommentVNode("v-if", true),
412
418
  selectedEntry.value.elementPosition.description ? (openBlock(), createElementBlock("div", _hoisted_25, toDisplayString(selectedEntry.value.elementPosition.description), 1)) : createCommentVNode("v-if", true),
413
419
  selectedEntry.value.elementPosition.boundingBox ? (openBlock(), createElementBlock("div", _hoisted_26, toDisplayString(selectedEntry.value.elementPosition.boundingBox.x) + ", " + toDisplayString(selectedEntry.value.elementPosition.boundingBox.y) + " (" + toDisplayString(selectedEntry.value.elementPosition.boundingBox.width) + " × " + toDisplayString(selectedEntry.value.elementPosition.boundingBox.height) + ") ", 1)) : createCommentVNode("v-if", true)
414
420
  ])) : createCommentVNode("v-if", true),
415
421
  createCommentVNode(" Stacktrace "),
416
- selectedEntry.value.stacktrace ? (openBlock(), createElementBlock("div", _hoisted_27, [_cache[18] || (_cache[18] = createElementVNode("div", { class: "op50 text-xs mb-1" }, " Stack Trace ", -1)), createElementVNode("pre", _hoisted_28, toDisplayString(selectedEntry.value.stacktrace), 1)])) : createCommentVNode("v-if", true),
422
+ selectedEntry.value.stacktrace ? (openBlock(), createElementBlock("div", _hoisted_27, [_cache[19] || (_cache[19] = createElementVNode("div", { class: "op50 text-xs mb-1" }, " Stack Trace ", -1)), createElementVNode("div", _hoisted_28, [createElementVNode("pre", _hoisted_29, toDisplayString(selectedEntry.value.stacktrace), 1), createElementVNode("button", {
423
+ class: "group/bt absolute top-1.5 right-1.5 op0 group-hover:op100 p-1 rounded bg-base border border-base transition",
424
+ title: "Copy",
425
+ onClick: _cache[4] || (_cache[4] = ($event) => unref(copyStacktrace)(selectedEntry.value.stacktrace))
426
+ }, [createElementVNode("div", { class: normalizeClass([unref(stacktraceCopied) ? "i-ph:check" : "i-ph:copy", "op50 group-hover/bt:op100 size-3.5"]) }, null, 2)])])])) : createCommentVNode("v-if", true),
417
427
  createCommentVNode(" Timers "),
418
- selectedEntry.value.autoDismiss || selectedEntry.value.autoDelete ? (openBlock(), createElementBlock("div", _hoisted_29, [selectedEntry.value.autoDismiss ? (openBlock(), createElementBlock("span", _hoisted_30, [_cache[19] || (_cache[19] = createElementVNode("div", { class: "i-ph:bell-slash-duotone w-3.5 h-3.5" }, null, -1)), createTextVNode(" Auto-dismiss: " + toDisplayString(selectedEntry.value.autoDismiss / 1e3) + "s ", 1)])) : createCommentVNode("v-if", true), selectedEntry.value.autoDelete ? (openBlock(), createElementBlock("span", _hoisted_31, [_cache[20] || (_cache[20] = createElementVNode("div", { class: "i-ph:timer-duotone w-3.5 h-3.5" }, null, -1)), createTextVNode(" Auto-delete: " + toDisplayString(selectedEntry.value.autoDelete / 1e3) + "s ", 1)])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true),
428
+ selectedEntry.value.autoDismiss || selectedEntry.value.autoDelete ? (openBlock(), createElementBlock("div", _hoisted_30, [selectedEntry.value.autoDismiss ? (openBlock(), createElementBlock("span", _hoisted_31, [_cache[20] || (_cache[20] = createElementVNode("div", { class: "i-ph:bell-slash-duotone w-3.5 h-3.5" }, null, -1)), createTextVNode(" Auto-dismiss: " + toDisplayString(selectedEntry.value.autoDismiss / 1e3) + "s ", 1)])) : createCommentVNode("v-if", true), selectedEntry.value.autoDelete ? (openBlock(), createElementBlock("span", _hoisted_32, [_cache[21] || (_cache[21] = createElementVNode("div", { class: "i-ph:timer-duotone w-3.5 h-3.5" }, null, -1)), createTextVNode(" Auto-delete: " + toDisplayString(selectedEntry.value.autoDelete / 1e3) + "s ", 1)])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true),
419
429
  createCommentVNode(" ID + Timestamp "),
420
- createElementVNode("div", _hoisted_32, [createElementVNode("span", null, "ID: " + toDisplayString(selectedEntry.value.id), 1), createElementVNode("span", null, toDisplayString(formatAbsoluteTime(selectedEntry.value.timestamp)) + " (" + toDisplayString(new Date(selectedEntry.value.timestamp).toLocaleDateString()) + ")", 1)])
430
+ createElementVNode("div", _hoisted_33, [createElementVNode("span", null, "ID: " + toDisplayString(selectedEntry.value.id), 1), createElementVNode("span", null, toDisplayString(formatAbsoluteTime(selectedEntry.value.timestamp)) + " (" + toDisplayString(new Date(selectedEntry.value.timestamp).toLocaleDateString()) + ")", 1)])
421
431
  ])) : createCommentVNode("v-if", true)
422
432
  ], 2)
423
433
  ]);
@@ -1,4 +1,4 @@
1
- import { d as watchImmediate, i as useEventListener } from "./dist-CCdqIez-.js";
1
+ import { o as useEventListener, p as watchImmediate } from "./dist-DD29zy1v.js";
2
2
  import { t as _sfc_main$2 } from "./DockIcon-7v-JouW5.js";
3
3
  import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, markRaw, nextTick, normalizeClass, onMounted, onUnmounted, openBlock, reactive, ref, renderList, shallowRef, toDisplayString, unref, watch } from "vue";
4
4
  //#region src/client/webcomponents/state/terminals.ts
@@ -5239,7 +5239,7 @@ defineSchema((s) => ({
5239
5239
  ]
5240
5240
  });
5241
5241
  //#endregion
5242
- //#region ../../node_modules/.pnpm/@json-render+vue@0.13.0_vue@3.5.30_typescript@5.9.3__zod@4.3.6/node_modules/@json-render/vue/dist/index.mjs
5242
+ //#region ../../node_modules/.pnpm/@json-render+vue@0.13.0_vue@3.5.31_typescript@6.0.2__zod@4.3.6/node_modules/@json-render/vue/dist/index.mjs
5243
5243
  var STATE_KEY = /* @__PURE__ */ Symbol("json-render:state");
5244
5244
  var StateProvider = defineComponent({
5245
5245
  name: "StateProvider",
@@ -16,7 +16,7 @@ async function buildStaticDevTools(options) {
16
16
  await fs$1.mkdir(join(outDir, baseUrl), { recursive: true });
17
17
  await fs$1.cp(distDir, join(outDir, baseUrl), { recursive: true });
18
18
  }
19
- const { renderDockImportsMap } = await import("./server-BQ4s1VXj.js");
19
+ const { renderDockImportsMap } = await import("./server-Cz5aS6Hb.js");
20
20
  await fs$1.mkdir(resolve(devToolsRoot, DEVTOOLS_RPC_DUMP_DIRNAME), { recursive: true });
21
21
  await fs$1.writeFile(resolve(devToolsRoot, DEVTOOLS_CONNECTION_META_FILENAME), JSON.stringify({ backend: "static" }, null, 2), "utf-8");
22
22
  await fs$1.writeFile(resolve(devToolsRoot, DEVTOOLS_DOCK_IMPORTS_FILENAME), renderDockImportsMap(context.docks.values()), "utf-8");
@@ -11,12 +11,15 @@ async function start(options) {
11
11
  port: options.port == null ? void 0 : +options.port,
12
12
  portRange: [9999, 15e3]
13
13
  });
14
- const { startStandaloneDevTools } = await import("./standalone-CBP9wm6I.js");
15
- const { createDevToolsMiddleware } = await import("./server-DSh-GQIq.js").then((n) => n.n);
14
+ const { startStandaloneDevTools } = await import("./standalone-eqACht_F.js");
15
+ const { createDevToolsMiddleware } = await import("./server-CE1QMUPY.js").then((n) => n.n);
16
16
  const devtools = await startStandaloneDevTools({ cwd: options.root });
17
17
  const { h3 } = await createDevToolsMiddleware({
18
18
  cwd: devtools.config.root,
19
- hostWebSocket: host,
19
+ websocket: {
20
+ host,
21
+ https: false
22
+ },
20
23
  context: devtools.context
21
24
  });
22
25
  const { createServer } = await import("node:http");
@@ -40,13 +43,13 @@ async function start(options) {
40
43
  }
41
44
  async function build(options) {
42
45
  console.log(ansis_default.cyan`${"⬢"} Building static Vite DevTools...`);
43
- const { startStandaloneDevTools } = await import("./standalone-CBP9wm6I.js");
46
+ const { startStandaloneDevTools } = await import("./standalone-eqACht_F.js");
44
47
  const devtools = await startStandaloneDevTools({
45
48
  cwd: options.root,
46
49
  config: options.config
47
50
  });
48
51
  const outDir = resolve(devtools.config.root, options.outDir);
49
- const { buildStaticDevTools } = await import("./build-static-BX4XcGdI.js");
52
+ const { buildStaticDevTools } = await import("./build-static-SRf6Mx0K.js");
50
53
  await buildStaticDevTools({
51
54
  context: devtools.context,
52
55
  outDir
@@ -1,5 +1,5 @@
1
- import { a as useLocalStorage } from "../dist-CCdqIez-.js";
2
- import { C as createDockEntryState, E as BUILTIN_ENTRIES, S as DEFAULT_DOCK_PANEL_STORE, T as useDocksEntries, a as triggerMainFrameDockAction, h as docksGroupByCategories, r as registerMainFrameDockActionHandler, v as collectAllKeybindings, w as sharedStateToRef, x as normalizeKeyEvent } from "../popup-DgYOsFy3.js";
1
+ import { s as useLocalStorage } from "../dist-DD29zy1v.js";
2
+ import { C as createDockEntryState, E as BUILTIN_ENTRIES, S as DEFAULT_DOCK_PANEL_STORE, T as useDocksEntries, a as triggerMainFrameDockAction, h as docksGroupByCategories, r as registerMainFrameDockActionHandler, v as collectAllKeybindings, w as sharedStateToRef, x as normalizeKeyEvent } from "../popup-D4DzCx7h.js";
3
3
  import { DEFAULT_STATE_USER_SETTINGS, DEVTOOLS_DOCK_IMPORTS_FILENAME, DEVTOOLS_DOCK_IMPORTS_VIRTUAL_ID, DEVTOOLS_MOUNT_PATH } from "@vitejs/devtools-kit/constants";
4
4
  import { CLIENT_CONTEXT_KEY, getDevToolsRpcClient } from "@vitejs/devtools-kit/client";
5
5
  import { computed, markRaw, reactive, ref, toRefs, watchEffect } from "vue";
@@ -318,7 +318,7 @@ async function createDocksContext(clientType, rpc, panelStore) {
318
318
  title: entry.title,
319
319
  icon: typeof entry.icon === "string" ? entry.icon : void 0,
320
320
  action: () => {
321
- switchEntry(entry.id);
321
+ toggleEntry(entry.id);
322
322
  }
323
323
  };
324
324
  });
@@ -0,0 +1 @@
1
+ import{E as e,F as t,K as n,a as r,d as i,h as a,l as o,n as s,p as c,s as l}from"./runtime-core.esm-bundler-Dfaj58fA.js";import{t as u}from"./iconify-DTCjcGxu.js";var d=[`innerHTML`],f=[`src`],p=a({__name:`IconifyIcon`,props:{icon:{}},setup(i){let a=i,s=r(()=>a.icon.includes(`/`)||a.icon.startsWith(`data:`)||a.icon.startsWith(`builtin:`)),c=r(()=>{if(s.value)return;let e=a.icon.match(/^(?:i-)?([\w-]+):([\w-]+)$/);if(e)return{collection:e[1],icon:e[2]}}),l=n(void 0);return t(async()=>{if(!c.value){l.value=void 0;return}l.value=await u(c.value.collection,c.value.icon)}),(t,n)=>c.value?(e(),o(`div`,{key:0,innerHTML:l.value},null,8,d)):(e(),o(`img`,{key:1,src:i.icon,class:`w-full h-full m-auto`,draggable:`false`},null,8,f))}}),m=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},h={},g={viewBox:`0 0 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function _(t,n){return e(),o(`svg`,g,[...n[0]||=[i(`<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)]])}var v=m(h,[[`render`,_]]),y={key:1},b=a({__name:`DockIcon`,props:{icon:{},title:{}},setup(t){let n=t,i=r(()=>typeof n.icon==`string`?{dark:n.icon,light:n.icon}:n.icon);return(n,r)=>i.value.light===`builtin:vite-plus-core`?(e(),l(v,{key:0})):(e(),o(`div`,y,[i.value.light===i.value.dark?(e(),l(p,{key:0,icon:i.value.light,title:t.title},null,8,[`icon`,`title`])):(e(),o(s,{key:1},[c(p,{class:`dark-hidden`,icon:i.value.light,title:t.title},null,8,[`icon`,`title`]),c(p,{class:`light-hidden`,icon:i.value.dark,title:t.title},null,8,[`icon`,`title`])],64))]))}});export{m as n,b as t};
@@ -0,0 +1,3 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DockStandalone-GABFNqKk.js","./LogItem-B2zhdfw_.js","./runtime-core.esm-bundler-Dfaj58fA.js","./dist-DIiIv9-S.js","./ViewBuiltinTerminals-DPB8d-Q0.js","./DockIcon-Bn9P0BA3.js","./iconify-DTCjcGxu.js","./ViewBuiltinLogs-Bv93zOX9.js","./ViewJsonRender-CSnziLMr.js"])))=>i.map(i=>d[i]);
2
+ import{$ as e,C as t,E as n,F as r,H as i,J as a,K as o,L as s,M as c,O as l,P as u,R as d,W as f,Z as p,_t as m,a as h,c as g,d as _,f as v,h as y,k as b,l as x,m as S,n as C,o as w,p as T,r as E,s as D,v as O,vt as k,w as A,x as j,yt as M}from"./runtime-core.esm-bundler-Dfaj58fA.js";import{c as N,h as P,l as F,m as I,n as L,p as R,s as z,t as ee,u as te}from"./LogItem-B2zhdfw_.js";import{a as ne,i as re,r as ie,s as ae,t as oe}from"./dist-DIiIv9-S.js";import{n as se,t as B}from"./DockIcon-Bn9P0BA3.js";var ce=`/.devtools/`,le=`.connection.json`,ue=`.rpc-dump/index.json`,de=`.client-imports.js`,fe=`/.devtools-client-imports.js`,pe=()=>({docksHidden:[],docksCategoriesHidden:[],docksPinned:[],docksCustomOrder:{},showIframeAddressBar:!1,closeOnOutsideClick:!1,commandShortcuts:{}});function me(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e<t;e++){let t=r[e];t&&t(...n)}}function n(n,...r){t(n,...r),delete e[n]}function r(t,n){return(e[t]||=[]).push(n),()=>{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var he=class{holders={};constructor(e){this.container=e}getHolder(e,t){return this.holders[e]}getOrCreateHolder(e,t){if(!this.container.value)throw Error(`[VITE DEVTOOLS] PersistedDomViewsManager: container is not set`);let n;if(this.holders[e])n=this.holders[e];else{let r=document.createElement(t);this.holders[e]=new ge(e,r),this.container.value.appendChild(r),n=this.holders[e]}return n}removeHolder(e){let t=this.holders[e];return t?(t.unmount(),t.element.remove(),delete this.holders[e],!0):!1}},ge=class{element;id;anchor;_cleanups=[];constructor(e,t){this.id=e,this.element=t}cleanup(){this._cleanups.forEach(e=>e()),this._cleanups=[]}mount(e){if(this.anchor===e){this.show();return}this.cleanup(),this.anchor=e;let t=()=>this.update();window.addEventListener(`resize`,t),this._cleanups.push(()=>window.removeEventListener(`resize`,t)),this.show()}hide(){this.element.style.display=`none`}show(){this.element.style.display=`block`,this.update()}update(){if(!this.anchor)return;let e=this.anchor.getBoundingClientRect();this.element.style.position=`absolute`,this.element.style.width=`${e.width}px`,this.element.style.height=`${e.height}px`}unmount(){this.cleanup(),this.hide(),this.anchor=void 0}};function V(e){return Array.isArray?Array.isArray(e):Te(e)===`[object Array]`}var _e=1/0;function ve(e){if(typeof e==`string`)return e;let t=e+``;return t==`0`&&1/e==-_e?`-0`:t}function ye(e){return e==null?``:ve(e)}function H(e){return typeof e==`string`}function be(e){return typeof e==`number`}function xe(e){return e===!0||e===!1||Ce(e)&&Te(e)==`[object Boolean]`}function Se(e){return typeof e==`object`}function Ce(e){return Se(e)&&e!==null}function U(e){return e!=null}function we(e){return!e.trim().length}function Te(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Ee=`Incorrect 'index' type`,De=e=>`Invalid value for key ${e}`,Oe=e=>`Pattern length exceeds max of ${e}.`,ke=e=>`Missing ${e} property in key`,Ae=e=>`Property 'weight' in key '${e}' must be a positive integer`,je=Object.prototype.hasOwnProperty,Me=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=Ne(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function Ne(e){let t=null,n=null,r=null,i=1,a=null;if(H(e)||V(e))r=e,t=Pe(e),n=Fe(e);else{if(!je.call(e,`name`))throw Error(ke(`name`));let o=e.name;if(r=o,je.call(e,`weight`)&&(i=e.weight,i<=0))throw Error(Ae(o));t=Pe(o),n=Fe(o),a=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:a}}function Pe(e){return V(e)?e:e.split(`.`)}function Fe(e){return V(e)?e.join(`.`):e}function Ie(e,t){let n=[],r=!1,i=(e,t,a)=>{if(U(e))if(!t[a])n.push(e);else{let o=e[t[a]];if(!U(o))return;if(a===t.length-1&&(H(o)||be(o)||xe(o)))n.push(ye(o));else if(V(o)){r=!0;for(let e=0,n=o.length;e<n;e+=1)i(o[e],t,a+1)}else t.length&&i(o,t,a+1)}};return i(e,H(t)?t.split(`.`):t,0),r?n:n[0]}var Le={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Re={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},ze={location:0,threshold:.6,distance:100},Be={useExtendedSearch:!1,getFn:Ie,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},W={...Re,...Le,...ze,...Be},Ve=/[^ ]+/g;function He(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=t.match(Ve).length;if(n.has(i))return n.get(i);let a=1/i**(.5*e),o=parseFloat(Math.round(a*r)/r);return n.set(i,o),o},clear(){n.clear()}}}var Ue=class{constructor({getFn:e=W.getFn,fieldNormWeight:t=W.fieldNormWeight}={}){this.norm=He(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,H(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();H(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)--this.records[t].i}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!U(e)||we(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach((t,r)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(U(i)){if(V(i)){let e=[],t=[{nestedArrIndex:-1,value:i}];for(;t.length;){let{nestedArrIndex:n,value:r}=t.pop();if(U(r))if(H(r)&&!we(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else V(r)&&r.forEach((e,n)=>{t.push({nestedArrIndex:n,value:e})})}n.$[r]=e}else if(H(i)&&!we(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}};function We(e,t,{getFn:n=W.getFn,fieldNormWeight:r=W.fieldNormWeight}={}){let i=new Ue({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(Ne)),i.setSources(t),i.create(),i}function Ge(e,{getFn:t=W.getFn,fieldNormWeight:n=W.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new Ue({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function G(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=W.distance,ignoreLocation:a=W.ignoreLocation}={}){let o=t/e.length;if(a)return o;let s=Math.abs(r-n);return i?o+s/i:s?1:o}function Ke(e=[],t=W.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}var K=32;function qe(e,t,n,{location:r=W.location,distance:i=W.distance,threshold:a=W.threshold,findAllMatches:o=W.findAllMatches,minMatchCharLength:s=W.minMatchCharLength,includeMatches:c=W.includeMatches,ignoreLocation:l=W.ignoreLocation}={}){if(t.length>K)throw Error(Oe(K));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=s>1||c,g=h?Array(d):[],_;for(;(_=e.indexOf(t,m))>-1;){let e=G(t,{currentLocation:_,expectedLocation:f,distance:i,ignoreLocation:l});if(p=Math.min(e,p),m=_+u,h){let e=0;for(;e<u;)g[_+e]=1,e+=1}}m=-1;let v=[],y=1,b=u+d,x=1<<u-1;for(let r=0;r<u;r+=1){let a=0,s=b;for(;a<s;)G(t,{errors:r,currentLocation:f+s,expectedLocation:f,distance:i,ignoreLocation:l})<=p?a=s:b=s,s=Math.floor((b-a)/2+a);b=s;let c=Math.max(1,f-s+1),_=o?d:Math.min(f+s,d)+u,S=Array(_+2);S[_+1]=(1<<r)-1;for(let a=_;a>=c;--a){let o=a-1,s=n[e.charAt(o)];if(h&&(g[o]=+!!s),S[a]=(S[a+1]<<1|1)&s,r&&(S[a]|=(v[a+1]|v[a])<<1|1|v[a+1]),S[a]&x&&(y=G(t,{errors:r,currentLocation:o,expectedLocation:f,distance:i,ignoreLocation:l}),y<=p)){if(p=y,m=o,m<=f)break;c=Math.max(1,2*f-m)}}if(G(t,{errors:r+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:l})>p)break;v=S}let S={isMatch:m>=0,score:Math.max(.001,y)};if(h){let e=Ke(g,s);e.length?c&&(S.indices=e):S.isMatch=!1}return S}function Je(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}var q=String.prototype.normalize?(e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``)):(e=>e),Ye=class{constructor(e,{location:t=W.location,threshold:n=W.threshold,distance:r=W.distance,includeMatches:i=W.includeMatches,findAllMatches:a=W.findAllMatches,minMatchCharLength:o=W.minMatchCharLength,isCaseSensitive:s=W.isCaseSensitive,ignoreDiacritics:c=W.ignoreDiacritics,ignoreLocation:l=W.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?q(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:Je(e),startIndex:t})},d=this.pattern.length;if(d>K){let e=0,t=d%K,n=d-t;for(;e<n;)u(this.pattern.substr(e,K),e),e+=K;if(t){let e=d-K;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?q(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=qe(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&(u=[...u,...g])});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=u),p}},J=class{constructor(e){this.pattern=e}static isMultiMatch(e){return Xe(e,this.multiRegex)}static isSingleMatch(e){return Xe(e,this.singleRegex)}search(){}};function Xe(e,t){let n=e.match(t);return n?n[1]:null}var Ze=class extends J{constructor(e){super(e)}static get type(){return`exact`}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},Qe=class extends J{constructor(e){super(e)}static get type(){return`inverse-exact`}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=e.indexOf(this.pattern)===-1;return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},$e=class extends J{constructor(e){super(e)}static get type(){return`prefix-exact`}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},et=class extends J{constructor(e){super(e)}static get type(){return`inverse-prefix-exact`}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},tt=class extends J{constructor(e){super(e)}static get type(){return`suffix-exact`}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}},nt=class extends J{constructor(e){super(e)}static get type(){return`inverse-suffix-exact`}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},rt=class extends J{constructor(e,{location:t=W.location,threshold:n=W.threshold,distance:r=W.distance,includeMatches:i=W.includeMatches,findAllMatches:a=W.findAllMatches,minMatchCharLength:o=W.minMatchCharLength,isCaseSensitive:s=W.isCaseSensitive,ignoreDiacritics:c=W.ignoreDiacritics,ignoreLocation:l=W.ignoreLocation}={}){super(e),this._bitapSearch=new Ye(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l})}static get type(){return`fuzzy`}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}},it=class extends J{constructor(e){super(e)}static get type(){return`include`}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0,n,r=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,t))>-1;)t=n+i,r.push([n,t-1]);let a=!!r.length;return{isMatch:a,score:+!a,indices:r}}},at=[Ze,it,$e,et,nt,tt,Qe,rt],ot=at.length,st=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,ct=`|`;function lt(e,t={}){return e.split(ct).map(e=>{let n=e.trim().split(st).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<ot;){let e=at[o],n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),a=!0)}if(!a)for(o=-1;++o<ot;){let e=at[o],n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r})}var ut=new Set([rt.type,it.type]),dt=class{constructor(e,{isCaseSensitive:t=W.isCaseSensitive,ignoreDiacritics:n=W.ignoreDiacritics,includeMatches:r=W.includeMatches,minMatchCharLength:i=W.minMatchCharLength,ignoreLocation:a=W.ignoreLocation,findAllMatches:o=W.findAllMatches,location:s=W.location,threshold:c=W.threshold,distance:l=W.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?q(e):e,this.pattern=e,this.query=lt(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?q(e):e;let a=0,o=[],s=0;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:c,indices:l,score:u}=r.search(e);if(c){if(a+=1,s+=u,n){let e=r.constructor.type;ut.has(e)?o=[...o,...l]:o.push(l)}}else{s=0,a=0,o.length=0;break}}if(a){let e={isMatch:!0,score:s/a};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}},ft=[];function pt(...e){ft.push(...e)}function mt(e,t){for(let n=0,r=ft.length;n<r;n+=1){let r=ft[n];if(r.condition(e,t))return new r(e,t)}return new Ye(e,t)}var ht={AND:`$and`,OR:`$or`},gt={PATH:`$path`,PATTERN:`$val`},_t=e=>!!(e[ht.AND]||e[ht.OR]),vt=e=>!!e[gt.PATH],yt=e=>!V(e)&&Se(e)&&!_t(e),bt=e=>({[ht.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function xt(e,t,{auto:n=!0}={}){let r=e=>{let i=Object.keys(e),a=vt(e);if(!a&&i.length>1&&!_t(e))return r(bt(e));if(yt(e)){let r=a?e[gt.PATH]:i[0],o=a?e[gt.PATTERN]:e[r];if(!H(o))throw Error(De(r));let s={keyId:Fe(r),pattern:o};return n&&(s.searcher=mt(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];V(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return _t(e)||(e=bt(e)),r(e)}function St(e,{ignoreFieldNorm:t=W.ignoreFieldNorm}){e.forEach(e=>{let n=1;e.matches.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),e.score=n})}function Ct(e,t){let n=e.matches;t.matches=[],U(n)&&n.forEach(e=>{if(!U(e.indices)||!e.indices.length)return;let{indices:n,value:r}=e,i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function wt(e,t){t.score=e.score}function Tt(e,t,{includeMatches:n=W.includeMatches,includeScore:r=W.includeScore}={}){let i=[];return n&&i.push(Ct),r&&i.push(wt),e.map(e=>{let{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach(t=>{t(e,r)}),r})}var Y=class{constructor(e,t={},n){this.options={...W,...t},this.options.useExtendedSearch,this._keyStore=new Me(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Ue))throw Error(Ee);this._myIndex=t||We(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){U(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let n=0,r=this._docs.length;n<r;n+=1){let i=this._docs[n];e(i,n)&&(this.removeAt(n),--n,--r,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:n,includeScore:r,shouldSort:i,sortFn:a,ignoreFieldNorm:o}=this.options,s=H(e)?H(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return St(s,{ignoreFieldNorm:o}),i&&s.sort(a),be(t)&&t>-1&&(s=s.slice(0,t)),Tt(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){let t=mt(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:e,i:n,n:i})=>{if(!U(e))return;let{isMatch:a,score:o,indices:s}=t.searchIn(e);a&&r.push({item:e,idx:n,matches:[{score:o,value:e,norm:i,indices:s}]})}),r}_searchLogical(e){let t=xt(e,this.options),n=(e,t,r)=>{if(!e.children){let{keyId:n,searcher:i}=e,a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return a&&a.length?[{idx:r,item:t,matches:a}]:[]}let i=[];for(let a=0,o=e.children.length;a<o;a+=1){let o=e.children[a],s=n(o,t,r);if(s.length)i.push(...s);else if(e.operator===ht.AND)return[]}return i},r=this._myIndex.records,i={},a=[];return r.forEach(({$:e,i:r})=>{if(U(e)){let o=n(t,e,r);o.length&&(i[r]||(i[r]={idx:r,item:e,matches:[]},a.push(i[r])),o.forEach(({matches:e})=>{i[r].matches.push(...e)}))}}),a}_searchObjectList(e){let t=mt(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:e,i:r})=>{if(!U(e))return;let a=[];n.forEach((n,r)=>{a.push(...this._findMatches({key:n,value:e[r],searcher:t}))}),a.length&&i.push({idx:r,item:e,matches:a})}),i}_findMatches({key:e,value:t,searcher:n}){if(!U(t))return[];let r=[];if(V(t))t.forEach(({v:t,i,n:a})=>{if(!U(t))return;let{isMatch:o,score:s,indices:c}=n.searchIn(t);o&&r.push({score:s,key:e,value:t,idx:i,norm:a,indices:c})});else{let{v:i,n:a}=t,{isMatch:o,score:s,indices:c}=n.searchIn(i);o&&r.push({score:s,key:e,value:i,norm:a,indices:c})}return r}};Y.version=`7.1.0`,Y.createIndex=We,Y.parseIndex=Ge,Y.config=W,Y.parseQuery=xt,pt(dt);var Et=ie({valueLight:`light`}),Dt={viewBox:`0 0 979 89`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"pointer-events-none":``},Ot=[`fill`],kt=[`fill`],At=[`fill`],jt=[`fill`],Mt=y({__name:`ViteDevTools`,setup(e){let t=h(()=>Et.value?`white`:`black`);return(e,r)=>(n(),x(`svg`,Dt,[r[0]||=_(`<path d="M328.999 86.823C327.739 88.427 325.161 87.535 325.161 85.4973V65.9264C325.161 63.5532 323.238 61.63 320.865 61.63H299.256C297.509 61.63 296.49 59.6537 297.509 58.2339L311.715 38.3438C313.749 35.5001 311.715 31.5474 308.217 31.5474H282.067C280.319 31.5474 279.3 29.5711 280.319 28.1512L298.736 2.36497C299.141 1.80031 299.792 1.46478 300.484 1.46478H355.366C357.113 1.46478 358.132 3.4411 357.114 4.86094L342.907 24.751C340.873 27.5948 342.907 31.5474 346.405 31.5474H368.014C369.806 31.5474 370.813 33.6137 369.704 35.0254L329.003 86.8271L328.999 86.823Z" fill="#9135FF"></path><mask id="mask0_logo" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="279" y="1" width="91" height="87"><path d="M328.801 86.8227C327.541 88.4266 324.963 87.5346 324.963 85.4969V65.9261C324.963 63.5528 323.04 61.6297 320.666 61.6297H299.058C297.311 61.6297 296.292 59.6534 297.311 58.2335L311.517 38.3435C313.551 35.4997 311.517 31.5471 308.019 31.5471H281.868C280.121 31.5471 279.102 29.5708 280.121 28.1509L298.538 2.36463C298.943 1.79997 299.594 1.46445 300.285 1.46445H355.168C356.915 1.46445 357.934 3.44077 356.915 4.86061L342.709 24.7507C340.675 27.5944 342.709 31.5471 346.207 31.5471H367.816C369.608 31.5471 370.615 33.6134 369.506 35.0251L328.805 86.8268L328.801 86.8227Z" fill="black"></path></mask><g mask="url(#mask0_logo)"><g filter="url(#filter0_f_logo)"><ellipse cx="10.4623" cy="27.9302" rx="10.4623" ry="27.9302" transform="matrix(0.00324134 0.999995 0.999995 -0.00324134 271.227 61.3274)" fill="#EEE6FF"></ellipse></g><g filter="url(#filter1_f_logo)"><ellipse cx="19.7534" cy="56.7016" rx="19.7534" ry="56.7016" transform="matrix(0.00324134 0.999995 0.999995 -0.00324134 205.013 16.4374)" fill="#EEE6FF"></ellipse></g><g filter="url(#filter2_f_logo)"><ellipse cx="10.4623" cy="57.9085" rx="10.4623" ry="57.9085" transform="matrix(0.00324134 0.999995 0.999995 -0.00324134 202.85 22.9685)" fill="#8900FF"></ellipse></g><g filter="url(#filter3_f_logo)"><ellipse cx="10.4623" cy="58.1208" rx="10.4623" ry="58.1208" transform="matrix(0.00324134 0.999995 0.999995 -0.00324134 211.578 57.1575)" fill="#8900FF"></ellipse></g><g filter="url(#filter4_f_logo)"><ellipse cx="10.4623" cy="58.1208" rx="10.4623" ry="58.1208" transform="matrix(0.00324134 0.999995 0.999995 -0.00324134 214.489 59.3398)" fill="#8900FF"></ellipse></g><g filter="url(#filter5_f_logo)"><ellipse cx="26.7282" cy="41.937" rx="26.7282" ry="41.937" transform="matrix(0.0584509 -0.99829 -0.99829 -0.0584509 420.939 52.4903)" fill="#EEE6FF"></ellipse></g><g filter="url(#filter6_f_logo)"><ellipse cx="6.59178" cy="40.8401" rx="6.59178" ry="40.8401" transform="matrix(-0.0172986 -0.99985 -0.99985 0.0172986 423.684 35.7737)" fill="#8900FF"></ellipse></g><g filter="url(#filter7_f_logo)"><ellipse cx="6.59178" cy="40.8401" rx="6.59178" ry="40.8401" transform="matrix(-0.0172986 -0.99985 -0.99985 0.0172986 423.684 35.7737)" fill="#8900FF"></ellipse></g><g filter="url(#filter8_f_logo)"><ellipse cx="280.451" cy="18.5056" rx="8.37029" ry="55.2889" transform="rotate(39.5103 280.451 18.5056)" fill="#8900FF"></ellipse></g><g filter="url(#filter9_f_logo)"><ellipse cx="369.984" cy="-10.1065" rx="8.37029" ry="55.2889" transform="rotate(37.8923 369.984 -10.1065)" fill="#8900FF"></ellipse></g><g filter="url(#filter10_f_logo)"><ellipse cx="358.377" cy="13.4947" rx="11.3426" ry="18.3586" transform="rotate(37.8923 358.377 13.4947)" fill="#00C2FF"></ellipse></g><g filter="url(#filter11_f_logo)"><ellipse cx="276.147" cy="74.2747" rx="8.37029" ry="55.2889" transform="rotate(37.8923 276.147 74.2747)" fill="#8900FF"></ellipse></g><g filter="url(#filter12_f_logo)"><ellipse cx="276.147" cy="74.2747" rx="8.37029" ry="55.2889" transform="rotate(37.8923 276.147 74.2747)" fill="#8900FF"></ellipse></g><g filter="url(#filter13_f_logo)"><ellipse cx="347.434" cy="58.2714" rx="8.37029" ry="55.2889" transform="rotate(37.8923 347.434 58.2714)" fill="#8900FF"></ellipse></g><g filter="url(#filter14_f_logo)"><ellipse cx="352.689" cy="63.0069" rx="11.3426" ry="29.0568" transform="rotate(37.8923 352.689 63.0069)" fill="#00C2FF"></ellipse></g></g>`,3),w(`path`,{d:`M265.911 0C248.439 25.0088 248.337 63.7742 265.911 88.8731H277.716C260.146 63.7742 260.248 25.0088 277.716 0H265.911Z`,fill:t.value},null,8,Ot),w(`path`,{d:`M383.972 9.15527e-05H372.167C389.639 25.0089 389.741 63.7743 372.167 88.8732H383.972C401.542 63.7743 401.44 25.0089 383.972 9.15527e-05Z`,fill:t.value},null,8,kt),w(`path`,{d:`M423.64 75V19H458.84C478.28 19 489.4 27.88 489.4 47C489.4 66.2 478.2 75 458.76 75H423.64ZM469.72 47C469.72 36.52 465.24 32.6 456.12 32.6H442.84V61.4H456.12C465.24 61.4 469.72 57.48 469.72 47ZM499.187 75V19H554.467V32.6H518.387V40.12H553.907V53.32H518.387V61.4H555.507V75H499.187ZM579.751 19L594.551 59.32L609.111 19H629.031L606.951 75H581.351L559.271 19H579.751ZM653.236 75V32.76H631.716V19H693.956V32.76H672.436V75H653.236ZM731.745 75.96C708.145 75.96 695.825 66.04 695.825 47C695.825 27.96 708.145 18.04 731.745 18.04C755.345 18.04 767.745 27.96 767.745 47C767.745 66.04 755.345 75.96 731.745 75.96ZM731.745 62.12C742.865 62.12 748.065 57.4 748.065 47C748.065 36.52 742.865 31.8 731.745 31.8C720.625 31.8 715.425 36.52 715.425 47C715.425 57.4 720.625 62.12 731.745 62.12ZM809.948 75.96C786.348 75.96 774.028 66.04 774.028 47C774.028 27.96 786.348 18.04 809.948 18.04C833.548 18.04 845.948 27.96 845.948 47C845.948 66.04 833.548 75.96 809.948 75.96ZM809.948 62.12C821.068 62.12 826.268 57.4 826.268 47C826.268 36.52 821.068 31.8 809.948 31.8C798.828 31.8 793.628 36.52 793.628 47C793.628 57.4 798.828 62.12 809.948 62.12ZM855.671 75V19H874.871V61H908.391V75H855.671ZM944.226 75.96C921.346 75.96 911.666 70.04 911.666 56.28V56.2H931.106V56.28C931.106 60.92 934.226 63.4 944.226 63.4C954.546 63.4 956.946 61.48 956.946 58.52C956.946 55.88 955.186 54.68 951.346 54.36L935.026 53.08C917.746 51.72 912.466 46.44 912.466 36.36C912.466 24.2 923.026 18.04 944.546 18.04C966.546 18.04 975.426 23.72 975.426 36.84V37H956.306V36.84C956.306 32.2 953.426 30.44 944.226 30.44C934.546 30.44 931.586 32.2 931.586 35.32C931.586 38.04 933.746 39.08 938.786 39.48L954.946 40.68C970.146 41.8 976.386 46.68 976.386 57.16C976.386 69.24 967.346 75.96 944.226 75.96Z`,fill:t.value},null,8,At),w(`path`,{d:`M20.72 19L35.52 59.32L50.08 19H70L47.92 75H22.32L0.24 19H20.72ZM76.64 75V19H95.84V75H76.64ZM124.361 75V32.76H102.841V19H165.081V32.76H143.561V75H124.361ZM172.109 75V19H227.389V32.6H191.309V40.12H226.829V53.32H191.309V61.4H228.429V75H172.109Z`,fill:t.value},null,8,jt),r[1]||=_(`<defs><filter id="filter0_f_logo" x="242.164" y="32.1395" width="114.054" height="79.1192" 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="14.5485" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter1_f_logo" x="175.98" y="-12.8443" width="171.597" height="97.7023" 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="14.5485" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter2_f_logo" x="185.426" y="5.32093" width="150.733" height="55.8442" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter3_f_logo" x="194.154" y="39.5092" width="151.157" height="55.8443" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter4_f_logo" x="197.064" y="41.6914" width="151.157" height="55.8443" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter5_f_logo" x="309.644" y="-32.5371" width="141.984" height="111.787" 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="14.5485" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter6_f_logo" x="324.444" y="5.80213" width="116.585" height="48.1746" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter7_f_logo" x="324.444" y="5.80213" width="116.585" height="48.1746" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter8_f_logo" x="227.223" y="-41.9441" width="106.456" height="120.899" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter9_f_logo" x="317.926" y="-71.5028" width="104.117" height="122.793" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter10_f_logo" x="326.522" y="-20.0431" width="63.7106" height="67.0755" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter11_f_logo" x="224.088" y="12.8784" width="104.117" height="122.793" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter12_f_logo" x="224.088" y="12.8784" width="104.117" height="122.793" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter13_f_logo" x="295.376" y="-3.12496" width="104.117" height="122.793" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter14_f_logo" x="315.262" y="21.5769" width="74.8554" height="82.8601" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter></defs>`,1)]))}});function Nt(e,t){return e.split(`||`).map(e=>e.trim()).some(e=>e.split(`&&`).map(e=>e.trim()).every(e=>{let n=e.trim();if(n===`true`)return!0;if(n===`false`)return!1;if(n.startsWith(`!`)){let e=n.slice(1).trim();return e===`true`?!1:e===`false`?!0:!Pt(e,t)}let r=n.indexOf(`==`),i=n.indexOf(`!=`);if(r!==-1||i!==-1){let e=i!==-1&&(r===-1||i<r),a=e?i:r,o=n.slice(0,a).trim(),s=n.slice(a+2).trim(),c=String(Pt(o,t));return e?c!==s:c===s}return!!Pt(n,t)}))}function Pt(e,t){let n=t;if(e in n)return n[e];let r=e.includes(`.`)?`.`:e.includes(`:`)?`:`:null;if(r){let t=e.split(r),i=n;for(let e of t){if(typeof i!=`object`||!i)return;i=i[e]}return i}}var X=typeof navigator<`u`&&/Mac|iPhone|iPad/.test(navigator.platform??``);function Ft(e){return e.split(`+`).map(e=>e===`Mod`?X?`⌘`:`Ctrl`:e===`Shift`?X?`⇧`:`Shift`:e===`Alt`?X?`⌥`:`Alt`:e)}function It(e){let t=[];(X?e.metaKey:e.ctrlKey)&&t.push(`Mod`),(X?e.ctrlKey:e.metaKey)&&t.push(X?`Ctrl`:`Meta`),e.altKey&&t.push(`Alt`),e.shiftKey&&t.push(`Shift`);let n=e.key;return n.length===1&&(n=n.toUpperCase()),[`Control`,`Meta`,`Alt`,`Shift`].includes(n)||t.push(n),t.join(`+`)}function Lt(e,t){let n=[];for(let r of e.value){for(let e of t(r.id))n.push({id:r.id,keybinding:e});if(r.children)for(let e of r.children)for(let r of t(e.id))n.push({id:e.id,keybinding:r})}return n}var Rt={"Mod+T":`Open new tab`,"Mod+W":`Close tab`,"Mod+N":`Open new window`,"Mod+L":`Focus address bar`,"Mod+D":`Bookmark page`,"Mod+Q":`Quit browser`,"Mod+Shift+T":`Reopen closed tab`,"Mod+Shift+N":`Open incognito window`,"Mod+Shift+W":`Close window`,"Mod+Shift+Q":`Quit browser (Chrome)`,"Alt+F4":`Close window (Windows)`,"Mod+R":`Reload page`,"Mod+Shift+R":`Hard reload page`,"Mod+F":`Find in page`},zt={class:`flex items-center gap-0.5`},Bt=y({__name:`KeybindingBadge`,props:{keyString:{}},setup(e){let t=e,r=h(()=>Ft(t.keyString));return(e,t)=>(n(),x(`span`,zt,[(n(!0),x(C,null,l(r.value,(e,t)=>(n(),x(`kbd`,{key:t,class:`px-1.5 py-0.5 text-[10px] rounded bg-base border border-base op60 font-mono`},M(e),1))),128))]))}}),Vt=[`id`],Ht={class:`flex items-center gap-2 flex-1 of-hidden min-w-0`},Ut={class:`flex-1 min-w-0`},Wt={class:`flex items-center gap-1.5`},Gt={class:`truncate`},Kt={key:0,class:`op50`},qt={key:0,class:`text-[10px] px-1 py-0 rounded bg-blue/10 text-blue shrink-0 leading-4`},Jt={key:0,class:`truncate text-xs op40 mt-0.5`},Yt={class:`flex items-center gap-1.5 flex-none`},Xt={key:0,class:`i-ph-spinner-gap-duotone w-3.5 h-3.5 animate-spin op50`},Zt={key:1,class:`i-ph-caret-right w-3 h-3 op40`},Qt=y({__name:`CommandPaletteItem`,props:{entry:{},parentTitle:{},showParentTitle:{type:Boolean},selected:{type:Boolean},loading:{type:Boolean},keybindings:{}},emits:[`select`,`activate`],setup(e){return(t,r)=>(n(),x(`button`,{id:`cmd-${e.entry.id}`,class:`w-full text-left`,onClick:r[0]||=e=>t.$emit(`activate`),onMouseover:r[1]||=e=>t.$emit(`select`)},[w(`div`,{class:m([`flex items-center gap-2 justify-between rounded-md px-2.5 py-1.5 text-sm transition-colors`,e.selected?`bg-primary/10 text-primary`:`op80 hover:op100`])},[w(`div`,Ht,[e.entry.icon?(n(),D(B,{key:0,icon:e.entry.icon,class:`w-4 h-4 flex-none op70`},null,8,[`icon`])):g(``,!0),w(`div`,Ut,[w(`div`,Wt,[w(`span`,Gt,[e.parentTitle&&e.showParentTitle?(n(),x(`span`,Kt,M(e.parentTitle)+` › `,1)):g(``,!0),v(` `+M(e.entry.title),1)]),e.entry.source===`server`?(n(),x(`span`,qt,`server`)):g(``,!0)]),e.selected&&e.entry.description?(n(),x(`div`,Jt,M(e.entry.description),1)):g(``,!0)])]),w(`div`,Yt,[(n(!0),x(C,null,l(e.keybindings,(e,t)=>(n(),D(Bt,{key:t,"key-string":e.key},null,8,[`key-string`]))),128)),e.loading?(n(),x(`span`,Xt)):e.entry.children?.length?(n(),x(`span`,Zt)):g(``,!0)])],2)],40,Vt))}}),$t={class:`absolute inset-0 flex items-start justify-center relative pt-[20vh] pointer-events-none`},en={class:`w-full w-lg bg-base border border-base rounded-lg shadow-xl pointer-events-auto of-hidden flex flex-col max-h-[60vh]`},tn={class:`border-b border-base flex items-center px-3`},nn=[`onClick`],rn={class:`flex-1 of-y-auto p-1.5`},an={key:0,class:`py-8 flex flex-col items-center justify-center gap-2 op50 text-sm`},on={key:0},sn={class:`text-primary op100`},cn={key:1},ln={class:`border-t border-base flex items-center justify-between gap-4 px-3 py-1.5 text-[10px] op50`},un={class:`flex items-center gap-1.5`},dn=y({__name:`CommandPalette`,props:{context:{}},setup(e){let t=e,r=h(()=>t.context.commands),i=h({get:()=>r.value.paletteOpen,set:e=>{r.value.paletteOpen=e}}),a=o(``),s=o(0),f=c(`searchInput`),p=o(!1),_=o([]),y=h(()=>{let e=[];for(let t of r.value.paletteCommands)if(e.push({entry:t,searchTitle:t.title}),t.children&&t.showInPalette!==`without-children`)for(let n of t.children)n.showInPalette!==!1&&e.push({entry:n,parentTitle:t.title,searchTitle:`${t.title} > ${n.title}`});return e}),b=h(()=>_.value.length>0?_.value.at(-1).items.map(e=>({entry:e,searchTitle:e.title})):y.value),S=o(),E=h(()=>S.value?S.value.map(e=>({entry:e,searchTitle:e.title})):b.value),O=h(()=>new Y(E.value,{keys:[`searchTitle`,`entry.description`,`entry.id`],distance:50,threshold:.4})),k=h(()=>a.value?O.value.search(a.value).map(e=>e.item):E.value);u(a,()=>{s.value=0}),u(i,e=>{e?(a.value=``,s.value=0,_.value=[],S.value=void 0,requestAnimationFrame(()=>{p.value=!0}),j(()=>f.value?.focus())):p.value=!1});function A(e){let t=k.value.length;t!==0&&(s.value=(s.value+e+t)%t,N())}function N(){let e=k.value[s.value];e&&document.getElementById(`cmd-${e.entry.id}`)?.scrollIntoView({block:`nearest`})}let P=o(null);async function F(e){let t=e.entry;if(t.children&&t.children.length>0){_.value.push({title:t.title,items:t.children}),a.value=``,s.value=0,S.value=void 0;return}if(t.source===`client`&&t.action){try{let e=await t.action();if(Array.isArray(e)){S.value=e,a.value=``,s.value=0;return}}catch(e){console.error(`[DevTools] Command "${t.id}" failed:`,e)}I();return}if(t.source===`server`){P.value=t.id;try{await r.value.execute(t.id)}catch(e){console.error(`[DevTools] Command "${t.id}" failed:`,e)}finally{P.value=null}I();return}I()}function I(){p.value=!1,setTimeout(()=>{i.value=!1,a.value=``,_.value=[],S.value=void 0},150)}function L(){if(S.value){S.value=void 0,a.value=``,s.value=0;return}if(_.value.length>0){_.value.pop(),a.value=``,s.value=0;return}I()}function z(e){e.key===`Backspace`&&!a.value&&(_.value.length>0||S.value)&&(e.preventDefault(),L())}function ee(e){if(i.value)switch(e.key){case`ArrowDown`:case`ArrowUp`:e.preventDefault(),A(e.key===`ArrowDown`?1:-1);break;case`Enter`:{let t=k.value[s.value];t&&(e.preventDefault(),F(t));break}case`Escape`:e.preventDefault(),_.value.length>0||S.value?L():I();break}}function te(e){return r.value.getKeybindings(e)}return(e,t)=>i.value?(n(),x(`div`,{key:0,class:`vite-devtools-command-palette fixed inset-0 z-command-palette`,onKeydown:ee},[w(`div`,{class:m([`absolute inset-0 bg-white/50 dark:bg-black/30 transition-opacity duration-150`,p.value?`opacity-100 backdrop-blur-1`:`opacity-0 backdrop-blur-0`]),onClick:I},null,2),w(`div`,$t,[w(`div`,{class:m([`flex flex-col transition-all duration-150`,p.value?`opacity-100 scale-100 translate-y-0`:`opacity-0 scale-98 -translate-y-2`])},[T(Mt,{class:`absolute top--32px left-5px w-60 pointer-events-none`}),w(`div`,en,[w(`header`,tn,[_.value.length>0?(n(!0),x(C,{key:0},l(_.value,(e,r)=>(n(),x(`button`,{key:r,class:`text-xs op60 hover:op80 mr-1 flex items-center gap-0.5`,onClick:e=>{_.value.splice(r),a.value=``,s.value=0}},[v(M(e.title)+` `,1),t[1]||=w(`span`,{class:`op40`},`›`,-1)],8,nn))),128)):g(``,!0),d(w(`input`,{ref_key:`searchInput`,ref:f,"onUpdate:modelValue":t[0]||=e=>a.value=e,class:`flex-1 bg-transparent py-3 outline-none text-sm text-base`,placeholder:`Type a command...`,onKeydown:z},null,544),[[R,a.value]])]),w(`div`,rn,[(n(!0),x(C,null,l(k.value,(e,t)=>(n(),D(Qt,{key:e.entry.id,entry:e.entry,"parent-title":e.parentTitle,"show-parent-title":!_.value.length,selected:s.value===t,loading:P.value===e.entry.id,keybindings:te(e.entry.id),onSelect:e=>s.value=t,onActivate:t=>F(e)},null,8,[`entry`,`parent-title`,`show-parent-title`,`selected`,`loading`,`keybindings`,`onSelect`,`onActivate`]))),128)),k.value.length?g(``,!0):(n(),x(`div`,an,[t[4]||=w(`div`,{class:`i-ph-magnifying-glass-duotone w-6 h-6`},null,-1),a.value?(n(),x(`div`,on,[t[2]||=v(` No results for "`,-1),w(`strong`,sn,M(a.value),1),t[3]||=v(`" `,-1)])):(n(),x(`div`,cn,` No commands available `))]))]),w(`footer`,ln,[t[6]||=w(`div`,{class:`flex items-center gap-1.5`},[w(`kbd`,{class:`px-1 py-0.5 rounded border border-base bg-base font-mono`},`↓↑`),w(`span`,null,`navigate`)],-1),w(`div`,un,[t[5]||=w(`kbd`,{class:`px-1 py-0.5 rounded border border-base bg-base font-mono`},`esc`,-1),w(`span`,null,M(_.value.length>0||S.value?`back`:`close`),1)]),t[7]||=w(`div`,{class:`flex items-center gap-1.5`},[w(`kbd`,{class:`px-1 py-0.5 rounded border border-base bg-base font-mono`},`↵`),w(`span`,null,`select`)],-1)])])],2)])],32)):g(``,!0)}}),fn={key:0,class:`fixed bottom-4 right-4 z-2147483647 flex flex-col gap-2 pointer-events-auto w-72`},pn=[`onClick`],mn=[`onClick`],hn=y({__name:`ToastOverlay`,props:{context:{}},setup(t){let r=t;r.context&&z(r.context);let i=F();function a(e){N(e),r.context?.docks.switchEntry(`~logs`)}return(t,r)=>e(i).length>0?(n(),x(`div`,fn,[T(te,{"enter-active-class":`transition-all duration-300 ease-out`,"leave-active-class":`transition-all duration-200 ease-in`,"enter-from-class":`opacity-0 translate-x-4`,"leave-to-class":`opacity-0 translate-x-4`},{default:s(()=>[(n(!0),x(C,null,l(e(i),t=>(n(),x(`div`,{key:t.id,class:`bg-glass border color-base border-base shadow-xl cursor-pointer hover:bg-active transition-colors rounded`,onClick:e=>a(t.id)},[T(ee,{entry:t.entry,compact:``,class:`px-3 py-2.5`},{actions:s(()=>[w(`button`,{class:`flex-none op30 hover:op100 p-0.5 rounded hover:bg-active transition`,onClick:P(n=>e(N)(t.id),[`stop`])},[...r[0]||=[w(`div`,{class:`i-ph-x w-3 h-3`},null,-1)]],8,mn)]),_:2},1032,[`entry`])],8,pn))),128))]),_:1})])):g(``,!0)}}),gn=a(null),_n=a(null),vn=a(null);function yn(e){gn.value=e}function bn(){return gn}function xn(e){_n.value=e}function Sn(){return _n}function Z(e){vn.value=e}function Cn(){return vn}var wn=a(null);function Tn(e){wn.value=e}function En(){return wn}var Dn=100,On=10,kn=y({name:`FloatingPopover`,props:{item:{type:Object,required:!1},dismissOnClickOutside:{type:Boolean,default:!0}},emits:[`dismiss`],setup(e,{emit:t}){let n=c(`panel`),r=o(e.item?.el),i=o(0),a=ae(()=>{e.item?.el??(r.value=void 0)},800);e.dismissOnClickOutside&&oe(n,()=>{t(`dismiss`)}),u(()=>e.item,e=>{e?r.value===e.el?i.value++:r.value=e.el:a()});let s,l={};return()=>{if(i.value,!r.value)return null;if(!e.item)return O(`div`,{ref:`panel`,class:[`fixed z-floating-tooltip text-xs transition-all duration-300 w-max bg-glass color-base border border-base rounded px2 p1`,`op0 pointer-events-none`],style:l},s);let t=r.value.getBoundingClientRect(),n=`bottom`,a=window.innerWidth,o=window.innerHeight;t.left<Dn?n=`right`:t.left+t.width>a-Dn?n=`left`:t.top<Dn?n=`bottom`:t.top+t.height>o-Dn&&(n=`top`);let c={},u=e.item?.gap??On;switch(n){case`bottom`:c={left:`${t.left+t.width/2}px`,top:`${t.top+t.height+u}px`,transform:`translateX(-50%)`};break;case`top`:c={left:`${t.left+t.width/2}px`,bottom:`${o-t.top+u}px`,transform:`translateX(-50%)`};break;case`left`:c={right:`${a-t.left+u}px`,top:`${t.top+t.height/2}px`,transform:`translateY(-50%)`};break;case`right`:c={left:`${t.left+t.width+u}px`,top:`${t.top+t.height/2}px`,transform:`translateY(-50%)`};break}l=c;let d=(typeof e.item?.content==`string`?O(`span`,e.item?.content):e.item?.content())??s;return s=d,O(`div`,{ref:`panel`,class:[`fixed z-floating-tooltip text-xs transition-all duration-300 w-max bg-glass color-base border border-base rounded px2 p1`,e.item?`op100`:`op0 pointer-events-none`],style:c},d)}}}),An=y({__name:`FloatingElements`,setup(t){let r=bn(),i=Sn(),a=Cn(),o=En();return ne(window,`keydown`,e=>{e.key===`Escape`&&a.value&&Z(null)}),(t,s)=>(n(),x(C,null,[T(e(kn),{item:e(i),onDismiss:s[0]||=()=>e(xn)(null)},null,8,[`item`]),T(e(kn),{item:e(a),onDismiss:s[1]||=()=>e(Z)(null)},null,8,[`item`]),T(e(kn),{item:e(o),onDismiss:s[2]||=()=>e(Tn)(null)},null,8,[`item`]),T(e(kn),{item:e(r)},null,8,[`item`])],64))}}),jn={},Mn={viewBox:`0 0 40 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Nn(e,t){return n(),x(`svg`,Mn,[...t[0]||=[_(`<path d="M21.1636 29.535C21.1017 29.6144 21.0166 29.6725 20.92 29.7012C20.8234 29.7298 20.7204 29.7276 20.6251 29.6947C20.5299 29.6619 20.4474 29.6001 20.389 29.518C20.3307 29.436 20.2994 29.3377 20.2996 29.237V24.834C20.2996 24.5775 20.1978 24.3316 20.0164 24.1502C19.8351 23.9689 19.5891 23.867 19.3326 23.867H14.4706C14.3819 23.867 14.2948 23.8426 14.219 23.7963C14.1432 23.7501 14.0816 23.6839 14.041 23.6049C14.0004 23.526 13.9823 23.4374 13.9888 23.3488C13.9952 23.2603 14.026 23.1752 14.0776 23.103L17.2746 18.628C17.3782 18.4833 17.4399 18.3129 17.4529 18.1354C17.4658 17.958 17.4296 17.7804 17.3481 17.6222C17.2666 17.464 17.1431 17.3314 16.9911 17.2389C16.8391 17.1464 16.6646 17.0977 16.4866 17.098H10.6036C10.5149 17.098 10.4278 17.0736 10.352 17.0273C10.2762 16.9811 10.2146 16.9149 10.174 16.8359C10.1334 16.757 10.1153 16.6684 10.1218 16.5798C10.1282 16.4913 10.159 16.4062 10.2106 16.334L14.3536 10.533C14.3982 10.47 14.4572 10.4186 14.5258 10.3833C14.5944 10.348 14.6705 10.3297 14.7476 10.33H27.0956C27.4886 10.33 27.7176 10.775 27.4886 11.094L24.2916 15.57C23.8346 16.21 24.2916 17.1 25.0796 17.1H29.9406C30.3446 17.1 30.5706 17.564 30.3206 17.882L21.1636 29.535Z" fill="#6254FE"></path><mask id="mask0_3_2" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="10" y="10" width="21" height="20"><path d="M21.1636 29.535C21.1017 29.6144 21.0166 29.6725 20.92 29.7012C20.8234 29.7298 20.7204 29.7276 20.6251 29.6947C20.5299 29.6619 20.4474 29.6001 20.389 29.518C20.3307 29.436 20.2994 29.3377 20.2996 29.237V24.834C20.2996 24.5775 20.1978 24.3316 20.0164 24.1502C19.8351 23.9689 19.5891 23.867 19.3326 23.867H14.4706C14.3819 23.867 14.2948 23.8426 14.219 23.7963C14.1432 23.7501 14.0816 23.6839 14.041 23.6049C14.0004 23.526 13.9823 23.4374 13.9888 23.3488C13.9952 23.2603 14.026 23.1752 14.0776 23.103L17.2746 18.628C17.3782 18.4833 17.4399 18.3129 17.4529 18.1354C17.4658 17.958 17.4296 17.7804 17.3481 17.6222C17.2666 17.464 17.1431 17.3314 16.9911 17.2389C16.8391 17.1464 16.6646 17.0977 16.4866 17.098H10.6036C10.5149 17.098 10.4278 17.0736 10.352 17.0273C10.2762 16.9811 10.2146 16.9149 10.174 16.8359C10.1334 16.757 10.1153 16.6684 10.1218 16.5798C10.1282 16.4913 10.159 16.4062 10.2106 16.334L14.3536 10.533C14.3982 10.47 14.4572 10.4186 14.5258 10.3833C14.5944 10.348 14.6705 10.3297 14.7476 10.33H27.0956C27.4886 10.33 27.7176 10.775 27.4886 11.094L24.2916 15.57C23.8346 16.21 24.2916 17.1 25.0796 17.1H29.9406C30.3446 17.1 30.5706 17.564 30.3206 17.882L21.1636 29.535Z" fill="#833BFF"></path></mask><g mask="url(#mask0_3_2)"><g filter="url(#filter0_f_3_2)"><path d="M20.7408 26.1119C20.745 27.4119 17.935 28.475 14.4644 28.4863C10.9939 28.4975 8.17705 27.4527 8.17283 26.1527C8.16861 24.8526 10.9786 23.7895 14.4492 23.7783C17.9197 23.767 20.7365 24.8118 20.7408 26.1119Z" fill="#EDE6FF"></path></g><g filter="url(#filter1_f_3_2)"><path d="M18.7973 18.0605C18.8053 20.5148 13.0998 22.523 6.05378 22.5458C-0.992227 22.5687 -6.71061 20.5976 -6.71858 18.1433C-6.72654 15.6889 -1.02108 13.6808 6.02493 13.6579C13.0709 13.635 18.7893 15.6061 18.7973 18.0605Z" fill="#EDE6FF"></path></g><g filter="url(#filter2_f_3_2)"><path d="M18.8447 17.4381C18.8489 18.7382 13.0191 19.8111 5.82339 19.8344C-1.37229 19.8578 -7.20896 18.8228 -7.21318 17.5227C-7.2174 16.2226 -1.38757 15.1498 5.80811 15.1264C13.0038 15.1031 18.8405 16.1381 18.8447 17.4381Z" fill="#4E14FF"></path></g><g filter="url(#filter3_f_3_2)"><path d="M20.9053 25.1293C20.9095 26.4294 15.0581 27.5022 7.83591 27.5256C0.613678 27.549 -5.24451 26.5141 -5.24872 25.214C-5.25293 23.9139 0.598424 22.841 7.82065 22.8176C15.0429 22.7942 20.9011 23.8292 20.9053 25.1293Z" fill="#4E14FF"></path></g><g filter="url(#filter4_f_3_2)"><path d="M21.561 25.6205C21.5652 26.9206 15.7139 27.9935 8.49167 28.017C1.26948 28.0404 -4.58868 27.0055 -4.5929 25.7054C-4.59712 24.4054 1.2542 23.3324 8.47639 23.309C15.6986 23.2855 21.5567 24.3205 21.561 25.6205Z" fill="#4E14FF"></path></g><g filter="url(#filter5_f_3_2)"><path d="M23.3606 14.7039C23.5547 11.3881 27.9295 8.94703 33.1319 9.25155C38.3344 9.55608 42.3945 12.4909 42.2004 15.8067C42.0063 19.1224 37.6315 21.5635 32.4291 21.259C27.2266 20.9545 23.1665 18.0196 23.3606 14.7039Z" fill="#EDE6FF"></path></g><g filter="url(#filter6_f_3_2)"><path d="M24.0654 16.8853C24.0512 16.0664 28.1532 15.3313 33.2274 15.2436C38.3016 15.1558 42.4265 15.7485 42.4407 16.5674C42.4548 17.3863 38.3529 18.1214 33.2787 18.2091C28.2045 18.2969 24.0796 17.7042 24.0654 16.8853Z" fill="#4E14FF"></path></g><g filter="url(#filter7_f_3_2)"><path d="M24.0654 16.8853C24.0512 16.0664 28.1532 15.3313 33.2274 15.2436C38.3016 15.1558 42.4265 15.7485 42.4407 16.5674C42.4548 17.3863 38.3529 18.1214 33.2787 18.2091C28.2045 18.2969 24.0796 17.7042 24.0654 16.8853Z" fill="#4E14FF"></path></g><g filter="url(#filter8_f_3_2)"><path d="M2.32515 23.7616C3.12749 24.4233 7.32135 20.6626 11.6924 15.362C16.0635 10.0614 18.9565 5.228 18.1541 4.56637C17.3518 3.90474 13.1579 7.66538 8.78688 12.966C4.41583 18.2666 1.52282 23.1 2.32515 23.7616Z" fill="#4E14FF"></path></g><g filter="url(#filter9_f_3_2)"><path d="M22.7441 17.5449C23.5648 18.1836 27.6508 14.306 31.8704 8.8841C36.0901 3.46217 38.8455 -1.45095 38.0248 -2.08966C37.2041 -2.72838 33.1181 1.14919 28.8984 6.57112C24.6788 11.993 21.9234 16.9062 22.7441 17.5449Z" fill="#4E14FF"></path></g><g filter="url(#filter10_f_3_2)"><path d="M24.2638 18.7387C25.8062 19.9392 28.5247 19.0259 30.3357 16.6989C32.1467 14.372 32.3644 11.5124 30.8219 10.312C29.2795 9.11157 26.561 10.0248 24.75 12.3518C22.939 14.6788 22.7213 17.5383 24.2638 18.7387Z" fill="#2BFDD2"></path></g><g filter="url(#filter11_f_3_2)"><path d="M1.6313 36.5293C2.452 37.168 6.53801 33.2904 10.7576 27.8685C14.9773 22.4465 17.7327 17.5334 16.912 16.8947C16.0913 16.256 12.0053 20.1336 7.78563 25.5555C3.56599 30.9774 0.810605 35.8905 1.6313 36.5293Z" fill="#4E14FF"></path></g><g filter="url(#filter12_f_3_2)"><path d="M1.6313 36.5293C2.452 37.168 6.53801 33.2904 10.7576 27.8685C14.9773 22.4465 17.7327 17.5334 16.912 16.8947C16.0913 16.256 12.0053 20.1336 7.78563 25.5555C3.56599 30.9774 0.810605 35.8905 1.6313 36.5293Z" fill="#4E14FF"></path></g><g filter="url(#filter13_f_3_2)"><path d="M17.5773 32.8563C18.4494 33.535 22.5771 29.6899 26.7968 24.268C31.0164 18.846 33.7301 13.9005 32.858 13.2217C31.9859 12.543 27.8582 16.3881 23.6385 21.81C19.4189 27.232 16.7052 32.1775 17.5773 32.8563Z" fill="#4E14FF"></path></g><g filter="url(#filter14_f_3_2)"><path d="M21.6002 31.5389C23.0982 32.7047 26.7882 30.4688 29.842 26.5449C32.8958 22.621 34.1571 18.4949 32.6591 17.3291C31.1611 16.1633 27.4711 18.3991 24.4173 22.3231C21.3635 26.247 20.1022 30.3731 21.6002 31.5389Z" fill="#2BFDD2"></path></g></g><path d="M6.95763 10C3.02563 15.628 3.00263 24.351 6.95763 30H9.61363C5.65963 24.35 5.68363 15.627 9.61363 10H6.95763ZM33.9386 20H36.5956C36.5946 16.407 35.6056 12.816 33.6386 10H30.9826C32.9486 12.816 33.9366 16.407 33.9386 20ZM38.6276 24.907H35.9626C36.1589 24.1665 36.3102 23.4148 36.4156 22.656H33.7586C33.6531 23.4148 33.5019 24.1665 33.3056 24.907H30.6366C30.3961 25.8176 30.0804 26.7067 29.6926 27.565H32.3616C31.9785 28.4179 31.5165 29.2331 30.9816 30H33.6376C34.1725 29.2331 34.6345 28.4179 35.0176 27.565H37.6826C38.0686 26.714 38.3836 25.823 38.6276 24.907Z" fill="#08060D" class="fill-hex-08060D dark:fill-hex-fff"></path><defs><filter id="filter0_f_3_2" x="1.62683" y="17.2322" width="25.6599" height="17.8001" 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_3_2"></feGaussianBlur></filter><filter id="filter1_f_3_2" x="-13.2646" y="7.11168" 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_3_2"></feGaussianBlur></filter><filter id="filter2_f_3_2" x="-11.1412" y="11.198" width="33.9139" 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_3_2"></feGaussianBlur></filter><filter id="filter3_f_3_2" x="-9.17672" y="18.8893" 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_3_2"></feGaussianBlur></filter><filter id="filter4_f_3_2" x="-8.5209" y="19.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_3_2"></feGaussianBlur></filter><filter id="filter5_f_3_2" x="16.8079" y="2.67989" 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_3_2"></feGaussianBlur></filter><filter id="filter6_f_3_2" x="20.1374" y="11.307" 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_3_2"></feGaussianBlur></filter><filter id="filter7_f_3_2" x="20.1374" y="11.307" 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_3_2"></feGaussianBlur></filter><filter id="filter8_f_3_2" x="-1.73649" y="0.562875" width="23.9523" height="27.2023" 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_3_2"></feGaussianBlur></filter><filter id="filter9_f_3_2" x="18.6715" y="-6.08651" 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_3_2"></feGaussianBlur></filter><filter id="filter10_f_3_2" x="19.3075" y="5.85539" 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_3_2"></feGaussianBlur></filter><filter id="filter11_f_3_2" x="-2.44132" y="12.8979" 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_3_2"></feGaussianBlur></filter><filter id="filter12_f_3_2" x="-2.44132" y="12.8979" 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_3_2"></feGaussianBlur></filter><filter id="filter13_f_3_2" x="13.4863" y="9.21607" 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_3_2"></feGaussianBlur></filter><filter id="filter14_f_3_2" x="17.0414" y="13.0922" 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_3_2"></feGaussianBlur></filter></defs>`,5)]])}var Pn=se(jn,[[`render`,Nn]]),Fn={class:`w-full h-full flex flex-col items-center justify-center p20`},In={class:`max-w-150 flex flex-col items-center justify-center gap-2`},Ln=[`disabled`],Rn=y({__name:`ViewBuiltinClientAuthNotice`,props:{context:{}},setup(e){let t=e,r=o(``);function i(){let e=r.value.trim();e&&t.context.rpc.requestTrustWithToken(e)}return(e,t)=>(n(),x(`div`,Fn,[w(`div`,In,[T(Pn,{class:`w-20 h-20`}),t[1]||=_(`<h1 class="text-2xl font-bold text-violet mb2"> Vite DevTools needs Authorization </h1><p class="op75"> Vite DevTools offers advanced features that can access your server, view your filesystem, and execute commands. </p><p class="op75"> To protect your project from unauthorized access, please authorize your browser before proceeding. </p><p class="font-bold bg-green:5 p1 px3 rounded mt8 text-green"> Check your terminal for the authorization prompt and come back. </p><div class="mt6 op50"> or </div>`,5),w(`form`,{class:`mt2 flex items-center gap-2`,onSubmit:P(i,[`prevent`])},[d(w(`input`,{"onUpdate:modelValue":t[0]||=e=>r.value=e,type:`text`,placeholder:`Enter auth token`,class:`px3 py1.5 rounded border border-base bg-transparent text-sm outline-none focus:border-violet`},null,512),[[R,r.value]]),w(`button`,{type:`submit`,class:`px3 py1.5 rounded bg-violet text-white text-sm hover:op80 disabled:op40`,disabled:!r.value.trim()},` Authorize `,8,Ln)],32)])]))}}),zn={class:`flex flex-col gap-6`},Bn=y({__name:`SettingsAdvanced`,props:{context:{},settingsStore:{}},setup(e){let t=e;function r(){confirm(`Reset all settings to defaults? This includes appearance, docks, and shortcuts.`)&&t.settingsStore.mutate(()=>pe())}function i(){confirm(`Reset all keyboard shortcuts to defaults?`)&&t.settingsStore.mutate(e=>{e.commandShortcuts={}})}function a(){confirm(`Reset dock visibility, order, and pinning to defaults?`)&&t.settingsStore.mutate(e=>{let t=pe();e.docksHidden=t.docksHidden,e.docksCategoriesHidden=t.docksCategoriesHidden,e.docksCustomOrder=t.docksCustomOrder,e.docksPinned=t.docksPinned})}return(e,t)=>(n(),x(`div`,zn,[w(`div`,{class:`flex items-start gap-4`},[t[1]||=w(`div`,{class:`flex-1`},[w(`div`,{class:`text-sm`},` Reset Keyboard Shortcuts `),w(`div`,{class:`text-xs op50 mt-0.5`},` Remove all custom shortcut overrides and restore default keybindings `)],-1),w(`button`,{class:`px-4 py-2 rounded bg-orange/10 text-orange hover:bg-orange/20 transition-colors flex items-center gap-2 text-sm shrink-0`,onClick:i},[...t[0]||=[w(`div`,{class:`i-ph-keyboard-duotone w-4 h-4`},null,-1),v(` Reset Shortcuts `,-1)]])]),w(`div`,{class:`flex items-start gap-4`},[t[3]||=w(`div`,{class:`flex-1`},[w(`div`,{class:`text-sm`},` Reset Dock Settings `),w(`div`,{class:`text-xs op50 mt-0.5`},` Restore default dock visibility, order, and pinning `)],-1),w(`button`,{class:`px-4 py-2 rounded bg-orange/10 text-orange hover:bg-orange/20 transition-colors flex items-center gap-2 text-sm shrink-0`,onClick:a},[...t[2]||=[w(`div`,{class:`i-ph-layout-duotone w-4 h-4`},null,-1),v(` Reset Docks `,-1)]])]),w(`div`,{class:`border-t border-base pt-6`},[w(`div`,{class:`flex items-start gap-4`},[t[5]||=w(`div`,{class:`flex-1`},[w(`div`,{class:`text-sm`},` Reset All Settings `),w(`div`,{class:`text-xs op50 mt-0.5`},` Reset everything to defaults including appearance, docks, and shortcuts `)],-1),w(`button`,{class:`px-4 py-2 rounded bg-red/10 text-red hover:bg-red/20 transition-colors flex items-center gap-2 text-sm shrink-0`,onClick:r},[...t[4]||=[w(`div`,{class:`i-ph-arrow-counter-clockwise w-4 h-4`},null,-1),v(` Reset All `,-1)]])])])]))}});function Vn(){return{mode:`float`,width:80,height:80,top:0,left:10,position:`bottom`,open:!1,inactiveTimeout:3e3}}function Hn(e,t){let n=me(),r=f({entryMeta:e,get isActive(){return t.value?.id===e.id},domElements:{},events:i(n)});return u(()=>t.value?.id,t=>{t===e.id?n.emit(`entry:activated`):n.emit(`entry:deactivated`)},{immediate:!0}),u(()=>r.domElements.iframe,e=>{e&&n.emit(`dom:iframe:mounted`,e)},{immediate:!0}),u(()=>r.domElements.panel,e=>{e&&n.emit(`dom:panel:mounted`,e)},{immediate:!0}),r}function Q(e){let t=a(e.value());return e.on(`updated`,e=>{t.value=e}),t}var Un=new WeakMap;async function Wn(e){if(Un.has(e))return Un.get(e);let t=Q(await e.sharedState.get(`devtoolskit:internal:docks`,{initialValue:[]}));return Un.set(e,t),t}var Gn=`modulepreload`,Kn=function(e,t){return new URL(e,t).href},qn={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Kn(t,n),t in qn)return;qn[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Gn,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Jn=20,Yn=100,Xn=320,Zn=240,Qn=`__VITE_DEVTOOLS_TRIGGER_DOCK_ACTION__`,$n=a(null),er=a(!1),tr=me(),nr,rr,ir,ar,or=async()=>await $(()=>import(`./DockStandalone-GABFNqKk.js`).then(e=>e.DockStandalone),__vite__mapDeps([0,1,2,3]),import.meta.url);tr.on(`popup:open-requested`,e=>{Sr(e)});function sr(){if(!(typeof window>`u`))return window.documentPictureInPicture}function cr(){nr?.(),nr=void 0,rr?.(),rr=void 0}function lr(){let e=window,t=[e.document?.documentElement,e.document?.body].filter(Boolean);for(let e of t){if(e?.classList?.contains(`dark`))return`dark`;if(e?.classList?.contains(`light`))return`light`;let t=e?.getAttribute?.(`data-theme`);if(t===`dark`||t===`light`)return t}return e.matchMedia?.(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function ur(e,t){e.document.documentElement?.style.setProperty(`color-scheme`,t)}function dr(e){let t=[],n=()=>ur(e,lr());n();let r=window,i=r.document;if(typeof MutationObserver<`u`&&i){let e=new MutationObserver(n);for(let t of[i.documentElement,i.body])t&&e.observe(t,{attributes:!0,attributeFilter:[`class`,`data-theme`,`style`]});t.push(()=>e.disconnect())}if(r.matchMedia){let e=r.matchMedia(`(prefers-color-scheme: dark)`),i=r.matchMedia(`(prefers-color-scheme: light)`);e.addEventListener(`change`,n),i.addEventListener(`change`,n),t.push(()=>{e.removeEventListener(`change`,n),i.removeEventListener(`change`,n)})}return()=>{t.forEach(e=>e())}}function fr(){ir?.remove(),ir=void 0}function pr(){cr(),fr(),$n.value=null,er.value=!1;let e=ar;ar=void 0,e?.docks.switchEntry(null)}function mr(e,t,n){return Math.min(Math.max(e,t),n)}function hr(e,t){window.innerWidth<=0||window.innerHeight<=0||(e.panel.store.width=mr(Math.round(t.innerWidth/window.innerWidth*100),Jn,Yn),e.panel.store.height=mr(Math.round(t.innerHeight/window.innerHeight*100),Jn,Yn))}async function gr(e,t){let n=await or(),r=t.document.createElement(`style`);r.textContent=[`html, body {`,` margin: 0;`,` padding: 0;`,` width: 100%;`,` height: 100%;`,` overflow: hidden;`,` background: transparent;`,`}`,`#vite-devtools-popup-root {`,` width: 100vw;`,` height: 100vh;`,`}`,`#vite-devtools-popup-root > vite-devtools-dock-standalone {`,` display: block;`,` width: 100%;`,` height: 100%;`,`}`].join(`
3
+ `),t.document.title=`Vite DevTools`,t.document.head?.appendChild(r),t.document.body.textContent=``;let i=t.document.createElement(`div`);i.id=`vite-devtools-popup-root`,t.document.body.appendChild(i);let a=new n({context:e});ir=a,i.appendChild(a)}function _r(){return!!sr()?.requestWindow}function vr(e,t){typeof window>`u`||e!==`standalone`&&(window[Qn]=t)}async function yr(e,t){if(!(typeof window>`u`)&&e===`standalone`)try{let e=window.opener;if(!e||e.closed)return;let n=e[Qn];return typeof n==`function`?await n(t):void 0}catch{return}}function br(){return er}function xr(e){tr.emit(`popup:open-requested`,e)}async function Sr(e){xn(null);let t=$n.value;if(t?.closed)pr();else if(t)return t.focus(),t;let n=sr();if(!n?.requestWindow)return null;let r;try{let t=r=await n.requestWindow({width:Math.max(Xn,Math.round(window.innerWidth*e.panel.store.width/100)),height:Math.max(Zn,Math.round(window.innerHeight*e.panel.store.height/100))});await gr(e,t),rr=dr(t);let i=()=>hr(e,t),a=()=>{$n.value===t&&pr()};return t.addEventListener(`resize`,i),t.addEventListener(`pagehide`,a),nr=()=>{t.removeEventListener(`resize`,i),t.removeEventListener(`pagehide`,a)},ar=e,$n.value=t,er.value=!0,t}catch{return r&&!r.closed&&r.close(),pr(),null}}var Cr={class:`flex flex-col gap-4`},wr={key:0,class:`flex flex-col gap-2`},Tr={class:`flex items-center gap-1 bg-gray/10 rounded-lg p1 w-fit`},Er=[`onClick`],Dr={class:`flex items-center gap-3 cursor-pointer group`},Or={class:`flex items-center gap-3 cursor-pointer group`},kr=y({__name:`SettingsAppearance`,props:{context:{},settingsStore:{}},setup(t){let r=t,i=Q(r.settingsStore),a=r.context.panel.store,o=r.context.clientType===`embedded`,s=br(),c=h(()=>{let e=[{value:`float`,label:`Float`,icon:`i-ph-cards-three-duotone`},{value:`edge`,label:`Edge`,icon:`i-ph-square-half-bottom-duotone`}];return _r()&&e.push({value:`popup`,label:`Popup`,icon:`i-ph-arrow-square-out-duotone`}),e}),u=h(()=>a.mode);function d(e){e===`popup`?xr(r.context):a.mode=e}return(r,a)=>(n(),x(`div`,Cr,[o&&!e(s)?(n(),x(`div`,wr,[a[2]||=w(`div`,{class:`flex flex-col`},[w(`span`,{class:`text-sm`},`Dock mode`),w(`span`,{class:`text-xs op50`},`How the DevTools panel is displayed`)],-1),w(`div`,Tr,[(n(!0),x(C,null,l(c.value,e=>(n(),x(`button`,{key:e.value,class:m([`flex items-center gap-1.5 px3 py1.5 rounded-md text-sm transition-all`,u.value===e.value?`bg-base shadow text-primary font-medium`:`op60 hover:op100 hover:bg-gray/10`]),onClick:t=>d(e.value)},[w(`div`,{class:m([e.icon,`w-4 h-4`])},null,2),v(` `+M(e.label),1)],10,Er))),128))])])):g(``,!0),w(`label`,Dr,[w(`button`,{class:m([`w-10 h-6 rounded-full transition-colors relative shrink-0`,e(i).showIframeAddressBar?`bg-lime`:`bg-gray/30`]),onClick:a[0]||=e=>t.settingsStore.mutate(e=>{e.showIframeAddressBar=!e.showIframeAddressBar})},[w(`div`,{class:m([`absolute top-1 w-4 h-4 rounded-full bg-white shadow transition-transform`,e(i).showIframeAddressBar?`translate-x-5`:`translate-x-1`])},null,2)],2),a[3]||=w(`div`,{class:`flex flex-col`},[w(`span`,{class:`text-sm`},`Show iframe address bar`),w(`span`,{class:`text-xs op50`},`Display navigation controls and URL bar for iframe views`)],-1)]),w(`label`,Or,[w(`button`,{class:m([`w-10 h-6 rounded-full transition-colors relative shrink-0`,e(i).closeOnOutsideClick?`bg-lime`:`bg-gray/30`]),onClick:a[1]||=e=>t.settingsStore.mutate(e=>{e.closeOnOutsideClick=!e.closeOnOutsideClick})},[w(`div`,{class:m([`absolute top-1 w-4 h-4 rounded-full bg-white shadow transition-transform`,e(i).closeOnOutsideClick?`translate-x-5`:`translate-x-1`])},null,2)],2),a[4]||=w(`div`,{class:`flex flex-col`},[w(`span`,{class:`text-sm`},`Close panel on outside click`),w(`span`,{class:`text-xs op50`},`Close the DevTools panel when clicking outside of it (embedded mode only)`)],-1)])]))}}),Ar=Object.freeze({type:`~builtin`,id:`~client-auth-notice`,title:`Unauthorized`,icon:`i-fluent-emoji-flat-warning`}),jr=Object.freeze([Ar]),Mr={"~viteplus":-1e3,default:0,app:100,framework:200,web:300,advanced:400,"~builtin":1e3};function Nr(e,t,n){let{docksHidden:r,docksCategoriesHidden:i,docksCustomOrder:a,docksPinned:o}=t,{includeHidden:s=!1,whenContext:c}=n??{},l=new Map;for(let t of e){if(t.when&&c&&!Nt(t.when,c)&&!s||t.when&&!c&&t.when===`false`&&!s||!s&&r.includes(t.id))continue;let e=t.category??`default`;!s&&i.includes(e)||(l.has(e)||l.set(e,[]),l.get(e).push(t))}let u=Array.from(l.entries()).sort(([e],[t])=>{let n=Mr[e]||0,r=Mr[t]||0;return r===n?t.localeCompare(e):n-r});return u.forEach(([e,t])=>{t.sort((e,t)=>{let n=o.includes(e.id);if(n!==o.includes(t.id))return n?-1:1;let r=a[e.id]??0,i=a[t.id]??0;if(r!==i)return r-i;let s=e.defaultOrder??0,c=t.defaultOrder??0;return c===s?t.title.localeCompare(e.title):s-c})}),u}var Pr={ref:`sortContainer`,class:`flex flex-col gap-4`},Fr={class:`flex items-center gap-2 px-4 py-3 bg-gray/5 cursor-pointer select-none border-b border-base`},Ir=[`disabled`,`onClick`],Lr={class:`font-medium capitalize`},Rr={class:`text-xs op40`},zr=[`onClick`],Br=[`data-dock-id`,`data-category`],Vr=[`disabled`,`title`,`onClick`],Hr={key:0,class:`i-ph-check-bold text-xs`},Ur={class:`flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity`},Wr=[`onClick`],Gr=[`onClick`],Kr=[`title`,`onClick`],qr=4,Jr=y({__name:`SettingsDocks`,props:{context:{},settingsStore:{}},setup(t){let r=t,i=Q(r.settingsStore),a=h(()=>Nr(r.context.docks.entries,r.settingsStore.value(),{includeHidden:!0})),s=c(`sortContainer`),u=new Map,d=o(null),f=o(null),p=o(null),_=o(!1),v=0;function y(e){let t=e.target;for(;t&&t!==s.value;){if(t.dataset.dockId)return{dockId:t.dataset.dockId,category:t.dataset.category??null};t=t.parentElement}return{dockId:null,category:null}}function b(e){for(;e&&e!==s.value;){if(e.tagName===`BUTTON`||e.tagName===`A`||e.tagName===`INPUT`)return!0;e=e.parentElement}return!1}re(s,{onStart(e,t){if(t.button!==0||b(t.target))return!1;let{dockId:n,category:r}=y(t);if(!n||!r)return!1;d.value=n,f.value=r,_.value=!1,v=t.clientY},onMove(e,t){if(!d.value)return;if(!_.value){if(Math.abs(t.clientY-v)<qr)return;_.value=!0}let n=null;for(let[e,{el:r,category:i}]of u){if(e===d.value||i!==f.value)continue;let a=r.getBoundingClientRect();if(t.clientY>=a.top&&t.clientY<=a.bottom){n=e;break}}p.value=n},onEnd(){if(d.value&&_.value&&p.value&&f.value){let e=a.value.find(([e])=>e===f.value);if(e){let t=[...e[1]],n=t.findIndex(e=>e.id===d.value),i=t.findIndex(e=>e.id===p.value);n!==-1&&i!==-1&&(t.splice(i,0,t.splice(n,1)[0]),e[1]=t,r.settingsStore.mutate(e=>{t.forEach((t,n)=>{e.docksCustomOrder[t.id]=n})}))}}d.value=null,f.value=null,p.value=null,_.value=!1}});function S(e,t,n){e?u.set(t,{el:e,category:n}):u.delete(t)}function E(e){return{"~viteplus":`Vite+`,default:`Default`,app:`App`,framework:`Framework`,web:`Web`,advanced:`Advanced`,"~builtin":`Built-in`}[e]||e}function O(e,t){if(e===`~settings`)return;let n=i.value.docksHidden.includes(e);t??n?r.settingsStore.mutate(t=>{t.docksHidden=t.docksHidden.filter(t=>t!==e)}):r.settingsStore.mutate(t=>{t.docksHidden=[...t.docksHidden,e]})}function A(e,t){if(e===`~builtin`)return;let n=i.value.docksCategoriesHidden.includes(e);t??n?r.settingsStore.mutate(t=>{t.docksCategoriesHidden=t.docksCategoriesHidden.filter(t=>t!==e)}):r.settingsStore.mutate(t=>{t.docksCategoriesHidden=[...t.docksCategoriesHidden,e]})}function j(e){i.value.docksPinned.includes(e)?r.settingsStore.mutate(t=>{t.docksPinned=t.docksPinned.filter(t=>t!==e)}):r.settingsStore.mutate(t=>{t.docksPinned=[...t.docksPinned,e]})}function N(e){return i.value.docksCustomOrder[e]!==void 0}function P(e,t,n){let i=a.value.find(([t])=>t===e);if(!i)throw Error(`Category ${e} not found`);let o=[...i[1]],s=o.findIndex(e=>e.id===t),c=s+n;if(c<0||c>=o.length)throw Error(`Invalid new index ${c} for category ${e}`);o.splice(c,0,o.splice(s,1)[0]),i[1]=o,r.settingsStore.mutate(e=>{o.forEach((t,n)=>{e.docksCustomOrder[t.id]=n})})}function F(e){let t=a.value.find(([t])=>t===e);return t?t[1].some(e=>N(e.id)):!1}function I(e){let t=a.value.find(([t])=>t===e);t&&r.settingsStore.mutate(e=>{t[1].forEach(t=>{delete e.docksCustomOrder[t.id]})})}return(t,r)=>(n(),x(C,null,[r[5]||=w(`p`,{class:`text-sm op50 mb-4`},` Manage visibility and order of dock entries. Hidden entries will not appear in the dock bar. `,-1),w(`div`,Pr,[(n(!0),x(C,null,l(a.value,([t,a])=>(n(),x(`div`,{key:t,class:m([`border border-base rounded-lg overflow-hidden transition-opacity`,e(i).docksCategoriesHidden.includes(t)?`op40`:``])},[w(`div`,Fr,[w(`button`,{class:m([`w-5 h-5 flex items-center justify-center rounded transition-colors`,[t===`~builtin`?`bg-gray/20 cursor-not-allowed op50`:e(i).docksCategoriesHidden.includes(t)?`bg-gray/20`:`bg-lime/20 text-lime`]]),disabled:t===`~builtin`,onClick:e=>A(t)},[w(`div`,{class:m([`transition-transform`,e(i).docksCategoriesHidden.includes(t)?`i-ph-eye-slash text-sm op50`:`i-ph-check-bold text-xs`])},null,2)],10,Ir),w(`span`,Lr,M(E(t)),1),w(`span`,Rr,`(`+M(a.length)+`)`,1),r[1]||=w(`span`,{class:`flex-auto`},null,-1),F(t)?(n(),x(`button`,{key:0,class:`w-6 h-6 flex items-center justify-center rounded hover:bg-gray/20 transition-colors`,title:`Reset custom order`,onClick:e=>I(t)},[...r[0]||=[w(`div`,{class:`i-ph-arrows-counter-clockwise-duotone text-sm op60`},null,-1)]],8,zr)):g(``,!0)]),w(`div`,null,[(n(!0),x(C,null,l(a,(o,s)=>(n(),x(`div`,{key:o.id,ref_for:!0,ref:e=>S(e,o.id,t),"data-dock-id":o.id,"data-category":t,class:m([`flex items-center gap-3 px-2 py-2.5 hover:bg-gray/5 transition-all group border-b border-base border-t-0`,[e(i).docksHidden.includes(o.id)?`op40`:``,_.value&&d.value===o.id?`op30 bg-gray/10`:``,p.value===o.id?`ring-1.5 ring-purple/50 rounded`:``,_.value?`select-none`:``]])},[w(`div`,{class:`i-ph-dots-six-vertical w-4 h-4 shrink-0 op25 group-hover:op50 transition-opacity cursor-grab`,style:k(_.value&&d.value===o.id?`cursor: grabbing`:``)},null,4),w(`button`,{class:m([`w-6 h-6 flex items-center justify-center rounded border border-transparent hover:border-base transition-colors shrink-0`,o.id===`~settings`?`cursor-not-allowed op50`:e(i).docksHidden.includes(o.id)?`op50`:``]),disabled:o.id===`~settings`,title:o.id===`~settings`?`Always visible`:e(i).docksHidden.includes(o.id)?`Show`:`Hide`,onClick:e=>O(o.id)},[w(`div`,{class:m([`w-4 h-4 rounded flex items-center justify-center transition-colors`,o.id===`~settings`||e(i).docksHidden.includes(o.id)?`bg-gray/30`:`bg-lime/20 text-lime`])},[e(i).docksHidden.includes(o.id)?g(``,!0):(n(),x(`div`,Hr))],2)],10,Vr),T(B,{icon:o.icon,title:o.title,class:m([`w-5 h-5 shrink-0`,e(i).docksHidden.includes(o.id)?`saturate-0`:``])},null,8,[`icon`,`title`,`class`]),w(`span`,{class:m([`truncate`,e(i).docksHidden.includes(o.id)?`line-through op60`:``])},M(o.title),3),o.type===`action`?(n(),D(L,{key:0,label:`Action`,class:`flex-none text-xs`})):g(``,!0),r[4]||=w(`div`,{class:`flex flex-auto`},null,-1),w(`div`,Ur,[s>0?(n(),x(`button`,{key:0,class:`w-6 h-6 flex items-center justify-center rounded hover:bg-gray/20 transition-colors`,title:`Move up (higher priority)`,onClick:e=>P(t,o.id,-1)},[...r[2]||=[w(`div`,{class:`i-ph-caret-up text-sm op60`},null,-1)]],8,Wr)):g(``,!0),s<a.length-1?(n(),x(`button`,{key:1,class:`w-6 h-6 flex items-center justify-center rounded hover:bg-gray/20 transition-colors`,title:`Move down (lower priority)`,onClick:e=>P(t,o.id,1)},[...r[3]||=[w(`div`,{class:`i-ph-caret-down text-sm op60`},null,-1)]],8,Gr)):g(``,!0)]),w(`button`,{class:m([`w-7 h-7 flex items-center justify-center rounded hover:bg-gray/20 transition-colors shrink-0`,e(i).docksPinned.includes(o.id)?`text-amber`:`op40 hover:op70`]),title:e(i).docksPinned.includes(o.id)?`Unpin`:`Pin`,onClick:e=>j(o.id)},[w(`div`,{class:m([e(i).docksPinned.includes(o.id)?`i-ph-push-pin-fill rotate--45`:`i-ph-push-pin`,`text-base`])},null,2)],10,Kr)],10,Br))),128))])],2))),128))],512)],64))}}),Yr={class:`mb-3`},Xr={class:`border border-base rounded-lg overflow-hidden`},Zr={class:`flex-1 min-w-0`},Qr={class:`flex items-center gap-1.5`},$r={class:`truncate text-sm`},ei={key:0,class:`text-[10px] px-1.5 py-0.5 rounded bg-blue/10 text-blue shrink-0`},ti={key:0,class:`text-xs op40 truncate mt-0.5`},ni={class:`flex items-center gap-1.5 shrink-0`},ri=[`onClick`],ii=[`onClick`],ai=[`onClick`],oi=[`onClick`],si={key:0,class:`py-6 text-center text-sm op40`},ci={key:0,class:`fixed inset-0 z-command-palette flex items-center justify-center`},li={class:`relative bg-base border border-base rounded-lg shadow-xl w-96 p-5`},ui={class:`mb-4`},di=[`value`],fi={class:`flex items-center gap-2 mb-4`},pi={key:0,class:`mb-4 flex flex-col gap-1.5`},mi={class:`flex items-center justify-end gap-2`},hi=[`disabled`],gi=y({__name:`SettingsShortcuts`,props:{context:{}},setup(t){let r=t.context.commands,i=Q(r.settings),a=h(()=>i.value.commandShortcuts??{}),s=o(``),c=h(()=>{let e=[];for(let t of r.commands)if(e.push({command:t,indent:!1}),t.children)for(let n of t.children)e.push({command:n,parentTitle:t.title,indent:!0});return e}),f=h(()=>{if(!s.value)return c.value;let e=s.value.toLowerCase();return c.value.filter(t=>t.command.title.toLowerCase().includes(e)||t.command.id.toLowerCase().includes(e)||t.command.description?.toLowerCase().includes(e))});function p(e){return r.getKeybindings(e)}function _(e){return a.value[e]!==void 0}function y(e){r.settings.mutate(t=>{t.commandShortcuts[e]=[]})}function b(e){r.settings.mutate(t=>{delete t.commandShortcuts[e]})}let S=o(!1),E=o(null),O=o(!1),k=o(!1),A=o(!1),j=o(!1),N=o(``);function P(e){let t=p(e);if(E.value=e,t.length>0){let e=t[0].key.split(`+`);O.value=e.includes(`Mod`),k.value=e.includes(`Ctrl`),A.value=e.includes(`Alt`),j.value=e.includes(`Shift`),N.value=e.filter(e=>![`Mod`,`Ctrl`,`Alt`,`Shift`,`Meta`].includes(e)).join(`+`)}else O.value=!1,k.value=!1,A.value=!1,j.value=!1,N.value=``;S.value=!0}function F(){S.value=!1,E.value=null}let I=h(()=>{let e=[];return O.value&&e.push(`Mod`),k.value&&e.push(`Ctrl`),A.value&&e.push(`Alt`),j.value&&e.push(`Shift`),N.value&&e.push(N.value),e.join(`+`)}),L=h(()=>{let e=[],t=I.value;if(!t)return e;let n=O.value||k.value||A.value;!n&&N.value&&e.push(`Single key without modifiers may interfere with typing`),!n&&j.value&&N.value.length===1&&e.push(`Shift + letter may interfere with typing`);let r=Rt[t];if(r){let n=Ft(t).join(`+`);e.push(`Conflicts with browser shortcut: ${r} (${n})`)}if(E.value){for(let n of c.value)if(n.command.id!==E.value&&p(n.command.id).some(e=>e.key===t)){e.push(`Conflicts with "${n.command.title}"`);break}}return e}),z=h(()=>N.value.length>0);function ee(e){if(e.preventDefault(),e.stopPropagation(),[`Control`,`Meta`,`Alt`,`Shift`].includes(e.key))return;O.value=X?e.metaKey:e.ctrlKey,X&&e.ctrlKey&&(k.value=!0),A.value=e.altKey,j.value=e.shiftKey;let t=e.key;t.length===1&&(t=t.toUpperCase()),N.value=t}function te(){!E.value||!z.value||(r.settings.mutate(e=>{e.commandShortcuts[E.value]=[{key:I.value}]}),F())}return u(S,e=>{if(!e)return;let t=e=>{if(e.key===`Escape`){let e=document.activeElement;(!e||!e.classList.contains(`shortcut-key-input`))&&(F(),window.removeEventListener(`keydown`,t))}};window.addEventListener(`keydown`,t)}),(t,r)=>(n(),x(C,null,[r[10]||=w(`p`,{class:`text-sm op50 mb-4`},` Customize keyboard shortcuts for commands. `,-1),w(`div`,Yr,[d(w(`input`,{"onUpdate:modelValue":r[0]||=e=>s.value=e,class:`w-full bg-gray/10 rounded-lg px-3 py-2 text-sm outline-none focus:ring-1 focus:ring-primary/30`,placeholder:`Search commands...`},null,512),[[R,s.value]])]),w(`div`,Xr,[(n(!0),x(C,null,l(f.value,e=>(n(),x(`div`,{key:e.command.id,class:`flex items-center gap-3 px-4 py-2.5 hover:bg-gray/5 transition-colors border-b border-base last:border-b-0`},[e.command.icon?(n(),D(B,{key:0,icon:e.command.icon,class:m([`w-4 h-4 shrink-0 op60`,{"ml-6":e.indent}])},null,8,[`icon`,`class`])):(n(),x(`div`,{key:1,class:m([{"ml-6":e.indent},`w-4 h-4 shrink-0`])},null,2)),w(`div`,Zr,[w(`div`,Qr,[w(`span`,$r,M(e.command.title),1),e.command.source===`server`?(n(),x(`span`,ei,`server`)):g(``,!0)]),e.command.description?(n(),x(`div`,ti,M(e.command.description),1)):g(``,!0)]),w(`div`,ni,[p(e.command.id).length>0?(n(!0),x(C,{key:0},l(p(e.command.id),(t,r)=>(n(),x(`button`,{key:r,class:`flex items-center gap-0.5 hover:bg-gray/10 rounded px-1 py-0.5 transition-colors`,title:`Click to edit`,onClick:t=>P(e.command.id)},[T(Bt,{"key-string":t.key},null,8,[`key-string`])],8,ri))),128)):(n(),x(`button`,{key:1,class:`text-xs op30 hover:op60 px-2 py-1 rounded hover:bg-gray/10 transition-colors`,onClick:t=>P(e.command.id)},` Add shortcut `,8,ii)),p(e.command.id).length>0?(n(),x(`button`,{key:2,class:`w-5 h-5 flex items-center justify-center rounded hover:bg-gray/20 transition-colors op30 hover:op70`,title:`Clear shortcut`,onClick:t=>y(e.command.id)},[...r[5]||=[w(`div`,{class:`i-ph-x text-xs`},null,-1)]],8,ai)):g(``,!0),_(e.command.id)?(n(),x(`button`,{key:3,class:`w-5 h-5 flex items-center justify-center rounded hover:bg-gray/20 transition-colors op30 hover:op70`,title:`Reset to default`,onClick:t=>b(e.command.id)},[...r[6]||=[w(`div`,{class:`i-ph-arrow-counter-clockwise text-xs`},null,-1)]],8,oi)):g(``,!0)])]))),128)),f.value.length===0?(n(),x(`div`,si,` No commands found `)):g(``,!0)]),S.value?(n(),x(`div`,ci,[w(`div`,{class:`absolute inset-0 bg-black/30`,onClick:F}),w(`div`,li,[r[9]||=w(`h3`,{class:`text-sm font-medium mb-4`},` Edit Shortcut `,-1),w(`div`,ui,[r[7]||=w(`label`,{class:`text-xs op50 mb-1.5 block`},`Press a key combination or toggle modifiers below`,-1),w(`input`,{class:`shortcut-key-input w-full bg-gray/10 border border-base rounded-lg px-3 py-2.5 text-center text-sm font-mono outline-none focus:border-primary/40`,value:I.value?e(Ft)(I.value).join(` + `):``,placeholder:`Press keys...`,readonly:``,onKeydown:ee},null,40,di)]),w(`div`,fi,[w(`button`,{class:m([`px-3 py-1.5 rounded-md text-xs font-mono border transition-colors`,O.value?`bg-primary/15 border-primary/30 text-primary`:`border-base op50 hover:op80`]),onClick:r[1]||=e=>O.value=!O.value},M(e(X)?`⌘ Cmd`:`Ctrl`),3),e(X)?(n(),x(`button`,{key:0,class:m([`px-3 py-1.5 rounded-md text-xs font-mono border transition-colors`,k.value?`bg-primary/15 border-primary/30 text-primary`:`border-base op50 hover:op80`]),onClick:r[2]||=e=>k.value=!k.value},` \\u2303 Ctrl `,2)):g(``,!0),w(`button`,{class:m([`px-3 py-1.5 rounded-md text-xs font-mono border transition-colors`,A.value?`bg-primary/15 border-primary/30 text-primary`:`border-base op50 hover:op80`]),onClick:r[3]||=e=>A.value=!A.value},M(e(X)?`⌥ Alt`:`Alt`),3),w(`button`,{class:m([`px-3 py-1.5 rounded-md text-xs font-mono border transition-colors`,j.value?`bg-primary/15 border-primary/30 text-primary`:`border-base op50 hover:op80`]),onClick:r[4]||=e=>j.value=!j.value},M(e(X)?`⇧ Shift`:`Shift`),3)]),L.value.length>0?(n(),x(`div`,pi,[(n(!0),x(C,null,l(L.value,(e,t)=>(n(),x(`div`,{key:t,class:`flex items-center gap-1.5 text-xs text-amber`},[r[8]||=w(`div`,{class:`i-ph-warning-duotone w-3.5 h-3.5 shrink-0`},null,-1),v(` `+M(e),1)]))),128))])):g(``,!0),w(`div`,mi,[w(`button`,{class:`px-3 py-1.5 rounded text-xs op60 hover:op100 hover:bg-gray/10 transition-colors`,onClick:F},` Cancel `),w(`button`,{class:m([`px-3 py-1.5 rounded text-xs transition-colors`,z.value?`bg-primary/15 text-primary hover:bg-primary/25`:`op30 cursor-not-allowed`]),disabled:!z.value,onClick:te},` OK `,10,hi)])])])):g(``,!0)],64))}}),_i={class:`h-full w-full overflow-hidden flex flex-col`},vi={class:`flex items-center border-b border-base px-6 shrink-0`},yi=[`onClick`],bi={key:0,class:`absolute bottom-0 left-2 right-2 h-0.5 bg-primary rounded-full`},xi={class:`flex-1 overflow-auto p8`},Si={class:`max-w-200 mx-auto`},Ci=y({__name:`ViewBuiltinSettings`,props:{context:{},entry:{}},setup(t){let r=t,i=[{id:`appearance`,label:`Appearance`,icon:`i-ph-paint-brush-duotone`},{id:`docks`,label:`Docks`,icon:`i-ph-layout-duotone`},{id:`shortcuts`,label:`Shortcuts`,icon:`i-ph-keyboard-duotone`},{id:`advanced`,label:`Advanced`,icon:`i-ph-wrench-duotone`}],a=o(`appearance`),s=r.context.docks.settings;return(r,o)=>(n(),x(`div`,_i,[w(`div`,vi,[(n(),x(C,null,l(i,e=>w(`button`,{key:e.id,class:m([`flex items-center gap-1.5 px-4 py-3 text-sm transition-colors relative`,a.value===e.id?`op100 text-primary`:`op50 hover:op80`]),onClick:t=>a.value=e.id},[w(`div`,{class:m([e.icon,`w-4 h-4`])},null,2),v(` `+M(e.label)+` `,1),a.value===e.id?(n(),x(`div`,bi)):g(``,!0)],10,yi)),64))]),w(`div`,xi,[w(`div`,Si,[a.value===`appearance`?(n(),D(kr,{key:0,context:t.context,"settings-store":e(s)},null,8,[`context`,`settings-store`])):g(``,!0),a.value===`shortcuts`?(n(),D(gi,{key:1,context:t.context},null,8,[`context`])):g(``,!0),a.value===`docks`?(n(),D(Jr,{key:2,context:t.context,"settings-store":e(s)},null,8,[`context`,`settings-store`])):g(``,!0),a.value===`advanced`?(n(),D(Bn,{key:3,context:t.context,"settings-store":e(s)},null,8,[`context`,`settings-store`])):g(``,!0)])])]))}}),wi=y({__name:`ViewCustomRenderer`,props:{context:{},entry:{},persistedDoms:{},divStyle:{}},setup(e){let i=e,a=o(!0),s=c(`viewFrame`);return t(()=>{let e=i.persistedDoms.getOrCreateHolder(i.entry.id,`div`);e.element.style.boxShadow=`none`,e.element.style.outline=`none`,Object.assign(e.element.style,i.divStyle);let t=i.context.docks.getStateById(i.entry.id);t&&(t.domElements.panel=e.element),e.mount(s.value),a.value=!1,j(()=>{e.update()}),u(()=>i.context.panel,()=>{e.update()},{deep:!0}),r(()=>{e.element.style.pointerEvents=i.context.panel.isDragging||i.context.panel.isResizing?`none`:`auto`},{flush:`sync`})}),A(()=>{i.persistedDoms.getHolder(i.entry.id,`div`)?.unmount()}),(e,t)=>(n(),x(`div`,{ref_key:`viewFrame`,ref:s,class:`vite-devtools-view-custom-renderer w-full h-full flex items-center justify-center`},null,512))}}),Ti={class:`w-full h-full flex flex-col`},Ei={key:1,class:`flex items-center gap-1 px2 py1 rounded text-xs bg-amber/10 text-amber border border-amber/20 shrink-0`,title:`Cross-origin iframe - navigation controls unavailable`},Di={class:`flex-1 flex items-center h-7 px-2.5 rounded bg-gray/5 border border-transparent hover:border-gray/10 focus-within:border-gray/15 transition-colors`},Oi=[`value`,`readonly`],ki={key:0,class:`i-ph-circle-notch text-sm op40 ml-2 shrink-0 animate-spin`},Ai={key:0,class:`op50 z--1`},ji=40,Mi=y({__name:`ViewIframe`,props:{context:{},entry:{},persistedDoms:{},iframeStyle:{}},setup(e){let i=e,a=Q(i.context.docks.settings),s=h(()=>a.value.showIframeAddressBar??!0),l=h(()=>i.context.panel.store.mode===`edge`),d=o(!0),f=o(!1),p=c(`viewFrame`),_=c(`urlInput`),v=o(i.entry.url),y=o(i.entry.url),b=o(!1),S=h(()=>i.persistedDoms.getHolder(i.entry.id,`iframe`)?.element),T=h(()=>{try{return window.location.origin}catch{return``}}),E=h(()=>{try{return new URL(v.value).origin!==T.value}catch{return!0}}),D=h(()=>{if(E.value)return v.value;try{let e=new URL(v.value);return e.pathname+e.search+e.hash}catch{return v.value}});function O(){try{let e=S.value;e?.contentWindow?.location?.href&&(v.value=e.contentWindow.location.href)}catch{}}function M(e){let t=S.value;if(!t)return;let n=e.trim();n&&!/^https?:\/\//i.test(n)&&(n=n.startsWith(`/`)?`${window.location.origin}${n}`:`http://${n}`),v.value=n,y.value=n,t.src=n,f.value=!0}function N(){b.value=!1,y.value!==v.value&&M(y.value)}function P(){b.value=!0,y.value=v.value,j(()=>{_.value?.select()})}function F(){b.value=!1,y.value=v.value}function L(e){e.key===`Escape`&&(b.value=!1,y.value=v.value,_.value?.blur())}function R(){try{S.value?.contentWindow?.history.back()}catch{}}function z(){let e=S.value;if(!e)return;f.value=!0;let t=e.src;e.src=``,e.src=t}return t(()=>{i.persistedDoms.getHolder(i.entry.id,`iframe`)&&O();let e=i.persistedDoms.getOrCreateHolder(i.entry.id,`iframe`);e.element.style.boxShadow=`none`,e.element.style.outline=`none`,e.element.src||(e.element.src=i.entry.url),e.element.addEventListener(`load`,()=>{f.value=!1,O()});let t=i.context.docks.getStateById(i.entry.id);t&&(t.domElements.iframe=e.element),r(()=>{Object.assign(e.element.style,i.iframeStyle),s.value?(e.element.style.marginTop=`${ji}px`,l.value||(e.element.style.borderTopLeftRadius=`0px`,e.element.style.borderTopRightRadius=`0px`)):(e.element.style.marginTop=`0px`,e.element.style.borderTopLeftRadius=``,e.element.style.borderTopRightRadius=``),l.value&&(e.element.style.borderRadius=`0px`,e.element.style.border=`none`)}),u(()=>i.context.panel,()=>{e.update()},{deep:!0}),r(()=>{e.element.style.pointerEvents=i.context.panel.isDragging||i.context.panel.isResizing?`none`:`auto`},{flush:`sync`}),e.mount(p.value),d.value=!1,j(()=>{e.update()})}),A(()=>{i.persistedDoms.getHolder(i.entry.id,`iframe`)?.unmount()}),(e,t)=>(n(),x(`div`,Ti,[s.value?(n(),x(`div`,{key:0,class:m([`flex-none px-2 w-full flex items-center gap-1`,l.value?`border-b border-base`:`border rounded-t-md border-base border-b-0`]),style:k({height:`${ji}px`})},[E.value?(n(),x(`div`,Ei,[...t[3]||=[w(`div`,{class:`i-ph-globe text-sm`},null,-1),w(`span`,null,`Cross-Origin`,-1)]])):(n(),x(C,{key:0},[w(`button`,{class:`w-7 h-7 flex items-center justify-center rounded hover:bg-gray/15 transition-colors shrink-0`,title:`Back`,onClick:R},[...t[1]||=[w(`div`,{class:`i-ph-caret-left op60 w-4.5 h-4.5`},null,-1)]]),w(`button`,{class:`w-7 h-7 flex items-center justify-center rounded hover:bg-gray/15 transition-colors shrink-0`,title:`Refresh`,onClick:z},[...t[2]||=[w(`div`,{class:`i-ph-arrow-clockwise op60 w-4.5 h-4.5`},null,-1)]])],64)),w(`div`,Di,[w(`input`,{ref:`urlInput`,value:b.value?y.value:D.value,type:`text`,class:`flex-1 bg-transparent outline-none text-sm font-mono`,placeholder:`Enter URL...`,readonly:E.value,onInput:t[0]||=e=>y.value=e.target.value,onFocus:P,onBlur:F,onKeydown:[L,I(N,[`enter`])]},null,40,Oi),f.value?(n(),x(`div`,ki)):g(``,!0)])],6)):g(``,!0),w(`div`,{ref_key:`viewFrame`,ref:p,class:`vite-devtools-view-iframe w-full h-full flex-1 items-center justify-center`},[d.value?(n(),x(`div`,Ai,` Loading iframe... `)):g(``,!0)],512)]))}}),Ni={class:`flex flex-col gap-4 items-center justify-center h-full relative`},Pi={class:`text-2xl font-bold`},Fi=[`disabled`],Ii=y({__name:`ViewLauncher`,props:{context:{},entry:{}},setup(e){let t=e;function r(){t.context.rpc.call(`devtoolskit:internal:docks:on-launch`,t.entry.id)}let i=h(()=>t.entry.launcher.status||`idle`),a={error:`i-ph-warning-duotone`,idle:`i-ph-rocket-launch-duotone`,loading:`i-svg-spinners-8-dots-rotate`,success:`i-ph-check-duotone`},o=h(()=>i.value===`idle`?t.entry.launcher.buttonStart||`Launch`:i.value===`loading`?t.entry.launcher.buttonLoading||`Loading...`:i.value===`error`?`ERROR`:i.value===`success`?`Success`:`UNKNOWN STATUS: ${i.value}`);return(t,s)=>(n(),x(`div`,Ni,[T(B,{icon:e.entry.launcher.icon||e.entry.icon,class:`w-10 h-10`},null,8,[`icon`]),w(`h1`,Pi,M(e.entry.launcher.title),1),w(`p`,null,M(e.entry.launcher.description),1),w(`button`,{class:`bg-lime6 px4 py1 rounded hover:bg-lime7 transition-all duration-300 flex gap-2 items-center disabled:bg-gray6! disabled:pointer-events-none`,disabled:i.value!==`idle`,onClick:r},[w(`div`,{class:m(a[i.value])},null,2),w(`div`,null,M(o.value),1)],8,Fi)]))}}),Li={key:4},Ri={key:6},zi=y({__name:`ViewEntry`,props:{context:{},entry:{},persistedDoms:{},iframeStyle:{},divStyle:{}},setup(t){let r=S(()=>$(()=>import(`./ViewBuiltinTerminals-DPB8d-Q0.js`),__vite__mapDeps([4,5,2,6,3]),import.meta.url)),i=S(()=>$(()=>import(`./ViewBuiltinLogs-Bv93zOX9.js`),__vite__mapDeps([7,2,1,3]),import.meta.url)),a=S(()=>$(()=>import(`./ViewJsonRender-CSnziLMr.js`),__vite__mapDeps([8,2,6]),import.meta.url));return(o,c)=>(n(),D(E,null,{fallback:s(()=>[...c[0]||=[w(`div`,null,` Loading... `,-1)]]),default:s(()=>[t.entry.type===`~builtin`?(n(),x(C,{key:0},[t.entry.id===`~terminals`?(n(),D(e(r),{key:0,context:t.context,entry:t.entry},null,8,[`context`,`entry`])):t.entry.id===`~logs`?(n(),D(e(i),{key:1,context:t.context,entry:t.entry},null,8,[`context`,`entry`])):t.entry.id===`~settings`?(n(),D(Ci,{key:2,context:t.context,entry:t.entry},null,8,[`context`,`entry`])):t.entry.id===`~client-auth-notice`?(n(),D(Rn,{key:3,context:t.context},null,8,[`context`])):(n(),x(`div`,Li,` Unknown builtin entry: `+M(t.entry),1))],64)):t.entry.type===`action`?(n(),x(C,{key:1},[],64)):t.entry.type===`iframe`?(n(),D(Mi,{key:2,context:t.context,entry:t.entry,"persisted-doms":t.persistedDoms,"iframe-style":t.iframeStyle},null,8,[`context`,`entry`,`persisted-doms`,`iframe-style`])):t.entry.type===`custom-render`?(n(),D(wi,{key:3,context:t.context,entry:t.entry,"persisted-doms":t.persistedDoms,"div-style":t.divStyle},null,8,[`context`,`entry`,`persisted-doms`,`div-style`])):t.entry.type===`launcher`?(n(),D(Ii,{key:4,context:t.context,entry:t.entry},null,8,[`context`,`entry`])):t.entry.type===`json-render`?(n(),D(e(a),{key:5,context:t.context,entry:t.entry},null,8,[`context`,`entry`])):(n(),x(`div`,Ri,` Unknown entry: `+M(t.entry),1))]),_:1}))}});function Bi(e){return O(`button`,{class:`flex items-center gap-2 px3 py1.5 rounded hover:bg-active transition text-left`,onClick:e.action},[O(`div`,{class:`${e.icon} text-base op60`}),O(`span`,e.label)])}function Vi(e,t){let n=e.docks.settings,r=t.id;n.mutate(e=>{e.docksHidden.includes(r)||(e.docksHidden=[...e.docksHidden,r])}),e.docks.selected?.id===r&&e.docks.switchEntry(null),Z(null)}function Hi(e,t){let n=e.docks.getStateById(t.id)?.domElements.iframe;if(!n){Z(null);return}let r=n.src;n.src=``,n.src=r,Z(null)}function Ui(e,t){return t.id===`~settings`?!1:e.docks.entries.some(e=>e.id===t.id)}function Wi(e){return e.type===`iframe`}function Gi(e){let{context:t,entry:n,el:r,gap:i=6}=e,a=t.panel.store.mode===`edge`,o=[{label:`Hide`,icon:`i-ph-eye-slash-duotone`,action:()=>Vi(t,n),visible:Ui(t,n)},{label:`Refresh`,icon:`i-ph-arrow-clockwise-duotone`,action:()=>Hi(t,n),visible:Wi(n)},{label:a?`Float Mode`:`Edge Mode`,icon:a?`i-ph-arrows-out-duotone`:`i-ph-square-half-bottom-duotone`,action:()=>{if(a){let e=t.panel.store;switch(e.position){case`bottom`:e.left=50,e.top=100;break;case`top`:e.left=50,e.top=0;break;case`left`:e.left=0,e.top=50;break;case`right`:e.left=100,e.top=50;break}e.mode=`float`}else t.panel.store.mode=`edge`;Z(null)},visible:t.clientType===`embedded`},{label:`Popup`,icon:`i-ph-arrow-square-out-duotone`,action:()=>{Z(null),xr(t)},visible:_r()&&!br().value&&t.clientType===`embedded`}].filter(e=>e.visible);o.length!==0&&Z({el:r,gap:i,content:()=>O(`div`,{class:`flex flex-col text-sm min-w-36 mx--1`},o.map(Bi))})}var Ki=[`title`],qi={key:0,class:`absolute top-0.5 right-0 bg-gray-6 text-white text-0.6em px-1 rounded-full shadow`},Ji=y({__name:`DockEntry`,props:{context:{},dock:{},isAction:{type:Boolean},isSelected:{type:Boolean},isDimmed:{type:Boolean},isVertical:{type:Boolean},badge:{},tooltip:{type:Boolean,default:!0}},setup(e){let t=e,r=c(`button`);function i(){t.tooltip&&r.value&&yn({content:t.dock.title,el:r.value})}function a(){t.tooltip&&yn(null)}function o(e){if(!r.value||t.dock.id===`overflow`)return;e.preventDefault(),a();let n=t.context.docks.entries.find(e=>e.id===t.dock.id);n&&Gi({context:t.context,entry:n,el:r.value,gap:6})}return ne(`pointerdown`,()=>{t.tooltip&&yn(null)}),(t,s)=>(n(),x(`div`,{key:e.dock.id,class:`relative group vite-devtools-dock-entry`,onPointerenter:i,onPointerleave:a,onContextmenu:o},[w(`button`,{ref_key:`button`,ref:r,title:e.dock.title,class:m([[e.isVertical?`rotate-270`:``,e.isDimmed?`op50 saturate-0`:``,e.isSelected?`scale-120 text-purple`:``,e.isAction?`bg-[#8881] hover:bg-[#8882] rounded-full`:`rounded-xl`],`flex items-center justify-center p1.5 hover:bg-[#8881] hover:scale-110 transition-all duration-300 relative`])},[T(B,{icon:e.dock.icon,title:e.dock.title,class:`w-5 h-5 select-none`},null,8,[`icon`,`title`]),e.badge?(n(),x(`div`,qi,M(e.badge),1)):g(``,!0)],10,Ki)],32))}}),Yi=y({__name:`DockEntries`,props:{context:{},entries:{},selected:{},isVertical:{type:Boolean}},emits:[`select`],setup(t,{emit:r}){let i=t,a=r,{selected:o,isVertical:s,entries:c}=p(i);function u(e){return e.when?Nt(e.when,i.context.when.context):!0}function d(e){o.value?.id===e.id?a(`select`,void 0):a(`select`,e)}return(r,i)=>(n(!0),x(C,null,l(e(c),r=>(n(),x(C,{key:r.id},[u(r)?(n(),D(Ji,{key:0,context:t.context,dock:r,"is-action":r.type===`action`,"is-selected":e(o)?.id===r.id,"is-dimmed":e(o)?e(o).id!==r.id:!1,"is-vertical":e(s),badge:r.badge,onClick:e=>d(r)},null,8,[`context`,`dock`,`is-action`,`is-selected`,`is-dimmed`,`is-vertical`,`badge`,`onClick`])):g(``,!0)],64))),128))}}),Xi=y({__name:`DockEntriesWithCategories`,props:{context:{},groups:{},selected:{},isVertical:{type:Boolean},rotate:{type:Boolean,default:!0}},emits:[`select`],setup(e,{emit:t}){let r=t;return(t,i)=>(n(!0),x(C,null,l(e.groups,([a,o],s)=>(n(),x(C,{key:a},[s>0?b(t.$slots,`separator`,{key:0,category:a,index:s,isVertical:e.isVertical},()=>[w(`div`,{class:m([`border-base m1`,e.isVertical&&!e.rotate?`w-20px h-px border-b-1.5`:`h-20px w-px border-r-1.5`])},null,2)]):g(``,!0),T(Yi,{context:e.context,entries:o,"is-vertical":e.isVertical&&e.rotate,selected:e.selected,onSelect:i[0]||=e=>r(`select`,e)},null,8,[`context`,`entries`,`is-vertical`,`selected`])],64))),128))}}),Zi={key:0,class:`h-screen w-screen of-hidden`},Qi={key:1,class:`h-screen w-screen of-hidden grid cols-[max-content_1fr]`},$i={class:`border-r border-base flex flex-col min-h-0`},ea={class:`p2 border-b border-base flex`},ta={class:`transition duration-200 p2 of-y-auto`},na={class:`min-h-0`},ra=y({__name:`DockStandalone`,props:{context:{}},setup(t){let r=t.context,a=c(`viewsContainer`),l=i(new he(a)),d=o(r.rpc.isTrusted);r.rpc.events.on(`rpc:is-trusted:updated`,e=>{d.value=e,e||r.docks.switchEntry(null)}),u(()=>r.docks.entries,()=>{r.docks.selectedId||=r.docks.entries[0]?.id??null},{immediate:!0});let f=h(()=>r.docks.groupedEntries);function p(e){e&&r.docks.switchEntry(e)}return(t,i)=>(n(),x(C,null,[d.value?(n(),x(`div`,Qi,[w(`div`,$i,[w(`div`,ea,[T(Pn,{class:`w-7 h-7 ma`})]),w(`div`,ta,[T(Xi,{context:e(r),groups:f.value,"is-vertical":!1,selected:e(r).docks.selected,onSelect:i[0]||=e=>p(e?.id)},{separator:s(()=>[...i[1]||=[w(`div`,{class:`border-base border-b w-full my-2`},null,-1)]]),_:1},8,[`context`,`groups`,`selected`])])]),w(`div`,na,[w(`div`,{id:`vite-devtools-views-container`,ref_key:`viewsContainer`,ref:a,class:`pointer-events-auto`},null,512),e(r).docks.selected&&a.value?(n(),D(zi,{key:e(r).docks.selected.id,entry:e(r).docks.selected,context:e(r),"persisted-doms":e(l)},null,8,[`entry`,`context`,`persisted-doms`])):g(``,!0)])])):(n(),x(`div`,Zi,[T(Rn,{context:e(r)},null,8,[`context`])])),T(An),T(dn,{context:e(r)},null,8,[`context`]),T(hn,{context:e(r)},null,8,[`context`])],64))}});export{de as _,yr as a,ue as b,Hn as c,Lt as d,It as f,le as g,pe as h,vr as i,Q as l,me as m,Nr as n,$ as o,Nt as p,jr as r,Vn as s,ra as t,Wn as u,fe as v,ce as y};