@vue/devtools-applet 7.6.1 → 7.6.2

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,13 +1,13 @@
1
- import { defineComponent as B, withDirectives as W, openBlock as p, createElementBlock as f, normalizeStyle as Ie, unref as c, createTextVNode as Y, toDisplayString as le, mergeModels as ze, useModel as et, Fragment as ne, renderList as ie, normalizeClass as oe, createBlock as z, toValue as vt, ref as T, computed as V, h as Xt, provide as ge, inject as ve, createElementVNode as d, renderSlot as tt, createCommentVNode as j, isRef as Ke, watch as ee, onMounted as St, nextTick as Be, readonly as Qt, getCurrentScope as en, onScopeDispose as tn, getCurrentInstance as nt, reactive as mt, shallowRef as ht, toRaw as Tt, mergeProps as ke, withModifiers as fe, withCtx as H, createVNode as x, watchEffect as ot, onUnmounted as be, vShow as nn, createStaticVNode as on } from "vue";
2
- import { vTooltip as q, VueButton as de, VueIcon as se, VueDropdown as ln, VueDropdownButton as gt, VueInput as Ze, VueIcIcon as Fe, VueCodeBlock as sn, VueDialog as an, VueSwitch as rn, VueSelect as un } from "@vue/devtools-ui";
3
- import { isPlainObject as cn, UNDEFINED as Et, NAN as dn, INFINITY as pn, NEGATIVE_INFINITY as fn, getRaw as Vt, toSubmit as Ue, formatInspectorStateValue as vn, getInspectorStateValueType as Ct, toEdit as mn, parse as Q } from "@vue/devtools-kit";
4
- import { rpc as P, useDevToolsState as Nt, DevToolsMessagingEvents as J, onRpcConnected as Re } from "@vue/devtools-core";
5
- import { Splitpanes as Ae, Pane as ue } from "splitpanes";
6
- import { isArray as _t, isObject as yt, sortByKey as Rt, isInSeparateWindow as hn, isInChromePanel as xt } from "@vue/devtools-shared";
1
+ import { defineComponent as B, withDirectives as q, openBlock as p, createElementBlock as v, normalizeStyle as $e, unref as r, createTextVNode as X, toDisplayString as ae, mergeModels as je, useModel as Xe, Fragment as oe, renderList as ue, normalizeClass as se, createBlock as z, toValue as mt, ref as I, computed as E, h as Xt, provide as Ce, inject as ve, createElementVNode as d, renderSlot as Qe, createCommentVNode as O, isRef as Ze, watch as Q, onMounted as Tt, nextTick as ze, readonly as Qt, getCurrentScope as en, onScopeDispose as tn, getCurrentInstance as et, reactive as ht, shallowRef as gt, toRaw as Et, mergeProps as ke, withModifiers as fe, withCtx as L, createVNode as y, watchEffect as tt, onUnmounted as we, vShow as nn, createStaticVNode as on } from "vue";
2
+ import { vTooltip as J, VueButton as pe, VueIcon as ie, VueDropdown as ln, VueDropdownButton as Ct, VueInput as _e, VueIcIcon as Be, VueCodeBlock as sn, VueDialog as an, VueSwitch as rn, VueSelect as un } from "@vue/devtools-ui";
3
+ import { isPlainObject as cn, UNDEFINED as Vt, NAN as dn, INFINITY as pn, NEGATIVE_INFINITY as fn, getRaw as Nt, toSubmit as Oe, formatInspectorStateValue as vn, getInspectorStateValueType as _t, toEdit as mn, parse as ee } from "@vue/devtools-kit";
4
+ import { rpc as D, useDevToolsState as Rt, DevToolsMessagingEvents as Y, onRpcConnected as Ne } from "@vue/devtools-core";
5
+ import { Splitpanes as Re, Pane as ce } from "splitpanes";
6
+ import { isArray as yt, isObject as xt, sortByKey as At, isInSeparateWindow as hn, isInChromePanel as bt } from "@vue/devtools-shared";
7
7
  import { debounce as gn } from "perfect-debounce";
8
8
  import { RecycleScroller as Cn } from "vue-virtual-scroller";
9
9
  import { flatten as _n, groupBy as yn } from "lodash-es";
10
- function bt(n) {
10
+ function wt(n) {
11
11
  return n.toString(16).padStart(6, "0");
12
12
  }
13
13
  function xn(n, e) {
@@ -15,54 +15,68 @@ function xn(n, e) {
15
15
  return `${o.toString().match(/\d\d:\d\d:\d\d/)[0]}${e === "ms" ? `.${String(o.getMilliseconds()).padStart(3, "0")}` : ""}`;
16
16
  }
17
17
  function bn(n, e) {
18
- const o = /* @__PURE__ */ new Map(), t = Dt(n, e.toLowerCase(), o, 0);
18
+ const o = /* @__PURE__ */ new Map(), t = Pt(n, e.toLowerCase(), o, 0);
19
19
  return o.clear(), t;
20
20
  }
21
- const At = 10;
22
- function Dt(n, e, o, t) {
23
- if (t > At)
21
+ const Dt = 10;
22
+ function Pt(n, e, o, t) {
23
+ if (t > Dt)
24
24
  return !1;
25
- let s = !1;
26
- const l = Object.keys(n);
27
- let u, i;
28
- for (let r = 0; r < l.length && (u = l[r], i = n[u], s = Pt(e, u, i, o, t + 1), !s); r++)
25
+ let l = !1;
26
+ const s = Object.keys(n);
27
+ let c, a;
28
+ for (let i = 0; i < s.length && (c = s[i], a = n[c], l = Mt(e, c, a, o, t + 1), !l); i++)
29
29
  ;
30
- return s;
30
+ return l;
31
31
  }
32
- function Pt(n, e, o, t, s) {
33
- let l = !1, u;
34
- return e === "_custom" && (e = o.display, o = o.value), (u = wn(o)) && (o = u), e && wt(e, n) ? (l = !0, t.set(o, !0)) : t.has(o) ? l = t.get(o) : Array.isArray(o) ? (t.set(o, null), l = kn(o, n, t, s), t.set(o, l)) : cn(o) ? (t.set(o, null), l = Dt(o, n, t, s), t.set(o, l)) : wt(o, n) && (l = !0, t.set(o, !0)), l;
32
+ function Mt(n, e, o, t, l) {
33
+ let s = !1, c;
34
+ return e === "_custom" && (e = o.display, o = o.value), (c = wn(o)) && (o = c), e && kt(e, n) ? (s = !0, t.set(o, !0)) : t.has(o) ? s = t.get(o) : Array.isArray(o) ? (t.set(o, null), s = kn(o, n, t, l), t.set(o, s)) : cn(o) ? (t.set(o, null), s = Pt(o, n, t, l), t.set(o, s)) : kt(o, n) && (s = !0, t.set(o, !0)), s;
35
35
  }
36
- function wt(n, e) {
36
+ function kt(n, e) {
37
37
  return `${n}`.toLowerCase().includes(e);
38
38
  }
39
39
  function wn(n) {
40
- return n === null ? "null" : n === Et ? "undefined" : n === dn ? "NaN" : n === pn ? "Infinity" : n === fn ? "-Infinity" : !1;
40
+ return n === null ? "null" : n === Vt ? "undefined" : n === dn ? "NaN" : n === pn ? "Infinity" : n === fn ? "-Infinity" : !1;
41
41
  }
42
42
  function kn(n, e, o, t) {
43
- if (t > At)
43
+ if (t > Dt)
44
44
  return !1;
45
- let s = !1, l;
46
- for (let u = 0; u < n.length && (l = n[u], s = Pt(e, null, l, o, t + 1), !s); u++)
45
+ let l = !1, s;
46
+ for (let c = 0; c < n.length && (s = n[c], l = Mt(e, null, s, o, t + 1), !l); c++)
47
47
  ;
48
- return s;
48
+ return l;
49
49
  }
50
- const Mt = /* @__PURE__ */ B({
50
+ function nt(n) {
51
+ const { state: e, filterKey: o, processGroup: t } = n;
52
+ if (!o || !o.trim().length)
53
+ return e;
54
+ const l = {};
55
+ for (const s in e) {
56
+ const a = e[s].filter((i) => bn({
57
+ // @ts-expect-error typing weak
58
+ [i.key]: i.value
59
+ }, o));
60
+ a.length && (l[s] = t ? t(a) : a);
61
+ }
62
+ return l;
63
+ }
64
+ const Lt = /* @__PURE__ */ B({
51
65
  __name: "NodeTag",
52
66
  props: {
53
67
  tag: {}
54
68
  },
55
69
  setup(n) {
56
- return (e, o) => W((p(), f("span", {
57
- style: Ie({
58
- color: `#${c(bt)(e.tag.textColor)}`,
59
- backgroundColor: `#${c(bt)(e.tag.backgroundColor)}`
70
+ return (e, o) => q((p(), v("span", {
71
+ style: $e({
72
+ color: `#${r(wt)(e.tag.textColor)}`,
73
+ backgroundColor: `#${r(wt)(e.tag.backgroundColor)}`
60
74
  }),
61
75
  class: "ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"
62
76
  }, [
63
- Y(le(e.tag.label), 1)
77
+ X(ae(e.tag.label), 1)
64
78
  ], 4)), [
65
- [c(q), {
79
+ [r(J), {
66
80
  content: e.tag.tooltip,
67
81
  html: !0
68
82
  }]
@@ -70,51 +84,51 @@ const Mt = /* @__PURE__ */ B({
70
84
  }
71
85
  }), In = { class: "p2" }, $n = ["onClick"], Sn = /* @__PURE__ */ B({
72
86
  __name: "SelectiveList",
73
- props: /* @__PURE__ */ ze({
87
+ props: /* @__PURE__ */ je({
74
88
  data: {}
75
89
  }, {
76
90
  modelValue: {},
77
91
  modelModifiers: {}
78
92
  }),
79
- emits: /* @__PURE__ */ ze(["select"], ["update:modelValue"]),
93
+ emits: /* @__PURE__ */ je(["select"], ["update:modelValue"]),
80
94
  setup(n, { emit: e }) {
81
- const o = e, t = et(n, "modelValue");
82
- function s(l) {
83
- t.value = l, o("select", l);
84
- }
85
- return (l, u) => (p(), f("ul", In, [
86
- (p(!0), f(ne, null, ie(l.data, (i) => (p(), f("li", {
87
- key: i.id,
88
- class: oe(["selectable-item", { active: i.id === t.value }]),
89
- onClick: (r) => s(i.id)
95
+ const o = e, t = Xe(n, "modelValue");
96
+ function l(s) {
97
+ t.value = s, o("select", s);
98
+ }
99
+ return (s, c) => (p(), v("ul", In, [
100
+ (p(!0), v(oe, null, ue(s.data, (a) => (p(), v("li", {
101
+ key: a.id,
102
+ class: se(["selectable-item", { active: a.id === t.value }]),
103
+ onClick: (i) => l(a.id)
90
104
  }, [
91
- Y(le(i.label) + " ", 1),
92
- (p(!0), f(ne, null, ie(i.tags, (r, h) => (p(), z(Mt, {
93
- key: h,
94
- tag: r
105
+ X(ae(a.label) + " ", 1),
106
+ (p(!0), v(oe, null, ue(a.tags, (i, g) => (p(), z(Lt, {
107
+ key: g,
108
+ tag: i
95
109
  }, null, 8, ["tag"]))), 128))
96
110
  ], 10, $n))), 128))
97
111
  ]));
98
112
  }
99
- }), lt = Symbol("VirtualRouteKey"), Lt = Symbol("VirtualRoutesKey");
100
- function st(n, e) {
101
- const o = (e == null ? void 0 : e.defaultRoutePath) ?? vt(n)[0].path, t = T({
113
+ }), ot = Symbol("VirtualRouteKey"), Ht = Symbol("VirtualRoutesKey");
114
+ function lt(n, e) {
115
+ const o = (e == null ? void 0 : e.defaultRoutePath) ?? mt(n)[0].path, t = I({
102
116
  path: o
103
- }), s = V(() => vt(n)), l = V(() => t.value.path), u = B({
117
+ }), l = E(() => mt(n)), s = E(() => t.value.path), c = B({
104
118
  setup() {
105
119
  return () => {
106
- const r = s.value.find((h) => h.path === l.value);
107
- return r ? Xt(r.component) : null;
120
+ const i = l.value.find((g) => g.path === s.value);
121
+ return i ? Xt(i.component) : null;
108
122
  };
109
123
  }
110
124
  });
111
- function i() {
125
+ function a() {
112
126
  t.value.path = o;
113
127
  }
114
- return ge(lt, t), ge(Lt, s), { VirtualRouterView: u, restoreRouter: i };
128
+ return Ce(ot, t), Ce(Ht, l), { VirtualRouterView: c, restoreRouter: a };
115
129
  }
116
- function De() {
117
- const n = ve(lt);
130
+ function Ae() {
131
+ const n = ve(ot);
118
132
  return {
119
133
  push(e) {
120
134
  n.value.path = e;
@@ -122,7 +136,7 @@ function De() {
122
136
  };
123
137
  }
124
138
  function Tn() {
125
- const n = ve(Lt), e = ve(lt);
139
+ const n = ve(Ht), e = ve(ot);
126
140
  return {
127
141
  routes: n,
128
142
  currentRoute: e
@@ -131,20 +145,20 @@ function Tn() {
131
145
  const En = {
132
146
  border: "b base",
133
147
  class: "flex items-center justify-between px3"
134
- }, Vn = ["href"], Nn = ["href"], $e = /* @__PURE__ */ B({
148
+ }, Vn = ["href"], Nn = ["href"], Se = /* @__PURE__ */ B({
135
149
  __name: "DevToolsHeader",
136
150
  props: {
137
151
  githubRepoLink: {},
138
152
  docLink: {}
139
153
  },
140
154
  setup(n) {
141
- const e = De();
142
- return (o, t) => (p(), f("div", En, [
155
+ const e = Ae();
156
+ return (o, t) => (p(), v("div", En, [
143
157
  d("div", null, [
144
- tt(o.$slots, "default", {}, () => [
158
+ Qe(o.$slots, "default", {}, () => [
145
159
  d("i", {
146
160
  class: "i-ep:back cursor-pointer op70 text-base hover:op100",
147
- onClick: t[0] || (t[0] = (s) => c(e).push("/"))
161
+ onClick: t[0] || (t[0] = (l) => r(e).push("/"))
148
162
  })
149
163
  ])
150
164
  ]),
@@ -157,100 +171,100 @@ const En = {
157
171
  }, t[1] || (t[1] = [
158
172
  d("i", { class: "i-clarity:document-line cursor-pointer op70 text-base hover:op100" }, null, -1)
159
173
  ]), 8, Vn),
160
- o.githubRepoLink ? (p(), f("a", {
174
+ o.githubRepoLink ? (p(), v("a", {
161
175
  key: 0,
162
176
  href: o.githubRepoLink,
163
177
  target: "_blank",
164
178
  title: "Star on GitHub"
165
179
  }, t[2] || (t[2] = [
166
180
  d("i", { class: "i-mdi:github cursor-pointer op70 text-base hover:op100" }, null, -1)
167
- ]), 8, Nn)) : j("", !0)
181
+ ]), 8, Nn)) : O("", !0)
168
182
  ])
169
183
  ]));
170
184
  }
171
- }), Ce = (n, e) => {
185
+ }), xe = (n, e) => {
172
186
  const o = n.__vccOpts || n;
173
- for (const [t, s] of e)
174
- o[t] = s;
187
+ for (const [t, l] of e)
188
+ o[t] = l;
175
189
  return o;
176
190
  }, Rn = {}, An = { class: "h-full flex flex-col items-center justify-center op50" };
177
191
  function Dn(n, e) {
178
- return p(), f("div", An, [
192
+ return p(), v("div", An, [
179
193
  e[0] || (e[0] = d("i", { class: "i-lets-icons:blank-light" }, null, -1)),
180
194
  d("span", null, [
181
- tt(n.$slots, "default")
195
+ Qe(n.$slots, "default")
182
196
  ])
183
197
  ]);
184
198
  }
185
- const Ne = /* @__PURE__ */ Ce(Rn, [["render", Dn]]), Pn = { class: "flex gap3" }, Mn = ["onClick"], Se = /* @__PURE__ */ B({
199
+ const Ie = /* @__PURE__ */ xe(Rn, [["render", Dn]]), Pn = { class: "flex gap3" }, Mn = ["onClick"], Te = /* @__PURE__ */ B({
186
200
  __name: "Navbar",
187
201
  setup(n) {
188
- const { routes: e, currentRoute: o } = Tn(), t = De();
189
- return (s, l) => (p(), f("ul", Pn, [
190
- (p(!0), f(ne, null, ie(c(e), (u, i) => (p(), f("li", {
191
- key: i,
192
- class: oe(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100", c(o).path === u.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
193
- onClick: (r) => c(t).push(u.path)
194
- }, le(u.name), 11, Mn))), 128))
202
+ const { routes: e, currentRoute: o } = Tn(), t = Ae();
203
+ return (l, s) => (p(), v("ul", Pn, [
204
+ (p(!0), v(oe, null, ue(r(e), (c, a) => (p(), v("li", {
205
+ key: a,
206
+ class: se(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100", r(o).path === c.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
207
+ onClick: (i) => r(t).push(c.path)
208
+ }, ae(c.name), 11, Mn))), 128))
195
209
  ]));
196
210
  }
197
- }), at = /* @__PURE__ */ B({
211
+ }), st = /* @__PURE__ */ B({
198
212
  __name: "ToggleExpanded",
199
213
  props: {
200
214
  value: { type: Boolean }
201
215
  },
202
216
  setup(n) {
203
- return (e, o) => (p(), f("i", {
204
- class: oe(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base", {
217
+ return (e, o) => (p(), v("i", {
218
+ class: se(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base", {
205
219
  "transform rotate-90": e.value
206
220
  }])
207
221
  }, null, 2));
208
222
  }
209
- }), Ht = Symbol("StateEditorSymbol");
223
+ }), Ut = Symbol("StateEditorSymbol");
210
224
  function Ln(n) {
211
- const e = T(n);
212
- return ge(Ht, e), {
225
+ const e = I(n);
226
+ return Ce(Ut, e), {
213
227
  context: e
214
228
  };
215
229
  }
216
- function it() {
217
- return ve(Ht);
230
+ function at() {
231
+ return ve(Ut);
218
232
  }
219
233
  function Hn() {
220
- const n = T(""), e = T("string"), o = T(!1), t = it();
234
+ const n = I(""), e = I("string"), o = I(!1), t = at();
221
235
  return {
222
236
  editingText: n,
223
237
  editing: o,
224
- toggleEditing(s) {
225
- s && (e.value = s), o.value = !o.value;
238
+ toggleEditing(l) {
239
+ l && (e.value = l), o.value = !o.value;
226
240
  },
227
241
  editingType: e,
228
- nodeId: V(() => t.value.nodeId)
242
+ nodeId: E(() => t.value.nodeId)
229
243
  };
230
244
  }
231
- function On(n, e) {
245
+ function Un(n, e) {
232
246
  if (n === "array")
233
247
  return e.length;
234
248
  const o = "newProp";
235
249
  let t = 1;
236
250
  for (; ; ) {
237
- const s = `${o}${t}`;
238
- if (!e[s])
239
- return s;
251
+ const l = `${o}${t}`;
252
+ if (!e[l])
253
+ return l;
240
254
  t++;
241
255
  }
242
256
  }
243
- function jn() {
244
- const n = T({
257
+ function On() {
258
+ const n = I({
245
259
  enable: !1,
246
260
  key: "",
247
261
  value: "undefined"
248
262
  });
249
- function e(t, s) {
250
- const l = On(t, s);
263
+ function e(t, l) {
264
+ const s = Un(t, l);
251
265
  n.value = {
252
266
  enable: !0,
253
- key: l.toString(),
267
+ key: s.toString(),
254
268
  value: "undefined"
255
269
  };
256
270
  }
@@ -269,63 +283,63 @@ function jn() {
269
283
  }
270
284
  const Ot = "expanded-state";
271
285
  function me(n = "") {
272
- const e = T([]);
273
- return ge(`${Ot}-${n}`, e), {
286
+ const e = I([]);
287
+ return Ce(`${Ot}-${n}`, e), {
274
288
  expanded: e
275
289
  };
276
290
  }
277
- function rt(n = "") {
278
- const e = ve(`${Ot}-${n}`, T([]));
291
+ function it(n = "") {
292
+ const e = ve(`${Ot}-${n}`, I([]));
279
293
  function o(t) {
280
- const s = e.value.indexOf(t);
281
- s === -1 ? e.value.push(t) : e.value.splice(s, 1);
294
+ const l = e.value.indexOf(t);
295
+ l === -1 ? e.value.push(t) : e.value.splice(l, 1);
282
296
  }
283
297
  return {
284
298
  expanded: e,
285
299
  toggleExpanded: o
286
300
  };
287
301
  }
288
- function ut(n) {
302
+ function rt(n) {
289
303
  return en() ? (tn(n), !0) : !1;
290
304
  }
291
- function te(n) {
292
- return typeof n == "function" ? n() : c(n);
305
+ function ne(n) {
306
+ return typeof n == "function" ? n() : r(n);
293
307
  }
294
- const ct = typeof window < "u" && typeof document < "u";
308
+ const ut = typeof window < "u" && typeof document < "u";
295
309
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
296
- const Un = (n) => typeof n < "u", zn = Object.prototype.toString, Bn = (n) => zn.call(n) === "[object Object]", Ge = () => {
310
+ const jn = (n) => typeof n < "u", zn = Object.prototype.toString, Bn = (n) => zn.call(n) === "[object Object]", Fe = () => {
297
311
  };
298
- function Zn(n, e) {
312
+ function Fn(n, e) {
299
313
  function o(...t) {
300
- return new Promise((s, l) => {
301
- Promise.resolve(n(() => e.apply(this, t), { fn: e, thisArg: this, args: t })).then(s).catch(l);
314
+ return new Promise((l, s) => {
315
+ Promise.resolve(n(() => e.apply(this, t), { fn: e, thisArg: this, args: t })).then(l).catch(s);
302
316
  });
303
317
  }
304
318
  return o;
305
319
  }
306
- const Fn = (n) => n();
307
- function Gn(n, e = {}) {
308
- let o, t, s = Ge;
309
- const l = (i) => {
310
- clearTimeout(i), s(), s = Ge;
320
+ const Zn = (n) => n();
321
+ function Kn(n, e = {}) {
322
+ let o, t, l = Fe;
323
+ const s = (a) => {
324
+ clearTimeout(a), l(), l = Fe;
311
325
  };
312
- return (i) => {
313
- const r = te(n), h = te(e.maxWait);
314
- return o && l(o), r <= 0 || h !== void 0 && h <= 0 ? (t && (l(t), t = null), Promise.resolve(i())) : new Promise((v, a) => {
315
- s = e.rejectOnCancel ? a : v, h && !t && (t = setTimeout(() => {
316
- o && l(o), t = null, v(i());
317
- }, h)), o = setTimeout(() => {
318
- t && l(t), t = null, v(i());
319
- }, r);
326
+ return (a) => {
327
+ const i = ne(n), g = ne(e.maxWait);
328
+ return o && s(o), i <= 0 || g !== void 0 && g <= 0 ? (t && (s(t), t = null), Promise.resolve(a())) : new Promise((h, u) => {
329
+ l = e.rejectOnCancel ? u : h, g && !t && (t = setTimeout(() => {
330
+ o && s(o), t = null, h(a());
331
+ }, g)), o = setTimeout(() => {
332
+ t && s(t), t = null, h(a());
333
+ }, i);
320
334
  });
321
335
  };
322
336
  }
323
- function kt(n, e = !1, o = "Timeout") {
324
- return new Promise((t, s) => {
325
- setTimeout(e ? () => s(o) : t, n);
337
+ function It(n, e = !1, o = "Timeout") {
338
+ return new Promise((t, l) => {
339
+ setTimeout(e ? () => l(o) : t, n);
326
340
  });
327
341
  }
328
- function Kn(n) {
342
+ function Gn(n) {
329
343
  let e;
330
344
  function o() {
331
345
  return e || (e = n()), e;
@@ -336,340 +350,340 @@ function Kn(n) {
336
350
  }, o;
337
351
  }
338
352
  function Wn(n) {
339
- return nt();
353
+ return et();
340
354
  }
341
355
  function qn(n, e, o = {}) {
342
356
  const {
343
- eventFilter: t = Fn,
344
- ...s
357
+ eventFilter: t = Zn,
358
+ ...l
345
359
  } = o;
346
- return ee(
360
+ return Q(
347
361
  n,
348
- Zn(
362
+ Fn(
349
363
  t,
350
364
  e
351
365
  ),
352
- s
366
+ l
353
367
  );
354
368
  }
355
369
  function Jn(n, e = !0, o) {
356
- Wn() ? St(n, o) : e ? n() : Be(n);
370
+ Wn() ? Tt(n, o) : e ? n() : ze(n);
357
371
  }
358
- function Qe(n, e = !1) {
359
- function o(a, { flush: m = "sync", deep: E = !1, timeout: A, throwOnTimeout: g } = {}) {
372
+ function Ye(n, e = !1) {
373
+ function o(u, { flush: m = "sync", deep: V = !1, timeout: R, throwOnTimeout: C } = {}) {
360
374
  let $ = null;
361
- const D = [new Promise((_) => {
362
- $ = ee(
375
+ const A = [new Promise((x) => {
376
+ $ = Q(
363
377
  n,
364
- (C) => {
365
- a(C) !== e && ($ ? $() : Be(() => $ == null ? void 0 : $()), _(C));
378
+ (w) => {
379
+ u(w) !== e && ($ ? $() : ze(() => $ == null ? void 0 : $()), x(w));
366
380
  },
367
381
  {
368
382
  flush: m,
369
- deep: E,
383
+ deep: V,
370
384
  immediate: !0
371
385
  }
372
386
  );
373
387
  })];
374
- return A != null && D.push(
375
- kt(A, g).then(() => te(n)).finally(() => $ == null ? void 0 : $())
376
- ), Promise.race(D);
388
+ return R != null && A.push(
389
+ It(R, C).then(() => ne(n)).finally(() => $ == null ? void 0 : $())
390
+ ), Promise.race(A);
377
391
  }
378
- function t(a, m) {
379
- if (!Ke(a))
380
- return o((C) => C === a, m);
381
- const { flush: E = "sync", deep: A = !1, timeout: g, throwOnTimeout: $ } = m ?? {};
382
- let U = null;
383
- const _ = [new Promise((C) => {
384
- U = ee(
385
- [n, a],
386
- ([S, L]) => {
387
- e !== (S === L) && (U ? U() : Be(() => U == null ? void 0 : U()), C(S));
392
+ function t(u, m) {
393
+ if (!Ze(u))
394
+ return o((w) => w === u, m);
395
+ const { flush: V = "sync", deep: R = !1, timeout: C, throwOnTimeout: $ } = m ?? {};
396
+ let j = null;
397
+ const x = [new Promise((w) => {
398
+ j = Q(
399
+ [n, u],
400
+ ([N, M]) => {
401
+ e !== (N === M) && (j ? j() : ze(() => j == null ? void 0 : j()), w(N));
388
402
  },
389
403
  {
390
- flush: E,
391
- deep: A,
404
+ flush: V,
405
+ deep: R,
392
406
  immediate: !0
393
407
  }
394
408
  );
395
409
  })];
396
- return g != null && _.push(
397
- kt(g, $).then(() => te(n)).finally(() => (U == null || U(), te(n)))
398
- ), Promise.race(_);
410
+ return C != null && x.push(
411
+ It(C, $).then(() => ne(n)).finally(() => (j == null || j(), ne(n)))
412
+ ), Promise.race(x);
399
413
  }
400
- function s(a) {
401
- return o((m) => !!m, a);
414
+ function l(u) {
415
+ return o((m) => !!m, u);
402
416
  }
403
- function l(a) {
404
- return t(null, a);
417
+ function s(u) {
418
+ return t(null, u);
405
419
  }
406
- function u(a) {
407
- return t(void 0, a);
420
+ function c(u) {
421
+ return t(void 0, u);
408
422
  }
409
- function i(a) {
410
- return o(Number.isNaN, a);
423
+ function a(u) {
424
+ return o(Number.isNaN, u);
411
425
  }
412
- function r(a, m) {
413
- return o((E) => {
414
- const A = Array.from(E);
415
- return A.includes(a) || A.includes(te(a));
426
+ function i(u, m) {
427
+ return o((V) => {
428
+ const R = Array.from(V);
429
+ return R.includes(u) || R.includes(ne(u));
416
430
  }, m);
417
431
  }
418
- function h(a) {
419
- return v(1, a);
432
+ function g(u) {
433
+ return h(1, u);
420
434
  }
421
- function v(a = 1, m) {
422
- let E = -1;
423
- return o(() => (E += 1, E >= a), m);
435
+ function h(u = 1, m) {
436
+ let V = -1;
437
+ return o(() => (V += 1, V >= u), m);
424
438
  }
425
- return Array.isArray(te(n)) ? {
439
+ return Array.isArray(ne(n)) ? {
426
440
  toMatch: o,
427
- toContains: r,
428
- changed: h,
429
- changedTimes: v,
441
+ toContains: i,
442
+ changed: g,
443
+ changedTimes: h,
430
444
  get not() {
431
- return Qe(n, !e);
445
+ return Ye(n, !e);
432
446
  }
433
447
  } : {
434
448
  toMatch: o,
435
449
  toBe: t,
436
- toBeTruthy: s,
437
- toBeNull: l,
438
- toBeNaN: i,
439
- toBeUndefined: u,
440
- changed: h,
441
- changedTimes: v,
450
+ toBeTruthy: l,
451
+ toBeNull: s,
452
+ toBeNaN: a,
453
+ toBeUndefined: c,
454
+ changed: g,
455
+ changedTimes: h,
442
456
  get not() {
443
- return Qe(n, !e);
457
+ return Ye(n, !e);
444
458
  }
445
459
  };
446
460
  }
447
461
  function jt(n) {
448
- return Qe(n);
462
+ return Ye(n);
449
463
  }
450
464
  function Yn(n, e, o = {}) {
451
465
  const {
452
466
  immediate: t = !0
453
- } = o, s = T(!1);
454
- let l = null;
455
- function u() {
456
- l && (clearTimeout(l), l = null);
467
+ } = o, l = I(!1);
468
+ let s = null;
469
+ function c() {
470
+ s && (clearTimeout(s), s = null);
457
471
  }
458
- function i() {
459
- s.value = !1, u();
472
+ function a() {
473
+ l.value = !1, c();
460
474
  }
461
- function r(...h) {
462
- u(), s.value = !0, l = setTimeout(() => {
463
- s.value = !1, l = null, n(...h);
464
- }, te(e));
475
+ function i(...g) {
476
+ c(), l.value = !0, s = setTimeout(() => {
477
+ l.value = !1, s = null, n(...g);
478
+ }, ne(e));
465
479
  }
466
- return t && (s.value = !0, ct && r()), ut(i), {
467
- isPending: Qt(s),
468
- start: r,
469
- stop: i
480
+ return t && (l.value = !0, ut && i()), rt(a), {
481
+ isPending: Qt(l),
482
+ start: i,
483
+ stop: a
470
484
  };
471
485
  }
472
486
  function Xn(n = !1, e = {}) {
473
487
  const {
474
488
  truthyValue: o = !0,
475
489
  falsyValue: t = !1
476
- } = e, s = Ke(n), l = T(n);
477
- function u(i) {
490
+ } = e, l = Ze(n), s = I(n);
491
+ function c(a) {
478
492
  if (arguments.length)
479
- return l.value = i, l.value;
493
+ return s.value = a, s.value;
480
494
  {
481
- const r = te(o);
482
- return l.value = l.value === r ? te(t) : r, l.value;
495
+ const i = ne(o);
496
+ return s.value = s.value === i ? ne(t) : i, s.value;
483
497
  }
484
498
  }
485
- return s ? u : [l, u];
499
+ return l ? c : [s, c];
486
500
  }
487
501
  function Qn(n, e, o = {}) {
488
502
  const {
489
503
  debounce: t = 0,
490
- maxWait: s = void 0,
491
- ...l
504
+ maxWait: l = void 0,
505
+ ...s
492
506
  } = o;
493
507
  return qn(
494
508
  n,
495
509
  e,
496
510
  {
497
- ...l,
498
- eventFilter: Gn(t, { maxWait: s })
511
+ ...s,
512
+ eventFilter: Kn(t, { maxWait: l })
499
513
  }
500
514
  );
501
515
  }
502
- const We = ct ? window : void 0, Ut = ct ? window.navigator : void 0;
503
- function xe(n) {
516
+ const Ke = ut ? window : void 0, zt = ut ? window.navigator : void 0;
517
+ function be(n) {
504
518
  var e;
505
- const o = te(n);
519
+ const o = ne(n);
506
520
  return (e = o == null ? void 0 : o.$el) != null ? e : o;
507
521
  }
508
- function he(...n) {
509
- let e, o, t, s;
510
- if (typeof n[0] == "string" || Array.isArray(n[0]) ? ([o, t, s] = n, e = We) : [e, o, t, s] = n, !e)
511
- return Ge;
522
+ function ge(...n) {
523
+ let e, o, t, l;
524
+ if (typeof n[0] == "string" || Array.isArray(n[0]) ? ([o, t, l] = n, e = Ke) : [e, o, t, l] = n, !e)
525
+ return Fe;
512
526
  Array.isArray(o) || (o = [o]), Array.isArray(t) || (t = [t]);
513
- const l = [], u = () => {
514
- l.forEach((v) => v()), l.length = 0;
515
- }, i = (v, a, m, E) => (v.addEventListener(a, m, E), () => v.removeEventListener(a, m, E)), r = ee(
516
- () => [xe(e), te(s)],
517
- ([v, a]) => {
518
- if (u(), !v)
527
+ const s = [], c = () => {
528
+ s.forEach((h) => h()), s.length = 0;
529
+ }, a = (h, u, m, V) => (h.addEventListener(u, m, V), () => h.removeEventListener(u, m, V)), i = Q(
530
+ () => [be(e), ne(l)],
531
+ ([h, u]) => {
532
+ if (c(), !h)
519
533
  return;
520
- const m = Bn(a) ? { ...a } : a;
521
- l.push(
522
- ...o.flatMap((E) => t.map((A) => i(v, E, A, m)))
534
+ const m = Bn(u) ? { ...u } : u;
535
+ s.push(
536
+ ...o.flatMap((V) => t.map((R) => a(h, V, R, m)))
523
537
  );
524
538
  },
525
539
  { immediate: !0, flush: "post" }
526
- ), h = () => {
527
- r(), u();
540
+ ), g = () => {
541
+ i(), c();
528
542
  };
529
- return ut(h), h;
543
+ return rt(g), g;
530
544
  }
531
545
  function eo() {
532
- const n = T(!1), e = nt();
533
- return e && St(() => {
546
+ const n = I(!1), e = et();
547
+ return e && Tt(() => {
534
548
  n.value = !0;
535
549
  }, e), n;
536
550
  }
537
- function dt(n) {
551
+ function ct(n) {
538
552
  const e = eo();
539
- return V(() => (e.value, !!n()));
553
+ return E(() => (e.value, !!n()));
540
554
  }
541
- function It(n, e = {}) {
555
+ function $t(n, e = {}) {
542
556
  const {
543
557
  controls: o = !1,
544
- navigator: t = Ut
545
- } = e, s = dt(() => t && "permissions" in t), l = ht(), u = typeof n == "string" ? { name: n } : n, i = ht(), r = () => {
546
- var v, a;
547
- i.value = (a = (v = l.value) == null ? void 0 : v.state) != null ? a : "prompt";
558
+ navigator: t = zt
559
+ } = e, l = ct(() => t && "permissions" in t), s = gt(), c = typeof n == "string" ? { name: n } : n, a = gt(), i = () => {
560
+ var h, u;
561
+ a.value = (u = (h = s.value) == null ? void 0 : h.state) != null ? u : "prompt";
548
562
  };
549
- he(l, "change", r);
550
- const h = Kn(async () => {
551
- if (s.value) {
552
- if (!l.value)
563
+ ge(s, "change", i);
564
+ const g = Gn(async () => {
565
+ if (l.value) {
566
+ if (!s.value)
553
567
  try {
554
- l.value = await t.permissions.query(u);
568
+ s.value = await t.permissions.query(c);
555
569
  } catch {
556
- l.value = void 0;
570
+ s.value = void 0;
557
571
  } finally {
558
- r();
572
+ i();
559
573
  }
560
574
  if (o)
561
- return Tt(l.value);
575
+ return Et(s.value);
562
576
  }
563
577
  });
564
- return h(), o ? {
565
- state: i,
566
- isSupported: s,
567
- query: h
568
- } : i;
578
+ return g(), o ? {
579
+ state: a,
580
+ isSupported: l,
581
+ query: g
582
+ } : a;
569
583
  }
570
584
  function to(n = {}) {
571
585
  const {
572
- navigator: e = Ut,
586
+ navigator: e = zt,
573
587
  read: o = !1,
574
588
  source: t,
575
- copiedDuring: s = 1500,
576
- legacy: l = !1
577
- } = n, u = dt(() => e && "clipboard" in e), i = It("clipboard-read"), r = It("clipboard-write"), h = V(() => u.value || l), v = T(""), a = T(!1), m = Yn(() => a.value = !1, s);
578
- function E() {
579
- u.value && U(i.value) ? e.clipboard.readText().then((D) => {
580
- v.value = D;
581
- }) : v.value = $();
589
+ copiedDuring: l = 1500,
590
+ legacy: s = !1
591
+ } = n, c = ct(() => e && "clipboard" in e), a = $t("clipboard-read"), i = $t("clipboard-write"), g = E(() => c.value || s), h = I(""), u = I(!1), m = Yn(() => u.value = !1, l);
592
+ function V() {
593
+ c.value && j(a.value) ? e.clipboard.readText().then((A) => {
594
+ h.value = A;
595
+ }) : h.value = $();
582
596
  }
583
- h.value && o && he(["copy", "cut"], E);
584
- async function A(D = te(t)) {
585
- h.value && D != null && (u.value && U(r.value) ? await e.clipboard.writeText(D) : g(D), v.value = D, a.value = !0, m.start());
597
+ g.value && o && ge(["copy", "cut"], V);
598
+ async function R(A = ne(t)) {
599
+ g.value && A != null && (c.value && j(i.value) ? await e.clipboard.writeText(A) : C(A), h.value = A, u.value = !0, m.start());
586
600
  }
587
- function g(D) {
588
- const _ = document.createElement("textarea");
589
- _.value = D ?? "", _.style.position = "absolute", _.style.opacity = "0", document.body.appendChild(_), _.select(), document.execCommand("copy"), _.remove();
601
+ function C(A) {
602
+ const x = document.createElement("textarea");
603
+ x.value = A ?? "", x.style.position = "absolute", x.style.opacity = "0", document.body.appendChild(x), x.select(), document.execCommand("copy"), x.remove();
590
604
  }
591
605
  function $() {
592
- var D, _, C;
593
- return (C = (_ = (D = document == null ? void 0 : document.getSelection) == null ? void 0 : D.call(document)) == null ? void 0 : _.toString()) != null ? C : "";
606
+ var A, x, w;
607
+ return (w = (x = (A = document == null ? void 0 : document.getSelection) == null ? void 0 : A.call(document)) == null ? void 0 : x.toString()) != null ? w : "";
594
608
  }
595
- function U(D) {
596
- return D === "granted" || D === "prompt";
609
+ function j(A) {
610
+ return A === "granted" || A === "prompt";
597
611
  }
598
612
  return {
599
- isSupported: h,
600
- text: v,
601
- copied: a,
602
- copy: A
613
+ isSupported: g,
614
+ text: h,
615
+ copied: u,
616
+ copy: R
603
617
  };
604
618
  }
605
619
  function no(n) {
606
620
  return JSON.parse(JSON.stringify(n));
607
621
  }
608
622
  function oo(n, e, o = {}) {
609
- const { window: t = We, ...s } = o;
610
- let l;
611
- const u = dt(() => t && "ResizeObserver" in t), i = () => {
612
- l && (l.disconnect(), l = void 0);
613
- }, r = V(() => {
614
- const a = te(n);
615
- return Array.isArray(a) ? a.map((m) => xe(m)) : [xe(a)];
616
- }), h = ee(
617
- r,
618
- (a) => {
619
- if (i(), u.value && t) {
620
- l = new ResizeObserver(e);
621
- for (const m of a)
622
- m && l.observe(m, s);
623
+ const { window: t = Ke, ...l } = o;
624
+ let s;
625
+ const c = ct(() => t && "ResizeObserver" in t), a = () => {
626
+ s && (s.disconnect(), s = void 0);
627
+ }, i = E(() => {
628
+ const u = ne(n);
629
+ return Array.isArray(u) ? u.map((m) => be(m)) : [be(u)];
630
+ }), g = Q(
631
+ i,
632
+ (u) => {
633
+ if (a(), c.value && t) {
634
+ s = new ResizeObserver(e);
635
+ for (const m of u)
636
+ m && s.observe(m, l);
623
637
  }
624
638
  },
625
639
  { immediate: !0, flush: "post" }
626
- ), v = () => {
627
- i(), h();
640
+ ), h = () => {
641
+ a(), g();
628
642
  };
629
- return ut(v), {
630
- isSupported: u,
631
- stop: v
643
+ return rt(h), {
644
+ isSupported: c,
645
+ stop: h
632
646
  };
633
647
  }
634
648
  function lo(n, e = { width: 0, height: 0 }, o = {}) {
635
- const { window: t = We, box: s = "content-box" } = o, l = V(() => {
636
- var a, m;
637
- return (m = (a = xe(n)) == null ? void 0 : a.namespaceURI) == null ? void 0 : m.includes("svg");
638
- }), u = T(e.width), i = T(e.height), { stop: r } = oo(
649
+ const { window: t = Ke, box: l = "content-box" } = o, s = E(() => {
650
+ var u, m;
651
+ return (m = (u = be(n)) == null ? void 0 : u.namespaceURI) == null ? void 0 : m.includes("svg");
652
+ }), c = I(e.width), a = I(e.height), { stop: i } = oo(
639
653
  n,
640
- ([a]) => {
641
- const m = s === "border-box" ? a.borderBoxSize : s === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
642
- if (t && l.value) {
643
- const E = xe(n);
644
- if (E) {
645
- const A = E.getBoundingClientRect();
646
- u.value = A.width, i.value = A.height;
654
+ ([u]) => {
655
+ const m = l === "border-box" ? u.borderBoxSize : l === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
656
+ if (t && s.value) {
657
+ const V = be(n);
658
+ if (V) {
659
+ const R = V.getBoundingClientRect();
660
+ c.value = R.width, a.value = R.height;
647
661
  }
648
662
  } else if (m) {
649
- const E = Array.isArray(m) ? m : [m];
650
- u.value = E.reduce((A, { inlineSize: g }) => A + g, 0), i.value = E.reduce((A, { blockSize: g }) => A + g, 0);
663
+ const V = Array.isArray(m) ? m : [m];
664
+ c.value = V.reduce((R, { inlineSize: C }) => R + C, 0), a.value = V.reduce((R, { blockSize: C }) => R + C, 0);
651
665
  } else
652
- u.value = a.contentRect.width, i.value = a.contentRect.height;
666
+ c.value = u.contentRect.width, a.value = u.contentRect.height;
653
667
  },
654
668
  o
655
669
  );
656
670
  Jn(() => {
657
- const a = xe(n);
658
- a && (u.value = "offsetWidth" in a ? a.offsetWidth : e.width, i.value = "offsetHeight" in a ? a.offsetHeight : e.height);
671
+ const u = be(n);
672
+ u && (c.value = "offsetWidth" in u ? u.offsetWidth : e.width, a.value = "offsetHeight" in u ? u.offsetHeight : e.height);
659
673
  });
660
- const h = ee(
661
- () => xe(n),
662
- (a) => {
663
- u.value = a ? e.width : 0, i.value = a ? e.height : 0;
674
+ const g = Q(
675
+ () => be(n),
676
+ (u) => {
677
+ c.value = u ? e.width : 0, a.value = u ? e.height : 0;
664
678
  }
665
679
  );
666
- function v() {
667
- r(), h();
680
+ function h() {
681
+ i(), g();
668
682
  }
669
683
  return {
670
- width: u,
671
- height: i,
672
- stop: v
684
+ width: c,
685
+ height: a,
686
+ stop: h
673
687
  };
674
688
  }
675
689
  const so = {
@@ -685,91 +699,91 @@ const so = {
685
699
  function ao(n = {}) {
686
700
  const {
687
701
  reactive: e = !1,
688
- target: o = We,
702
+ target: o = Ke,
689
703
  aliasMap: t = so,
690
- passive: s = !0,
691
- onEventFired: l = Ge
692
- } = n, u = mt(/* @__PURE__ */ new Set()), i = {
704
+ passive: l = !0,
705
+ onEventFired: s = Fe
706
+ } = n, c = ht(/* @__PURE__ */ new Set()), a = {
693
707
  toJSON() {
694
708
  return {};
695
709
  },
696
- current: u
697
- }, r = e ? mt(i) : i, h = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set();
698
- function a(g, $) {
699
- g in r && (e ? r[g] = $ : r[g].value = $);
710
+ current: c
711
+ }, i = e ? ht(a) : a, g = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set();
712
+ function u(C, $) {
713
+ C in i && (e ? i[C] = $ : i[C].value = $);
700
714
  }
701
715
  function m() {
702
- u.clear();
703
- for (const g of v)
704
- a(g, !1);
716
+ c.clear();
717
+ for (const C of h)
718
+ u(C, !1);
705
719
  }
706
- function E(g, $) {
707
- var U, D;
708
- const _ = (U = g.key) == null ? void 0 : U.toLowerCase(), S = [(D = g.code) == null ? void 0 : D.toLowerCase(), _].filter(Boolean);
709
- _ && ($ ? u.add(_) : u.delete(_));
710
- for (const L of S)
711
- v.add(L), a(L, $);
712
- _ === "meta" && !$ ? (h.forEach((L) => {
713
- u.delete(L), a(L, !1);
714
- }), h.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && $ && [...u, ...S].forEach((L) => h.add(L));
720
+ function V(C, $) {
721
+ var j, A;
722
+ const x = (j = C.key) == null ? void 0 : j.toLowerCase(), N = [(A = C.code) == null ? void 0 : A.toLowerCase(), x].filter(Boolean);
723
+ x && ($ ? c.add(x) : c.delete(x));
724
+ for (const M of N)
725
+ h.add(M), u(M, $);
726
+ x === "meta" && !$ ? (g.forEach((M) => {
727
+ c.delete(M), u(M, !1);
728
+ }), g.clear()) : typeof C.getModifierState == "function" && C.getModifierState("Meta") && $ && [...c, ...N].forEach((M) => g.add(M));
715
729
  }
716
- he(o, "keydown", (g) => (E(g, !0), l(g)), { passive: s }), he(o, "keyup", (g) => (E(g, !1), l(g)), { passive: s }), he("blur", m, { passive: !0 }), he("focus", m, { passive: !0 });
717
- const A = new Proxy(
718
- r,
730
+ ge(o, "keydown", (C) => (V(C, !0), s(C)), { passive: l }), ge(o, "keyup", (C) => (V(C, !1), s(C)), { passive: l }), ge("blur", m, { passive: !0 }), ge("focus", m, { passive: !0 });
731
+ const R = new Proxy(
732
+ i,
719
733
  {
720
- get(g, $, U) {
734
+ get(C, $, j) {
721
735
  if (typeof $ != "string")
722
- return Reflect.get(g, $, U);
723
- if ($ = $.toLowerCase(), $ in t && ($ = t[$]), !($ in r))
736
+ return Reflect.get(C, $, j);
737
+ if ($ = $.toLowerCase(), $ in t && ($ = t[$]), !($ in i))
724
738
  if (/[+_-]/.test($)) {
725
- const _ = $.split(/[+_-]/g).map((C) => C.trim());
726
- r[$] = V(() => _.every((C) => te(A[C])));
739
+ const x = $.split(/[+_-]/g).map((w) => w.trim());
740
+ i[$] = E(() => x.every((w) => ne(R[w])));
727
741
  } else
728
- r[$] = T(!1);
729
- const D = Reflect.get(g, $, U);
730
- return e ? te(D) : D;
742
+ i[$] = I(!1);
743
+ const A = Reflect.get(C, $, j);
744
+ return e ? ne(A) : A;
731
745
  }
732
746
  }
733
747
  );
734
- return A;
748
+ return R;
735
749
  }
736
750
  function io(n, e, o, t = {}) {
737
- var s, l, u;
751
+ var l, s, c;
738
752
  const {
739
- clone: i = !1,
740
- passive: r = !1,
741
- eventName: h,
742
- deep: v = !1,
743
- defaultValue: a,
753
+ clone: a = !1,
754
+ passive: i = !1,
755
+ eventName: g,
756
+ deep: h = !1,
757
+ defaultValue: u,
744
758
  shouldEmit: m
745
- } = t, E = nt(), A = o || (E == null ? void 0 : E.emit) || ((s = E == null ? void 0 : E.$emit) == null ? void 0 : s.bind(E)) || ((u = (l = E == null ? void 0 : E.proxy) == null ? void 0 : l.$emit) == null ? void 0 : u.bind(E == null ? void 0 : E.proxy));
746
- let g = h;
747
- g = g || `update:${e.toString()}`;
748
- const $ = (_) => i ? typeof i == "function" ? i(_) : no(_) : _, U = () => Un(n[e]) ? $(n[e]) : a, D = (_) => {
749
- m ? m(_) && A(g, _) : A(g, _);
759
+ } = t, V = et(), R = o || (V == null ? void 0 : V.emit) || ((l = V == null ? void 0 : V.$emit) == null ? void 0 : l.bind(V)) || ((c = (s = V == null ? void 0 : V.proxy) == null ? void 0 : s.$emit) == null ? void 0 : c.bind(V == null ? void 0 : V.proxy));
760
+ let C = g;
761
+ C = C || `update:${e.toString()}`;
762
+ const $ = (x) => a ? typeof a == "function" ? a(x) : no(x) : x, j = () => jn(n[e]) ? $(n[e]) : u, A = (x) => {
763
+ m ? m(x) && R(C, x) : R(C, x);
750
764
  };
751
- if (r) {
752
- const _ = U(), C = T(_);
753
- let S = !1;
754
- return ee(
765
+ if (i) {
766
+ const x = j(), w = I(x);
767
+ let N = !1;
768
+ return Q(
755
769
  () => n[e],
756
- (L) => {
757
- S || (S = !0, C.value = $(L), Be(() => S = !1));
770
+ (M) => {
771
+ N || (N = !0, w.value = $(M), ze(() => N = !1));
758
772
  }
759
- ), ee(
760
- C,
761
- (L) => {
762
- !S && (L !== n[e] || v) && D(L);
773
+ ), Q(
774
+ w,
775
+ (M) => {
776
+ !N && (M !== n[e] || h) && A(M);
763
777
  },
764
- { deep: v }
765
- ), C;
778
+ { deep: h }
779
+ ), w;
766
780
  } else
767
- return V({
781
+ return E({
768
782
  get() {
769
- return U();
783
+ return j();
770
784
  },
771
- set(_) {
772
- D(_);
785
+ set(x) {
786
+ A(x);
773
787
  }
774
788
  });
775
789
  }
@@ -779,14 +793,14 @@ function ro(n, e = {}) {
779
793
  },
780
794
  leave: t = () => {
781
795
  },
782
- initial: s = !1
783
- } = e, l = T(s);
784
- return he(n, "mouseenter", () => {
785
- l.value = !0, o();
786
- }), he(n, "mouseleave", () => {
787
- l.value = !1, t();
796
+ initial: l = !1
797
+ } = e, s = I(l);
798
+ return ge(n, "mouseenter", () => {
799
+ s.value = !0, o();
800
+ }), ge(n, "mouseleave", () => {
801
+ s.value = !1, t();
788
802
  }), {
789
- isHovering: l
803
+ isHovering: s
790
804
  };
791
805
  }
792
806
  const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__PURE__ */ B({
@@ -800,149 +814,149 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
800
814
  },
801
815
  emits: ["enableEditInput", "addNewProp"],
802
816
  setup(n) {
803
- const e = n, o = it(), { copy: t, isSupported: s } = to(), l = T(!1), u = V(() => Vt(e.data.value)), i = V(() => u.value.value), r = V(() => u.value.customType), h = V(() => i.value === null ? "null" : typeof i.value), v = {
817
+ const e = n, o = at(), { copy: t, isSupported: l } = to(), s = I(!1), c = E(() => Nt(e.data.value)), a = E(() => c.value.value), i = E(() => c.value.customType), g = E(() => a.value === null ? "null" : typeof a.value), h = {
804
818
  flat: !0,
805
819
  size: "mini"
806
- }, a = V(() => ({
820
+ }, u = E(() => ({
807
821
  "opacity-0": !e.hovering
808
822
  }));
809
- async function m(A, g = !1) {
810
- await P.value.editInspectorState({
823
+ async function m(R, C = !1) {
824
+ await D.value.editInspectorState({
811
825
  path: e.data.path || [e.data.key],
812
826
  inspectorId: o.value.inspectorId,
813
827
  type: e.data.stateType,
814
828
  nodeId: o.value.nodeId,
815
829
  state: {
816
830
  newKey: null,
817
- value: Tt(A),
818
- type: h.value,
819
- remove: g
831
+ value: Et(R),
832
+ type: g.value,
833
+ remove: C
820
834
  }
821
- }), await P.value.sendInspectorState(o.value.inspectorId);
835
+ }), await D.value.sendInspectorState(o.value.inspectorId);
822
836
  }
823
- function E(A, g) {
824
- const $ = typeof A == "number" ? A + g : BigInt(A) + BigInt(g);
837
+ function V(R, C) {
838
+ const $ = typeof R == "number" ? R + C : BigInt(R) + BigInt(C);
825
839
  m($);
826
840
  }
827
- return (A, g) => (p(), f("div", uo, [
828
- !e.disableEdit && A.data.editable ? (p(), f(ne, { key: 0 }, [
829
- h.value === "string" || h.value === "number" || h.value === "object" || h.value === "null" ? (p(), f(ne, { key: 0 }, [
830
- W((p(), z(c(de), ke(v, {
831
- class: a.value,
832
- onClick: g[0] || (g[0] = fe(($) => A.$emit("enableEditInput", h.value), ["stop"]))
841
+ return (R, C) => (p(), v("div", uo, [
842
+ !e.disableEdit && R.data.editable ? (p(), v(oe, { key: 0 }, [
843
+ g.value === "string" || g.value === "number" || g.value === "object" || g.value === "null" ? (p(), v(oe, { key: 0 }, [
844
+ q((p(), z(r(pe), ke(h, {
845
+ class: u.value,
846
+ onClick: C[0] || (C[0] = fe(($) => R.$emit("enableEditInput", g.value), ["stop"]))
833
847
  }), {
834
- icon: H(() => [
835
- x(c(se), { icon: "i-material-symbols-edit-rounded" })
848
+ icon: L(() => [
849
+ y(r(ie), { icon: "i-material-symbols-edit-rounded" })
836
850
  ]),
837
851
  _: 1
838
852
  }, 16, ["class"])), [
839
- [c(q), {
853
+ [r(J), {
840
854
  content: "Edit value"
841
855
  }]
842
856
  ]),
843
- h.value === "object" && A.showAddIfNeeded ? W((p(), z(c(de), ke({ key: 0 }, v, {
844
- class: a.value,
845
- onClick: g[1] || (g[1] = fe(($) => A.$emit("addNewProp", Array.isArray(i.value) ? "array" : "object"), ["stop"]))
857
+ g.value === "object" && R.showAddIfNeeded ? q((p(), z(r(pe), ke({ key: 0 }, h, {
858
+ class: u.value,
859
+ onClick: C[1] || (C[1] = fe(($) => R.$emit("addNewProp", Array.isArray(a.value) ? "array" : "object"), ["stop"]))
846
860
  }), {
847
- icon: H(() => [
848
- x(c(se), { icon: "i-material-symbols-add-circle-rounded" })
861
+ icon: L(() => [
862
+ y(r(ie), { icon: "i-material-symbols-add-circle-rounded" })
849
863
  ]),
850
864
  _: 1
851
865
  }, 16, ["class"])), [
852
- [c(q), {
866
+ [r(J), {
853
867
  content: "Add new value"
854
868
  }]
855
- ]) : j("", !0)
856
- ], 64)) : j("", !0),
857
- h.value === "boolean" ? (p(), z(c(de), ke({ key: 1 }, v, {
858
- class: a.value,
859
- onClick: g[2] || (g[2] = ($) => m(!i.value))
869
+ ]) : O("", !0)
870
+ ], 64)) : O("", !0),
871
+ g.value === "boolean" ? (p(), z(r(pe), ke({ key: 1 }, h, {
872
+ class: u.value,
873
+ onClick: C[2] || (C[2] = ($) => m(!a.value))
860
874
  }), {
861
- icon: H(() => [
862
- x(c(se), {
863
- icon: i.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
875
+ icon: L(() => [
876
+ y(r(ie), {
877
+ icon: a.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
864
878
  }, null, 8, ["icon"])
865
879
  ]),
866
880
  _: 1
867
- }, 16, ["class"])) : h.value === "number" || r.value === "bigint" ? (p(), f(ne, { key: 2 }, [
868
- x(c(de), ke(v, {
869
- class: a.value,
870
- onClick: g[3] || (g[3] = fe(($) => E(i.value, 1), ["stop"]))
881
+ }, 16, ["class"])) : g.value === "number" || i.value === "bigint" ? (p(), v(oe, { key: 2 }, [
882
+ y(r(pe), ke(h, {
883
+ class: u.value,
884
+ onClick: C[3] || (C[3] = fe(($) => V(a.value, 1), ["stop"]))
871
885
  }), {
872
- icon: H(() => [
873
- x(c(se), { icon: "i-carbon-add" })
886
+ icon: L(() => [
887
+ y(r(ie), { icon: "i-carbon-add" })
874
888
  ]),
875
889
  _: 1
876
890
  }, 16, ["class"]),
877
- x(c(de), ke(v, {
878
- class: a.value,
879
- onClick: g[4] || (g[4] = fe(($) => E(i.value, -1), ["stop"]))
891
+ y(r(pe), ke(h, {
892
+ class: u.value,
893
+ onClick: C[4] || (C[4] = fe(($) => V(a.value, -1), ["stop"]))
880
894
  }), {
881
- icon: H(() => [
882
- x(c(se), { icon: "i-carbon-subtract" })
895
+ icon: L(() => [
896
+ y(r(ie), { icon: "i-carbon-subtract" })
883
897
  ]),
884
898
  _: 1
885
899
  }, 16, ["class"])
886
- ], 64)) : j("", !0)
887
- ], 64)) : j("", !0),
888
- !e.disableEdit && A.depth > 0 && A.data.editable ? (p(), z(c(de), ke({ key: 1 }, v, {
889
- class: a.value,
890
- onClick: g[5] || (g[5] = fe(($) => m(i.value, !0), ["stop"]))
900
+ ], 64)) : O("", !0)
901
+ ], 64)) : O("", !0),
902
+ !e.disableEdit && R.depth > 0 && R.data.editable ? (p(), z(r(pe), ke({ key: 1 }, h, {
903
+ class: u.value,
904
+ onClick: C[5] || (C[5] = fe(($) => m(a.value, !0), ["stop"]))
891
905
  }), {
892
- icon: H(() => [
893
- x(c(se), { icon: "i-material-symbols-delete-rounded" })
906
+ icon: L(() => [
907
+ y(r(ie), { icon: "i-material-symbols-delete-rounded" })
894
908
  ]),
895
909
  _: 1
896
- }, 16, ["class"])) : j("", !0),
897
- x(c(ln), {
898
- class: oe({
899
- "opacity-0": !A.hovering && !l.value
910
+ }, 16, ["class"])) : O("", !0),
911
+ y(r(ln), {
912
+ class: se({
913
+ "opacity-0": !R.hovering && !s.value
900
914
  }),
901
915
  "button-props": {
902
916
  flat: !0,
903
917
  size: "mini"
904
918
  },
905
- disabled: !c(s),
906
- "onUpdate:visible": g[8] || (g[8] = ($) => l.value = $)
919
+ disabled: !r(l),
920
+ "onUpdate:visible": C[8] || (C[8] = ($) => s.value = $)
907
921
  }, {
908
- popper: H(() => [
922
+ popper: L(() => [
909
923
  d("div", co, [
910
- x(c(gt), {
911
- onClick: g[6] || (g[6] = ($) => c(t)(typeof i.value == "object" ? JSON.stringify(i.value) : i.value.toString()))
924
+ y(r(Ct), {
925
+ onClick: C[6] || (C[6] = ($) => r(t)(typeof a.value == "object" ? JSON.stringify(a.value) : a.value.toString()))
912
926
  }, {
913
- icon: H(() => [
914
- x(c(se), {
927
+ icon: L(() => [
928
+ y(r(ie), {
915
929
  icon: "i-material-symbols-copy-all-rounded",
916
930
  class: "mt4px"
917
931
  }),
918
- g[9] || (g[9] = Y(" Copy Value "))
932
+ C[9] || (C[9] = X(" Copy Value "))
919
933
  ]),
920
934
  _: 1
921
935
  }),
922
- x(c(gt), {
923
- onClick: g[7] || (g[7] = () => {
924
- c(t)(A.data.key);
936
+ y(r(Ct), {
937
+ onClick: C[7] || (C[7] = () => {
938
+ r(t)(R.data.key);
925
939
  })
926
940
  }, {
927
- icon: H(() => [
928
- x(c(se), {
941
+ icon: L(() => [
942
+ y(r(ie), {
929
943
  icon: "i-material-symbols-copy-all-rounded",
930
944
  class: "mt4px"
931
945
  }),
932
- g[10] || (g[10] = Y(" Copy Path "))
946
+ C[10] || (C[10] = X(" Copy Path "))
933
947
  ]),
934
948
  _: 1
935
949
  })
936
950
  ])
937
951
  ]),
938
- "button-icon": H(() => [
939
- x(c(se), { icon: "i-material-symbols:more-vert" })
952
+ "button-icon": L(() => [
953
+ y(r(ie), { icon: "i-material-symbols:more-vert" })
940
954
  ]),
941
955
  _: 1
942
956
  }, 8, ["class", "disabled"])
943
957
  ]));
944
958
  }
945
- }), fo = { class: "flex-inline items-center gap4px" }, Xe = /* @__PURE__ */ B({
959
+ }), fo = { class: "flex-inline items-center gap4px" }, Je = /* @__PURE__ */ B({
946
960
  __name: "StateFieldInputEditor",
947
961
  props: {
948
962
  modelValue: {},
@@ -952,73 +966,73 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
952
966
  },
953
967
  emits: ["cancel", "submit", "update:modelValue"],
954
968
  setup(n, { emit: e }) {
955
- const o = n, t = e, s = V(() => o.customType === "date" ? "datetime-local" : ""), { escape: l, enter: u } = ao();
956
- ot(() => {
957
- l.value ? t("cancel") : u.value && t("submit");
969
+ const o = n, t = e, l = E(() => o.customType === "date" ? "datetime-local" : ""), { escape: s, enter: c } = ao();
970
+ tt(() => {
971
+ s.value ? t("cancel") : c.value && t("submit");
958
972
  });
959
- const i = io(o, "modelValue", t);
960
- function r(a) {
973
+ const a = io(o, "modelValue", t);
974
+ function i(u) {
961
975
  try {
962
- return Ue(a, o.customType), !0;
976
+ return Oe(u, o.customType), !0;
963
977
  } catch {
964
978
  return !1;
965
979
  }
966
980
  }
967
- const h = T(!1);
968
- return ee(i, gn(() => {
969
- h.value = !r(i.value);
970
- }, 300)), (a, m) => (p(), f("span", fo, [
971
- x(c(Ze), {
972
- modelValue: c(i),
973
- "onUpdate:modelValue": m[0] || (m[0] = (E) => Ke(i) ? i.value = E : null),
974
- type: s.value,
975
- variant: h.value ? "warning" : "normal",
976
- class: oe(["h25px px4px", a.customType === "date" ? "w240px" : "w120px"]),
977
- "auto-focus": a.autoFocus,
981
+ const g = I(!1);
982
+ return Q(a, gn(() => {
983
+ g.value = !i(a.value);
984
+ }, 300)), (u, m) => (p(), v("span", fo, [
985
+ y(r(_e), {
986
+ modelValue: r(a),
987
+ "onUpdate:modelValue": m[0] || (m[0] = (V) => Ze(a) ? a.value = V : null),
988
+ type: l.value,
989
+ variant: g.value ? "warning" : "normal",
990
+ class: se(["h25px px4px", u.customType === "date" ? "w240px" : "w120px"]),
991
+ "auto-focus": u.autoFocus,
978
992
  onClick: m[1] || (m[1] = fe(() => {
979
993
  }, ["stop"]))
980
994
  }, null, 8, ["modelValue", "type", "variant", "class", "auto-focus"]),
981
- a.showActions ? (p(), f(ne, { key: 0 }, [
982
- W((p(), z(c(de), {
995
+ u.showActions ? (p(), v(oe, { key: 0 }, [
996
+ q((p(), z(r(pe), {
983
997
  size: "mini",
984
998
  flat: "",
985
999
  class: "p2px!",
986
- onClick: m[2] || (m[2] = fe((E) => a.$emit("cancel"), ["stop"]))
1000
+ onClick: m[2] || (m[2] = fe((V) => u.$emit("cancel"), ["stop"]))
987
1001
  }, {
988
- icon: H(() => [
989
- x(c(se), { icon: "i-material-symbols-cancel" })
1002
+ icon: L(() => [
1003
+ y(r(ie), { icon: "i-material-symbols-cancel" })
990
1004
  ]),
991
1005
  _: 1
992
1006
  })), [
993
- [c(q), {
1007
+ [r(J), {
994
1008
  content: "Esc to cancel"
995
1009
  }]
996
1010
  ]),
997
- h.value ? W((p(), z(c(se), {
1011
+ g.value ? q((p(), z(r(ie), {
998
1012
  key: 1,
999
1013
  icon: "i-material-symbols-warning",
1000
1014
  class: "color-warning-500 dark:color-warning-300"
1001
1015
  }, null, 512)), [
1002
- [c(q), {
1016
+ [r(J), {
1003
1017
  content: "Invalid value"
1004
1018
  }]
1005
- ]) : W((p(), z(c(de), {
1019
+ ]) : q((p(), z(r(pe), {
1006
1020
  key: 0,
1007
1021
  size: "mini",
1008
1022
  flat: "",
1009
1023
  class: "p2px!",
1010
- onClick: m[3] || (m[3] = fe((E) => a.$emit("submit"), ["stop"]))
1024
+ onClick: m[3] || (m[3] = fe((V) => u.$emit("submit"), ["stop"]))
1011
1025
  }, {
1012
- icon: H(() => [
1013
- x(c(se), { icon: "i-material-symbols-save" })
1026
+ icon: L(() => [
1027
+ y(r(ie), { icon: "i-material-symbols-save" })
1014
1028
  ]),
1015
1029
  _: 1
1016
1030
  })), [
1017
- [c(q), {
1031
+ [r(J), {
1018
1032
  content: "Enter to submit change"
1019
1033
  }]
1020
1034
  ])
1021
- ], 64)) : j("", !0)
1035
+ ], 64)) : O("", !0)
1022
1036
  ]));
1023
1037
  }
1024
1038
  }), vo = {
@@ -1032,7 +1046,7 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
1032
1046
  "text-ellipsis": "",
1033
1047
  "whitespace-nowrap": "",
1034
1048
  "state-key": ""
1035
- }, $t = 30, _o = /* @__PURE__ */ B({
1049
+ }, St = 30, _o = /* @__PURE__ */ B({
1036
1050
  __name: "StateFieldViewer",
1037
1051
  props: {
1038
1052
  data: {},
@@ -1041,170 +1055,170 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
1041
1055
  expandedStateId: {}
1042
1056
  },
1043
1057
  setup(n) {
1044
- const e = n, o = T($t), t = V(() => vn(e.data.value, !1, {
1058
+ const e = n, o = I(St), t = E(() => vn(e.data.value, !1, {
1045
1059
  customClass: {
1046
1060
  string: "max-w-120 truncate"
1047
1061
  }
1048
- })), s = V(() => Ct(e.data.value)), l = V(() => Vt(e.data.value)), { expanded: u, toggleExpanded: i } = rt(e.expandedStateId ?? ""), r = V(() => {
1049
- var y;
1050
- return s.value === "custom" ? `${((y = e.data.value._custom) == null ? void 0 : y.type) ?? "string"}-custom-state` : "";
1051
- }), h = V(() => {
1052
- const { value: y } = l.value;
1053
- return _t(y) ? y.length : yt(y) ? Object.keys(y).length : 0;
1054
- }), v = V(() => e.data.path || [e.data.key]), a = V(() => v.value[v.value.length - 1]), m = V(() => {
1055
- var F, ae, re, ce, _e, ye, Le;
1056
- const y = ["Reactive"], R = ((ae = (F = e.data.value) == null ? void 0 : F._custom) == null ? void 0 : ae.stateTypeName) || ((re = e.data) == null ? void 0 : re.stateTypeName);
1057
- if (y.includes(R))
1058
- return R;
1059
- if ((_e = (ce = e.data.value) == null ? void 0 : ce.fields) != null && _e.abstract)
1062
+ })), l = E(() => _t(e.data.value)), s = E(() => Nt(e.data.value)), { expanded: c, toggleExpanded: a } = it(e.expandedStateId ?? ""), i = E(() => {
1063
+ var H;
1064
+ return l.value === "custom" ? `${((H = e.data.value._custom) == null ? void 0 : H.type) ?? "string"}-custom-state` : "";
1065
+ }), g = E(() => {
1066
+ const { value: H } = s.value;
1067
+ return yt(H) ? H.length : xt(H) ? Object.keys(H).length : 0;
1068
+ }), h = E(() => e.data.path || [e.data.key]), u = E(() => h.value[h.value.length - 1]), m = E(() => {
1069
+ var f, _, S, P, Z, re, Me;
1070
+ const H = ["Reactive"], b = ((_ = (f = e.data.value) == null ? void 0 : f._custom) == null ? void 0 : _.stateTypeName) || ((S = e.data) == null ? void 0 : S.stateTypeName);
1071
+ if (H.includes(b))
1072
+ return b;
1073
+ if ((Z = (P = e.data.value) == null ? void 0 : P.fields) != null && Z.abstract)
1060
1074
  return "";
1061
1075
  {
1062
- const He = (Le = (ye = e.data.value) == null ? void 0 : ye._custom) == null ? void 0 : Le.type, Oe = s.value === "custom" && !He ? `"${t.value}"` : t.value === "" ? '""' : t.value, je = s.value === "custom" && He === "ref" ? Ct(Oe) : s.value, qe = s.value === "string" ? "select-text" : "", Ee = `<span title="${s.value === "string" ? e.data.value : ""}" class="${je}-state-type flex whitespace-nowrap ${qe}">${Oe}</span>`;
1063
- return R ? `${Ee} <span class="text-gray-500">(${R})</span>` : Ee;
1076
+ const Le = (Me = (re = e.data.value) == null ? void 0 : re._custom) == null ? void 0 : Me.type, He = l.value === "custom" && !Le ? `"${t.value}"` : t.value === "" ? '""' : t.value, Ue = l.value === "custom" && Le === "ref" ? _t(He) : l.value, Ge = l.value === "string" ? "select-text" : "", Ee = `<span title="${l.value === "string" ? e.data.value : ""}" class="${Ue}-state-type flex whitespace-nowrap ${Ge}">${He}</span>`;
1077
+ return b ? `${Ee} <span class="text-gray-500">(${b})</span>` : Ee;
1064
1078
  }
1065
- }), E = V(() => {
1066
- const { value: y, inherit: R, customType: F } = l.value, ae = F === "set";
1067
- let re = [];
1068
- return _t(y) ? y.slice(0, o.value).map((_e, ye) => ({
1069
- key: ye.toString(),
1070
- path: [...v.value, ye.toString()],
1071
- value: _e,
1072
- ...R,
1073
- editable: e.data.editable && !ae,
1079
+ }), V = E(() => {
1080
+ const { value: H, inherit: b, customType: f } = s.value, _ = f === "set";
1081
+ let S = [];
1082
+ return yt(H) ? H.slice(0, o.value).map((Z, re) => ({
1083
+ key: re.toString(),
1084
+ path: [...h.value, re.toString()],
1085
+ value: Z,
1086
+ ...b,
1087
+ editable: e.data.editable && !_,
1074
1088
  creating: !1
1075
- })) : (yt(y) && (re = Object.keys(y).slice(0, o.value).map((ce) => ({
1076
- key: ce,
1077
- path: [...v.value, ce],
1078
- value: y[ce],
1079
- ...R,
1080
- editable: e.data.editable && !ae,
1089
+ })) : (xt(H) && (S = Object.keys(H).slice(0, o.value).map((P) => ({
1090
+ key: P,
1091
+ path: [...h.value, P],
1092
+ value: H[P],
1093
+ ...b,
1094
+ editable: e.data.editable && !_,
1081
1095
  creating: !1
1082
- })), s.value !== "custom" && (re = Rt(re))), re === e.data.value ? [] : re);
1083
- }), A = V(() => E.value.length > 0), g = T(), $ = it(), { isHovering: U } = ro(() => g.value), { editingType: D, editing: _, editingText: C, toggleEditing: S, nodeId: L } = Hn();
1084
- ee(() => _.value, (y) => {
1085
- if (y) {
1086
- const { value: R } = l.value;
1087
- C.value = mn(R, l.value.customType);
1096
+ })), l.value !== "custom" && (S = At(S))), S === e.data.value ? [] : S);
1097
+ }), R = E(() => V.value.length > 0), C = I(), $ = at(), { isHovering: j } = ro(() => C.value), { editingType: A, editing: x, editingText: w, toggleEditing: N, nodeId: M } = Hn();
1098
+ Q(() => x.value, (H) => {
1099
+ if (H) {
1100
+ const { value: b } = s.value;
1101
+ w.value = mn(b, s.value.customType);
1088
1102
  } else
1089
- C.value = "";
1103
+ w.value = "";
1090
1104
  });
1091
- async function K() {
1092
- const y = e.data;
1093
- await P.value.editInspectorState({
1094
- path: v.value,
1105
+ async function G() {
1106
+ const H = e.data;
1107
+ await D.value.editInspectorState({
1108
+ path: h.value,
1095
1109
  inspectorId: $.value.inspectorId,
1096
- type: y.stateType,
1097
- nodeId: L.value,
1110
+ type: H.stateType,
1111
+ nodeId: M.value,
1098
1112
  state: {
1099
1113
  newKey: null,
1100
- type: D.value,
1101
- value: Ue(C.value, l.value.customType)
1114
+ type: A.value,
1115
+ value: Oe(w.value, s.value.customType)
1102
1116
  }
1103
- }), await P.value.sendInspectorState($.value.inspectorId), S();
1117
+ }), await D.value.sendInspectorState($.value.inspectorId), N();
1104
1118
  }
1105
- const { addNewProp: Z, draftingNewProp: N, resetDrafting: M } = jn();
1106
- function w(y) {
1107
- const R = `${e.depth}-${e.index}`;
1108
- u.value.includes(R) || i(R), Z(y, l.value.value);
1119
+ const { addNewProp: F, draftingNewProp: W, resetDrafting: de } = On();
1120
+ function he(H) {
1121
+ const b = `${e.depth}-${e.index}`;
1122
+ c.value.includes(b) || a(b), F(H, s.value.value);
1109
1123
  }
1110
- async function k() {
1111
- const y = e.data;
1112
- await P.value.editInspectorState({
1113
- path: [...v.value, N.value.key],
1124
+ async function le() {
1125
+ const H = e.data;
1126
+ await D.value.editInspectorState({
1127
+ path: [...h.value, W.value.key],
1114
1128
  inspectorId: $.value.inspectorId,
1115
- type: y.stateType,
1116
- nodeId: L.value,
1129
+ type: H.stateType,
1130
+ nodeId: M.value,
1117
1131
  state: {
1118
- newKey: N.value.key,
1119
- type: typeof Ue(N.value.value),
1120
- value: Ue(N.value.value)
1132
+ newKey: W.value.key,
1133
+ type: typeof Oe(W.value.value),
1134
+ value: Oe(W.value.value)
1121
1135
  }
1122
- }), await P.value.sendInspectorState($.value.inspectorId), M();
1136
+ }), await D.value.sendInspectorState($.value.inspectorId), de();
1123
1137
  }
1124
- return (y, R) => (p(), f("div", null, [
1138
+ return (H, b) => (p(), v("div", null, [
1125
1139
  d("div", {
1126
1140
  ref_key: "containerRef",
1127
- ref: g,
1128
- class: oe(["font-state-field flex items-center text-3.5", [A.value && "cursor-pointer hover:bg-active"]]),
1129
- style: Ie({ paddingLeft: `${y.depth * 15 + 4}px` }),
1130
- onClick: R[1] || (R[1] = (F) => c(i)(`${y.depth}-${y.index}`))
1141
+ ref: C,
1142
+ class: se(["font-state-field flex items-center text-3.5", [R.value && "cursor-pointer hover:bg-active"]]),
1143
+ style: $e({ paddingLeft: `${H.depth * 15 + 4}px` }),
1144
+ onClick: b[1] || (b[1] = (f) => r(a)(`${H.depth}-${H.index}`))
1131
1145
  }, [
1132
- A.value ? (p(), z(at, {
1146
+ R.value ? (p(), z(st, {
1133
1147
  key: 0,
1134
- value: c(u).includes(`${y.depth}-${y.index}`)
1135
- }, null, 8, ["value"])) : (p(), f("span", vo)),
1136
- d("span", mo, le(a.value), 1),
1137
- R[5] || (R[5] = d("span", { mx1: "" }, ":", -1)),
1138
- c(_) ? (p(), z(Xe, {
1148
+ value: r(c).includes(`${H.depth}-${H.index}`)
1149
+ }, null, 8, ["value"])) : (p(), v("span", vo)),
1150
+ d("span", mo, ae(u.value), 1),
1151
+ b[5] || (b[5] = d("span", { mx1: "" }, ":", -1)),
1152
+ r(x) ? (p(), z(Je, {
1139
1153
  key: 2,
1140
- modelValue: c(C),
1141
- "onUpdate:modelValue": R[0] || (R[0] = (F) => Ke(C) ? C.value = F : null),
1154
+ modelValue: r(w),
1155
+ "onUpdate:modelValue": b[0] || (b[0] = (f) => Ze(w) ? w.value = f : null),
1142
1156
  class: "mr-1",
1143
- "custom-type": l.value.customType,
1144
- onCancel: c(S),
1145
- onSubmit: K
1146
- }, null, 8, ["modelValue", "custom-type", "onCancel"])) : j("", !0),
1157
+ "custom-type": s.value.customType,
1158
+ onCancel: r(N),
1159
+ onSubmit: G
1160
+ }, null, 8, ["modelValue", "custom-type", "onCancel"])) : O("", !0),
1147
1161
  d("span", {
1148
- class: oe([r.value, "flex whitespace-nowrap"])
1162
+ class: se([i.value, "flex whitespace-nowrap"])
1149
1163
  }, [
1150
1164
  d("span", {
1151
1165
  class: "flex",
1152
1166
  innerHTML: m.value
1153
1167
  }, null, 8, ho)
1154
1168
  ], 2),
1155
- x(po, {
1156
- hovering: c(U),
1157
- "disable-edit": c($).disableEdit || c(_),
1158
- data: y.data,
1159
- depth: y.depth,
1160
- onEnableEditInput: c(S),
1161
- onAddNewProp: w
1169
+ y(po, {
1170
+ hovering: r(j),
1171
+ "disable-edit": r($).disableEdit || r(x),
1172
+ data: H.data,
1173
+ depth: H.depth,
1174
+ onEnableEditInput: r(N),
1175
+ onAddNewProp: he
1162
1176
  }, null, 8, ["hovering", "disable-edit", "data", "depth", "onEnableEditInput"])
1163
1177
  ], 6),
1164
- A.value && c(u).includes(`${y.depth}-${y.index}`) ? (p(), f("div", go, [
1165
- x(zt, {
1166
- data: E.value,
1167
- depth: y.depth,
1168
- index: y.index
1178
+ R.value && r(c).includes(`${H.depth}-${H.index}`) ? (p(), v("div", go, [
1179
+ y(Bt, {
1180
+ data: V.value,
1181
+ depth: H.depth,
1182
+ index: H.index
1169
1183
  }, null, 8, ["data", "depth", "index"]),
1170
- h.value > o.value ? W((p(), z(c(de), {
1184
+ g.value > o.value ? q((p(), z(r(pe), {
1171
1185
  key: 0,
1172
1186
  flat: "",
1173
1187
  size: "mini",
1174
1188
  class: "ml-4",
1175
- onClick: R[2] || (R[2] = (F) => o.value += $t)
1189
+ onClick: b[2] || (b[2] = (f) => o.value += St)
1176
1190
  }, {
1177
- icon: H(() => [
1178
- x(c(se), { icon: "i-material-symbols-more-horiz" })
1191
+ icon: L(() => [
1192
+ y(r(ie), { icon: "i-material-symbols-more-horiz" })
1179
1193
  ]),
1180
1194
  _: 1
1181
1195
  })), [
1182
- [c(q), "Show more"]
1183
- ]) : j("", !0),
1184
- c(N).enable ? (p(), f("div", {
1196
+ [r(J), "Show more"]
1197
+ ]) : O("", !0),
1198
+ r(W).enable ? (p(), v("div", {
1185
1199
  key: 1,
1186
- style: Ie({ paddingLeft: `${(y.depth + 1) * 15 + 4}px` })
1200
+ style: $e({ paddingLeft: `${(H.depth + 1) * 15 + 4}px` })
1187
1201
  }, [
1188
1202
  d("span", Co, [
1189
- x(Xe, {
1190
- modelValue: c(N).key,
1191
- "onUpdate:modelValue": R[3] || (R[3] = (F) => c(N).key = F),
1203
+ y(Je, {
1204
+ modelValue: r(W).key,
1205
+ "onUpdate:modelValue": b[3] || (b[3] = (f) => r(W).key = f),
1192
1206
  "show-actions": !1
1193
1207
  }, null, 8, ["modelValue"])
1194
1208
  ]),
1195
- R[6] || (R[6] = d("span", { "mx-1": "" }, ":", -1)),
1196
- x(Xe, {
1197
- modelValue: c(N).value,
1198
- "onUpdate:modelValue": R[4] || (R[4] = (F) => c(N).value = F),
1209
+ b[6] || (b[6] = d("span", { "mx-1": "" }, ":", -1)),
1210
+ y(Je, {
1211
+ modelValue: r(W).value,
1212
+ "onUpdate:modelValue": b[4] || (b[4] = (f) => r(W).value = f),
1199
1213
  "auto-focus": !1,
1200
- onCancel: c(M),
1201
- onSubmit: k
1214
+ onCancel: r(de),
1215
+ onSubmit: le
1202
1216
  }, null, 8, ["modelValue", "onCancel"])
1203
- ], 4)) : j("", !0)
1204
- ])) : j("", !0)
1217
+ ], 4)) : O("", !0)
1218
+ ])) : O("", !0)
1205
1219
  ]));
1206
1220
  }
1207
- }), yo = /* @__PURE__ */ Ce(_o, [["__scopeId", "data-v-18a10784"]]), zt = /* @__PURE__ */ B({
1221
+ }), yo = /* @__PURE__ */ xe(_o, [["__scopeId", "data-v-18a10784"]]), Bt = /* @__PURE__ */ B({
1208
1222
  __name: "ChildStateViewer",
1209
1223
  props: {
1210
1224
  data: {},
@@ -1213,12 +1227,12 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
1213
1227
  expandedStateId: { default: "" }
1214
1228
  },
1215
1229
  setup(n) {
1216
- return (e, o) => (p(), f("div", null, [
1217
- (p(!0), f(ne, null, ie(e.data, (t, s) => (p(), f("div", { key: s }, [
1218
- x(yo, {
1230
+ return (e, o) => (p(), v("div", null, [
1231
+ (p(!0), v(oe, null, ue(e.data, (t, l) => (p(), v("div", { key: l }, [
1232
+ y(yo, {
1219
1233
  data: t,
1220
1234
  depth: e.depth + 1,
1221
- index: `${e.index}-${s}`,
1235
+ index: `${e.index}-${l}`,
1222
1236
  "expanded-state-id": e.expandedStateId
1223
1237
  }, null, 8, ["data", "depth", "index", "expanded-state-id"])
1224
1238
  ]))), 128))
@@ -1230,7 +1244,7 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
1230
1244
  }, wo = {
1231
1245
  "font-state-field": "",
1232
1246
  "text-3.5": ""
1233
- }, ko = { key: 0 }, Pe = /* @__PURE__ */ B({
1247
+ }, ko = { key: 0 }, De = /* @__PURE__ */ B({
1234
1248
  __name: "RootStateViewer",
1235
1249
  props: {
1236
1250
  data: {},
@@ -1249,29 +1263,29 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
1249
1263
  };
1250
1264
  }
1251
1265
  const { context: t } = Ln(o());
1252
- ot(() => {
1266
+ tt(() => {
1253
1267
  t.value = o();
1254
1268
  });
1255
- const { expanded: s, toggleExpanded: l } = rt(e.expandedStateId);
1256
- return (u, i) => (p(), f("div", null, [
1257
- (p(!0), f(ne, null, ie(u.data, (r, h, v) => (p(), f("div", { key: v }, [
1269
+ const { expanded: l, toggleExpanded: s } = it(e.expandedStateId);
1270
+ return (c, a) => (p(), v("div", null, [
1271
+ (p(!0), v(oe, null, ue(c.data, (i, g, h) => (p(), v("div", { key: h }, [
1258
1272
  d("div", {
1259
- class: oe(["flex items-center", [(r == null ? void 0 : r.length) && "cursor-pointer hover:bg-active"]]),
1260
- onClick: (a) => c(l)(`${v}`)
1273
+ class: se(["flex items-center", [(i == null ? void 0 : i.length) && "cursor-pointer hover:bg-active"]]),
1274
+ onClick: (u) => r(s)(`${h}`)
1261
1275
  }, [
1262
- r != null && r.length ? (p(), z(at, {
1276
+ i != null && i.length ? (p(), z(st, {
1263
1277
  key: 0,
1264
- value: c(s).includes(`${v}`)
1265
- }, null, 8, ["value"])) : (p(), f("span", bo)),
1266
- d("span", wo, le(h), 1)
1278
+ value: r(l).includes(`${h}`)
1279
+ }, null, 8, ["value"])) : (p(), v("span", bo)),
1280
+ d("span", wo, ae(g), 1)
1267
1281
  ], 10, xo),
1268
- r != null && r.length && c(s).includes(`${v}`) ? (p(), f("div", ko, [
1269
- x(zt, {
1270
- data: r,
1271
- index: `${v}`,
1272
- "expanded-state-id": u.expandedStateId
1282
+ i != null && i.length && r(l).includes(`${h}`) ? (p(), v("div", ko, [
1283
+ y(Bt, {
1284
+ data: i,
1285
+ index: `${h}`,
1286
+ "expanded-state-id": c.expandedStateId
1273
1287
  }, null, 8, ["data", "index", "expanded-state-id"])
1274
- ])) : j("", !0)
1288
+ ])) : O("", !0)
1275
1289
  ]))), 128))
1276
1290
  ]));
1277
1291
  }
@@ -1290,7 +1304,7 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
1290
1304
  op30: ""
1291
1305
  }, No = /* @__PURE__ */ B({
1292
1306
  __name: "EventList",
1293
- props: /* @__PURE__ */ ze({
1307
+ props: /* @__PURE__ */ je({
1294
1308
  data: {}
1295
1309
  }, {
1296
1310
  modelValue: {},
@@ -1298,20 +1312,20 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
1298
1312
  }),
1299
1313
  emits: ["update:modelValue"],
1300
1314
  setup(n) {
1301
- const e = n, o = et(n, "modelValue"), t = ["#3e5770", "#42b983", "#0098c4"], s = T(null), l = V(() => {
1302
- let u = -1, i = 0;
1303
- return e.data.forEach((r, h) => {
1304
- (r.groupId !== i || u === -1) && (u = (u + 1) % t.length), i = r.groupId ?? i, r.id = h, r.color = t[u];
1315
+ const e = n, o = Xe(n, "modelValue"), t = ["#3e5770", "#42b983", "#0098c4"], l = I(null), s = E(() => {
1316
+ let c = -1, a = 0;
1317
+ return e.data.forEach((i, g) => {
1318
+ (i.groupId !== a || c === -1) && (c = (c + 1) % t.length), a = i.groupId ?? a, i.id = g, i.color = t[c];
1305
1319
  }), e.data;
1306
1320
  });
1307
- return ee(() => l.value.length, (u) => {
1308
- var i;
1309
- (i = s.value) == null || i.scrollToItem(u - 1);
1310
- }, { flush: "post" }), (u, i) => (p(), f("div", Io, [
1311
- x(c(Cn), {
1321
+ return Q(() => s.value.length, (c) => {
1322
+ var a;
1323
+ (a = l.value) == null || a.scrollToItem(c - 1);
1324
+ }, { flush: "post" }), (c, a) => (p(), v("div", Io, [
1325
+ y(r(Cn), {
1312
1326
  ref_key: "scrollerRef",
1313
- ref: s,
1314
- items: l.value,
1327
+ ref: l,
1328
+ items: s.value,
1315
1329
  "min-item-size": 52,
1316
1330
  "key-field": "id",
1317
1331
  "page-mode": "",
@@ -1319,21 +1333,21 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
1319
1333
  "list-tag": "ul",
1320
1334
  buffer: 20
1321
1335
  }, {
1322
- default: H(({ item: r }) => [
1336
+ default: L(({ item: i }) => [
1323
1337
  d("div", {
1324
1338
  class: "relative mb7 h6 cursor-pointer",
1325
- style: Ie({ color: o.value === r.id ? r.color : "" }),
1326
- onClick: (h) => o.value = r.id
1339
+ style: $e({ color: o.value === i.id ? i.color : "" }),
1340
+ onClick: (g) => o.value = i.id
1327
1341
  }, [
1328
1342
  d("span", {
1329
1343
  class: "absolute top-1.5 inline-block h3 w3 b rounded-50%",
1330
- style: Ie({ border: `3px solid ${r.color}` })
1344
+ style: $e({ border: `3px solid ${i.color}` })
1331
1345
  }, null, 4),
1332
- r.id < u.data.length - 1 ? (p(), f("span", So)) : j("", !0),
1346
+ i.id < c.data.length - 1 ? (p(), v("span", So)) : O("", !0),
1333
1347
  d("p", To, [
1334
- d("span", Eo, "[" + le(c(xn)(r.time)) + "]", 1),
1335
- Y(" " + le(r.title) + " ", 1),
1336
- d("span", Vo, le(r.subtitle), 1)
1348
+ d("span", Eo, "[" + ae(r(xn)(i.time)) + "]", 1),
1349
+ X(" " + ae(i.title) + " ", 1),
1350
+ d("span", Vo, ae(i.subtitle), 1)
1337
1351
  ])
1338
1352
  ], 12, $o)
1339
1353
  ]),
@@ -1360,10 +1374,10 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
1360
1374
  }, Lo = { class: "flex items-center gap-2 px-1" }, Ho = {
1361
1375
  key: 0,
1362
1376
  class: "recording recording-btn bg-[#ef4444]"
1363
- }, Oo = {
1377
+ }, Uo = {
1364
1378
  key: 1,
1365
1379
  class: "recording-btn bg-black op70 dark:bg-white hover:op100"
1366
- }, jo = { class: "flex items-center gap1" }, Uo = /* @__PURE__ */ B({
1380
+ }, Oo = { class: "flex items-center gap1" }, jo = /* @__PURE__ */ B({
1367
1381
  __name: "index",
1368
1382
  props: {
1369
1383
  layerIds: {},
@@ -1376,100 +1390,100 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
1376
1390
  setup(n, { expose: e }) {
1377
1391
  const o = n, { expanded: t } = me("timeline-state");
1378
1392
  t.value = ["0", "1"];
1379
- const s = T([]), l = T(/* @__PURE__ */ new Map()), u = T(0), i = Nt(), r = V(() => {
1380
- var D;
1381
- return (D = i.timelineLayersState.value) == null ? void 0 : D[o.pluginId];
1382
- }), h = V(() => s.value[u.value] ?? null), v = V(() => r.value ? "Stop recording" : "Start recording"), a = V(() => {
1383
- var _;
1384
- const D = [];
1385
- for (const C in (_ = h.value) == null ? void 0 : _.data)
1386
- D.push({
1387
- key: C,
1388
- type: C,
1393
+ const l = I([]), s = I(/* @__PURE__ */ new Map()), c = I(0), a = Rt(), i = E(() => {
1394
+ var A;
1395
+ return (A = a.timelineLayersState.value) == null ? void 0 : A[o.pluginId];
1396
+ }), g = E(() => l.value[c.value] ?? null), h = E(() => i.value ? "Stop recording" : "Start recording"), u = E(() => {
1397
+ var x;
1398
+ const A = [];
1399
+ for (const w in (x = g.value) == null ? void 0 : x.data)
1400
+ A.push({
1401
+ key: w,
1402
+ type: w,
1389
1403
  editable: !1,
1390
- value: h.value.data[C]
1404
+ value: g.value.data[w]
1391
1405
  });
1392
- return D;
1393
- }), m = V(() => {
1394
- var C, S, L;
1395
- const D = (C = h.value) == null ? void 0 : C.groupId, _ = l.value.get(D);
1396
- if (_) {
1397
- const K = ((S = _[_.length - 1]) == null ? void 0 : S.time) - (((L = _[0]) == null ? void 0 : L.time) ?? 0);
1406
+ return A;
1407
+ }), m = E(() => {
1408
+ var w, N, M;
1409
+ const A = (w = g.value) == null ? void 0 : w.groupId, x = s.value.get(A);
1410
+ if (x) {
1411
+ const G = ((N = x[x.length - 1]) == null ? void 0 : N.time) - (((M = x[0]) == null ? void 0 : M.time) ?? 0);
1398
1412
  return [{
1399
1413
  key: "events",
1400
1414
  type: "events",
1401
1415
  editable: !1,
1402
- value: _.length
1403
- }, K && {
1416
+ value: x.length
1417
+ }, G && {
1404
1418
  key: "duration",
1405
1419
  type: "duration",
1406
1420
  editable: !1,
1407
- value: `${K}ms`
1421
+ value: `${G}ms`
1408
1422
  }].filter(Boolean);
1409
1423
  }
1410
- }), E = V(() => ({ "Event Info": a.value, ...m.value && { "Group Info": m.value } }));
1411
- function A(D) {
1412
- var C;
1413
- const _ = D.groupId;
1414
- _ !== void 0 && (l.value.set(_, l.value.get(_) ?? []), (C = l.value.get(_)) == null || C.push(D));
1415
- }
1416
- function g(D) {
1417
- const _ = Q(D);
1418
- if (!_)
1424
+ }), V = E(() => ({ "Event Info": u.value, ...m.value && { "Group Info": m.value } }));
1425
+ function R(A) {
1426
+ var w;
1427
+ const x = A.groupId;
1428
+ x !== void 0 && (s.value.set(x, s.value.get(x) ?? []), (w = s.value.get(x)) == null || w.push(A));
1429
+ }
1430
+ function C(A) {
1431
+ const x = ee(A);
1432
+ if (!x)
1419
1433
  return;
1420
- const { layerId: C, event: S } = _;
1421
- o.layerIds.includes(C) && (s.value.push(S), A(S));
1434
+ const { layerId: w, event: N } = x;
1435
+ o.layerIds.includes(w) && (l.value.push(N), R(N));
1422
1436
  }
1423
- P.functions.on(J.TIMELINE_EVENT_UPDATED, g), be(() => {
1424
- P.functions.off(J.TIMELINE_EVENT_UPDATED, g);
1437
+ D.functions.on(Y.TIMELINE_EVENT_UPDATED, C), we(() => {
1438
+ D.functions.off(Y.TIMELINE_EVENT_UPDATED, C);
1425
1439
  });
1426
1440
  function $() {
1427
- s.value = [], l.value.clear();
1441
+ l.value = [], s.value.clear();
1428
1442
  }
1429
1443
  e({
1430
1444
  clear: $
1431
1445
  });
1432
- function U() {
1433
- P.value.updateTimelineLayersState({
1434
- [o.pluginId]: !r.value
1446
+ function j() {
1447
+ D.value.updateTimelineLayersState({
1448
+ [o.pluginId]: !i.value
1435
1449
  });
1436
1450
  }
1437
- return (D, _) => (p(), f("div", Ro, [
1438
- D.headerVisible ? (p(), z($e, {
1451
+ return (A, x) => (p(), v("div", Ro, [
1452
+ A.headerVisible ? (p(), z(Se, {
1439
1453
  key: 0,
1440
- "doc-link": D.docLink,
1441
- "github-repo-link": D.githubRepoLink
1454
+ "doc-link": A.docLink,
1455
+ "github-repo-link": A.githubRepoLink
1442
1456
  }, {
1443
- default: H(() => [
1444
- x(Se)
1457
+ default: L(() => [
1458
+ y(Te)
1445
1459
  ]),
1446
1460
  _: 1
1447
- }, 8, ["doc-link", "github-repo-link"])) : j("", !0),
1448
- s.value.length ? (p(), f("div", Ao, [
1449
- x(c(Ae), { class: "h-full" }, {
1450
- default: H(() => [
1451
- x(c(ue), {
1461
+ }, 8, ["doc-link", "github-repo-link"])) : O("", !0),
1462
+ l.value.length ? (p(), v("div", Ao, [
1463
+ y(r(Re), { class: "h-full" }, {
1464
+ default: L(() => [
1465
+ y(r(ce), {
1452
1466
  border: "r base",
1453
1467
  size: "40",
1454
1468
  "h-full": ""
1455
1469
  }, {
1456
- default: H(() => [
1470
+ default: L(() => [
1457
1471
  d("div", Do, [
1458
- x(No, {
1459
- modelValue: u.value,
1460
- "onUpdate:modelValue": _[0] || (_[0] = (C) => u.value = C),
1461
- data: s.value
1472
+ y(No, {
1473
+ modelValue: c.value,
1474
+ "onUpdate:modelValue": x[0] || (x[0] = (w) => c.value = w),
1475
+ data: l.value
1462
1476
  }, null, 8, ["modelValue", "data"])
1463
1477
  ])
1464
1478
  ]),
1465
1479
  _: 1
1466
1480
  }),
1467
- x(c(ue), { size: "60" }, {
1468
- default: H(() => [
1481
+ y(r(ce), { size: "60" }, {
1482
+ default: L(() => [
1469
1483
  d("div", Po, [
1470
- x(Pe, {
1484
+ y(De, {
1471
1485
  class: "p3",
1472
- data: E.value,
1486
+ data: V.value,
1473
1487
  "node-id": "",
1474
1488
  "inspector-id": "",
1475
1489
  "disable-edit": !0,
@@ -1482,35 +1496,35 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
1482
1496
  ]),
1483
1497
  _: 1
1484
1498
  })
1485
- ])) : (p(), z(Ne, {
1499
+ ])) : (p(), z(Ie, {
1486
1500
  key: 2,
1487
1501
  class: "flex-1"
1488
1502
  }, {
1489
- default: H(() => _[1] || (_[1] = [
1490
- Y(" No events ")
1503
+ default: L(() => x[1] || (x[1] = [
1504
+ X(" No events ")
1491
1505
  ])),
1492
1506
  _: 1
1493
1507
  })),
1494
- D.switcherVisible ? (p(), f("div", Mo, [
1508
+ A.switcherVisible ? (p(), v("div", Mo, [
1495
1509
  d("div", Lo, [
1496
- W((p(), f("div", {
1510
+ q((p(), v("div", {
1497
1511
  class: "flex items-center gap1",
1498
- onClick: U
1512
+ onClick: j
1499
1513
  }, [
1500
- r.value ? (p(), f("span", Ho)) : (p(), f("span", Oo))
1514
+ i.value ? (p(), v("span", Ho)) : (p(), v("span", Uo))
1501
1515
  ])), [
1502
1516
  [
1503
- c(q),
1504
- { content: v.value },
1517
+ r(J),
1518
+ { content: h.value },
1505
1519
  void 0,
1506
1520
  { "bottom-end": !0 }
1507
1521
  ]
1508
1522
  ]),
1509
- W((p(), f("div", {
1523
+ q((p(), v("div", {
1510
1524
  class: "flex items-center gap1",
1511
1525
  onClick: $
1512
1526
  }, [
1513
- x(c(Fe), {
1527
+ y(r(Be), {
1514
1528
  name: "baseline-delete",
1515
1529
  "cursor-pointer": "",
1516
1530
  "text-xl": "",
@@ -1519,14 +1533,14 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
1519
1533
  })
1520
1534
  ])), [
1521
1535
  [
1522
- c(q),
1536
+ r(J),
1523
1537
  { content: "Clear all timelines" },
1524
1538
  void 0,
1525
1539
  { "bottom-end": !0 }
1526
1540
  ]
1527
1541
  ]),
1528
- W((p(), f("div", jo, [
1529
- x(c(Fe), {
1542
+ q((p(), v("div", Oo, [
1543
+ y(r(Be), {
1530
1544
  name: "baseline-tips-and-updates",
1531
1545
  "cursor-pointer": "",
1532
1546
  "text-xl": "",
@@ -1535,50 +1549,50 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
1535
1549
  })
1536
1550
  ])), [
1537
1551
  [
1538
- c(q),
1552
+ r(J),
1539
1553
  { content: "<p style='width: 285px'>Timeline events can cause significant performance overhead in large applications, so we recommend enabling it only when needed and on-demand. </p>", html: !0 },
1540
1554
  void 0,
1541
1555
  { "bottom-end": !0 }
1542
1556
  ]
1543
1557
  ])
1544
1558
  ])
1545
- ])) : j("", !0)
1559
+ ])) : O("", !0)
1546
1560
  ]));
1547
1561
  }
1548
- }), pt = /* @__PURE__ */ Ce(Uo, [["__scopeId", "data-v-f59e6cce"]]);
1549
- function ls() {
1550
- const n = T([]), e = T([]);
1551
- function o(s) {
1552
- e.value = s, s.length < n.value.length && (n.value = []), e.value.forEach((l) => {
1553
- t(l);
1562
+ }), dt = /* @__PURE__ */ xe(jo, [["__scopeId", "data-v-f59e6cce"]]);
1563
+ function ss() {
1564
+ const n = I([]), e = I([]);
1565
+ function o(l) {
1566
+ e.value = l, l.length < n.value.length && (n.value = []), e.value.forEach((s) => {
1567
+ t(s);
1554
1568
  });
1555
1569
  }
1556
- Re(() => {
1557
- P.value.getCustomInspector().then((s) => {
1558
- e.value = s, e.value.forEach((l) => {
1559
- t(l);
1570
+ Ne(() => {
1571
+ D.value.getCustomInspector().then((l) => {
1572
+ e.value = l, e.value.forEach((s) => {
1573
+ t(s);
1560
1574
  });
1561
- }), P.functions.on(J.INSPECTOR_UPDATED, o);
1575
+ }), D.functions.on(Y.INSPECTOR_UPDATED, o);
1562
1576
  });
1563
- function t(s) {
1564
- n.value.some((l) => l.id === s.id) || n.value.push(s);
1577
+ function t(l) {
1578
+ n.value.some((s) => s.id === l.id) || n.value.push(l);
1565
1579
  }
1566
- return be(() => {
1567
- P.functions.off(J.INSPECTOR_UPDATED, o);
1580
+ return we(() => {
1581
+ D.functions.off(Y.INSPECTOR_UPDATED, o);
1568
1582
  }), {
1569
1583
  registeredInspector: n,
1570
1584
  register: t
1571
1585
  };
1572
1586
  }
1573
- const Bt = Symbol("SelectedSymbolKey");
1587
+ const Ft = Symbol("SelectedSymbolKey");
1574
1588
  function zo() {
1575
- const n = T("");
1576
- return ge(Bt, n), {
1589
+ const n = I("");
1590
+ return Ce(Ft, n), {
1577
1591
  selected: n
1578
1592
  };
1579
1593
  }
1580
1594
  function Bo() {
1581
- const n = ve(Bt, T(""));
1595
+ const n = ve(Ft, I(""));
1582
1596
  function e(o) {
1583
1597
  n.value = o;
1584
1598
  }
@@ -1587,13 +1601,13 @@ function Bo() {
1587
1601
  select: e
1588
1602
  };
1589
1603
  }
1590
- const Zo = ["onClick", "onDblclick"], Fo = {
1604
+ const Fo = ["onClick", "onDblclick"], Zo = {
1591
1605
  key: 1,
1592
1606
  pl5: ""
1593
- }, Go = {
1607
+ }, Ko = {
1594
1608
  "font-state-field": "",
1595
1609
  "text-3.5": ""
1596
- }, Ko = {
1610
+ }, Go = {
1597
1611
  key: 0,
1598
1612
  class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
1599
1613
  }, Wo = {
@@ -1608,9 +1622,9 @@ const Zo = ["onClick", "onDblclick"], Fo = {
1608
1622
  }, Yo = {
1609
1623
  key: 3,
1610
1624
  class: "ml-2 rounded-sm bg-gray-500 px-1 text-[0.75rem] leading-snug"
1611
- }, Xo = { key: 0 }, Me = /* @__PURE__ */ B({
1625
+ }, Xo = { key: 0 }, Pe = /* @__PURE__ */ B({
1612
1626
  __name: "TreeViewer",
1613
- props: /* @__PURE__ */ ze({
1627
+ props: /* @__PURE__ */ je({
1614
1628
  data: {},
1615
1629
  depth: { default: 0 },
1616
1630
  withTag: { type: Boolean, default: !1 }
@@ -1620,75 +1634,75 @@ const Zo = ["onClick", "onDblclick"], Fo = {
1620
1634
  }),
1621
1635
  emits: ["update:modelValue"],
1622
1636
  setup(n) {
1623
- const e = et(n, "modelValue"), { expanded: o, toggleExpanded: t } = rt();
1637
+ const e = Xe(n, "modelValue"), { expanded: o, toggleExpanded: t } = it();
1624
1638
  Bo();
1625
- function s(u) {
1626
- return "name" in u && (u == null ? void 0 : u.name) || "label" in u && u.label;
1627
- }
1628
- function l(u) {
1629
- e.value = u;
1630
- }
1631
- return (u, i) => (p(!0), f(ne, null, ie(u.data, (r, h) => {
1632
- var v, a;
1633
- return p(), f("div", {
1634
- key: h,
1635
- class: oe({
1636
- "min-w-max": u.depth === 0
1639
+ function l(c) {
1640
+ return "name" in c && (c == null ? void 0 : c.name) || "label" in c && c.label;
1641
+ }
1642
+ function s(c) {
1643
+ e.value = c;
1644
+ }
1645
+ return (c, a) => (p(!0), v(oe, null, ue(c.data, (i, g) => {
1646
+ var h, u;
1647
+ return p(), v("div", {
1648
+ key: g,
1649
+ class: se({
1650
+ "min-w-max": c.depth === 0
1637
1651
  })
1638
1652
  }, [
1639
1653
  d("div", {
1640
- class: oe(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": e.value === r.id }]),
1641
- style: Ie({ paddingLeft: `${15 * u.depth + 4}px` }),
1642
- onClick: (m) => l(r.id),
1643
- onDblclick: (m) => c(t)(r.id)
1654
+ class: se(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": e.value === i.id }]),
1655
+ style: $e({ paddingLeft: `${15 * c.depth + 4}px` }),
1656
+ onClick: (m) => s(i.id),
1657
+ onDblclick: (m) => r(t)(i.id)
1644
1658
  }, [
1645
- (v = r == null ? void 0 : r.children) != null && v.length ? (p(), z(at, {
1659
+ (h = i == null ? void 0 : i.children) != null && h.length ? (p(), z(st, {
1646
1660
  key: 0,
1647
- value: c(o).includes(r.id),
1661
+ value: r(o).includes(i.id),
1648
1662
  class: "[.active_&]:op20 group-hover:op20",
1649
- onClick: fe((m) => c(t)(r.id), ["stop"])
1650
- }, null, 8, ["value", "onClick"])) : (p(), f("span", Fo)),
1651
- d("span", Go, [
1652
- u.withTag ? (p(), f("span", Ko, "<")) : j("", !0),
1653
- d("span", Wo, le(s(r)), 1),
1654
- (r.renderKey === 0 || r.renderKey) && r.renderKey !== c(Et) ? (p(), f("span", {
1663
+ onClick: fe((m) => r(t)(i.id), ["stop"])
1664
+ }, null, 8, ["value", "onClick"])) : (p(), v("span", Zo)),
1665
+ d("span", Ko, [
1666
+ c.withTag ? (p(), v("span", Go, "<")) : O("", !0),
1667
+ d("span", Wo, ae(l(i)), 1),
1668
+ (i.renderKey === 0 || i.renderKey) && i.renderKey !== r(Vt) ? (p(), v("span", {
1655
1669
  key: 1,
1656
- class: oe(["text-xs opacity-50", {
1657
- "opacity-100": e.value === r.id
1670
+ class: se(["text-xs opacity-50", {
1671
+ "opacity-100": e.value === i.id
1658
1672
  }])
1659
1673
  }, [
1660
1674
  d("span", {
1661
- class: oe([e.value === r.id ? "text-purple-200" : "text-purple-500"])
1675
+ class: se([e.value === i.id ? "text-purple-200" : "text-purple-500"])
1662
1676
  }, " key", 2),
1663
- i[1] || (i[1] = Y("=")),
1664
- d("span", null, le(r.renderKey), 1)
1665
- ], 2)) : j("", !0),
1666
- u.withTag ? (p(), f("span", qo, ">")) : j("", !0)
1677
+ a[1] || (a[1] = X("=")),
1678
+ d("span", null, ae(i.renderKey), 1)
1679
+ ], 2)) : O("", !0),
1680
+ c.withTag ? (p(), v("span", qo, ">")) : O("", !0)
1667
1681
  ]),
1668
- r.isFragment ? W((p(), f("span", Jo, i[2] || (i[2] = [
1669
- Y(" fragment ")
1682
+ i.isFragment ? q((p(), v("span", Jo, a[2] || (a[2] = [
1683
+ X(" fragment ")
1670
1684
  ]))), [
1671
- [c(q), "Has multiple root DOM nodes"]
1672
- ]) : j("", !0),
1673
- r.inactive ? W((p(), f("span", Yo, i[3] || (i[3] = [
1674
- Y(" inactive ")
1685
+ [r(J), "Has multiple root DOM nodes"]
1686
+ ]) : O("", !0),
1687
+ i.inactive ? q((p(), v("span", Yo, a[3] || (a[3] = [
1688
+ X(" inactive ")
1675
1689
  ]))), [
1676
- [c(q), "Currently inactive but not destroyed"]
1677
- ]) : j("", !0),
1678
- (p(!0), f(ne, null, ie(r.tags, (m, E) => (p(), z(Mt, {
1679
- key: E,
1690
+ [r(J), "Currently inactive but not destroyed"]
1691
+ ]) : O("", !0),
1692
+ (p(!0), v(oe, null, ue(i.tags, (m, V) => (p(), z(Lt, {
1693
+ key: V,
1680
1694
  tag: m
1681
1695
  }, null, 8, ["tag"]))), 128))
1682
- ], 46, Zo),
1683
- (a = r == null ? void 0 : r.children) != null && a.length && c(o).includes(r.id) ? (p(), f("div", Xo, [
1684
- x(Me, {
1696
+ ], 46, Fo),
1697
+ (u = i == null ? void 0 : i.children) != null && u.length && r(o).includes(i.id) ? (p(), v("div", Xo, [
1698
+ y(Pe, {
1685
1699
  modelValue: e.value,
1686
- "onUpdate:modelValue": i[0] || (i[0] = (m) => e.value = m),
1687
- data: r == null ? void 0 : r.children,
1688
- depth: u.depth + 1,
1689
- "with-tag": u.withTag
1700
+ "onUpdate:modelValue": a[0] || (a[0] = (m) => e.value = m),
1701
+ data: i == null ? void 0 : i.children,
1702
+ depth: c.depth + 1,
1703
+ "with-tag": c.withTag
1690
1704
  }, null, 8, ["modelValue", "data", "depth", "with-tag"])
1691
- ])) : j("", !0)
1705
+ ])) : O("", !0)
1692
1706
  ], 2);
1693
1707
  }), 128));
1694
1708
  }
@@ -1703,17 +1717,17 @@ const Zo = ["onClick", "onDblclick"], Fo = {
1703
1717
  function t() {
1704
1718
  o("close");
1705
1719
  }
1706
- return (s, l) => (p(), f("div", Qo, [
1720
+ return (l, s) => (p(), v("div", Qo, [
1707
1721
  d("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
1708
- l[0] || (l[0] = d("span", { class: "font-500" }, "Render Code", -1)),
1722
+ s[0] || (s[0] = d("span", { class: "font-500" }, "Render Code", -1)),
1709
1723
  d("i", {
1710
1724
  class: "i-carbon-close cursor-pointer hover:op80",
1711
1725
  onClick: t
1712
1726
  })
1713
1727
  ]),
1714
1728
  d("div", el, [
1715
- x(c(sn), {
1716
- code: s.code,
1729
+ y(r(sn), {
1730
+ code: l.code,
1717
1731
  lang: "javascript"
1718
1732
  }, null, 8, ["code"])
1719
1733
  ])
@@ -1742,216 +1756,205 @@ const Zo = ["onClick", "onDblclick"], Fo = {
1742
1756
  __name: "index",
1743
1757
  emits: ["openInEditor", "onInspectComponentStart", "onInspectComponentEnd"],
1744
1758
  setup(n, { emit: e }) {
1745
- const o = e, t = T(), s = T(!1), { width: l } = lo(t), u = V(() => s.value ? l.value < 700 : !1), i = T(""), r = T(""), [h, v] = Xn(!0), a = T(!1), m = T(!1), E = T(""), A = T(!1);
1746
- function g(I, b = [], O = []) {
1747
- var G;
1748
- return b.push(I.id), ((G = I.children) == null ? void 0 : G.length) === 0 && O.push([...b]), Array.isArray(I.children) && I.children.forEach((X) => {
1749
- g(X, b, O);
1750
- }), b.pop(), O;
1751
- }
1752
- function $(I) {
1753
- const b = [], O = (G) => {
1754
- G == null || G.forEach((X) => {
1755
- var we;
1756
- b.push(X), (we = X.children) != null && we.length && O(X.children);
1759
+ const o = e, t = I(), l = I(!1), { width: s } = lo(t), c = E(() => l.value ? s.value < 700 : !1), a = I(""), i = I(""), [g, h] = Xn(!0), u = I(!1), m = I(!1), V = I(""), R = I(!1);
1760
+ function C(T, k = [], U = []) {
1761
+ var K;
1762
+ return k.push(T.id), ((K = T.children) == null ? void 0 : K.length) === 0 && U.push([...k]), Array.isArray(T.children) && T.children.forEach((te) => {
1763
+ C(te, k, U);
1764
+ }), k.pop(), U;
1765
+ }
1766
+ function $(T) {
1767
+ const k = [], U = (K) => {
1768
+ K == null || K.forEach((te) => {
1769
+ var vt;
1770
+ k.push(te), (vt = te.children) != null && vt.length && U(te.children);
1757
1771
  });
1758
1772
  };
1759
- return O(I), b;
1760
- }
1761
- function U(I, b) {
1762
- const O = [];
1763
- return I == null || I.forEach((G) => {
1764
- O.push(...G.slice(0, b + 1));
1765
- }), [...new Set(O)];
1766
- }
1767
- function D(I, b) {
1768
- const O = [];
1769
- return I.forEach((G) => {
1770
- const X = G.indexOf(b);
1771
- X !== -1 && O.push(...G.slice(0, X + 1));
1772
- }), [...new Set(O)];
1773
- }
1774
- const _ = T([]), C = V(() => {
1775
- var I, b;
1776
- return (I = _.value) != null && I.length ? g((b = _.value) == null ? void 0 : b[0]) : [];
1777
- }), S = V(() => $(_.value)), L = V(() => S.value.map((I) => I.id)), K = T({}), Z = T(""), N = V(() => {
1778
- const I = [], b = (O) => {
1779
- O.forEach((G) => {
1780
- var X;
1781
- G.id === Z.value && I.push(G), (X = G.children) != null && X.length && b(G.children);
1773
+ return U(T), k;
1774
+ }
1775
+ function j(T, k) {
1776
+ const U = [];
1777
+ return T == null || T.forEach((K) => {
1778
+ U.push(...K.slice(0, k + 1));
1779
+ }), [...new Set(U)];
1780
+ }
1781
+ function A(T, k) {
1782
+ const U = [];
1783
+ return T.forEach((K) => {
1784
+ const te = K.indexOf(k);
1785
+ te !== -1 && U.push(...K.slice(0, te + 1));
1786
+ }), [...new Set(U)];
1787
+ }
1788
+ const x = I([]), w = E(() => {
1789
+ var T, k;
1790
+ return (T = x.value) != null && T.length ? C((k = x.value) == null ? void 0 : k[0]) : [];
1791
+ }), N = E(() => $(x.value)), M = E(() => N.value.map((T) => T.id)), G = I({}), F = I(""), W = E(() => {
1792
+ const T = [], k = (U) => {
1793
+ U.forEach((K) => {
1794
+ var te;
1795
+ K.id === F.value && T.push(K), (te = K.children) != null && te.length && k(K.children);
1782
1796
  });
1783
1797
  };
1784
- return b(_.value), I[0];
1785
- }), M = V(() => {
1786
- var I;
1787
- return ((I = N.value) == null ? void 0 : I.file) ?? "";
1788
- }), w = V(() => {
1789
- const I = {};
1790
- for (const b in K.value) {
1791
- const G = K.value[b].filter((we) => {
1792
- try {
1793
- return bn({
1794
- [we.key]: we.value
1795
- }, r.value);
1796
- } catch (Yt) {
1797
- return {
1798
- [we.key]: Yt
1799
- };
1800
- }
1801
- }), X = _n(Object.values(yn(Rt(G), "stateType")));
1802
- G.length && (I[b] = X);
1798
+ return k(x.value), T[0];
1799
+ }), de = E(() => {
1800
+ var T;
1801
+ return ((T = W.value) == null ? void 0 : T.file) ?? "";
1802
+ }), he = E(() => nt({
1803
+ state: G.value,
1804
+ filterKey: i.value,
1805
+ processGroup(T) {
1806
+ return _n(Object.values(yn(At(T), "stateType")));
1803
1807
  }
1804
- return I;
1805
- }), { expanded: k } = me(), { expanded: y } = me("component-state");
1808
+ })), { expanded: le } = me(), { expanded: H } = me("component-state");
1806
1809
  zo();
1807
- async function R(I = "") {
1808
- return P.value.getInspectorTree({ inspectorId: Ve, filter: I }).then((b) => {
1809
- var G, X;
1810
- const O = Q(b);
1811
- _.value = O, Z.value = (X = (G = _.value) == null ? void 0 : G[0]) == null ? void 0 : X.id, k.value = U(C.value, 1), a.value = !0;
1810
+ async function b(T = "") {
1811
+ return D.value.getInspectorTree({ inspectorId: Ve, filter: T }).then((k) => {
1812
+ var K, te;
1813
+ const U = ee(k);
1814
+ x.value = U, F.value = (te = (K = x.value) == null ? void 0 : K[0]) == null ? void 0 : te.id, le.value = j(w.value, 1), u.value = !0;
1812
1815
  });
1813
1816
  }
1814
- function F(I) {
1815
- if (!I || !(I != null && I.state))
1817
+ function f(T) {
1818
+ if (!T || !(T != null && T.state))
1816
1819
  return {};
1817
- const b = {};
1818
- return I.state.forEach((O) => {
1819
- b[O.type] || (b[O.type] = []), b[O.type].push(O);
1820
- }), b;
1821
- }
1822
- function ae(I) {
1823
- P.value.getInspectorState({ inspectorId: Ve, nodeId: I }).then((b) => {
1824
- const O = Q(b);
1825
- O && (K.value = F(O), y.value = Array.from({ length: Object.keys(K.value).length }, (G, X) => `${X}`));
1820
+ const k = {};
1821
+ return T.state.forEach((U) => {
1822
+ k[U.type] || (k[U.type] = []), k[U.type].push(U);
1823
+ }), k;
1824
+ }
1825
+ function _(T) {
1826
+ D.value.getInspectorState({ inspectorId: Ve, nodeId: T }).then((k) => {
1827
+ const U = ee(k);
1828
+ U && (G.value = f(U), H.value = Array.from({ length: Object.keys(G.value).length }, (K, te) => `${te}`));
1826
1829
  });
1827
1830
  }
1828
- ee(Z, (I) => {
1829
- ae(I), A.value && je();
1831
+ Q(F, (T) => {
1832
+ _(T), R.value && Ue();
1830
1833
  });
1831
- function re(I) {
1832
- const b = Q(I);
1833
- b.inspectorId !== Ve || b.nodeId !== Z.value || (K.value = F({ state: b.state.state }));
1834
- }
1835
- P.functions.on(J.INSPECTOR_STATE_UPDATED, re), R();
1836
- function ce(I) {
1837
- const b = I.trim().toLowerCase();
1838
- v(), R(b).then(() => {
1839
- v();
1834
+ function S(T) {
1835
+ const k = ee(T);
1836
+ k.inspectorId !== Ve || k.nodeId !== F.value || (G.value = f({ state: k.state.state }));
1837
+ }
1838
+ D.functions.on(Y.INSPECTOR_STATE_UPDATED, S), b();
1839
+ function P(T) {
1840
+ const k = T.trim().toLowerCase();
1841
+ h(), b(k).then(() => {
1842
+ h();
1840
1843
  });
1841
1844
  }
1842
- Qn(i, (I) => {
1843
- ce(I);
1845
+ Qn(a, (T) => {
1846
+ P(T);
1844
1847
  }, { debounce: 300 });
1845
- function _e(I) {
1846
- var O, G;
1847
- const b = Q(I);
1848
- b.inspectorId === Ve && (i.value ? ce(i.value) : _.value = b.rootNodes, L.value.includes(Z.value) || (Z.value = (G = (O = _.value) == null ? void 0 : O[0]) == null ? void 0 : G.id, k.value = U(C.value, 1)));
1848
+ function Z(T) {
1849
+ var U, K;
1850
+ const k = ee(T);
1851
+ k.inspectorId === Ve && (a.value ? P(a.value) : x.value = k.rootNodes, M.value.includes(F.value) || (F.value = (K = (U = x.value) == null ? void 0 : U[0]) == null ? void 0 : K.id, le.value = j(w.value, 1)));
1849
1852
  }
1850
- P.functions.on(J.INSPECTOR_TREE_UPDATED, _e), be(() => {
1851
- P.functions.off(J.INSPECTOR_STATE_UPDATED, re), P.functions.off(J.INSPECTOR_TREE_UPDATED, _e);
1853
+ D.functions.on(Y.INSPECTOR_TREE_UPDATED, Z), we(() => {
1854
+ D.functions.off(Y.INSPECTOR_STATE_UPDATED, S), D.functions.off(Y.INSPECTOR_TREE_UPDATED, Z);
1852
1855
  });
1853
- function ye() {
1854
- m.value = !0, o("onInspectComponentStart"), P.value.inspectComponentInspector().then((I) => {
1855
- const b = JSON.parse(I);
1856
- Z.value = b.id, k.value.includes(b.id) || k.value.push(b.id), k.value = [.../* @__PURE__ */ new Set([...k.value, ...D(C.value, b.id)])], Kt();
1856
+ function re() {
1857
+ m.value = !0, o("onInspectComponentStart"), D.value.inspectComponentInspector().then((T) => {
1858
+ const k = JSON.parse(T);
1859
+ F.value = k.id, le.value.includes(k.id) || le.value.push(k.id), le.value = [.../* @__PURE__ */ new Set([...le.value, ...A(w.value, k.id)])], Wt();
1857
1860
  }).finally(() => {
1858
1861
  m.value = !1, o("onInspectComponentEnd");
1859
1862
  });
1860
1863
  }
1864
+ function Me() {
1865
+ m.value = !1, D.value.cancelInspectComponentInspector();
1866
+ }
1861
1867
  function Le() {
1862
- m.value = !1, P.value.cancelInspectComponentInspector();
1868
+ D.value.scrollToComponent(F.value);
1863
1869
  }
1864
1870
  function He() {
1865
- P.value.scrollToComponent(Z.value);
1866
- }
1867
- function Oe() {
1868
- P.value.inspectDOM(Z.value).then(() => {
1871
+ D.value.inspectDOM(F.value).then(() => {
1869
1872
  chrome.devtools.inspectedWindow.eval("inspect(window.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__)");
1870
1873
  });
1871
1874
  }
1872
- function je() {
1873
- P.value.getComponentRenderCode(Z.value).then((I) => {
1874
- E.value = I, A.value = !0;
1875
+ function Ue() {
1876
+ D.value.getComponentRenderCode(F.value).then((T) => {
1877
+ V.value = T, R.value = !0;
1875
1878
  });
1876
1879
  }
1877
- function qe() {
1878
- o("openInEditor", M.value);
1880
+ function Ge() {
1881
+ o("openInEditor", de.value);
1879
1882
  }
1880
- const Ee = T();
1881
- function Kt() {
1883
+ const Ee = I();
1884
+ function Wt() {
1882
1885
  setTimeout(() => {
1883
- var b;
1884
- const I = (b = Ee.value) == null ? void 0 : b.querySelector(".active");
1885
- I == null || I.scrollIntoView({ behavior: "smooth", block: "center" });
1886
+ var k;
1887
+ const T = (k = Ee.value) == null ? void 0 : k.querySelector(".active");
1888
+ T == null || T.scrollIntoView({ behavior: "smooth", block: "center" });
1886
1889
  }, 300);
1887
1890
  }
1888
- function Wt() {
1889
- E.value = "", A.value = !1;
1890
- }
1891
- const Je = Nt(), ft = V(() => Je.appRecords.value.map((I) => ({
1892
- label: I.name + (I.version ? ` (${I.version})` : ""),
1893
- value: I.id
1894
- }))), qt = V(() => ft.value.map((I) => ({
1895
- label: I.label,
1896
- id: I.value
1897
- }))), Ye = T(Je.activeAppRecordId.value);
1898
- ot(() => {
1899
- Ye.value = Je.activeAppRecordId.value;
1891
+ function qt() {
1892
+ V.value = "", R.value = !1;
1893
+ }
1894
+ const We = Rt(), ft = E(() => We.appRecords.value.map((T) => ({
1895
+ label: T.name + (T.version ? ` (${T.version})` : ""),
1896
+ value: T.id
1897
+ }))), Jt = E(() => ft.value.map((T) => ({
1898
+ label: T.label,
1899
+ id: T.value
1900
+ }))), qe = I(We.activeAppRecordId.value);
1901
+ tt(() => {
1902
+ qe.value = We.activeAppRecordId.value;
1900
1903
  });
1901
- function Jt(I) {
1902
- P.value.toggleApp(I).then(() => {
1903
- Z.value = "", R();
1904
+ function Yt(T) {
1905
+ D.value.toggleApp(T).then(() => {
1906
+ F.value = "", b();
1904
1907
  });
1905
1908
  }
1906
- return (I, b) => (p(), f("div", nl, [
1907
- x(c(Ae), {
1909
+ return (T, k) => (p(), v("div", nl, [
1910
+ y(r(Re), {
1908
1911
  ref_key: "splitpanesRef",
1909
1912
  ref: t,
1910
1913
  class: "flex-1 overflow-auto",
1911
- horizontal: u.value,
1912
- onReady: b[4] || (b[4] = (O) => s.value = !0)
1914
+ horizontal: c.value,
1915
+ onReady: k[4] || (k[4] = (U) => l.value = !0)
1913
1916
  }, {
1914
- default: H(() => [
1915
- ft.value.length > 1 ? (p(), z(c(ue), {
1917
+ default: L(() => [
1918
+ ft.value.length > 1 ? (p(), z(r(ce), {
1916
1919
  key: 0,
1917
1920
  border: "base h-full",
1918
1921
  size: "20"
1919
1922
  }, {
1920
- default: H(() => [
1923
+ default: L(() => [
1921
1924
  d("div", ol, [
1922
- x(Sn, {
1923
- modelValue: Ye.value,
1924
- "onUpdate:modelValue": b[0] || (b[0] = (O) => Ye.value = O),
1925
- data: qt.value,
1925
+ y(Sn, {
1926
+ modelValue: qe.value,
1927
+ "onUpdate:modelValue": k[0] || (k[0] = (U) => qe.value = U),
1928
+ data: Jt.value,
1926
1929
  class: "w-full",
1927
- onSelect: Jt
1930
+ onSelect: Yt
1928
1931
  }, null, 8, ["modelValue", "data"])
1929
1932
  ])
1930
1933
  ]),
1931
1934
  _: 1
1932
- })) : j("", !0),
1933
- x(c(ue), {
1935
+ })) : O("", !0),
1936
+ y(r(ce), {
1934
1937
  border: "base",
1935
1938
  "h-full": ""
1936
1939
  }, {
1937
- default: H(() => [
1938
- a.value ? (p(), f("div", ll, [
1940
+ default: L(() => [
1941
+ u.value ? (p(), v("div", ll, [
1939
1942
  d("div", sl, [
1940
- x(c(Ze), {
1941
- modelValue: i.value,
1942
- "onUpdate:modelValue": b[1] || (b[1] = (O) => i.value = O),
1943
+ y(r(_e), {
1944
+ modelValue: a.value,
1945
+ "onUpdate:modelValue": k[1] || (k[1] = (U) => a.value = U),
1943
1946
  "loading-debounce-time": 250,
1944
- loading: !c(h),
1947
+ loading: !r(g),
1945
1948
  placeholder: "Find components...",
1946
1949
  class: "flex-1 text-3.5"
1947
1950
  }, null, 8, ["modelValue", "loading"]),
1948
- c(hn) ? j("", !0) : W((p(), f("button", {
1951
+ r(hn) ? O("", !0) : q((p(), v("button", {
1949
1952
  key: 0,
1950
1953
  "px-1": "",
1951
1954
  class: "hover:color-#00dc82",
1952
- onClick: ye
1955
+ onClick: re
1953
1956
  }, [
1954
- (p(), f("svg", al, b[6] || (b[6] = [
1957
+ (p(), v("svg", al, k[6] || (k[6] = [
1955
1958
  d("path", {
1956
1959
  fill: "currentColor",
1957
1960
  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"
@@ -1959,7 +1962,7 @@ const Zo = ["onClick", "onDblclick"], Fo = {
1959
1962
  ])))
1960
1963
  ])), [
1961
1964
  [
1962
- c(q),
1965
+ r(J),
1963
1966
  "Select component in the page",
1964
1967
  void 0,
1965
1968
  { bottom: !0 }
@@ -1971,100 +1974,100 @@ const Zo = ["onClick", "onDblclick"], Fo = {
1971
1974
  ref: Ee,
1972
1975
  class: "no-scrollbar flex-1 select-none overflow-scroll"
1973
1976
  }, [
1974
- x(Me, {
1975
- modelValue: Z.value,
1976
- "onUpdate:modelValue": b[2] || (b[2] = (O) => Z.value = O),
1977
- data: _.value,
1977
+ y(Pe, {
1978
+ modelValue: F.value,
1979
+ "onUpdate:modelValue": k[2] || (k[2] = (U) => F.value = U),
1980
+ data: x.value,
1978
1981
  "with-tag": !0
1979
1982
  }, null, 8, ["modelValue", "data"])
1980
1983
  ], 512)
1981
- ])) : j("", !0)
1984
+ ])) : O("", !0)
1982
1985
  ]),
1983
1986
  _: 1
1984
1987
  }),
1985
- x(c(ue), {
1988
+ y(r(ce), {
1986
1989
  relative: "",
1987
1990
  "h-full": ""
1988
1991
  }, {
1989
- default: H(() => {
1990
- var O;
1992
+ default: L(() => {
1993
+ var U;
1991
1994
  return [
1992
1995
  d("div", il, [
1993
1996
  d("div", rl, [
1994
- (O = N.value) != null && O.name ? (p(), f("span", ul, [
1995
- b[7] || (b[7] = d("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)),
1996
- d("span", cl, le(N.value.name), 1),
1997
- b[8] || (b[8] = d("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1))
1998
- ])) : j("", !0),
1999
- x(c(Ze), {
2000
- modelValue: r.value,
2001
- "onUpdate:modelValue": b[3] || (b[3] = (G) => r.value = G),
1997
+ (U = W.value) != null && U.name ? (p(), v("span", ul, [
1998
+ k[7] || (k[7] = d("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)),
1999
+ d("span", cl, ae(W.value.name), 1),
2000
+ k[8] || (k[8] = d("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1))
2001
+ ])) : O("", !0),
2002
+ y(r(_e), {
2003
+ modelValue: i.value,
2004
+ "onUpdate:modelValue": k[3] || (k[3] = (K) => i.value = K),
2002
2005
  "loading-debounce-time": 250,
2003
2006
  placeholder: "Filter State...",
2004
2007
  class: "flex-1 text-3.5"
2005
2008
  }, null, 8, ["modelValue"]),
2006
2009
  d("div", dl, [
2007
- W(d("i", {
2010
+ q(d("i", {
2008
2011
  class: "i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",
2009
- onClick: He
2012
+ onClick: Le
2010
2013
  }, null, 512), [
2011
2014
  [
2012
- c(q),
2015
+ r(J),
2013
2016
  "Scroll to component",
2014
2017
  void 0,
2015
2018
  { bottom: !0 }
2016
2019
  ]
2017
2020
  ]),
2018
- W(d("i", {
2021
+ q(d("i", {
2019
2022
  class: "i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",
2020
- onClick: je
2023
+ onClick: Ue
2021
2024
  }, null, 512), [
2022
2025
  [
2023
- c(q),
2026
+ r(J),
2024
2027
  "Show render code",
2025
2028
  void 0,
2026
2029
  { bottom: !0 }
2027
2030
  ]
2028
2031
  ]),
2029
- c(xt) ? W((p(), f("i", {
2032
+ r(bt) ? q((p(), v("i", {
2030
2033
  key: 0,
2031
2034
  class: "i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",
2032
- onClick: Oe
2035
+ onClick: He
2033
2036
  }, null, 512)), [
2034
2037
  [
2035
- c(q),
2038
+ r(J),
2036
2039
  "Inspect DOM",
2037
2040
  void 0,
2038
2041
  { bottom: !0 }
2039
2042
  ]
2040
- ]) : j("", !0),
2041
- M.value ? W((p(), f("i", {
2043
+ ]) : O("", !0),
2044
+ de.value ? q((p(), v("i", {
2042
2045
  key: 1,
2043
2046
  class: "i-carbon-launch h-4 w-4 cursor-pointer hover:op-70",
2044
- onClick: qe
2047
+ onClick: Ge
2045
2048
  }, null, 512)), [
2046
2049
  [
2047
- c(q),
2050
+ r(J),
2048
2051
  "Open in Editor",
2049
2052
  void 0,
2050
2053
  { bottom: !0 }
2051
2054
  ]
2052
- ]) : j("", !0)
2055
+ ]) : O("", !0)
2053
2056
  ])
2054
2057
  ]),
2055
- x(Pe, {
2058
+ y(De, {
2056
2059
  class: "no-scrollbar flex-1 select-none overflow-scroll",
2057
- data: w.value,
2058
- "node-id": Z.value,
2060
+ data: he.value,
2061
+ "node-id": F.value,
2059
2062
  "inspector-id": Ve,
2060
2063
  "expanded-state-id": "component-state"
2061
2064
  }, null, 8, ["data", "node-id"])
2062
2065
  ]),
2063
- A.value && E.value ? (p(), z(tl, {
2066
+ R.value && V.value ? (p(), z(tl, {
2064
2067
  key: 0,
2065
- code: E.value,
2066
- onClose: Wt
2067
- }, null, 8, ["code"])) : j("", !0)
2068
+ code: V.value,
2069
+ onClose: qt
2070
+ }, null, 8, ["code"])) : O("", !0)
2068
2071
  ];
2069
2072
  }),
2070
2073
  _: 1
@@ -2072,28 +2075,28 @@ const Zo = ["onClick", "onDblclick"], Fo = {
2072
2075
  ]),
2073
2076
  _: 1
2074
2077
  }, 8, ["horizontal"]),
2075
- c(xt) ? (p(), z(c(an), {
2078
+ r(bt) ? (p(), z(r(an), {
2076
2079
  key: 0,
2077
2080
  modelValue: m.value,
2078
- "onUpdate:modelValue": b[5] || (b[5] = (O) => m.value = O),
2081
+ "onUpdate:modelValue": k[5] || (k[5] = (U) => m.value = U),
2079
2082
  title: "",
2080
2083
  height: "12rem",
2081
2084
  closable: !1
2082
2085
  }, {
2083
- footer: H(() => [
2086
+ footer: L(() => [
2084
2087
  d("div", ml, [
2085
- x(c(de), { onClick: Le }, {
2086
- default: H(() => b[11] || (b[11] = [
2087
- Y(" Cancel ")
2088
+ y(r(pe), { onClick: Me }, {
2089
+ default: L(() => k[11] || (k[11] = [
2090
+ X(" Cancel ")
2088
2091
  ])),
2089
2092
  _: 1
2090
2093
  })
2091
2094
  ])
2092
2095
  ]),
2093
- default: H(() => [
2096
+ default: L(() => [
2094
2097
  d("div", pl, [
2095
2098
  d("span", fl, [
2096
- (p(), f("svg", vl, b[9] || (b[9] = [
2099
+ (p(), v("svg", vl, k[9] || (k[9] = [
2097
2100
  d("g", {
2098
2101
  fill: "none",
2099
2102
  stroke: "currentColor",
@@ -2111,16 +2114,16 @@ const Zo = ["onClick", "onDblclick"], Fo = {
2111
2114
  ], -1)
2112
2115
  ])))
2113
2116
  ]),
2114
- b[10] || (b[10] = d("p", null, " Click on a component on the page to select it ", -1))
2117
+ k[10] || (k[10] = d("p", null, " Click on a component on the page to select it ", -1))
2115
2118
  ])
2116
2119
  ]),
2117
2120
  _: 1
2118
- }, 8, ["modelValue"])) : j("", !0)
2121
+ }, 8, ["modelValue"])) : O("", !0)
2119
2122
  ]));
2120
2123
  }
2121
- }), ss = /* @__PURE__ */ Ce(hl, [["__scopeId", "data-v-38589395"]]), gl = {}, Cl = { class: "h-screen w-screen $ui-fcc flex-col" };
2124
+ }), as = /* @__PURE__ */ xe(hl, [["__scopeId", "data-v-b2392cef"]]), gl = {}, Cl = { class: "h-screen w-screen $ui-fcc flex-col" };
2122
2125
  function _l(n, e) {
2123
- return p(), f("div", Cl, [
2126
+ return p(), v("div", Cl, [
2124
2127
  e[0] || (e[0] = d("div", { class: "outer" }, [
2125
2128
  d("div", { class: "inner" }, [
2126
2129
  d("i", {
@@ -2129,22 +2132,22 @@ function _l(n, e) {
2129
2132
  })
2130
2133
  ])
2131
2134
  ], -1)),
2132
- tt(n.$slots, "default", {}, void 0, !0)
2135
+ Qe(n.$slots, "default", {}, void 0, !0)
2133
2136
  ]);
2134
2137
  }
2135
- const yl = /* @__PURE__ */ Ce(gl, [["render", _l], ["__scopeId", "data-v-b8018f07"]]), Zt = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
2136
- function Te() {
2138
+ const yl = /* @__PURE__ */ xe(gl, [["render", _l], ["__scopeId", "data-v-b8018f07"]]), Zt = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
2139
+ function ye() {
2137
2140
  return ve(Zt);
2138
2141
  }
2139
- function Ft() {
2140
- const n = T({
2142
+ function pt() {
2143
+ const n = I({
2141
2144
  homepage: "",
2142
2145
  id: "",
2143
2146
  label: "",
2144
2147
  logo: "",
2145
2148
  timelineLayerIds: []
2146
2149
  });
2147
- return ge(Zt, n), n;
2150
+ return Ce(Zt, n), n;
2148
2151
  }
2149
2152
  const xl = {}, bl = {
2150
2153
  width: "175",
@@ -2154,14 +2157,14 @@ const xl = {}, bl = {
2154
2157
  xmlns: "http://www.w3.org/2000/svg"
2155
2158
  };
2156
2159
  function wl(n, e) {
2157
- return p(), f("svg", bl, e[0] || (e[0] = [
2160
+ return p(), v("svg", bl, e[0] || (e[0] = [
2158
2161
  d("path", {
2159
2162
  fill: "currentColor",
2160
2163
  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"
2161
2164
  }, null, -1)
2162
2165
  ]));
2163
2166
  }
2164
- const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
2167
+ const kl = /* @__PURE__ */ xe(xl, [["render", wl]]), Il = {
2165
2168
  "h-full": "",
2166
2169
  "w-full": "",
2167
2170
  flex: "",
@@ -2199,94 +2202,94 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
2199
2202
  }, Ll = ["href"], Hl = /* @__PURE__ */ B({
2200
2203
  __name: "About",
2201
2204
  setup(n) {
2202
- const e = De(), o = Te(), t = T(!1), s = T(!1);
2203
- function l() {
2205
+ const e = Ae(), o = ye(), t = I(!1), l = I(!1);
2206
+ function s() {
2204
2207
  t.value = !0;
2205
2208
  }
2206
- function u() {
2207
- t.value = !0, s.value = !0;
2209
+ function c() {
2210
+ t.value = !0, l.value = !0;
2208
2211
  }
2209
- return (i, r) => {
2210
- var h;
2211
- return p(), f("div", Il, [
2212
+ return (a, i) => {
2213
+ var g;
2214
+ return p(), v("div", Il, [
2212
2215
  d("div", $l, [
2213
- r[5] || (r[5] = d("div", { "flex-auto": "" }, null, -1)),
2216
+ i[5] || (i[5] = d("div", { "flex-auto": "" }, null, -1)),
2214
2217
  d("div", Sl, [
2215
2218
  d("div", Tl, [
2216
2219
  d("span", El, [
2217
- t.value ? j("", !0) : (p(), f("span", Vl)),
2218
- W(d("img", {
2219
- src: c(o).logo,
2220
- alt: `${c(o).label} Logo`,
2220
+ t.value ? O("", !0) : (p(), v("span", Vl)),
2221
+ q(d("img", {
2222
+ src: r(o).logo,
2223
+ alt: `${r(o).label} Logo`,
2221
2224
  class: "inline-block h16",
2222
- onError: u,
2223
- onLoad: l
2225
+ onError: c,
2226
+ onLoad: s
2224
2227
  }, null, 40, Nl), [
2225
- [nn, t.value && !s.value]
2228
+ [nn, t.value && !l.value]
2226
2229
  ]),
2227
- s.value ? (p(), f("span", Rl, le(c(o).label), 1)) : j("", !0)
2230
+ l.value ? (p(), v("span", Rl, ae(r(o).label), 1)) : O("", !0)
2228
2231
  ]),
2229
2232
  d("span", null, [
2230
- x(kl, { "h-18": "" })
2233
+ y(kl, { "h-18": "" })
2231
2234
  ])
2232
2235
  ]),
2233
2236
  d("div", Al, [
2234
- d("span", Dl, le(c(o).label) + " DevTools ", 1)
2237
+ d("span", Dl, ae(r(o).label) + " DevTools ", 1)
2235
2238
  ])
2236
2239
  ]),
2237
- r[6] || (r[6] = d("div", { "flex-auto": "" }, null, -1)),
2240
+ i[6] || (i[6] = d("div", { "flex-auto": "" }, null, -1)),
2238
2241
  d("div", Pl, [
2239
2242
  d("div", {
2240
2243
  flex: "~ col auto",
2241
2244
  "min-w-40": "",
2242
2245
  p4: "",
2243
2246
  "theme-card-lime": "",
2244
- onClick: r[0] || (r[0] = (v) => c(e).push("/state"))
2245
- }, r[2] || (r[2] = [
2247
+ onClick: i[0] || (i[0] = (h) => r(e).push("/state"))
2248
+ }, i[2] || (i[2] = [
2246
2249
  d("div", {
2247
2250
  "i-carbon-tree-view-alt": "",
2248
2251
  "text-3xl": ""
2249
2252
  }, null, -1),
2250
2253
  d("code", null, "State", -1)
2251
2254
  ])),
2252
- (h = c(o).timelineLayerIds) != null && h.length ? (p(), f("div", {
2255
+ (g = r(o).timelineLayerIds) != null && g.length ? (p(), v("div", {
2253
2256
  key: 0,
2254
2257
  flex: "~ col auto",
2255
2258
  "min-w-40": "",
2256
2259
  p4: "",
2257
2260
  "theme-card-lime": "",
2258
- onClick: r[1] || (r[1] = (v) => c(e).push("/timeline"))
2259
- }, r[3] || (r[3] = [
2261
+ onClick: i[1] || (i[1] = (h) => r(e).push("/timeline"))
2262
+ }, i[3] || (i[3] = [
2260
2263
  d("div", {
2261
2264
  "i-mdi:timeline-clock-outline": "",
2262
2265
  "text-3xl": ""
2263
2266
  }, null, -1),
2264
2267
  d("div", null, "Timeline", -1)
2265
- ]))) : j("", !0)
2268
+ ]))) : O("", !0)
2266
2269
  ]),
2267
2270
  d("div", Ml, [
2268
2271
  d("a", {
2269
- href: c(o).homepage,
2272
+ href: r(o).homepage,
2270
2273
  target: "_blank",
2271
2274
  flex: "~ gap1",
2272
2275
  "items-center": "",
2273
2276
  op50: "",
2274
2277
  hover: "op100 text-yellow",
2275
2278
  transition: ""
2276
- }, r[4] || (r[4] = [
2279
+ }, i[4] || (i[4] = [
2277
2280
  d("div", { "i-carbon-document": "" }, null, -1),
2278
- Y(" View Documentation ")
2281
+ X(" View Documentation ")
2279
2282
  ]), 8, Ll)
2280
2283
  ]),
2281
- r[7] || (r[7] = d("div", { "flex-auto": "" }, null, -1))
2284
+ i[7] || (i[7] = d("div", { "flex-auto": "" }, null, -1))
2282
2285
  ])
2283
2286
  ]);
2284
2287
  };
2285
2288
  }
2286
- }), Ol = { class: "flex-1 overflow-y-auto p2" }, jl = { class: "max-w-[190px] flex-1 select-none py-1.5 text-sm" }, Ul = { class: "w-4/5" }, zl = {
2289
+ }), Ul = { class: "flex-1 overflow-y-auto p2" }, Ol = { class: "max-w-[190px] flex-1 select-none py-1.5 text-sm" }, jl = { class: "w-4/5" }, zl = {
2287
2290
  key: 0,
2288
2291
  class: "flex justify-start"
2289
- }, Bl = { key: 1 }, Gt = /* @__PURE__ */ B({
2292
+ }, Bl = { key: 1 }, Kt = /* @__PURE__ */ B({
2290
2293
  __name: "Settings",
2291
2294
  props: {
2292
2295
  pluginId: {},
@@ -2295,192 +2298,216 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
2295
2298
  },
2296
2299
  emits: ["update"],
2297
2300
  setup(n, { emit: e }) {
2298
- const o = n, t = e, s = V(() => o.options), l = V(() => o.values);
2299
- function u(i, r) {
2300
- P.value.updatePluginSettings(o.pluginId, i, r), P.value.getPluginSettings(o.pluginId).then((h) => {
2301
- t("update", h);
2301
+ const o = n, t = e, l = E(() => o.options), s = E(() => o.values);
2302
+ function c(a, i) {
2303
+ D.value.updatePluginSettings(o.pluginId, a, i), D.value.getPluginSettings(o.pluginId).then((g) => {
2304
+ t("update", g);
2302
2305
  });
2303
2306
  }
2304
- return (i, r) => (p(), f("div", Ol, [
2307
+ return (a, i) => (p(), v("div", Ul, [
2305
2308
  d("ul", null, [
2306
- (p(!0), f(ne, null, ie(s.value, (h, v) => (p(), f("li", {
2307
- key: v,
2309
+ (p(!0), v(oe, null, ue(l.value, (g, h) => (p(), v("li", {
2310
+ key: h,
2308
2311
  class: "flex items-center py-2"
2309
2312
  }, [
2310
- d("div", jl, le(h.label), 1),
2311
- d("div", Ul, [
2312
- h.type === "boolean" ? (p(), f("div", zl, [
2313
- x(c(rn), {
2314
- "model-value": l.value[v],
2313
+ d("div", Ol, ae(g.label), 1),
2314
+ d("div", jl, [
2315
+ g.type === "boolean" ? (p(), v("div", zl, [
2316
+ y(r(rn), {
2317
+ "model-value": s.value[h],
2315
2318
  class: "row-reverse flex hover:bg-active py1 pl2 pr1",
2316
- "onUpdate:modelValue": (a) => u(v, a)
2319
+ "onUpdate:modelValue": (u) => c(h, u)
2317
2320
  }, null, 8, ["model-value", "onUpdate:modelValue"])
2318
- ])) : h.type === "choice" ? (p(), f("div", Bl, [
2319
- x(c(un), {
2320
- "model-value": l.value[v],
2321
- options: h.options,
2322
- "onUpdate:modelValue": (a) => u(v, a)
2321
+ ])) : g.type === "choice" ? (p(), v("div", Bl, [
2322
+ y(r(un), {
2323
+ "model-value": s.value[h],
2324
+ options: g.options,
2325
+ "onUpdate:modelValue": (u) => c(h, u)
2323
2326
  }, null, 8, ["model-value", "options", "onUpdate:modelValue"])
2324
- ])) : h.type === "text" ? (p(), z(c(Ze), {
2327
+ ])) : g.type === "text" ? (p(), z(r(_e), {
2325
2328
  key: 2,
2326
- "model-value": l.value[v],
2327
- "onUpdate:modelValue": (a) => u(v, a)
2328
- }, null, 8, ["model-value", "onUpdate:modelValue"])) : j("", !0)
2329
+ "model-value": s.value[h],
2330
+ "onUpdate:modelValue": (u) => c(h, u)
2331
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : O("", !0)
2329
2332
  ])
2330
2333
  ]))), 128))
2331
2334
  ])
2332
2335
  ]));
2333
2336
  }
2334
- }), Zl = { class: "h-full flex flex-col" }, Fl = /* @__PURE__ */ B({
2337
+ }), Fl = { class: "h-full flex flex-col" }, Zl = /* @__PURE__ */ B({
2335
2338
  __name: "Settings",
2336
2339
  setup(n) {
2337
- const e = ve("pluginSettings"), o = Te(), t = V(() => e.value.options), s = V(() => e.value.values);
2338
- function l(u) {
2339
- e.value = u;
2340
+ const e = ve("pluginSettings"), o = ye(), t = E(() => e.value.options), l = E(() => e.value.values);
2341
+ function s(c) {
2342
+ e.value = c;
2340
2343
  }
2341
- return (u, i) => (p(), f("div", Zl, [
2342
- x($e, {
2343
- "doc-link": c(o).homepage
2344
+ return (c, a) => (p(), v("div", Fl, [
2345
+ y(Se, {
2346
+ "doc-link": r(o).homepage
2344
2347
  }, {
2345
- default: H(() => [
2346
- x(Se)
2348
+ default: L(() => [
2349
+ y(Te)
2347
2350
  ]),
2348
2351
  _: 1
2349
2352
  }, 8, ["doc-link"]),
2350
- x(Gt, {
2351
- "plugin-id": c(o).pluginId,
2353
+ y(Kt, {
2354
+ "plugin-id": r(o).pluginId,
2352
2355
  options: t.value,
2353
- values: s.value,
2354
- onUpdate: l
2356
+ values: l.value,
2357
+ onUpdate: s
2355
2358
  }, null, 8, ["plugin-id", "options", "values"])
2356
2359
  ]));
2357
2360
  }
2358
- }), Gl = { class: "h-full flex flex-col" }, Kl = { class: "h-full flex flex-col p2" }, Wl = {
2359
- key: 0,
2360
- class: "mb-1 flex justify-end pb-1",
2361
+ }), Kl = { class: "h-full flex flex-col" }, Gl = { class: "h-full flex flex-col p2" }, Wl = {
2362
+ class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
2361
2363
  border: "b dashed base"
2362
- }, ql = { class: "flex items-center gap-2 px-1" }, Jl = ["onClick"], Yl = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, Xl = { class: "h-full flex flex-col p2" }, Ql = {
2364
+ }, ql = {
2363
2365
  key: 0,
2364
- class: "mb-1 flex justify-end pb-1",
2366
+ class: "flex items-center gap-2 px-1"
2367
+ }, Jl = ["onClick"], Yl = {
2368
+ key: 0,
2369
+ class: "no-scrollbar flex-1 select-none overflow-scroll"
2370
+ }, Xl = { class: "h-full flex flex-col p2" }, Ql = {
2371
+ class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
2365
2372
  border: "b dashed base"
2366
- }, e1 = { class: "flex items-center gap-2 px-1" }, t1 = ["onClick"], n1 = /* @__PURE__ */ B({
2373
+ }, e1 = {
2374
+ key: 0,
2375
+ class: "flex items-center gap-2 px-1"
2376
+ }, t1 = ["onClick"], n1 = /* @__PURE__ */ B({
2367
2377
  __name: "Index",
2368
2378
  setup(n) {
2369
- const { expanded: e } = me(), { expanded: o } = me("custom-inspector-state"), t = Te(), s = V(() => t.value.id), l = T([]), u = T([]), i = T([]), r = V(() => {
2370
- var w, k;
2371
- return (w = i.value) != null && w.length ? A((k = i.value) == null ? void 0 : k[0]) : [];
2372
- }), h = V(() => $(i.value)), v = V(() => h.value.map((w) => w.id)), a = T(""), m = T({}), E = V(() => !Object.keys(m.value).length);
2373
- function A(w, k = [], y = []) {
2374
- var R;
2375
- return k.push(w.id), ((R = w.children) == null ? void 0 : R.length) === 0 && y.push([...k]), Array.isArray(w.children) && w.children.forEach((F) => {
2376
- A(F, k, y);
2377
- }), k.pop(), y;
2378
- }
2379
- function g(w, k) {
2380
- const y = [];
2381
- return w == null || w.forEach((R) => {
2382
- y.push(...R.slice(0, k + 1));
2383
- }), [...new Set(y)];
2384
- }
2385
- function $(w) {
2386
- const k = [], y = (R) => {
2387
- R == null || R.forEach((F) => {
2388
- var ae;
2389
- k.push(F), (ae = F.children) != null && ae.length && y(F.children);
2379
+ const { expanded: e } = me(), { expanded: o } = me("custom-inspector-state"), t = ye(), l = E(() => t.value.id), s = I([]), c = I([]), a = I([]), i = E(() => {
2380
+ var f, _;
2381
+ return (f = a.value) != null && f.length ? A((_ = a.value) == null ? void 0 : _[0]) : [];
2382
+ }), g = E(() => w(a.value)), h = E(() => g.value.map((f) => f.id)), u = I(""), m = I({}), V = E(() => !Object.keys(m.value).length), R = ye(), C = I(""), $ = I("");
2383
+ Q(C, (f, _) => {
2384
+ !f.trim().length && !_.trim().length || le(f);
2385
+ });
2386
+ const j = E(() => nt({
2387
+ state: m.value,
2388
+ filterKey: $.value
2389
+ }));
2390
+ function A(f, _ = [], S = []) {
2391
+ var P;
2392
+ return _.push(f.id), ((P = f.children) == null ? void 0 : P.length) === 0 && S.push([..._]), Array.isArray(f.children) && f.children.forEach((Z) => {
2393
+ A(Z, _, S);
2394
+ }), _.pop(), S;
2395
+ }
2396
+ function x(f, _) {
2397
+ const S = [];
2398
+ return f == null || f.forEach((P) => {
2399
+ S.push(...P.slice(0, _ + 1));
2400
+ }), [...new Set(S)];
2401
+ }
2402
+ function w(f) {
2403
+ const _ = [], S = (P) => {
2404
+ P == null || P.forEach((Z) => {
2405
+ var re;
2406
+ _.push(Z), (re = Z.children) != null && re.length && S(Z.children);
2390
2407
  });
2391
2408
  };
2392
- return y(w), k;
2409
+ return S(f), _;
2393
2410
  }
2394
- function U() {
2395
- P.value.getInspectorNodeActions(s.value).then((w) => {
2396
- l.value = w;
2411
+ function N() {
2412
+ D.value.getInspectorNodeActions(l.value).then((f) => {
2413
+ s.value = f;
2397
2414
  });
2398
2415
  }
2399
- function D() {
2400
- P.value.getInspectorActions(s.value).then((w) => {
2401
- u.value = w;
2416
+ function M() {
2417
+ D.value.getInspectorActions(l.value).then((f) => {
2418
+ c.value = f;
2402
2419
  });
2403
2420
  }
2404
- U(), D();
2405
- function _(w) {
2406
- P.value.callInspectorNodeAction(s.value, w, a.value);
2407
- }
2408
- function C(w) {
2409
- P.value.callInspectorAction(s.value, w);
2421
+ N(), M();
2422
+ function G(f) {
2423
+ D.value.callInspectorNodeAction(l.value, f, u.value);
2410
2424
  }
2411
- function S(w) {
2412
- var k;
2413
- for (const y in w)
2414
- (k = w[y]) != null && k.length || delete w[y];
2415
- return w;
2425
+ function F(f) {
2426
+ D.value.callInspectorAction(l.value, f);
2416
2427
  }
2417
- function L(w) {
2418
- P.value.getInspectorState({ inspectorId: s.value, nodeId: w }).then((k) => {
2419
- const y = Q(k);
2420
- y && (m.value = S(y), o.value = Array.from({ length: Object.keys(m.value).length }, (R, F) => `${F}`));
2428
+ function W(f) {
2429
+ var _;
2430
+ for (const S in f)
2431
+ (_ = f[S]) != null && _.length || delete f[S];
2432
+ return f;
2433
+ }
2434
+ function de(f) {
2435
+ D.value.getInspectorState({ inspectorId: l.value, nodeId: f }).then((_) => {
2436
+ const S = ee(_);
2437
+ S && (m.value = W(S), o.value = Array.from({ length: Object.keys(m.value).length }, (P, Z) => `${Z}`));
2421
2438
  });
2422
2439
  }
2423
- function K() {
2440
+ function he() {
2424
2441
  m.value = {};
2425
2442
  }
2426
- ee(a, () => {
2427
- K(), L(a.value);
2443
+ Q(u, () => {
2444
+ he(), de(u.value);
2428
2445
  });
2429
- const Z = () => {
2430
- P.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((w) => {
2431
- const k = Q(w);
2432
- i.value = k, !a.value && k.length && (a.value = k[0].id, e.value = g(r.value, 1), L(k[0].id));
2446
+ function le(f = "") {
2447
+ D.value.getInspectorTree({ inspectorId: l.value, filter: f }).then((_) => {
2448
+ const S = ee(_);
2449
+ a.value = S, !u.value && S.length && (u.value = S[0].id, e.value = x(i.value, 1), de(S[0].id));
2433
2450
  });
2434
- };
2435
- jt(s).toBeTruthy().then(Z);
2436
- function N(w) {
2437
- var y, R;
2438
- const k = Q(w);
2439
- !k.rootNodes.length || k.inspectorId !== s.value || (i.value = k.rootNodes, v.value.includes(a.value) || (a.value = (R = (y = i.value) == null ? void 0 : y[0]) == null ? void 0 : R.id, e.value = g(r.value, 1)));
2440
- }
2441
- function M(w) {
2442
- const k = Q(w);
2443
- if (k.inspectorId !== s.value || !k.state || k.nodeId !== a.value)
2451
+ }
2452
+ jt(l).toBeTruthy().then(() => le());
2453
+ function H(f) {
2454
+ var S, P;
2455
+ const _ = ee(f);
2456
+ !_.rootNodes.length || _.inspectorId !== l.value || (a.value = _.rootNodes, h.value.includes(u.value) || (u.value = (P = (S = a.value) == null ? void 0 : S[0]) == null ? void 0 : P.id, e.value = x(i.value, 1)));
2457
+ }
2458
+ function b(f) {
2459
+ const _ = ee(f);
2460
+ if (_.inspectorId !== l.value || !_.state || _.nodeId !== u.value)
2444
2461
  return;
2445
- const { inspectorId: y, ...R } = k.state;
2446
- m.value = S(R);
2447
- }
2448
- return Re(() => {
2449
- P.functions.on(J.INSPECTOR_TREE_UPDATED, N), P.functions.on(J.INSPECTOR_STATE_UPDATED, M);
2450
- }), be(() => {
2451
- P.functions.off(J.INSPECTOR_TREE_UPDATED, N), P.functions.off(J.INSPECTOR_STATE_UPDATED, M);
2452
- }), (w, k) => (p(), f("div", Gl, [
2453
- x($e, {
2454
- "doc-link": c(t).homepage
2462
+ const { inspectorId: S, ...P } = _.state;
2463
+ m.value = W(P);
2464
+ }
2465
+ return Ne(() => {
2466
+ D.functions.on(Y.INSPECTOR_TREE_UPDATED, H), D.functions.on(Y.INSPECTOR_STATE_UPDATED, b);
2467
+ }), we(() => {
2468
+ D.functions.off(Y.INSPECTOR_TREE_UPDATED, H), D.functions.off(Y.INSPECTOR_STATE_UPDATED, b);
2469
+ }), (f, _) => (p(), v("div", Kl, [
2470
+ y(Se, {
2471
+ "doc-link": r(t).homepage
2455
2472
  }, {
2456
- default: H(() => [
2457
- x(Se)
2473
+ default: L(() => [
2474
+ y(Te)
2458
2475
  ]),
2459
2476
  _: 1
2460
2477
  }, 8, ["doc-link"]),
2461
- i.value.length ? (p(), z(c(Ae), {
2462
- key: 0,
2478
+ !a.value.length && !C.value.trim().length ? (p(), z(Ie, { key: 0 }, {
2479
+ default: L(() => _[3] || (_[3] = [
2480
+ X(" No Data ")
2481
+ ])),
2482
+ _: 1
2483
+ })) : (p(), z(r(Re), {
2484
+ key: 1,
2463
2485
  class: "flex-1 overflow-auto"
2464
2486
  }, {
2465
- default: H(() => [
2466
- x(c(ue), {
2487
+ default: L(() => [
2488
+ y(r(ce), {
2467
2489
  border: "r base",
2468
2490
  size: "40",
2469
2491
  "h-full": ""
2470
2492
  }, {
2471
- default: H(() => {
2472
- var y;
2493
+ default: L(() => {
2494
+ var S;
2473
2495
  return [
2474
- d("div", Kl, [
2475
- (y = u.value) != null && y.length ? (p(), f("div", Wl, [
2476
- d("div", ql, [
2477
- (p(!0), f(ne, null, ie(u.value, (R, F) => W((p(), f("div", {
2478
- key: F,
2496
+ d("div", Gl, [
2497
+ d("div", Wl, [
2498
+ y(r(_e), {
2499
+ modelValue: C.value,
2500
+ "onUpdate:modelValue": _[0] || (_[0] = (P) => C.value = P),
2501
+ placeholder: r(R).treeFilterPlaceholder
2502
+ }, null, 8, ["modelValue", "placeholder"]),
2503
+ (S = c.value) != null && S.length ? (p(), v("div", ql, [
2504
+ (p(!0), v(oe, null, ue(c.value, (P, Z) => q((p(), v("div", {
2505
+ key: Z,
2479
2506
  class: "flex items-center gap1",
2480
- onClick: (ae) => C(F)
2507
+ onClick: (re) => F(Z)
2481
2508
  }, [
2482
- x(c(Fe), {
2483
- name: `baseline-${R.icon.replace(/\_/g, "-")}`,
2509
+ y(r(Be), {
2510
+ name: `baseline-${P.icon.replace(/\_/g, "-")}`,
2484
2511
  "cursor-pointer": "",
2485
2512
  op70: "",
2486
2513
  "text-base": "",
@@ -2488,40 +2515,50 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
2488
2515
  }, null, 8, ["name"])
2489
2516
  ], 8, Jl)), [
2490
2517
  [
2491
- c(q),
2492
- { content: R.tooltip },
2518
+ r(J),
2519
+ { content: P.tooltip },
2493
2520
  void 0,
2494
2521
  { "bottom-end": !0 }
2495
2522
  ]
2496
2523
  ])), 128))
2497
- ])
2498
- ])) : j("", !0),
2499
- d("div", Yl, [
2500
- x(Me, {
2501
- modelValue: a.value,
2502
- "onUpdate:modelValue": k[0] || (k[0] = (R) => a.value = R),
2503
- data: i.value
2524
+ ])) : O("", !0)
2525
+ ]),
2526
+ a.value.length ? (p(), v("div", Yl, [
2527
+ y(Pe, {
2528
+ modelValue: u.value,
2529
+ "onUpdate:modelValue": _[1] || (_[1] = (P) => u.value = P),
2530
+ data: a.value
2504
2531
  }, null, 8, ["modelValue", "data"])
2505
- ])
2532
+ ])) : (p(), z(Ie, { key: 1 }, {
2533
+ default: L(() => _[4] || (_[4] = [
2534
+ X(" No Data ")
2535
+ ])),
2536
+ _: 1
2537
+ }))
2506
2538
  ])
2507
2539
  ];
2508
2540
  }),
2509
2541
  _: 1
2510
2542
  }),
2511
- x(c(ue), { size: "60" }, {
2512
- default: H(() => {
2513
- var y;
2543
+ y(r(ce), { size: "60" }, {
2544
+ default: L(() => {
2545
+ var S;
2514
2546
  return [
2515
2547
  d("div", Xl, [
2516
- (y = l.value) != null && y.length ? (p(), f("div", Ql, [
2517
- d("div", e1, [
2518
- (p(!0), f(ne, null, ie(l.value, (R, F) => W((p(), f("div", {
2519
- key: F,
2548
+ d("div", Ql, [
2549
+ y(r(_e), {
2550
+ modelValue: $.value,
2551
+ "onUpdate:modelValue": _[2] || (_[2] = (P) => $.value = P),
2552
+ placeholder: r(R).stateFilterPlaceholder
2553
+ }, null, 8, ["modelValue", "placeholder"]),
2554
+ (S = s.value) != null && S.length ? (p(), v("div", e1, [
2555
+ (p(!0), v(oe, null, ue(s.value, (P, Z) => q((p(), v("div", {
2556
+ key: Z,
2520
2557
  class: "flex items-center gap1",
2521
- onClick: (ae) => _(F)
2558
+ onClick: (re) => G(Z)
2522
2559
  }, [
2523
- x(c(Fe), {
2524
- name: `baseline-${R.icon.replace(/\_/g, "-")}`,
2560
+ y(r(Be), {
2561
+ name: `baseline-${P.icon.replace(/\_/g, "-")}`,
2525
2562
  "cursor-pointer": "",
2526
2563
  op70: "",
2527
2564
  "text-base": "",
@@ -2529,24 +2566,24 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
2529
2566
  }, null, 8, ["name"])
2530
2567
  ], 8, t1)), [
2531
2568
  [
2532
- c(q),
2533
- { content: R.tooltip },
2569
+ r(J),
2570
+ { content: P.tooltip },
2534
2571
  void 0,
2535
2572
  { "bottom-end": !0 }
2536
2573
  ]
2537
2574
  ])), 128))
2538
- ])
2539
- ])) : j("", !0),
2540
- a.value && !E.value ? (p(), z(Pe, {
2541
- key: 1,
2542
- data: m.value,
2543
- "node-id": a.value,
2544
- "inspector-id": s.value,
2575
+ ])) : O("", !0)
2576
+ ]),
2577
+ u.value && !V.value ? (p(), z(De, {
2578
+ key: 0,
2579
+ data: j.value,
2580
+ "node-id": u.value,
2581
+ "inspector-id": l.value,
2545
2582
  "expanded-state-id": "custom-inspector-state",
2546
2583
  class: "no-scrollbar flex-1 select-none overflow-scroll"
2547
- }, null, 8, ["data", "node-id", "inspector-id"])) : (p(), z(Ne, { key: 2 }, {
2548
- default: H(() => k[1] || (k[1] = [
2549
- Y(" No Data ")
2584
+ }, null, 8, ["data", "node-id", "inspector-id"])) : (p(), z(Ie, { key: 1 }, {
2585
+ default: L(() => _[5] || (_[5] = [
2586
+ X(" No Data ")
2550
2587
  ])),
2551
2588
  _: 1
2552
2589
  }))
@@ -2557,28 +2594,23 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
2557
2594
  })
2558
2595
  ]),
2559
2596
  _: 1
2560
- })) : (p(), z(Ne, { key: 1 }, {
2561
- default: H(() => k[2] || (k[2] = [
2562
- Y(" No Data ")
2563
- ])),
2564
- _: 1
2565
2597
  }))
2566
2598
  ]));
2567
2599
  }
2568
2600
  }), o1 = /* @__PURE__ */ B({
2569
2601
  __name: "Index",
2570
2602
  setup(n) {
2571
- const e = Te();
2572
- return (o, t) => (p(), z(pt, {
2573
- "layer-ids": c(e).timelineLayerIds,
2574
- "doc-link": c(e).homepage,
2575
- "plugin-id": c(e).pluginId
2603
+ const e = ye();
2604
+ return (o, t) => (p(), z(dt, {
2605
+ "layer-ids": r(e).timelineLayerIds,
2606
+ "doc-link": r(e).homepage,
2607
+ "plugin-id": r(e).pluginId
2576
2608
  }, null, 8, ["layer-ids", "doc-link", "plugin-id"]));
2577
2609
  }
2578
2610
  }), l1 = {
2579
2611
  "h-full": "",
2580
2612
  "w-full": ""
2581
- }, s1 = { key: 0 }, as = /* @__PURE__ */ B({
2613
+ }, s1 = { key: 0 }, is = /* @__PURE__ */ B({
2582
2614
  __name: "index",
2583
2615
  props: {
2584
2616
  id: {},
@@ -2586,10 +2618,10 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
2586
2618
  },
2587
2619
  emits: ["loadError"],
2588
2620
  setup(n, { emit: e }) {
2589
- const o = n, t = e, s = Ft(), l = T(!1), u = T(null);
2590
- ge("pluginSettings", u);
2591
- const i = V(() => {
2592
- var a;
2621
+ const o = n, t = e, l = pt(), s = I(!1), c = I(null);
2622
+ Ce("pluginSettings", c);
2623
+ const a = E(() => {
2624
+ var u;
2593
2625
  return [
2594
2626
  {
2595
2627
  path: "/state",
@@ -2597,7 +2629,7 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
2597
2629
  component: n1,
2598
2630
  icon: "i-carbon-tree-view-alt"
2599
2631
  },
2600
- ((a = s.value.timelineLayerIds) == null ? void 0 : a.length) && {
2632
+ ((u = l.value.timelineLayerIds) == null ? void 0 : u.length) && {
2601
2633
  path: "/timeline",
2602
2634
  name: "Timeline",
2603
2635
  component: o1,
@@ -2608,47 +2640,49 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
2608
2640
  name: "About",
2609
2641
  component: Hl
2610
2642
  },
2611
- u.value && {
2643
+ c.value && {
2612
2644
  path: "/settings",
2613
2645
  name: "Settings",
2614
- component: Fl,
2646
+ component: Zl,
2615
2647
  icon: "i-mdi:cog-outline"
2616
2648
  }
2617
2649
  ].filter(Boolean);
2618
- }), { VirtualRouterView: r, restoreRouter: h } = st(i, {
2650
+ }), { VirtualRouterView: i, restoreRouter: g } = lt(a, {
2619
2651
  defaultRoutePath: "/state"
2620
2652
  });
2621
- function v() {
2622
- l.value = !0, Re(() => {
2623
- P.value.getInspectorInfo(o.id).then((a) => {
2624
- if (!a) {
2653
+ function h() {
2654
+ s.value = !0, Ne(() => {
2655
+ D.value.getInspectorInfo(o.id).then((u) => {
2656
+ if (!u) {
2625
2657
  t("loadError");
2626
2658
  return;
2627
2659
  }
2628
2660
  const m = {
2629
- homepage: a == null ? void 0 : a.homepage,
2630
- id: a == null ? void 0 : a.id,
2631
- label: a == null ? void 0 : a.label,
2632
- logo: a == null ? void 0 : a.logo,
2633
- timelineLayerIds: a == null ? void 0 : a.timelineLayers.map((E) => E.id),
2634
- pluginId: o.pluginId
2661
+ homepage: u == null ? void 0 : u.homepage,
2662
+ id: u == null ? void 0 : u.id,
2663
+ label: u == null ? void 0 : u.label,
2664
+ logo: u == null ? void 0 : u.logo,
2665
+ timelineLayerIds: u == null ? void 0 : u.timelineLayers.map((V) => V.id),
2666
+ pluginId: o.pluginId,
2667
+ treeFilterPlaceholder: u.treeFilterPlaceholder,
2668
+ stateFilterPlaceholder: u.stateFilterPlaceholder
2635
2669
  };
2636
- s.value = m, h(), l.value = !1;
2637
- }), P.value.getPluginSettings(o.pluginId).then((a) => {
2638
- a.options ? u.value = a : u.value = null;
2670
+ l.value = m, g(), s.value = !1;
2671
+ }), D.value.getPluginSettings(o.pluginId).then((u) => {
2672
+ u.options ? c.value = u : c.value = null;
2639
2673
  });
2640
2674
  });
2641
2675
  }
2642
- return ee(() => o.id, () => {
2643
- v();
2676
+ return Q(() => o.id, () => {
2677
+ h();
2644
2678
  }, {
2645
2679
  immediate: !0
2646
- }), be(() => {
2647
- P.value.unhighlight();
2648
- }), (a, m) => (p(), f("div", l1, [
2649
- l.value ? (p(), f("div", s1, [
2650
- x(yl)
2651
- ])) : (p(), z(c(r), { key: 1 }))
2680
+ }), we(() => {
2681
+ D.value.unhighlight();
2682
+ }), (u, m) => (p(), v("div", l1, [
2683
+ s.value ? (p(), v("div", s1, [
2684
+ y(yl)
2685
+ ])) : (p(), z(r(i), { key: 1 }))
2652
2686
  ]));
2653
2687
  }
2654
2688
  }), a1 = {}, i1 = {
@@ -2657,11 +2691,11 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
2657
2691
  xmlns: "http://www.w3.org/2000/svg"
2658
2692
  };
2659
2693
  function r1(n, e) {
2660
- return p(), f("svg", i1, e[0] || (e[0] = [
2694
+ return p(), v("svg", i1, e[0] || (e[0] = [
2661
2695
  on('<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)
2662
2696
  ]));
2663
2697
  }
2664
- const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
2698
+ const u1 = /* @__PURE__ */ xe(a1, [["render", r1]]), c1 = {
2665
2699
  "h-full": "",
2666
2700
  "w-full": "",
2667
2701
  flex: "",
@@ -2682,13 +2716,13 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
2682
2716
  }, v1 = { flex: "~ gap2 wrap" }, m1 = /* @__PURE__ */ B({
2683
2717
  __name: "About",
2684
2718
  setup(n) {
2685
- const e = De();
2686
- return (o, t) => (p(), f("div", c1, [
2719
+ const e = Ae();
2720
+ return (o, t) => (p(), v("div", c1, [
2687
2721
  d("div", d1, [
2688
2722
  t[5] || (t[5] = d("div", { "flex-auto": "" }, null, -1)),
2689
2723
  d("div", p1, [
2690
2724
  d("div", f1, [
2691
- x(u1, { "h-18": "" })
2725
+ y(u1, { "h-18": "" })
2692
2726
  ]),
2693
2727
  t[2] || (t[2] = d("div", {
2694
2728
  mb6: "",
@@ -2707,7 +2741,7 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
2707
2741
  "min-w-40": "",
2708
2742
  p4: "",
2709
2743
  "theme-card-lime": "",
2710
- onClick: t[0] || (t[0] = (s) => c(e).push("/store"))
2744
+ onClick: t[0] || (t[0] = (l) => r(e).push("/store"))
2711
2745
  }, t[3] || (t[3] = [
2712
2746
  d("div", {
2713
2747
  "i-carbon-tree-view-alt": "",
@@ -2720,7 +2754,7 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
2720
2754
  "min-w-40": "",
2721
2755
  p4: "",
2722
2756
  "theme-card-lime": "",
2723
- onClick: t[1] || (t[1] = (s) => c(e).push("/timeline"))
2757
+ onClick: t[1] || (t[1] = (l) => r(e).push("/timeline"))
2724
2758
  }, t[4] || (t[4] = [
2725
2759
  d("div", {
2726
2760
  "i-mdi:timeline-clock-outline": "",
@@ -2745,7 +2779,7 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
2745
2779
  transition: ""
2746
2780
  }, [
2747
2781
  d("div", { "i-carbon-star": "" }),
2748
- Y(" Star on GitHub ")
2782
+ X(" Star on GitHub ")
2749
2783
  ]),
2750
2784
  d("a", {
2751
2785
  href: "https://pinia.vuejs.org/",
@@ -2757,7 +2791,7 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
2757
2791
  transition: ""
2758
2792
  }, [
2759
2793
  d("div", { "i-carbon-document": "" }),
2760
- Y(" View Documentation ")
2794
+ X(" View Documentation ")
2761
2795
  ])
2762
2796
  ], -1)),
2763
2797
  t[8] || (t[8] = d("div", { "flex-auto": "" }, null, -1))
@@ -2767,173 +2801,191 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
2767
2801
  }), h1 = { class: "h-full flex flex-col" }, g1 = /* @__PURE__ */ B({
2768
2802
  __name: "Settings",
2769
2803
  setup(n) {
2770
- const e = ve("pluginSettings"), o = V(() => e.value.options), t = V(() => e.value.values);
2771
- function s(l) {
2772
- e.value = l;
2804
+ const e = ve("pluginSettings"), o = E(() => e.value.options), t = E(() => e.value.values);
2805
+ function l(s) {
2806
+ e.value = s;
2773
2807
  }
2774
- return (l, u) => (p(), f("div", h1, [
2775
- x($e, {
2808
+ return (s, c) => (p(), v("div", h1, [
2809
+ y(Se, {
2776
2810
  "doc-link": "https://pinia.vuejs.org/",
2777
2811
  "github-repo-link": "https://github.com/vuejs/pinia"
2778
2812
  }, {
2779
- default: H(() => [
2780
- x(Se)
2813
+ default: L(() => [
2814
+ y(Te)
2781
2815
  ]),
2782
2816
  _: 1
2783
2817
  }),
2784
- x(Gt, {
2818
+ y(Kt, {
2785
2819
  "plugin-id": "dev.esm.pinia",
2786
2820
  options: o.value,
2787
2821
  values: t.value,
2788
- onUpdate: s
2822
+ onUpdate: l
2789
2823
  }, null, 8, ["options", "values"])
2790
2824
  ]));
2791
2825
  }
2792
- }), C1 = { class: "h-full flex flex-col" }, _1 = { class: "h-full flex flex-col p2" }, y1 = {
2793
- key: 0,
2794
- class: "mb-1 flex justify-end pb-1",
2826
+ }), C1 = "dev.esm.pinia", Gt = "pinia", _1 = { class: "h-full flex flex-col" }, y1 = { class: "h-full flex flex-col p2" }, x1 = {
2827
+ class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
2795
2828
  border: "b dashed base"
2796
- }, x1 = { class: "flex items-center gap-2 px-1" }, b1 = ["onClick"], w1 = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, k1 = { class: "h-full flex flex-col p2" }, I1 = {
2829
+ }, b1 = {
2797
2830
  key: 0,
2798
- class: "mb-1 flex justify-end pb-1",
2831
+ class: "flex items-center gap-2 px-1"
2832
+ }, w1 = ["onClick"], k1 = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, I1 = { class: "h-full flex flex-col p2" }, $1 = {
2833
+ class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
2799
2834
  border: "b dashed base"
2800
- }, $1 = { class: "flex items-center gap-2 px-1" }, S1 = ["onClick"], pe = "pinia", T1 = /* @__PURE__ */ B({
2835
+ }, S1 = {
2836
+ key: 0,
2837
+ class: "flex items-center gap-2 px-1"
2838
+ }, T1 = ["onClick"], E1 = /* @__PURE__ */ B({
2801
2839
  __name: "Index",
2802
2840
  setup(n) {
2803
- const { expanded: e } = me(), { expanded: o } = me("pinia-store-state"), t = T([]), s = T([]), l = T(""), u = T([]), i = V(() => {
2804
- var N, M;
2805
- return (N = u.value) != null && N.length ? m((M = u.value) == null ? void 0 : M[0]) : [];
2806
- }), r = V(() => A(u.value)), h = V(() => r.value.map((N) => N.id)), v = T({}), a = V(() => {
2807
- var N, M;
2808
- return !((N = v.value.state) != null && N.length) && !((M = v.value.getters) != null && M.length);
2841
+ const { expanded: e } = me(), { expanded: o } = me("pinia-store-state"), t = Gt, l = I([]), s = I([]), c = ye(), a = I(""), i = I([]), g = E(() => {
2842
+ var b, f;
2843
+ return (b = i.value) != null && b.length ? j((f = i.value) == null ? void 0 : f[0]) : [];
2844
+ }), h = E(() => x(i.value)), u = E(() => h.value.map((b) => b.id)), m = I({}), V = I(""), R = I("");
2845
+ Q(V, (b, f) => {
2846
+ !b.trim().length && !f.trim().length || he(b);
2809
2847
  });
2810
- function m(N, M = [], w = []) {
2811
- var k;
2812
- return M.push(N.id), ((k = N.children) == null ? void 0 : k.length) === 0 && w.push([...M]), Array.isArray(N.children) && N.children.forEach((y) => {
2813
- m(y, M, w);
2814
- }), M.pop(), w;
2815
- }
2816
- function E(N, M) {
2817
- const w = [];
2818
- return N == null || N.forEach((k) => {
2819
- w.push(...k.slice(0, M + 1));
2820
- }), [...new Set(w)];
2821
- }
2822
- function A(N) {
2823
- const M = [], w = (k) => {
2824
- k == null || k.forEach((y) => {
2825
- var R;
2826
- M.push(y), (R = y.children) != null && R.length && w(y.children);
2848
+ const C = E(() => nt({
2849
+ state: m.value,
2850
+ filterKey: R.value
2851
+ })), $ = E(() => {
2852
+ var b, f;
2853
+ return !((b = m.value.state) != null && b.length) && !((f = m.value.getters) != null && f.length);
2854
+ });
2855
+ function j(b, f = [], _ = []) {
2856
+ var S;
2857
+ return f.push(b.id), ((S = b.children) == null ? void 0 : S.length) === 0 && _.push([...f]), Array.isArray(b.children) && b.children.forEach((P) => {
2858
+ j(P, f, _);
2859
+ }), f.pop(), _;
2860
+ }
2861
+ function A(b, f) {
2862
+ const _ = [];
2863
+ return b == null || b.forEach((S) => {
2864
+ _.push(...S.slice(0, f + 1));
2865
+ }), [...new Set(_)];
2866
+ }
2867
+ function x(b) {
2868
+ const f = [], _ = (S) => {
2869
+ S == null || S.forEach((P) => {
2870
+ var Z;
2871
+ f.push(P), (Z = P.children) != null && Z.length && _(P.children);
2827
2872
  });
2828
2873
  };
2829
- return w(N), M;
2874
+ return _(b), f;
2830
2875
  }
2831
- function g() {
2832
- P.value.getInspectorNodeActions(pe).then((N) => {
2833
- t.value = N;
2876
+ function w() {
2877
+ D.value.getInspectorNodeActions(t).then((b) => {
2878
+ l.value = b;
2834
2879
  });
2835
2880
  }
2836
- function $() {
2837
- P.value.getInspectorActions(pe).then((N) => {
2838
- s.value = N;
2881
+ function N() {
2882
+ D.value.getInspectorActions(t).then((b) => {
2883
+ s.value = b;
2839
2884
  });
2840
2885
  }
2841
- g(), $();
2842
- function U(N) {
2843
- P.value.callInspectorNodeAction(pe, N, l.value);
2886
+ w(), N();
2887
+ function M(b) {
2888
+ D.value.callInspectorNodeAction(t, b, a.value);
2844
2889
  }
2845
- function D(N) {
2846
- P.value.callInspectorAction(pe, N);
2890
+ function G(b) {
2891
+ D.value.callInspectorAction(t, b);
2847
2892
  }
2848
- function _(N) {
2849
- var M;
2850
- for (const w in N)
2851
- (M = N[w]) != null && M.length || delete N[w];
2852
- return N;
2893
+ function F(b) {
2894
+ var f;
2895
+ for (const _ in b)
2896
+ (f = b[_]) != null && f.length || delete b[_];
2897
+ return b;
2853
2898
  }
2854
- function C(N) {
2855
- P.value.getInspectorState({ inspectorId: pe, nodeId: N }).then((M) => {
2856
- const w = Q(M);
2857
- w && (v.value = _(w), o.value = Array.from({ length: Object.keys(v.value).length }, (k, y) => `${y}`));
2899
+ function W(b) {
2900
+ D.value.getInspectorState({ inspectorId: t, nodeId: b }).then((f) => {
2901
+ const _ = ee(f);
2902
+ _ && (m.value = F(_), o.value = Array.from({ length: Object.keys(m.value).length }, (S, P) => `${P}`));
2858
2903
  });
2859
2904
  }
2860
- function S() {
2861
- v.value = {};
2905
+ function de() {
2906
+ m.value = {};
2862
2907
  }
2863
- ee(l, () => {
2864
- S(), C(l.value);
2865
- }), (() => {
2866
- P.value.getInspectorTree({ inspectorId: pe, filter: "" }).then((N) => {
2867
- const M = Q(N);
2868
- u.value = M, !l.value && M.length && (l.value = M[0].id, C(M[0].id), e.value = E(i.value, 1));
2908
+ Q(a, () => {
2909
+ de(), W(a.value);
2910
+ });
2911
+ function he(b = "") {
2912
+ D.value.getInspectorTree({ inspectorId: t, filter: b }).then((f) => {
2913
+ const _ = ee(f);
2914
+ i.value = _, !a.value && _.length && (a.value = _[0].id, W(_[0].id), e.value = A(g.value, 1));
2869
2915
  });
2870
- })();
2871
- function K(N) {
2872
- const M = Q(N);
2873
- M.inspectorId !== pe || !M.rootNodes.length || (u.value = M.rootNodes, h.value.includes(l.value) || (l.value = M.rootNodes[0].id, e.value = E(i.value, 1), C(M.rootNodes[0].id)));
2874
- }
2875
- function Z(N) {
2876
- const M = Q(N);
2877
- if (M.inspectorId !== pe)
2916
+ }
2917
+ he();
2918
+ function le(b) {
2919
+ const f = ee(b);
2920
+ f.inspectorId !== t || !f.rootNodes.length || (i.value = f.rootNodes, u.value.includes(a.value) || (a.value = f.rootNodes[0].id, e.value = A(g.value, 1), W(f.rootNodes[0].id)));
2921
+ }
2922
+ function H(b) {
2923
+ const f = ee(b);
2924
+ if (f.inspectorId !== t)
2878
2925
  return;
2879
- const w = M.state;
2880
- v.value = _({
2881
- state: w.state,
2882
- getters: w.getters
2926
+ const _ = f.state;
2927
+ m.value = F({
2928
+ state: _.state,
2929
+ getters: _.getters
2883
2930
  });
2884
2931
  }
2885
- return P.functions.on(J.INSPECTOR_TREE_UPDATED, K), P.functions.on(J.INSPECTOR_STATE_UPDATED, Z), be(() => {
2886
- P.functions.off(J.INSPECTOR_TREE_UPDATED, K), P.functions.off(J.INSPECTOR_STATE_UPDATED, Z);
2887
- }), (N, M) => (p(), f("div", C1, [
2888
- x($e, {
2932
+ return D.functions.on(Y.INSPECTOR_TREE_UPDATED, le), D.functions.on(Y.INSPECTOR_STATE_UPDATED, H), we(() => {
2933
+ D.functions.off(Y.INSPECTOR_TREE_UPDATED, le), D.functions.off(Y.INSPECTOR_STATE_UPDATED, H);
2934
+ }), (b, f) => (p(), v("div", _1, [
2935
+ y(Se, {
2889
2936
  "doc-link": "https://pinia.vuejs.org/",
2890
2937
  "github-repo-link": "https://github.com/vuejs/pinia"
2891
2938
  }, {
2892
- default: H(() => [
2893
- x(Se)
2939
+ default: L(() => [
2940
+ y(Te)
2894
2941
  ]),
2895
2942
  _: 1
2896
2943
  }),
2897
- x(c(Ae), { class: "flex-1 overflow-auto" }, {
2898
- default: H(() => [
2899
- x(c(ue), {
2944
+ y(r(Re), { class: "flex-1 overflow-auto" }, {
2945
+ default: L(() => [
2946
+ y(r(ce), {
2900
2947
  border: "r base",
2901
2948
  size: "40",
2902
2949
  "h-full": ""
2903
2950
  }, {
2904
- default: H(() => {
2905
- var w;
2951
+ default: L(() => {
2952
+ var _;
2906
2953
  return [
2907
- d("div", _1, [
2908
- (w = s.value) != null && w.length ? (p(), f("div", y1, [
2909
- d("div", x1, [
2910
- (p(!0), f(ne, null, ie(s.value, (k, y) => W((p(), f("div", {
2911
- key: y,
2954
+ d("div", y1, [
2955
+ d("div", x1, [
2956
+ y(r(_e), {
2957
+ modelValue: V.value,
2958
+ "onUpdate:modelValue": f[0] || (f[0] = (S) => V.value = S),
2959
+ placeholder: r(c).treeFilterPlaceholder
2960
+ }, null, 8, ["modelValue", "placeholder"]),
2961
+ (_ = s.value) != null && _.length ? (p(), v("div", b1, [
2962
+ (p(!0), v(oe, null, ue(s.value, (S, P) => q((p(), v("div", {
2963
+ key: P,
2912
2964
  class: "flex items-center gap1",
2913
- onClick: (R) => D(y)
2965
+ onClick: (Z) => G(P)
2914
2966
  }, [
2915
2967
  d("i", {
2916
- class: oe(`i-ic-baseline-${k.icon.replace(/\_/g, "-")}`),
2968
+ class: se(`i-ic-baseline-${S.icon.replace(/\_/g, "-")}`),
2917
2969
  "cursor-pointer": "",
2918
2970
  op70: "",
2919
2971
  "text-base": "",
2920
2972
  "hover:op100": ""
2921
2973
  }, null, 2)
2922
- ], 8, b1)), [
2974
+ ], 8, w1)), [
2923
2975
  [
2924
- c(q),
2925
- { content: k.tooltip },
2976
+ r(J),
2977
+ { content: S.tooltip },
2926
2978
  void 0,
2927
2979
  { "bottom-end": !0 }
2928
2980
  ]
2929
2981
  ])), 128))
2930
- ])
2931
- ])) : j("", !0),
2932
- d("div", w1, [
2933
- x(Me, {
2934
- modelValue: l.value,
2935
- "onUpdate:modelValue": M[0] || (M[0] = (k) => l.value = k),
2936
- data: u.value
2982
+ ])) : O("", !0)
2983
+ ]),
2984
+ d("div", k1, [
2985
+ y(Pe, {
2986
+ modelValue: a.value,
2987
+ "onUpdate:modelValue": f[1] || (f[1] = (S) => a.value = S),
2988
+ data: i.value
2937
2989
  }, null, 8, ["modelValue", "data"])
2938
2990
  ])
2939
2991
  ])
@@ -2941,45 +2993,50 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
2941
2993
  }),
2942
2994
  _: 1
2943
2995
  }),
2944
- x(c(ue), { size: "60" }, {
2945
- default: H(() => {
2946
- var w;
2996
+ y(r(ce), { size: "60" }, {
2997
+ default: L(() => {
2998
+ var _;
2947
2999
  return [
2948
- d("div", k1, [
2949
- (w = t.value) != null && w.length ? (p(), f("div", I1, [
2950
- d("div", $1, [
2951
- (p(!0), f(ne, null, ie(t.value, (k, y) => W((p(), f("div", {
2952
- key: y,
3000
+ d("div", I1, [
3001
+ d("div", $1, [
3002
+ y(r(_e), {
3003
+ modelValue: R.value,
3004
+ "onUpdate:modelValue": f[2] || (f[2] = (S) => R.value = S),
3005
+ placeholder: r(c).stateFilterPlaceholder
3006
+ }, null, 8, ["modelValue", "placeholder"]),
3007
+ (_ = l.value) != null && _.length ? (p(), v("div", S1, [
3008
+ (p(!0), v(oe, null, ue(l.value, (S, P) => q((p(), v("div", {
3009
+ key: P,
2953
3010
  class: "flex items-center gap1",
2954
- onClick: (R) => U(y)
3011
+ onClick: (Z) => M(P)
2955
3012
  }, [
2956
3013
  d("i", {
2957
- class: oe(`i-ic-baseline-${k.icon.replace(/\_/g, "-")}`),
3014
+ class: se(`i-ic-baseline-${S.icon.replace(/\_/g, "-")}`),
2958
3015
  "cursor-pointer": "",
2959
3016
  op70: "",
2960
3017
  "text-base": "",
2961
3018
  "hover:op100": ""
2962
3019
  }, null, 2)
2963
- ], 8, S1)), [
3020
+ ], 8, T1)), [
2964
3021
  [
2965
- c(q),
2966
- { content: k.tooltip },
3022
+ r(J),
3023
+ { content: S.tooltip },
2967
3024
  void 0,
2968
3025
  { "bottom-end": !0 }
2969
3026
  ]
2970
3027
  ])), 128))
2971
- ])
2972
- ])) : j("", !0),
2973
- l.value && !a.value ? (p(), z(Pe, {
2974
- key: 1,
3028
+ ])) : O("", !0)
3029
+ ]),
3030
+ a.value && !$.value ? (p(), z(De, {
3031
+ key: 0,
2975
3032
  class: "no-scrollbar flex-1 select-none overflow-scroll",
2976
- data: v.value,
2977
- "node-id": l.value,
2978
- "inspector-id": pe,
3033
+ data: C.value,
3034
+ "node-id": a.value,
3035
+ "inspector-id": r(t),
2979
3036
  "expanded-state-id": "pinia-store-state"
2980
- }, null, 8, ["data", "node-id"])) : (p(), z(Ne, { key: 2 }, {
2981
- default: H(() => M[1] || (M[1] = [
2982
- Y(" No Data ")
3037
+ }, null, 8, ["data", "node-id", "inspector-id"])) : (p(), z(Ie, { key: 1 }, {
3038
+ default: L(() => f[3] || (f[3] = [
3039
+ X(" No Data ")
2983
3040
  ])),
2984
3041
  _: 1
2985
3042
  }))
@@ -2993,36 +3050,36 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
2993
3050
  })
2994
3051
  ]));
2995
3052
  }
2996
- }), E1 = "dev.esm.pinia", V1 = /* @__PURE__ */ B({
3053
+ }), V1 = "dev.esm.pinia", N1 = /* @__PURE__ */ B({
2997
3054
  __name: "Index",
2998
3055
  setup(n) {
2999
3056
  const e = ["pinia:mutations"];
3000
- return (o, t) => (p(), z(pt, {
3057
+ return (o, t) => (p(), z(dt, {
3001
3058
  "layer-ids": e,
3002
3059
  "doc-link": "https://pinia.vuejs.org/",
3003
- "plugin-id": E1,
3060
+ "plugin-id": V1,
3004
3061
  "github-repo-link": "https://github.com/vuejs/pinia"
3005
3062
  }));
3006
3063
  }
3007
- }), N1 = {
3064
+ }), R1 = {
3008
3065
  "h-full": "",
3009
3066
  "w-full": ""
3010
- }, is = /* @__PURE__ */ B({
3067
+ }, rs = /* @__PURE__ */ B({
3011
3068
  __name: "index",
3012
3069
  setup(n) {
3013
- const e = T(null);
3014
- ge("pluginSettings", e);
3015
- const o = V(() => [
3070
+ const e = I(null);
3071
+ Ce("pluginSettings", e);
3072
+ const o = E(() => [
3016
3073
  {
3017
3074
  path: "/store",
3018
3075
  name: "Store",
3019
- component: T1,
3076
+ component: E1,
3020
3077
  icon: "i-carbon-tree-view-alt"
3021
3078
  },
3022
3079
  {
3023
3080
  path: "/timeline",
3024
3081
  name: "Timeline",
3025
- component: V1,
3082
+ component: N1,
3026
3083
  icon: "i-mdi:timeline-clock-outline"
3027
3084
  },
3028
3085
  {
@@ -3037,24 +3094,29 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
3037
3094
  component: g1,
3038
3095
  icon: "i-mdi:cog-outline"
3039
3096
  }
3040
- ].filter(Boolean)), { VirtualRouterView: t, restoreRouter: s } = st(o, {
3097
+ ].filter(Boolean)), { VirtualRouterView: t, restoreRouter: l } = lt(o, {
3041
3098
  defaultRoutePath: "/store"
3042
- });
3043
- return Re(() => {
3044
- P.value.getPluginSettings("dev.esm.pinia").then((u) => {
3045
- u.options ? e.value = u : e.value = null;
3099
+ }), s = pt();
3100
+ return Ne(() => {
3101
+ D.value.getPluginSettings(C1).then((c) => {
3102
+ c.options ? e.value = c : e.value = null;
3103
+ }), D.value.getInspectorInfo(Gt).then((c) => {
3104
+ c && (s.value = {
3105
+ stateFilterPlaceholder: c.stateFilterPlaceholder,
3106
+ treeFilterPlaceholder: c.treeFilterPlaceholder
3107
+ });
3046
3108
  });
3047
- }), (l, u) => (p(), f("div", N1, [
3048
- x(c(t))
3109
+ }), (c, a) => (p(), v("div", R1, [
3110
+ y(r(t))
3049
3111
  ]));
3050
3112
  }
3051
- }), R1 = {}, A1 = {
3113
+ }), A1 = {}, D1 = {
3052
3114
  viewBox: "0 0 566 154",
3053
3115
  fill: "none",
3054
3116
  xmlns: "http://www.w3.org/2000/svg"
3055
3117
  };
3056
- function D1(n, e) {
3057
- return p(), f("svg", A1, e[0] || (e[0] = [
3118
+ function P1(n, e) {
3119
+ return p(), v("svg", D1, e[0] || (e[0] = [
3058
3120
  d("svg", {
3059
3121
  xmlns: "http://www.w3.org/2000/svg",
3060
3122
  width: "8em",
@@ -3072,16 +3134,16 @@ function D1(n, e) {
3072
3134
  }, null, -1)
3073
3135
  ]));
3074
3136
  }
3075
- const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
3137
+ const M1 = /* @__PURE__ */ xe(A1, [["render", P1]]), L1 = {
3076
3138
  "h-full": "",
3077
3139
  "w-full": "",
3078
3140
  flex: "",
3079
3141
  "items-center": ""
3080
- }, L1 = {
3142
+ }, H1 = {
3081
3143
  flex: "~ col gap2",
3082
3144
  ma: "",
3083
3145
  "px-5": ""
3084
- }, H1 = {
3146
+ }, U1 = {
3085
3147
  flex: "~ col",
3086
3148
  "mt-20": "",
3087
3149
  "items-center": ""
@@ -3090,16 +3152,16 @@ const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
3090
3152
  "mt--10": "",
3091
3153
  "items-center": "",
3092
3154
  "justify-center": ""
3093
- }, j1 = { flex: "~ gap2 wrap" }, U1 = /* @__PURE__ */ B({
3155
+ }, j1 = { flex: "~ gap2 wrap" }, z1 = /* @__PURE__ */ B({
3094
3156
  __name: "About",
3095
3157
  setup(n) {
3096
- const e = De();
3097
- return (o, t) => (p(), f("div", M1, [
3098
- d("div", L1, [
3158
+ const e = Ae();
3159
+ return (o, t) => (p(), v("div", L1, [
3160
+ d("div", H1, [
3099
3161
  t[5] || (t[5] = d("div", { "flex-auto": "" }, null, -1)),
3100
- d("div", H1, [
3162
+ d("div", U1, [
3101
3163
  d("div", O1, [
3102
- x(P1, { "h-18": "" })
3164
+ y(M1, { "h-18": "" })
3103
3165
  ]),
3104
3166
  t[2] || (t[2] = d("div", {
3105
3167
  mb6: "",
@@ -3118,7 +3180,7 @@ const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
3118
3180
  "min-w-40": "",
3119
3181
  p4: "",
3120
3182
  "theme-card-lime": "",
3121
- onClick: t[0] || (t[0] = (s) => c(e).push("/routes"))
3183
+ onClick: t[0] || (t[0] = (l) => r(e).push("/routes"))
3122
3184
  }, t[3] || (t[3] = [
3123
3185
  d("div", {
3124
3186
  "i-carbon-tree-view-alt": "",
@@ -3131,7 +3193,7 @@ const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
3131
3193
  "min-w-40": "",
3132
3194
  p4: "",
3133
3195
  "theme-card-lime": "",
3134
- onClick: t[1] || (t[1] = (s) => c(e).push("/timeline"))
3196
+ onClick: t[1] || (t[1] = (l) => r(e).push("/timeline"))
3135
3197
  }, t[4] || (t[4] = [
3136
3198
  d("div", {
3137
3199
  "i-mdi:timeline-clock-outline": "",
@@ -3156,7 +3218,7 @@ const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
3156
3218
  transition: ""
3157
3219
  }, [
3158
3220
  d("div", { "i-carbon-star": "" }),
3159
- Y(" Star on GitHub ")
3221
+ X(" Star on GitHub ")
3160
3222
  ]),
3161
3223
  d("a", {
3162
3224
  href: "https://router.vuejs.org/",
@@ -3168,14 +3230,14 @@ const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
3168
3230
  transition: ""
3169
3231
  }, [
3170
3232
  d("div", { "i-carbon-document": "" }),
3171
- Y(" View Documentation ")
3233
+ X(" View Documentation ")
3172
3234
  ])
3173
3235
  ], -1)),
3174
3236
  t[8] || (t[8] = d("div", { "flex-auto": "" }, null, -1))
3175
3237
  ])
3176
3238
  ]));
3177
3239
  }
3178
- }), z1 = { class: "h-full flex flex-col" }, B1 = {
3240
+ }), B1 = { class: "h-full flex flex-col" }, F1 = {
3179
3241
  "h-full": "",
3180
3242
  "select-none": "",
3181
3243
  "overflow-scroll": "",
@@ -3186,113 +3248,113 @@ const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
3186
3248
  "select-none": "",
3187
3249
  "overflow-scroll": "",
3188
3250
  class: "no-scrollbar"
3189
- }, F1 = /* @__PURE__ */ B({
3251
+ }, K1 = /* @__PURE__ */ B({
3190
3252
  __name: "Index",
3191
3253
  setup(n) {
3192
- const { expanded: e } = me(), { expanded: o } = me("routes-state"), t = Te(), s = V(() => t.value.id), l = T(""), u = T([]), i = V(() => {
3193
- var C, S;
3194
- return (C = u.value) != null && C.length ? a((S = u.value) == null ? void 0 : S[0]) : [];
3195
- }), r = V(() => E(u.value)), h = V(() => r.value.map((C) => C.id)), v = T({});
3196
- function a(C, S = [], L = []) {
3197
- var K;
3198
- return S.push(C.id), ((K = C.children) == null ? void 0 : K.length) === 0 && L.push([...S]), Array.isArray(C.children) && C.children.forEach((Z) => {
3199
- a(Z, S, L);
3200
- }), S.pop(), L;
3201
- }
3202
- function m(C, S) {
3203
- const L = [];
3204
- return C == null || C.forEach((K) => {
3205
- L.push(...K.slice(0, S + 1));
3206
- }), [...new Set(L)];
3207
- }
3208
- function E(C) {
3209
- const S = [], L = (K) => {
3210
- K == null || K.forEach((Z) => {
3211
- var N;
3212
- S.push(Z), (N = Z.children) != null && N.length && L(Z.children);
3254
+ const { expanded: e } = me(), { expanded: o } = me("routes-state"), t = ye(), l = E(() => t.value.id), s = I(""), c = I([]), a = E(() => {
3255
+ var w, N;
3256
+ return (w = c.value) != null && w.length ? u((N = c.value) == null ? void 0 : N[0]) : [];
3257
+ }), i = E(() => V(c.value)), g = E(() => i.value.map((w) => w.id)), h = I({});
3258
+ function u(w, N = [], M = []) {
3259
+ var G;
3260
+ return N.push(w.id), ((G = w.children) == null ? void 0 : G.length) === 0 && M.push([...N]), Array.isArray(w.children) && w.children.forEach((F) => {
3261
+ u(F, N, M);
3262
+ }), N.pop(), M;
3263
+ }
3264
+ function m(w, N) {
3265
+ const M = [];
3266
+ return w == null || w.forEach((G) => {
3267
+ M.push(...G.slice(0, N + 1));
3268
+ }), [...new Set(M)];
3269
+ }
3270
+ function V(w) {
3271
+ const N = [], M = (G) => {
3272
+ G == null || G.forEach((F) => {
3273
+ var W;
3274
+ N.push(F), (W = F.children) != null && W.length && M(F.children);
3213
3275
  });
3214
3276
  };
3215
- return L(C), S;
3277
+ return M(w), N;
3216
3278
  }
3217
- function A(C) {
3218
- var S;
3219
- for (const L in C)
3220
- (S = C[L]) != null && S.length || delete C[L];
3221
- return C;
3222
- }
3223
- function g(C) {
3224
- P.value.getInspectorState({ inspectorId: s.value, nodeId: C }).then((S) => {
3225
- const L = Q(S);
3226
- L && (v.value = A(L), o.value = Array.from({ length: Object.keys(v.value).length }, (K, Z) => `${Z}`));
3279
+ function R(w) {
3280
+ var N;
3281
+ for (const M in w)
3282
+ (N = w[M]) != null && N.length || delete w[M];
3283
+ return w;
3284
+ }
3285
+ function C(w) {
3286
+ D.value.getInspectorState({ inspectorId: l.value, nodeId: w }).then((N) => {
3287
+ const M = ee(N);
3288
+ M && (h.value = R(M), o.value = Array.from({ length: Object.keys(h.value).length }, (G, F) => `${F}`));
3227
3289
  });
3228
3290
  }
3229
3291
  function $() {
3230
- v.value = {};
3292
+ h.value = {};
3231
3293
  }
3232
- ee(l, () => {
3233
- $(), g(l.value);
3294
+ Q(s, () => {
3295
+ $(), C(s.value);
3234
3296
  });
3235
- const U = () => {
3236
- P.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((C) => {
3237
- const S = Q(C);
3238
- u.value = S, !l.value && S.length && (l.value = S[0].id, g(S[0].id), e.value = m(i.value, 1));
3297
+ const j = () => {
3298
+ D.value.getInspectorTree({ inspectorId: l.value, filter: "" }).then((w) => {
3299
+ const N = ee(w);
3300
+ c.value = N, !s.value && N.length && (s.value = N[0].id, C(N[0].id), e.value = m(a.value, 1));
3239
3301
  });
3240
3302
  };
3241
- jt(s).toBeTruthy().then(U);
3242
- function D(C) {
3243
- const S = Q(C);
3244
- S.inspectorId !== s.value || !S.rootNodes.length || (u.value = S.rootNodes, h.value.includes(l.value) || (l.value = S.rootNodes[0].id, e.value = m(i.value, 1), g(S.rootNodes[0].id)));
3245
- }
3246
- function _(C) {
3247
- const S = Q(C);
3248
- if (S.inspectorId !== s.value)
3303
+ jt(l).toBeTruthy().then(j);
3304
+ function A(w) {
3305
+ const N = ee(w);
3306
+ N.inspectorId !== l.value || !N.rootNodes.length || (c.value = N.rootNodes, g.value.includes(s.value) || (s.value = N.rootNodes[0].id, e.value = m(a.value, 1), C(N.rootNodes[0].id)));
3307
+ }
3308
+ function x(w) {
3309
+ const N = ee(w);
3310
+ if (N.inspectorId !== l.value)
3249
3311
  return;
3250
- const L = S.state;
3251
- v.value = A(L);
3312
+ const M = N.state;
3313
+ h.value = R(M);
3252
3314
  }
3253
- return P.functions.on(J.INSPECTOR_TREE_UPDATED, D), P.functions.on(J.INSPECTOR_STATE_UPDATED, _), be(() => {
3254
- P.functions.off(J.INSPECTOR_TREE_UPDATED, D), P.functions.off(J.INSPECTOR_STATE_UPDATED, _);
3255
- }), (C, S) => (p(), f("div", z1, [
3256
- x($e, {
3315
+ return D.functions.on(Y.INSPECTOR_TREE_UPDATED, A), D.functions.on(Y.INSPECTOR_STATE_UPDATED, x), we(() => {
3316
+ D.functions.off(Y.INSPECTOR_TREE_UPDATED, A), D.functions.off(Y.INSPECTOR_STATE_UPDATED, x);
3317
+ }), (w, N) => (p(), v("div", B1, [
3318
+ y(Se, {
3257
3319
  "doc-link": "https://router.vuejs.org/",
3258
3320
  "github-repo-link": "https://github.com/vuejs/router"
3259
3321
  }, {
3260
- default: H(() => [
3261
- x(Se)
3322
+ default: L(() => [
3323
+ y(Te)
3262
3324
  ]),
3263
3325
  _: 1
3264
3326
  }),
3265
- x(c(Ae), { class: "flex-1 overflow-auto" }, {
3266
- default: H(() => [
3267
- x(c(ue), {
3327
+ y(r(Re), { class: "flex-1 overflow-auto" }, {
3328
+ default: L(() => [
3329
+ y(r(ce), {
3268
3330
  border: "r base",
3269
3331
  size: "40",
3270
3332
  "h-full": ""
3271
3333
  }, {
3272
- default: H(() => [
3273
- d("div", B1, [
3274
- x(Me, {
3275
- modelValue: l.value,
3276
- "onUpdate:modelValue": S[0] || (S[0] = (L) => l.value = L),
3277
- data: u.value
3334
+ default: L(() => [
3335
+ d("div", F1, [
3336
+ y(Pe, {
3337
+ modelValue: s.value,
3338
+ "onUpdate:modelValue": N[0] || (N[0] = (M) => s.value = M),
3339
+ data: c.value
3278
3340
  }, null, 8, ["modelValue", "data"])
3279
3341
  ])
3280
3342
  ]),
3281
3343
  _: 1
3282
3344
  }),
3283
- x(c(ue), { size: "60" }, {
3284
- default: H(() => [
3345
+ y(r(ce), { size: "60" }, {
3346
+ default: L(() => [
3285
3347
  d("div", Z1, [
3286
- l.value ? (p(), z(Pe, {
3348
+ s.value ? (p(), z(De, {
3287
3349
  key: 0,
3288
3350
  class: "p3",
3289
- data: v.value,
3351
+ data: h.value,
3290
3352
  "node-id": "",
3291
3353
  "inspector-id": "router",
3292
3354
  "expanded-state-id": "routes-state"
3293
- }, null, 8, ["data"])) : (p(), z(Ne, { key: 1 }, {
3294
- default: H(() => S[1] || (S[1] = [
3295
- Y(" No Data ")
3355
+ }, null, 8, ["data"])) : (p(), z(Ie, { key: 1 }, {
3356
+ default: L(() => N[1] || (N[1] = [
3357
+ X(" No Data ")
3296
3358
  ])),
3297
3359
  _: 1
3298
3360
  }))
@@ -3305,77 +3367,77 @@ const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
3305
3367
  })
3306
3368
  ]));
3307
3369
  }
3308
- }), G1 = "org.vuejs.router", K1 = /* @__PURE__ */ B({
3370
+ }), G1 = "org.vuejs.router", W1 = /* @__PURE__ */ B({
3309
3371
  __name: "Index",
3310
3372
  setup(n) {
3311
- const e = Te();
3312
- return (o, t) => (p(), z(pt, {
3313
- "layer-ids": c(e).timelineLayerIds,
3373
+ const e = ye();
3374
+ return (o, t) => (p(), z(dt, {
3375
+ "layer-ids": r(e).timelineLayerIds,
3314
3376
  "doc-link": "https://router.vuejs.org/",
3315
3377
  "plugin-id": G1,
3316
3378
  "github-repo-link": "https://github.com/vuejs/router"
3317
3379
  }, null, 8, ["layer-ids"]));
3318
3380
  }
3319
- }), W1 = {
3381
+ }), q1 = {
3320
3382
  "h-full": "",
3321
3383
  "w-full": ""
3322
- }, rs = /* @__PURE__ */ B({
3384
+ }, us = /* @__PURE__ */ B({
3323
3385
  __name: "index",
3324
3386
  props: {
3325
3387
  id: {}
3326
3388
  },
3327
3389
  setup(n) {
3328
- const e = n, o = Ft(), t = T(!1), { VirtualRouterView: s, restoreRouter: l } = st([
3390
+ const e = n, o = pt(), t = I(!1), { VirtualRouterView: l, restoreRouter: s } = lt([
3329
3391
  {
3330
3392
  path: "/routes",
3331
3393
  name: "Routes",
3332
- component: F1,
3394
+ component: K1,
3333
3395
  icon: "i-carbon-tree-view-alt"
3334
3396
  },
3335
3397
  {
3336
3398
  path: "/timeline",
3337
3399
  name: "Timeline",
3338
- component: K1,
3400
+ component: W1,
3339
3401
  icon: "i-mdi:timeline-clock-outline"
3340
3402
  },
3341
3403
  {
3342
3404
  path: "/about",
3343
3405
  name: "About",
3344
- component: U1,
3406
+ component: z1,
3345
3407
  icon: "i-ri-route-line"
3346
3408
  }
3347
3409
  ], {
3348
3410
  defaultRoutePath: "/routes"
3349
3411
  });
3350
- function u() {
3351
- t.value = !0, Re(() => {
3352
- P.value.getInspectorInfo(e.id).then((i) => {
3353
- if (!i)
3412
+ function c() {
3413
+ t.value = !0, Ne(() => {
3414
+ D.value.getInspectorInfo(e.id).then((a) => {
3415
+ if (!a)
3354
3416
  return;
3355
- const r = {
3356
- homepage: i == null ? void 0 : i.homepage,
3357
- id: i == null ? void 0 : i.id,
3358
- label: i == null ? void 0 : i.label,
3359
- logo: i == null ? void 0 : i.logo,
3360
- timelineLayerIds: i == null ? void 0 : i.timelineLayers.map((h) => h.id)
3417
+ const i = {
3418
+ homepage: a == null ? void 0 : a.homepage,
3419
+ id: a == null ? void 0 : a.id,
3420
+ label: a == null ? void 0 : a.label,
3421
+ logo: a == null ? void 0 : a.logo,
3422
+ timelineLayerIds: a == null ? void 0 : a.timelineLayers.map((g) => g.id)
3361
3423
  };
3362
- o.value = r, l(), t.value = !1;
3424
+ o.value = i, s(), t.value = !1;
3363
3425
  });
3364
3426
  });
3365
3427
  }
3366
- return ee(() => e.id, (i) => {
3367
- i && u();
3368
- }), (i, r) => (p(), f("div", W1, [
3369
- x(c(s))
3428
+ return Q(() => e.id, (a) => {
3429
+ a && c();
3430
+ }), (a, i) => (p(), v("div", q1, [
3431
+ y(r(l))
3370
3432
  ]));
3371
3433
  }
3372
3434
  });
3373
3435
  export {
3374
- ss as Components,
3375
- as as CustomInspector,
3376
- is as Pinia,
3377
- rs as Router,
3436
+ as as Components,
3437
+ is as CustomInspector,
3438
+ rs as Pinia,
3439
+ us as Router,
3378
3440
  Sn as SelectiveList,
3379
- pt as Timeline,
3380
- ls as useCustomInspector
3441
+ dt as Timeline,
3442
+ ss as useCustomInspector
3381
3443
  };