app-devtools 0.30.0 → 0.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.js +107 -104
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -16,7 +16,7 @@ const q = 1, we = 2, Ct = {
16
16
  owner: null
17
17
  };
18
18
  var P = null;
19
- let J = null, N = null, E = null, X = null, Ke = 0;
19
+ let J = null, N = null, E = null, X = null, Je = 0;
20
20
  function re(e, t) {
21
21
  const n = N, r = P, l = e.length === 0, o = l ? Ct : {
22
22
  owned: null,
@@ -71,7 +71,7 @@ function St() {
71
71
  return N;
72
72
  }
73
73
  function tn(e) {
74
- const t = m(e), n = m(() => De(t()));
74
+ const t = m(e), n = m(() => ze(t()));
75
75
  return n.toArray = () => {
76
76
  const r = n();
77
77
  return Array.isArray(r) ? r : r != null ? [r] : [];
@@ -107,7 +107,7 @@ function Ae(e) {
107
107
  if (!e.fn)
108
108
  return;
109
109
  Te(e);
110
- const t = P, n = N, r = Ke;
110
+ const t = P, n = N, r = Je;
111
111
  N = P = e, nn(e, e.value, r), N = n, P = t;
112
112
  }
113
113
  function nn(e, t, n) {
@@ -144,7 +144,7 @@ function Tt(e) {
144
144
  if (e.suspense && W(e.suspense.inFallback))
145
145
  return e.suspense.effects.push(e);
146
146
  const n = [e];
147
- for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Ke); )
147
+ for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Je); )
148
148
  (e.state || t) && n.push(e);
149
149
  for (let r = n.length - 1; r >= 0; r--)
150
150
  if (e = n[r], e.state === q || t)
@@ -158,7 +158,7 @@ function ue(e, t) {
158
158
  if (E)
159
159
  return e();
160
160
  let n = !1;
161
- t || (E = []), X ? n = !0 : X = [], Ke++;
161
+ t || (E = []), X ? n = !0 : X = [], Je++;
162
162
  try {
163
163
  const r = e();
164
164
  return rn(n), r;
@@ -219,20 +219,20 @@ function ln(e) {
219
219
  function Ot(e) {
220
220
  throw e = ln(e), e;
221
221
  }
222
- function De(e) {
222
+ function ze(e) {
223
223
  if (typeof e == "function" && !e.length)
224
- return De(e());
224
+ return ze(e());
225
225
  if (Array.isArray(e)) {
226
226
  const t = [];
227
227
  for (let n = 0; n < e.length; n++) {
228
- const r = De(e[n]);
228
+ const r = ze(e[n]);
229
229
  Array.isArray(r) ? t.push.apply(t, r) : t.push(r);
230
230
  }
231
231
  return t;
232
232
  }
233
233
  return e;
234
234
  }
235
- const ze = Symbol("fallback");
235
+ const Re = Symbol("fallback");
236
236
  function Ce(e) {
237
237
  for (let t = 0; t < e.length; t++)
238
238
  e[t]();
@@ -244,7 +244,7 @@ function on(e, t, n = {}) {
244
244
  return a[ve], W(() => {
245
245
  let d = a.length, g, v, b, w, k, x, A, T, L;
246
246
  if (d === 0)
247
- s !== 0 && (Ce(o), o = [], r = [], l = [], s = 0, i && (i = [])), n.fallback && (r = [ze], l[0] = re((H) => (o[0] = H, n.fallback())), s = 1);
247
+ s !== 0 && (Ce(o), o = [], r = [], l = [], s = 0, i && (i = [])), n.fallback && (r = [Re], l[0] = re((H) => (o[0] = H, n.fallback())), s = 1);
248
248
  else if (s === 0) {
249
249
  for (l = new Array(d), u = 0; u < d; u++)
250
250
  r[u] = a[u], l[u] = re(p);
@@ -279,8 +279,8 @@ function sn(e, t, n = {}) {
279
279
  const c = e() || [];
280
280
  return c[ve], W(() => {
281
281
  if (c.length === 0)
282
- return i !== 0 && (Ce(o), o = [], r = [], l = [], i = 0, s = []), n.fallback && (r = [ze], l[0] = re((p) => (o[0] = p, n.fallback())), i = 1), l;
283
- for (r[0] === ze && (o[0](), o = [], r = [], l = [], i = 0), a = 0; a < c.length; a++)
282
+ return i !== 0 && (Ce(o), o = [], r = [], l = [], i = 0, s = []), n.fallback && (r = [Re], l[0] = re((p) => (o[0] = p, n.fallback())), i = 1), l;
283
+ for (r[0] === Re && (o[0](), o = [], r = [], l = [], i = 0), a = 0; a < c.length; a++)
284
284
  a < r.length && r[a] !== c[a] ? s[a](() => c[a]) : a >= r.length && (l[a] = re(u));
285
285
  for (; a < r.length; a++)
286
286
  o[a]();
@@ -426,7 +426,7 @@ function de(e) {
426
426
  const fn = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], pn = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...fn]), hn = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), gn = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
427
427
  className: "class",
428
428
  htmlFor: "for"
429
- }), Ye = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
429
+ }), Ge = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
430
430
  class: "className",
431
431
  formnovalidate: "formNoValidate",
432
432
  ismap: "isMap",
@@ -482,7 +482,7 @@ function $n(e, t, n) {
482
482
  }
483
483
  }
484
484
  }
485
- const Ge = "_$DX_DELEGATE";
485
+ const Qe = "_$DX_DELEGATE";
486
486
  function vn(e, t, n, r = {}) {
487
487
  let l;
488
488
  return re((o) => {
@@ -498,7 +498,7 @@ function $(e, t, n) {
498
498
  return n && (l = l.firstChild), l;
499
499
  }
500
500
  function Pe(e, t = window.document) {
501
- const n = t[Ge] || (t[Ge] = /* @__PURE__ */ new Set());
501
+ const n = t[Qe] || (t[Qe] = /* @__PURE__ */ new Set());
502
502
  for (let r = 0, l = e.length; r < l; r++) {
503
503
  const o = e[r];
504
504
  n.has(o) || (n.add(o), t.addEventListener(o, Sn));
@@ -527,11 +527,11 @@ function wn(e, t, n = {}) {
527
527
  let o, s;
528
528
  for (o = 0, s = l.length; o < s; o++) {
529
529
  const i = l[o];
530
- !i || i === "undefined" || t[i] || (Qe(e, i, !1), delete n[i]);
530
+ !i || i === "undefined" || t[i] || (qe(e, i, !1), delete n[i]);
531
531
  }
532
532
  for (o = 0, s = r.length; o < s; o++) {
533
533
  const i = r[o], a = !!t[i];
534
- !i || i === "undefined" || n[i] === a || !a || (Qe(e, i, !0), n[i] = a);
534
+ !i || i === "undefined" || n[i] === a || !a || (qe(e, i, !0), n[i] = a);
535
535
  }
536
536
  return n;
537
537
  }
@@ -564,7 +564,7 @@ function Cn(e, t, n, r, l = {}, o = !1) {
564
564
  if (!(s in t)) {
565
565
  if (s === "children")
566
566
  continue;
567
- l[s] = qe(e, s, null, l[s], n, o);
567
+ l[s] = et(e, s, null, l[s], n, o);
568
568
  }
569
569
  for (const s in t) {
570
570
  if (s === "children") {
@@ -572,18 +572,18 @@ function Cn(e, t, n, r, l = {}, o = !1) {
572
572
  continue;
573
573
  }
574
574
  const i = t[s];
575
- l[s] = qe(e, s, i, l[s], n, o);
575
+ l[s] = et(e, s, i, l[s], n, o);
576
576
  }
577
577
  }
578
578
  function _n(e) {
579
579
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
580
580
  }
581
- function Qe(e, t, n) {
581
+ function qe(e, t, n) {
582
582
  const r = t.trim().split(/\s+/);
583
583
  for (let l = 0, o = r.length; l < o; l++)
584
584
  e.classList.toggle(r[l], n);
585
585
  }
586
- function qe(e, t, n, r, l, o) {
586
+ function et(e, t, n, r, l, o) {
587
587
  let s, i, a;
588
588
  if (t === "style")
589
589
  return Lt(e, n, r);
@@ -606,8 +606,8 @@ function qe(e, t, n, r, l, o) {
606
606
  e.removeEventListener(c, p);
607
607
  }
608
608
  (u || n) && (_e(e, c, n, u), u && Pe([c]));
609
- } else if ((a = hn.has(t)) || !l && (Ye[t] || (i = pn.has(t))) || (s = e.nodeName.includes("-")))
610
- t === "class" || t === "className" ? C(e, n) : s && !i && !a ? e[_n(t)] = n : e[Ye[t] || t] = n;
609
+ } else if ((a = hn.has(t)) || !l && (Ge[t] || (i = pn.has(t))) || (s = e.nodeName.includes("-")))
610
+ t === "class" || t === "className" ? C(e, n) : s && !i && !a ? e[_n(t)] = n : e[Ge[t] || t] = n;
611
611
  else {
612
612
  const c = l && t.indexOf(":") > -1 && yn[t.split(":")[0]];
613
613
  c ? bn(e, c, t, n) : j(e, gn[t] || t, n);
@@ -669,7 +669,7 @@ function ie(e, t, n, r, l) {
669
669
  }), () => n;
670
670
  if (Array.isArray(t)) {
671
671
  const i = [], a = n && Array.isArray(n);
672
- if (Re(i, t, n, l))
672
+ if (Fe(i, t, n, l))
673
673
  return _(() => n = ie(e, i, n, r, !0)), () => n;
674
674
  if (U.context) {
675
675
  if (!i.length)
@@ -682,7 +682,7 @@ function ie(e, t, n, r, l) {
682
682
  if (n = ee(e, n, r), s)
683
683
  return n;
684
684
  } else
685
- a ? n.length === 0 ? et(e, i, r) : $n(e, n, i) : (n && ee(e), et(e, i));
685
+ a ? n.length === 0 ? tt(e, i, r) : $n(e, n, i) : (n && ee(e), tt(e, i));
686
686
  n = i;
687
687
  } else if (t instanceof Node) {
688
688
  if (U.context && t.parentNode)
@@ -698,7 +698,7 @@ function ie(e, t, n, r, l) {
698
698
  }
699
699
  return n;
700
700
  }
701
- function Re(e, t, n, r) {
701
+ function Fe(e, t, n, r) {
702
702
  let l = !1;
703
703
  for (let o = 0, s = t.length; o < s; o++) {
704
704
  let i = t[o], a = n && n[o];
@@ -706,12 +706,12 @@ function Re(e, t, n, r) {
706
706
  e.push(i);
707
707
  else if (!(i == null || i === !0 || i === !1))
708
708
  if (Array.isArray(i))
709
- l = Re(e, i, a) || l;
709
+ l = Fe(e, i, a) || l;
710
710
  else if (typeof i == "function")
711
711
  if (r) {
712
712
  for (; typeof i == "function"; )
713
713
  i = i();
714
- l = Re(e, Array.isArray(i) ? i : [i], Array.isArray(a) ? a : [a]) || l;
714
+ l = Fe(e, Array.isArray(i) ? i : [i], Array.isArray(a) ? a : [a]) || l;
715
715
  } else
716
716
  e.push(i), l = !0;
717
717
  else {
@@ -721,7 +721,7 @@ function Re(e, t, n, r) {
721
721
  }
722
722
  return l;
723
723
  }
724
- function et(e, t, n = null) {
724
+ function tt(e, t, n = null) {
725
725
  for (let r = 0, l = t.length; r < l; r++)
726
726
  e.insertBefore(t[r], n);
727
727
  }
@@ -743,12 +743,12 @@ function ee(e, t, n, r) {
743
743
  e.insertBefore(l, n);
744
744
  return [l];
745
745
  }
746
- var kn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Fe = {}, Nn = {
746
+ var kn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Be = {}, Nn = {
747
747
  get exports() {
748
- return Fe;
748
+ return Be;
749
749
  },
750
750
  set exports(e) {
751
- Fe = e;
751
+ Be = e;
752
752
  }
753
753
  };
754
754
  (function(e, t) {
@@ -793,7 +793,7 @@ var kn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
793
793
  };
794
794
  });
795
795
  })(Nn);
796
- const An = Fe, Tn = /* @__PURE__ */ $("<button></button>"), F = (e) => (() => {
796
+ const An = Be, Tn = /* @__PURE__ */ $("<button></button>"), F = (e) => (() => {
797
797
  const t = Tn.cloneNode(!0);
798
798
  return xn(t, cn(e, {
799
799
  onMouseDown: Pn
@@ -838,7 +838,7 @@ const En = `<svg
838
838
  function Dn(e) {
839
839
  return Mn[`/src/assets/icons/${e}.svg`];
840
840
  }
841
- const Je = `
841
+ const Xe = `
842
842
  position: absolute;
843
843
  width: 100%;
844
844
  height: 100%;
@@ -848,7 +848,7 @@ const Je = `
848
848
  function zn(e, t = "px") {
849
849
  return typeof e == "string" ? String(e) : Array.isArray(e) ? e.map((n) => `${n}${t}`).join(" ") : `${e}${t}`;
850
850
  }
851
- let Rn = { data: "" }, Fn = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || Rn, Bn = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Hn = /\/\*[^]*?\*\/| +/g, tt = /\n+/g, K = (e, t) => {
851
+ let Rn = { data: "" }, Fn = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || Rn, Bn = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Hn = /\/\*[^]*?\*\/| +/g, nt = /\n+/g, K = (e, t) => {
852
852
  let n = "", r = "", l = "";
853
853
  for (let o in e) {
854
854
  let s = e[o];
@@ -874,7 +874,7 @@ let Rn = { data: "" }, Fn = (e) => typeof window == "object" ? ((e ? e.querySele
874
874
  let a = o !== e ? e : ((c) => {
875
875
  let u, p, d = [{}];
876
876
  for (; u = Bn.exec(c.replace(Hn, "")); )
877
- u[4] ? d.shift() : u[3] ? (p = u[3].replace(tt, " ").trim(), d.unshift(d[0][p] = d[0][p] || {})) : d[0][u[1]] = u[2].replace(tt, " ").trim();
877
+ u[4] ? d.shift() : u[3] ? (p = u[3].replace(nt, " ").trim(), d.unshift(d[0][p] = d[0][p] || {})) : d[0][u[1]] = u[2].replace(nt, " ").trim();
878
878
  return d[0];
879
879
  })(e);
880
880
  R[s] = K(l ? { ["@keyframes " + s]: a } : a, n ? "" : "." + s);
@@ -906,7 +906,7 @@ const Wn = /* @__PURE__ */ $("<div></div>"), Zn = S`
906
906
 
907
907
  svg {
908
908
  display: block;
909
- ${Je};
909
+ ${Xe};
910
910
  }
911
911
  }
912
912
  `, Ee = (e) => {
@@ -963,13 +963,13 @@ function ae(e, t = /* @__PURE__ */ new Set()) {
963
963
  }
964
964
  return e;
965
965
  }
966
- function Xe(e) {
966
+ function Ye(e) {
967
967
  let t = e[pe];
968
968
  return t || Object.defineProperty(e, pe, {
969
969
  value: t = {}
970
970
  }), t;
971
971
  }
972
- function Be(e, t, n) {
972
+ function He(e, t, n) {
973
973
  return e[t] || (e[t] = Dt(n));
974
974
  }
975
975
  function Jn(e, t) {
@@ -978,7 +978,7 @@ function Jn(e, t) {
978
978
  }
979
979
  function Mt(e) {
980
980
  if (St()) {
981
- const t = Xe(e);
981
+ const t = Ye(e);
982
982
  (t._ || (t._ = Dt()))();
983
983
  }
984
984
  }
@@ -1000,13 +1000,13 @@ const Yn = {
1000
1000
  return n;
1001
1001
  if (t === ve)
1002
1002
  return Mt(e), n;
1003
- const r = Xe(e), l = r.hasOwnProperty(t);
1003
+ const r = Ye(e), l = r.hasOwnProperty(t);
1004
1004
  let o = l ? r[t]() : e[t];
1005
1005
  if (t === pe || t === "__proto__")
1006
1006
  return o;
1007
1007
  if (!l) {
1008
1008
  const s = Object.getOwnPropertyDescriptor(e, t);
1009
- St() && (typeof o != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (o = Be(r, t, o)());
1009
+ St() && (typeof o != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (o = He(r, t, o)());
1010
1010
  }
1011
1011
  return se(o) ? It(o) : o;
1012
1012
  },
@@ -1027,8 +1027,8 @@ function ce(e, t, n, r = !1) {
1027
1027
  return;
1028
1028
  const l = e[t], o = e.length;
1029
1029
  n === void 0 ? delete e[t] : e[t] = n;
1030
- let s = Xe(e), i;
1031
- (i = Be(s, t, l)) && i.$(() => n), Array.isArray(e) && e.length !== o && (i = Be(s, "length", o)) && i.$(e.length), (i = s._) && i.$();
1030
+ let s = Ye(e), i;
1031
+ (i = He(s, t, l)) && i.$(() => n), Array.isArray(e) && e.length !== o && (i = He(s, "length", o)) && i.$(e.length), (i = s._) && i.$();
1032
1032
  }
1033
1033
  function zt(e, t) {
1034
1034
  const n = Object.keys(t);
@@ -1183,12 +1183,12 @@ function lr(e) {
1183
1183
  return Object.entries(e);
1184
1184
  }
1185
1185
  const ye = document.documentElement.style;
1186
- let nt = 1;
1186
+ let rt = 1;
1187
1187
  function or(e) {
1188
1188
  const t = {};
1189
1189
  for (const [n, r] of lr(e)) {
1190
- const [l, o, s] = rr(r), i = `c${nt}`;
1191
- nt++, ye.setProperty(`--${i}-r`, String(l)), ye.setProperty(`--${i}-g`, String(o)), ye.setProperty(`--${i}-b`, String(s)), ye.setProperty(`--${i}`, r), t[n] = {
1190
+ const [l, o, s] = rr(r), i = `c${rt}`;
1191
+ rt++, ye.setProperty(`--${i}-r`, String(l)), ye.setProperty(`--${i}-g`, String(o)), ye.setProperty(`--${i}-b`, String(s)), ye.setProperty(`--${i}`, r), t[n] = {
1192
1192
  red: l,
1193
1193
  green: o,
1194
1194
  blue: s,
@@ -1265,7 +1265,7 @@ function ge(e) {
1265
1265
  }
1266
1266
  };
1267
1267
  }
1268
- function He(e) {
1268
+ function Ve(e) {
1269
1269
  const t = m(e);
1270
1270
  return {
1271
1271
  get value() {
@@ -1273,7 +1273,7 @@ function He(e) {
1273
1273
  }
1274
1274
  };
1275
1275
  }
1276
- const sr = /* @__PURE__ */ $('<div class="tag"></div>'), rt = /* @__PURE__ */ $("<span></span>"), ar = /* @__PURE__ */ $('<div><div class="call"></div></div>'), cr = S`
1276
+ const sr = /* @__PURE__ */ $('<div class="tag"></div>'), lt = /* @__PURE__ */ $("<span></span>"), ar = /* @__PURE__ */ $('<div><div class="call"></div></div>'), cr = S`
1277
1277
  &&& {
1278
1278
  font-size: 14px;
1279
1279
  ${O()};
@@ -1373,7 +1373,7 @@ const sr = /* @__PURE__ */ $('<div class="tag"></div>'), rt = /* @__PURE__ */ $(
1373
1373
  _v$2: void 0
1374
1374
  }), i;
1375
1375
  })(), (() => {
1376
- const i = rt.cloneNode(!0);
1376
+ const i = lt.cloneNode(!0);
1377
1377
  return f(i, () => t().name), _(() => j(i, "title", t().name)), i;
1378
1378
  })()];
1379
1379
  }
@@ -1418,7 +1418,7 @@ const sr = /* @__PURE__ */ $('<div class="tag"></div>'), rt = /* @__PURE__ */ $(
1418
1418
  });
1419
1419
  },
1420
1420
  get children() {
1421
- const a = rt.cloneNode(!0);
1421
+ const a = lt.cloneNode(!0);
1422
1422
  return f(a, i), a;
1423
1423
  }
1424
1424
  })
@@ -1460,11 +1460,11 @@ function pr(e) {
1460
1460
  function hr(e) {
1461
1461
  return e.filter((t) => t !== !1);
1462
1462
  }
1463
- function lt(e) {
1463
+ function ot(e) {
1464
1464
  if (e == null)
1465
1465
  throw new Error("Value is null or undefined");
1466
1466
  }
1467
- function ot(e, t) {
1467
+ function it(e, t) {
1468
1468
  try {
1469
1469
  return e();
1470
1470
  } catch (n) {
@@ -1507,12 +1507,12 @@ function le(e) {
1507
1507
  const [Q, yr] = Rt({
1508
1508
  calls: {}
1509
1509
  }), Oe = ge("");
1510
- let Ve = {
1510
+ let Ue = {
1511
1511
  callsProcessor: []
1512
1512
  };
1513
1513
  function $r(e) {
1514
- Ve = {
1515
- ...Ve,
1514
+ Ue = {
1515
+ ...Ue,
1516
1516
  ...e
1517
1517
  };
1518
1518
  }
@@ -1547,13 +1547,13 @@ function vr(e) {
1547
1547
  const i = e.duration || Date.now() - t;
1548
1548
  yr(
1549
1549
  Qn((a) => {
1550
- const c = ot(
1550
+ const c = it(
1551
1551
  () => new URL(e.path, "http://localhost")
1552
1552
  );
1553
- lt(c);
1553
+ ot(c);
1554
1554
  const u = c.searchParams.toString() !== "" ? Object.fromEntries(c.searchParams.entries()) : null;
1555
1555
  let p = null;
1556
- const d = Ve.callsProcessor.find((A) => {
1556
+ const d = Ue.callsProcessor.find((A) => {
1557
1557
  if (typeof A.match == "string") {
1558
1558
  if (A.matchType && A.matchType !== e.type || A.matchSubType && e.subType && A.matchSubType.includes(e.subType))
1559
1559
  return !1;
@@ -1581,7 +1581,7 @@ function vr(e) {
1581
1581
  subType: e.subType
1582
1582
  }, Oe.value = v);
1583
1583
  const w = a.calls[v];
1584
- lt(w), w.requests.length > 100 && w.requests.shift();
1584
+ ot(w), w.requests.length > 100 && w.requests.shift();
1585
1585
  const k = {
1586
1586
  id: Xt(),
1587
1587
  duration: i,
@@ -1600,7 +1600,7 @@ function vr(e) {
1600
1600
  tags: pr(
1601
1601
  fr(e.tags, s)
1602
1602
  )
1603
- }, x = ot(
1603
+ }, x = it(
1604
1604
  () => d?.payloadAlias?.(k.payload, k)
1605
1605
  );
1606
1606
  x && (k.alias = x), w.requests.push(k);
@@ -1617,22 +1617,22 @@ const br = {
1617
1617
  out: "cubic-bezier(0.0, 0.0, 0.2, 1)",
1618
1618
  in: "cubic-bezier(0.4, 0.0, 1, 1)",
1619
1619
  linear: "linear"
1620
- }, it = (e) => e !== void 0 ? `${e}ms` : "";
1620
+ }, st = (e) => e !== void 0 ? `${e}ms` : "";
1621
1621
  function xr(e = {}) {
1622
1622
  const { properties: t, duration: n, ease: r, delay: l } = e;
1623
1623
  return `
1624
- transition: ${it(
1624
+ transition: ${st(
1625
1625
  typeof n == "number" ? n : br[n || "medium"]
1626
- )} ${wr[r || "inOut"]} ${it(l)};
1626
+ )} ${wr[r || "inOut"]} ${st(l)};
1627
1627
  ${t ? `
1628
1628
  transition-property: ${t.join(", ") || ""};
1629
1629
  ` : ""}
1630
1630
  `;
1631
1631
  }
1632
- const st = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim();
1632
+ const at = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim();
1633
1633
  function Cr(e, t) {
1634
- const n = st(String(t)).indexOf(
1635
- st(String(e))
1634
+ const n = at(String(t)).indexOf(
1635
+ at(String(e))
1636
1636
  );
1637
1637
  return {
1638
1638
  matched: n !== -1,
@@ -1645,7 +1645,7 @@ function _r(e, t, { lowerFirst: n } = {}) {
1645
1645
  return o < s ? n ? -1 : 1 : o > s ? n ? 1 : -1 : 0;
1646
1646
  });
1647
1647
  }
1648
- function at({
1648
+ function ct({
1649
1649
  items: e,
1650
1650
  searchQuery: t,
1651
1651
  getStringToMatch: n
@@ -1743,7 +1743,7 @@ const Sr = /* @__PURE__ */ $('<div><h1>API EXPLORER</h1><div><button>API</button
1743
1743
  p.alias && u.add(p.alias);
1744
1744
  s.push({
1745
1745
  id: a,
1746
- subitemsWithAlias: at({
1746
+ subitemsWithAlias: ct({
1747
1747
  items: [...u],
1748
1748
  searchQuery: l.trim(),
1749
1749
  getStringToMatch(p) {
@@ -1754,7 +1754,7 @@ const Sr = /* @__PURE__ */ $('<div><h1>API EXPLORER</h1><div><button>API</button
1754
1754
  });
1755
1755
  }
1756
1756
  }
1757
- return at({
1757
+ return ct({
1758
1758
  items: s,
1759
1759
  searchQuery: r.trim(),
1760
1760
  getStringToMatch(a) {
@@ -1904,15 +1904,15 @@ function Rr(e) {
1904
1904
  -webkit-box-orient: vertical;
1905
1905
  `;
1906
1906
  }
1907
- const ct = /* @__PURE__ */ new Map();
1908
- function Ue(e, t) {
1907
+ const ut = /* @__PURE__ */ new Map();
1908
+ function We(e, t) {
1909
1909
  const n = JSON.stringify(t);
1910
- return (ct.get(n) ?? ct.set(n, new Intl.NumberFormat("en-US", t)).get(n)).format(e);
1910
+ return (ut.get(n) ?? ut.set(n, new Intl.NumberFormat("en-US", t)).get(n)).format(e);
1911
1911
  }
1912
1912
  function Fr(e) {
1913
1913
  return e !== null && typeof e == "object";
1914
1914
  }
1915
- const Br = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Hr = /* @__PURE__ */ $('<div class="collapsed"></div>'), Vr = /* @__PURE__ */ $('<div class="delimiter">[]</div>'), Ur = /* @__PURE__ */ $('<div class="delimiter">{}</div>'), ut = /* @__PURE__ */ $('<div class="delimiter"></div>'), dt = /* @__PURE__ */ $('<div class="childs"></div>'), Wr = /* @__PURE__ */ $('<div class="delimiter end">]</div>'), ft = /* @__PURE__ */ $('<div class="child"></div>'), Zr = /* @__PURE__ */ $('<div class="delimiter end">}</div>'), Kr = /* @__PURE__ */ $('<div class="value" title="Shift + Click to copy value"></div>'), pt = /* @__PURE__ */ $('<span class="string-quotes">"</span>'), Jr = /* @__PURE__ */ $("<div></div>"), ht = /* @__PURE__ */ $("<span> · id: </span>"), Xr = S`
1915
+ const Br = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Hr = /* @__PURE__ */ $('<div class="collapsed"></div>'), Vr = /* @__PURE__ */ $('<div class="delimiter">[]</div>'), Ur = /* @__PURE__ */ $('<div class="delimiter">{}</div>'), dt = /* @__PURE__ */ $('<div class="delimiter"></div>'), ft = /* @__PURE__ */ $('<div class="childs"></div>'), Wr = /* @__PURE__ */ $('<div class="delimiter end">]</div>'), pt = /* @__PURE__ */ $('<div class="child"></div>'), Zr = /* @__PURE__ */ $('<div class="delimiter end">}</div>'), Kr = /* @__PURE__ */ $('<div class="value" title="Shift + Click to copy value"></div>'), ht = /* @__PURE__ */ $('<span class="string-quotes">"</span>'), Jr = /* @__PURE__ */ $("<div></div>"), Me = /* @__PURE__ */ $("<span> · id: </span>"), Xr = S`
1916
1916
  &&& {
1917
1917
  font-family: ${z.decorative};
1918
1918
  font-size: 13px;
@@ -2028,7 +2028,7 @@ const Br = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Hr = /* @_
2028
2028
  }
2029
2029
  }
2030
2030
  }
2031
- `, te = 14, We = (e) => {
2031
+ `, te = 14, Ze = (e) => {
2032
2032
  let [t, n] = oe(!(e.indent > 0 && e.compact)), [r, l] = oe(!e.compact);
2033
2033
  return m(() => {
2034
2034
  const o = e.value, s = Array.isArray(o), i = !s && Fr(o), a = e.key !== void 0 || e.index !== void 0, c = s && o.length > 0 || i && Object.keys(o).length > 0, u = c && h(F, {
@@ -2066,20 +2066,20 @@ const Br = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Hr = /* @_
2066
2066
  const d = Hr.cloneNode(!0);
2067
2067
  return f(d, () => s ? `[…] ${o.length} items` : [m(() => `{…} ${Object.keys(o).length} props`), m(() => Yr(o))]), d;
2068
2068
  })() : (() => s && o.length === 0 ? Vr.cloneNode(!0) : i && Object.keys(o).length === 0 ? Ur.cloneNode(!0) : s ? [(() => {
2069
- const d = ut.cloneNode(!0);
2069
+ const d = dt.cloneNode(!0);
2070
2070
  return _e(d, "click", a ? void 0 : (g) => {
2071
2071
  g.shiftKey && $e(o);
2072
2072
  }, !0), j(d, "title", a ? void 0 : "Shift + Click to copy value"), f(d, !a && u, null), f(d, () => t() ? "[" : `[…] ${o.length} items`, null), d;
2073
2073
  })(), m((() => {
2074
2074
  const d = m(() => !!t());
2075
2075
  return () => d() && [(() => {
2076
- const g = dt.cloneNode(!0);
2076
+ const g = ft.cloneNode(!0);
2077
2077
  return f(g, () => {
2078
2078
  let v = o;
2079
2079
  const b = v.length;
2080
2080
  return r() || (v = v.slice(0, te)), [m(() => v.map((w, k) => (() => {
2081
- const x = ft.cloneNode(!0);
2082
- return f(x, h(We, {
2081
+ const x = pt.cloneNode(!0);
2082
+ return f(x, h(Ze, {
2083
2083
  value: w,
2084
2084
  get indent() {
2085
2085
  return e.indent + 1;
@@ -2104,7 +2104,7 @@ const Br = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Hr = /* @_
2104
2104
  }), g;
2105
2105
  })(), Wr.cloneNode(!0)];
2106
2106
  })())] : i ? [(() => {
2107
- const d = ut.cloneNode(!0);
2107
+ const d = dt.cloneNode(!0);
2108
2108
  return _e(d, "click", a ? void 0 : (g) => {
2109
2109
  g.shiftKey && $e(o);
2110
2110
  }, !0), j(d, "title", a ? void 0 : "Shift + Click to copy value"), f(d, !a && u, null), f(d, (() => {
@@ -2114,13 +2114,13 @@ const Br = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Hr = /* @_
2114
2114
  })(), m((() => {
2115
2115
  const d = m(() => !!t());
2116
2116
  return () => d() && [(() => {
2117
- const g = dt.cloneNode(!0);
2117
+ const g = ft.cloneNode(!0);
2118
2118
  return f(g, () => {
2119
2119
  let v = Object.entries(o);
2120
2120
  const b = v.length;
2121
2121
  return r() || (v = v.slice(0, te)), [m(() => v.map(([w, k]) => (() => {
2122
- const x = ft.cloneNode(!0);
2123
- return f(x, h(We, {
2122
+ const x = pt.cloneNode(!0);
2123
+ return f(x, h(Ze, {
2124
2124
  value: k,
2125
2125
  key: w,
2126
2126
  get indent() {
@@ -2148,13 +2148,13 @@ const Br = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Hr = /* @_
2148
2148
  const d = Kr.cloneNode(!0);
2149
2149
  return d.$$click = (g) => {
2150
2150
  g.shiftKey && $e(String(o));
2151
- }, j(d, "data-type", typeof o), f(d, typeof o == "string" && pt.cloneNode(!0), null), f(d, () => typeof o == "number" ? Ue(o) : String(o), null), f(d, typeof o == "string" && pt.cloneNode(!0), null), d;
2151
+ }, j(d, "data-type", typeof o), f(d, typeof o == "string" && ht.cloneNode(!0), null), f(d, () => typeof o == "number" ? We(o) : String(o), null), f(d, typeof o == "string" && ht.cloneNode(!0), null), d;
2152
2152
  })())();
2153
2153
  })())];
2154
2154
  });
2155
2155
  }, Z = (e) => (() => {
2156
2156
  const t = Jr.cloneNode(!0);
2157
- return C(t, Xr), f(t, h(We, {
2157
+ return C(t, Xr), f(t, h(Ze, {
2158
2158
  get value() {
2159
2159
  return e.value;
2160
2160
  },
@@ -2167,7 +2167,7 @@ const Br = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Hr = /* @_
2167
2167
  function Yr(e) {
2168
2168
  if ("id" in e)
2169
2169
  return (() => {
2170
- const n = ht.cloneNode(!0);
2170
+ const n = Me.cloneNode(!0);
2171
2171
  return n.firstChild, f(n, () => String(e.id), null), n;
2172
2172
  })();
2173
2173
  const t = Object.keys(e);
@@ -2176,11 +2176,14 @@ function Yr(e) {
2176
2176
  const r = e[n];
2177
2177
  if (typeof r == "string" || typeof r == "number")
2178
2178
  return (() => {
2179
- const l = ht.cloneNode(!0);
2179
+ const l = Me.cloneNode(!0);
2180
2180
  return l.firstChild, f(l, r, null), l;
2181
2181
  })();
2182
2182
  }
2183
- return "";
2183
+ return "key" in e ? (() => {
2184
+ const n = Me.cloneNode(!0);
2185
+ return n.firstChild, f(n, () => String(e.id), null), n;
2186
+ })() : "";
2184
2187
  }
2185
2188
  async function $e(e) {
2186
2189
  await navigator.clipboard.writeText(typeof e == "object" ? JSON.stringify(e, null, 2) : String(e)), alert("Copied to clipboard");
@@ -2286,7 +2289,7 @@ function gt(e, t) {
2286
2289
  function ol(e, t) {
2287
2290
  return e.length > t ? `${e.slice(0, t)}...` : e;
2288
2291
  }
2289
- const il = /* @__PURE__ */ $('<div class="changes-count"><span class="additions">+ <b></b> lines</span> | <span class="removals">- <b></b> lines</span></div>'), Me = /* @__PURE__ */ $("<div></div>"), mt = /* @__PURE__ */ $("<div>No changes</div>"), yt = /* @__PURE__ */ $('<div class="line"></div>'), sl = S`
2292
+ const il = /* @__PURE__ */ $('<div class="changes-count"><span class="additions">+ <b></b> lines</span> | <span class="removals">- <b></b> lines</span></div>'), De = /* @__PURE__ */ $("<div></div>"), mt = /* @__PURE__ */ $("<div>No changes</div>"), yt = /* @__PURE__ */ $('<div class="line"></div>'), sl = S`
2290
2293
  &&& {
2291
2294
  ${O({
2292
2295
  gap: 14
@@ -2350,7 +2353,7 @@ const il = /* @__PURE__ */ $('<div class="changes-count"><span class="additions"
2350
2353
  selectedCall: a
2351
2354
  } = I;
2352
2355
  return a ? Q.calls[a] : Q.calls[Oe.value];
2353
- }), t = He(() => I.selectedRequest ? e()?.requests.find((a) => a.id === I.selectedRequest) : e()?.requests.at(-1) || null), n = m(() => t.value?.id), r = Bt(() => {
2356
+ }), t = Ve(() => I.selectedRequest ? e()?.requests.find((a) => a.id === I.selectedRequest) : e()?.requests.at(-1) || null), n = m(() => t.value?.id), r = Bt(() => {
2354
2357
  const a = e();
2355
2358
  return a ? Ht(a.requests).map((c) => ({
2356
2359
  value: c.id,
@@ -2368,7 +2371,7 @@ const il = /* @__PURE__ */ $('<div class="changes-count"><span class="additions"
2368
2371
  return u === "no changes" ? [] : u;
2369
2372
  });
2370
2373
  return (() => {
2371
- const a = Me.cloneNode(!0);
2374
+ const a = De.cloneNode(!0);
2372
2375
  return C(a, sl), f(a, h(ll, {
2373
2376
  get value() {
2374
2377
  return l.value;
@@ -2398,7 +2401,7 @@ const il = /* @__PURE__ */ $('<div class="changes-count"><span class="additions"
2398
2401
  return t.value?.payload ? "Payload Diff" : t.value?.searchParams ? "Search Params Diff" : t.value?.pathParams ? "Path Params Diff" : "Payload";
2399
2402
  },
2400
2403
  get children() {
2401
- const c = Me.cloneNode(!0);
2404
+ const c = De.cloneNode(!0);
2402
2405
  return C(c, $t), f(c, h(G, {
2403
2406
  get each() {
2404
2407
  return i();
@@ -2428,7 +2431,7 @@ const il = /* @__PURE__ */ $('<div class="changes-count"><span class="additions"
2428
2431
  return h(M, {
2429
2432
  title: "Response Diff",
2430
2433
  get children() {
2431
- const c = Me.cloneNode(!0);
2434
+ const c = De.cloneNode(!0);
2432
2435
  return C(c, $t), f(c, h(G, {
2433
2436
  get each() {
2434
2437
  return s();
@@ -2458,7 +2461,7 @@ const il = /* @__PURE__ */ $('<div class="changes-count"><span class="additions"
2458
2461
  function vt(e) {
2459
2462
  return e ? e.payload || e.searchParams || e.pathParams : null;
2460
2463
  }
2461
- const bt = /* @__PURE__ */ $("<div></div>"), cl = /* @__PURE__ */ $('<h1><span class="type"></span><span>|</span></h1>'), ul = /* @__PURE__ */ $('<div class="tags"></div>'), dl = /* @__PURE__ */ $('<div class="details"></div>'), fl = /* @__PURE__ */ $('<span class="separator">|</span>'), pl = /* @__PURE__ */ $("<h2></h2>"), hl = /* @__PURE__ */ $('<div class="method"></div>'), gl = /* @__PURE__ */ $('<div class="code"></div>'), ml = /* @__PURE__ */ $('<div class="tag error">Has Error</div>'), yl = /* @__PURE__ */ $('<div class="tag"></div>'), $l = /* @__PURE__ */ $("<span> ms</span>"), vl = /* @__PURE__ */ $("<span></span>"), bl = S`
2464
+ const bt = /* @__PURE__ */ $("<div></div>"), cl = /* @__PURE__ */ $('<h1><span class="type"></span><span class="separator">|</span></h1>'), ul = /* @__PURE__ */ $('<div class="tags"></div>'), dl = /* @__PURE__ */ $('<div class="details"></div>'), fl = /* @__PURE__ */ $('<span class="separator">|</span>'), pl = /* @__PURE__ */ $("<h2></h2>"), hl = /* @__PURE__ */ $('<div class="method"></div>'), gl = /* @__PURE__ */ $('<div class="code"></div>'), ml = /* @__PURE__ */ $('<div class="tag error">Has Error</div>'), yl = /* @__PURE__ */ $('<div class="tag"></div>'), $l = /* @__PURE__ */ $("<span> ms</span>"), vl = /* @__PURE__ */ $("<span></span>"), bl = S`
2462
2465
  &&& {
2463
2466
  ${O()};
2464
2467
  padding-left: 10px;
@@ -2555,7 +2558,7 @@ const bt = /* @__PURE__ */ $("<div></div>"), cl = /* @__PURE__ */ $('<h1><span c
2555
2558
  }
2556
2559
  }
2557
2560
  `, xl = () => {
2558
- const e = m(() => I.selectedCall), t = m(() => I.selectedRequest), n = m(() => I.selectedTab || "summary"), r = He(() => {
2561
+ const e = m(() => I.selectedCall), t = m(() => I.selectedRequest), n = m(() => I.selectedTab || "summary"), r = Ve(() => {
2559
2562
  let s;
2560
2563
  e() ? s = Q.calls[e()] : s = Q.calls[Oe.value];
2561
2564
  const i = t() && s?.requests.find((a) => a.id === t()) || s?.requests.at(-1);
@@ -2578,11 +2581,11 @@ const bt = /* @__PURE__ */ $("<div></div>"), cl = /* @__PURE__ */ $('<h1><span c
2578
2581
  children: i
2579
2582
  });
2580
2583
  }
2581
- const o = He(() => {
2584
+ const o = Ve(() => {
2582
2585
  if (!r.value?.response)
2583
2586
  return !1;
2584
2587
  const s = JSON.stringify(r.value.response).length;
2585
- return Ue(s, {
2588
+ return We(s, {
2586
2589
  unit: "byte",
2587
2590
  style: "unit",
2588
2591
  notation: "compact",
@@ -2691,7 +2694,7 @@ const bt = /* @__PURE__ */ $("<div></div>"), cl = /* @__PURE__ */ $('<h1><span c
2691
2694
  name: "Duration",
2692
2695
  value: (() => {
2693
2696
  const c = $l.cloneNode(!0), u = c.firstChild;
2694
- return f(c, () => Ue(i.duration, {
2697
+ return f(c, () => We(i.duration, {
2695
2698
  maximumFractionDigits: 0
2696
2699
  }), u), _(() => c.style.setProperty("color", i.duration < 500 ? y.success.var : i.duration > 1e3 ? y.error.var : void 0)), c;
2697
2700
  })()
@@ -3067,10 +3070,10 @@ button {
3067
3070
  }
3068
3071
 
3069
3072
  > main > * {
3070
- ${Je};
3073
+ ${Xe};
3071
3074
  }
3072
3075
  `, Vl = S`
3073
- ${Je};
3076
+ ${Xe};
3074
3077
  position: fixed;
3075
3078
  inset: 0;
3076
3079
  backdrop-filter: blur(5px);
@@ -3114,18 +3117,18 @@ function Kl() {
3114
3117
  n.type = "text/css", n.rel = "stylesheet", n.href = e, t?.appendChild(n);
3115
3118
  }
3116
3119
  let Wt = () => {
3117
- }, Ze = !1;
3120
+ }, Ke = !1;
3118
3121
  function Jl() {
3119
- if (ne.extend(An), Ze) {
3122
+ if (ne.extend(An), Ke) {
3120
3123
  Zt();
3121
3124
  return;
3122
3125
  }
3123
- Ze = !0, Kl(), navigator.platform.indexOf("Win") > -1 && document.body.classList.add("windows");
3126
+ Ke = !0, Kl(), navigator.platform.indexOf("Win") > -1 && document.body.classList.add("windows");
3124
3127
  const e = document.getElementById("dev-tools-root") || document.createElement("div");
3125
3128
  e.id = "dev-tools-root", document.body.appendChild(e), Wt = vn(() => h(Wl, {}), e);
3126
3129
  }
3127
3130
  function Zt() {
3128
- Ze = !1, Wt();
3131
+ Ke = !1, Wt();
3129
3132
  }
3130
3133
  function no({
3131
3134
  callsProcessor: e,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app-devtools",
3
- "version": "0.30.0",
3
+ "version": "0.30.1",
4
4
  "description": "",
5
5
  "packageManager": "pnpm@6.29.1",
6
6
  "license": "MIT",