app-devtools 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.d.ts +5 -5
- package/dist/main.js +406 -407
- package/dist/main.umd.cjs +34 -34
- package/package.json +3 -2
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Q from "dayjs";
|
|
2
|
-
import { sharedConfig as
|
|
2
|
+
import { sharedConfig as R, createRoot as it, createRenderEffect as x, mergeProps as st, $PROXY as I, $TRACK as we, getListener as Ze, batch as at, createSignal as ne, createMemo as m, splitProps as ct, createComponent as p, Show as se, For as z, Switch as dt, Match as G } from "solid-js";
|
|
3
3
|
import { css as _ } from "solid-styled-components";
|
|
4
4
|
import { dequal as Ke } from "dequal";
|
|
5
5
|
import { nanoid as ut } from "nanoid";
|
|
@@ -21,24 +21,24 @@ const ht = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "con
|
|
|
21
21
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
22
22
|
};
|
|
23
23
|
function Ct(e, t, n) {
|
|
24
|
-
let l = n.length,
|
|
25
|
-
for (;
|
|
26
|
-
if (t[
|
|
27
|
-
|
|
24
|
+
let l = n.length, s = t.length, o = l, i = 0, r = 0, a = t[s - 1].nextSibling, c = null;
|
|
25
|
+
for (; i < s || r < o; ) {
|
|
26
|
+
if (t[i] === n[r]) {
|
|
27
|
+
i++, r++;
|
|
28
28
|
continue;
|
|
29
29
|
}
|
|
30
|
-
for (; t[
|
|
31
|
-
|
|
32
|
-
if (
|
|
30
|
+
for (; t[s - 1] === n[o - 1]; )
|
|
31
|
+
s--, o--;
|
|
32
|
+
if (s === i) {
|
|
33
33
|
const d = o < l ? r ? n[r - 1].nextSibling : n[o - r] : a;
|
|
34
34
|
for (; r < o; )
|
|
35
35
|
e.insertBefore(n[r++], d);
|
|
36
36
|
} else if (o === r)
|
|
37
|
-
for (;
|
|
38
|
-
(!c || !c.has(t[
|
|
39
|
-
else if (t[
|
|
40
|
-
const d = t[--
|
|
41
|
-
e.insertBefore(n[r++], t[
|
|
37
|
+
for (; i < s; )
|
|
38
|
+
(!c || !c.has(t[i])) && t[i].remove(), i++;
|
|
39
|
+
else if (t[i] === n[o - 1] && n[r] === t[s - 1]) {
|
|
40
|
+
const d = t[--s].nextSibling;
|
|
41
|
+
e.insertBefore(n[r++], t[i++].nextSibling), e.insertBefore(n[--o], d), t[s] = n[o];
|
|
42
42
|
} else {
|
|
43
43
|
if (!c) {
|
|
44
44
|
c = /* @__PURE__ */ new Map();
|
|
@@ -46,48 +46,48 @@ function Ct(e, t, n) {
|
|
|
46
46
|
for (; g < o; )
|
|
47
47
|
c.set(n[g], g++);
|
|
48
48
|
}
|
|
49
|
-
const d = c.get(t[
|
|
49
|
+
const d = c.get(t[i]);
|
|
50
50
|
if (d != null)
|
|
51
51
|
if (r < d && d < o) {
|
|
52
|
-
let g =
|
|
53
|
-
for (; ++g <
|
|
52
|
+
let g = i, f = 1, y;
|
|
53
|
+
for (; ++g < s && g < o && !((y = c.get(t[g])) == null || y !== d + f); )
|
|
54
54
|
f++;
|
|
55
55
|
if (f > d - r) {
|
|
56
|
-
const v = t[
|
|
56
|
+
const v = t[i];
|
|
57
57
|
for (; r < d; )
|
|
58
58
|
e.insertBefore(n[r++], v);
|
|
59
59
|
} else
|
|
60
|
-
e.replaceChild(n[r++], t[
|
|
60
|
+
e.replaceChild(n[r++], t[i++]);
|
|
61
61
|
} else
|
|
62
|
-
|
|
62
|
+
i++;
|
|
63
63
|
else
|
|
64
|
-
t[
|
|
64
|
+
t[i++].remove();
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
const Se = "_$DX_DELEGATE";
|
|
69
69
|
function xt(e, t, n, l = {}) {
|
|
70
|
-
let
|
|
70
|
+
let s;
|
|
71
71
|
return it((o) => {
|
|
72
|
-
|
|
72
|
+
s = o, t === document ? e() : u(t, e(), t.firstChild ? null : void 0, n);
|
|
73
73
|
}, l.owner), () => {
|
|
74
|
-
|
|
74
|
+
s(), t.textContent = "";
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function $(e, t, n) {
|
|
78
78
|
const l = document.createElement("template");
|
|
79
79
|
l.innerHTML = e;
|
|
80
|
-
let
|
|
81
|
-
return n && (
|
|
80
|
+
let s = l.content.firstChild;
|
|
81
|
+
return n && (s = s.firstChild), s;
|
|
82
82
|
}
|
|
83
83
|
function ae(e, t = window.document) {
|
|
84
84
|
const n = t[Se] || (t[Se] = /* @__PURE__ */ new Set());
|
|
85
|
-
for (let l = 0,
|
|
85
|
+
for (let l = 0, s = e.length; l < s; l++) {
|
|
86
86
|
const o = e[l];
|
|
87
87
|
n.has(o) || (n.add(o), t.addEventListener(o, At));
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function A(e, t, n) {
|
|
91
91
|
n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
|
|
92
92
|
}
|
|
93
93
|
function wt(e, t, n, l) {
|
|
@@ -100,19 +100,19 @@ function re(e, t, n, l) {
|
|
|
100
100
|
if (l)
|
|
101
101
|
Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
|
|
102
102
|
else if (Array.isArray(n)) {
|
|
103
|
-
const
|
|
104
|
-
e.addEventListener(t, n[0] = (o) =>
|
|
103
|
+
const s = n[0];
|
|
104
|
+
e.addEventListener(t, n[0] = (o) => s.call(e, n[1], o));
|
|
105
105
|
} else
|
|
106
106
|
e.addEventListener(t, n);
|
|
107
107
|
}
|
|
108
108
|
function _t(e, t, n = {}) {
|
|
109
|
-
const l = Object.keys(t || {}),
|
|
110
|
-
let o,
|
|
111
|
-
for (o = 0,
|
|
112
|
-
const r =
|
|
109
|
+
const l = Object.keys(t || {}), s = Object.keys(n);
|
|
110
|
+
let o, i;
|
|
111
|
+
for (o = 0, i = s.length; o < i; o++) {
|
|
112
|
+
const r = s[o];
|
|
113
113
|
!r || r === "undefined" || t[r] || (Ne(e, r, !1), delete n[r]);
|
|
114
114
|
}
|
|
115
|
-
for (o = 0,
|
|
115
|
+
for (o = 0, i = l.length; o < i; o++) {
|
|
116
116
|
const r = l[o], a = !!t[r];
|
|
117
117
|
!r || r === "undefined" || n[r] === a || !a || (Ne(e, r, !0), n[r] = a);
|
|
118
118
|
}
|
|
@@ -120,42 +120,42 @@ function _t(e, t, n = {}) {
|
|
|
120
120
|
}
|
|
121
121
|
function Ue(e, t, n) {
|
|
122
122
|
if (!t)
|
|
123
|
-
return n ?
|
|
123
|
+
return n ? A(e, "style") : t;
|
|
124
124
|
const l = e.style;
|
|
125
125
|
if (typeof t == "string")
|
|
126
126
|
return l.cssText = t;
|
|
127
127
|
typeof n == "string" && (l.cssText = n = void 0), n || (n = {}), t || (t = {});
|
|
128
|
-
let
|
|
128
|
+
let s, o;
|
|
129
129
|
for (o in n)
|
|
130
130
|
t[o] == null && l.removeProperty(o), delete n[o];
|
|
131
131
|
for (o in t)
|
|
132
|
-
|
|
132
|
+
s = t[o], s !== n[o] && (l.setProperty(o, s), n[o] = s);
|
|
133
133
|
return n;
|
|
134
134
|
}
|
|
135
135
|
function St(e, t = {}, n, l) {
|
|
136
|
-
const
|
|
137
|
-
return l ||
|
|
136
|
+
const s = {};
|
|
137
|
+
return l || x(() => s.children = K(e, t.children, s.children)), x(() => t.ref && t.ref(e)), x(() => Nt(e, t, n, !0, s, !0)), s;
|
|
138
138
|
}
|
|
139
139
|
function u(e, t, n, l) {
|
|
140
140
|
if (n !== void 0 && !l && (l = []), typeof t != "function")
|
|
141
141
|
return K(e, t, l, n);
|
|
142
|
-
|
|
142
|
+
x((s) => K(e, t(), s, n), l);
|
|
143
143
|
}
|
|
144
|
-
function Nt(e, t, n, l,
|
|
144
|
+
function Nt(e, t, n, l, s = {}, o = !1) {
|
|
145
145
|
t || (t = {});
|
|
146
|
-
for (const
|
|
147
|
-
if (!(
|
|
148
|
-
if (
|
|
146
|
+
for (const i in s)
|
|
147
|
+
if (!(i in t)) {
|
|
148
|
+
if (i === "children")
|
|
149
149
|
continue;
|
|
150
|
-
i
|
|
150
|
+
s[i] = ke(e, i, null, s[i], n, o);
|
|
151
151
|
}
|
|
152
|
-
for (const
|
|
153
|
-
if (
|
|
152
|
+
for (const i in t) {
|
|
153
|
+
if (i === "children") {
|
|
154
154
|
l || K(e, t.children);
|
|
155
155
|
continue;
|
|
156
156
|
}
|
|
157
|
-
const r = t[
|
|
158
|
-
i
|
|
157
|
+
const r = t[i];
|
|
158
|
+
s[i] = ke(e, i, r, s[i], n, o);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
function kt(e) {
|
|
@@ -163,11 +163,11 @@ function kt(e) {
|
|
|
163
163
|
}
|
|
164
164
|
function Ne(e, t, n) {
|
|
165
165
|
const l = t.trim().split(/\s+/);
|
|
166
|
-
for (let
|
|
167
|
-
e.classList.toggle(l[
|
|
166
|
+
for (let s = 0, o = l.length; s < o; s++)
|
|
167
|
+
e.classList.toggle(l[s], n);
|
|
168
168
|
}
|
|
169
|
-
function ke(e, t, n, l,
|
|
170
|
-
let
|
|
169
|
+
function ke(e, t, n, l, s, o) {
|
|
170
|
+
let i, r, a;
|
|
171
171
|
if (t === "style")
|
|
172
172
|
return Ue(e, n, l);
|
|
173
173
|
if (t === "classList")
|
|
@@ -189,11 +189,11 @@ function ke(e, t, n, l, i, o) {
|
|
|
189
189
|
e.removeEventListener(c, g);
|
|
190
190
|
}
|
|
191
191
|
(d || n) && (re(e, c, n, d), d && ae([c]));
|
|
192
|
-
} else if ((a = $t.has(t)) || !
|
|
193
|
-
t === "class" || t === "className" ? b(e, n) :
|
|
192
|
+
} else if ((a = $t.has(t)) || !s && (_e[t] || (r = mt.has(t))) || (i = e.nodeName.includes("-")))
|
|
193
|
+
t === "class" || t === "className" ? b(e, n) : i && !r && !a ? e[kt(t)] = n : e[_e[t] || t] = n;
|
|
194
194
|
else {
|
|
195
|
-
const c =
|
|
196
|
-
c ? wt(e, c, t, n) :
|
|
195
|
+
const c = s && t.indexOf(":") > -1 && bt[t.split(":")[0]];
|
|
196
|
+
c ? wt(e, c, t, n) : A(e, yt[t] || t, n);
|
|
197
197
|
}
|
|
198
198
|
return n;
|
|
199
199
|
}
|
|
@@ -208,43 +208,43 @@ function At(e) {
|
|
|
208
208
|
get() {
|
|
209
209
|
return n || document;
|
|
210
210
|
}
|
|
211
|
-
}),
|
|
211
|
+
}), R.registry && !R.done && (R.done = !0, document.querySelectorAll("[id^=pl-]").forEach((l) => {
|
|
212
212
|
for (; l && l.nodeType !== 8 && l.nodeValue !== "pl-" + e; ) {
|
|
213
|
-
let
|
|
214
|
-
l.remove(), l =
|
|
213
|
+
let s = l.nextSibling;
|
|
214
|
+
l.remove(), l = s;
|
|
215
215
|
}
|
|
216
216
|
l && l.remove();
|
|
217
217
|
})); n; ) {
|
|
218
218
|
const l = n[t];
|
|
219
219
|
if (l && !n.disabled) {
|
|
220
|
-
const
|
|
221
|
-
if (
|
|
220
|
+
const s = n[`${t}Data`];
|
|
221
|
+
if (s !== void 0 ? l.call(n, s, e) : l.call(n, e), e.cancelBubble)
|
|
222
222
|
return;
|
|
223
223
|
}
|
|
224
224
|
n = n._$host || n.parentNode || n.host;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
function K(e, t, n, l,
|
|
228
|
-
for (
|
|
227
|
+
function K(e, t, n, l, s) {
|
|
228
|
+
for (R.context && !n && (n = [...e.childNodes]); typeof n == "function"; )
|
|
229
229
|
n = n();
|
|
230
230
|
if (t === n)
|
|
231
231
|
return n;
|
|
232
|
-
const o = typeof t,
|
|
233
|
-
if (e =
|
|
234
|
-
if (
|
|
232
|
+
const o = typeof t, i = l !== void 0;
|
|
233
|
+
if (e = i && n[0] && n[0].parentNode || e, o === "string" || o === "number") {
|
|
234
|
+
if (R.context)
|
|
235
235
|
return n;
|
|
236
|
-
if (o === "number" && (t = t.toString()),
|
|
236
|
+
if (o === "number" && (t = t.toString()), i) {
|
|
237
237
|
let r = n[0];
|
|
238
238
|
r && r.nodeType === 3 ? r.data = t : r = document.createTextNode(t), n = V(e, n, l, r);
|
|
239
239
|
} else
|
|
240
240
|
n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
|
|
241
241
|
} else if (t == null || o === "boolean") {
|
|
242
|
-
if (
|
|
242
|
+
if (R.context)
|
|
243
243
|
return n;
|
|
244
244
|
n = V(e, n, l);
|
|
245
245
|
} else {
|
|
246
246
|
if (o === "function")
|
|
247
|
-
return
|
|
247
|
+
return x(() => {
|
|
248
248
|
let r = t();
|
|
249
249
|
for (; typeof r == "function"; )
|
|
250
250
|
r = r();
|
|
@@ -252,9 +252,9 @@ function K(e, t, n, l, i) {
|
|
|
252
252
|
}), () => n;
|
|
253
253
|
if (Array.isArray(t)) {
|
|
254
254
|
const r = [], a = n && Array.isArray(n);
|
|
255
|
-
if (he(r, t, n,
|
|
256
|
-
return
|
|
257
|
-
if (
|
|
255
|
+
if (he(r, t, n, s))
|
|
256
|
+
return x(() => n = K(e, r, n, l, !0)), () => n;
|
|
257
|
+
if (R.context) {
|
|
258
258
|
if (!r.length)
|
|
259
259
|
return n;
|
|
260
260
|
for (let c = 0; c < r.length; c++)
|
|
@@ -262,16 +262,16 @@ function K(e, t, n, l, i) {
|
|
|
262
262
|
return n = r;
|
|
263
263
|
}
|
|
264
264
|
if (r.length === 0) {
|
|
265
|
-
if (n = V(e, n, l),
|
|
265
|
+
if (n = V(e, n, l), i)
|
|
266
266
|
return n;
|
|
267
267
|
} else
|
|
268
268
|
a ? n.length === 0 ? Ae(e, r, l) : Ct(e, n, r) : (n && V(e), Ae(e, r));
|
|
269
269
|
n = r;
|
|
270
270
|
} else if (t instanceof Node) {
|
|
271
|
-
if (
|
|
272
|
-
return n =
|
|
271
|
+
if (R.context && t.parentNode)
|
|
272
|
+
return n = i ? [t] : t;
|
|
273
273
|
if (Array.isArray(n)) {
|
|
274
|
-
if (
|
|
274
|
+
if (i)
|
|
275
275
|
return n = V(e, n, l, t);
|
|
276
276
|
V(e, n, null, t);
|
|
277
277
|
} else
|
|
@@ -282,49 +282,49 @@ function K(e, t, n, l, i) {
|
|
|
282
282
|
return n;
|
|
283
283
|
}
|
|
284
284
|
function he(e, t, n, l) {
|
|
285
|
-
let
|
|
286
|
-
for (let o = 0,
|
|
285
|
+
let s = !1;
|
|
286
|
+
for (let o = 0, i = t.length; o < i; o++) {
|
|
287
287
|
let r = t[o], a = n && n[o];
|
|
288
288
|
if (r instanceof Node)
|
|
289
289
|
e.push(r);
|
|
290
290
|
else if (!(r == null || r === !0 || r === !1))
|
|
291
291
|
if (Array.isArray(r))
|
|
292
|
-
|
|
292
|
+
s = he(e, r, a) || s;
|
|
293
293
|
else if (typeof r == "function")
|
|
294
294
|
if (l) {
|
|
295
295
|
for (; typeof r == "function"; )
|
|
296
296
|
r = r();
|
|
297
|
-
|
|
297
|
+
s = he(e, Array.isArray(r) ? r : [r], Array.isArray(a) ? a : [a]) || s;
|
|
298
298
|
} else
|
|
299
|
-
e.push(r),
|
|
299
|
+
e.push(r), s = !0;
|
|
300
300
|
else {
|
|
301
301
|
const c = String(r);
|
|
302
302
|
a && a.nodeType === 3 && a.data === c ? e.push(a) : e.push(document.createTextNode(c));
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
return
|
|
305
|
+
return s;
|
|
306
306
|
}
|
|
307
307
|
function Ae(e, t, n = null) {
|
|
308
|
-
for (let l = 0,
|
|
308
|
+
for (let l = 0, s = t.length; l < s; l++)
|
|
309
309
|
e.insertBefore(t[l], n);
|
|
310
310
|
}
|
|
311
311
|
function V(e, t, n, l) {
|
|
312
312
|
if (n === void 0)
|
|
313
313
|
return e.textContent = "";
|
|
314
|
-
const
|
|
314
|
+
const s = l || document.createTextNode("");
|
|
315
315
|
if (t.length) {
|
|
316
316
|
let o = !1;
|
|
317
|
-
for (let
|
|
318
|
-
const r = t[
|
|
319
|
-
if (
|
|
317
|
+
for (let i = t.length - 1; i >= 0; i--) {
|
|
318
|
+
const r = t[i];
|
|
319
|
+
if (s !== r) {
|
|
320
320
|
const a = r.parentNode === e;
|
|
321
|
-
!o && !
|
|
321
|
+
!o && !i ? a ? e.replaceChild(s, r) : e.insertBefore(s, n) : a && r.remove();
|
|
322
322
|
} else
|
|
323
323
|
o = !0;
|
|
324
324
|
}
|
|
325
325
|
} else
|
|
326
|
-
e.insertBefore(
|
|
327
|
-
return [
|
|
326
|
+
e.insertBefore(s, n);
|
|
327
|
+
return [s];
|
|
328
328
|
}
|
|
329
329
|
var Pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, me = {}, Tt = {
|
|
330
330
|
get exports() {
|
|
@@ -338,35 +338,35 @@ var Pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
338
338
|
(function(n, l) {
|
|
339
339
|
e.exports = l();
|
|
340
340
|
})(Pt, function() {
|
|
341
|
-
return function(n, l,
|
|
341
|
+
return function(n, l, s) {
|
|
342
342
|
n = n || {};
|
|
343
|
-
var o = l.prototype,
|
|
343
|
+
var o = l.prototype, i = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
344
344
|
function r(c, d, g, f) {
|
|
345
345
|
return o.fromToBase(c, d, g, f);
|
|
346
346
|
}
|
|
347
|
-
|
|
348
|
-
for (var v,
|
|
349
|
-
var
|
|
350
|
-
|
|
347
|
+
s.en.relativeTime = i, o.fromToBase = function(c, d, g, f, y) {
|
|
348
|
+
for (var v, C, w, P = g.$locale().relativeTime || i, k = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], lt = k.length, X = 0; X < lt; X += 1) {
|
|
349
|
+
var j = k[X];
|
|
350
|
+
j.d && (v = f ? s(c).diff(g, j.d, !0) : g.diff(c, j.d, !0));
|
|
351
351
|
var H = (n.rounding || Math.round)(Math.abs(v));
|
|
352
|
-
if (w = v > 0, H <=
|
|
353
|
-
H <= 1 && X > 0 && (
|
|
354
|
-
var fe =
|
|
355
|
-
|
|
352
|
+
if (w = v > 0, H <= j.r || !j.r) {
|
|
353
|
+
H <= 1 && X > 0 && (j = k[X - 1]);
|
|
354
|
+
var fe = P[j.l];
|
|
355
|
+
y && (H = y("" + H)), C = typeof fe == "string" ? fe.replace("%d", H) : fe(H, d, j.l, w);
|
|
356
356
|
break;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
if (d)
|
|
360
|
-
return
|
|
361
|
-
var pe = w ?
|
|
362
|
-
return typeof pe == "function" ? pe(
|
|
360
|
+
return C;
|
|
361
|
+
var pe = w ? P.future : P.past;
|
|
362
|
+
return typeof pe == "function" ? pe(C) : pe.replace("%s", C);
|
|
363
363
|
}, o.to = function(c, d) {
|
|
364
364
|
return r(c, d, this, !0);
|
|
365
365
|
}, o.from = function(c, d) {
|
|
366
366
|
return r(c, d, this);
|
|
367
367
|
};
|
|
368
368
|
var a = function(c) {
|
|
369
|
-
return c.$u ?
|
|
369
|
+
return c.$u ? s.utc() : s();
|
|
370
370
|
};
|
|
371
371
|
o.toNow = function(c) {
|
|
372
372
|
return this.to(a(this), c);
|
|
@@ -376,7 +376,7 @@ var Pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
376
376
|
};
|
|
377
377
|
});
|
|
378
378
|
})(Tt);
|
|
379
|
-
const Et = me, Lt = /* @__PURE__ */
|
|
379
|
+
const Et = me, Lt = /* @__PURE__ */ $("<button></button>"), O = (e) => (() => {
|
|
380
380
|
const t = Lt.cloneNode(!0);
|
|
381
381
|
return St(t, st(e, {
|
|
382
382
|
onMouseDown: Ot
|
|
@@ -431,7 +431,7 @@ const be = `
|
|
|
431
431
|
function Bt(e, t = "px") {
|
|
432
432
|
return typeof e == "string" ? String(e) : Array.isArray(e) ? e.map((n) => `${n}${t}`).join(" ") : `${e}${t}`;
|
|
433
433
|
}
|
|
434
|
-
const Ht = /* @__PURE__ */
|
|
434
|
+
const Ht = /* @__PURE__ */ $("<div></div>"), Vt = _`
|
|
435
435
|
&&& {
|
|
436
436
|
position: relative;
|
|
437
437
|
color: currentColor;
|
|
@@ -447,12 +447,12 @@ const Ht = /* @__PURE__ */ y("<div></div>"), Vt = _`
|
|
|
447
447
|
const t = Ft(e.name);
|
|
448
448
|
return (() => {
|
|
449
449
|
const n = Ht.cloneNode(!0);
|
|
450
|
-
return n.innerHTML = t,
|
|
451
|
-
const
|
|
450
|
+
return n.innerHTML = t, x((l) => {
|
|
451
|
+
const s = `icon ${e.class || ""} ${Vt}`, o = {
|
|
452
452
|
color: e.color,
|
|
453
453
|
"--icon-size": e.size && Bt(e.size)
|
|
454
454
|
};
|
|
455
|
-
return
|
|
455
|
+
return s !== l._v$ && b(n, l._v$ = s), l._v$2 = Ue(n, o, l._v$2), l;
|
|
456
456
|
}, {
|
|
457
457
|
_v$: void 0,
|
|
458
458
|
_v$2: void 0
|
|
@@ -464,12 +464,12 @@ function We(e, t) {
|
|
|
464
464
|
if (!n && (Object.defineProperty(e, I, {
|
|
465
465
|
value: n = new Proxy(e, Wt)
|
|
466
466
|
}), !Array.isArray(e))) {
|
|
467
|
-
const l = Object.keys(e),
|
|
468
|
-
for (let o = 0,
|
|
467
|
+
const l = Object.keys(e), s = Object.getOwnPropertyDescriptors(e);
|
|
468
|
+
for (let o = 0, i = l.length; o < i; o++) {
|
|
469
469
|
const r = l[o];
|
|
470
|
-
|
|
471
|
-
enumerable:
|
|
472
|
-
get:
|
|
470
|
+
s[r].get && Object.defineProperty(e, r, {
|
|
471
|
+
enumerable: s[r].enumerable,
|
|
472
|
+
get: s[r].get.bind(n)
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
475
|
}
|
|
@@ -480,20 +480,20 @@ function U(e) {
|
|
|
480
480
|
return e != null && typeof e == "object" && (e[I] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
|
|
481
481
|
}
|
|
482
482
|
function W(e, t = /* @__PURE__ */ new Set()) {
|
|
483
|
-
let n, l,
|
|
483
|
+
let n, l, s, o;
|
|
484
484
|
if (n = e != null && e[oe])
|
|
485
485
|
return n;
|
|
486
486
|
if (!U(e) || t.has(e))
|
|
487
487
|
return e;
|
|
488
488
|
if (Array.isArray(e)) {
|
|
489
489
|
Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
|
|
490
|
-
for (let
|
|
491
|
-
|
|
490
|
+
for (let i = 0, r = e.length; i < r; i++)
|
|
491
|
+
s = e[i], (l = W(s, t)) !== s && (e[i] = l);
|
|
492
492
|
} else {
|
|
493
493
|
Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
|
|
494
|
-
const
|
|
495
|
-
for (let a = 0, c =
|
|
496
|
-
o =
|
|
494
|
+
const i = Object.keys(e), r = Object.getOwnPropertyDescriptors(e);
|
|
495
|
+
for (let a = 0, c = i.length; a < c; a++)
|
|
496
|
+
o = i[a], !r[o].get && (s = e[o], (l = W(s, t)) !== s && (e[o] = l));
|
|
497
497
|
}
|
|
498
498
|
return e;
|
|
499
499
|
}
|
|
@@ -534,13 +534,13 @@ const Wt = {
|
|
|
534
534
|
return n;
|
|
535
535
|
if (t === we)
|
|
536
536
|
return Je(e), n;
|
|
537
|
-
const l = Ce(e),
|
|
538
|
-
let o =
|
|
537
|
+
const l = Ce(e), s = l.hasOwnProperty(t);
|
|
538
|
+
let o = s ? l[t]() : e[t];
|
|
539
539
|
if (t === q || t === "__proto__")
|
|
540
540
|
return o;
|
|
541
|
-
if (!
|
|
542
|
-
const
|
|
543
|
-
Ze() && (typeof o != "function" || e.hasOwnProperty(t)) && !(
|
|
541
|
+
if (!s) {
|
|
542
|
+
const i = Object.getOwnPropertyDescriptor(e, t);
|
|
543
|
+
Ze() && (typeof o != "function" || e.hasOwnProperty(t)) && !(i && i.get) && (o = $e(l, t, o)());
|
|
544
544
|
}
|
|
545
545
|
return U(o) ? We(o) : o;
|
|
546
546
|
},
|
|
@@ -559,16 +559,16 @@ const Wt = {
|
|
|
559
559
|
function J(e, t, n, l = !1) {
|
|
560
560
|
if (!l && e[t] === n)
|
|
561
561
|
return;
|
|
562
|
-
const
|
|
562
|
+
const s = e[t], o = e.length;
|
|
563
563
|
n === void 0 ? delete e[t] : e[t] = n;
|
|
564
|
-
let
|
|
565
|
-
(r = $e(
|
|
564
|
+
let i = Ce(e), r;
|
|
565
|
+
(r = $e(i, t, s)) && r.$(() => n), Array.isArray(e) && e.length !== o && (r = $e(i, "length", o)) && r.$(e.length), (r = i._) && r.$();
|
|
566
566
|
}
|
|
567
567
|
function Ge(e, t) {
|
|
568
568
|
const n = Object.keys(t);
|
|
569
569
|
for (let l = 0; l < n.length; l += 1) {
|
|
570
|
-
const
|
|
571
|
-
J(e,
|
|
570
|
+
const s = n[l];
|
|
571
|
+
J(e, s, t[s]);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
function Jt(e, t) {
|
|
@@ -577,27 +577,27 @@ function Jt(e, t) {
|
|
|
577
577
|
return;
|
|
578
578
|
let n = 0, l = t.length;
|
|
579
579
|
for (; n < l; n++) {
|
|
580
|
-
const
|
|
581
|
-
e[n] !==
|
|
580
|
+
const s = t[n];
|
|
581
|
+
e[n] !== s && J(e, n, s);
|
|
582
582
|
}
|
|
583
583
|
J(e, "length", l);
|
|
584
584
|
} else
|
|
585
585
|
Ge(e, t);
|
|
586
586
|
}
|
|
587
587
|
function Y(e, t, n = []) {
|
|
588
|
-
let l,
|
|
588
|
+
let l, s = e;
|
|
589
589
|
if (t.length > 1) {
|
|
590
590
|
l = t.shift();
|
|
591
|
-
const
|
|
591
|
+
const i = typeof l, r = Array.isArray(e);
|
|
592
592
|
if (Array.isArray(l)) {
|
|
593
593
|
for (let a = 0; a < l.length; a++)
|
|
594
594
|
Y(e, [l[a]].concat(t), n);
|
|
595
595
|
return;
|
|
596
|
-
} else if (r &&
|
|
596
|
+
} else if (r && i === "function") {
|
|
597
597
|
for (let a = 0; a < e.length; a++)
|
|
598
598
|
l(e[a], a) && Y(e, [a].concat(t), n);
|
|
599
599
|
return;
|
|
600
|
-
} else if (r &&
|
|
600
|
+
} else if (r && i === "object") {
|
|
601
601
|
const {
|
|
602
602
|
from: a = 0,
|
|
603
603
|
to: c = e.length - 1,
|
|
@@ -610,19 +610,19 @@ function Y(e, t, n = []) {
|
|
|
610
610
|
Y(e[l], t, [l].concat(n));
|
|
611
611
|
return;
|
|
612
612
|
}
|
|
613
|
-
|
|
613
|
+
s = e[l], n = [l].concat(n);
|
|
614
614
|
}
|
|
615
615
|
let o = t[0];
|
|
616
|
-
typeof o == "function" && (o = o(
|
|
616
|
+
typeof o == "function" && (o = o(s, n), o === s) || l === void 0 && o == null || (o = W(o), l === void 0 || U(s) && U(o) && !Array.isArray(o) ? Ge(s, o) : J(e, l, o));
|
|
617
617
|
}
|
|
618
618
|
function Ye(...[e, t]) {
|
|
619
|
-
const n = W(e || {}), l = Array.isArray(n),
|
|
620
|
-
function o(...
|
|
619
|
+
const n = W(e || {}), l = Array.isArray(n), s = We(n);
|
|
620
|
+
function o(...i) {
|
|
621
621
|
at(() => {
|
|
622
|
-
l &&
|
|
622
|
+
l && i.length === 1 ? Jt(n, i[0]) : Y(n, i);
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
return [
|
|
625
|
+
return [s, o];
|
|
626
626
|
}
|
|
627
627
|
const le = /* @__PURE__ */ new WeakMap(), Qe = {
|
|
628
628
|
get(e, t) {
|
|
@@ -710,7 +710,7 @@ function en(e) {
|
|
|
710
710
|
throw new Error("Invalid hex value");
|
|
711
711
|
return (e.replace(
|
|
712
712
|
/^#?([a-f\d])([a-f\d])([a-f\d])$/i,
|
|
713
|
-
(t, n, l,
|
|
713
|
+
(t, n, l, s) => `#${n}${n}${l}${l}${s}${s}`
|
|
714
714
|
).substring(1).match(/.{2}/g) || []).map((t) => parseInt(t, 16));
|
|
715
715
|
}
|
|
716
716
|
function tn(e) {
|
|
@@ -721,11 +721,11 @@ let Pe = 1;
|
|
|
721
721
|
function nn(e) {
|
|
722
722
|
const t = {};
|
|
723
723
|
for (const [n, l] of tn(e)) {
|
|
724
|
-
const [
|
|
725
|
-
Pe++, ee.setProperty(`--${r}-r`, String(
|
|
726
|
-
red:
|
|
724
|
+
const [s, o, i] = en(l), r = `c${Pe}`;
|
|
725
|
+
Pe++, ee.setProperty(`--${r}-r`, String(s)), ee.setProperty(`--${r}-g`, String(o)), ee.setProperty(`--${r}-b`, String(i)), ee.setProperty(`--${r}`, l), t[n] = {
|
|
726
|
+
red: s,
|
|
727
727
|
green: o,
|
|
728
|
-
blue:
|
|
728
|
+
blue: i,
|
|
729
729
|
var: `var(--${r})`,
|
|
730
730
|
raw: l,
|
|
731
731
|
alpha: (a) => `rgba(var(--${r}-r), var(--${r}-g), var(--${r}-b), ${a})`,
|
|
@@ -762,22 +762,22 @@ const h = nn({
|
|
|
762
762
|
bg: "#EAEFFF",
|
|
763
763
|
white: "#fff",
|
|
764
764
|
black: "#000"
|
|
765
|
-
}),
|
|
765
|
+
}), E = {
|
|
766
766
|
primary: "Work Sans, sans-serif",
|
|
767
767
|
decorative: '"Fira Code", monospaced'
|
|
768
768
|
};
|
|
769
769
|
function rn(e, t, n) {
|
|
770
770
|
if (!e)
|
|
771
771
|
return t;
|
|
772
|
-
const l = [],
|
|
772
|
+
const l = [], s = new Map(e.map((o) => [o[n], o]));
|
|
773
773
|
for (const o of t) {
|
|
774
|
-
const
|
|
775
|
-
|
|
774
|
+
const i = s.get(o[n]);
|
|
775
|
+
i && Ke(i, o) ? l.push(i) : l.push(o);
|
|
776
776
|
}
|
|
777
777
|
return l;
|
|
778
778
|
}
|
|
779
779
|
function qe(e, t) {
|
|
780
|
-
return
|
|
780
|
+
return m((n) => rn(n, typeof e == "function" ? e() : e, t));
|
|
781
781
|
}
|
|
782
782
|
function xe(e) {
|
|
783
783
|
const [t, n] = ne(e);
|
|
@@ -793,7 +793,7 @@ function xe(e) {
|
|
|
793
793
|
}
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
|
-
const on = /* @__PURE__ */
|
|
796
|
+
const on = /* @__PURE__ */ $('<div class="tag"></div>'), Te = /* @__PURE__ */ $("<span></span>"), ln = /* @__PURE__ */ $('<div><div class="call"></div></div>'), sn = _`
|
|
797
797
|
&&& {
|
|
798
798
|
font-size: 14px;
|
|
799
799
|
${S()};
|
|
@@ -816,7 +816,7 @@ const on = /* @__PURE__ */ y('<div class="tag"></div>'), Te = /* @__PURE__ */ y(
|
|
|
816
816
|
|
|
817
817
|
> .tag {
|
|
818
818
|
font-weight: 600;
|
|
819
|
-
font-family: ${
|
|
819
|
+
font-family: ${E.decorative};
|
|
820
820
|
}
|
|
821
821
|
|
|
822
822
|
> span {
|
|
@@ -869,10 +869,10 @@ const on = /* @__PURE__ */ y('<div class="tag"></div>'), Te = /* @__PURE__ */ y(
|
|
|
869
869
|
`, an = (e) => {
|
|
870
870
|
const t = () => e.item, n = () => e.currentCallId;
|
|
871
871
|
ct(e, ["item", "currentCallId"])[1];
|
|
872
|
-
const l = xe(e.item.subitemsWithAlias.length < 4),
|
|
872
|
+
const l = xe(e.item.subitemsWithAlias.length < 4), s = cn(t().type, t().subType);
|
|
873
873
|
return (() => {
|
|
874
|
-
const o = ln.cloneNode(!0),
|
|
875
|
-
return b(o, sn), u(
|
|
874
|
+
const o = ln.cloneNode(!0), i = o.firstChild;
|
|
875
|
+
return b(o, sn), u(i, p(O, {
|
|
876
876
|
onClick: () => {
|
|
877
877
|
ie({
|
|
878
878
|
selectedCall: t().id,
|
|
@@ -882,21 +882,21 @@ const on = /* @__PURE__ */ y('<div class="tag"></div>'), Te = /* @__PURE__ */ y(
|
|
|
882
882
|
get children() {
|
|
883
883
|
return [(() => {
|
|
884
884
|
const r = on.cloneNode(!0);
|
|
885
|
-
return u(r, () =>
|
|
886
|
-
const c = `${t().type}${t().subType ? ` (${t().subType})` : ""}`, d =
|
|
887
|
-
return c !== a._v$ &&
|
|
885
|
+
return u(r, () => s.icon), x((a) => {
|
|
886
|
+
const c = `${t().type}${t().subType ? ` (${t().subType})` : ""}`, d = s.color;
|
|
887
|
+
return c !== a._v$ && A(r, "title", a._v$ = c), d !== a._v$2 && r.style.setProperty("color", a._v$2 = d), a;
|
|
888
888
|
}, {
|
|
889
889
|
_v$: void 0,
|
|
890
890
|
_v$2: void 0
|
|
891
891
|
}), r;
|
|
892
892
|
})(), (() => {
|
|
893
893
|
const r = Te.cloneNode(!0);
|
|
894
|
-
return u(r, () => t().name),
|
|
894
|
+
return u(r, () => t().name), x(() => A(r, "title", t().name)), r;
|
|
895
895
|
})()];
|
|
896
896
|
}
|
|
897
|
-
}), null), u(
|
|
898
|
-
const r =
|
|
899
|
-
return () => r() && p(
|
|
897
|
+
}), null), u(i, (() => {
|
|
898
|
+
const r = m(() => t().subitemsWithAlias.length > 0);
|
|
899
|
+
return () => r() && p(O, {
|
|
900
900
|
class: "expand-button",
|
|
901
901
|
get classList() {
|
|
902
902
|
return {
|
|
@@ -921,7 +921,7 @@ const on = /* @__PURE__ */ y('<div class="tag"></div>'), Te = /* @__PURE__ */ y(
|
|
|
921
921
|
get each() {
|
|
922
922
|
return t().subitemsWithAlias;
|
|
923
923
|
},
|
|
924
|
-
children: (r) => p(
|
|
924
|
+
children: (r) => p(O, {
|
|
925
925
|
class: "subitem",
|
|
926
926
|
get classList() {
|
|
927
927
|
return {
|
|
@@ -941,7 +941,7 @@ const on = /* @__PURE__ */ y('<div class="tag"></div>'), Te = /* @__PURE__ */ y(
|
|
|
941
941
|
})
|
|
942
942
|
});
|
|
943
943
|
}
|
|
944
|
-
}), null),
|
|
944
|
+
}), null), x(() => i.classList.toggle("selected", n() ? n() === t().id : e.index === 0)), o;
|
|
945
945
|
})();
|
|
946
946
|
};
|
|
947
947
|
function cn(e, t) {
|
|
@@ -968,11 +968,11 @@ function dn(e, t) {
|
|
|
968
968
|
}
|
|
969
969
|
function un(e, t) {
|
|
970
970
|
let n = 0;
|
|
971
|
-
const l = {},
|
|
972
|
-
if (!
|
|
971
|
+
const l = {}, s = t.pattern.exec(e);
|
|
972
|
+
if (!s)
|
|
973
973
|
return null;
|
|
974
974
|
for (; n < t.keys.length; )
|
|
975
|
-
l[t.keys[n]] =
|
|
975
|
+
l[t.keys[n]] = s[++n] || null;
|
|
976
976
|
return l;
|
|
977
977
|
}
|
|
978
978
|
const [B, fn] = Ye({
|
|
@@ -989,73 +989,72 @@ function pn(e) {
|
|
|
989
989
|
}
|
|
990
990
|
function Br(e) {
|
|
991
991
|
const t = e.startTime || Date.now();
|
|
992
|
-
return () => {
|
|
993
|
-
const
|
|
992
|
+
return ({ isError: n, status: l }) => {
|
|
993
|
+
const s = e.duration || Date.now() - t;
|
|
994
994
|
fn(
|
|
995
|
-
Xt((
|
|
995
|
+
Xt((o) => {
|
|
996
996
|
const i = Le(
|
|
997
997
|
() => new URL(e.path, "http://localhost")
|
|
998
998
|
);
|
|
999
999
|
Ee(i);
|
|
1000
|
-
const
|
|
1001
|
-
let
|
|
1002
|
-
const
|
|
1003
|
-
if (typeof
|
|
1004
|
-
const
|
|
1005
|
-
return
|
|
1000
|
+
const r = i.searchParams.toString() !== "" ? Object.fromEntries(i.searchParams.entries()) : null;
|
|
1001
|
+
let a = null;
|
|
1002
|
+
const c = ye.callsProcessor.find((P) => {
|
|
1003
|
+
if (typeof P.match == "string") {
|
|
1004
|
+
const k = dn(i.pathname, P.match);
|
|
1005
|
+
return k ? (a = k, !0) : !1;
|
|
1006
1006
|
} else
|
|
1007
|
-
return
|
|
1007
|
+
return P.match({
|
|
1008
1008
|
url: i,
|
|
1009
1009
|
type: e.type,
|
|
1010
1010
|
subType: e.subType
|
|
1011
1011
|
});
|
|
1012
|
-
}),
|
|
1012
|
+
}), d = c?.callID?.({
|
|
1013
1013
|
url: i,
|
|
1014
1014
|
type: e.type,
|
|
1015
1015
|
subType: e.subType
|
|
1016
|
-
}) || typeof
|
|
1017
|
-
|
|
1018
|
-
),
|
|
1016
|
+
}) || typeof c?.match == "string" && c.match, g = btoa(
|
|
1017
|
+
d || `${i.pathname}|${e.type}${e.subType ? `|${e.subType}` : ""}`
|
|
1018
|
+
), f = c?.callName, y = typeof f == "function" ? f({
|
|
1019
1019
|
url: i,
|
|
1020
1020
|
type: e.type,
|
|
1021
1021
|
subType: e.subType
|
|
1022
|
-
}) :
|
|
1023
|
-
|
|
1024
|
-
name:
|
|
1022
|
+
}) : f;
|
|
1023
|
+
o.calls[g] || (o.calls[g] = {
|
|
1024
|
+
name: y || typeof c?.match == "string" && c.match || i.pathname.replace(/^\//, ""),
|
|
1025
1025
|
path: i.pathname.replace(/^\//, ""),
|
|
1026
1026
|
lastRequestStartTime: t,
|
|
1027
1027
|
requests: [],
|
|
1028
1028
|
type: e.type,
|
|
1029
1029
|
subType: e.subType
|
|
1030
1030
|
});
|
|
1031
|
-
const
|
|
1032
|
-
Ee(
|
|
1033
|
-
const
|
|
1031
|
+
const v = o.calls[g];
|
|
1032
|
+
Ee(v), v.requests.length > 100 && v.requests.shift();
|
|
1033
|
+
const C = {
|
|
1034
1034
|
id: ut(),
|
|
1035
|
-
duration:
|
|
1036
|
-
pathParams:
|
|
1037
|
-
isError:
|
|
1035
|
+
duration: s,
|
|
1036
|
+
pathParams: a,
|
|
1037
|
+
isError: n,
|
|
1038
1038
|
metadata: e.metadata,
|
|
1039
1039
|
path: e.path.replace(/^\//, ""),
|
|
1040
1040
|
payload: e.payload,
|
|
1041
1041
|
response: e.response,
|
|
1042
|
-
searchParams:
|
|
1043
|
-
status: e.status,
|
|
1042
|
+
searchParams: r,
|
|
1044
1043
|
startTime: t,
|
|
1045
1044
|
type: e.type,
|
|
1046
1045
|
method: e.method,
|
|
1047
1046
|
subType: e.subType,
|
|
1048
|
-
code:
|
|
1047
|
+
code: l,
|
|
1049
1048
|
tags: e.tags || []
|
|
1050
|
-
},
|
|
1051
|
-
() =>
|
|
1049
|
+
}, w = Le(
|
|
1050
|
+
() => c?.payloadAlias?.(C.payload, C)
|
|
1052
1051
|
);
|
|
1053
|
-
|
|
1052
|
+
w && (C.alias = w), v.requests.push(C);
|
|
1054
1053
|
})
|
|
1055
1054
|
);
|
|
1056
1055
|
};
|
|
1057
1056
|
}
|
|
1058
|
-
const gn = /* @__PURE__ */
|
|
1057
|
+
const gn = /* @__PURE__ */ $('<div><h1>API EXPLORER</h1><label><input type="text" placeholder="Search"></label><div></div></div>'), hn = _`
|
|
1059
1058
|
&&& {
|
|
1060
1059
|
${S()};
|
|
1061
1060
|
border-right: 1px solid ${h.white.alpha(0.1)};
|
|
@@ -1064,7 +1063,7 @@ const gn = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><label><input type="text
|
|
|
1064
1063
|
font-size: 18px;
|
|
1065
1064
|
padding-left: 12px;
|
|
1066
1065
|
padding-top: 10px;
|
|
1067
|
-
font-family: ${
|
|
1066
|
+
font-family: ${E.decorative};
|
|
1068
1067
|
color: ${h.secondary.var};
|
|
1069
1068
|
padding-bottom: 16px;
|
|
1070
1069
|
}
|
|
@@ -1108,26 +1107,26 @@ const gn = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><label><input type="text
|
|
|
1108
1107
|
}
|
|
1109
1108
|
`, yn = () => {
|
|
1110
1109
|
const e = xe(""), t = qe(() => {
|
|
1111
|
-
const l = Object.entries(B.calls),
|
|
1112
|
-
for (const [o,
|
|
1113
|
-
if (e.value.trim() && !
|
|
1110
|
+
const l = Object.entries(B.calls), s = [];
|
|
1111
|
+
for (const [o, i] of l.reverse()) {
|
|
1112
|
+
if (e.value.trim() && !i.name.includes(e.value.toLowerCase()))
|
|
1114
1113
|
continue;
|
|
1115
1114
|
const r = /* @__PURE__ */ new Set();
|
|
1116
|
-
for (const a of
|
|
1115
|
+
for (const a of i.requests)
|
|
1117
1116
|
a.alias && r.add(a.alias);
|
|
1118
|
-
|
|
1117
|
+
s.push({
|
|
1119
1118
|
id: o,
|
|
1120
1119
|
subitemsWithAlias: [...r],
|
|
1121
|
-
...
|
|
1120
|
+
...i
|
|
1122
1121
|
});
|
|
1123
1122
|
}
|
|
1124
|
-
return
|
|
1125
|
-
}, "id"), n =
|
|
1123
|
+
return s;
|
|
1124
|
+
}, "id"), n = m(() => N.selectedCall);
|
|
1126
1125
|
return (() => {
|
|
1127
|
-
const l = gn.cloneNode(!0),
|
|
1126
|
+
const l = gn.cloneNode(!0), s = l.firstChild, o = s.nextSibling, i = o.firstChild, r = o.nextSibling;
|
|
1128
1127
|
return b(l, hn), b(o, $n), u(o, p(ce, {
|
|
1129
1128
|
name: "search"
|
|
1130
|
-
}),
|
|
1129
|
+
}), i), i.$$input = (a) => {
|
|
1131
1130
|
e.value = a.currentTarget.value;
|
|
1132
1131
|
}, b(r, mn), u(r, p(z, {
|
|
1133
1132
|
get each() {
|
|
@@ -1142,7 +1141,7 @@ const gn = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><label><input type="text
|
|
|
1142
1141
|
return n();
|
|
1143
1142
|
}
|
|
1144
1143
|
})
|
|
1145
|
-
})),
|
|
1144
|
+
})), x(() => i.value = e.value), l;
|
|
1146
1145
|
})();
|
|
1147
1146
|
};
|
|
1148
1147
|
ae(["input"]);
|
|
@@ -1152,16 +1151,16 @@ function et(...e) {
|
|
|
1152
1151
|
const l = e[n];
|
|
1153
1152
|
if (!l)
|
|
1154
1153
|
continue;
|
|
1155
|
-
const
|
|
1156
|
-
if (
|
|
1154
|
+
const s = typeof l;
|
|
1155
|
+
if (s === "string" || s === "number")
|
|
1157
1156
|
t.push(l);
|
|
1158
|
-
else if (
|
|
1159
|
-
for (let o = 0,
|
|
1160
|
-
l[
|
|
1157
|
+
else if (s === "object")
|
|
1158
|
+
for (let o = 0, i = Object.keys(l); o < i.length; o++)
|
|
1159
|
+
l[i[o]] && t.push(i[o]);
|
|
1161
1160
|
}
|
|
1162
1161
|
return t.join(" ");
|
|
1163
1162
|
}
|
|
1164
|
-
const vn = /* @__PURE__ */
|
|
1163
|
+
const vn = /* @__PURE__ */ $('<div><div class="content"></div></div>'), bn = /* @__PURE__ */ $("<h1></h1>"), Cn = _`
|
|
1165
1164
|
&&& {
|
|
1166
1165
|
${S()};
|
|
1167
1166
|
|
|
@@ -1169,7 +1168,7 @@ const vn = /* @__PURE__ */ y('<div><div class="content"></div></div>'), bn = /*
|
|
|
1169
1168
|
font-size: 14px;
|
|
1170
1169
|
color: ${h.secondary.var};
|
|
1171
1170
|
letter-spacing: 0.08em;
|
|
1172
|
-
font-family: ${
|
|
1171
|
+
font-family: ${E.decorative};
|
|
1173
1172
|
font-weight: 300;
|
|
1174
1173
|
background: ${h.bgPrimary.var};
|
|
1175
1174
|
z-index: 1;
|
|
@@ -1195,15 +1194,15 @@ const vn = /* @__PURE__ */ y('<div><div class="content"></div></div>'), bn = /*
|
|
|
1195
1194
|
margin-top: 20px;
|
|
1196
1195
|
}
|
|
1197
1196
|
}
|
|
1198
|
-
`,
|
|
1197
|
+
`, T = (e) => (() => {
|
|
1199
1198
|
const t = vn.cloneNode(!0), n = t.firstChild;
|
|
1200
1199
|
return u(t, (() => {
|
|
1201
|
-
const l =
|
|
1200
|
+
const l = m(() => !!e.title);
|
|
1202
1201
|
return () => l() && (() => {
|
|
1203
|
-
const
|
|
1204
|
-
return u(
|
|
1202
|
+
const s = bn.cloneNode(!0);
|
|
1203
|
+
return u(s, () => e.title), s;
|
|
1205
1204
|
})();
|
|
1206
|
-
})(), n), u(n, () => e.children),
|
|
1205
|
+
})(), n), u(n, () => e.children), x(() => b(t, et(Cn, e.class))), t;
|
|
1207
1206
|
})(), xn = `
|
|
1208
1207
|
user-select: text;
|
|
1209
1208
|
|
|
@@ -1219,9 +1218,9 @@ function wn(e) {
|
|
|
1219
1218
|
-webkit-box-orient: vertical;
|
|
1220
1219
|
`;
|
|
1221
1220
|
}
|
|
1222
|
-
const _n = /* @__PURE__ */
|
|
1221
|
+
const _n = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Sn = /* @__PURE__ */ $('<div class="collapsed"></div>'), Nn = /* @__PURE__ */ $('<div class="delimiter">[]</div>'), kn = /* @__PURE__ */ $('<div class="delimiter">{}</div>'), Oe = /* @__PURE__ */ $('<div class="delimiter"></div>'), je = /* @__PURE__ */ $('<div class="childs"></div>'), An = /* @__PURE__ */ $('<div class="delimiter end">]</div>'), Me = /* @__PURE__ */ $('<div class="child"></div>'), Pn = /* @__PURE__ */ $('<div class="delimiter end">}</div>'), Tn = /* @__PURE__ */ $('<div class="value" title="Shift + Click to copy value"></div>'), Re = /* @__PURE__ */ $('<span class="string-quotes">"</span>'), En = /* @__PURE__ */ $("<div></div>"), Ln = _`
|
|
1223
1222
|
&&& {
|
|
1224
|
-
font-family: ${
|
|
1223
|
+
font-family: ${E.decorative};
|
|
1225
1224
|
font-size: 13px;
|
|
1226
1225
|
${xn};
|
|
1227
1226
|
${S({
|
|
@@ -1332,9 +1331,9 @@ const _n = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1332
1331
|
}
|
|
1333
1332
|
}
|
|
1334
1333
|
`, On = new Intl.NumberFormat("en-US"), Z = 14, ve = (e) => {
|
|
1335
|
-
let [t, n] = ne(!(e.indent > 0 && e.compact)), [l,
|
|
1336
|
-
return
|
|
1337
|
-
const o = e.value,
|
|
1334
|
+
let [t, n] = ne(!(e.indent > 0 && e.compact)), [l, s] = ne(!e.compact);
|
|
1335
|
+
return m(() => {
|
|
1336
|
+
const o = e.value, i = Array.isArray(o), r = !i && typeof o == "object" && o !== null, a = e.key !== void 0 || e.index !== void 0, c = i && o.length > 0 || r && Object.keys(o).length > 0, d = c && p(O, {
|
|
1338
1337
|
onClick: () => {
|
|
1339
1338
|
n(() => !t());
|
|
1340
1339
|
},
|
|
@@ -1353,78 +1352,78 @@ const _n = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1353
1352
|
});
|
|
1354
1353
|
return [a && (() => {
|
|
1355
1354
|
const g = _n.cloneNode(!0), f = g.firstChild;
|
|
1356
|
-
return g.$$click = (
|
|
1357
|
-
|
|
1358
|
-
}, u(g,
|
|
1355
|
+
return g.$$click = (y) => {
|
|
1356
|
+
y.shiftKey && te(JSON.stringify(o));
|
|
1357
|
+
}, u(g, i || r ? d : null, f), u(f, () => e.key || e.index), x((y) => {
|
|
1359
1358
|
const v = `${e.key ? `${e.key}
|
|
1360
|
-
` : ""}Shift + Click to copy value`,
|
|
1361
|
-
return v !==
|
|
1359
|
+
` : ""}Shift + Click to copy value`, C = e.index !== void 0;
|
|
1360
|
+
return v !== y._v$ && A(g, "title", y._v$ = v), C !== y._v$2 && g.classList.toggle("index", y._v$2 = C), y;
|
|
1362
1361
|
}, {
|
|
1363
1362
|
_v$: void 0,
|
|
1364
1363
|
_v$2: void 0
|
|
1365
1364
|
}), g;
|
|
1366
|
-
})(),
|
|
1367
|
-
const g =
|
|
1365
|
+
})(), m((() => {
|
|
1366
|
+
const g = m(() => !!(a && c && !t()));
|
|
1368
1367
|
return () => g() ? (() => {
|
|
1369
1368
|
const f = Sn.cloneNode(!0);
|
|
1370
|
-
return u(f, () =>
|
|
1371
|
-
})() : (() =>
|
|
1369
|
+
return u(f, () => i ? `[…] ${o.length} items` : `{…} ${Object.keys(o).length} properties`), f;
|
|
1370
|
+
})() : (() => i && o.length === 0 ? Nn.cloneNode(!0) : r && Object.keys(o).length === 0 ? kn.cloneNode(!0) : i ? [(() => {
|
|
1372
1371
|
const f = Oe.cloneNode(!0);
|
|
1373
|
-
return re(f, "click", a ? void 0 : (
|
|
1374
|
-
|
|
1375
|
-
}, !0),
|
|
1376
|
-
})(),
|
|
1377
|
-
const f =
|
|
1372
|
+
return re(f, "click", a ? void 0 : (y) => {
|
|
1373
|
+
y.shiftKey && te(JSON.stringify(o));
|
|
1374
|
+
}, !0), A(f, "title", a ? void 0 : "Shift + Click to copy value"), u(f, !a && d, null), u(f, () => t() ? "[" : `[…] ${o.length} items`, null), f;
|
|
1375
|
+
})(), m((() => {
|
|
1376
|
+
const f = m(() => !!t());
|
|
1378
1377
|
return () => f() && [(() => {
|
|
1379
|
-
const
|
|
1380
|
-
return u(
|
|
1378
|
+
const y = je.cloneNode(!0);
|
|
1379
|
+
return u(y, () => {
|
|
1381
1380
|
let v = o;
|
|
1382
|
-
const
|
|
1383
|
-
return l() || (v = v.slice(0, Z)), [
|
|
1384
|
-
const
|
|
1385
|
-
return u(
|
|
1381
|
+
const C = v.length;
|
|
1382
|
+
return l() || (v = v.slice(0, Z)), [m(() => v.map((w, P) => (() => {
|
|
1383
|
+
const k = Me.cloneNode(!0);
|
|
1384
|
+
return u(k, p(ve, {
|
|
1386
1385
|
value: w,
|
|
1387
1386
|
get indent() {
|
|
1388
1387
|
return e.indent + 1;
|
|
1389
1388
|
},
|
|
1390
|
-
index:
|
|
1389
|
+
index: P,
|
|
1391
1390
|
get compact() {
|
|
1392
1391
|
return e.compact;
|
|
1393
1392
|
}
|
|
1394
|
-
})),
|
|
1395
|
-
})())),
|
|
1396
|
-
const w =
|
|
1397
|
-
return () => w() && p(
|
|
1393
|
+
})), k;
|
|
1394
|
+
})())), m((() => {
|
|
1395
|
+
const w = m(() => !l() && C > Z);
|
|
1396
|
+
return () => w() && p(O, {
|
|
1398
1397
|
onClick: () => {
|
|
1399
|
-
|
|
1398
|
+
s(() => !0);
|
|
1400
1399
|
},
|
|
1401
1400
|
class: "show-all",
|
|
1402
1401
|
get children() {
|
|
1403
|
-
return ["…show all (+",
|
|
1402
|
+
return ["…show all (+", C - Z, ")"];
|
|
1404
1403
|
}
|
|
1405
1404
|
});
|
|
1406
1405
|
})())];
|
|
1407
|
-
}),
|
|
1406
|
+
}), y;
|
|
1408
1407
|
})(), An.cloneNode(!0)];
|
|
1409
1408
|
})())] : r ? [(() => {
|
|
1410
1409
|
const f = Oe.cloneNode(!0);
|
|
1411
|
-
return re(f, "click", a ? void 0 : (
|
|
1412
|
-
|
|
1413
|
-
}, !0),
|
|
1414
|
-
const
|
|
1415
|
-
return () =>
|
|
1410
|
+
return re(f, "click", a ? void 0 : (y) => {
|
|
1411
|
+
y.shiftKey && te(JSON.stringify(o));
|
|
1412
|
+
}, !0), A(f, "title", a ? void 0 : "Shift + Click to copy value"), u(f, !a && d, null), u(f, (() => {
|
|
1413
|
+
const y = m(() => !!t());
|
|
1414
|
+
return () => y() ? "{" : `{…} ${Object.keys(o).length} properties`;
|
|
1416
1415
|
})(), null), f;
|
|
1417
|
-
})(),
|
|
1418
|
-
const f =
|
|
1416
|
+
})(), m((() => {
|
|
1417
|
+
const f = m(() => !!t());
|
|
1419
1418
|
return () => f() && [(() => {
|
|
1420
|
-
const
|
|
1421
|
-
return u(
|
|
1419
|
+
const y = je.cloneNode(!0);
|
|
1420
|
+
return u(y, () => {
|
|
1422
1421
|
let v = Object.entries(o);
|
|
1423
|
-
const
|
|
1424
|
-
return l() || (v = v.slice(0, Z)), [
|
|
1425
|
-
const
|
|
1426
|
-
return u(
|
|
1427
|
-
value:
|
|
1422
|
+
const C = v.length;
|
|
1423
|
+
return l() || (v = v.slice(0, Z)), [m(() => v.map(([w, P]) => (() => {
|
|
1424
|
+
const k = Me.cloneNode(!0);
|
|
1425
|
+
return u(k, p(ve, {
|
|
1426
|
+
value: P,
|
|
1428
1427
|
key: w,
|
|
1429
1428
|
get indent() {
|
|
1430
1429
|
return e.indent + 1;
|
|
@@ -1432,30 +1431,30 @@ const _n = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1432
1431
|
get compact() {
|
|
1433
1432
|
return e.compact;
|
|
1434
1433
|
}
|
|
1435
|
-
})),
|
|
1436
|
-
})())),
|
|
1437
|
-
const w =
|
|
1438
|
-
return () => w() && p(
|
|
1434
|
+
})), k;
|
|
1435
|
+
})())), m((() => {
|
|
1436
|
+
const w = m(() => !l() && C > Z);
|
|
1437
|
+
return () => w() && p(O, {
|
|
1439
1438
|
onClick: () => {
|
|
1440
|
-
|
|
1439
|
+
s(() => !0);
|
|
1441
1440
|
},
|
|
1442
1441
|
class: "show-all",
|
|
1443
1442
|
get children() {
|
|
1444
|
-
return ["…show all (+",
|
|
1443
|
+
return ["…show all (+", C - Z, ")"];
|
|
1445
1444
|
}
|
|
1446
1445
|
});
|
|
1447
1446
|
})())];
|
|
1448
|
-
}),
|
|
1447
|
+
}), y;
|
|
1449
1448
|
})(), Pn.cloneNode(!0)];
|
|
1450
1449
|
})())] : (() => {
|
|
1451
1450
|
const f = Tn.cloneNode(!0);
|
|
1452
|
-
return f.$$click = (
|
|
1453
|
-
|
|
1454
|
-
},
|
|
1451
|
+
return f.$$click = (y) => {
|
|
1452
|
+
y.shiftKey && te(String(o));
|
|
1453
|
+
}, A(f, "data-type", typeof o), u(f, typeof o == "string" && Re.cloneNode(!0), null), u(f, () => typeof o == "number" ? On.format(o) : String(o), null), u(f, typeof o == "string" && Re.cloneNode(!0), null), f;
|
|
1455
1454
|
})())();
|
|
1456
1455
|
})())];
|
|
1457
1456
|
});
|
|
1458
|
-
},
|
|
1457
|
+
}, M = (e) => (() => {
|
|
1459
1458
|
const t = En.cloneNode(!0);
|
|
1460
1459
|
return b(t, Ln), u(t, p(ve, {
|
|
1461
1460
|
get value() {
|
|
@@ -1475,7 +1474,7 @@ let jn = 0;
|
|
|
1475
1474
|
function Mn() {
|
|
1476
1475
|
return jn++;
|
|
1477
1476
|
}
|
|
1478
|
-
const Rn = /* @__PURE__ */
|
|
1477
|
+
const Rn = /* @__PURE__ */ $("<label></label>"), Dn = /* @__PURE__ */ $('<div><div class="inputContainer"><select></select></div></div>'), In = /* @__PURE__ */ $('<option value="">-- select an option --</option>'), zn = /* @__PURE__ */ $("<option></option>"), Fn = _`
|
|
1479
1478
|
&&& {
|
|
1480
1479
|
${S({
|
|
1481
1480
|
align: "left"
|
|
@@ -1533,29 +1532,29 @@ const Rn = /* @__PURE__ */ y("<label></label>"), Dn = /* @__PURE__ */ y('<div><d
|
|
|
1533
1532
|
`, Bn = (e) => {
|
|
1534
1533
|
const t = `input${Mn()}`;
|
|
1535
1534
|
return (() => {
|
|
1536
|
-
const n = Dn.cloneNode(!0), l = n.firstChild,
|
|
1535
|
+
const n = Dn.cloneNode(!0), l = n.firstChild, s = l.firstChild;
|
|
1537
1536
|
return u(n, p(se, {
|
|
1538
1537
|
get when() {
|
|
1539
1538
|
return e.label;
|
|
1540
1539
|
},
|
|
1541
1540
|
get children() {
|
|
1542
1541
|
const o = Rn.cloneNode(!0);
|
|
1543
|
-
return
|
|
1542
|
+
return A(o, "for", t), u(o, () => e.label), o;
|
|
1544
1543
|
}
|
|
1545
|
-
}), l),
|
|
1544
|
+
}), l), s.addEventListener("change", (o) => {
|
|
1546
1545
|
o.currentTarget.value && e.onChange(o.currentTarget.value);
|
|
1547
|
-
}),
|
|
1548
|
-
const o =
|
|
1546
|
+
}), A(s, "id", t), u(s, (() => {
|
|
1547
|
+
const o = m(() => !e.value);
|
|
1549
1548
|
return () => o() && In.cloneNode(!0);
|
|
1550
|
-
})(), null), u(
|
|
1549
|
+
})(), null), u(s, p(z, {
|
|
1551
1550
|
get each() {
|
|
1552
1551
|
return e.options;
|
|
1553
1552
|
},
|
|
1554
1553
|
children: (o) => (() => {
|
|
1555
|
-
const
|
|
1556
|
-
return u(
|
|
1554
|
+
const i = zn.cloneNode(!0);
|
|
1555
|
+
return u(i, () => o.label), x(() => i.value = o.value), i;
|
|
1557
1556
|
})()
|
|
1558
|
-
}), null),
|
|
1557
|
+
}), null), x(() => b(n, et(Fn, e.class))), x(() => s.value = e.value ?? ""), n;
|
|
1559
1558
|
})();
|
|
1560
1559
|
};
|
|
1561
1560
|
function tt(e) {
|
|
@@ -1574,7 +1573,7 @@ function De(e, t) {
|
|
|
1574
1573
|
function Hn(e, t) {
|
|
1575
1574
|
return e.length > t ? `${e.slice(0, t)}...` : e;
|
|
1576
1575
|
}
|
|
1577
|
-
const Vn = /* @__PURE__ */
|
|
1576
|
+
const Vn = /* @__PURE__ */ $('<div class="changes-count"><span class="additions">+ <b></b> lines</span> | <span class="removals">- <b></b> lines</span></div>'), ge = /* @__PURE__ */ $("<div></div>"), Ie = /* @__PURE__ */ $("<div>No changes</div>"), ze = /* @__PURE__ */ $('<div class="line"></div>'), Zn = _`
|
|
1578
1577
|
&&& {
|
|
1579
1578
|
${S({
|
|
1580
1579
|
gap: 14
|
|
@@ -1599,7 +1598,7 @@ const Vn = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
1599
1598
|
gap: 0
|
|
1600
1599
|
})};
|
|
1601
1600
|
font-size: 14px;
|
|
1602
|
-
font-family: ${
|
|
1601
|
+
font-family: ${E.decorative};
|
|
1603
1602
|
white-space: pre;
|
|
1604
1603
|
overflow-x: auto;
|
|
1605
1604
|
|
|
@@ -1633,7 +1632,7 @@ const Vn = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
1633
1632
|
}
|
|
1634
1633
|
}
|
|
1635
1634
|
`, Kn = () => {
|
|
1636
|
-
const e =
|
|
1635
|
+
const e = m(() => {
|
|
1637
1636
|
const {
|
|
1638
1637
|
selectedCall: r
|
|
1639
1638
|
} = N;
|
|
@@ -1644,15 +1643,15 @@ const Vn = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
1644
1643
|
value: a.id,
|
|
1645
1644
|
label: `${Q(a.startTime).format("HH:mm:ss")} | ${Hn(tt(a), 50)}`
|
|
1646
1645
|
})).filter((a) => a.value !== N.selectedRequest) : [];
|
|
1647
|
-
}, "value"), n = xe(null), l =
|
|
1646
|
+
}, "value"), n = xe(null), l = m(() => N.selectedRequest ? e()?.requests.find((r) => r.id === N.selectedRequest) : null), s = m(() => n.value ? e()?.requests.find((r) => r.id === n.value) : null), o = m(() => {
|
|
1648
1647
|
if (!n.value || !N.selectedRequest)
|
|
1649
1648
|
return [];
|
|
1650
|
-
const r = l()?.response, a =
|
|
1649
|
+
const r = l()?.response, a = s()?.response, c = De(a, r);
|
|
1651
1650
|
return c === "no changes" ? [] : c;
|
|
1652
|
-
}),
|
|
1651
|
+
}), i = m(() => {
|
|
1653
1652
|
if (!n.value || !N.selectedRequest)
|
|
1654
1653
|
return [];
|
|
1655
|
-
const r = Be(l()), a = Be(
|
|
1654
|
+
const r = Be(l()), a = Be(s()), c = De(a, r);
|
|
1656
1655
|
return c === "no changes" ? [] : c;
|
|
1657
1656
|
});
|
|
1658
1657
|
return (() => {
|
|
@@ -1674,26 +1673,26 @@ const Vn = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
1674
1673
|
},
|
|
1675
1674
|
get children() {
|
|
1676
1675
|
return [(() => {
|
|
1677
|
-
const a = Vn.cloneNode(!0), c = a.firstChild, d = c.firstChild, g = d.nextSibling, f = c.nextSibling,
|
|
1678
|
-
return u(g, () => o().filter((w) => w.added).length), u(
|
|
1679
|
-
})(), p(
|
|
1676
|
+
const a = Vn.cloneNode(!0), c = a.firstChild, d = c.firstChild, g = d.nextSibling, f = c.nextSibling, y = f.nextSibling, v = y.firstChild, C = v.nextSibling;
|
|
1677
|
+
return u(g, () => o().filter((w) => w.added).length), u(C, () => o().filter((w) => w.removed).length), a;
|
|
1678
|
+
})(), p(T, {
|
|
1680
1679
|
get title() {
|
|
1681
|
-
return
|
|
1680
|
+
return m(() => !!l()?.payload)() ? "Payload Diff" : l()?.searchParams ? "Search Params Diff" : "Path Params Diff";
|
|
1682
1681
|
},
|
|
1683
1682
|
get children() {
|
|
1684
1683
|
const a = ge.cloneNode(!0);
|
|
1685
1684
|
return b(a, Fe), u(a, p(z, {
|
|
1686
1685
|
get each() {
|
|
1687
|
-
return
|
|
1686
|
+
return i();
|
|
1688
1687
|
},
|
|
1689
1688
|
get fallback() {
|
|
1690
1689
|
return Ie.cloneNode(!0);
|
|
1691
1690
|
},
|
|
1692
1691
|
children: (c) => (() => {
|
|
1693
1692
|
const d = ze.cloneNode(!0);
|
|
1694
|
-
return u(d, () => c.value),
|
|
1695
|
-
const f = !!c.added,
|
|
1696
|
-
return f !== g._v$ && d.classList.toggle("added", g._v$ = f),
|
|
1693
|
+
return u(d, () => c.value), x((g) => {
|
|
1694
|
+
const f = !!c.added, y = !!c.removed;
|
|
1695
|
+
return f !== g._v$ && d.classList.toggle("added", g._v$ = f), y !== g._v$2 && d.classList.toggle("removed", g._v$2 = y), g;
|
|
1697
1696
|
}, {
|
|
1698
1697
|
_v$: void 0,
|
|
1699
1698
|
_v$2: void 0
|
|
@@ -1701,7 +1700,7 @@ const Vn = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
1701
1700
|
})()
|
|
1702
1701
|
})), a;
|
|
1703
1702
|
}
|
|
1704
|
-
}), p(
|
|
1703
|
+
}), p(T, {
|
|
1705
1704
|
title: "Response Diff",
|
|
1706
1705
|
get children() {
|
|
1707
1706
|
const a = ge.cloneNode(!0);
|
|
@@ -1714,9 +1713,9 @@ const Vn = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
1714
1713
|
},
|
|
1715
1714
|
children: (c) => (() => {
|
|
1716
1715
|
const d = ze.cloneNode(!0);
|
|
1717
|
-
return u(d, () => c.value),
|
|
1718
|
-
const f = !!c.added,
|
|
1719
|
-
return f !== g._v$3 && d.classList.toggle("added", g._v$3 = f),
|
|
1716
|
+
return u(d, () => c.value), x((g) => {
|
|
1717
|
+
const f = !!c.added, y = !!c.removed;
|
|
1718
|
+
return f !== g._v$3 && d.classList.toggle("added", g._v$3 = f), y !== g._v$4 && d.classList.toggle("removed", g._v$4 = y), g;
|
|
1720
1719
|
}, {
|
|
1721
1720
|
_v$3: void 0,
|
|
1722
1721
|
_v$4: void 0
|
|
@@ -1732,20 +1731,20 @@ const Vn = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
1732
1731
|
function Be(e) {
|
|
1733
1732
|
return e ? e.payload || e.searchParams || e.pathParams : null;
|
|
1734
1733
|
}
|
|
1735
|
-
const He = /* @__PURE__ */
|
|
1734
|
+
const He = /* @__PURE__ */ $("<div></div>"), Un = /* @__PURE__ */ $("<h1></h1>"), Wn = /* @__PURE__ */ $('<div class="tags"></div>'), Jn = /* @__PURE__ */ $('<div class="details"></div>'), Xn = /* @__PURE__ */ $("<h2></h2>"), Gn = /* @__PURE__ */ $('<div class="method"></div>'), Yn = /* @__PURE__ */ $('<div class="code"></div>'), Qn = /* @__PURE__ */ $('<div class="tag error">Has Error</div>'), qn = /* @__PURE__ */ $('<div class="tag"></div>'), er = _`
|
|
1736
1735
|
&&& {
|
|
1737
1736
|
${S()};
|
|
1738
1737
|
padding-left: 10px;
|
|
1739
1738
|
|
|
1740
1739
|
> h1 {
|
|
1741
1740
|
margin-top: 12px;
|
|
1742
|
-
font-family: ${
|
|
1741
|
+
font-family: ${E.decorative};
|
|
1743
1742
|
${de};
|
|
1744
1743
|
}
|
|
1745
1744
|
|
|
1746
1745
|
> h2 {
|
|
1747
1746
|
margin-top: 4px;
|
|
1748
|
-
font-family: ${
|
|
1747
|
+
font-family: ${E.decorative};
|
|
1749
1748
|
font-size: 12px;
|
|
1750
1749
|
opacity: 0.5;
|
|
1751
1750
|
}
|
|
@@ -1817,18 +1816,18 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1817
1816
|
}
|
|
1818
1817
|
}
|
|
1819
1818
|
`, nr = () => {
|
|
1820
|
-
const e =
|
|
1819
|
+
const e = m(() => N.selectedCall), t = m(() => N.selectedRequest), n = m(() => N.selectedTab || "summary"), l = m(() => {
|
|
1821
1820
|
let o;
|
|
1822
1821
|
e() ? o = B.calls[e()] : o = Object.values(B.calls).at(-1);
|
|
1823
|
-
const
|
|
1824
|
-
return
|
|
1825
|
-
...
|
|
1822
|
+
const i = t() && o?.requests.find((r) => r.id === t()) || o?.requests.at(-1);
|
|
1823
|
+
return i && o ? {
|
|
1824
|
+
...i,
|
|
1826
1825
|
callName: o.name,
|
|
1827
1826
|
callPath: o.path
|
|
1828
1827
|
} : null;
|
|
1829
1828
|
});
|
|
1830
|
-
function
|
|
1831
|
-
return p(
|
|
1829
|
+
function s(o, i) {
|
|
1830
|
+
return p(O, {
|
|
1832
1831
|
get classList() {
|
|
1833
1832
|
return {
|
|
1834
1833
|
selected: n() === o
|
|
@@ -1837,7 +1836,7 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1837
1836
|
onClick: () => {
|
|
1838
1837
|
ie("selectedTab", o);
|
|
1839
1838
|
},
|
|
1840
|
-
children:
|
|
1839
|
+
children: i
|
|
1841
1840
|
});
|
|
1842
1841
|
}
|
|
1843
1842
|
return (() => {
|
|
@@ -1847,35 +1846,35 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1847
1846
|
return l();
|
|
1848
1847
|
},
|
|
1849
1848
|
keyed: !0,
|
|
1850
|
-
children: (
|
|
1849
|
+
children: (i) => [(() => {
|
|
1851
1850
|
const r = Un.cloneNode(!0);
|
|
1852
|
-
return u(r, () =>
|
|
1853
|
-
})(),
|
|
1854
|
-
const r =
|
|
1851
|
+
return u(r, () => i.callName, null), u(r, () => i.alias && ` | ${i.alias}`, null), r;
|
|
1852
|
+
})(), m((() => {
|
|
1853
|
+
const r = m(() => i.callPath !== i.callName);
|
|
1855
1854
|
return () => r() && (() => {
|
|
1856
1855
|
const a = Xn.cloneNode(!0);
|
|
1857
|
-
return u(a, () =>
|
|
1856
|
+
return u(a, () => i.callPath), a;
|
|
1858
1857
|
})();
|
|
1859
1858
|
})()), (() => {
|
|
1860
1859
|
const r = Wn.cloneNode(!0);
|
|
1861
1860
|
return u(r, (() => {
|
|
1862
|
-
const a =
|
|
1861
|
+
const a = m(() => !!i.method);
|
|
1863
1862
|
return () => a() && (() => {
|
|
1864
1863
|
const c = Gn.cloneNode(!0);
|
|
1865
|
-
return u(c, () =>
|
|
1864
|
+
return u(c, () => i.method), c;
|
|
1866
1865
|
})();
|
|
1867
1866
|
})(), null), u(r, (() => {
|
|
1868
|
-
const a =
|
|
1867
|
+
const a = m(() => !!i.code);
|
|
1869
1868
|
return () => a() && (() => {
|
|
1870
1869
|
const c = Yn.cloneNode(!0);
|
|
1871
|
-
return u(c, () =>
|
|
1870
|
+
return u(c, () => i.code), x(() => c.classList.toggle("error", i.code >= 400)), c;
|
|
1872
1871
|
})();
|
|
1873
1872
|
})(), null), u(r, (() => {
|
|
1874
|
-
const a =
|
|
1873
|
+
const a = m(() => !!i.isError);
|
|
1875
1874
|
return () => a() && Qn.cloneNode(!0);
|
|
1876
1875
|
})(), null), u(r, p(z, {
|
|
1877
1876
|
get each() {
|
|
1878
|
-
return
|
|
1877
|
+
return i.tags;
|
|
1879
1878
|
},
|
|
1880
1879
|
children: (a) => (() => {
|
|
1881
1880
|
const c = qn.cloneNode(!0);
|
|
@@ -1884,13 +1883,13 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1884
1883
|
}), null), r;
|
|
1885
1884
|
})(), (() => {
|
|
1886
1885
|
const r = He.cloneNode(!0);
|
|
1887
|
-
return b(r, tr), u(r, () =>
|
|
1888
|
-
const a =
|
|
1889
|
-
return () => a() &&
|
|
1886
|
+
return b(r, tr), u(r, () => s("summary", "Summary"), null), u(r, (() => {
|
|
1887
|
+
const a = m(() => !!i.payload);
|
|
1888
|
+
return () => a() && s("payload", "Payload");
|
|
1890
1889
|
})(), null), u(r, (() => {
|
|
1891
|
-
const a =
|
|
1892
|
-
return () => a() &&
|
|
1893
|
-
})(), null), u(r, () =>
|
|
1890
|
+
const a = m(() => !!i.searchParams);
|
|
1891
|
+
return () => a() && s("urlParams", "URL Params");
|
|
1892
|
+
})(), null), u(r, () => s("response", "Response"), null), u(r, () => s("diff", "Diff"), null), r;
|
|
1894
1893
|
})(), (() => {
|
|
1895
1894
|
const r = Jn.cloneNode(!0);
|
|
1896
1895
|
return u(r, p(dt, {
|
|
@@ -1900,54 +1899,54 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1900
1899
|
return n() === "summary";
|
|
1901
1900
|
},
|
|
1902
1901
|
get children() {
|
|
1903
|
-
return [
|
|
1902
|
+
return [m(() => m(() => !!i.payload)() && p(T, {
|
|
1904
1903
|
title: "Payload",
|
|
1905
1904
|
get children() {
|
|
1906
|
-
return p(
|
|
1905
|
+
return p(M, {
|
|
1907
1906
|
get value() {
|
|
1908
|
-
return
|
|
1907
|
+
return i.payload;
|
|
1909
1908
|
},
|
|
1910
1909
|
compact: !0
|
|
1911
1910
|
});
|
|
1912
1911
|
}
|
|
1913
|
-
})),
|
|
1912
|
+
})), m(() => m(() => !!i.searchParams)() && p(T, {
|
|
1914
1913
|
title: "URL Params",
|
|
1915
1914
|
get children() {
|
|
1916
|
-
return p(
|
|
1915
|
+
return p(M, {
|
|
1917
1916
|
get value() {
|
|
1918
|
-
return
|
|
1917
|
+
return i.searchParams;
|
|
1919
1918
|
},
|
|
1920
1919
|
compact: !0
|
|
1921
1920
|
});
|
|
1922
1921
|
}
|
|
1923
|
-
})),
|
|
1922
|
+
})), m(() => m(() => !!i.response)() && p(T, {
|
|
1924
1923
|
title: "Response",
|
|
1925
1924
|
get children() {
|
|
1926
|
-
return p(
|
|
1925
|
+
return p(M, {
|
|
1927
1926
|
get value() {
|
|
1928
|
-
return
|
|
1927
|
+
return i.response;
|
|
1929
1928
|
},
|
|
1930
1929
|
compact: !0
|
|
1931
1930
|
});
|
|
1932
1931
|
}
|
|
1933
|
-
})), p(
|
|
1932
|
+
})), p(T, {
|
|
1934
1933
|
title: "Stats",
|
|
1935
1934
|
get children() {
|
|
1936
|
-
return p(
|
|
1935
|
+
return p(M, {
|
|
1937
1936
|
get value() {
|
|
1938
1937
|
return {
|
|
1939
|
-
"Duration (ms)": Math.round(
|
|
1940
|
-
"Start Time": `${Q(
|
|
1938
|
+
"Duration (ms)": Math.round(i.duration),
|
|
1939
|
+
"Start Time": `${Q(i.startTime).format("HH:mm:ss")} (${Q(i.startTime).fromNow()})`
|
|
1941
1940
|
};
|
|
1942
1941
|
}
|
|
1943
1942
|
});
|
|
1944
1943
|
}
|
|
1945
|
-
}), p(
|
|
1944
|
+
}), p(T, {
|
|
1946
1945
|
title: "Metadata",
|
|
1947
1946
|
get children() {
|
|
1948
|
-
return p(
|
|
1947
|
+
return p(M, {
|
|
1949
1948
|
get value() {
|
|
1950
|
-
return
|
|
1949
|
+
return i.metadata;
|
|
1951
1950
|
}
|
|
1952
1951
|
});
|
|
1953
1952
|
}
|
|
@@ -1958,12 +1957,12 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1958
1957
|
return n() === "payload";
|
|
1959
1958
|
},
|
|
1960
1959
|
get children() {
|
|
1961
|
-
return p(
|
|
1960
|
+
return p(T, {
|
|
1962
1961
|
title: null,
|
|
1963
1962
|
get children() {
|
|
1964
|
-
return p(
|
|
1963
|
+
return p(M, {
|
|
1965
1964
|
get value() {
|
|
1966
|
-
return
|
|
1965
|
+
return i.payload;
|
|
1967
1966
|
}
|
|
1968
1967
|
});
|
|
1969
1968
|
}
|
|
@@ -1974,12 +1973,12 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1974
1973
|
return n() === "response";
|
|
1975
1974
|
},
|
|
1976
1975
|
get children() {
|
|
1977
|
-
return p(
|
|
1976
|
+
return p(T, {
|
|
1978
1977
|
title: null,
|
|
1979
1978
|
get children() {
|
|
1980
|
-
return p(
|
|
1979
|
+
return p(M, {
|
|
1981
1980
|
get value() {
|
|
1982
|
-
return
|
|
1981
|
+
return i.response;
|
|
1983
1982
|
}
|
|
1984
1983
|
});
|
|
1985
1984
|
}
|
|
@@ -1990,12 +1989,12 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1990
1989
|
return n() === "urlParams";
|
|
1991
1990
|
},
|
|
1992
1991
|
get children() {
|
|
1993
|
-
return p(
|
|
1992
|
+
return p(T, {
|
|
1994
1993
|
title: null,
|
|
1995
1994
|
get children() {
|
|
1996
|
-
return p(
|
|
1995
|
+
return p(M, {
|
|
1997
1996
|
get value() {
|
|
1998
|
-
return
|
|
1997
|
+
return i.searchParams;
|
|
1999
1998
|
}
|
|
2000
1999
|
});
|
|
2001
2000
|
}
|
|
@@ -2014,7 +2013,7 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2014
2013
|
})()]
|
|
2015
2014
|
})), o;
|
|
2016
2015
|
})();
|
|
2017
|
-
}, rr = /* @__PURE__ */
|
|
2016
|
+
}, rr = /* @__PURE__ */ $("<div><h1>timeline</h1><div></div></div>"), or = /* @__PURE__ */ $("<div>no requests found</div>"), lr = /* @__PURE__ */ $('<span class="start-time"></span>'), ir = /* @__PURE__ */ $("<div></div>"), sr = /* @__PURE__ */ $('<span class="separator">|</span>'), ar = /* @__PURE__ */ $('<span class="payload"></span>'), cr = _`
|
|
2018
2017
|
&&& {
|
|
2019
2018
|
${S()};
|
|
2020
2019
|
border-right: 1px solid ${h.white.alpha(0.1)};
|
|
@@ -2023,7 +2022,7 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2023
2022
|
font-size: 16px;
|
|
2024
2023
|
padding-left: 12px;
|
|
2025
2024
|
padding-top: 10px;
|
|
2026
|
-
font-family: ${
|
|
2025
|
+
font-family: ${E.decorative};
|
|
2027
2026
|
color: ${h.secondary.var};
|
|
2028
2027
|
padding-bottom: 16px;
|
|
2029
2028
|
}
|
|
@@ -2057,7 +2056,7 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2057
2056
|
}
|
|
2058
2057
|
|
|
2059
2058
|
> .start-time {
|
|
2060
|
-
font-family: ${
|
|
2059
|
+
font-family: ${E.decorative};
|
|
2061
2060
|
}
|
|
2062
2061
|
|
|
2063
2062
|
> .separator {
|
|
@@ -2078,16 +2077,16 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2078
2077
|
padding-top: 0;
|
|
2079
2078
|
}
|
|
2080
2079
|
`, pr = () => {
|
|
2081
|
-
const e =
|
|
2082
|
-
const
|
|
2083
|
-
return
|
|
2084
|
-
}), t =
|
|
2085
|
-
const
|
|
2086
|
-
return
|
|
2087
|
-
}), n =
|
|
2080
|
+
const e = m(() => {
|
|
2081
|
+
const s = N.selectedCall;
|
|
2082
|
+
return s ? s ? B.calls[s] : null : Object.values(B.calls).at(-1) || null;
|
|
2083
|
+
}), t = m(() => {
|
|
2084
|
+
const s = nt(e()?.requests);
|
|
2085
|
+
return s.length === 0 ? null : s;
|
|
2086
|
+
}), n = m(() => N.selectedSubitem ? t()?.filter((s) => s.alias === N.selectedSubitem) : t()), l = m(() => N.selectedRequest || n()?.[0]?.id);
|
|
2088
2087
|
return (() => {
|
|
2089
|
-
const
|
|
2090
|
-
return b(
|
|
2088
|
+
const s = rr.cloneNode(!0), o = s.firstChild, i = o.nextSibling;
|
|
2089
|
+
return b(s, cr), b(i, dr), u(i, p(z, {
|
|
2091
2090
|
get each() {
|
|
2092
2091
|
return n();
|
|
2093
2092
|
},
|
|
@@ -2101,7 +2100,7 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2101
2100
|
const a = Q(r.startTime), c = a.format("HH:mm:ss"), d = a.fromNow(), g = tt(r);
|
|
2102
2101
|
return (() => {
|
|
2103
2102
|
const f = ir.cloneNode(!0);
|
|
2104
|
-
return b(f, ur), u(f, p(
|
|
2103
|
+
return b(f, ur), u(f, p(O, {
|
|
2105
2104
|
onClick: () => {
|
|
2106
2105
|
ie("selectedRequest", r.id);
|
|
2107
2106
|
},
|
|
@@ -2112,19 +2111,19 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2112
2111
|
},
|
|
2113
2112
|
get children() {
|
|
2114
2113
|
return [(() => {
|
|
2115
|
-
const
|
|
2116
|
-
return
|
|
2117
|
-
})(),
|
|
2118
|
-
const
|
|
2119
|
-
return
|
|
2114
|
+
const y = lr.cloneNode(!0);
|
|
2115
|
+
return A(y, "title", d), u(y, c), y;
|
|
2116
|
+
})(), m(() => !!g && [sr.cloneNode(!0), (() => {
|
|
2117
|
+
const y = ar.cloneNode(!0);
|
|
2118
|
+
return A(y, "title", g), u(y, g), y;
|
|
2120
2119
|
})()])];
|
|
2121
2120
|
}
|
|
2122
|
-
})),
|
|
2121
|
+
})), x(() => f.classList.toggle("error", !!r.isError)), f;
|
|
2123
2122
|
})();
|
|
2124
2123
|
}
|
|
2125
|
-
})),
|
|
2124
|
+
})), s;
|
|
2126
2125
|
})();
|
|
2127
|
-
}, gr = /* @__PURE__ */
|
|
2126
|
+
}, gr = /* @__PURE__ */ $("<div></div>"), hr = _`
|
|
2128
2127
|
&&& {
|
|
2129
2128
|
display: grid;
|
|
2130
2129
|
grid-template-columns: 1.5fr 1fr 3fr;
|
|
@@ -2133,7 +2132,7 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2133
2132
|
const e = gr.cloneNode(!0);
|
|
2134
2133
|
return b(e, hr), u(e, p(yn, {}), null), u(e, p(pr, {}), null), u(e, p(nr, {}), null), e;
|
|
2135
2134
|
})(), $r = `
|
|
2136
|
-
font-family: ${
|
|
2135
|
+
font-family: ${E.primary};
|
|
2137
2136
|
color: ${h.textPrimary.var};
|
|
2138
2137
|
|
|
2139
2138
|
* {
|
|
@@ -2263,13 +2262,13 @@ button {
|
|
|
2263
2262
|
}
|
|
2264
2263
|
`;
|
|
2265
2264
|
let br = { data: "" }, Cr = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || br, xr = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, wr = /\/\*[^]*?\*\/| +/g, Ve = /\n+/g, D = (e, t) => {
|
|
2266
|
-
let n = "", l = "",
|
|
2265
|
+
let n = "", l = "", s = "";
|
|
2267
2266
|
for (let o in e) {
|
|
2268
|
-
let
|
|
2269
|
-
o[0] == "@" ? o[1] == "i" ? n = o + " " +
|
|
2267
|
+
let i = e[o];
|
|
2268
|
+
o[0] == "@" ? o[1] == "i" ? n = o + " " + i + ";" : l += o[1] == "f" ? D(i, o) : o + "{" + D(i, o[1] == "k" ? "" : t) + "}" : typeof i == "object" ? l += D(i, t ? t.replace(/([^,])+/g, (r) => o.replace(/(^:.*)|([^,])+/g, (a) => /&/.test(a) ? a.replace(/&/g, r) : r ? r + " " + a : a)) : o) : i != null && (o = /^--/.test(o) ? o : o.replace(/[A-Z]/g, "-$&").toLowerCase(), s += D.p ? D.p(o, i) : o + ":" + i + ";");
|
|
2270
2269
|
}
|
|
2271
|
-
return n + (t &&
|
|
2272
|
-
},
|
|
2270
|
+
return n + (t && s ? t + "{" + s + "}" : s) + l;
|
|
2271
|
+
}, L = {}, rt = (e) => {
|
|
2273
2272
|
if (typeof e == "object") {
|
|
2274
2273
|
let t = "";
|
|
2275
2274
|
for (let n in e)
|
|
@@ -2277,41 +2276,41 @@ let br = { data: "" }, Cr = (e) => typeof window == "object" ? ((e ? e.querySele
|
|
|
2277
2276
|
return t;
|
|
2278
2277
|
}
|
|
2279
2278
|
return e;
|
|
2280
|
-
}, _r = (e, t, n, l,
|
|
2281
|
-
let o = rt(e),
|
|
2279
|
+
}, _r = (e, t, n, l, s) => {
|
|
2280
|
+
let o = rt(e), i = L[o] || (L[o] = ((a) => {
|
|
2282
2281
|
let c = 0, d = 11;
|
|
2283
2282
|
for (; c < a.length; )
|
|
2284
2283
|
d = 101 * d + a.charCodeAt(c++) >>> 0;
|
|
2285
2284
|
return "go" + d;
|
|
2286
2285
|
})(o));
|
|
2287
|
-
if (!
|
|
2286
|
+
if (!L[i]) {
|
|
2288
2287
|
let a = o !== e ? e : ((c) => {
|
|
2289
2288
|
let d, g, f = [{}];
|
|
2290
2289
|
for (; d = xr.exec(c.replace(wr, "")); )
|
|
2291
2290
|
d[4] ? f.shift() : d[3] ? (g = d[3].replace(Ve, " ").trim(), f.unshift(f[0][g] = f[0][g] || {})) : f[0][d[1]] = d[2].replace(Ve, " ").trim();
|
|
2292
2291
|
return f[0];
|
|
2293
2292
|
})(e);
|
|
2294
|
-
|
|
2293
|
+
L[i] = D(s ? { ["@keyframes " + i]: a } : a, n ? "" : "." + i);
|
|
2295
2294
|
}
|
|
2296
|
-
let r = n &&
|
|
2297
|
-
return n && (
|
|
2295
|
+
let r = n && L.g ? L.g : null;
|
|
2296
|
+
return n && (L.g = L[i]), ((a, c, d, g) => {
|
|
2298
2297
|
g ? c.data = c.data.replace(g, a) : c.data.indexOf(a) === -1 && (c.data = d ? a + c.data : c.data + a);
|
|
2299
|
-
})(
|
|
2300
|
-
}, Sr = (e, t, n) => e.reduce((l,
|
|
2301
|
-
let
|
|
2302
|
-
if (
|
|
2303
|
-
let r =
|
|
2304
|
-
|
|
2298
|
+
})(L[i], t, l, r), i;
|
|
2299
|
+
}, Sr = (e, t, n) => e.reduce((l, s, o) => {
|
|
2300
|
+
let i = t[o];
|
|
2301
|
+
if (i && i.call) {
|
|
2302
|
+
let r = i(n), a = r && r.props && r.props.className || /^go/.test(r) && r;
|
|
2303
|
+
i = a ? "." + a : r && typeof r == "object" ? r.props ? "" : D(r, "") : r === !1 ? "" : r;
|
|
2305
2304
|
}
|
|
2306
|
-
return l +
|
|
2305
|
+
return l + s + (i ?? "");
|
|
2307
2306
|
}, "");
|
|
2308
2307
|
function ue(e) {
|
|
2309
2308
|
let t = this || {}, n = e.call ? e(t.p) : e;
|
|
2310
|
-
return _r(n.unshift ? n.raw ? Sr(n, [].slice.call(arguments, 1), t.p) : n.reduce((l,
|
|
2309
|
+
return _r(n.unshift ? n.raw ? Sr(n, [].slice.call(arguments, 1), t.p) : n.reduce((l, s) => Object.assign(l, s && s.call ? s(t.p) : s), {}) : n, Cr(t.target), t.g, t.o, t.k);
|
|
2311
2310
|
}
|
|
2312
2311
|
ue.bind({ g: 1 });
|
|
2313
2312
|
ue.bind({ k: 1 });
|
|
2314
|
-
const Nr = /* @__PURE__ */
|
|
2313
|
+
const Nr = /* @__PURE__ */ $("<div></div>"), kr = /* @__PURE__ */ $('<div id="dev-tools-root-element"><nav></nav><main></main></div>'), Ar = ue`
|
|
2315
2314
|
${vr};
|
|
2316
2315
|
${$r};
|
|
2317
2316
|
|
|
@@ -2355,7 +2354,7 @@ const Nr = /* @__PURE__ */ y("<div></div>"), kr = /* @__PURE__ */ y('<div id="de
|
|
|
2355
2354
|
return re(e, "click", Or, !0), b(e, Pr), e;
|
|
2356
2355
|
})(), (() => {
|
|
2357
2356
|
const e = kr.cloneNode(!0), t = e.firstChild, n = t.nextSibling;
|
|
2358
|
-
return b(e, Ar), u(t, p(
|
|
2357
|
+
return b(e, Ar), u(t, p(O, {
|
|
2359
2358
|
title: "API Explorer",
|
|
2360
2359
|
get children() {
|
|
2361
2360
|
return p(ce, {
|