@vue/devtools-applet 7.3.8 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,104 +1,104 @@
1
- import { openBlock as p, createElementBlock as g, createStaticVNode as Ft, toValue as ct, ref as I, computed as D, defineComponent as G, h as Gt, provide as $e, inject as Ce, createElementVNode as a, createVNode as y, unref as r, createTextVNode as te, Fragment as oe, renderList as fe, normalizeClass as ie, toDisplayString as ae, renderSlot as qe, createCommentVNode as z, isRef as ze, watch as X, onMounted as bt, nextTick as wt, readonly as Kt, getCurrentScope as Wt, onScopeDispose as Jt, getCurrentInstance as Ye, reactive as ut, withDirectives as q, createBlock as F, mergeProps as we, withModifiers as pe, withCtx as H, toRaw as qt, watchEffect as $t, normalizeStyle as ke, pushScopeId as Xe, popScopeId as Qe, mergeModels as kt, useModel as It, onUnmounted as xe, vShow as Yt } from "vue";
2
- import { Splitpanes as Ee, Pane as ue } from "splitpanes";
3
- import { rpc as R, DevToolsMessagingEvents as W, onRpcConnected as Ue } from "@vue/devtools-core";
4
- import { getRaw as Tt, toSubmit as Oe, formatInspectorStateValue as Xt, getInspectorStateValueType as dt, toEdit as Qt, isPlainObject as en, UNDEFINED as tn, NAN as nn, INFINITY as on, NEGATIVE_INFINITY as sn, parse as Y } from "@vue/devtools-kit";
5
- import { VueButton as ce, VueIcon as ne, vTooltip as Q, VueDropdown as ln, VueDropdownButton as pt, VueInput as We, VueCodeBlock as an, VueDialog as rn, VueIcIcon as ft } from "@vue/devtools-ui";
6
- import { isArray as vt, isObject as ht, sortByKey as St, isInSeparateWindow as cn, isInChromePanel as mt } from "@vue/devtools-shared";
7
- import { debounce as un } from "perfect-debounce";
8
- import { RecycleScroller as dn } from "vue-virtual-scroller";
9
- import { flatten as pn, groupBy as fn } from "lodash-es";
1
+ import { openBlock as p, createElementBlock as h, createStaticVNode as en, toValue as mt, ref as I, computed as D, defineComponent as B, h as tn, provide as ke, inject as Ce, createElementVNode as i, createVNode as x, unref as r, createTextVNode as ne, Fragment as te, renderList as ae, normalizeClass as ie, toDisplayString as oe, renderSlot as et, createCommentVNode as U, isRef as Ge, watch as X, onMounted as Vt, nextTick as Be, readonly as nn, getCurrentScope as on, onScopeDispose as sn, getCurrentInstance as tt, reactive as _t, shallowRef as gt, toRaw as Nt, withDirectives as J, createBlock as z, mergeProps as we, withModifiers as fe, withCtx as M, watchEffect as nt, normalizeStyle as Ie, pushScopeId as ot, popScopeId as st, mergeModels as Ze, useModel as lt, onUnmounted as xe, resolveComponent as ln, vShow as an } from "vue";
2
+ import { rpc as R, DevToolsMessagingEvents as W, onRpcConnected as Re, useDevToolsState as rn } from "@vue/devtools-core";
3
+ import { Splitpanes as Ae, Pane as ue } from "splitpanes";
4
+ import { getRaw as Rt, toSubmit as ze, formatInspectorStateValue as un, getInspectorStateValueType as Ct, toEdit as cn, isPlainObject as dn, UNDEFINED as pn, NAN as fn, INFINITY as vn, NEGATIVE_INFINITY as hn, parse as Y } from "@vue/devtools-kit";
5
+ import { VueButton as de, VueIcon as se, vTooltip as Q, VueDropdown as mn, VueDropdownButton as xt, VueInput as Xe, VueSwitch as _n, VueSelect as gn, VueCodeBlock as Cn, VueDialog as xn, VueIcIcon as yt } from "@vue/devtools-ui";
6
+ import { isArray as bt, isObject as $t, sortByKey as At, isInSeparateWindow as yn, isInChromePanel as wt } from "@vue/devtools-shared";
7
+ import { debounce as bn } from "perfect-debounce";
8
+ import { RecycleScroller as $n } from "vue-virtual-scroller";
9
+ import { flatten as wn, groupBy as kn } from "lodash-es";
10
10
  const ye = (t, e) => {
11
11
  const n = t.__vccOpts || t;
12
- for (const [o, s] of e)
13
- n[o] = s;
12
+ for (const [o, l] of e)
13
+ n[o] = l;
14
14
  return n;
15
- }, vn = {}, hn = {
15
+ }, In = {}, Sn = {
16
16
  viewBox: "0 0 566 154",
17
17
  fill: "none",
18
18
  xmlns: "http://www.w3.org/2000/svg"
19
- }, mn = /* @__PURE__ */ Ft('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>', 2), _n = [
20
- mn
19
+ }, Tn = /* @__PURE__ */ en('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>', 2), En = [
20
+ Tn
21
21
  ];
22
- function gn(t, e) {
23
- return p(), g("svg", hn, _n);
22
+ function Vn(t, e) {
23
+ return p(), h("svg", Sn, En);
24
24
  }
25
- const Cn = /* @__PURE__ */ ye(vn, [["render", gn]]), et = Symbol("VirtualRouteKey"), Et = Symbol("VirtualRoutesKey");
26
- function tt(t, e) {
27
- const n = (e == null ? void 0 : e.defaultRoutePath) ?? ct(t)[0].path, o = I({
25
+ const Nn = /* @__PURE__ */ ye(In, [["render", Vn]]), at = Symbol("VirtualRouteKey"), Dt = Symbol("VirtualRoutesKey");
26
+ function it(t, e) {
27
+ const n = (e == null ? void 0 : e.defaultRoutePath) ?? mt(t)[0].path, o = I({
28
28
  path: n
29
- }), s = D(() => ct(t)), l = D(() => o.value.path), c = G({
29
+ }), l = D(() => mt(t)), s = D(() => o.value.path), u = B({
30
30
  setup() {
31
31
  return () => {
32
- const u = s.value.find((C) => C.path === l.value);
33
- return u ? Gt(u.component) : null;
32
+ const d = l.value.find((C) => C.path === s.value);
33
+ return d ? tn(d.component) : null;
34
34
  };
35
35
  }
36
36
  });
37
- function i() {
37
+ function c() {
38
38
  o.value.path = n;
39
39
  }
40
- return $e(et, o), $e(Et, s), { VirtualRouterView: c, restoreRouter: i };
40
+ return ke(at, o), ke(Dt, l), { VirtualRouterView: u, restoreRouter: c };
41
41
  }
42
- function Ve() {
43
- const t = Ce(et);
42
+ function De() {
43
+ const t = Ce(at);
44
44
  return {
45
45
  push(e) {
46
46
  t.value.path = e;
47
47
  }
48
48
  };
49
49
  }
50
- function xn() {
51
- const t = Ce(Et), e = Ce(et);
50
+ function Rn() {
51
+ const t = Ce(Dt), e = Ce(at);
52
52
  return {
53
53
  routes: t,
54
54
  currentRoute: e
55
55
  };
56
56
  }
57
- const yn = {
57
+ const An = {
58
58
  "h-full": "",
59
59
  "w-full": "",
60
60
  flex: "",
61
61
  "items-center": ""
62
- }, bn = {
62
+ }, Dn = {
63
63
  flex: "~ col gap2",
64
64
  ma: "",
65
65
  "px-5": ""
66
- }, wn = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), $n = {
66
+ }, Pn = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Mn = {
67
67
  flex: "~ col",
68
68
  "mt-20": "",
69
69
  "items-center": ""
70
- }, kn = {
70
+ }, Hn = {
71
71
  flex: "~",
72
72
  "mt--10": "",
73
73
  "items-center": "",
74
74
  "justify-center": ""
75
- }, In = /* @__PURE__ */ a("div", {
75
+ }, Ln = /* @__PURE__ */ i("div", {
76
76
  mb6: "",
77
77
  "mt--1": "",
78
78
  "text-center": "",
79
79
  "text-sm": "",
80
80
  flex: "~ gap-1"
81
81
  }, [
82
- /* @__PURE__ */ a("span", { op40: "" }, " Pinia DevTools ")
83
- ], -1), Tn = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), Sn = { flex: "~ gap2 wrap" }, En = /* @__PURE__ */ a("div", {
82
+ /* @__PURE__ */ i("span", { op40: "" }, " Pinia DevTools ")
83
+ ], -1), jn = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), On = { flex: "~ gap2 wrap" }, Un = /* @__PURE__ */ i("div", {
84
84
  "i-carbon-tree-view-alt": "",
85
85
  "text-3xl": ""
86
- }, null, -1), Vn = /* @__PURE__ */ a("code", null, "Store", -1), Nn = [
87
- En,
88
- Vn
89
- ], An = /* @__PURE__ */ a("div", {
86
+ }, null, -1), zn = /* @__PURE__ */ i("code", null, "Store", -1), Bn = [
87
+ Un,
88
+ zn
89
+ ], Zn = /* @__PURE__ */ i("div", {
90
90
  "i-mdi:timeline-clock-outline": "",
91
91
  "text-3xl": ""
92
- }, null, -1), Rn = /* @__PURE__ */ a("div", null, "Timeline", -1), Dn = [
93
- An,
94
- Rn
95
- ], Pn = /* @__PURE__ */ a("div", {
92
+ }, null, -1), Fn = /* @__PURE__ */ i("div", null, "Timeline", -1), Gn = [
93
+ Zn,
94
+ Fn
95
+ ], Kn = /* @__PURE__ */ i("div", {
96
96
  flex: "~ gap-6 wrap",
97
97
  "mt-5": "",
98
98
  "items-center": "",
99
99
  "justify-center": ""
100
100
  }, [
101
- /* @__PURE__ */ a("a", {
101
+ /* @__PURE__ */ i("a", {
102
102
  href: "https://github.com/vuejs/pinia",
103
103
  target: "_blank",
104
104
  flex: "~ gap1",
@@ -107,10 +107,10 @@ const yn = {
107
107
  hover: "op100 text-blue",
108
108
  transition: ""
109
109
  }, [
110
- /* @__PURE__ */ a("div", { "i-carbon-star": "" }),
111
- /* @__PURE__ */ te(" Star on GitHub ")
110
+ /* @__PURE__ */ i("div", { "i-carbon-star": "" }),
111
+ /* @__PURE__ */ ne(" Star on GitHub ")
112
112
  ]),
113
- /* @__PURE__ */ a("a", {
113
+ /* @__PURE__ */ i("a", {
114
114
  href: "https://pinia.vuejs.org/",
115
115
  target: "_blank",
116
116
  flex: "~ gap1",
@@ -119,147 +119,147 @@ const yn = {
119
119
  hover: "op100 text-yellow",
120
120
  transition: ""
121
121
  }, [
122
- /* @__PURE__ */ a("div", { "i-carbon-document": "" }),
123
- /* @__PURE__ */ te(" View Documentation ")
122
+ /* @__PURE__ */ i("div", { "i-carbon-document": "" }),
123
+ /* @__PURE__ */ ne(" View Documentation ")
124
124
  ])
125
- ], -1), Mn = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), Hn = /* @__PURE__ */ G({
125
+ ], -1), Wn = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), qn = /* @__PURE__ */ B({
126
126
  __name: "About",
127
127
  setup(t) {
128
- const e = Ve();
129
- return (n, o) => (p(), g("div", yn, [
130
- a("div", bn, [
131
- wn,
132
- a("div", $n, [
133
- a("div", kn, [
134
- y(Cn, { "h-18": "" })
128
+ const e = De();
129
+ return (n, o) => (p(), h("div", An, [
130
+ i("div", Dn, [
131
+ Pn,
132
+ i("div", Mn, [
133
+ i("div", Hn, [
134
+ x(Nn, { "h-18": "" })
135
135
  ]),
136
- In
136
+ Ln
137
137
  ]),
138
- Tn,
139
- a("div", Sn, [
140
- a("div", {
138
+ jn,
139
+ i("div", On, [
140
+ i("div", {
141
141
  flex: "~ col auto",
142
142
  "min-w-40": "",
143
143
  p4: "",
144
144
  "theme-card-lime": "",
145
- onClick: o[0] || (o[0] = (s) => r(e).push("/store"))
146
- }, Nn),
147
- a("div", {
145
+ onClick: o[0] || (o[0] = (l) => r(e).push("/store"))
146
+ }, Bn),
147
+ i("div", {
148
148
  flex: "~ col auto",
149
149
  "min-w-40": "",
150
150
  p4: "",
151
151
  "theme-card-lime": "",
152
- onClick: o[1] || (o[1] = (s) => r(e).push("/timeline"))
153
- }, Dn)
152
+ onClick: o[1] || (o[1] = (l) => r(e).push("/timeline"))
153
+ }, Gn)
154
154
  ]),
155
- Pn,
156
- Mn
155
+ Kn,
156
+ Wn
157
157
  ])
158
158
  ]));
159
159
  }
160
- }), Ln = { class: "flex gap3" }, On = ["onClick"], Be = /* @__PURE__ */ G({
160
+ }), Jn = { class: "flex gap3" }, Yn = ["onClick"], Se = /* @__PURE__ */ B({
161
161
  __name: "Navbar",
162
162
  setup(t) {
163
- const { routes: e, currentRoute: n } = xn(), o = Ve();
164
- return (s, l) => (p(), g("ul", Ln, [
165
- (p(!0), g(oe, null, fe(r(e), (c, i) => (p(), g("li", {
166
- key: i,
167
- class: ie(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100", r(n).path === c.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
168
- onClick: (u) => r(o).push(c.path)
169
- }, ae(c.name), 11, On))), 128))
163
+ const { routes: e, currentRoute: n } = Rn(), o = De();
164
+ return (l, s) => (p(), h("ul", Jn, [
165
+ (p(!0), h(te, null, ae(r(e), (u, c) => (p(), h("li", {
166
+ key: c,
167
+ class: ie(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100", r(n).path === u.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
168
+ onClick: (d) => r(o).push(u.path)
169
+ }, oe(u.name), 11, Yn))), 128))
170
170
  ]));
171
171
  }
172
- }), jn = {
172
+ }), Xn = {
173
173
  border: "b base",
174
174
  class: "flex items-center justify-between px3"
175
- }, zn = ["href"], Un = /* @__PURE__ */ a("i", { class: "i-clarity:document-line cursor-pointer op70 text-base hover:op100" }, null, -1), Bn = [
176
- Un
177
- ], Zn = ["href"], Fn = /* @__PURE__ */ a("i", { class: "i-mdi:github cursor-pointer op70 text-base hover:op100" }, null, -1), Gn = [
178
- Fn
179
- ], Ze = /* @__PURE__ */ G({
175
+ }, Qn = ["href"], eo = /* @__PURE__ */ i("i", { class: "i-clarity:document-line cursor-pointer op70 text-base hover:op100" }, null, -1), to = [
176
+ eo
177
+ ], no = ["href"], oo = /* @__PURE__ */ i("i", { class: "i-mdi:github cursor-pointer op70 text-base hover:op100" }, null, -1), so = [
178
+ oo
179
+ ], Te = /* @__PURE__ */ B({
180
180
  __name: "DevToolsHeader",
181
181
  props: {
182
182
  githubRepoLink: {},
183
183
  docLink: {}
184
184
  },
185
185
  setup(t) {
186
- const e = Ve();
187
- return (n, o) => (p(), g("div", jn, [
188
- a("div", null, [
189
- qe(n.$slots, "default", {}, () => [
190
- a("i", {
186
+ const e = De();
187
+ return (n, o) => (p(), h("div", Xn, [
188
+ i("div", null, [
189
+ et(n.$slots, "default", {}, () => [
190
+ i("i", {
191
191
  class: "i-ep:back cursor-pointer op70 text-base hover:op100",
192
- onClick: o[0] || (o[0] = (s) => r(e).push("/"))
192
+ onClick: o[0] || (o[0] = (l) => r(e).push("/"))
193
193
  })
194
194
  ])
195
195
  ]),
196
- a("div", null, [
197
- a("a", {
196
+ i("div", null, [
197
+ i("a", {
198
198
  class: "pr2",
199
199
  href: n.docLink,
200
200
  target: "_blank",
201
201
  title: "View Documentation"
202
- }, Bn, 8, zn),
203
- n.githubRepoLink ? (p(), g("a", {
202
+ }, to, 8, Qn),
203
+ n.githubRepoLink ? (p(), h("a", {
204
204
  key: 0,
205
205
  href: n.githubRepoLink,
206
206
  target: "_blank",
207
207
  title: "Star on GitHub"
208
- }, Gn, 8, Zn)) : z("", !0)
208
+ }, so, 8, no)) : U("", !0)
209
209
  ])
210
210
  ]));
211
211
  }
212
- }), Kn = {}, Wn = { class: "h-full flex flex-col items-center justify-center op50" }, Jn = /* @__PURE__ */ a("i", { class: "i-lets-icons:blank-light" }, null, -1);
213
- function qn(t, e) {
214
- return p(), g("div", Wn, [
215
- Jn,
216
- a("span", null, [
217
- qe(t.$slots, "default")
212
+ }), lo = {}, ao = { class: "h-full flex flex-col items-center justify-center op50" }, io = /* @__PURE__ */ i("i", { class: "i-lets-icons:blank-light" }, null, -1);
213
+ function ro(t, e) {
214
+ return p(), h("div", ao, [
215
+ io,
216
+ i("span", null, [
217
+ et(t.$slots, "default")
218
218
  ])
219
219
  ]);
220
220
  }
221
- const Se = /* @__PURE__ */ ye(Kn, [["render", qn]]);
222
- function nt(t) {
223
- return Wt() ? (Jt(t), !0) : !1;
221
+ const Ne = /* @__PURE__ */ ye(lo, [["render", ro]]);
222
+ function rt(t) {
223
+ return on() ? (sn(t), !0) : !1;
224
224
  }
225
225
  function ee(t) {
226
226
  return typeof t == "function" ? t() : r(t);
227
227
  }
228
- const ot = typeof window < "u" && typeof document < "u";
228
+ const ut = typeof window < "u" && typeof document < "u";
229
229
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
230
- const Yn = (t) => typeof t < "u", Xn = Object.prototype.toString, Qn = (t) => Xn.call(t) === "[object Object]", je = () => {
230
+ const uo = (t) => typeof t < "u", co = Object.prototype.toString, po = (t) => co.call(t) === "[object Object]", Fe = () => {
231
231
  };
232
- function eo(t, e) {
232
+ function fo(t, e) {
233
233
  function n(...o) {
234
- return new Promise((s, l) => {
235
- Promise.resolve(t(() => e.apply(this, o), { fn: e, thisArg: this, args: o })).then(s).catch(l);
234
+ return new Promise((l, s) => {
235
+ Promise.resolve(t(() => e.apply(this, o), { fn: e, thisArg: this, args: o })).then(l).catch(s);
236
236
  });
237
237
  }
238
238
  return n;
239
239
  }
240
- const to = (t) => t();
241
- function no(t, e = {}) {
242
- let n, o, s = je;
243
- const l = (i) => {
244
- clearTimeout(i), s(), s = je;
240
+ const vo = (t) => t();
241
+ function ho(t, e = {}) {
242
+ let n, o, l = Fe;
243
+ const s = (c) => {
244
+ clearTimeout(c), l(), l = Fe;
245
245
  };
246
- return (i) => {
247
- const u = ee(t), C = ee(e.maxWait);
248
- return n && l(n), u <= 0 || C !== void 0 && C <= 0 ? (o && (l(o), o = null), Promise.resolve(i())) : new Promise((f, d) => {
249
- s = e.rejectOnCancel ? d : f, C && !o && (o = setTimeout(() => {
250
- n && l(n), o = null, f(i());
246
+ return (c) => {
247
+ const d = ee(t), C = ee(e.maxWait);
248
+ return n && s(n), d <= 0 || C !== void 0 && C <= 0 ? (o && (s(o), o = null), Promise.resolve(c())) : new Promise((v, a) => {
249
+ l = e.rejectOnCancel ? a : v, C && !o && (o = setTimeout(() => {
250
+ n && s(n), o = null, v(c());
251
251
  }, C)), n = setTimeout(() => {
252
- o && l(o), o = null, f(i());
253
- }, u);
252
+ o && s(o), o = null, v(c());
253
+ }, d);
254
254
  });
255
255
  };
256
256
  }
257
- function _t(t, e = !1, n = "Timeout") {
258
- return new Promise((o, s) => {
259
- setTimeout(e ? () => s(n) : o, t);
257
+ function kt(t, e = !1, n = "Timeout") {
258
+ return new Promise((o, l) => {
259
+ setTimeout(e ? () => l(n) : o, t);
260
260
  });
261
261
  }
262
- function oo(t) {
262
+ function mo(t) {
263
263
  let e;
264
264
  function n() {
265
265
  return e || (e = t()), e;
@@ -269,167 +269,167 @@ function oo(t) {
269
269
  e = void 0, o && await o;
270
270
  }, n;
271
271
  }
272
- function so(t) {
273
- return Ye();
272
+ function _o(t) {
273
+ return tt();
274
274
  }
275
- function lo(t, e, n = {}) {
275
+ function go(t, e, n = {}) {
276
276
  const {
277
- eventFilter: o = to,
278
- ...s
277
+ eventFilter: o = vo,
278
+ ...l
279
279
  } = n;
280
280
  return X(
281
281
  t,
282
- eo(
282
+ fo(
283
283
  o,
284
284
  e
285
285
  ),
286
- s
286
+ l
287
287
  );
288
288
  }
289
- function ao(t, e = !0, n) {
290
- so() ? bt(t, n) : e ? t() : wt(t);
289
+ function Co(t, e = !0, n) {
290
+ _o() ? Vt(t, n) : e ? t() : Be(t);
291
291
  }
292
- function Je(t, e = !1) {
293
- function n(d, { flush: v = "sync", deep: m = !1, timeout: x, throwOnTimeout: h } = {}) {
294
- let $ = null;
295
- const L = [new Promise((E) => {
296
- $ = X(
292
+ function Qe(t, e = !1) {
293
+ function n(a, { flush: f = "sync", deep: m = !1, timeout: y, throwOnTimeout: _ } = {}) {
294
+ let k = null;
295
+ const j = [new Promise((V) => {
296
+ k = X(
297
297
  t,
298
- (w) => {
299
- d(w) !== e && ($ == null || $(), E(w));
298
+ ($) => {
299
+ a($) !== e && (k ? k() : Be(() => k == null ? void 0 : k()), V($));
300
300
  },
301
301
  {
302
- flush: v,
302
+ flush: f,
303
303
  deep: m,
304
304
  immediate: !0
305
305
  }
306
306
  );
307
307
  })];
308
- return x != null && L.push(
309
- _t(x, h).then(() => ee(t)).finally(() => $ == null ? void 0 : $())
310
- ), Promise.race(L);
308
+ return y != null && j.push(
309
+ kt(y, _).then(() => ee(t)).finally(() => k == null ? void 0 : k())
310
+ ), Promise.race(j);
311
311
  }
312
- function o(d, v) {
313
- if (!ze(d))
314
- return n((w) => w === d, v);
315
- const { flush: m = "sync", deep: x = !1, timeout: h, throwOnTimeout: $ } = v ?? {};
316
- let j = null;
317
- const E = [new Promise((w) => {
318
- j = X(
319
- [t, d],
320
- ([V, M]) => {
321
- e !== (V === M) && (j == null || j(), w(V));
312
+ function o(a, f) {
313
+ if (!Ge(a))
314
+ return n(($) => $ === a, f);
315
+ const { flush: m = "sync", deep: y = !1, timeout: _, throwOnTimeout: k } = f ?? {};
316
+ let O = null;
317
+ const V = [new Promise(($) => {
318
+ O = X(
319
+ [t, a],
320
+ ([N, H]) => {
321
+ e !== (N === H) && (O ? O() : Be(() => O == null ? void 0 : O()), $(N));
322
322
  },
323
323
  {
324
324
  flush: m,
325
- deep: x,
325
+ deep: y,
326
326
  immediate: !0
327
327
  }
328
328
  );
329
329
  })];
330
- return h != null && E.push(
331
- _t(h, $).then(() => ee(t)).finally(() => (j == null || j(), ee(t)))
332
- ), Promise.race(E);
330
+ return _ != null && V.push(
331
+ kt(_, k).then(() => ee(t)).finally(() => (O == null || O(), ee(t)))
332
+ ), Promise.race(V);
333
333
  }
334
- function s(d) {
335
- return n((v) => !!v, d);
334
+ function l(a) {
335
+ return n((f) => !!f, a);
336
336
  }
337
- function l(d) {
338
- return o(null, d);
337
+ function s(a) {
338
+ return o(null, a);
339
339
  }
340
- function c(d) {
341
- return o(void 0, d);
340
+ function u(a) {
341
+ return o(void 0, a);
342
342
  }
343
- function i(d) {
344
- return n(Number.isNaN, d);
343
+ function c(a) {
344
+ return n(Number.isNaN, a);
345
345
  }
346
- function u(d, v) {
346
+ function d(a, f) {
347
347
  return n((m) => {
348
- const x = Array.from(m);
349
- return x.includes(d) || x.includes(ee(d));
350
- }, v);
348
+ const y = Array.from(m);
349
+ return y.includes(a) || y.includes(ee(a));
350
+ }, f);
351
351
  }
352
- function C(d) {
353
- return f(1, d);
352
+ function C(a) {
353
+ return v(1, a);
354
354
  }
355
- function f(d = 1, v) {
355
+ function v(a = 1, f) {
356
356
  let m = -1;
357
- return n(() => (m += 1, m >= d), v);
357
+ return n(() => (m += 1, m >= a), f);
358
358
  }
359
359
  return Array.isArray(ee(t)) ? {
360
360
  toMatch: n,
361
- toContains: u,
361
+ toContains: d,
362
362
  changed: C,
363
- changedTimes: f,
363
+ changedTimes: v,
364
364
  get not() {
365
- return Je(t, !e);
365
+ return Qe(t, !e);
366
366
  }
367
367
  } : {
368
368
  toMatch: n,
369
369
  toBe: o,
370
- toBeTruthy: s,
371
- toBeNull: l,
372
- toBeNaN: i,
373
- toBeUndefined: c,
370
+ toBeTruthy: l,
371
+ toBeNull: s,
372
+ toBeNaN: c,
373
+ toBeUndefined: u,
374
374
  changed: C,
375
- changedTimes: f,
375
+ changedTimes: v,
376
376
  get not() {
377
- return Je(t, !e);
377
+ return Qe(t, !e);
378
378
  }
379
379
  };
380
380
  }
381
- function Vt(t) {
382
- return Je(t);
381
+ function Pt(t) {
382
+ return Qe(t);
383
383
  }
384
- function io(t, e, n = {}) {
384
+ function xo(t, e, n = {}) {
385
385
  const {
386
386
  immediate: o = !0
387
- } = n, s = I(!1);
388
- let l = null;
389
- function c() {
390
- l && (clearTimeout(l), l = null);
387
+ } = n, l = I(!1);
388
+ let s = null;
389
+ function u() {
390
+ s && (clearTimeout(s), s = null);
391
391
  }
392
- function i() {
393
- s.value = !1, c();
392
+ function c() {
393
+ l.value = !1, u();
394
394
  }
395
- function u(...C) {
396
- c(), s.value = !0, l = setTimeout(() => {
397
- s.value = !1, l = null, t(...C);
395
+ function d(...C) {
396
+ u(), l.value = !0, s = setTimeout(() => {
397
+ l.value = !1, s = null, t(...C);
398
398
  }, ee(e));
399
399
  }
400
- return o && (s.value = !0, ot && u()), nt(i), {
401
- isPending: Kt(s),
402
- start: u,
403
- stop: i
400
+ return o && (l.value = !0, ut && d()), rt(c), {
401
+ isPending: nn(l),
402
+ start: d,
403
+ stop: c
404
404
  };
405
405
  }
406
- function ro(t = !1, e = {}) {
406
+ function yo(t = !1, e = {}) {
407
407
  const {
408
408
  truthyValue: n = !0,
409
409
  falsyValue: o = !1
410
- } = e, s = ze(t), l = I(t);
411
- function c(i) {
410
+ } = e, l = Ge(t), s = I(t);
411
+ function u(c) {
412
412
  if (arguments.length)
413
- return l.value = i, l.value;
413
+ return s.value = c, s.value;
414
414
  {
415
- const u = ee(n);
416
- return l.value = l.value === u ? ee(o) : u, l.value;
415
+ const d = ee(n);
416
+ return s.value = s.value === d ? ee(o) : d, s.value;
417
417
  }
418
418
  }
419
- return s ? c : [l, c];
419
+ return l ? u : [s, u];
420
420
  }
421
- function co(t, e, n = {}) {
421
+ function bo(t, e, n = {}) {
422
422
  const {
423
423
  debounce: o = 0,
424
- maxWait: s = void 0,
425
- ...l
424
+ maxWait: l = void 0,
425
+ ...s
426
426
  } = n;
427
- return lo(
427
+ return go(
428
428
  t,
429
429
  e,
430
430
  {
431
- ...l,
432
- eventFilter: no(o, { maxWait: s })
431
+ ...s,
432
+ eventFilter: ho(o, { maxWait: l })
433
433
  }
434
434
  );
435
435
  }
@@ -438,168 +438,175 @@ function ge(t) {
438
438
  const n = ee(t);
439
439
  return (e = n == null ? void 0 : n.$el) != null ? e : n;
440
440
  }
441
- const Fe = ot ? window : void 0, Nt = ot ? window.navigator : void 0;
441
+ const Ke = ut ? window : void 0, Mt = ut ? window.navigator : void 0;
442
442
  function he(...t) {
443
- let e, n, o, s;
444
- if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([n, o, s] = t, e = Fe) : [e, n, o, s] = t, !e)
445
- return je;
443
+ let e, n, o, l;
444
+ if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([n, o, l] = t, e = Ke) : [e, n, o, l] = t, !e)
445
+ return Fe;
446
446
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
447
- const l = [], c = () => {
448
- l.forEach((f) => f()), l.length = 0;
449
- }, i = (f, d, v, m) => (f.addEventListener(d, v, m), () => f.removeEventListener(d, v, m)), u = X(
450
- () => [ge(e), ee(s)],
451
- ([f, d]) => {
452
- if (c(), !f)
447
+ const s = [], u = () => {
448
+ s.forEach((v) => v()), s.length = 0;
449
+ }, c = (v, a, f, m) => (v.addEventListener(a, f, m), () => v.removeEventListener(a, f, m)), d = X(
450
+ () => [ge(e), ee(l)],
451
+ ([v, a]) => {
452
+ if (u(), !v)
453
453
  return;
454
- const v = Qn(d) ? { ...d } : d;
455
- l.push(
456
- ...n.flatMap((m) => o.map((x) => i(f, m, x, v)))
454
+ const f = po(a) ? { ...a } : a;
455
+ s.push(
456
+ ...n.flatMap((m) => o.map((y) => c(v, m, y, f)))
457
457
  );
458
458
  },
459
459
  { immediate: !0, flush: "post" }
460
460
  ), C = () => {
461
- u(), c();
461
+ d(), u();
462
462
  };
463
- return nt(C), C;
463
+ return rt(C), C;
464
464
  }
465
- function uo() {
466
- const t = I(!1), e = Ye();
467
- return e && bt(() => {
465
+ function $o() {
466
+ const t = I(!1), e = tt();
467
+ return e && Vt(() => {
468
468
  t.value = !0;
469
469
  }, e), t;
470
470
  }
471
- function st(t) {
472
- const e = uo();
471
+ function ct(t) {
472
+ const e = $o();
473
473
  return D(() => (e.value, !!t()));
474
474
  }
475
- function gt(t, e = {}) {
475
+ function It(t, e = {}) {
476
476
  const {
477
477
  controls: n = !1,
478
- navigator: o = Nt
479
- } = e, s = st(() => o && "permissions" in o);
480
- let l;
481
- const c = typeof t == "string" ? { name: t } : t, i = I(), u = () => {
482
- l && (i.value = l.state);
483
- }, C = oo(async () => {
484
- if (s.value) {
485
- if (!l)
478
+ navigator: o = Mt
479
+ } = e, l = ct(() => o && "permissions" in o), s = gt(), u = typeof t == "string" ? { name: t } : t, c = gt(), d = () => {
480
+ var v, a;
481
+ c.value = (a = (v = s.value) == null ? void 0 : v.state) != null ? a : "prompt";
482
+ };
483
+ he(s, "change", d);
484
+ const C = mo(async () => {
485
+ if (l.value) {
486
+ if (!s.value)
486
487
  try {
487
- l = await o.permissions.query(c), he(l, "change", u), u();
488
+ s.value = await o.permissions.query(u);
488
489
  } catch {
489
- i.value = "prompt";
490
+ s.value = void 0;
491
+ } finally {
492
+ d();
490
493
  }
491
- return l;
494
+ if (n)
495
+ return Nt(s.value);
492
496
  }
493
497
  });
494
498
  return C(), n ? {
495
- state: i,
496
- isSupported: s,
499
+ state: c,
500
+ isSupported: l,
497
501
  query: C
498
- } : i;
502
+ } : c;
499
503
  }
500
- function po(t = {}) {
504
+ function wo(t = {}) {
501
505
  const {
502
- navigator: e = Nt,
506
+ navigator: e = Mt,
503
507
  read: n = !1,
504
508
  source: o,
505
- copiedDuring: s = 1500,
506
- legacy: l = !1
507
- } = t, c = st(() => e && "clipboard" in e), i = gt("clipboard-read"), u = gt("clipboard-write"), C = D(() => c.value || l), f = I(""), d = I(!1), v = io(() => d.value = !1, s);
509
+ copiedDuring: l = 1500,
510
+ legacy: s = !1
511
+ } = t, u = ct(() => e && "clipboard" in e), c = It("clipboard-read"), d = It("clipboard-write"), C = D(() => u.value || s), v = I(""), a = I(!1), f = xo(() => a.value = !1, l);
508
512
  function m() {
509
- c.value && j(i.value) ? e.clipboard.readText().then((L) => {
510
- f.value = L;
511
- }) : f.value = $();
513
+ u.value && O(c.value) ? e.clipboard.readText().then((j) => {
514
+ v.value = j;
515
+ }) : v.value = k();
512
516
  }
513
517
  C.value && n && he(["copy", "cut"], m);
514
- async function x(L = ee(o)) {
515
- C.value && L != null && (c.value && j(u.value) ? await e.clipboard.writeText(L) : h(L), f.value = L, d.value = !0, v.start());
518
+ async function y(j = ee(o)) {
519
+ C.value && j != null && (u.value && O(d.value) ? await e.clipboard.writeText(j) : _(j), v.value = j, a.value = !0, f.start());
516
520
  }
517
- function h(L) {
518
- const E = document.createElement("textarea");
519
- E.value = L ?? "", E.style.position = "absolute", E.style.opacity = "0", document.body.appendChild(E), E.select(), document.execCommand("copy"), E.remove();
521
+ function _(j) {
522
+ const V = document.createElement("textarea");
523
+ V.value = j ?? "", V.style.position = "absolute", V.style.opacity = "0", document.body.appendChild(V), V.select(), document.execCommand("copy"), V.remove();
520
524
  }
521
- function $() {
522
- var L, E, w;
523
- return (w = (E = (L = document == null ? void 0 : document.getSelection) == null ? void 0 : L.call(document)) == null ? void 0 : E.toString()) != null ? w : "";
525
+ function k() {
526
+ var j, V, $;
527
+ return ($ = (V = (j = document == null ? void 0 : document.getSelection) == null ? void 0 : j.call(document)) == null ? void 0 : V.toString()) != null ? $ : "";
524
528
  }
525
- function j(L) {
526
- return L === "granted" || L === "prompt";
529
+ function O(j) {
530
+ return j === "granted" || j === "prompt";
527
531
  }
528
532
  return {
529
533
  isSupported: C,
530
- text: f,
531
- copied: d,
532
- copy: x
534
+ text: v,
535
+ copied: a,
536
+ copy: y
533
537
  };
534
538
  }
535
- function fo(t) {
539
+ function ko(t) {
536
540
  return JSON.parse(JSON.stringify(t));
537
541
  }
538
- function vo(t, e, n = {}) {
539
- const { window: o = Fe, ...s } = n;
540
- let l;
541
- const c = st(() => o && "ResizeObserver" in o), i = () => {
542
- l && (l.disconnect(), l = void 0);
543
- }, u = D(() => Array.isArray(t) ? t.map((d) => ge(d)) : [ge(t)]), C = X(
544
- u,
545
- (d) => {
546
- if (i(), c.value && o) {
547
- l = new ResizeObserver(e);
548
- for (const v of d)
549
- v && l.observe(v, s);
542
+ function Io(t, e, n = {}) {
543
+ const { window: o = Ke, ...l } = n;
544
+ let s;
545
+ const u = ct(() => o && "ResizeObserver" in o), c = () => {
546
+ s && (s.disconnect(), s = void 0);
547
+ }, d = D(() => {
548
+ const a = ee(t);
549
+ return Array.isArray(a) ? a.map((f) => ge(f)) : [ge(a)];
550
+ }), C = X(
551
+ d,
552
+ (a) => {
553
+ if (c(), u.value && o) {
554
+ s = new ResizeObserver(e);
555
+ for (const f of a)
556
+ f && s.observe(f, l);
550
557
  }
551
558
  },
552
559
  { immediate: !0, flush: "post" }
553
- ), f = () => {
554
- i(), C();
560
+ ), v = () => {
561
+ c(), C();
555
562
  };
556
- return nt(f), {
557
- isSupported: c,
558
- stop: f
563
+ return rt(v), {
564
+ isSupported: u,
565
+ stop: v
559
566
  };
560
567
  }
561
- function ho(t, e = { width: 0, height: 0 }, n = {}) {
562
- const { window: o = Fe, box: s = "content-box" } = n, l = D(() => {
563
- var d, v;
564
- return (v = (d = ge(t)) == null ? void 0 : d.namespaceURI) == null ? void 0 : v.includes("svg");
565
- }), c = I(e.width), i = I(e.height), { stop: u } = vo(
568
+ function So(t, e = { width: 0, height: 0 }, n = {}) {
569
+ const { window: o = Ke, box: l = "content-box" } = n, s = D(() => {
570
+ var a, f;
571
+ return (f = (a = ge(t)) == null ? void 0 : a.namespaceURI) == null ? void 0 : f.includes("svg");
572
+ }), u = I(e.width), c = I(e.height), { stop: d } = Io(
566
573
  t,
567
- ([d]) => {
568
- const v = s === "border-box" ? d.borderBoxSize : s === "content-box" ? d.contentBoxSize : d.devicePixelContentBoxSize;
569
- if (o && l.value) {
574
+ ([a]) => {
575
+ const f = l === "border-box" ? a.borderBoxSize : l === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
576
+ if (o && s.value) {
570
577
  const m = ge(t);
571
578
  if (m) {
572
- const x = m.getBoundingClientRect();
573
- c.value = x.width, i.value = x.height;
579
+ const y = m.getBoundingClientRect();
580
+ u.value = y.width, c.value = y.height;
574
581
  }
575
- } else if (v) {
576
- const m = Array.isArray(v) ? v : [v];
577
- c.value = m.reduce((x, { inlineSize: h }) => x + h, 0), i.value = m.reduce((x, { blockSize: h }) => x + h, 0);
582
+ } else if (f) {
583
+ const m = Array.isArray(f) ? f : [f];
584
+ u.value = m.reduce((y, { inlineSize: _ }) => y + _, 0), c.value = m.reduce((y, { blockSize: _ }) => y + _, 0);
578
585
  } else
579
- c.value = d.contentRect.width, i.value = d.contentRect.height;
586
+ u.value = a.contentRect.width, c.value = a.contentRect.height;
580
587
  },
581
588
  n
582
589
  );
583
- ao(() => {
584
- const d = ge(t);
585
- d && (c.value = "offsetWidth" in d ? d.offsetWidth : e.width, i.value = "offsetHeight" in d ? d.offsetHeight : e.height);
590
+ Co(() => {
591
+ const a = ge(t);
592
+ a && (u.value = "offsetWidth" in a ? a.offsetWidth : e.width, c.value = "offsetHeight" in a ? a.offsetHeight : e.height);
586
593
  });
587
594
  const C = X(
588
595
  () => ge(t),
589
- (d) => {
590
- c.value = d ? e.width : 0, i.value = d ? e.height : 0;
596
+ (a) => {
597
+ u.value = a ? e.width : 0, c.value = a ? e.height : 0;
591
598
  }
592
599
  );
593
- function f() {
594
- u(), C();
600
+ function v() {
601
+ d(), C();
595
602
  }
596
603
  return {
597
- width: c,
598
- height: i,
599
- stop: f
604
+ width: u,
605
+ height: c,
606
+ stop: v
600
607
  };
601
608
  }
602
- const mo = {
609
+ const To = {
603
610
  ctrl: "control",
604
611
  command: "meta",
605
612
  cmd: "meta",
@@ -609,142 +616,142 @@ const mo = {
609
616
  left: "arrowleft",
610
617
  right: "arrowright"
611
618
  };
612
- function _o(t = {}) {
619
+ function Eo(t = {}) {
613
620
  const {
614
621
  reactive: e = !1,
615
- target: n = Fe,
616
- aliasMap: o = mo,
617
- passive: s = !0,
618
- onEventFired: l = je
619
- } = t, c = ut(/* @__PURE__ */ new Set()), i = {
622
+ target: n = Ke,
623
+ aliasMap: o = To,
624
+ passive: l = !0,
625
+ onEventFired: s = Fe
626
+ } = t, u = _t(/* @__PURE__ */ new Set()), c = {
620
627
  toJSON() {
621
628
  return {};
622
629
  },
623
- current: c
624
- }, u = e ? ut(i) : i, C = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set();
625
- function d(h, $) {
626
- h in u && (e ? u[h] = $ : u[h].value = $);
630
+ current: u
631
+ }, d = e ? _t(c) : c, C = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set();
632
+ function a(_, k) {
633
+ _ in d && (e ? d[_] = k : d[_].value = k);
627
634
  }
628
- function v() {
629
- c.clear();
630
- for (const h of f)
631
- d(h, !1);
635
+ function f() {
636
+ u.clear();
637
+ for (const _ of v)
638
+ a(_, !1);
632
639
  }
633
- function m(h, $) {
634
- var j, L;
635
- const E = (j = h.key) == null ? void 0 : j.toLowerCase(), V = [(L = h.code) == null ? void 0 : L.toLowerCase(), E].filter(Boolean);
636
- E && ($ ? c.add(E) : c.delete(E));
637
- for (const M of V)
638
- f.add(M), d(M, $);
639
- E === "meta" && !$ ? (C.forEach((M) => {
640
- c.delete(M), d(M, !1);
641
- }), C.clear()) : typeof h.getModifierState == "function" && h.getModifierState("Meta") && $ && [...c, ...V].forEach((M) => C.add(M));
640
+ function m(_, k) {
641
+ var O, j;
642
+ const V = (O = _.key) == null ? void 0 : O.toLowerCase(), N = [(j = _.code) == null ? void 0 : j.toLowerCase(), V].filter(Boolean);
643
+ V && (k ? u.add(V) : u.delete(V));
644
+ for (const H of N)
645
+ v.add(H), a(H, k);
646
+ V === "meta" && !k ? (C.forEach((H) => {
647
+ u.delete(H), a(H, !1);
648
+ }), C.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && k && [...u, ...N].forEach((H) => C.add(H));
642
649
  }
643
- he(n, "keydown", (h) => (m(h, !0), l(h)), { passive: s }), he(n, "keyup", (h) => (m(h, !1), l(h)), { passive: s }), he("blur", v, { passive: !0 }), he("focus", v, { passive: !0 });
644
- const x = new Proxy(
645
- u,
650
+ he(n, "keydown", (_) => (m(_, !0), s(_)), { passive: l }), he(n, "keyup", (_) => (m(_, !1), s(_)), { passive: l }), he("blur", f, { passive: !0 }), he("focus", f, { passive: !0 });
651
+ const y = new Proxy(
652
+ d,
646
653
  {
647
- get(h, $, j) {
648
- if (typeof $ != "string")
649
- return Reflect.get(h, $, j);
650
- if ($ = $.toLowerCase(), $ in o && ($ = o[$]), !($ in u))
651
- if (/[+_-]/.test($)) {
652
- const E = $.split(/[+_-]/g).map((w) => w.trim());
653
- u[$] = D(() => E.every((w) => ee(x[w])));
654
+ get(_, k, O) {
655
+ if (typeof k != "string")
656
+ return Reflect.get(_, k, O);
657
+ if (k = k.toLowerCase(), k in o && (k = o[k]), !(k in d))
658
+ if (/[+_-]/.test(k)) {
659
+ const V = k.split(/[+_-]/g).map(($) => $.trim());
660
+ d[k] = D(() => V.every(($) => ee(y[$])));
654
661
  } else
655
- u[$] = I(!1);
656
- const L = Reflect.get(h, $, j);
657
- return e ? ee(L) : L;
662
+ d[k] = I(!1);
663
+ const j = Reflect.get(_, k, O);
664
+ return e ? ee(j) : j;
658
665
  }
659
666
  }
660
667
  );
661
- return x;
668
+ return y;
662
669
  }
663
- function go(t, e, n, o = {}) {
664
- var s, l, c;
670
+ function Vo(t, e, n, o = {}) {
671
+ var l, s, u;
665
672
  const {
666
- clone: i = !1,
667
- passive: u = !1,
673
+ clone: c = !1,
674
+ passive: d = !1,
668
675
  eventName: C,
669
- deep: f = !1,
670
- defaultValue: d,
671
- shouldEmit: v
672
- } = o, m = Ye(), x = n || (m == null ? void 0 : m.emit) || ((s = m == null ? void 0 : m.$emit) == null ? void 0 : s.bind(m)) || ((c = (l = m == null ? void 0 : m.proxy) == null ? void 0 : l.$emit) == null ? void 0 : c.bind(m == null ? void 0 : m.proxy));
673
- let h = C;
674
- h = h || `update:${e.toString()}`;
675
- const $ = (E) => i ? typeof i == "function" ? i(E) : fo(E) : E, j = () => Yn(t[e]) ? $(t[e]) : d, L = (E) => {
676
- v ? v(E) && x(h, E) : x(h, E);
676
+ deep: v = !1,
677
+ defaultValue: a,
678
+ shouldEmit: f
679
+ } = o, m = tt(), y = n || (m == null ? void 0 : m.emit) || ((l = m == null ? void 0 : m.$emit) == null ? void 0 : l.bind(m)) || ((u = (s = m == null ? void 0 : m.proxy) == null ? void 0 : s.$emit) == null ? void 0 : u.bind(m == null ? void 0 : m.proxy));
680
+ let _ = C;
681
+ _ = _ || `update:${e.toString()}`;
682
+ const k = (V) => c ? typeof c == "function" ? c(V) : ko(V) : V, O = () => uo(t[e]) ? k(t[e]) : a, j = (V) => {
683
+ f ? f(V) && y(_, V) : y(_, V);
677
684
  };
678
- if (u) {
679
- const E = j(), w = I(E);
680
- let V = !1;
685
+ if (d) {
686
+ const V = O(), $ = I(V);
687
+ let N = !1;
681
688
  return X(
682
689
  () => t[e],
683
- (M) => {
684
- V || (V = !0, w.value = $(M), wt(() => V = !1));
690
+ (H) => {
691
+ N || (N = !0, $.value = k(H), Be(() => N = !1));
685
692
  }
686
693
  ), X(
687
- w,
688
- (M) => {
689
- !V && (M !== t[e] || f) && L(M);
694
+ $,
695
+ (H) => {
696
+ !N && (H !== t[e] || v) && j(H);
690
697
  },
691
- { deep: f }
692
- ), w;
698
+ { deep: v }
699
+ ), $;
693
700
  } else
694
701
  return D({
695
702
  get() {
696
- return j();
703
+ return O();
697
704
  },
698
- set(E) {
699
- L(E);
705
+ set(V) {
706
+ j(V);
700
707
  }
701
708
  });
702
709
  }
703
- const At = Symbol("StateEditorSymbol");
704
- function Co(t) {
710
+ const Ht = Symbol("StateEditorSymbol");
711
+ function No(t) {
705
712
  const e = I(t);
706
- return $e(At, e), {
713
+ return ke(Ht, e), {
707
714
  context: e
708
715
  };
709
716
  }
710
- function lt() {
711
- return Ce(At);
717
+ function dt() {
718
+ return Ce(Ht);
712
719
  }
713
- function xo() {
714
- const t = I(""), e = I("string"), n = I(!1), o = lt();
720
+ function Ro() {
721
+ const t = I(""), e = I("string"), n = I(!1), o = dt();
715
722
  return {
716
723
  editingText: t,
717
724
  editing: n,
718
- toggleEditing(s) {
719
- s && (e.value = s), n.value = !n.value;
725
+ toggleEditing(l) {
726
+ l && (e.value = l), n.value = !n.value;
720
727
  },
721
728
  editingType: e,
722
729
  nodeId: D(() => o.value.nodeId)
723
730
  };
724
731
  }
725
- function yo(t, e) {
732
+ function Ao(t, e) {
726
733
  if (t === "array")
727
734
  return e.length;
728
735
  const n = "newProp";
729
736
  let o = 1;
730
737
  for (; ; ) {
731
- const s = `${n}${o}`;
732
- if (!e[s])
733
- return s;
738
+ const l = `${n}${o}`;
739
+ if (!e[l])
740
+ return l;
734
741
  o++;
735
742
  }
736
743
  }
737
- function bo() {
744
+ function Do() {
738
745
  const t = I({
739
746
  enable: !1,
740
747
  key: "",
741
748
  value: "undefined"
742
749
  });
743
- function e(o, s) {
744
- const l = yo(o, s);
750
+ function e(o, l) {
751
+ const s = Ao(o, l);
745
752
  t.value = {
746
753
  enable: !0,
747
- key: l.toString(),
754
+ key: s.toString(),
748
755
  value: "undefined"
749
756
  };
750
757
  }
@@ -761,7 +768,7 @@ function bo() {
761
768
  draftingNewProp: t
762
769
  };
763
770
  }
764
- const wo = { class: "flex pl5px" }, $o = { class: "w160px py5px" }, ko = /* @__PURE__ */ G({
771
+ const Po = { class: "flex pl5px" }, Mo = { class: "w160px py5px" }, Ho = /* @__PURE__ */ B({
765
772
  __name: "StateFieldEditor",
766
773
  props: {
767
774
  data: {},
@@ -772,13 +779,13 @@ const wo = { class: "flex pl5px" }, $o = { class: "w160px py5px" }, ko = /* @__P
772
779
  },
773
780
  emits: ["enableEditInput", "addNewProp"],
774
781
  setup(t) {
775
- const e = t, n = lt(), { copy: o, isSupported: s } = po(), l = I(!1), c = D(() => Tt(e.data.value)), i = D(() => c.value.value), u = D(() => c.value.customType), C = D(() => i.value === null ? "null" : typeof i.value), f = {
782
+ const e = t, n = dt(), { copy: o, isSupported: l } = wo(), s = I(!1), u = D(() => Rt(e.data.value)), c = D(() => u.value.value), d = D(() => u.value.customType), C = D(() => c.value === null ? "null" : typeof c.value), v = {
776
783
  flat: !0,
777
784
  size: "mini"
778
- }, d = D(() => ({
785
+ }, a = D(() => ({
779
786
  "opacity-0": !e.hovering
780
787
  }));
781
- async function v(x, h = !1) {
788
+ async function f(y, _ = !1) {
782
789
  await R.value.editInspectorState({
783
790
  path: e.data.path || [e.data.key],
784
791
  inspectorId: n.value.inspectorId,
@@ -786,25 +793,25 @@ const wo = { class: "flex pl5px" }, $o = { class: "w160px py5px" }, ko = /* @__P
786
793
  nodeId: n.value.nodeId,
787
794
  state: {
788
795
  newKey: null,
789
- value: qt(x),
796
+ value: Nt(y),
790
797
  type: C.value,
791
- remove: h
798
+ remove: _
792
799
  }
793
800
  }), await R.value.sendInspectorState(n.value.inspectorId);
794
801
  }
795
- function m(x, h) {
796
- const $ = typeof x == "number" ? x + h : BigInt(x) + BigInt(h);
797
- v($);
802
+ function m(y, _) {
803
+ const k = typeof y == "number" ? y + _ : BigInt(y) + BigInt(_);
804
+ f(k);
798
805
  }
799
- return (x, h) => (p(), g("div", wo, [
800
- !e.disableEdit && x.data.editable ? (p(), g(oe, { key: 0 }, [
801
- C.value === "string" || C.value === "number" || C.value === "object" || C.value === "null" ? (p(), g(oe, { key: 0 }, [
802
- q((p(), F(r(ce), we(f, {
803
- class: d.value,
804
- onClick: h[0] || (h[0] = pe(($) => x.$emit("enableEditInput", C.value), ["stop"]))
806
+ return (y, _) => (p(), h("div", Po, [
807
+ !e.disableEdit && y.data.editable ? (p(), h(te, { key: 0 }, [
808
+ C.value === "string" || C.value === "number" || C.value === "object" || C.value === "null" ? (p(), h(te, { key: 0 }, [
809
+ J((p(), z(r(de), we(v, {
810
+ class: a.value,
811
+ onClick: _[0] || (_[0] = fe((k) => y.$emit("enableEditInput", C.value), ["stop"]))
805
812
  }), {
806
- icon: H(() => [
807
- y(r(ne), { icon: "i-material-symbols-edit-rounded" })
813
+ icon: M(() => [
814
+ x(r(se), { icon: "i-material-symbols-edit-rounded" })
808
815
  ]),
809
816
  _: 1
810
817
  }, 16, ["class"])), [
@@ -812,109 +819,109 @@ const wo = { class: "flex pl5px" }, $o = { class: "w160px py5px" }, ko = /* @__P
812
819
  content: "Edit value"
813
820
  }]
814
821
  ]),
815
- C.value === "object" && x.showAddIfNeeded ? q((p(), F(r(ce), we({ key: 0 }, f, {
816
- class: d.value,
817
- onClick: h[1] || (h[1] = pe(($) => x.$emit("addNewProp", Array.isArray(i.value) ? "array" : "object"), ["stop"]))
822
+ C.value === "object" && y.showAddIfNeeded ? J((p(), z(r(de), we({ key: 0 }, v, {
823
+ class: a.value,
824
+ onClick: _[1] || (_[1] = fe((k) => y.$emit("addNewProp", Array.isArray(c.value) ? "array" : "object"), ["stop"]))
818
825
  }), {
819
- icon: H(() => [
820
- y(r(ne), { icon: "i-material-symbols-add-circle-rounded" })
826
+ icon: M(() => [
827
+ x(r(se), { icon: "i-material-symbols-add-circle-rounded" })
821
828
  ]),
822
829
  _: 1
823
830
  }, 16, ["class"])), [
824
831
  [r(Q), {
825
832
  content: "Add new value"
826
833
  }]
827
- ]) : z("", !0)
828
- ], 64)) : z("", !0),
829
- C.value === "boolean" ? (p(), F(r(ce), we({ key: 1 }, f, {
830
- class: d.value,
831
- onClick: h[2] || (h[2] = ($) => v(!i.value))
834
+ ]) : U("", !0)
835
+ ], 64)) : U("", !0),
836
+ C.value === "boolean" ? (p(), z(r(de), we({ key: 1 }, v, {
837
+ class: a.value,
838
+ onClick: _[2] || (_[2] = (k) => f(!c.value))
832
839
  }), {
833
- icon: H(() => [
834
- y(r(ne), {
835
- icon: i.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
840
+ icon: M(() => [
841
+ x(r(se), {
842
+ icon: c.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
836
843
  }, null, 8, ["icon"])
837
844
  ]),
838
845
  _: 1
839
- }, 16, ["class"])) : C.value === "number" || u.value === "bigint" ? (p(), g(oe, { key: 2 }, [
840
- y(r(ce), we(f, {
841
- class: d.value,
842
- onClick: h[3] || (h[3] = pe(($) => m(i.value, 1), ["stop"]))
846
+ }, 16, ["class"])) : C.value === "number" || d.value === "bigint" ? (p(), h(te, { key: 2 }, [
847
+ x(r(de), we(v, {
848
+ class: a.value,
849
+ onClick: _[3] || (_[3] = fe((k) => m(c.value, 1), ["stop"]))
843
850
  }), {
844
- icon: H(() => [
845
- y(r(ne), { icon: "i-carbon-add" })
851
+ icon: M(() => [
852
+ x(r(se), { icon: "i-carbon-add" })
846
853
  ]),
847
854
  _: 1
848
855
  }, 16, ["class"]),
849
- y(r(ce), we(f, {
850
- class: d.value,
851
- onClick: h[4] || (h[4] = pe(($) => m(i.value, -1), ["stop"]))
856
+ x(r(de), we(v, {
857
+ class: a.value,
858
+ onClick: _[4] || (_[4] = fe((k) => m(c.value, -1), ["stop"]))
852
859
  }), {
853
- icon: H(() => [
854
- y(r(ne), { icon: "i-carbon-subtract" })
860
+ icon: M(() => [
861
+ x(r(se), { icon: "i-carbon-subtract" })
855
862
  ]),
856
863
  _: 1
857
864
  }, 16, ["class"])
858
- ], 64)) : z("", !0)
859
- ], 64)) : z("", !0),
860
- !e.disableEdit && x.depth > 0 && x.data.editable ? (p(), F(r(ce), we({ key: 1 }, f, {
861
- class: d.value,
862
- onClick: h[5] || (h[5] = pe(($) => v(i.value, !0), ["stop"]))
865
+ ], 64)) : U("", !0)
866
+ ], 64)) : U("", !0),
867
+ !e.disableEdit && y.depth > 0 && y.data.editable ? (p(), z(r(de), we({ key: 1 }, v, {
868
+ class: a.value,
869
+ onClick: _[5] || (_[5] = fe((k) => f(c.value, !0), ["stop"]))
863
870
  }), {
864
- icon: H(() => [
865
- y(r(ne), { icon: "i-material-symbols-delete-rounded" })
871
+ icon: M(() => [
872
+ x(r(se), { icon: "i-material-symbols-delete-rounded" })
866
873
  ]),
867
874
  _: 1
868
- }, 16, ["class"])) : z("", !0),
869
- y(r(ln), {
875
+ }, 16, ["class"])) : U("", !0),
876
+ x(r(mn), {
870
877
  class: ie({
871
- "opacity-0": !x.hovering && !l.value
878
+ "opacity-0": !y.hovering && !s.value
872
879
  }),
873
880
  "button-props": {
874
881
  flat: !0,
875
882
  size: "mini"
876
883
  },
877
- disabled: !r(s),
878
- "onUpdate:visible": h[8] || (h[8] = ($) => l.value = $)
884
+ disabled: !r(l),
885
+ "onUpdate:visible": _[8] || (_[8] = (k) => s.value = k)
879
886
  }, {
880
- popper: H(() => [
881
- a("div", $o, [
882
- y(r(pt), {
883
- onClick: h[6] || (h[6] = ($) => r(o)(typeof i.value == "object" ? JSON.stringify(i.value) : i.value.toString()))
887
+ popper: M(() => [
888
+ i("div", Mo, [
889
+ x(r(xt), {
890
+ onClick: _[6] || (_[6] = (k) => r(o)(typeof c.value == "object" ? JSON.stringify(c.value) : c.value.toString()))
884
891
  }, {
885
- icon: H(() => [
886
- y(r(ne), {
892
+ icon: M(() => [
893
+ x(r(se), {
887
894
  icon: "i-material-symbols-copy-all-rounded",
888
895
  class: "mt4px"
889
896
  }),
890
- te(" Copy Value ")
897
+ ne(" Copy Value ")
891
898
  ]),
892
899
  _: 1
893
900
  }),
894
- y(r(pt), {
895
- onClick: h[7] || (h[7] = () => {
896
- r(o)(x.data.key);
901
+ x(r(xt), {
902
+ onClick: _[7] || (_[7] = () => {
903
+ r(o)(y.data.key);
897
904
  })
898
905
  }, {
899
- icon: H(() => [
900
- y(r(ne), {
906
+ icon: M(() => [
907
+ x(r(se), {
901
908
  icon: "i-material-symbols-copy-all-rounded",
902
909
  class: "mt4px"
903
910
  }),
904
- te(" Copy Path ")
911
+ ne(" Copy Path ")
905
912
  ]),
906
913
  _: 1
907
914
  })
908
915
  ])
909
916
  ]),
910
- "button-icon": H(() => [
911
- y(r(ne), { icon: "i-material-symbols:more-vert" })
917
+ "button-icon": M(() => [
918
+ x(r(se), { icon: "i-material-symbols:more-vert" })
912
919
  ]),
913
920
  _: 1
914
921
  }, 8, ["class", "disabled"])
915
922
  ]));
916
923
  }
917
- }), Io = { class: "flex-inline items-center gap4px" }, Ke = /* @__PURE__ */ G({
924
+ }), Lo = { class: "flex-inline items-center gap4px" }, Ye = /* @__PURE__ */ B({
918
925
  __name: "StateFieldInputEditor",
919
926
  props: {
920
927
  modelValue: {},
@@ -924,41 +931,41 @@ const wo = { class: "flex pl5px" }, $o = { class: "w160px py5px" }, ko = /* @__P
924
931
  },
925
932
  emits: ["cancel", "submit", "update:modelValue"],
926
933
  setup(t, { emit: e }) {
927
- const n = t, o = e, s = D(() => n.customType === "date" ? "datetime-local" : ""), { escape: l, enter: c } = _o();
928
- $t(() => {
929
- l.value ? o("cancel") : c.value && o("submit");
934
+ const n = t, o = e, l = D(() => n.customType === "date" ? "datetime-local" : ""), { escape: s, enter: u } = Eo();
935
+ nt(() => {
936
+ s.value ? o("cancel") : u.value && o("submit");
930
937
  });
931
- const i = go(n, "modelValue", o);
932
- function u(d) {
938
+ const c = Vo(n, "modelValue", o);
939
+ function d(a) {
933
940
  try {
934
- return Oe(d, n.customType), !0;
941
+ return ze(a, n.customType), !0;
935
942
  } catch {
936
943
  return !1;
937
944
  }
938
945
  }
939
946
  const C = I(!1);
940
- return X(i, un(() => {
941
- C.value = !u(i.value);
942
- }, 300)), (d, v) => (p(), g("span", Io, [
943
- y(r(We), {
944
- modelValue: r(i),
945
- "onUpdate:modelValue": v[0] || (v[0] = (m) => ze(i) ? i.value = m : null),
946
- type: s.value,
947
+ return X(c, bn(() => {
948
+ C.value = !d(c.value);
949
+ }, 300)), (a, f) => (p(), h("span", Lo, [
950
+ x(r(Xe), {
951
+ modelValue: r(c),
952
+ "onUpdate:modelValue": f[0] || (f[0] = (m) => Ge(c) ? c.value = m : null),
953
+ type: l.value,
947
954
  variant: C.value ? "warning" : "normal",
948
- class: ie(["h25px px4px", d.customType === "date" ? "w240px" : "w120px"]),
949
- "auto-focus": d.autoFocus,
950
- onClick: v[1] || (v[1] = pe(() => {
955
+ class: ie(["h25px px4px", a.customType === "date" ? "w240px" : "w120px"]),
956
+ "auto-focus": a.autoFocus,
957
+ onClick: f[1] || (f[1] = fe(() => {
951
958
  }, ["stop"]))
952
959
  }, null, 8, ["modelValue", "type", "variant", "class", "auto-focus"]),
953
- d.showActions ? (p(), g(oe, { key: 0 }, [
954
- q((p(), F(r(ce), {
960
+ a.showActions ? (p(), h(te, { key: 0 }, [
961
+ J((p(), z(r(de), {
955
962
  size: "mini",
956
963
  flat: "",
957
964
  class: "p2px!",
958
- onClick: v[2] || (v[2] = pe((m) => d.$emit("cancel"), ["stop"]))
965
+ onClick: f[2] || (f[2] = fe((m) => a.$emit("cancel"), ["stop"]))
959
966
  }, {
960
- icon: H(() => [
961
- y(r(ne), { icon: "i-material-symbols-cancel" })
967
+ icon: M(() => [
968
+ x(r(se), { icon: "i-material-symbols-cancel" })
962
969
  ]),
963
970
  _: 1
964
971
  })), [
@@ -966,7 +973,7 @@ const wo = { class: "flex pl5px" }, $o = { class: "w160px py5px" }, ko = /* @__P
966
973
  content: "Esc to cancel"
967
974
  }]
968
975
  ]),
969
- C.value ? q((p(), F(r(ne), {
976
+ C.value ? J((p(), z(r(se), {
970
977
  key: 1,
971
978
  icon: "i-material-symbols-warning",
972
979
  class: "color-warning-500 dark:color-warning-300"
@@ -974,15 +981,15 @@ const wo = { class: "flex pl5px" }, $o = { class: "w160px py5px" }, ko = /* @__P
974
981
  [r(Q), {
975
982
  content: "Invalid value"
976
983
  }]
977
- ]) : q((p(), F(r(ce), {
984
+ ]) : J((p(), z(r(de), {
978
985
  key: 0,
979
986
  size: "mini",
980
987
  flat: "",
981
988
  class: "p2px!",
982
- onClick: v[3] || (v[3] = pe((m) => d.$emit("submit"), ["stop"]))
989
+ onClick: f[3] || (f[3] = fe((m) => a.$emit("submit"), ["stop"]))
983
990
  }, {
984
- icon: H(() => [
985
- y(r(ne), { icon: "i-material-symbols-save" })
991
+ icon: M(() => [
992
+ x(r(se), { icon: "i-material-symbols-save" })
986
993
  ]),
987
994
  _: 1
988
995
  })), [
@@ -990,67 +997,67 @@ const wo = { class: "flex pl5px" }, $o = { class: "w160px py5px" }, ko = /* @__P
990
997
  content: "Enter to submit change"
991
998
  }]
992
999
  ])
993
- ], 64)) : z("", !0)
1000
+ ], 64)) : U("", !0)
994
1001
  ]));
995
1002
  }
996
- }), at = /* @__PURE__ */ G({
1003
+ }), pt = /* @__PURE__ */ B({
997
1004
  __name: "ToggleExpanded",
998
1005
  props: {
999
1006
  value: { type: Boolean }
1000
1007
  },
1001
1008
  setup(t) {
1002
- return (e, n) => (p(), g("i", {
1009
+ return (e, n) => (p(), h("i", {
1003
1010
  class: ie(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base", {
1004
1011
  "transform rotate-90": e.value
1005
1012
  }])
1006
1013
  }, null, 2));
1007
1014
  }
1008
- }), Rt = "expanded-state";
1015
+ }), Lt = "expanded-state";
1009
1016
  function ve(t = "") {
1010
1017
  const e = I([]);
1011
- return $e(`${Rt}-${t}`, e), {
1018
+ return ke(`${Lt}-${t}`, e), {
1012
1019
  expanded: e
1013
1020
  };
1014
1021
  }
1015
- function it(t = "") {
1016
- const e = Ce(`${Rt}-${t}`, I([]));
1022
+ function ft(t = "") {
1023
+ const e = Ce(`${Lt}-${t}`, I([]));
1017
1024
  function n(o) {
1018
- const s = e.value.indexOf(o);
1019
- s === -1 ? e.value.push(o) : e.value.splice(s, 1);
1025
+ const l = e.value.indexOf(o);
1026
+ l === -1 ? e.value.push(o) : e.value.splice(l, 1);
1020
1027
  }
1021
1028
  return {
1022
1029
  expanded: e,
1023
1030
  toggleExpanded: n
1024
1031
  };
1025
1032
  }
1026
- function To(t, e = {}) {
1033
+ function jo(t, e = {}) {
1027
1034
  const {
1028
1035
  enter: n = () => {
1029
1036
  },
1030
1037
  leave: o = () => {
1031
1038
  },
1032
- initial: s = !1
1033
- } = e, l = I(s);
1039
+ initial: l = !1
1040
+ } = e, s = I(l);
1034
1041
  return he(t, "mouseenter", () => {
1035
- l.value = !0, n();
1042
+ s.value = !0, n();
1036
1043
  }), he(t, "mouseleave", () => {
1037
- l.value = !1, o();
1044
+ s.value = !1, o();
1038
1045
  }), {
1039
- isHovering: l
1046
+ isHovering: s
1040
1047
  };
1041
1048
  }
1042
- const Dt = (t) => (Xe("data-v-e1338684"), t = t(), Qe(), t), So = {
1049
+ const jt = (t) => (ot("data-v-e1338684"), t = t(), st(), t), Oo = {
1043
1050
  key: 1,
1044
1051
  pl5: ""
1045
- }, Eo = {
1052
+ }, Uo = {
1046
1053
  op70: "",
1047
1054
  class: "whitespace-nowrap"
1048
- }, Vo = /* @__PURE__ */ Dt(() => /* @__PURE__ */ a("span", { mx1: "" }, ":", -1)), No = ["innerHTML"], Ao = { key: 0 }, Ro = {
1055
+ }, zo = /* @__PURE__ */ jt(() => /* @__PURE__ */ i("span", { mx1: "" }, ":", -1)), Bo = ["innerHTML"], Zo = { key: 0 }, Fo = {
1049
1056
  "overflow-hidden": "",
1050
1057
  "text-ellipsis": "",
1051
1058
  "whitespace-nowrap": "",
1052
1059
  "state-key": ""
1053
- }, Do = /* @__PURE__ */ Dt(() => /* @__PURE__ */ a("span", { "mx-1": "" }, ":", -1)), Ct = 30, Po = /* @__PURE__ */ G({
1060
+ }, Go = /* @__PURE__ */ jt(() => /* @__PURE__ */ i("span", { "mx-1": "" }, ":", -1)), St = 30, Ko = /* @__PURE__ */ B({
1054
1061
  __name: "StateFieldViewer",
1055
1062
  props: {
1056
1063
  data: {},
@@ -1059,170 +1066,170 @@ const Dt = (t) => (Xe("data-v-e1338684"), t = t(), Qe(), t), So = {
1059
1066
  expandedStateId: {}
1060
1067
  },
1061
1068
  setup(t) {
1062
- const e = t, n = I(Ct), o = D(() => Xt(e.data.value, !1, {
1069
+ const e = t, n = I(St), o = D(() => un(e.data.value, !1, {
1063
1070
  customClass: {
1064
1071
  string: "max-w-120 truncate"
1065
1072
  }
1066
- })), s = D(() => dt(e.data.value)), l = D(() => Tt(e.data.value)), { expanded: c, toggleExpanded: i } = it(e.expandedStateId ?? ""), u = D(() => {
1067
- var _;
1068
- return s.value === "custom" ? `${((_ = e.data.value._custom) == null ? void 0 : _.type) ?? "string"}-custom-state` : "";
1073
+ })), l = D(() => Ct(e.data.value)), s = D(() => Rt(e.data.value)), { expanded: u, toggleExpanded: c } = ft(e.expandedStateId ?? ""), d = D(() => {
1074
+ var g;
1075
+ return l.value === "custom" ? `${((g = e.data.value._custom) == null ? void 0 : g.type) ?? "string"}-custom-state` : "";
1069
1076
  }), C = D(() => {
1070
- const { value: _ } = l.value;
1071
- return vt(_) ? _.length : ht(_) ? Object.keys(_).length : 0;
1072
- }), f = D(() => e.data.path || [e.data.key]), d = D(() => f.value[f.value.length - 1]), v = D(() => {
1073
- var U, se, le, re, me, _e, Pe;
1074
- const _ = ["Reactive"], A = ((se = (U = e.data) == null ? void 0 : U._custom) == null ? void 0 : se.stateTypeName) || ((le = e.data) == null ? void 0 : le.stateTypeName);
1075
- if (_.includes(A))
1077
+ const { value: g } = s.value;
1078
+ return bt(g) ? g.length : $t(g) ? Object.keys(g).length : 0;
1079
+ }), v = D(() => e.data.path || [e.data.key]), a = D(() => v.value[v.value.length - 1]), f = D(() => {
1080
+ var F, le, re, ce, me, _e, Le;
1081
+ const g = ["Reactive"], A = ((le = (F = e.data) == null ? void 0 : F._custom) == null ? void 0 : le.stateTypeName) || ((re = e.data) == null ? void 0 : re.stateTypeName);
1082
+ if (g.includes(A))
1076
1083
  return A;
1077
- if ((me = (re = e.data.value) == null ? void 0 : re.fields) != null && me.abstract)
1084
+ if ((me = (ce = e.data.value) == null ? void 0 : ce.fields) != null && me.abstract)
1078
1085
  return "";
1079
1086
  {
1080
- const Me = (Pe = (_e = e.data.value) == null ? void 0 : _e._custom) == null ? void 0 : Pe.type, He = s.value === "custom" && !Me ? `"${o.value}"` : o.value === "" ? '""' : o.value, Le = s.value === "custom" && Me === "ref" ? dt(He) : s.value, Ge = s.value === "string" ? "select-text" : "", Ie = `<span class="${Le}-state-type flex whitespace-nowrap ${Ge}">${He}</span>`;
1081
- return A ? `${Ie} <span class="text-gray-500">(${A})</span>` : Ie;
1087
+ const je = (Le = (_e = e.data.value) == null ? void 0 : _e._custom) == null ? void 0 : Le.type, Oe = l.value === "custom" && !je ? `"${o.value}"` : o.value === "" ? '""' : o.value, Ue = l.value === "custom" && je === "ref" ? Ct(Oe) : l.value, We = l.value === "string" ? "select-text" : "", Ee = `<span class="${Ue}-state-type flex whitespace-nowrap ${We}">${Oe}</span>`;
1088
+ return A ? `${Ee} <span class="text-gray-500">(${A})</span>` : Ee;
1082
1089
  }
1083
1090
  }), m = D(() => {
1084
- const { value: _, inherit: A, customType: U } = l.value, se = U === "set";
1085
- let le = [];
1086
- return vt(_) ? _.slice(0, n.value).map((me, _e) => ({
1091
+ const { value: g, inherit: A, customType: F } = s.value, le = F === "set";
1092
+ let re = [];
1093
+ return bt(g) ? g.slice(0, n.value).map((me, _e) => ({
1087
1094
  key: _e.toString(),
1088
- path: [...f.value, _e.toString()],
1095
+ path: [...v.value, _e.toString()],
1089
1096
  value: me,
1090
1097
  ...A,
1091
- editable: e.data.editable && !se,
1098
+ editable: e.data.editable && !le,
1092
1099
  creating: !1
1093
- })) : (ht(_) && (le = Object.keys(_).slice(0, n.value).map((re) => ({
1094
- key: re,
1095
- path: [...f.value, re],
1096
- value: _[re],
1100
+ })) : ($t(g) && (re = Object.keys(g).slice(0, n.value).map((ce) => ({
1101
+ key: ce,
1102
+ path: [...v.value, ce],
1103
+ value: g[ce],
1097
1104
  ...A,
1098
- editable: e.data.editable && !se,
1105
+ editable: e.data.editable && !le,
1099
1106
  creating: !1
1100
- })), s.value !== "custom" && (le = St(le))), le === e.data.value ? [] : le);
1101
- }), x = D(() => m.value.length > 0), h = I(), $ = lt(), { isHovering: j } = To(() => h.value), { editingType: L, editing: E, editingText: w, toggleEditing: V, nodeId: M } = xo();
1102
- X(() => E.value, (_) => {
1103
- if (_) {
1104
- const { value: A } = l.value;
1105
- w.value = Qt(A, l.value.customType);
1107
+ })), l.value !== "custom" && (re = At(re))), re === e.data.value ? [] : re);
1108
+ }), y = D(() => m.value.length > 0), _ = I(), k = dt(), { isHovering: O } = jo(() => _.value), { editingType: j, editing: V, editingText: $, toggleEditing: N, nodeId: H } = Ro();
1109
+ X(() => V.value, (g) => {
1110
+ if (g) {
1111
+ const { value: A } = s.value;
1112
+ $.value = cn(A, s.value.customType);
1106
1113
  } else
1107
- w.value = "";
1114
+ $.value = "";
1108
1115
  });
1109
1116
  async function K() {
1110
- const _ = e.data;
1117
+ const g = e.data;
1111
1118
  await R.value.editInspectorState({
1112
- path: f.value,
1113
- inspectorId: $.value.inspectorId,
1114
- type: _.stateType,
1115
- nodeId: M.value,
1119
+ path: v.value,
1120
+ inspectorId: k.value.inspectorId,
1121
+ type: g.stateType,
1122
+ nodeId: H.value,
1116
1123
  state: {
1117
1124
  newKey: null,
1118
- type: L.value,
1119
- value: Oe(w.value, l.value.customType)
1125
+ type: j.value,
1126
+ value: ze($.value, s.value.customType)
1120
1127
  }
1121
- }), await R.value.sendInspectorState($.value.inspectorId), V();
1128
+ }), await R.value.sendInspectorState(k.value.inspectorId), N();
1122
1129
  }
1123
- const { addNewProp: B, draftingNewProp: T, resetDrafting: P } = bo();
1124
- function b(_) {
1130
+ const { addNewProp: Z, draftingNewProp: T, resetDrafting: P } = Do();
1131
+ function b(g) {
1125
1132
  const A = `${e.depth}-${e.index}`;
1126
- c.value.includes(A) || i(A), B(_, l.value.value);
1133
+ u.value.includes(A) || c(A), Z(g, s.value.value);
1127
1134
  }
1128
- async function k() {
1129
- const _ = e.data;
1135
+ async function S() {
1136
+ const g = e.data;
1130
1137
  await R.value.editInspectorState({
1131
- path: [...f.value, T.value.key],
1132
- inspectorId: $.value.inspectorId,
1133
- type: _.stateType,
1134
- nodeId: M.value,
1138
+ path: [...v.value, T.value.key],
1139
+ inspectorId: k.value.inspectorId,
1140
+ type: g.stateType,
1141
+ nodeId: H.value,
1135
1142
  state: {
1136
1143
  newKey: T.value.key,
1137
- type: typeof Oe(T.value.value),
1138
- value: Oe(T.value.value)
1144
+ type: typeof ze(T.value.value),
1145
+ value: ze(T.value.value)
1139
1146
  }
1140
- }), await R.value.sendInspectorState($.value.inspectorId), P();
1147
+ }), await R.value.sendInspectorState(k.value.inspectorId), P();
1141
1148
  }
1142
- return (_, A) => (p(), g("div", null, [
1143
- a("div", {
1149
+ return (g, A) => (p(), h("div", null, [
1150
+ i("div", {
1144
1151
  ref_key: "containerRef",
1145
- ref: h,
1146
- class: ie(["font-state-field flex items-center text-3.5", [x.value && "cursor-pointer hover:bg-active"]]),
1147
- style: ke({ paddingLeft: `${_.depth * 15 + 4}px` }),
1148
- onClick: A[1] || (A[1] = (U) => r(i)(`${_.depth}-${_.index}`))
1152
+ ref: _,
1153
+ class: ie(["font-state-field flex items-center text-3.5", [y.value && "cursor-pointer hover:bg-active"]]),
1154
+ style: Ie({ paddingLeft: `${g.depth * 15 + 4}px` }),
1155
+ onClick: A[1] || (A[1] = (F) => r(c)(`${g.depth}-${g.index}`))
1149
1156
  }, [
1150
- x.value ? (p(), F(at, {
1157
+ y.value ? (p(), z(pt, {
1151
1158
  key: 0,
1152
- value: r(c).includes(`${_.depth}-${_.index}`)
1153
- }, null, 8, ["value"])) : (p(), g("span", So)),
1154
- a("span", Eo, ae(d.value), 1),
1155
- Vo,
1156
- r(E) ? (p(), F(Ke, {
1159
+ value: r(u).includes(`${g.depth}-${g.index}`)
1160
+ }, null, 8, ["value"])) : (p(), h("span", Oo)),
1161
+ i("span", Uo, oe(a.value), 1),
1162
+ zo,
1163
+ r(V) ? (p(), z(Ye, {
1157
1164
  key: 2,
1158
- modelValue: r(w),
1159
- "onUpdate:modelValue": A[0] || (A[0] = (U) => ze(w) ? w.value = U : null),
1165
+ modelValue: r($),
1166
+ "onUpdate:modelValue": A[0] || (A[0] = (F) => Ge($) ? $.value = F : null),
1160
1167
  class: "mr-1",
1161
- "custom-type": l.value.customType,
1162
- onCancel: r(V),
1168
+ "custom-type": s.value.customType,
1169
+ onCancel: r(N),
1163
1170
  onSubmit: K
1164
- }, null, 8, ["modelValue", "custom-type", "onCancel"])) : z("", !0),
1165
- a("span", {
1166
- class: ie([u.value, "flex whitespace-nowrap"])
1171
+ }, null, 8, ["modelValue", "custom-type", "onCancel"])) : U("", !0),
1172
+ i("span", {
1173
+ class: ie([d.value, "flex whitespace-nowrap"])
1167
1174
  }, [
1168
- a("span", {
1175
+ i("span", {
1169
1176
  class: "flex",
1170
- innerHTML: v.value
1171
- }, null, 8, No)
1177
+ innerHTML: f.value
1178
+ }, null, 8, Bo)
1172
1179
  ], 2),
1173
- y(ko, {
1174
- hovering: r(j),
1175
- "disable-edit": r($).disableEdit || r(E),
1176
- data: _.data,
1177
- depth: _.depth,
1178
- onEnableEditInput: r(V),
1180
+ x(Ho, {
1181
+ hovering: r(O),
1182
+ "disable-edit": r(k).disableEdit || r(V),
1183
+ data: g.data,
1184
+ depth: g.depth,
1185
+ onEnableEditInput: r(N),
1179
1186
  onAddNewProp: b
1180
1187
  }, null, 8, ["hovering", "disable-edit", "data", "depth", "onEnableEditInput"])
1181
1188
  ], 6),
1182
- x.value && r(c).includes(`${_.depth}-${_.index}`) ? (p(), g("div", Ao, [
1183
- y(Pt, {
1189
+ y.value && r(u).includes(`${g.depth}-${g.index}`) ? (p(), h("div", Zo, [
1190
+ x(Ot, {
1184
1191
  data: m.value,
1185
- depth: _.depth,
1186
- index: _.index
1192
+ depth: g.depth,
1193
+ index: g.index
1187
1194
  }, null, 8, ["data", "depth", "index"]),
1188
- C.value > n.value ? q((p(), F(r(ce), {
1195
+ C.value > n.value ? J((p(), z(r(de), {
1189
1196
  key: 0,
1190
1197
  flat: "",
1191
1198
  size: "mini",
1192
1199
  class: "ml-4",
1193
- onClick: A[2] || (A[2] = (U) => n.value += Ct)
1200
+ onClick: A[2] || (A[2] = (F) => n.value += St)
1194
1201
  }, {
1195
- icon: H(() => [
1196
- y(r(ne), { icon: "i-material-symbols-more-horiz" })
1202
+ icon: M(() => [
1203
+ x(r(se), { icon: "i-material-symbols-more-horiz" })
1197
1204
  ]),
1198
1205
  _: 1
1199
1206
  })), [
1200
1207
  [r(Q), "Show more"]
1201
- ]) : z("", !0),
1202
- r(T).enable ? (p(), g("div", {
1208
+ ]) : U("", !0),
1209
+ r(T).enable ? (p(), h("div", {
1203
1210
  key: 1,
1204
- style: ke({ paddingLeft: `${(_.depth + 1) * 15 + 4}px` })
1211
+ style: Ie({ paddingLeft: `${(g.depth + 1) * 15 + 4}px` })
1205
1212
  }, [
1206
- a("span", Ro, [
1207
- y(Ke, {
1213
+ i("span", Fo, [
1214
+ x(Ye, {
1208
1215
  modelValue: r(T).key,
1209
- "onUpdate:modelValue": A[3] || (A[3] = (U) => r(T).key = U),
1216
+ "onUpdate:modelValue": A[3] || (A[3] = (F) => r(T).key = F),
1210
1217
  "show-actions": !1
1211
1218
  }, null, 8, ["modelValue"])
1212
1219
  ]),
1213
- Do,
1214
- y(Ke, {
1220
+ Go,
1221
+ x(Ye, {
1215
1222
  modelValue: r(T).value,
1216
- "onUpdate:modelValue": A[4] || (A[4] = (U) => r(T).value = U),
1223
+ "onUpdate:modelValue": A[4] || (A[4] = (F) => r(T).value = F),
1217
1224
  "auto-focus": !1,
1218
1225
  onCancel: r(P),
1219
- onSubmit: k
1226
+ onSubmit: S
1220
1227
  }, null, 8, ["modelValue", "onCancel"])
1221
- ], 4)) : z("", !0)
1222
- ])) : z("", !0)
1228
+ ], 4)) : U("", !0)
1229
+ ])) : U("", !0)
1223
1230
  ]));
1224
1231
  }
1225
- }), Mo = /* @__PURE__ */ ye(Po, [["__scopeId", "data-v-e1338684"]]), Pt = /* @__PURE__ */ G({
1232
+ }), Wo = /* @__PURE__ */ ye(Ko, [["__scopeId", "data-v-e1338684"]]), Ot = /* @__PURE__ */ B({
1226
1233
  __name: "ChildStateViewer",
1227
1234
  props: {
1228
1235
  data: {},
@@ -1231,24 +1238,24 @@ const Dt = (t) => (Xe("data-v-e1338684"), t = t(), Qe(), t), So = {
1231
1238
  expandedStateId: { default: "" }
1232
1239
  },
1233
1240
  setup(t) {
1234
- return (e, n) => (p(), g("div", null, [
1235
- (p(!0), g(oe, null, fe(e.data, (o, s) => (p(), g("div", { key: s }, [
1236
- y(Mo, {
1241
+ return (e, n) => (p(), h("div", null, [
1242
+ (p(!0), h(te, null, ae(e.data, (o, l) => (p(), h("div", { key: l }, [
1243
+ x(Wo, {
1237
1244
  data: o,
1238
1245
  depth: e.depth + 1,
1239
- index: `${e.index}-${s}`,
1246
+ index: `${e.index}-${l}`,
1240
1247
  "expanded-state-id": e.expandedStateId
1241
1248
  }, null, 8, ["data", "depth", "index", "expanded-state-id"])
1242
1249
  ]))), 128))
1243
1250
  ]));
1244
1251
  }
1245
- }), Ho = ["onClick"], Lo = {
1252
+ }), qo = ["onClick"], Jo = {
1246
1253
  key: 1,
1247
1254
  pl5: ""
1248
- }, Oo = {
1255
+ }, Yo = {
1249
1256
  "font-state-field": "",
1250
1257
  "text-3.5": ""
1251
- }, jo = { key: 0 }, Ne = /* @__PURE__ */ G({
1258
+ }, Xo = { key: 0 }, Pe = /* @__PURE__ */ B({
1252
1259
  __name: "RootStateViewer",
1253
1260
  props: {
1254
1261
  data: {},
@@ -1266,88 +1273,88 @@ const Dt = (t) => (Xe("data-v-e1338684"), t = t(), Qe(), t), So = {
1266
1273
  disableEdit: e.disableEdit
1267
1274
  };
1268
1275
  }
1269
- const { context: o } = Co(n());
1270
- $t(() => {
1276
+ const { context: o } = No(n());
1277
+ nt(() => {
1271
1278
  o.value = n();
1272
1279
  });
1273
- const { expanded: s, toggleExpanded: l } = it(e.expandedStateId);
1274
- return (c, i) => (p(), g("div", null, [
1275
- (p(!0), g(oe, null, fe(c.data, (u, C, f) => (p(), g("div", { key: f }, [
1276
- a("div", {
1277
- class: ie(["flex items-center", [(u == null ? void 0 : u.length) && "cursor-pointer hover:bg-active"]]),
1278
- onClick: (d) => r(l)(`${f}`)
1280
+ const { expanded: l, toggleExpanded: s } = ft(e.expandedStateId);
1281
+ return (u, c) => (p(), h("div", null, [
1282
+ (p(!0), h(te, null, ae(u.data, (d, C, v) => (p(), h("div", { key: v }, [
1283
+ i("div", {
1284
+ class: ie(["flex items-center", [(d == null ? void 0 : d.length) && "cursor-pointer hover:bg-active"]]),
1285
+ onClick: (a) => r(s)(`${v}`)
1279
1286
  }, [
1280
- u != null && u.length ? (p(), F(at, {
1287
+ d != null && d.length ? (p(), z(pt, {
1281
1288
  key: 0,
1282
- value: r(s).includes(`${f}`)
1283
- }, null, 8, ["value"])) : (p(), g("span", Lo)),
1284
- a("span", Oo, ae(C), 1)
1285
- ], 10, Ho),
1286
- u != null && u.length && r(s).includes(`${f}`) ? (p(), g("div", jo, [
1287
- y(Pt, {
1288
- data: u,
1289
- index: `${f}`,
1290
- "expanded-state-id": c.expandedStateId
1289
+ value: r(l).includes(`${v}`)
1290
+ }, null, 8, ["value"])) : (p(), h("span", Jo)),
1291
+ i("span", Yo, oe(C), 1)
1292
+ ], 10, qo),
1293
+ d != null && d.length && r(l).includes(`${v}`) ? (p(), h("div", Xo, [
1294
+ x(Ot, {
1295
+ data: d,
1296
+ index: `${v}`,
1297
+ "expanded-state-id": u.expandedStateId
1291
1298
  }, null, 8, ["data", "index", "expanded-state-id"])
1292
- ])) : z("", !0)
1299
+ ])) : U("", !0)
1293
1300
  ]))), 128))
1294
1301
  ]));
1295
1302
  }
1296
1303
  });
1297
- function zo(t, e) {
1304
+ function Qo(t, e) {
1298
1305
  const n = new Date(t);
1299
1306
  return `${n.toString().match(/\d\d:\d\d:\d\d/)[0]}${e === "ms" ? `.${String(n.getMilliseconds()).padStart(3, "0")}` : ""}`;
1300
1307
  }
1301
- function Uo(t, e) {
1302
- const n = /* @__PURE__ */ new Map(), o = Ht(t, e.toLowerCase(), n, 0);
1308
+ function e1(t, e) {
1309
+ const n = /* @__PURE__ */ new Map(), o = zt(t, e.toLowerCase(), n, 0);
1303
1310
  return n.clear(), o;
1304
1311
  }
1305
- const Mt = 10;
1306
- function Ht(t, e, n, o) {
1307
- if (o > Mt)
1312
+ const Ut = 10;
1313
+ function zt(t, e, n, o) {
1314
+ if (o > Ut)
1308
1315
  return !1;
1309
- let s = !1;
1310
- const l = Object.keys(t);
1311
- let c, i;
1312
- for (let u = 0; u < l.length && (c = l[u], i = t[c], s = Lt(e, c, i, n, o + 1), !s); u++)
1316
+ let l = !1;
1317
+ const s = Object.keys(t);
1318
+ let u, c;
1319
+ for (let d = 0; d < s.length && (u = s[d], c = t[u], l = Bt(e, u, c, n, o + 1), !l); d++)
1313
1320
  ;
1314
- return s;
1321
+ return l;
1315
1322
  }
1316
- function Lt(t, e, n, o, s) {
1317
- let l = !1, c;
1318
- return e === "_custom" && (e = n.display, n = n.value), (c = Bo(n)) && (n = c), e && xt(e, t) ? (l = !0, o.set(n, !0)) : o.has(n) ? l = o.get(n) : Array.isArray(n) ? (o.set(n, null), l = Zo(n, t, o, s), o.set(n, l)) : en(n) ? (o.set(n, null), l = Ht(n, t, o, s), o.set(n, l)) : xt(n, t) && (l = !0, o.set(n, !0)), l;
1323
+ function Bt(t, e, n, o, l) {
1324
+ let s = !1, u;
1325
+ return e === "_custom" && (e = n.display, n = n.value), (u = t1(n)) && (n = u), e && Tt(e, t) ? (s = !0, o.set(n, !0)) : o.has(n) ? s = o.get(n) : Array.isArray(n) ? (o.set(n, null), s = n1(n, t, o, l), o.set(n, s)) : dn(n) ? (o.set(n, null), s = zt(n, t, o, l), o.set(n, s)) : Tt(n, t) && (s = !0, o.set(n, !0)), s;
1319
1326
  }
1320
- function xt(t, e) {
1327
+ function Tt(t, e) {
1321
1328
  return `${t}`.toLowerCase().includes(e);
1322
1329
  }
1323
- function Bo(t) {
1324
- return t === null ? "null" : t === tn ? "undefined" : t === nn ? "NaN" : t === on ? "Infinity" : t === sn ? "-Infinity" : !1;
1330
+ function t1(t) {
1331
+ return t === null ? "null" : t === pn ? "undefined" : t === fn ? "NaN" : t === vn ? "Infinity" : t === hn ? "-Infinity" : !1;
1325
1332
  }
1326
- function Zo(t, e, n, o) {
1327
- if (o > Mt)
1333
+ function n1(t, e, n, o) {
1334
+ if (o > Ut)
1328
1335
  return !1;
1329
- let s = !1, l;
1330
- for (let c = 0; c < t.length && (l = t[c], s = Lt(e, null, l, n, o + 1), !s); c++)
1336
+ let l = !1, s;
1337
+ for (let u = 0; u < t.length && (s = t[u], l = Bt(e, null, s, n, o + 1), !l); u++)
1331
1338
  ;
1332
- return s;
1339
+ return l;
1333
1340
  }
1334
- function yt(t) {
1341
+ function Et(t) {
1335
1342
  return t.toString(16).padStart(6, "0");
1336
1343
  }
1337
- const Fo = /* @__PURE__ */ G({
1344
+ const Zt = /* @__PURE__ */ B({
1338
1345
  __name: "NodeTag",
1339
1346
  props: {
1340
1347
  tag: {}
1341
1348
  },
1342
1349
  setup(t) {
1343
- return (e, n) => q((p(), g("span", {
1344
- style: ke({
1345
- color: `#${r(yt)(e.tag.textColor)}`,
1346
- backgroundColor: `#${r(yt)(e.tag.backgroundColor)}`
1350
+ return (e, n) => J((p(), h("span", {
1351
+ style: Ie({
1352
+ color: `#${r(Et)(e.tag.textColor)}`,
1353
+ backgroundColor: `#${r(Et)(e.tag.backgroundColor)}`
1347
1354
  }),
1348
1355
  class: "ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"
1349
1356
  }, [
1350
- te(ae(e.tag.label), 1)
1357
+ ne(oe(e.tag.label), 1)
1351
1358
  ], 4)), [
1352
1359
  [r(Q), {
1353
1360
  content: e.tag.tooltip,
@@ -1355,15 +1362,15 @@ const Fo = /* @__PURE__ */ G({
1355
1362
  }]
1356
1363
  ]);
1357
1364
  }
1358
- }), Ot = Symbol("SelectedSymbolKey");
1359
- function Go() {
1365
+ }), Ft = Symbol("SelectedSymbolKey");
1366
+ function o1() {
1360
1367
  const t = I("");
1361
- return $e(Ot, t), {
1368
+ return ke(Ft, t), {
1362
1369
  selected: t
1363
1370
  };
1364
1371
  }
1365
- function Ko() {
1366
- const t = Ce(Ot, I(""));
1372
+ function s1() {
1373
+ const t = Ce(Ft, I(""));
1367
1374
  function e(n) {
1368
1375
  t.value = n;
1369
1376
  }
@@ -1372,24 +1379,24 @@ function Ko() {
1372
1379
  select: e
1373
1380
  };
1374
1381
  }
1375
- const Wo = ["onClick", "onDblclick"], Jo = {
1382
+ const l1 = ["onClick", "onDblclick"], a1 = {
1376
1383
  key: 1,
1377
1384
  pl5: ""
1378
- }, qo = {
1385
+ }, i1 = {
1379
1386
  "font-state-field": "",
1380
1387
  "text-3.5": ""
1381
- }, Yo = {
1388
+ }, r1 = {
1382
1389
  key: 0,
1383
1390
  class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
1384
- }, Xo = {
1391
+ }, u1 = {
1385
1392
  "group-hover:text-white": "",
1386
1393
  class: "ws-nowrap [.active_&]:text-white"
1387
- }, Qo = {
1394
+ }, c1 = {
1388
1395
  key: 1,
1389
1396
  class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
1390
- }, e1 = { key: 0 }, Ae = /* @__PURE__ */ G({
1397
+ }, d1 = { key: 0 }, Me = /* @__PURE__ */ B({
1391
1398
  __name: "TreeViewer",
1392
- props: /* @__PURE__ */ kt({
1399
+ props: /* @__PURE__ */ Ze({
1393
1400
  data: {},
1394
1401
  depth: { default: 0 },
1395
1402
  withTag: { type: Boolean, default: !1 }
@@ -1399,201 +1406,201 @@ const Wo = ["onClick", "onDblclick"], Jo = {
1399
1406
  }),
1400
1407
  emits: ["update:modelValue"],
1401
1408
  setup(t) {
1402
- const e = It(t, "modelValue"), { expanded: n, toggleExpanded: o } = it();
1403
- Ko();
1404
- function s(c) {
1405
- return "name" in c && (c == null ? void 0 : c.name) || "label" in c && c.label;
1409
+ const e = lt(t, "modelValue"), { expanded: n, toggleExpanded: o } = ft();
1410
+ s1();
1411
+ function l(u) {
1412
+ return "name" in u && (u == null ? void 0 : u.name) || "label" in u && u.label;
1406
1413
  }
1407
- function l(c) {
1408
- e.value = c;
1414
+ function s(u) {
1415
+ e.value = u;
1409
1416
  }
1410
- return (c, i) => (p(!0), g(oe, null, fe(c.data, (u, C) => {
1411
- var f, d;
1412
- return p(), g("div", {
1417
+ return (u, c) => (p(!0), h(te, null, ae(u.data, (d, C) => {
1418
+ var v, a;
1419
+ return p(), h("div", {
1413
1420
  key: C,
1414
1421
  class: ie({
1415
- "min-w-max": c.depth === 0
1422
+ "min-w-max": u.depth === 0
1416
1423
  })
1417
1424
  }, [
1418
- a("div", {
1419
- class: ie(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": e.value === u.id }]),
1420
- style: ke({ paddingLeft: `${15 * c.depth + 4}px` }),
1421
- onClick: (v) => l(u.id),
1422
- onDblclick: (v) => r(o)(u.id)
1425
+ i("div", {
1426
+ class: ie(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": e.value === d.id }]),
1427
+ style: Ie({ paddingLeft: `${15 * u.depth + 4}px` }),
1428
+ onClick: (f) => s(d.id),
1429
+ onDblclick: (f) => r(o)(d.id)
1423
1430
  }, [
1424
- (f = u == null ? void 0 : u.children) != null && f.length ? (p(), F(at, {
1431
+ (v = d == null ? void 0 : d.children) != null && v.length ? (p(), z(pt, {
1425
1432
  key: 0,
1426
- value: r(n).includes(u.id),
1433
+ value: r(n).includes(d.id),
1427
1434
  class: "[.active_&]:op20 group-hover:op20",
1428
- onClick: pe((v) => r(o)(u.id), ["stop"])
1429
- }, null, 8, ["value", "onClick"])) : (p(), g("span", Jo)),
1430
- a("span", qo, [
1431
- c.withTag ? (p(), g("span", Yo, "<")) : z("", !0),
1432
- a("span", Xo, ae(s(u)), 1),
1433
- c.withTag ? (p(), g("span", Qo, ">")) : z("", !0)
1435
+ onClick: fe((f) => r(o)(d.id), ["stop"])
1436
+ }, null, 8, ["value", "onClick"])) : (p(), h("span", a1)),
1437
+ i("span", i1, [
1438
+ u.withTag ? (p(), h("span", r1, "<")) : U("", !0),
1439
+ i("span", u1, oe(l(d)), 1),
1440
+ u.withTag ? (p(), h("span", c1, ">")) : U("", !0)
1434
1441
  ]),
1435
- (p(!0), g(oe, null, fe(u.tags, (v, m) => (p(), F(Fo, {
1442
+ (p(!0), h(te, null, ae(d.tags, (f, m) => (p(), z(Zt, {
1436
1443
  key: m,
1437
- tag: v
1444
+ tag: f
1438
1445
  }, null, 8, ["tag"]))), 128))
1439
- ], 46, Wo),
1440
- (d = u == null ? void 0 : u.children) != null && d.length && r(n).includes(u.id) ? (p(), g("div", e1, [
1441
- y(Ae, {
1446
+ ], 46, l1),
1447
+ (a = d == null ? void 0 : d.children) != null && a.length && r(n).includes(d.id) ? (p(), h("div", d1, [
1448
+ x(Me, {
1442
1449
  modelValue: e.value,
1443
- "onUpdate:modelValue": i[0] || (i[0] = (v) => e.value = v),
1444
- data: u == null ? void 0 : u.children,
1445
- depth: c.depth + 1,
1446
- "with-tag": c.withTag
1450
+ "onUpdate:modelValue": c[0] || (c[0] = (f) => e.value = f),
1451
+ data: d == null ? void 0 : d.children,
1452
+ depth: u.depth + 1,
1453
+ "with-tag": u.withTag
1447
1454
  }, null, 8, ["modelValue", "data", "depth", "with-tag"])
1448
- ])) : z("", !0)
1455
+ ])) : U("", !0)
1449
1456
  ], 2);
1450
1457
  }), 128));
1451
1458
  }
1452
- }), t1 = { class: "h-full flex flex-col" }, n1 = { class: "h-full flex flex-col p2" }, o1 = {
1459
+ }), p1 = { class: "h-full flex flex-col" }, f1 = { class: "h-full flex flex-col p2" }, v1 = {
1453
1460
  key: 0,
1454
1461
  class: "mb-1 flex justify-end pb-1",
1455
1462
  border: "b dashed base"
1456
- }, s1 = { class: "flex items-center gap-2 px-1" }, l1 = ["onClick"], a1 = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, i1 = { class: "h-full flex flex-col p2" }, r1 = {
1463
+ }, h1 = { class: "flex items-center gap-2 px-1" }, m1 = ["onClick"], _1 = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, g1 = { class: "h-full flex flex-col p2" }, C1 = {
1457
1464
  key: 0,
1458
1465
  class: "mb-1 flex justify-end pb-1",
1459
1466
  border: "b dashed base"
1460
- }, c1 = { class: "flex items-center gap-2 px-1" }, u1 = ["onClick"], de = "pinia", d1 = /* @__PURE__ */ G({
1467
+ }, x1 = { class: "flex items-center gap-2 px-1" }, y1 = ["onClick"], pe = "pinia", b1 = /* @__PURE__ */ B({
1461
1468
  __name: "Index",
1462
1469
  setup(t) {
1463
- const { expanded: e } = ve(), { expanded: n } = ve("pinia-store-state"), o = I([]), s = I([]), l = I(""), c = I([]), i = D(() => {
1470
+ const { expanded: e } = ve(), { expanded: n } = ve("pinia-store-state"), o = I([]), l = I([]), s = I(""), u = I([]), c = D(() => {
1464
1471
  var T, P;
1465
- return (T = c.value) != null && T.length ? v((P = c.value) == null ? void 0 : P[0]) : [];
1466
- }), u = D(() => x(c.value)), C = D(() => u.value.map((T) => T.id)), f = I({}), d = D(() => {
1472
+ return (T = u.value) != null && T.length ? f((P = u.value) == null ? void 0 : P[0]) : [];
1473
+ }), d = D(() => y(u.value)), C = D(() => d.value.map((T) => T.id)), v = I({}), a = D(() => {
1467
1474
  var T, P;
1468
- return !((T = f.value.state) != null && T.length) && !((P = f.value.getters) != null && P.length);
1475
+ return !((T = v.value.state) != null && T.length) && !((P = v.value.getters) != null && P.length);
1469
1476
  });
1470
- function v(T, P = [], b = []) {
1471
- var k;
1472
- return P.push(T.id), ((k = T.children) == null ? void 0 : k.length) === 0 && b.push([...P]), Array.isArray(T.children) && T.children.forEach((_) => {
1473
- v(_, P, b);
1477
+ function f(T, P = [], b = []) {
1478
+ var S;
1479
+ return P.push(T.id), ((S = T.children) == null ? void 0 : S.length) === 0 && b.push([...P]), Array.isArray(T.children) && T.children.forEach((g) => {
1480
+ f(g, P, b);
1474
1481
  }), P.pop(), b;
1475
1482
  }
1476
1483
  function m(T, P) {
1477
1484
  const b = [];
1478
- return T == null || T.forEach((k) => {
1479
- b.push(...k.slice(0, P + 1));
1485
+ return T == null || T.forEach((S) => {
1486
+ b.push(...S.slice(0, P + 1));
1480
1487
  }), [...new Set(b)];
1481
1488
  }
1482
- function x(T) {
1483
- const P = [], b = (k) => {
1484
- k == null || k.forEach((_) => {
1489
+ function y(T) {
1490
+ const P = [], b = (S) => {
1491
+ S == null || S.forEach((g) => {
1485
1492
  var A;
1486
- P.push(_), (A = _.children) != null && A.length && b(_.children);
1493
+ P.push(g), (A = g.children) != null && A.length && b(g.children);
1487
1494
  });
1488
1495
  };
1489
1496
  return b(T), P;
1490
1497
  }
1491
- function h() {
1492
- R.value.getInspectorNodeActions(de).then((T) => {
1498
+ function _() {
1499
+ R.value.getInspectorNodeActions(pe).then((T) => {
1493
1500
  o.value = T;
1494
1501
  });
1495
1502
  }
1496
- function $() {
1497
- R.value.getInspectorActions(de).then((T) => {
1498
- s.value = T;
1503
+ function k() {
1504
+ R.value.getInspectorActions(pe).then((T) => {
1505
+ l.value = T;
1499
1506
  });
1500
1507
  }
1501
- h(), $();
1502
- function j(T) {
1503
- R.value.callInspectorNodeAction(de, T, l.value);
1508
+ _(), k();
1509
+ function O(T) {
1510
+ R.value.callInspectorNodeAction(pe, T, s.value);
1504
1511
  }
1505
- function L(T) {
1506
- R.value.callInspectorAction(de, T);
1512
+ function j(T) {
1513
+ R.value.callInspectorAction(pe, T);
1507
1514
  }
1508
- function E(T) {
1515
+ function V(T) {
1509
1516
  var P;
1510
1517
  for (const b in T)
1511
1518
  (P = T[b]) != null && P.length || delete T[b];
1512
1519
  return T;
1513
1520
  }
1514
- function w(T) {
1515
- R.value.getInspectorState({ inspectorId: de, nodeId: T }).then((P) => {
1521
+ function $(T) {
1522
+ R.value.getInspectorState({ inspectorId: pe, nodeId: T }).then((P) => {
1516
1523
  const b = Y(P);
1517
- b && (f.value = E(b), n.value = Array.from({ length: Object.keys(f.value).length }, (k, _) => `${_}`));
1524
+ b && (v.value = V(b), n.value = Array.from({ length: Object.keys(v.value).length }, (S, g) => `${g}`));
1518
1525
  });
1519
1526
  }
1520
- function V() {
1521
- f.value = {};
1527
+ function N() {
1528
+ v.value = {};
1522
1529
  }
1523
- X(l, () => {
1524
- V(), w(l.value);
1530
+ X(s, () => {
1531
+ N(), $(s.value);
1525
1532
  }), (() => {
1526
- R.value.getInspectorTree({ inspectorId: de, filter: "" }).then((T) => {
1533
+ R.value.getInspectorTree({ inspectorId: pe, filter: "" }).then((T) => {
1527
1534
  const P = Y(T);
1528
- c.value = P, !l.value && P.length && (l.value = P[0].id, w(P[0].id), e.value = m(i.value, 1));
1535
+ u.value = P, !s.value && P.length && (s.value = P[0].id, $(P[0].id), e.value = m(c.value, 1));
1529
1536
  });
1530
1537
  })();
1531
1538
  function K(T) {
1532
1539
  const P = Y(T);
1533
- P.inspectorId !== de || !P.rootNodes.length || (c.value = P.rootNodes, C.value.includes(l.value) || (l.value = P.rootNodes[0].id, e.value = m(i.value, 1), w(P.rootNodes[0].id)));
1540
+ P.inspectorId !== pe || !P.rootNodes.length || (u.value = P.rootNodes, C.value.includes(s.value) || (s.value = P.rootNodes[0].id, e.value = m(c.value, 1), $(P.rootNodes[0].id)));
1534
1541
  }
1535
- function B(T) {
1542
+ function Z(T) {
1536
1543
  const P = Y(T);
1537
- if (P.inspectorId !== de)
1544
+ if (P.inspectorId !== pe)
1538
1545
  return;
1539
1546
  const b = P.state;
1540
- f.value = E({
1547
+ v.value = V({
1541
1548
  state: b.state,
1542
1549
  getters: b.getters
1543
1550
  });
1544
1551
  }
1545
- return R.functions.on(W.INSPECTOR_TREE_UPDATED, K), R.functions.on(W.INSPECTOR_STATE_UPDATED, B), xe(() => {
1546
- R.functions.off(W.INSPECTOR_TREE_UPDATED, K), R.functions.off(W.INSPECTOR_STATE_UPDATED, B);
1547
- }), (T, P) => (p(), g("div", t1, [
1548
- y(Ze, {
1552
+ return R.functions.on(W.INSPECTOR_TREE_UPDATED, K), R.functions.on(W.INSPECTOR_STATE_UPDATED, Z), xe(() => {
1553
+ R.functions.off(W.INSPECTOR_TREE_UPDATED, K), R.functions.off(W.INSPECTOR_STATE_UPDATED, Z);
1554
+ }), (T, P) => (p(), h("div", p1, [
1555
+ x(Te, {
1549
1556
  "doc-link": "https://pinia.vuejs.org/",
1550
1557
  "github-repo-link": "https://github.com/vuejs/pinia"
1551
1558
  }, {
1552
- default: H(() => [
1553
- y(Be)
1559
+ default: M(() => [
1560
+ x(Se)
1554
1561
  ]),
1555
1562
  _: 1
1556
1563
  }),
1557
- y(r(Ee), { class: "flex-1 overflow-auto" }, {
1558
- default: H(() => [
1559
- y(r(ue), {
1564
+ x(r(Ae), { class: "flex-1 overflow-auto" }, {
1565
+ default: M(() => [
1566
+ x(r(ue), {
1560
1567
  border: "r base",
1561
1568
  size: "40",
1562
1569
  "h-full": ""
1563
1570
  }, {
1564
- default: H(() => {
1571
+ default: M(() => {
1565
1572
  var b;
1566
1573
  return [
1567
- a("div", n1, [
1568
- (b = s.value) != null && b.length ? (p(), g("div", o1, [
1569
- a("div", s1, [
1570
- (p(!0), g(oe, null, fe(s.value, (k, _) => q((p(), g("div", {
1571
- key: _,
1574
+ i("div", f1, [
1575
+ (b = l.value) != null && b.length ? (p(), h("div", v1, [
1576
+ i("div", h1, [
1577
+ (p(!0), h(te, null, ae(l.value, (S, g) => J((p(), h("div", {
1578
+ key: g,
1572
1579
  class: "flex items-center gap1",
1573
- onClick: (A) => L(_)
1580
+ onClick: (A) => j(g)
1574
1581
  }, [
1575
- a("i", {
1576
- class: ie(`i-ic-baseline-${k.icon.replace(/\_/g, "-")}`),
1582
+ i("i", {
1583
+ class: ie(`i-ic-baseline-${S.icon.replace(/\_/g, "-")}`),
1577
1584
  "cursor-pointer": "",
1578
1585
  op70: "",
1579
1586
  "text-base": "",
1580
1587
  "hover:op100": ""
1581
1588
  }, null, 2)
1582
- ], 8, l1)), [
1589
+ ], 8, m1)), [
1583
1590
  [
1584
1591
  r(Q),
1585
- { content: k.tooltip },
1592
+ { content: S.tooltip },
1586
1593
  void 0,
1587
1594
  { "bottom-end": !0 }
1588
1595
  ]
1589
1596
  ])), 128))
1590
1597
  ])
1591
- ])) : z("", !0),
1592
- a("div", a1, [
1593
- y(Ae, {
1594
- modelValue: l.value,
1595
- "onUpdate:modelValue": P[0] || (P[0] = (k) => l.value = k),
1596
- data: c.value
1598
+ ])) : U("", !0),
1599
+ i("div", _1, [
1600
+ x(Me, {
1601
+ modelValue: s.value,
1602
+ "onUpdate:modelValue": P[0] || (P[0] = (S) => s.value = S),
1603
+ data: u.value
1597
1604
  }, null, 8, ["modelValue", "data"])
1598
1605
  ])
1599
1606
  ])
@@ -1601,45 +1608,45 @@ const Wo = ["onClick", "onDblclick"], Jo = {
1601
1608
  }),
1602
1609
  _: 1
1603
1610
  }),
1604
- y(r(ue), { size: "60" }, {
1605
- default: H(() => {
1611
+ x(r(ue), { size: "60" }, {
1612
+ default: M(() => {
1606
1613
  var b;
1607
1614
  return [
1608
- a("div", i1, [
1609
- (b = o.value) != null && b.length ? (p(), g("div", r1, [
1610
- a("div", c1, [
1611
- (p(!0), g(oe, null, fe(o.value, (k, _) => q((p(), g("div", {
1612
- key: _,
1615
+ i("div", g1, [
1616
+ (b = o.value) != null && b.length ? (p(), h("div", C1, [
1617
+ i("div", x1, [
1618
+ (p(!0), h(te, null, ae(o.value, (S, g) => J((p(), h("div", {
1619
+ key: g,
1613
1620
  class: "flex items-center gap1",
1614
- onClick: (A) => j(_)
1621
+ onClick: (A) => O(g)
1615
1622
  }, [
1616
- a("i", {
1617
- class: ie(`i-ic-baseline-${k.icon.replace(/\_/g, "-")}`),
1623
+ i("i", {
1624
+ class: ie(`i-ic-baseline-${S.icon.replace(/\_/g, "-")}`),
1618
1625
  "cursor-pointer": "",
1619
1626
  op70: "",
1620
1627
  "text-base": "",
1621
1628
  "hover:op100": ""
1622
1629
  }, null, 2)
1623
- ], 8, u1)), [
1630
+ ], 8, y1)), [
1624
1631
  [
1625
1632
  r(Q),
1626
- { content: k.tooltip },
1633
+ { content: S.tooltip },
1627
1634
  void 0,
1628
1635
  { "bottom-end": !0 }
1629
1636
  ]
1630
1637
  ])), 128))
1631
1638
  ])
1632
- ])) : z("", !0),
1633
- l.value && !d.value ? (p(), F(Ne, {
1639
+ ])) : U("", !0),
1640
+ s.value && !a.value ? (p(), z(Pe, {
1634
1641
  key: 1,
1635
1642
  class: "no-scrollbar flex-1 select-none overflow-scroll",
1636
- data: f.value,
1637
- "node-id": l.value,
1638
- "inspector-id": de,
1643
+ data: v.value,
1644
+ "node-id": s.value,
1645
+ "inspector-id": pe,
1639
1646
  "expanded-state-id": "pinia-store-state"
1640
- }, null, 8, ["data", "node-id"])) : (p(), F(Se, { key: 2 }, {
1641
- default: H(() => [
1642
- te(" No Data ")
1647
+ }, null, 8, ["data", "node-id"])) : (p(), z(Ne, { key: 2 }, {
1648
+ default: M(() => [
1649
+ ne(" No Data ")
1643
1650
  ]),
1644
1651
  _: 1
1645
1652
  }))
@@ -1653,22 +1660,22 @@ const Wo = ["onClick", "onDblclick"], Jo = {
1653
1660
  })
1654
1661
  ]));
1655
1662
  }
1656
- }), p1 = { class: "p3" }, f1 = ["onClick"], v1 = {
1663
+ }), $1 = { class: "p3" }, w1 = ["onClick"], k1 = {
1657
1664
  key: 0,
1658
1665
  class: "absolute left-5px top-4.5 h10 w0 border-l-2",
1659
1666
  border: "solid gray2"
1660
- }, h1 = { class: "h-full flex items-center truncate pl5" }, m1 = {
1667
+ }, I1 = { class: "h-full flex items-center truncate pl5" }, S1 = {
1661
1668
  absolute: "",
1662
1669
  "top-5": "",
1663
1670
  pr2: "",
1664
1671
  "text-3": "",
1665
1672
  op40: ""
1666
- }, _1 = {
1673
+ }, T1 = {
1667
1674
  pl2: "",
1668
1675
  op30: ""
1669
- }, g1 = /* @__PURE__ */ G({
1676
+ }, E1 = /* @__PURE__ */ B({
1670
1677
  __name: "EventList",
1671
- props: /* @__PURE__ */ kt({
1678
+ props: /* @__PURE__ */ Ze({
1672
1679
  data: {}
1673
1680
  }, {
1674
1681
  modelValue: {},
@@ -1676,20 +1683,20 @@ const Wo = ["onClick", "onDblclick"], Jo = {
1676
1683
  }),
1677
1684
  emits: ["update:modelValue"],
1678
1685
  setup(t) {
1679
- const e = t, n = It(t, "modelValue"), o = ["#3e5770", "#42b983", "#0098c4"], s = I(null), l = D(() => {
1680
- let c = -1, i = 0;
1681
- return e.data.forEach((u, C) => {
1682
- (u.groupId !== i || c === -1) && (c = (c + 1) % o.length), i = u.groupId ?? i, u.id = C, u.color = o[c];
1686
+ const e = t, n = lt(t, "modelValue"), o = ["#3e5770", "#42b983", "#0098c4"], l = I(null), s = D(() => {
1687
+ let u = -1, c = 0;
1688
+ return e.data.forEach((d, C) => {
1689
+ (d.groupId !== c || u === -1) && (u = (u + 1) % o.length), c = d.groupId ?? c, d.id = C, d.color = o[u];
1683
1690
  }), e.data;
1684
1691
  });
1685
- return X(() => l.value.length, (c) => {
1686
- var i;
1687
- (i = s.value) == null || i.scrollToItem(c - 1);
1688
- }, { flush: "post" }), (c, i) => (p(), g("div", p1, [
1689
- y(r(dn), {
1692
+ return X(() => s.value.length, (u) => {
1693
+ var c;
1694
+ (c = l.value) == null || c.scrollToItem(u - 1);
1695
+ }, { flush: "post" }), (u, c) => (p(), h("div", $1, [
1696
+ x(r($n), {
1690
1697
  ref_key: "scrollerRef",
1691
- ref: s,
1692
- items: l.value,
1698
+ ref: l,
1699
+ items: s.value,
1693
1700
  "min-item-size": 52,
1694
1701
  "key-field": "id",
1695
1702
  "page-mode": "",
@@ -1697,42 +1704,42 @@ const Wo = ["onClick", "onDblclick"], Jo = {
1697
1704
  "list-tag": "ul",
1698
1705
  buffer: 20
1699
1706
  }, {
1700
- default: H(({ item: u }) => [
1701
- a("div", {
1707
+ default: M(({ item: d }) => [
1708
+ i("div", {
1702
1709
  class: "relative mb7 h6 cursor-pointer",
1703
- style: ke({ color: n.value === u.id ? u.color : "" }),
1704
- onClick: (C) => n.value = u.id
1710
+ style: Ie({ color: n.value === d.id ? d.color : "" }),
1711
+ onClick: (C) => n.value = d.id
1705
1712
  }, [
1706
- a("span", {
1713
+ i("span", {
1707
1714
  class: "absolute top-1.5 inline-block h3 w3 b rounded-50%",
1708
- style: ke({ border: `3px solid ${u.color}` })
1715
+ style: Ie({ border: `3px solid ${d.color}` })
1709
1716
  }, null, 4),
1710
- u.id < c.data.length - 1 ? (p(), g("span", v1)) : z("", !0),
1711
- a("p", h1, [
1712
- a("span", m1, "[" + ae(r(zo)(u.time)) + "]", 1),
1713
- te(" " + ae(u.title) + " ", 1),
1714
- a("span", _1, ae(u.subtitle), 1)
1717
+ d.id < u.data.length - 1 ? (p(), h("span", k1)) : U("", !0),
1718
+ i("p", I1, [
1719
+ i("span", S1, "[" + oe(r(Qo)(d.time)) + "]", 1),
1720
+ ne(" " + oe(d.title) + " ", 1),
1721
+ i("span", T1, oe(d.subtitle), 1)
1715
1722
  ])
1716
- ], 12, f1)
1723
+ ], 12, w1)
1717
1724
  ]),
1718
1725
  _: 1
1719
1726
  }, 8, ["items"])
1720
1727
  ]));
1721
1728
  }
1722
- }), C1 = { class: "h-full flex flex-col" }, x1 = {
1729
+ }), V1 = { class: "h-full flex flex-col" }, N1 = {
1723
1730
  key: 0,
1724
1731
  class: "flex-1 overflow-hidden"
1725
- }, y1 = {
1732
+ }, R1 = {
1726
1733
  "h-full": "",
1727
1734
  "select-none": "",
1728
1735
  "overflow-scroll": "",
1729
1736
  class: "no-scrollbar"
1730
- }, b1 = {
1737
+ }, A1 = {
1731
1738
  "h-full": "",
1732
1739
  "select-none": "",
1733
1740
  "overflow-scroll": "",
1734
1741
  class: "no-scrollbar"
1735
- }, rt = /* @__PURE__ */ G({
1742
+ }, vt = /* @__PURE__ */ B({
1736
1743
  __name: "index",
1737
1744
  props: {
1738
1745
  layerIds: {},
@@ -1742,82 +1749,82 @@ const Wo = ["onClick", "onDblclick"], Jo = {
1742
1749
  setup(t) {
1743
1750
  const e = t, { expanded: n } = ve("timeline-state");
1744
1751
  n.value = ["0", "1"];
1745
- const o = I([]), s = I(/* @__PURE__ */ new Map()), l = I(0), c = D(() => o.value[l.value] ?? null), i = D(() => {
1752
+ const o = I([]), l = I(/* @__PURE__ */ new Map()), s = I(0), u = D(() => o.value[s.value] ?? null), c = D(() => {
1746
1753
  var m;
1747
- const v = [];
1748
- for (const x in (m = c.value) == null ? void 0 : m.data)
1749
- v.push({
1750
- key: x,
1751
- type: x,
1754
+ const f = [];
1755
+ for (const y in (m = u.value) == null ? void 0 : m.data)
1756
+ f.push({
1757
+ key: y,
1758
+ type: y,
1752
1759
  editable: !1,
1753
- value: c.value.data[x]
1760
+ value: u.value.data[y]
1754
1761
  });
1755
- return v;
1756
- }), u = D(() => {
1757
- var x, h, $;
1758
- const v = (x = c.value) == null ? void 0 : x.groupId, m = s.value.get(v);
1762
+ return f;
1763
+ }), d = D(() => {
1764
+ var y, _, k;
1765
+ const f = (y = u.value) == null ? void 0 : y.groupId, m = l.value.get(f);
1759
1766
  if (m) {
1760
- const j = ((h = m[m.length - 1]) == null ? void 0 : h.time) - ((($ = m[0]) == null ? void 0 : $.time) ?? 0);
1767
+ const O = ((_ = m[m.length - 1]) == null ? void 0 : _.time) - (((k = m[0]) == null ? void 0 : k.time) ?? 0);
1761
1768
  return [{
1762
1769
  key: "events",
1763
1770
  type: "events",
1764
1771
  editable: !1,
1765
1772
  value: m.length
1766
- }, j && {
1773
+ }, O && {
1767
1774
  key: "duration",
1768
1775
  type: "duration",
1769
1776
  editable: !1,
1770
- value: `${j}ms`
1777
+ value: `${O}ms`
1771
1778
  }].filter(Boolean);
1772
1779
  }
1773
- }), C = D(() => ({ "Event Info": i.value, ...u.value && { "Group Info": u.value } }));
1774
- function f(v) {
1775
- var x;
1776
- const m = v.groupId;
1777
- m !== void 0 && (s.value.set(m, s.value.get(m) ?? []), (x = s.value.get(m)) == null || x.push(v));
1778
- }
1779
- function d(v) {
1780
- const m = Y(v);
1780
+ }), C = D(() => ({ "Event Info": c.value, ...d.value && { "Group Info": d.value } }));
1781
+ function v(f) {
1782
+ var y;
1783
+ const m = f.groupId;
1784
+ m !== void 0 && (l.value.set(m, l.value.get(m) ?? []), (y = l.value.get(m)) == null || y.push(f));
1785
+ }
1786
+ function a(f) {
1787
+ const m = Y(f);
1781
1788
  if (!m)
1782
1789
  return;
1783
- const { layerId: x, event: h } = m;
1784
- e.layerIds.includes(x) && (o.value.push(h), f(h));
1785
- }
1786
- return R.functions.on(W.TIMELINE_EVENT_UPDATED, d), xe(() => {
1787
- R.functions.off(W.TIMELINE_EVENT_UPDATED, d);
1788
- }), (v, m) => (p(), g("div", C1, [
1789
- y(Ze, {
1790
- "doc-link": v.docLink,
1791
- "github-repo-link": v.githubRepoLink
1790
+ const { layerId: y, event: _ } = m;
1791
+ e.layerIds.includes(y) && (o.value.push(_), v(_));
1792
+ }
1793
+ return R.functions.on(W.TIMELINE_EVENT_UPDATED, a), xe(() => {
1794
+ R.functions.off(W.TIMELINE_EVENT_UPDATED, a);
1795
+ }), (f, m) => (p(), h("div", V1, [
1796
+ x(Te, {
1797
+ "doc-link": f.docLink,
1798
+ "github-repo-link": f.githubRepoLink
1792
1799
  }, {
1793
- default: H(() => [
1794
- y(Be)
1800
+ default: M(() => [
1801
+ x(Se)
1795
1802
  ]),
1796
1803
  _: 1
1797
1804
  }, 8, ["doc-link", "github-repo-link"]),
1798
- o.value.length ? (p(), g("div", x1, [
1799
- y(r(Ee), { class: "h-full" }, {
1800
- default: H(() => [
1801
- y(r(ue), {
1805
+ o.value.length ? (p(), h("div", N1, [
1806
+ x(r(Ae), { class: "h-full" }, {
1807
+ default: M(() => [
1808
+ x(r(ue), {
1802
1809
  border: "r base",
1803
1810
  size: "40",
1804
1811
  "h-full": ""
1805
1812
  }, {
1806
- default: H(() => [
1807
- a("div", y1, [
1808
- y(g1, {
1809
- modelValue: l.value,
1810
- "onUpdate:modelValue": m[0] || (m[0] = (x) => l.value = x),
1813
+ default: M(() => [
1814
+ i("div", R1, [
1815
+ x(E1, {
1816
+ modelValue: s.value,
1817
+ "onUpdate:modelValue": m[0] || (m[0] = (y) => s.value = y),
1811
1818
  data: o.value
1812
1819
  }, null, 8, ["modelValue", "data"])
1813
1820
  ])
1814
1821
  ]),
1815
1822
  _: 1
1816
1823
  }),
1817
- y(r(ue), { size: "60" }, {
1818
- default: H(() => [
1819
- a("div", b1, [
1820
- y(Ne, {
1824
+ x(r(ue), { size: "60" }, {
1825
+ default: M(() => [
1826
+ i("div", A1, [
1827
+ x(Pe, {
1821
1828
  class: "p3",
1822
1829
  data: C.value,
1823
1830
  "node-id": "",
@@ -1832,60 +1839,179 @@ const Wo = ["onClick", "onDblclick"], Jo = {
1832
1839
  ]),
1833
1840
  _: 1
1834
1841
  })
1835
- ])) : (p(), F(Se, {
1842
+ ])) : (p(), z(Ne, {
1836
1843
  key: 1,
1837
1844
  class: "flex-1"
1838
1845
  }, {
1839
- default: H(() => [
1840
- te(" No events ")
1846
+ default: M(() => [
1847
+ ne(" No events ")
1841
1848
  ]),
1842
1849
  _: 1
1843
1850
  }))
1844
1851
  ]));
1845
1852
  }
1846
- }), w1 = /* @__PURE__ */ G({
1853
+ }), D1 = /* @__PURE__ */ B({
1847
1854
  __name: "Index",
1848
1855
  setup(t) {
1849
1856
  const e = ["pinia:mutations"];
1850
- return (n, o) => (p(), F(rt, {
1857
+ return (n, o) => (p(), z(vt, {
1851
1858
  "layer-ids": e,
1852
1859
  "doc-link": "https://pinia.vuejs.org/",
1853
1860
  "github-repo-link": "https://github.com/vuejs/pinia"
1854
1861
  }));
1855
1862
  }
1856
- }), $1 = {
1863
+ }), Gt = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
1864
+ function be() {
1865
+ return Ce(Gt);
1866
+ }
1867
+ function Kt() {
1868
+ const t = I({
1869
+ homepage: "",
1870
+ id: "",
1871
+ label: "",
1872
+ logo: "",
1873
+ timelineLayerIds: []
1874
+ });
1875
+ return ke(Gt, t), t;
1876
+ }
1877
+ const P1 = { class: "flex-1 overflow-y-auto p2" }, M1 = { class: "max-w-[190px] flex-1 select-none py-1.5 text-sm" }, H1 = { class: "w-4/5" }, L1 = {
1878
+ key: 0,
1879
+ class: "flex justify-start"
1880
+ }, j1 = {
1881
+ flex: "~ gap-2",
1882
+ "flex-auto": "",
1883
+ "items-center": "",
1884
+ "justify-start": ""
1885
+ }, O1 = {
1886
+ capitalize: "",
1887
+ op75: ""
1888
+ }, U1 = { key: 1 }, Wt = /* @__PURE__ */ B({
1889
+ __name: "Settings",
1890
+ props: {
1891
+ pluginId: {},
1892
+ options: {},
1893
+ values: {}
1894
+ },
1895
+ emits: ["update"],
1896
+ setup(t, { emit: e }) {
1897
+ const n = t, o = e;
1898
+ be();
1899
+ const l = computed(() => n.options), s = computed(() => n.values);
1900
+ function u(c, d) {
1901
+ R.value.updatePluginSettings(n.pluginId, c, d), R.value.getPluginSettings(n.pluginId).then((C) => {
1902
+ o("update", C);
1903
+ });
1904
+ }
1905
+ return (c, d) => {
1906
+ const C = ln("VueInput");
1907
+ return p(), h("div", P1, [
1908
+ i("ul", null, [
1909
+ (p(!0), h(te, null, ae(r(l), (v, a) => (p(), h("li", {
1910
+ key: a,
1911
+ class: "flex items-center py-2"
1912
+ }, [
1913
+ i("div", M1, oe(v.label), 1),
1914
+ i("div", H1, [
1915
+ v.type === "boolean" ? (p(), h("div", L1, [
1916
+ x(r(_n), {
1917
+ "model-value": r(s)[a],
1918
+ class: "row-reverse flex hover:bg-active py1 pl2 pr1",
1919
+ "onUpdate:modelValue": (f) => u(a, f)
1920
+ }, {
1921
+ default: M(() => [
1922
+ i("div", j1, [
1923
+ i("span", O1, oe(c.name), 1)
1924
+ ])
1925
+ ]),
1926
+ _: 2
1927
+ }, 1032, ["model-value", "onUpdate:modelValue"])
1928
+ ])) : v.type === "choice" ? (p(), h("div", U1, [
1929
+ x(r(gn), {
1930
+ "model-value": r(s)[a],
1931
+ options: v.options,
1932
+ "onUpdate:modelValue": (f) => u(a, f)
1933
+ }, null, 8, ["model-value", "options", "onUpdate:modelValue"])
1934
+ ])) : v.type === "text" ? (p(), z(C, {
1935
+ key: 2,
1936
+ "model-value": r(s)[a],
1937
+ "onUpdate:modelValue": (f) => u(a, f)
1938
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : U("", !0)
1939
+ ])
1940
+ ]))), 128))
1941
+ ])
1942
+ ]);
1943
+ };
1944
+ }
1945
+ }), z1 = { class: "h-full flex flex-col" }, B1 = "pinia", Z1 = /* @__PURE__ */ B({
1946
+ __name: "Settings",
1947
+ setup(t) {
1948
+ const e = inject("pluginSettings"), n = computed(() => e.value.options), o = computed(() => e.value.values);
1949
+ function l(s) {
1950
+ e.value = s;
1951
+ }
1952
+ return (s, u) => (p(), h("div", z1, [
1953
+ x(Te, {
1954
+ "doc-link": "https://pinia.vuejs.org/",
1955
+ "github-repo-link": "https://github.com/vuejs/pinia"
1956
+ }, {
1957
+ default: M(() => [
1958
+ x(Se)
1959
+ ]),
1960
+ _: 1
1961
+ }),
1962
+ x(Wt, {
1963
+ "plugin-id": B1,
1964
+ options: r(n),
1965
+ values: r(o),
1966
+ onUpdate: l
1967
+ }, null, 8, ["options", "values"])
1968
+ ]));
1969
+ }
1970
+ }), F1 = {
1857
1971
  "h-full": "",
1858
1972
  "w-full": ""
1859
- }, Nl = /* @__PURE__ */ G({
1973
+ }, sa = /* @__PURE__ */ B({
1860
1974
  __name: "index",
1861
1975
  setup(t) {
1862
- const { VirtualRouterView: e } = tt([
1976
+ const e = ref(null);
1977
+ provide("pluginSettings", e);
1978
+ const n = computed(() => [
1863
1979
  {
1864
1980
  path: "/store",
1865
1981
  name: "Store",
1866
- component: d1,
1982
+ component: b1,
1867
1983
  icon: "i-carbon-tree-view-alt"
1868
1984
  },
1869
1985
  {
1870
1986
  path: "/timeline",
1871
1987
  name: "Timeline",
1872
- component: w1,
1988
+ component: D1,
1873
1989
  icon: "i-mdi:timeline-clock-outline"
1874
1990
  },
1875
1991
  {
1876
1992
  path: "/",
1877
1993
  name: "About",
1878
- component: Hn,
1994
+ component: qn,
1879
1995
  icon: "i-logos-pinia"
1996
+ },
1997
+ e.value && {
1998
+ path: "/settings",
1999
+ name: "Settings",
2000
+ component: Z1,
2001
+ icon: "i-mdi:cog-outline"
1880
2002
  }
1881
- ], {
2003
+ ].filter(Boolean)), { VirtualRouterView: o, restoreRouter: l } = it(n, {
1882
2004
  defaultRoutePath: "/store"
1883
2005
  });
1884
- return (n, o) => (p(), g("div", $1, [
1885
- y(r(e))
2006
+ return Re(() => {
2007
+ R.value.getPluginSettings("pinia").then((s) => {
2008
+ s.options ? e.value = s : e.value = null;
2009
+ });
2010
+ }), (s, u) => (p(), h("div", F1, [
2011
+ x(r(o))
1886
2012
  ]));
1887
2013
  }
1888
- }), k1 = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-br-2.5 rounded-tr-2.5 bg-white p2 dark:bg-[#121212]" }, I1 = /* @__PURE__ */ a("span", { class: "font-500" }, "Render Code", -1), T1 = { class: "flex-1 overflow-scroll text-3.5" }, S1 = /* @__PURE__ */ G({
2014
+ }), G1 = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-br-2.5 rounded-tr-2.5 bg-white p2 dark:bg-[#121212]" }, K1 = /* @__PURE__ */ i("span", { class: "font-500" }, "Render Code", -1), W1 = { class: "flex-1 overflow-scroll text-3.5" }, q1 = /* @__PURE__ */ B({
1889
2015
  __name: "RenderCode",
1890
2016
  props: {
1891
2017
  code: {}
@@ -1896,243 +2022,304 @@ const Wo = ["onClick", "onDblclick"], Jo = {
1896
2022
  function o() {
1897
2023
  n("close");
1898
2024
  }
1899
- return (s, l) => (p(), g("div", k1, [
1900
- a("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
1901
- I1,
1902
- a("i", {
2025
+ return (l, s) => (p(), h("div", G1, [
2026
+ i("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
2027
+ K1,
2028
+ i("i", {
1903
2029
  class: "i-carbon-close cursor-pointer hover:op80",
1904
2030
  onClick: o
1905
2031
  })
1906
2032
  ]),
1907
- a("div", T1, [
1908
- y(r(an), {
1909
- code: s.code,
2033
+ i("div", W1, [
2034
+ x(r(Cn), {
2035
+ code: l.code,
1910
2036
  lang: "javascript"
1911
2037
  }, null, 8, ["code"])
1912
2038
  ])
1913
2039
  ]));
1914
2040
  }
1915
- }), Re = (t) => (Xe("data-v-ddb3f55a"), t = t(), Qe(), t), E1 = { class: "h-full w-full" }, V1 = {
2041
+ }), J1 = { class: "p2" }, Y1 = ["onClick"], X1 = /* @__PURE__ */ B({
2042
+ __name: "SelectiveList",
2043
+ props: /* @__PURE__ */ Ze({
2044
+ data: {}
2045
+ }, {
2046
+ modelValue: {},
2047
+ modelModifiers: {}
2048
+ }),
2049
+ emits: /* @__PURE__ */ Ze(["select"], ["update:modelValue"]),
2050
+ setup(t, { emit: e }) {
2051
+ const n = e, o = lt(t, "modelValue");
2052
+ function l(s) {
2053
+ o.value = s, n("select", s);
2054
+ }
2055
+ return (s, u) => (p(), h("ul", J1, [
2056
+ (p(!0), h(te, null, ae(s.data, (c) => (p(), h("li", {
2057
+ key: c.id,
2058
+ class: ie(["selectable-item", { active: c.id === o.value }]),
2059
+ onClick: (d) => l(c.id)
2060
+ }, [
2061
+ ne(oe(c.label) + " ", 1),
2062
+ (p(!0), h(te, null, ae(c.tags, (d, C) => (p(), z(Zt, {
2063
+ key: C,
2064
+ tag: d
2065
+ }, null, 8, ["tag"]))), 128))
2066
+ ], 10, Y1))), 128))
2067
+ ]));
2068
+ }
2069
+ }), He = (t) => (ot("data-v-092d4be1"), t = t(), st(), t), Q1 = { class: "h-full w-full" }, es = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, ts = {
1916
2070
  key: 0,
1917
2071
  class: "h-full flex flex-col p2"
1918
- }, N1 = { class: "flex py2" }, A1 = {
2072
+ }, ns = { class: "flex py2" }, os = {
1919
2073
  xmlns: "http://www.w3.org/2000/svg",
1920
2074
  style: { height: "1.1em", width: "1.1em" },
1921
2075
  class: "op-80 hover:op-100",
1922
2076
  viewBox: "0 0 24 24"
1923
- }, R1 = /* @__PURE__ */ Re(() => /* @__PURE__ */ a("path", {
2077
+ }, ss = /* @__PURE__ */ He(() => /* @__PURE__ */ i("path", {
1924
2078
  fill: "currentColor",
1925
2079
  d: "M10.611 10.611a1 1 0 0 1 1.11-.208l8.839 3.889a1 1 0 0 1-.14 1.88l-3.338.91l-.91 3.338a1 1 0 0 1-1.88.14l-3.89-8.84a1 1 0 0 1 .209-1.109M17 3a3 3 0 0 1 3 3v3a1 1 0 1 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h3a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm-3.73 10.269l1.715 3.9l.318-1.164a1 1 0 0 1 .701-.702l1.165-.318l-3.9-1.716Z"
1926
- }, null, -1)), D1 = [
1927
- R1
1928
- ], P1 = { class: "h-full flex flex-col p2" }, M1 = { class: "flex py2" }, H1 = {
2080
+ }, null, -1)), ls = [
2081
+ ss
2082
+ ], as = { class: "h-full flex flex-col p2" }, is = { class: "flex py2" }, rs = {
1929
2083
  key: 0,
1930
2084
  class: "font-state-field flex items-center px-1 text-3.5"
1931
- }, L1 = /* @__PURE__ */ Re(() => /* @__PURE__ */ a("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)), O1 = {
2085
+ }, us = /* @__PURE__ */ He(() => /* @__PURE__ */ i("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)), cs = {
1932
2086
  "group-hover:text-white": "",
1933
2087
  class: "max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:text-white"
1934
- }, j1 = /* @__PURE__ */ Re(() => /* @__PURE__ */ a("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1)), z1 = { class: "flex items-center gap-2 px-1" }, U1 = { class: "h-full flex flex-col items-center justify-center gap-2" }, B1 = { class: "block" }, Z1 = {
2088
+ }, ds = /* @__PURE__ */ He(() => /* @__PURE__ */ i("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1)), ps = { class: "flex items-center gap-2 px-1" }, fs = { class: "h-full flex flex-col items-center justify-center gap-2" }, vs = { class: "block" }, hs = {
1935
2089
  xmlns: "http://www.w3.org/2000/svg",
1936
2090
  style: { height: "2em", width: "2em", opacity: "0.5", color: "#00dc82" },
1937
2091
  class: "animate-fade",
1938
2092
  viewBox: "0 0 24 24"
1939
- }, F1 = /* @__PURE__ */ Re(() => /* @__PURE__ */ a("g", {
2093
+ }, ms = /* @__PURE__ */ He(() => /* @__PURE__ */ i("g", {
1940
2094
  fill: "none",
1941
2095
  stroke: "currentColor",
1942
2096
  "stroke-linecap": "round",
1943
2097
  "stroke-linejoin": "round",
1944
2098
  "stroke-width": "2"
1945
2099
  }, [
1946
- /* @__PURE__ */ a("circle", {
2100
+ /* @__PURE__ */ i("circle", {
1947
2101
  cx: "12",
1948
2102
  cy: "12",
1949
2103
  r: ".5",
1950
2104
  fill: "currentColor"
1951
2105
  }),
1952
- /* @__PURE__ */ a("path", { d: "M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2" })
1953
- ], -1)), G1 = [
1954
- F1
1955
- ], K1 = /* @__PURE__ */ Re(() => /* @__PURE__ */ a("p", null, " Click on a component on the page to select it ", -1)), W1 = { class: "flex items-center justify-center" }, Te = "components", J1 = /* @__PURE__ */ G({
2106
+ /* @__PURE__ */ i("path", { d: "M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2" })
2107
+ ], -1)), _s = [
2108
+ ms
2109
+ ], gs = /* @__PURE__ */ He(() => /* @__PURE__ */ i("p", null, " Click on a component on the page to select it ", -1)), Cs = { class: "flex items-center justify-center" }, Ve = "components", xs = /* @__PURE__ */ B({
1956
2110
  __name: "index",
1957
2111
  emits: ["openInEditor", "onInspectComponentStart", "onInspectComponentEnd"],
1958
2112
  setup(t, { emit: e }) {
1959
- const n = e, o = I(), s = I(!1), { width: l } = ho(o), c = D(() => s.value ? l.value < 700 : !1), i = I(""), u = I(""), [C, f] = ro(!0), d = I(!1), v = I(!1), m = I(""), x = I(!1);
1960
- function h(N, S = [], O = []) {
1961
- var Z;
1962
- return S.push(N.id), ((Z = N.children) == null ? void 0 : Z.length) === 0 && O.push([...S]), Array.isArray(N.children) && N.children.forEach((J) => {
1963
- h(J, S, O);
1964
- }), S.pop(), O;
1965
- }
1966
- function $(N) {
1967
- const S = [], O = (Z) => {
1968
- Z == null || Z.forEach((J) => {
1969
- var be;
1970
- S.push(J), (be = J.children) != null && be.length && O(J.children);
2113
+ const n = e, o = I(), l = I(!1), { width: s } = So(o), u = D(() => l.value ? s.value < 700 : !1), c = I(""), d = I(""), [C, v] = yo(!0), a = I(!1), f = I(!1), m = I(""), y = I(!1);
2114
+ function _(w, E = [], L = []) {
2115
+ var G;
2116
+ return E.push(w.id), ((G = w.children) == null ? void 0 : G.length) === 0 && L.push([...E]), Array.isArray(w.children) && w.children.forEach((q) => {
2117
+ _(q, E, L);
2118
+ }), E.pop(), L;
2119
+ }
2120
+ function k(w) {
2121
+ const E = [], L = (G) => {
2122
+ G == null || G.forEach((q) => {
2123
+ var $e;
2124
+ E.push(q), ($e = q.children) != null && $e.length && L(q.children);
1971
2125
  });
1972
2126
  };
1973
- return O(N), S;
1974
- }
1975
- function j(N, S) {
1976
- const O = [];
1977
- return N == null || N.forEach((Z) => {
1978
- O.push(...Z.slice(0, S + 1));
1979
- }), [...new Set(O)];
1980
- }
1981
- function L(N, S) {
1982
- const O = [];
1983
- return N.forEach((Z) => {
1984
- const J = Z.indexOf(S);
1985
- J !== -1 && O.push(...Z.slice(0, J + 1));
1986
- }), [...new Set(O)];
1987
- }
1988
- const E = I([]), w = D(() => {
1989
- var N, S;
1990
- return (N = E.value) != null && N.length ? h((S = E.value) == null ? void 0 : S[0]) : [];
1991
- }), V = D(() => $(E.value)), M = D(() => V.value.map((N) => N.id)), K = I({}), B = I(""), T = D(() => {
1992
- const N = [], S = (O) => {
1993
- O.forEach((Z) => {
1994
- var J;
1995
- Z.id === B.value && N.push(Z), (J = Z.children) != null && J.length && S(Z.children);
2127
+ return L(w), E;
2128
+ }
2129
+ function O(w, E) {
2130
+ const L = [];
2131
+ return w == null || w.forEach((G) => {
2132
+ L.push(...G.slice(0, E + 1));
2133
+ }), [...new Set(L)];
2134
+ }
2135
+ function j(w, E) {
2136
+ const L = [];
2137
+ return w.forEach((G) => {
2138
+ const q = G.indexOf(E);
2139
+ q !== -1 && L.push(...G.slice(0, q + 1));
2140
+ }), [...new Set(L)];
2141
+ }
2142
+ const V = I([]), $ = D(() => {
2143
+ var w, E;
2144
+ return (w = V.value) != null && w.length ? _((E = V.value) == null ? void 0 : E[0]) : [];
2145
+ }), N = D(() => k(V.value)), H = D(() => N.value.map((w) => w.id)), K = I({}), Z = I(""), T = D(() => {
2146
+ const w = [], E = (L) => {
2147
+ L.forEach((G) => {
2148
+ var q;
2149
+ G.id === Z.value && w.push(G), (q = G.children) != null && q.length && E(G.children);
1996
2150
  });
1997
2151
  };
1998
- return S(E.value), N[0];
2152
+ return E(V.value), w[0];
1999
2153
  }), P = D(() => {
2000
- var N;
2001
- return ((N = T.value) == null ? void 0 : N.file) ?? "";
2154
+ var w;
2155
+ return ((w = T.value) == null ? void 0 : w.file) ?? "";
2002
2156
  }), b = D(() => {
2003
- const N = {};
2004
- for (const S in K.value) {
2005
- const Z = K.value[S].filter((be) => {
2157
+ const w = {};
2158
+ for (const E in K.value) {
2159
+ const G = K.value[E].filter(($e) => {
2006
2160
  try {
2007
- return Uo({
2008
- [be.key]: be.value
2009
- }, u.value);
2010
- } catch (Zt) {
2161
+ return e1({
2162
+ [$e.key]: $e.value
2163
+ }, d.value);
2164
+ } catch (Qt) {
2011
2165
  return {
2012
- [be.key]: Zt
2166
+ [$e.key]: Qt
2013
2167
  };
2014
2168
  }
2015
- }), J = pn(Object.values(fn(St(Z), "stateType")));
2016
- Z.length && (N[S] = J);
2169
+ }), q = wn(Object.values(kn(At(G), "stateType")));
2170
+ G.length && (w[E] = q);
2017
2171
  }
2018
- return N;
2019
- }), { expanded: k } = ve(), { expanded: _ } = ve("component-state");
2020
- Go();
2021
- async function A(N = "") {
2022
- return R.value.getInspectorTree({ inspectorId: Te, filter: N }).then((S) => {
2023
- var Z, J;
2024
- const O = Y(S);
2025
- E.value = O, B.value = (J = (Z = E.value) == null ? void 0 : Z[0]) == null ? void 0 : J.id, k.value = j(w.value, 1), d.value = !0;
2172
+ return w;
2173
+ }), { expanded: S } = ve(), { expanded: g } = ve("component-state");
2174
+ o1();
2175
+ async function A(w = "") {
2176
+ return R.value.getInspectorTree({ inspectorId: Ve, filter: w }).then((E) => {
2177
+ var G, q;
2178
+ const L = Y(E);
2179
+ V.value = L, Z.value = (q = (G = V.value) == null ? void 0 : G[0]) == null ? void 0 : q.id, S.value = O($.value, 1), a.value = !0;
2026
2180
  });
2027
2181
  }
2028
- function U(N) {
2029
- if (!N || !(N != null && N.state))
2182
+ function F(w) {
2183
+ if (!w || !(w != null && w.state))
2030
2184
  return {};
2031
- const S = {};
2032
- return N.state.forEach((O) => {
2033
- S[O.type] || (S[O.type] = []), S[O.type].push(O);
2034
- }), S;
2035
- }
2036
- function se(N) {
2037
- R.value.getInspectorState({ inspectorId: Te, nodeId: N }).then((S) => {
2038
- const O = Y(S);
2039
- O && (K.value = U(O), _.value = Array.from({ length: Object.keys(K.value).length }, (Z, J) => `${J}`));
2185
+ const E = {};
2186
+ return w.state.forEach((L) => {
2187
+ E[L.type] || (E[L.type] = []), E[L.type].push(L);
2188
+ }), E;
2189
+ }
2190
+ function le(w) {
2191
+ R.value.getInspectorState({ inspectorId: Ve, nodeId: w }).then((E) => {
2192
+ const L = Y(E);
2193
+ L && (K.value = F(L), g.value = Array.from({ length: Object.keys(K.value).length }, (G, q) => `${q}`));
2040
2194
  });
2041
2195
  }
2042
- X(B, (N) => {
2043
- se(N), x.value && Le();
2196
+ X(Z, (w) => {
2197
+ le(w), y.value && Ue();
2044
2198
  });
2045
- function le(N) {
2046
- const S = Y(N);
2047
- S.inspectorId !== Te || S.nodeId !== B.value || (K.value = U({ state: S.state.state }));
2048
- }
2049
- R.functions.on(W.INSPECTOR_STATE_UPDATED, le), A();
2050
- function re(N) {
2051
- const S = N.trim().toLowerCase();
2052
- f(), A(S).then(() => {
2053
- f();
2199
+ function re(w) {
2200
+ const E = Y(w);
2201
+ E.inspectorId !== Ve || E.nodeId !== Z.value || (K.value = F({ state: E.state.state }));
2202
+ }
2203
+ R.functions.on(W.INSPECTOR_STATE_UPDATED, re), A();
2204
+ function ce(w) {
2205
+ const E = w.trim().toLowerCase();
2206
+ v(), A(E).then(() => {
2207
+ v();
2054
2208
  });
2055
2209
  }
2056
- co(i, (N) => {
2057
- re(N);
2210
+ bo(c, (w) => {
2211
+ ce(w);
2058
2212
  }, { debounce: 300 });
2059
- function me(N) {
2060
- var O, Z;
2061
- const S = Y(N);
2062
- S.inspectorId === Te && (i.value ? re(i.value) : E.value = S.rootNodes, M.value.includes(B.value) || (B.value = (Z = (O = E.value) == null ? void 0 : O[0]) == null ? void 0 : Z.id, k.value = j(w.value, 1)));
2213
+ function me(w) {
2214
+ var L, G;
2215
+ const E = Y(w);
2216
+ E.inspectorId === Ve && (c.value ? ce(c.value) : V.value = E.rootNodes, H.value.includes(Z.value) || (Z.value = (G = (L = V.value) == null ? void 0 : L[0]) == null ? void 0 : G.id, S.value = O($.value, 1)));
2063
2217
  }
2064
2218
  R.functions.on(W.INSPECTOR_TREE_UPDATED, me), xe(() => {
2065
- R.functions.off(W.INSPECTOR_STATE_UPDATED, le), R.functions.off(W.INSPECTOR_TREE_UPDATED, me);
2219
+ R.functions.off(W.INSPECTOR_STATE_UPDATED, re), R.functions.off(W.INSPECTOR_TREE_UPDATED, me);
2066
2220
  });
2067
2221
  function _e() {
2068
- v.value = !0, n("onInspectComponentStart"), R.value.inspectComponentInspector().then((N) => {
2069
- const S = JSON.parse(N);
2070
- B.value = S.id, k.value.includes(S.id) || k.value.push(S.id), k.value = [.../* @__PURE__ */ new Set([...k.value, ...L(w.value, S.id)])], Ut();
2222
+ f.value = !0, n("onInspectComponentStart"), R.value.inspectComponentInspector().then((w) => {
2223
+ const E = JSON.parse(w);
2224
+ Z.value = E.id, S.value.includes(E.id) || S.value.push(E.id), S.value = [.../* @__PURE__ */ new Set([...S.value, ...j($.value, E.id)])], qt();
2071
2225
  }).finally(() => {
2072
- v.value = !1, n("onInspectComponentEnd");
2226
+ f.value = !1, n("onInspectComponentEnd");
2073
2227
  });
2074
2228
  }
2075
- function Pe() {
2076
- v.value = !1, R.value.cancelInspectComponentInspector();
2229
+ function Le() {
2230
+ f.value = !1, R.value.cancelInspectComponentInspector();
2077
2231
  }
2078
- function Me() {
2079
- R.value.scrollToComponent(B.value);
2232
+ function je() {
2233
+ R.value.scrollToComponent(Z.value);
2080
2234
  }
2081
- function He() {
2082
- R.value.inspectDOM(B.value).then(() => {
2235
+ function Oe() {
2236
+ R.value.inspectDOM(Z.value).then(() => {
2083
2237
  chrome.devtools.inspectedWindow.eval("inspect(window.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__)");
2084
2238
  });
2085
2239
  }
2086
- function Le() {
2087
- R.value.getComponentRenderCode(B.value).then((N) => {
2088
- m.value = N, x.value = !0;
2240
+ function Ue() {
2241
+ R.value.getComponentRenderCode(Z.value).then((w) => {
2242
+ m.value = w, y.value = !0;
2089
2243
  });
2090
2244
  }
2091
- function Ge() {
2245
+ function We() {
2092
2246
  n("openInEditor", P.value);
2093
2247
  }
2094
- const Ie = I();
2095
- function Ut() {
2248
+ const Ee = I();
2249
+ function qt() {
2096
2250
  setTimeout(() => {
2097
- var S;
2098
- const N = (S = Ie.value) == null ? void 0 : S.querySelector(".active");
2099
- N == null || N.scrollIntoView({ behavior: "smooth", block: "center" });
2251
+ var E;
2252
+ const w = (E = Ee.value) == null ? void 0 : E.querySelector(".active");
2253
+ w == null || w.scrollIntoView({ behavior: "smooth", block: "center" });
2100
2254
  }, 300);
2101
2255
  }
2102
- function Bt() {
2103
- m.value = "", x.value = !1;
2256
+ function Jt() {
2257
+ m.value = "", y.value = !1;
2258
+ }
2259
+ const qe = rn(), ht = D(() => qe.appRecords.value.map((w) => ({
2260
+ label: w.name + (w.version ? ` (${w.version})` : ""),
2261
+ value: w.id
2262
+ }))), Yt = D(() => ht.value.map((w) => ({
2263
+ label: w.label,
2264
+ id: w.value
2265
+ }))), Je = I(qe.activeAppRecordId.value);
2266
+ nt(() => {
2267
+ Je.value = qe.activeAppRecordId.value;
2268
+ });
2269
+ function Xt(w) {
2270
+ R.value.toggleApp(w).then(() => {
2271
+ Z.value = "", A();
2272
+ });
2104
2273
  }
2105
- return (N, S) => (p(), g("div", E1, [
2106
- y(r(Ee), {
2274
+ return (w, E) => (p(), h("div", Q1, [
2275
+ x(r(Ae), {
2107
2276
  ref_key: "splitpanesRef",
2108
2277
  ref: o,
2109
2278
  class: "flex-1 overflow-auto",
2110
- horizontal: c.value,
2111
- onReady: S[3] || (S[3] = (O) => s.value = !0)
2279
+ horizontal: u.value,
2280
+ onReady: E[4] || (E[4] = (L) => l.value = !0)
2112
2281
  }, {
2113
- default: H(() => [
2114
- y(r(ue), {
2282
+ default: M(() => [
2283
+ ht.value.length > 1 ? (p(), z(r(ue), {
2284
+ key: 0,
2285
+ border: "base h-full",
2286
+ size: "20"
2287
+ }, {
2288
+ default: M(() => [
2289
+ i("div", es, [
2290
+ x(X1, {
2291
+ modelValue: Je.value,
2292
+ "onUpdate:modelValue": E[0] || (E[0] = (L) => Je.value = L),
2293
+ data: Yt.value,
2294
+ class: "w-full",
2295
+ onSelect: Xt
2296
+ }, null, 8, ["modelValue", "data"])
2297
+ ])
2298
+ ]),
2299
+ _: 1
2300
+ })) : U("", !0),
2301
+ x(r(ue), {
2115
2302
  border: "base",
2116
2303
  "h-full": ""
2117
2304
  }, {
2118
- default: H(() => [
2119
- d.value ? (p(), g("div", V1, [
2120
- a("div", N1, [
2121
- y(r(We), {
2122
- modelValue: i.value,
2123
- "onUpdate:modelValue": S[0] || (S[0] = (O) => i.value = O),
2305
+ default: M(() => [
2306
+ a.value ? (p(), h("div", ts, [
2307
+ i("div", ns, [
2308
+ x(r(Xe), {
2309
+ modelValue: c.value,
2310
+ "onUpdate:modelValue": E[1] || (E[1] = (L) => c.value = L),
2124
2311
  "loading-debounce-time": 250,
2125
2312
  loading: !r(C),
2126
2313
  placeholder: "Find components...",
2127
2314
  class: "flex-1 text-3.5"
2128
2315
  }, null, 8, ["modelValue", "loading"]),
2129
- r(cn) ? z("", !0) : q((p(), g("button", {
2316
+ r(yn) ? U("", !0) : J((p(), h("button", {
2130
2317
  key: 0,
2131
2318
  "px-1": "",
2132
2319
  class: "hover:color-#00dc82",
2133
2320
  onClick: _e
2134
2321
  }, [
2135
- (p(), g("svg", A1, D1))
2322
+ (p(), h("svg", os, ls))
2136
2323
  ])), [
2137
2324
  [
2138
2325
  r(Q),
@@ -2142,47 +2329,47 @@ const Wo = ["onClick", "onDblclick"], Jo = {
2142
2329
  ]
2143
2330
  ])
2144
2331
  ]),
2145
- a("div", {
2332
+ i("div", {
2146
2333
  ref_key: "componentTreeContainer",
2147
- ref: Ie,
2334
+ ref: Ee,
2148
2335
  class: "no-scrollbar flex-1 select-none overflow-scroll"
2149
2336
  }, [
2150
- y(Ae, {
2151
- modelValue: B.value,
2152
- "onUpdate:modelValue": S[1] || (S[1] = (O) => B.value = O),
2153
- data: E.value,
2337
+ x(Me, {
2338
+ modelValue: Z.value,
2339
+ "onUpdate:modelValue": E[2] || (E[2] = (L) => Z.value = L),
2340
+ data: V.value,
2154
2341
  "with-tag": !0
2155
2342
  }, null, 8, ["modelValue", "data"])
2156
2343
  ], 512)
2157
- ])) : z("", !0)
2344
+ ])) : U("", !0)
2158
2345
  ]),
2159
2346
  _: 1
2160
2347
  }),
2161
- y(r(ue), {
2348
+ x(r(ue), {
2162
2349
  relative: "",
2163
2350
  "h-full": ""
2164
2351
  }, {
2165
- default: H(() => {
2166
- var O;
2352
+ default: M(() => {
2353
+ var L;
2167
2354
  return [
2168
- a("div", P1, [
2169
- a("div", M1, [
2170
- (O = T.value) != null && O.name ? (p(), g("span", H1, [
2171
- L1,
2172
- a("span", O1, ae(T.value.name), 1),
2173
- j1
2174
- ])) : z("", !0),
2175
- y(r(We), {
2176
- modelValue: u.value,
2177
- "onUpdate:modelValue": S[2] || (S[2] = (Z) => u.value = Z),
2355
+ i("div", as, [
2356
+ i("div", is, [
2357
+ (L = T.value) != null && L.name ? (p(), h("span", rs, [
2358
+ us,
2359
+ i("span", cs, oe(T.value.name), 1),
2360
+ ds
2361
+ ])) : U("", !0),
2362
+ x(r(Xe), {
2363
+ modelValue: d.value,
2364
+ "onUpdate:modelValue": E[3] || (E[3] = (G) => d.value = G),
2178
2365
  "loading-debounce-time": 250,
2179
2366
  placeholder: "Filter State...",
2180
2367
  class: "flex-1 text-3.5"
2181
2368
  }, null, 8, ["modelValue"]),
2182
- a("div", z1, [
2183
- q(a("i", {
2369
+ i("div", ps, [
2370
+ J(i("i", {
2184
2371
  class: "i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",
2185
- onClick: Me
2372
+ onClick: je
2186
2373
  }, null, 512), [
2187
2374
  [
2188
2375
  r(Q),
@@ -2191,9 +2378,9 @@ const Wo = ["onClick", "onDblclick"], Jo = {
2191
2378
  { bottom: !0 }
2192
2379
  ]
2193
2380
  ]),
2194
- q(a("i", {
2381
+ J(i("i", {
2195
2382
  class: "i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",
2196
- onClick: Le
2383
+ onClick: Ue
2197
2384
  }, null, 512), [
2198
2385
  [
2199
2386
  r(Q),
@@ -2202,10 +2389,10 @@ const Wo = ["onClick", "onDblclick"], Jo = {
2202
2389
  { bottom: !0 }
2203
2390
  ]
2204
2391
  ]),
2205
- r(mt) ? q((p(), g("i", {
2392
+ r(wt) ? J((p(), h("i", {
2206
2393
  key: 0,
2207
2394
  class: "i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",
2208
- onClick: He
2395
+ onClick: Oe
2209
2396
  }, null, 512)), [
2210
2397
  [
2211
2398
  r(Q),
@@ -2213,11 +2400,11 @@ const Wo = ["onClick", "onDblclick"], Jo = {
2213
2400
  void 0,
2214
2401
  { bottom: !0 }
2215
2402
  ]
2216
- ]) : z("", !0),
2217
- P.value ? q((p(), g("i", {
2403
+ ]) : U("", !0),
2404
+ P.value ? J((p(), h("i", {
2218
2405
  key: 1,
2219
2406
  class: "i-carbon-launch h-4 w-4 cursor-pointer hover:op-70",
2220
- onClick: Ge
2407
+ onClick: We
2221
2408
  }, null, 512)), [
2222
2409
  [
2223
2410
  r(Q),
@@ -2225,22 +2412,22 @@ const Wo = ["onClick", "onDblclick"], Jo = {
2225
2412
  void 0,
2226
2413
  { bottom: !0 }
2227
2414
  ]
2228
- ]) : z("", !0)
2415
+ ]) : U("", !0)
2229
2416
  ])
2230
2417
  ]),
2231
- y(Ne, {
2418
+ x(Pe, {
2232
2419
  class: "no-scrollbar flex-1 select-none overflow-scroll",
2233
2420
  data: b.value,
2234
- "node-id": B.value,
2235
- "inspector-id": Te,
2421
+ "node-id": Z.value,
2422
+ "inspector-id": Ve,
2236
2423
  "expanded-state-id": "component-state"
2237
2424
  }, null, 8, ["data", "node-id"])
2238
2425
  ]),
2239
- x.value && m.value ? (p(), F(S1, {
2426
+ y.value && m.value ? (p(), z(q1, {
2240
2427
  key: 0,
2241
2428
  code: m.value,
2242
- onClose: Bt
2243
- }, null, 8, ["code"])) : z("", !0)
2429
+ onClose: Jt
2430
+ }, null, 8, ["code"])) : U("", !0)
2244
2431
  ];
2245
2432
  }),
2246
2433
  _: 1
@@ -2248,105 +2435,105 @@ const Wo = ["onClick", "onDblclick"], Jo = {
2248
2435
  ]),
2249
2436
  _: 1
2250
2437
  }, 8, ["horizontal"]),
2251
- r(mt) ? (p(), F(r(rn), {
2438
+ r(wt) ? (p(), z(r(xn), {
2252
2439
  key: 0,
2253
- modelValue: v.value,
2254
- "onUpdate:modelValue": S[4] || (S[4] = (O) => v.value = O),
2440
+ modelValue: f.value,
2441
+ "onUpdate:modelValue": E[5] || (E[5] = (L) => f.value = L),
2255
2442
  title: "",
2256
2443
  height: "12rem",
2257
2444
  closable: !1
2258
2445
  }, {
2259
- footer: H(() => [
2260
- a("div", W1, [
2261
- y(r(ce), { onClick: Pe }, {
2262
- default: H(() => [
2263
- te(" Cancel ")
2446
+ footer: M(() => [
2447
+ i("div", Cs, [
2448
+ x(r(de), { onClick: Le }, {
2449
+ default: M(() => [
2450
+ ne(" Cancel ")
2264
2451
  ]),
2265
2452
  _: 1
2266
2453
  })
2267
2454
  ])
2268
2455
  ]),
2269
- default: H(() => [
2270
- a("div", U1, [
2271
- a("span", B1, [
2272
- (p(), g("svg", Z1, G1))
2456
+ default: M(() => [
2457
+ i("div", fs, [
2458
+ i("span", vs, [
2459
+ (p(), h("svg", hs, _s))
2273
2460
  ]),
2274
- K1
2461
+ gs
2275
2462
  ])
2276
2463
  ]),
2277
2464
  _: 1
2278
- }, 8, ["modelValue"])) : z("", !0)
2465
+ }, 8, ["modelValue"])) : U("", !0)
2279
2466
  ]));
2280
2467
  }
2281
- }), Al = /* @__PURE__ */ ye(J1, [["__scopeId", "data-v-ddb3f55a"]]), q1 = {}, Y1 = {
2468
+ }), la = /* @__PURE__ */ ye(xs, [["__scopeId", "data-v-092d4be1"]]), ys = {}, bs = {
2282
2469
  viewBox: "0 0 566 154",
2283
2470
  fill: "none",
2284
2471
  xmlns: "http://www.w3.org/2000/svg"
2285
- }, X1 = /* @__PURE__ */ a("svg", {
2472
+ }, $s = /* @__PURE__ */ i("svg", {
2286
2473
  xmlns: "http://www.w3.org/2000/svg",
2287
2474
  width: "8em",
2288
2475
  height: "8em",
2289
2476
  viewBox: "0 -4 24 24"
2290
2477
  }, [
2291
- /* @__PURE__ */ a("path", {
2478
+ /* @__PURE__ */ i("path", {
2292
2479
  fill: "#3dd68c",
2293
2480
  d: "M4 15V8.5a4.5 4.5 0 0 1 9 0v7a2.5 2.5 0 0 0 5 0V8.83a3.001 3.001 0 1 1 2 0v6.67a4.5 4.5 0 1 1-9 0v-7a2.5 2.5 0 0 0-5 0V15h3l-4 5l-4-5zm15-8a1 1 0 1 0 0-2a1 1 0 0 0 0 2"
2294
2481
  })
2295
- ], -1), Q1 = /* @__PURE__ */ a("path", {
2482
+ ], -1), ws = /* @__PURE__ */ i("path", {
2296
2483
  d: "M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z",
2297
2484
  fill: "currentColor"
2298
- }, null, -1), es = [
2299
- X1,
2300
- Q1
2485
+ }, null, -1), ks = [
2486
+ $s,
2487
+ ws
2301
2488
  ];
2302
- function ts(t, e) {
2303
- return p(), g("svg", Y1, es);
2489
+ function Is(t, e) {
2490
+ return p(), h("svg", bs, ks);
2304
2491
  }
2305
- const ns = /* @__PURE__ */ ye(q1, [["render", ts]]), os = {
2492
+ const Ss = /* @__PURE__ */ ye(ys, [["render", Is]]), Ts = {
2306
2493
  "h-full": "",
2307
2494
  "w-full": "",
2308
2495
  flex: "",
2309
2496
  "items-center": ""
2310
- }, ss = {
2497
+ }, Es = {
2311
2498
  flex: "~ col gap2",
2312
2499
  ma: "",
2313
2500
  "px-5": ""
2314
- }, ls = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), as = {
2501
+ }, Vs = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Ns = {
2315
2502
  flex: "~ col",
2316
2503
  "mt-20": "",
2317
2504
  "items-center": ""
2318
- }, is = {
2505
+ }, Rs = {
2319
2506
  flex: "~",
2320
2507
  "mt--10": "",
2321
2508
  "items-center": "",
2322
2509
  "justify-center": ""
2323
- }, rs = /* @__PURE__ */ a("div", {
2510
+ }, As = /* @__PURE__ */ i("div", {
2324
2511
  mb6: "",
2325
2512
  "mt--1": "",
2326
2513
  "text-center": "",
2327
2514
  "text-sm": "",
2328
2515
  flex: "~ gap-1"
2329
2516
  }, [
2330
- /* @__PURE__ */ a("span", { op40: "" }, " Router DevTools ")
2331
- ], -1), cs = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), us = { flex: "~ gap2 wrap" }, ds = /* @__PURE__ */ a("div", {
2517
+ /* @__PURE__ */ i("span", { op40: "" }, " Router DevTools ")
2518
+ ], -1), Ds = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Ps = { flex: "~ gap2 wrap" }, Ms = /* @__PURE__ */ i("div", {
2332
2519
  "i-carbon-tree-view-alt": "",
2333
2520
  "text-3xl": ""
2334
- }, null, -1), ps = /* @__PURE__ */ a("code", null, "Routes", -1), fs = [
2335
- ds,
2336
- ps
2337
- ], vs = /* @__PURE__ */ a("div", {
2521
+ }, null, -1), Hs = /* @__PURE__ */ i("code", null, "Routes", -1), Ls = [
2522
+ Ms,
2523
+ Hs
2524
+ ], js = /* @__PURE__ */ i("div", {
2338
2525
  "i-mdi:timeline-clock-outline": "",
2339
2526
  "text-3xl": ""
2340
- }, null, -1), hs = /* @__PURE__ */ a("div", null, "Timeline", -1), ms = [
2341
- vs,
2342
- hs
2343
- ], _s = /* @__PURE__ */ a("div", {
2527
+ }, null, -1), Os = /* @__PURE__ */ i("div", null, "Timeline", -1), Us = [
2528
+ js,
2529
+ Os
2530
+ ], zs = /* @__PURE__ */ i("div", {
2344
2531
  flex: "~ gap-6 wrap",
2345
2532
  "mt-5": "",
2346
2533
  "items-center": "",
2347
2534
  "justify-center": ""
2348
2535
  }, [
2349
- /* @__PURE__ */ a("a", {
2536
+ /* @__PURE__ */ i("a", {
2350
2537
  href: "https://github.com/vuejs/router",
2351
2538
  target: "_blank",
2352
2539
  flex: "~ gap1",
@@ -2355,10 +2542,10 @@ const ns = /* @__PURE__ */ ye(q1, [["render", ts]]), os = {
2355
2542
  hover: "op100 text-blue",
2356
2543
  transition: ""
2357
2544
  }, [
2358
- /* @__PURE__ */ a("div", { "i-carbon-star": "" }),
2359
- /* @__PURE__ */ te(" Star on GitHub ")
2545
+ /* @__PURE__ */ i("div", { "i-carbon-star": "" }),
2546
+ /* @__PURE__ */ ne(" Star on GitHub ")
2360
2547
  ]),
2361
- /* @__PURE__ */ a("a", {
2548
+ /* @__PURE__ */ i("a", {
2362
2549
  href: "https://router.vuejs.org/",
2363
2550
  target: "_blank",
2364
2551
  flex: "~ gap1",
@@ -2367,176 +2554,162 @@ const ns = /* @__PURE__ */ ye(q1, [["render", ts]]), os = {
2367
2554
  hover: "op100 text-yellow",
2368
2555
  transition: ""
2369
2556
  }, [
2370
- /* @__PURE__ */ a("div", { "i-carbon-document": "" }),
2371
- /* @__PURE__ */ te(" View Documentation ")
2557
+ /* @__PURE__ */ i("div", { "i-carbon-document": "" }),
2558
+ /* @__PURE__ */ ne(" View Documentation ")
2372
2559
  ])
2373
- ], -1), gs = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), Cs = /* @__PURE__ */ G({
2560
+ ], -1), Bs = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Zs = /* @__PURE__ */ B({
2374
2561
  __name: "About",
2375
2562
  setup(t) {
2376
- const e = Ve();
2377
- return (n, o) => (p(), g("div", os, [
2378
- a("div", ss, [
2379
- ls,
2380
- a("div", as, [
2381
- a("div", is, [
2382
- y(ns, { "h-18": "" })
2563
+ const e = De();
2564
+ return (n, o) => (p(), h("div", Ts, [
2565
+ i("div", Es, [
2566
+ Vs,
2567
+ i("div", Ns, [
2568
+ i("div", Rs, [
2569
+ x(Ss, { "h-18": "" })
2383
2570
  ]),
2384
- rs
2571
+ As
2385
2572
  ]),
2386
- cs,
2387
- a("div", us, [
2388
- a("div", {
2573
+ Ds,
2574
+ i("div", Ps, [
2575
+ i("div", {
2389
2576
  flex: "~ col auto",
2390
2577
  "min-w-40": "",
2391
2578
  p4: "",
2392
2579
  "theme-card-lime": "",
2393
- onClick: o[0] || (o[0] = (s) => r(e).push("/routes"))
2394
- }, fs),
2395
- a("div", {
2580
+ onClick: o[0] || (o[0] = (l) => r(e).push("/routes"))
2581
+ }, Ls),
2582
+ i("div", {
2396
2583
  flex: "~ col auto",
2397
2584
  "min-w-40": "",
2398
2585
  p4: "",
2399
2586
  "theme-card-lime": "",
2400
- onClick: o[1] || (o[1] = (s) => r(e).push("/timeline"))
2401
- }, ms)
2587
+ onClick: o[1] || (o[1] = (l) => r(e).push("/timeline"))
2588
+ }, Us)
2402
2589
  ]),
2403
- _s,
2404
- gs
2590
+ zs,
2591
+ Bs
2405
2592
  ])
2406
2593
  ]));
2407
2594
  }
2408
- }), jt = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
2409
- function De() {
2410
- return Ce(jt);
2411
- }
2412
- function zt() {
2413
- const t = I({
2414
- homepage: "",
2415
- id: "",
2416
- label: "",
2417
- logo: "",
2418
- timelineLayerIds: []
2419
- });
2420
- return $e(jt, t), t;
2421
- }
2422
- const xs = { class: "h-full flex flex-col" }, ys = {
2595
+ }), Fs = { class: "h-full flex flex-col" }, Gs = {
2423
2596
  "h-full": "",
2424
2597
  "select-none": "",
2425
2598
  "overflow-scroll": "",
2426
2599
  p2: "",
2427
2600
  class: "no-scrollbar"
2428
- }, bs = {
2601
+ }, Ks = {
2429
2602
  "h-full": "",
2430
2603
  "select-none": "",
2431
2604
  "overflow-scroll": "",
2432
2605
  class: "no-scrollbar"
2433
- }, ws = /* @__PURE__ */ G({
2606
+ }, Ws = /* @__PURE__ */ B({
2434
2607
  __name: "Index",
2435
2608
  setup(t) {
2436
- const { expanded: e } = ve(), { expanded: n } = ve("routes-state"), o = De(), s = D(() => o.value.id), l = I(""), c = I([]), i = D(() => {
2437
- var w, V;
2438
- return (w = c.value) != null && w.length ? d((V = c.value) == null ? void 0 : V[0]) : [];
2439
- }), u = D(() => m(c.value)), C = D(() => u.value.map((w) => w.id)), f = I({});
2440
- function d(w, V = [], M = []) {
2609
+ const { expanded: e } = ve(), { expanded: n } = ve("routes-state"), o = be(), l = D(() => o.value.id), s = I(""), u = I([]), c = D(() => {
2610
+ var $, N;
2611
+ return ($ = u.value) != null && $.length ? a((N = u.value) == null ? void 0 : N[0]) : [];
2612
+ }), d = D(() => m(u.value)), C = D(() => d.value.map(($) => $.id)), v = I({});
2613
+ function a($, N = [], H = []) {
2441
2614
  var K;
2442
- return V.push(w.id), ((K = w.children) == null ? void 0 : K.length) === 0 && M.push([...V]), Array.isArray(w.children) && w.children.forEach((B) => {
2443
- d(B, V, M);
2444
- }), V.pop(), M;
2445
- }
2446
- function v(w, V) {
2447
- const M = [];
2448
- return w == null || w.forEach((K) => {
2449
- M.push(...K.slice(0, V + 1));
2450
- }), [...new Set(M)];
2451
- }
2452
- function m(w) {
2453
- const V = [], M = (K) => {
2454
- K == null || K.forEach((B) => {
2615
+ return N.push($.id), ((K = $.children) == null ? void 0 : K.length) === 0 && H.push([...N]), Array.isArray($.children) && $.children.forEach((Z) => {
2616
+ a(Z, N, H);
2617
+ }), N.pop(), H;
2618
+ }
2619
+ function f($, N) {
2620
+ const H = [];
2621
+ return $ == null || $.forEach((K) => {
2622
+ H.push(...K.slice(0, N + 1));
2623
+ }), [...new Set(H)];
2624
+ }
2625
+ function m($) {
2626
+ const N = [], H = (K) => {
2627
+ K == null || K.forEach((Z) => {
2455
2628
  var T;
2456
- V.push(B), (T = B.children) != null && T.length && M(B.children);
2629
+ N.push(Z), (T = Z.children) != null && T.length && H(Z.children);
2457
2630
  });
2458
2631
  };
2459
- return M(w), V;
2460
- }
2461
- function x(w) {
2462
- var V;
2463
- for (const M in w)
2464
- (V = w[M]) != null && V.length || delete w[M];
2465
- return w;
2632
+ return H($), N;
2466
2633
  }
2467
- function h(w) {
2468
- R.value.getInspectorState({ inspectorId: s.value, nodeId: w }).then((V) => {
2469
- const M = Y(V);
2470
- M && (f.value = x(M), n.value = Array.from({ length: Object.keys(f.value).length }, (K, B) => `${B}`));
2634
+ function y($) {
2635
+ var N;
2636
+ for (const H in $)
2637
+ (N = $[H]) != null && N.length || delete $[H];
2638
+ return $;
2639
+ }
2640
+ function _($) {
2641
+ R.value.getInspectorState({ inspectorId: l.value, nodeId: $ }).then((N) => {
2642
+ const H = Y(N);
2643
+ H && (v.value = y(H), n.value = Array.from({ length: Object.keys(v.value).length }, (K, Z) => `${Z}`));
2471
2644
  });
2472
2645
  }
2473
- function $() {
2474
- f.value = {};
2646
+ function k() {
2647
+ v.value = {};
2475
2648
  }
2476
- X(l, () => {
2477
- $(), h(l.value);
2649
+ X(s, () => {
2650
+ k(), _(s.value);
2478
2651
  });
2479
- const j = () => {
2480
- R.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((w) => {
2481
- const V = Y(w);
2482
- c.value = V, !l.value && V.length && (l.value = V[0].id, h(V[0].id), e.value = v(i.value, 1));
2652
+ const O = () => {
2653
+ R.value.getInspectorTree({ inspectorId: l.value, filter: "" }).then(($) => {
2654
+ const N = Y($);
2655
+ u.value = N, !s.value && N.length && (s.value = N[0].id, _(N[0].id), e.value = f(c.value, 1));
2483
2656
  });
2484
2657
  };
2485
- Vt(s).toBeTruthy().then(j);
2486
- function L(w) {
2487
- const V = Y(w);
2488
- V.inspectorId !== s.value || !V.rootNodes.length || (c.value = V.rootNodes, C.value.includes(l.value) || (l.value = V.rootNodes[0].id, e.value = v(i.value, 1), h(V.rootNodes[0].id)));
2489
- }
2490
- function E(w) {
2491
- const V = Y(w);
2492
- if (V.inspectorId !== s.value)
2658
+ Pt(l).toBeTruthy().then(O);
2659
+ function j($) {
2660
+ const N = Y($);
2661
+ N.inspectorId !== l.value || !N.rootNodes.length || (u.value = N.rootNodes, C.value.includes(s.value) || (s.value = N.rootNodes[0].id, e.value = f(c.value, 1), _(N.rootNodes[0].id)));
2662
+ }
2663
+ function V($) {
2664
+ const N = Y($);
2665
+ if (N.inspectorId !== l.value)
2493
2666
  return;
2494
- const M = V.state;
2495
- f.value = x(M);
2667
+ const H = N.state;
2668
+ v.value = y(H);
2496
2669
  }
2497
- return R.functions.on(W.INSPECTOR_TREE_UPDATED, L), R.functions.on(W.INSPECTOR_STATE_UPDATED, E), xe(() => {
2498
- R.functions.off(W.INSPECTOR_TREE_UPDATED, L), R.functions.off(W.INSPECTOR_STATE_UPDATED, E);
2499
- }), (w, V) => (p(), g("div", xs, [
2500
- y(Ze, {
2670
+ return R.functions.on(W.INSPECTOR_TREE_UPDATED, j), R.functions.on(W.INSPECTOR_STATE_UPDATED, V), xe(() => {
2671
+ R.functions.off(W.INSPECTOR_TREE_UPDATED, j), R.functions.off(W.INSPECTOR_STATE_UPDATED, V);
2672
+ }), ($, N) => (p(), h("div", Fs, [
2673
+ x(Te, {
2501
2674
  "doc-link": "https://router.vuejs.org/",
2502
2675
  "github-repo-link": "https://github.com/vuejs/router"
2503
2676
  }, {
2504
- default: H(() => [
2505
- y(Be)
2677
+ default: M(() => [
2678
+ x(Se)
2506
2679
  ]),
2507
2680
  _: 1
2508
2681
  }),
2509
- y(r(Ee), { class: "flex-1 overflow-auto" }, {
2510
- default: H(() => [
2511
- y(r(ue), {
2682
+ x(r(Ae), { class: "flex-1 overflow-auto" }, {
2683
+ default: M(() => [
2684
+ x(r(ue), {
2512
2685
  border: "r base",
2513
2686
  size: "40",
2514
2687
  "h-full": ""
2515
2688
  }, {
2516
- default: H(() => [
2517
- a("div", ys, [
2518
- y(Ae, {
2519
- modelValue: l.value,
2520
- "onUpdate:modelValue": V[0] || (V[0] = (M) => l.value = M),
2521
- data: c.value
2689
+ default: M(() => [
2690
+ i("div", Gs, [
2691
+ x(Me, {
2692
+ modelValue: s.value,
2693
+ "onUpdate:modelValue": N[0] || (N[0] = (H) => s.value = H),
2694
+ data: u.value
2522
2695
  }, null, 8, ["modelValue", "data"])
2523
2696
  ])
2524
2697
  ]),
2525
2698
  _: 1
2526
2699
  }),
2527
- y(r(ue), { size: "60" }, {
2528
- default: H(() => [
2529
- a("div", bs, [
2530
- l.value ? (p(), F(Ne, {
2700
+ x(r(ue), { size: "60" }, {
2701
+ default: M(() => [
2702
+ i("div", Ks, [
2703
+ s.value ? (p(), z(Pe, {
2531
2704
  key: 0,
2532
2705
  class: "p3",
2533
- data: f.value,
2706
+ data: v.value,
2534
2707
  "node-id": "",
2535
2708
  "inspector-id": "router",
2536
2709
  "expanded-state-id": "routes-state"
2537
- }, null, 8, ["data"])) : (p(), F(Se, { key: 1 }, {
2538
- default: H(() => [
2539
- te(" No Data ")
2710
+ }, null, 8, ["data"])) : (p(), z(Ne, { key: 1 }, {
2711
+ default: M(() => [
2712
+ ne(" No Data ")
2540
2713
  ]),
2541
2714
  _: 1
2542
2715
  }))
@@ -2549,189 +2722,189 @@ const xs = { class: "h-full flex flex-col" }, ys = {
2549
2722
  })
2550
2723
  ]));
2551
2724
  }
2552
- }), $s = /* @__PURE__ */ G({
2725
+ }), qs = /* @__PURE__ */ B({
2553
2726
  __name: "Index",
2554
2727
  setup(t) {
2555
- const e = De();
2556
- return (n, o) => (p(), F(rt, {
2728
+ const e = be();
2729
+ return (n, o) => (p(), z(vt, {
2557
2730
  "layer-ids": r(e).timelineLayerIds,
2558
2731
  "doc-link": "https://router.vuejs.org/",
2559
2732
  "github-repo-link": "https://github.com/vuejs/router"
2560
2733
  }, null, 8, ["layer-ids"]));
2561
2734
  }
2562
- }), ks = {
2735
+ }), Js = {
2563
2736
  "h-full": "",
2564
2737
  "w-full": ""
2565
- }, Rl = /* @__PURE__ */ G({
2738
+ }, aa = /* @__PURE__ */ B({
2566
2739
  __name: "index",
2567
2740
  props: {
2568
2741
  id: {}
2569
2742
  },
2570
2743
  setup(t) {
2571
- const e = t, n = zt(), o = I(!1), { VirtualRouterView: s, restoreRouter: l } = tt([
2744
+ const e = t, n = Kt(), o = I(!1), { VirtualRouterView: l, restoreRouter: s } = it([
2572
2745
  {
2573
2746
  path: "/routes",
2574
2747
  name: "Routes",
2575
- component: ws,
2748
+ component: Ws,
2576
2749
  icon: "i-carbon-tree-view-alt"
2577
2750
  },
2578
2751
  {
2579
2752
  path: "/timeline",
2580
2753
  name: "Timeline",
2581
- component: $s,
2754
+ component: qs,
2582
2755
  icon: "i-mdi:timeline-clock-outline"
2583
2756
  },
2584
2757
  {
2585
2758
  path: "/about",
2586
2759
  name: "About",
2587
- component: Cs,
2760
+ component: Zs,
2588
2761
  icon: "i-ri-route-line"
2589
2762
  }
2590
2763
  ], {
2591
2764
  defaultRoutePath: "/routes"
2592
2765
  });
2593
- function c() {
2594
- o.value = !0, Ue(() => {
2595
- R.value.getInspectorInfo(e.id).then((i) => {
2596
- if (!i)
2766
+ function u() {
2767
+ o.value = !0, Re(() => {
2768
+ R.value.getInspectorInfo(e.id).then((c) => {
2769
+ if (!c)
2597
2770
  return;
2598
- const u = {
2599
- homepage: i == null ? void 0 : i.homepage,
2600
- id: i == null ? void 0 : i.id,
2601
- label: i == null ? void 0 : i.label,
2602
- logo: i == null ? void 0 : i.logo,
2603
- timelineLayerIds: i == null ? void 0 : i.timelineLayers.map((C) => C.id)
2771
+ const d = {
2772
+ homepage: c == null ? void 0 : c.homepage,
2773
+ id: c == null ? void 0 : c.id,
2774
+ label: c == null ? void 0 : c.label,
2775
+ logo: c == null ? void 0 : c.logo,
2776
+ timelineLayerIds: c == null ? void 0 : c.timelineLayers.map((C) => C.id)
2604
2777
  };
2605
- n.value = u, l(), o.value = !1;
2778
+ n.value = d, s(), o.value = !1;
2606
2779
  });
2607
2780
  });
2608
2781
  }
2609
- return X(() => e.id, (i) => {
2610
- i && c();
2611
- }), (i, u) => (p(), g("div", ks, [
2612
- y(r(s))
2782
+ return X(() => e.id, (c) => {
2783
+ c && u();
2784
+ }), (c, d) => (p(), h("div", Js, [
2785
+ x(r(l))
2613
2786
  ]));
2614
2787
  }
2615
- }), Is = {}, Ts = {
2788
+ }), Ys = {}, Xs = {
2616
2789
  width: "175",
2617
2790
  height: "34",
2618
2791
  viewBox: "0 0 175 34",
2619
2792
  fill: "none",
2620
2793
  xmlns: "http://www.w3.org/2000/svg"
2621
- }, Ss = /* @__PURE__ */ a("path", {
2794
+ }, Qs = /* @__PURE__ */ i("path", {
2622
2795
  fill: "currentColor",
2623
2796
  d: "M0.570999 33.3121V1.80715H10.8288C13.6975 1.80715 16.3198 2.39225 18.6962 3.56242C21.0721 4.73263 22.9701 6.5029 24.3901 8.87327C25.81 11.2136 26.52 14.1091 26.52 17.5596C26.52 20.9801 25.81 23.8756 24.3901 26.2458C22.9701 28.6162 21.0721 30.3868 18.6962 31.5568C16.3198 32.7269 13.6975 33.3121 10.8288 33.3121H0.570999ZM10.1332 27.461C12.9439 27.461 15.2767 26.6812 17.1314 25.1208C18.9858 23.5306 19.913 21.0102 19.913 17.5596C19.913 14.1091 18.9858 11.5887 17.1314 9.99846C15.2767 8.40819 12.9439 7.61306 10.1332 7.61306H7.09085V27.461H10.1332ZM50.3628 25.6159C49.928 28.0463 48.7544 29.9966 46.8421 31.4669C44.9297 32.9368 42.6257 33.672 39.931 33.672C37.5551 33.672 35.5119 33.117 33.8024 32.007C32.1216 30.8668 30.8468 29.3965 29.9772 27.5961C29.1081 25.7961 28.6733 23.9056 28.6733 21.9253C28.6733 19.915 29.0645 18.0247 29.8468 16.2544C30.6584 14.4841 31.8756 13.0439 33.498 11.9337C35.1499 10.8236 37.1491 10.2685 39.4962 10.2685C41.9306 10.2685 43.9589 10.8086 45.5817 11.8888C47.2045 12.9689 48.3924 14.3491 49.1456 16.0294C49.928 17.7097 50.3192 19.4799 50.3192 21.3402C50.3192 22.0303 50.2904 22.7054 50.2324 23.3656H34.4979C34.7295 24.9858 35.3091 26.2612 36.2363 27.191C37.1927 28.0914 38.4243 28.5412 39.931 28.5412C41.1482 28.5412 42.1478 28.3014 42.9301 27.8214C43.7125 27.3111 44.2197 26.5759 44.4513 25.6159H50.3628ZM39.4962 14.8592C38.1055 14.8592 37.0043 15.2343 36.1931 15.9844C35.3815 16.7045 34.8455 17.8447 34.5847 19.4049H44.2777C44.1905 18.0847 43.7269 17.0045 42.8865 16.1644C42.0466 15.2943 40.9162 14.8592 39.4962 14.8592ZM64.1603 33.3121H58.5969L50.599 10.6285H56.7713L61.3788 25.3008L65.9427 10.6285H72.1582L64.1603 33.3121ZM88.2757 33.3121H81.7559V7.61306H72.7585V1.80715H97.2731V7.61306H88.2757V33.3121ZM106.325 33.672C104.123 33.672 102.138 33.1771 100.37 32.1868C98.6029 31.1667 97.2266 29.7717 96.2414 28.0011C95.2562 26.2011 94.7634 24.1907 94.7634 21.9703C94.7634 19.75 95.2562 17.7547 96.2414 15.9844C97.2266 14.1841 98.6029 12.7889 100.37 11.7987C102.138 10.7786 104.123 10.2685 106.325 10.2685C108.528 10.2685 110.513 10.7786 112.28 11.7987C114.048 12.7889 115.424 14.1841 116.409 15.9844C117.395 17.7547 117.887 19.75 117.887 21.9703C117.887 24.1907 117.395 26.2011 116.409 28.0011C115.424 29.7717 114.048 31.1667 112.28 32.1868C110.513 33.1771 108.528 33.672 106.325 33.672ZM106.325 28.2712C107.948 28.2712 109.266 27.6864 110.281 26.5159C111.295 25.3458 111.802 23.8306 111.802 21.9703C111.802 20.08 111.295 18.5498 110.281 17.3796C109.266 16.2094 107.948 15.6243 106.325 15.6243C104.702 15.6243 103.384 16.2094 102.37 17.3796C101.356 18.5498 100.848 20.08 100.848 21.9703C100.848 23.8306 101.356 25.3458 102.37 26.5159C103.384 27.6864 104.702 28.2712 106.325 28.2712ZM131.624 33.672C129.422 33.672 127.436 33.1771 125.669 32.1868C123.901 31.1667 122.525 29.7717 121.54 28.0011C120.555 26.2011 120.062 24.1907 120.062 21.9703C120.062 19.75 120.555 17.7547 121.54 15.9844C122.525 14.1841 123.901 12.7889 125.669 11.7987C127.436 10.7786 129.422 10.2685 131.624 10.2685C133.826 10.2685 135.811 10.7786 137.579 11.7987C139.346 12.7889 140.722 14.1841 141.708 15.9844C142.693 17.7547 143.186 19.75 143.186 21.9703C143.186 24.1907 142.693 26.2011 141.708 28.0011C140.722 29.7717 139.346 31.1667 137.579 32.1868C135.811 33.1771 133.826 33.672 131.624 33.672ZM131.624 28.2712C133.246 28.2712 134.565 27.6864 135.579 26.5159C136.593 25.3458 137.101 23.8306 137.101 21.9703C137.101 20.08 136.593 18.5498 135.579 17.3796C134.565 16.2094 133.246 15.6243 131.624 15.6243C130.001 15.6243 128.682 16.2094 127.668 17.3796C126.654 18.5498 126.147 20.08 126.147 21.9703C126.147 23.8306 126.654 25.3458 127.668 26.5159C128.682 27.6864 130.001 28.2712 131.624 28.2712ZM152.88 33.3121H146.838V0.771999H152.88V33.3121ZM165.652 33.672C162.957 33.672 160.769 32.9522 159.088 31.5117C157.437 30.0418 156.553 28.0914 156.437 25.661H161.653C161.768 26.6812 162.174 27.4913 162.87 28.0914C163.594 28.6613 164.522 28.9463 165.652 28.9463C166.579 28.9463 167.332 28.7363 167.912 28.3163C168.52 27.8963 168.825 27.3712 168.825 26.7412C168.825 25.9008 168.477 25.3159 167.782 24.9858C167.086 24.6557 165.985 24.3557 164.478 24.0856C162.913 23.7856 161.638 23.4556 160.653 23.0955C159.668 22.7354 158.813 22.0903 158.089 21.1602C157.393 20.2 157.045 18.8498 157.045 17.1096C157.045 15.7893 157.379 14.6192 158.045 13.599C158.741 12.5488 159.682 11.7387 160.871 11.1686C162.058 10.5685 163.391 10.2685 164.869 10.2685C167.506 10.2685 169.636 10.9436 171.259 12.2938C172.91 13.644 173.794 15.4293 173.91 17.6496H168.651C168.535 16.7195 168.115 15.9994 167.39 15.4893C166.695 14.9492 165.912 14.6792 165.043 14.6792C164.174 14.6792 163.478 14.8742 162.957 15.2643C162.435 15.6543 162.174 16.1944 162.174 16.8845C162.174 17.7246 162.508 18.2948 163.174 18.5948C163.87 18.8648 164.956 19.1049 166.434 19.3149C168.028 19.5549 169.331 19.855 170.346 20.215C171.389 20.5451 172.287 21.2052 173.041 22.1953C173.794 23.1855 174.171 24.6257 174.171 26.5159C174.171 28.6762 173.389 30.4166 171.824 31.737C170.288 33.0271 168.23 33.672 165.652 33.672Z"
2624
- }, null, -1), Es = [
2625
- Ss
2797
+ }, null, -1), el = [
2798
+ Qs
2626
2799
  ];
2627
- function Vs(t, e) {
2628
- return p(), g("svg", Ts, Es);
2800
+ function tl(t, e) {
2801
+ return p(), h("svg", Xs, el);
2629
2802
  }
2630
- const Ns = /* @__PURE__ */ ye(Is, [["render", Vs]]), As = {
2803
+ const nl = /* @__PURE__ */ ye(Ys, [["render", tl]]), ol = {
2631
2804
  "h-full": "",
2632
2805
  "w-full": "",
2633
2806
  flex: "",
2634
2807
  "items-center": ""
2635
- }, Rs = {
2808
+ }, sl = {
2636
2809
  flex: "~ col gap2",
2637
2810
  ma: "",
2638
2811
  "px-5": ""
2639
- }, Ds = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), Ps = {
2812
+ }, ll = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), al = {
2640
2813
  flex: "~ col",
2641
2814
  "mt-20": "",
2642
2815
  "items-center": ""
2643
- }, Ms = {
2816
+ }, il = {
2644
2817
  flex: "~",
2645
2818
  "mt--10": "",
2646
2819
  "items-center": "",
2647
2820
  "justify-center": ""
2648
- }, Hs = { class: "mr-1" }, Ls = {
2821
+ }, rl = { class: "mr-1" }, ul = {
2649
2822
  key: 0,
2650
2823
  class: "inline-block w20"
2651
- }, Os = ["src", "alt"], js = {
2824
+ }, cl = ["src", "alt"], dl = {
2652
2825
  key: 1,
2653
2826
  class: "mr2 inline-block min-w-20 text-center text-10 font-600"
2654
- }, zs = {
2827
+ }, pl = {
2655
2828
  mb6: "",
2656
2829
  "mt--1": "",
2657
2830
  "text-center": "",
2658
2831
  "text-sm": "",
2659
2832
  flex: "~ gap-1"
2660
- }, Us = { op40: "" }, Bs = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), Zs = { flex: "~ gap2 wrap" }, Fs = /* @__PURE__ */ a("div", {
2833
+ }, fl = { op40: "" }, vl = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), hl = { flex: "~ gap2 wrap" }, ml = /* @__PURE__ */ i("div", {
2661
2834
  "i-carbon-tree-view-alt": "",
2662
2835
  "text-3xl": ""
2663
- }, null, -1), Gs = /* @__PURE__ */ a("code", null, "State", -1), Ks = [
2664
- Fs,
2665
- Gs
2666
- ], Ws = /* @__PURE__ */ a("div", {
2836
+ }, null, -1), _l = /* @__PURE__ */ i("code", null, "State", -1), gl = [
2837
+ ml,
2838
+ _l
2839
+ ], Cl = /* @__PURE__ */ i("div", {
2667
2840
  "i-mdi:timeline-clock-outline": "",
2668
2841
  "text-3xl": ""
2669
- }, null, -1), Js = /* @__PURE__ */ a("div", null, "Timeline", -1), qs = [
2670
- Ws,
2671
- Js
2672
- ], Ys = {
2842
+ }, null, -1), xl = /* @__PURE__ */ i("div", null, "Timeline", -1), yl = [
2843
+ Cl,
2844
+ xl
2845
+ ], bl = {
2673
2846
  flex: "~ gap-6 wrap",
2674
2847
  "mt-5": "",
2675
2848
  "items-center": "",
2676
2849
  "justify-center": ""
2677
- }, Xs = ["href"], Qs = /* @__PURE__ */ a("div", { "i-carbon-document": "" }, null, -1), el = /* @__PURE__ */ a("div", { "flex-auto": "" }, null, -1), tl = /* @__PURE__ */ G({
2850
+ }, $l = ["href"], wl = /* @__PURE__ */ i("div", { "i-carbon-document": "" }, null, -1), kl = /* @__PURE__ */ i("div", { "flex-auto": "" }, null, -1), Il = /* @__PURE__ */ B({
2678
2851
  __name: "About",
2679
2852
  setup(t) {
2680
- const e = Ve(), n = De(), o = I(!1), s = I(!1);
2681
- function l() {
2853
+ const e = De(), n = be(), o = I(!1), l = I(!1);
2854
+ function s() {
2682
2855
  o.value = !0;
2683
2856
  }
2684
- function c() {
2685
- o.value = !0, s.value = !0;
2857
+ function u() {
2858
+ o.value = !0, l.value = !0;
2686
2859
  }
2687
- return (i, u) => {
2860
+ return (c, d) => {
2688
2861
  var C;
2689
- return p(), g("div", As, [
2690
- a("div", Rs, [
2691
- Ds,
2692
- a("div", Ps, [
2693
- a("div", Ms, [
2694
- a("span", Hs, [
2695
- o.value ? z("", !0) : (p(), g("span", Ls)),
2696
- q(a("img", {
2862
+ return p(), h("div", ol, [
2863
+ i("div", sl, [
2864
+ ll,
2865
+ i("div", al, [
2866
+ i("div", il, [
2867
+ i("span", rl, [
2868
+ o.value ? U("", !0) : (p(), h("span", ul)),
2869
+ J(i("img", {
2697
2870
  src: r(n).logo,
2698
2871
  alt: `${r(n).label} Logo`,
2699
2872
  class: "inline-block h16",
2700
- onError: c,
2701
- onLoad: l
2702
- }, null, 40, Os), [
2703
- [Yt, o.value && !s.value]
2873
+ onError: u,
2874
+ onLoad: s
2875
+ }, null, 40, cl), [
2876
+ [an, o.value && !l.value]
2704
2877
  ]),
2705
- s.value ? (p(), g("span", js, ae(r(n).label), 1)) : z("", !0)
2878
+ l.value ? (p(), h("span", dl, oe(r(n).label), 1)) : U("", !0)
2706
2879
  ]),
2707
- a("span", null, [
2708
- y(Ns, { "h-18": "" })
2880
+ i("span", null, [
2881
+ x(nl, { "h-18": "" })
2709
2882
  ])
2710
2883
  ]),
2711
- a("div", zs, [
2712
- a("span", Us, ae(r(n).label) + " DevTools ", 1)
2884
+ i("div", pl, [
2885
+ i("span", fl, oe(r(n).label) + " DevTools ", 1)
2713
2886
  ])
2714
2887
  ]),
2715
- Bs,
2716
- a("div", Zs, [
2717
- a("div", {
2888
+ vl,
2889
+ i("div", hl, [
2890
+ i("div", {
2718
2891
  flex: "~ col auto",
2719
2892
  "min-w-40": "",
2720
2893
  p4: "",
2721
2894
  "theme-card-lime": "",
2722
- onClick: u[0] || (u[0] = (f) => r(e).push("/state"))
2723
- }, Ks),
2724
- (C = r(n).timelineLayerIds) != null && C.length ? (p(), g("div", {
2895
+ onClick: d[0] || (d[0] = (v) => r(e).push("/state"))
2896
+ }, gl),
2897
+ (C = r(n).timelineLayerIds) != null && C.length ? (p(), h("div", {
2725
2898
  key: 0,
2726
2899
  flex: "~ col auto",
2727
2900
  "min-w-40": "",
2728
2901
  p4: "",
2729
2902
  "theme-card-lime": "",
2730
- onClick: u[1] || (u[1] = (f) => r(e).push("/timeline"))
2731
- }, qs)) : z("", !0)
2903
+ onClick: d[1] || (d[1] = (v) => r(e).push("/timeline"))
2904
+ }, yl)) : U("", !0)
2732
2905
  ]),
2733
- a("div", Ys, [
2734
- a("a", {
2906
+ i("div", bl, [
2907
+ i("a", {
2735
2908
  href: r(n).homepage,
2736
2909
  target: "_blank",
2737
2910
  flex: "~ gap1",
@@ -2740,147 +2913,171 @@ const Ns = /* @__PURE__ */ ye(Is, [["render", Vs]]), As = {
2740
2913
  hover: "op100 text-yellow",
2741
2914
  transition: ""
2742
2915
  }, [
2743
- Qs,
2744
- te(" View Documentation ")
2745
- ], 8, Xs)
2916
+ wl,
2917
+ ne(" View Documentation ")
2918
+ ], 8, $l)
2746
2919
  ]),
2747
- el
2920
+ kl
2748
2921
  ])
2749
2922
  ]);
2750
2923
  };
2751
2924
  }
2752
- }), nl = { class: "h-full flex flex-col" }, ol = { class: "h-full flex flex-col p2" }, sl = {
2925
+ }), Sl = { class: "h-full flex flex-col" }, Tl = /* @__PURE__ */ B({
2926
+ __name: "Settings",
2927
+ setup(t) {
2928
+ const e = inject("pluginSettings"), n = be(), o = computed(() => e.value.options), l = computed(() => e.value.values);
2929
+ function s(u) {
2930
+ e.value = u;
2931
+ }
2932
+ return (u, c) => (p(), h("div", Sl, [
2933
+ x(Te, {
2934
+ "doc-link": r(n).homepage
2935
+ }, {
2936
+ default: M(() => [
2937
+ x(Se)
2938
+ ]),
2939
+ _: 1
2940
+ }, 8, ["doc-link"]),
2941
+ x(Wt, {
2942
+ "plugin-id": r(n).id,
2943
+ options: r(o),
2944
+ values: r(l),
2945
+ onUpdate: s
2946
+ }, null, 8, ["plugin-id", "options", "values"])
2947
+ ]));
2948
+ }
2949
+ }), El = { class: "h-full flex flex-col" }, Vl = { class: "h-full flex flex-col p2" }, Nl = {
2753
2950
  key: 0,
2754
2951
  class: "mb-1 flex justify-end pb-1",
2755
2952
  border: "b dashed base"
2756
- }, ll = { class: "flex items-center gap-2 px-1" }, al = ["onClick"], il = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, rl = { class: "h-full flex flex-col p2" }, cl = {
2953
+ }, Rl = { class: "flex items-center gap-2 px-1" }, Al = ["onClick"], Dl = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, Pl = { class: "h-full flex flex-col p2" }, Ml = {
2757
2954
  key: 0,
2758
2955
  class: "mb-1 flex justify-end pb-1",
2759
2956
  border: "b dashed base"
2760
- }, ul = { class: "flex items-center gap-2 px-1" }, dl = ["onClick"], pl = /* @__PURE__ */ G({
2957
+ }, Hl = { class: "flex items-center gap-2 px-1" }, Ll = ["onClick"], jl = /* @__PURE__ */ B({
2761
2958
  __name: "Index",
2762
2959
  setup(t) {
2763
- const { expanded: e } = ve(), { expanded: n } = ve("custom-inspector-state"), o = De(), s = D(() => o.value.id), l = I([]), c = I([]), i = I([]), u = D(() => {
2764
- var b, k;
2765
- return (b = i.value) != null && b.length ? x((k = i.value) == null ? void 0 : k[0]) : [];
2766
- }), C = D(() => $(i.value)), f = D(() => C.value.map((b) => b.id)), d = I(""), v = I({}), m = D(() => !Object.keys(v.value).length);
2767
- function x(b, k = [], _ = []) {
2960
+ const { expanded: e } = ve(), { expanded: n } = ve("custom-inspector-state"), o = be(), l = D(() => o.value.id), s = I([]), u = I([]), c = I([]), d = D(() => {
2961
+ var b, S;
2962
+ return (b = c.value) != null && b.length ? y((S = c.value) == null ? void 0 : S[0]) : [];
2963
+ }), C = D(() => k(c.value)), v = D(() => C.value.map((b) => b.id)), a = I(""), f = I({}), m = D(() => !Object.keys(f.value).length);
2964
+ function y(b, S = [], g = []) {
2768
2965
  var A;
2769
- return k.push(b.id), ((A = b.children) == null ? void 0 : A.length) === 0 && _.push([...k]), Array.isArray(b.children) && b.children.forEach((U) => {
2770
- x(U, k, _);
2771
- }), k.pop(), _;
2966
+ return S.push(b.id), ((A = b.children) == null ? void 0 : A.length) === 0 && g.push([...S]), Array.isArray(b.children) && b.children.forEach((F) => {
2967
+ y(F, S, g);
2968
+ }), S.pop(), g;
2772
2969
  }
2773
- function h(b, k) {
2774
- const _ = [];
2970
+ function _(b, S) {
2971
+ const g = [];
2775
2972
  return b == null || b.forEach((A) => {
2776
- _.push(...A.slice(0, k + 1));
2777
- }), [...new Set(_)];
2778
- }
2779
- function $(b) {
2780
- const k = [], _ = (A) => {
2781
- A == null || A.forEach((U) => {
2782
- var se;
2783
- k.push(U), (se = U.children) != null && se.length && _(U.children);
2973
+ g.push(...A.slice(0, S + 1));
2974
+ }), [...new Set(g)];
2975
+ }
2976
+ function k(b) {
2977
+ const S = [], g = (A) => {
2978
+ A == null || A.forEach((F) => {
2979
+ var le;
2980
+ S.push(F), (le = F.children) != null && le.length && g(F.children);
2784
2981
  });
2785
2982
  };
2786
- return _(b), k;
2983
+ return g(b), S;
2787
2984
  }
2788
- function j() {
2789
- R.value.getInspectorNodeActions(s.value).then((b) => {
2790
- l.value = b;
2985
+ function O() {
2986
+ R.value.getInspectorNodeActions(l.value).then((b) => {
2987
+ s.value = b;
2791
2988
  });
2792
2989
  }
2793
- function L() {
2794
- R.value.getInspectorActions(s.value).then((b) => {
2795
- c.value = b;
2990
+ function j() {
2991
+ R.value.getInspectorActions(l.value).then((b) => {
2992
+ u.value = b;
2796
2993
  });
2797
2994
  }
2798
- j(), L();
2799
- function E(b) {
2800
- R.value.callInspectorNodeAction(s.value, b, d.value);
2995
+ O(), j();
2996
+ function V(b) {
2997
+ R.value.callInspectorNodeAction(l.value, b, a.value);
2801
2998
  }
2802
- function w(b) {
2803
- R.value.callInspectorAction(s.value, b);
2999
+ function $(b) {
3000
+ R.value.callInspectorAction(l.value, b);
2804
3001
  }
2805
- function V(b) {
2806
- var k;
2807
- for (const _ in b)
2808
- (k = b[_]) != null && k.length || delete b[_];
3002
+ function N(b) {
3003
+ var S;
3004
+ for (const g in b)
3005
+ (S = b[g]) != null && S.length || delete b[g];
2809
3006
  return b;
2810
3007
  }
2811
- function M(b) {
2812
- R.value.getInspectorState({ inspectorId: s.value, nodeId: b }).then((k) => {
2813
- const _ = Y(k);
2814
- _ && (v.value = V(_), n.value = Array.from({ length: Object.keys(v.value).length }, (A, U) => `${U}`));
3008
+ function H(b) {
3009
+ R.value.getInspectorState({ inspectorId: l.value, nodeId: b }).then((S) => {
3010
+ const g = Y(S);
3011
+ g && (f.value = N(g), n.value = Array.from({ length: Object.keys(f.value).length }, (A, F) => `${F}`));
2815
3012
  });
2816
3013
  }
2817
3014
  function K() {
2818
- v.value = {};
3015
+ f.value = {};
2819
3016
  }
2820
- X(d, () => {
2821
- K(), M(d.value);
3017
+ X(a, () => {
3018
+ K(), H(a.value);
2822
3019
  });
2823
- const B = () => {
2824
- R.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((b) => {
2825
- const k = Y(b);
2826
- i.value = k, !d.value && k.length && (d.value = k[0].id, e.value = h(u.value, 1), M(k[0].id));
3020
+ const Z = () => {
3021
+ R.value.getInspectorTree({ inspectorId: l.value, filter: "" }).then((b) => {
3022
+ const S = Y(b);
3023
+ c.value = S, !a.value && S.length && (a.value = S[0].id, e.value = _(d.value, 1), H(S[0].id));
2827
3024
  });
2828
3025
  };
2829
- Vt(s).toBeTruthy().then(B);
3026
+ Pt(l).toBeTruthy().then(Z);
2830
3027
  function T(b) {
2831
- var _, A;
2832
- const k = Y(b);
2833
- !k.rootNodes.length || k.inspectorId !== s.value || (i.value = k.rootNodes, f.value.includes(d.value) || (d.value = (A = (_ = i.value) == null ? void 0 : _[0]) == null ? void 0 : A.id, e.value = h(u.value, 1)));
3028
+ var g, A;
3029
+ const S = Y(b);
3030
+ !S.rootNodes.length || S.inspectorId !== l.value || (c.value = S.rootNodes, v.value.includes(a.value) || (a.value = (A = (g = c.value) == null ? void 0 : g[0]) == null ? void 0 : A.id, e.value = _(d.value, 1)));
2834
3031
  }
2835
3032
  function P(b) {
2836
- const k = Y(b);
2837
- if (k.inspectorId !== s.value || !k.state || k.nodeId !== d.value)
3033
+ const S = Y(b);
3034
+ if (S.inspectorId !== l.value || !S.state || S.nodeId !== a.value)
2838
3035
  return;
2839
- const { inspectorId: _, ...A } = k.state;
2840
- v.value = V(A);
3036
+ const { inspectorId: g, ...A } = S.state;
3037
+ f.value = N(A);
2841
3038
  }
2842
- return Ue(() => {
3039
+ return Re(() => {
2843
3040
  R.functions.on(W.INSPECTOR_TREE_UPDATED, T), R.functions.on(W.INSPECTOR_STATE_UPDATED, P);
2844
3041
  }), xe(() => {
2845
3042
  R.functions.off(W.INSPECTOR_TREE_UPDATED, T), R.functions.off(W.INSPECTOR_STATE_UPDATED, P);
2846
- }), (b, k) => (p(), g("div", nl, [
2847
- y(Ze, {
3043
+ }), (b, S) => (p(), h("div", El, [
3044
+ x(Te, {
2848
3045
  "doc-link": r(o).homepage
2849
3046
  }, {
2850
- default: H(() => [
2851
- y(Be)
3047
+ default: M(() => [
3048
+ x(Se)
2852
3049
  ]),
2853
3050
  _: 1
2854
3051
  }, 8, ["doc-link"]),
2855
- i.value.length ? (p(), F(r(Ee), {
3052
+ c.value.length ? (p(), z(r(Ae), {
2856
3053
  key: 0,
2857
3054
  class: "flex-1 overflow-auto"
2858
3055
  }, {
2859
- default: H(() => [
2860
- y(r(ue), {
3056
+ default: M(() => [
3057
+ x(r(ue), {
2861
3058
  border: "r base",
2862
3059
  size: "40",
2863
3060
  "h-full": ""
2864
3061
  }, {
2865
- default: H(() => {
2866
- var _;
3062
+ default: M(() => {
3063
+ var g;
2867
3064
  return [
2868
- a("div", ol, [
2869
- (_ = c.value) != null && _.length ? (p(), g("div", sl, [
2870
- a("div", ll, [
2871
- (p(!0), g(oe, null, fe(c.value, (A, U) => q((p(), g("div", {
2872
- key: U,
3065
+ i("div", Vl, [
3066
+ (g = u.value) != null && g.length ? (p(), h("div", Nl, [
3067
+ i("div", Rl, [
3068
+ (p(!0), h(te, null, ae(u.value, (A, F) => J((p(), h("div", {
3069
+ key: F,
2873
3070
  class: "flex items-center gap1",
2874
- onClick: (se) => w(U)
3071
+ onClick: (le) => $(F)
2875
3072
  }, [
2876
- y(r(ft), {
3073
+ x(r(yt), {
2877
3074
  name: `baseline-${A.icon.replace(/\_/g, "-")}`,
2878
3075
  "cursor-pointer": "",
2879
3076
  op70: "",
2880
3077
  "text-base": "",
2881
3078
  "hover:op100": ""
2882
3079
  }, null, 8, ["name"])
2883
- ], 8, al)), [
3080
+ ], 8, Al)), [
2884
3081
  [
2885
3082
  r(Q),
2886
3083
  { content: A.tooltip },
@@ -2889,12 +3086,12 @@ const Ns = /* @__PURE__ */ ye(Is, [["render", Vs]]), As = {
2889
3086
  ]
2890
3087
  ])), 128))
2891
3088
  ])
2892
- ])) : z("", !0),
2893
- a("div", il, [
2894
- y(Ae, {
2895
- modelValue: d.value,
2896
- "onUpdate:modelValue": k[0] || (k[0] = (A) => d.value = A),
2897
- data: i.value
3089
+ ])) : U("", !0),
3090
+ i("div", Dl, [
3091
+ x(Me, {
3092
+ modelValue: a.value,
3093
+ "onUpdate:modelValue": S[0] || (S[0] = (A) => a.value = A),
3094
+ data: c.value
2898
3095
  }, null, 8, ["modelValue", "data"])
2899
3096
  ])
2900
3097
  ])
@@ -2902,26 +3099,26 @@ const Ns = /* @__PURE__ */ ye(Is, [["render", Vs]]), As = {
2902
3099
  }),
2903
3100
  _: 1
2904
3101
  }),
2905
- y(r(ue), { size: "60" }, {
2906
- default: H(() => {
2907
- var _;
3102
+ x(r(ue), { size: "60" }, {
3103
+ default: M(() => {
3104
+ var g;
2908
3105
  return [
2909
- a("div", rl, [
2910
- (_ = l.value) != null && _.length ? (p(), g("div", cl, [
2911
- a("div", ul, [
2912
- (p(!0), g(oe, null, fe(l.value, (A, U) => q((p(), g("div", {
2913
- key: U,
3106
+ i("div", Pl, [
3107
+ (g = s.value) != null && g.length ? (p(), h("div", Ml, [
3108
+ i("div", Hl, [
3109
+ (p(!0), h(te, null, ae(s.value, (A, F) => J((p(), h("div", {
3110
+ key: F,
2914
3111
  class: "flex items-center gap1",
2915
- onClick: (se) => E(U)
3112
+ onClick: (le) => V(F)
2916
3113
  }, [
2917
- y(r(ft), {
3114
+ x(r(yt), {
2918
3115
  name: `baseline-${A.icon.replace(/\_/g, "-")}`,
2919
3116
  "cursor-pointer": "",
2920
3117
  op70: "",
2921
3118
  "text-base": "",
2922
3119
  "hover:op100": ""
2923
3120
  }, null, 8, ["name"])
2924
- ], 8, dl)), [
3121
+ ], 8, Ll)), [
2925
3122
  [
2926
3123
  r(Q),
2927
3124
  { content: A.tooltip },
@@ -2930,17 +3127,17 @@ const Ns = /* @__PURE__ */ ye(Is, [["render", Vs]]), As = {
2930
3127
  ]
2931
3128
  ])), 128))
2932
3129
  ])
2933
- ])) : z("", !0),
2934
- d.value && !m.value ? (p(), F(Ne, {
3130
+ ])) : U("", !0),
3131
+ a.value && !m.value ? (p(), z(Pe, {
2935
3132
  key: 1,
2936
- data: v.value,
2937
- "node-id": d.value,
2938
- "inspector-id": s.value,
3133
+ data: f.value,
3134
+ "node-id": a.value,
3135
+ "inspector-id": l.value,
2939
3136
  "expanded-state-id": "custom-inspector-state",
2940
3137
  class: "no-scrollbar flex-1 select-none overflow-scroll"
2941
- }, null, 8, ["data", "node-id", "inspector-id"])) : (p(), F(Se, { key: 2 }, {
2942
- default: H(() => [
2943
- te(" No Data ")
3138
+ }, null, 8, ["data", "node-id", "inspector-id"])) : (p(), z(Ne, { key: 2 }, {
3139
+ default: M(() => [
3140
+ ne(" No Data ")
2944
3141
  ]),
2945
3142
  _: 1
2946
3143
  }))
@@ -2951,118 +3148,128 @@ const Ns = /* @__PURE__ */ ye(Is, [["render", Vs]]), As = {
2951
3148
  })
2952
3149
  ]),
2953
3150
  _: 1
2954
- })) : (p(), F(Se, { key: 1 }, {
2955
- default: H(() => [
2956
- te(" No Data ")
3151
+ })) : (p(), z(Ne, { key: 1 }, {
3152
+ default: M(() => [
3153
+ ne(" No Data ")
2957
3154
  ]),
2958
3155
  _: 1
2959
3156
  }))
2960
3157
  ]));
2961
3158
  }
2962
- }), fl = /* @__PURE__ */ G({
3159
+ }), Ol = /* @__PURE__ */ B({
2963
3160
  __name: "Index",
2964
3161
  setup(t) {
2965
- const e = De();
2966
- return (n, o) => (p(), F(rt, {
3162
+ const e = be();
3163
+ return (n, o) => (p(), z(vt, {
2967
3164
  "layer-ids": r(e).timelineLayerIds,
2968
3165
  "doc-link": r(e).homepage
2969
3166
  }, null, 8, ["layer-ids", "doc-link"]));
2970
3167
  }
2971
- }), vl = {}, hl = (t) => (Xe("data-v-b8018f07"), t = t(), Qe(), t), ml = { class: "h-screen w-screen $ui-fcc flex-col" }, _l = /* @__PURE__ */ hl(() => /* @__PURE__ */ a("div", { class: "outer" }, [
2972
- /* @__PURE__ */ a("div", { class: "inner" }, [
2973
- /* @__PURE__ */ a("i", {
3168
+ }), Ul = {}, zl = (t) => (ot("data-v-b8018f07"), t = t(), st(), t), Bl = { class: "h-screen w-screen $ui-fcc flex-col" }, Zl = /* @__PURE__ */ zl(() => /* @__PURE__ */ i("div", { class: "outer" }, [
3169
+ /* @__PURE__ */ i("div", { class: "inner" }, [
3170
+ /* @__PURE__ */ i("i", {
2974
3171
  class: "i-logos-vue inline-block h8! w8!",
2975
3172
  alt: "Vue logo"
2976
3173
  })
2977
3174
  ])
2978
3175
  ], -1));
2979
- function gl(t, e) {
2980
- return p(), g("div", ml, [
2981
- _l,
2982
- qe(t.$slots, "default", {}, void 0, !0)
3176
+ function Fl(t, e) {
3177
+ return p(), h("div", Bl, [
3178
+ Zl,
3179
+ et(t.$slots, "default", {}, void 0, !0)
2983
3180
  ]);
2984
3181
  }
2985
- const Cl = /* @__PURE__ */ ye(vl, [["render", gl], ["__scopeId", "data-v-b8018f07"]]), xl = {
3182
+ const Gl = /* @__PURE__ */ ye(Ul, [["render", Fl], ["__scopeId", "data-v-b8018f07"]]), Kl = {
2986
3183
  "h-full": "",
2987
3184
  "w-full": ""
2988
- }, yl = { key: 0 }, Dl = /* @__PURE__ */ G({
3185
+ }, Wl = { key: 0 }, ia = /* @__PURE__ */ B({
2989
3186
  __name: "index",
2990
3187
  props: {
2991
3188
  id: {}
2992
3189
  },
2993
3190
  emits: ["loadError"],
2994
3191
  setup(t, { emit: e }) {
2995
- const n = t, o = e, s = zt(), l = I(!1), c = D(() => {
2996
- var f;
3192
+ const n = t, o = e, l = Kt(), s = I(!1), u = I(null);
3193
+ provide("pluginSettings", u);
3194
+ const c = D(() => {
3195
+ var a;
2997
3196
  return [
2998
3197
  {
2999
3198
  path: "/state",
3000
3199
  name: "State",
3001
- component: pl,
3200
+ component: jl,
3002
3201
  icon: "i-carbon-tree-view-alt"
3003
3202
  },
3004
- ((f = s.value.timelineLayerIds) == null ? void 0 : f.length) && {
3203
+ ((a = l.value.timelineLayerIds) == null ? void 0 : a.length) && {
3005
3204
  path: "/timeline",
3006
3205
  name: "Timeline",
3007
- component: fl,
3206
+ component: Ol,
3008
3207
  icon: "i-mdi:timeline-clock-outline"
3009
3208
  },
3010
3209
  {
3011
3210
  path: "/about",
3012
3211
  name: "About",
3013
- component: tl
3212
+ component: Il
3213
+ },
3214
+ u.value && {
3215
+ path: "/settings",
3216
+ name: "Settings",
3217
+ component: Tl,
3218
+ icon: "i-mdi:cog-outline"
3014
3219
  }
3015
3220
  ].filter(Boolean);
3016
- }), { VirtualRouterView: i, restoreRouter: u } = tt(c, {
3221
+ }), { VirtualRouterView: d, restoreRouter: C } = it(c, {
3017
3222
  defaultRoutePath: "/state"
3018
3223
  });
3019
- function C() {
3020
- l.value = !0, Ue(() => {
3021
- R.value.getInspectorInfo(n.id).then((f) => {
3022
- if (!f) {
3224
+ function v() {
3225
+ s.value = !0, Re(() => {
3226
+ R.value.getInspectorInfo(n.id).then((a) => {
3227
+ if (!a) {
3023
3228
  o("loadError");
3024
3229
  return;
3025
3230
  }
3026
- const d = {
3027
- homepage: f == null ? void 0 : f.homepage,
3028
- id: f == null ? void 0 : f.id,
3029
- label: f == null ? void 0 : f.label,
3030
- logo: f == null ? void 0 : f.logo,
3031
- timelineLayerIds: f == null ? void 0 : f.timelineLayers.map((v) => v.id)
3231
+ const f = {
3232
+ homepage: a == null ? void 0 : a.homepage,
3233
+ id: a == null ? void 0 : a.id,
3234
+ label: a == null ? void 0 : a.label,
3235
+ logo: a == null ? void 0 : a.logo,
3236
+ timelineLayerIds: a == null ? void 0 : a.timelineLayers.map((m) => m.id)
3032
3237
  };
3033
- s.value = d, u(), l.value = !1;
3238
+ l.value = f, C(), s.value = !1;
3239
+ }), R.value.getPluginSettings(n.id).then((a) => {
3240
+ a.options ? u.value = a : u.value = null;
3034
3241
  });
3035
3242
  });
3036
3243
  }
3037
3244
  return X(() => n.id, () => {
3038
- C();
3245
+ v();
3039
3246
  }, {
3040
3247
  immediate: !0
3041
3248
  }), xe(() => {
3042
3249
  R.value.unhighlight();
3043
- }), (f, d) => (p(), g("div", xl, [
3044
- l.value ? (p(), g("div", yl, [
3045
- y(Cl)
3046
- ])) : (p(), F(r(i), { key: 1 }))
3250
+ }), (a, f) => (p(), h("div", Kl, [
3251
+ s.value ? (p(), h("div", Wl, [
3252
+ x(Gl)
3253
+ ])) : (p(), z(r(d), { key: 1 }))
3047
3254
  ]));
3048
3255
  }
3049
3256
  });
3050
- function Pl() {
3257
+ function ra() {
3051
3258
  const t = I([]), e = I([]);
3052
- function n(s) {
3053
- e.value = s, s.length < t.value.length && (t.value = []), e.value.forEach((l) => {
3054
- o(l);
3259
+ function n(l) {
3260
+ e.value = l, l.length < t.value.length && (t.value = []), e.value.forEach((s) => {
3261
+ o(s);
3055
3262
  });
3056
3263
  }
3057
- Ue(() => {
3058
- R.value.getCustomInspector().then((s) => {
3059
- e.value = s, e.value.forEach((l) => {
3060
- o(l);
3264
+ Re(() => {
3265
+ R.value.getCustomInspector().then((l) => {
3266
+ e.value = l, e.value.forEach((s) => {
3267
+ o(s);
3061
3268
  });
3062
3269
  }), R.functions.on(W.INSPECTOR_UPDATED, n);
3063
3270
  });
3064
- function o(s) {
3065
- t.value.some((l) => l.id === s.id) || t.value.push(s);
3271
+ function o(l) {
3272
+ t.value.some((s) => s.id === l.id) || t.value.push(l);
3066
3273
  }
3067
3274
  return xe(() => {
3068
3275
  R.functions.off(W.INSPECTOR_UPDATED, n);
@@ -3072,9 +3279,9 @@ function Pl() {
3072
3279
  };
3073
3280
  }
3074
3281
  export {
3075
- Al as Components,
3076
- Dl as CustomInspector,
3077
- Nl as Pinia,
3078
- Rl as Router,
3079
- Pl as useCustomInspector
3282
+ la as Components,
3283
+ ia as CustomInspector,
3284
+ sa as Pinia,
3285
+ aa as Router,
3286
+ ra as useCustomInspector
3080
3287
  };