@har-analyzer/components 0.0.14 → 0.0.16

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 (32) hide show
  1. package/README.md +16 -12
  2. package/dist/chunks/collapsible-key-value-list.js +24 -0
  3. package/dist/chunks/collapsible-section.js +22 -0
  4. package/dist/chunks/content-viewer.js +3050 -0
  5. package/dist/chunks/headers-viewer.js +32 -0
  6. package/dist/chunks/index.js +2196 -172
  7. package/dist/chunks/index2.js +49 -0
  8. package/dist/chunks/payload-viewer.js +15 -0
  9. package/dist/chunks/response-viewer.js +10 -0
  10. package/dist/chunks/vertical-gap.js +1 -1
  11. package/dist/components/collapsible-section.d.ts +2 -1
  12. package/dist/components/enhanced-board/constants/i18n.d.ts +11 -6
  13. package/dist/components/enhanced-board/index.d.ts +7 -9
  14. package/dist/components/enhanced-table.d.ts +5 -1
  15. package/dist/components/horizontal-padding.d.ts +2 -0
  16. package/dist/components/inline-copy-to-clipboard.d.ts +6 -0
  17. package/dist/components/lazy-load.d.ts +2 -0
  18. package/dist/features/har-entries-viewer/index.d.ts +2 -1
  19. package/dist/features/list-har-entries/components/compare-mode-switcher.d.ts +6 -0
  20. package/dist/features/{har-entries-viewer/components/har-entries-filters → list-har-entries}/components/content-type-filter.d.ts +1 -1
  21. package/dist/features/list-har-entries/index.d.ts +5 -3
  22. package/dist/har-analyzer.js +72 -65
  23. package/dist/har-entries-viewer.js +166 -7
  24. package/dist/hooks/compare-mode-preference.d.ts +1 -0
  25. package/dist/index.d.ts +0 -1
  26. package/dist/index.js +14 -15
  27. package/dist/list-har-entries.js +7 -2126
  28. package/dist/view-har-entry.js +5 -3128
  29. package/package.json +1 -1
  30. package/dist/features/har-entries-viewer/components/har-entries-filters/index.d.ts +0 -1
  31. /package/dist/features/{har-entries-viewer/components/har-entries-filters → list-har-entries}/components/errors-filter.d.ts +0 -0
  32. /package/dist/features/{har-entries-viewer → list-har-entries}/hooks/preferences.d.ts +0 -0
@@ -0,0 +1,3050 @@
1
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
2
+ import Lt from "@cloudscape-design/code-view/code-view";
3
+ import At from "@cloudscape-design/components/copy-to-clipboard";
4
+ import { colorTextStatusSuccess as Ie, colorTextLinkDefault as ye, colorTextCounter as Vt, colorTextBodySecondary as le, colorTextStatusWarning as ve, colorTextStatusError as Ut, colorTextBodyDefault as ze, colorBorderDividerDefault as Dt, colorBackgroundContainerContent as Jt, fontFamilyBase as _t } from "@cloudscape-design/design-tokens";
5
+ import { useReducer as de, createContext as Z, useContext as G, useEffect as oe, Fragment as Q, useState as Xe, useMemo as Mt, useRef as Te, forwardRef as er } from "react";
6
+ import { g as $t, a as Pt } from "./content-type.js";
7
+ import { s as Ot } from "./json.js";
8
+ var ke = {}, me = {}, Ge;
9
+ function Kt() {
10
+ if (Ge) return me;
11
+ Ge = 1, me.byteLength = a, me.toByteArray = N, me.fromByteArray = B;
12
+ for (var l = [], n = [], s = typeof Uint8Array < "u" ? Uint8Array : Array, c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = 0, h = c.length; u < h; ++u)
13
+ l[u] = c[u], n[c.charCodeAt(u)] = u;
14
+ n[45] = 62, n[95] = 63;
15
+ function y(x) {
16
+ var E = x.length;
17
+ if (E % 4 > 0)
18
+ throw new Error("Invalid string. Length must be a multiple of 4");
19
+ var C = x.indexOf("=");
20
+ C === -1 && (C = E);
21
+ var R = C === E ? 0 : 4 - C % 4;
22
+ return [C, R];
23
+ }
24
+ function a(x) {
25
+ var E = y(x), C = E[0], R = E[1];
26
+ return (C + R) * 3 / 4 - R;
27
+ }
28
+ function d(x, E, C) {
29
+ return (E + C) * 3 / 4 - C;
30
+ }
31
+ function N(x) {
32
+ var E, C = y(x), R = C[0], k = C[1], I = new s(d(x, R, k)), b = 0, U = k > 0 ? R - 4 : R, j;
33
+ for (j = 0; j < U; j += 4)
34
+ E = n[x.charCodeAt(j)] << 18 | n[x.charCodeAt(j + 1)] << 12 | n[x.charCodeAt(j + 2)] << 6 | n[x.charCodeAt(j + 3)], I[b++] = E >> 16 & 255, I[b++] = E >> 8 & 255, I[b++] = E & 255;
35
+ return k === 2 && (E = n[x.charCodeAt(j)] << 2 | n[x.charCodeAt(j + 1)] >> 4, I[b++] = E & 255), k === 1 && (E = n[x.charCodeAt(j)] << 10 | n[x.charCodeAt(j + 1)] << 4 | n[x.charCodeAt(j + 2)] >> 2, I[b++] = E >> 8 & 255, I[b++] = E & 255), I;
36
+ }
37
+ function m(x) {
38
+ return l[x >> 18 & 63] + l[x >> 12 & 63] + l[x >> 6 & 63] + l[x & 63];
39
+ }
40
+ function w(x, E, C) {
41
+ for (var R, k = [], I = E; I < C; I += 3)
42
+ R = (x[I] << 16 & 16711680) + (x[I + 1] << 8 & 65280) + (x[I + 2] & 255), k.push(m(R));
43
+ return k.join("");
44
+ }
45
+ function B(x) {
46
+ for (var E, C = x.length, R = C % 3, k = [], I = 16383, b = 0, U = C - R; b < U; b += I)
47
+ k.push(w(x, b, b + I > U ? U : b + I));
48
+ return R === 1 ? (E = x[C - 1], k.push(
49
+ l[E >> 2] + l[E << 4 & 63] + "=="
50
+ )) : R === 2 && (E = (x[C - 2] << 8) + x[C - 1], k.push(
51
+ l[E >> 10] + l[E >> 4 & 63] + l[E << 2 & 63] + "="
52
+ )), k.join("");
53
+ }
54
+ return me;
55
+ }
56
+ var Ne = {};
57
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
58
+ var He;
59
+ function Qt() {
60
+ return He || (He = 1, Ne.read = function(l, n, s, c, u) {
61
+ var h, y, a = u * 8 - c - 1, d = (1 << a) - 1, N = d >> 1, m = -7, w = s ? u - 1 : 0, B = s ? -1 : 1, x = l[n + w];
62
+ for (w += B, h = x & (1 << -m) - 1, x >>= -m, m += a; m > 0; h = h * 256 + l[n + w], w += B, m -= 8)
63
+ ;
64
+ for (y = h & (1 << -m) - 1, h >>= -m, m += c; m > 0; y = y * 256 + l[n + w], w += B, m -= 8)
65
+ ;
66
+ if (h === 0)
67
+ h = 1 - N;
68
+ else {
69
+ if (h === d)
70
+ return y ? NaN : (x ? -1 : 1) * (1 / 0);
71
+ y = y + Math.pow(2, c), h = h - N;
72
+ }
73
+ return (x ? -1 : 1) * y * Math.pow(2, h - c);
74
+ }, Ne.write = function(l, n, s, c, u, h) {
75
+ var y, a, d, N = h * 8 - u - 1, m = (1 << N) - 1, w = m >> 1, B = u === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, x = c ? 0 : h - 1, E = c ? 1 : -1, C = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
76
+ for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (a = isNaN(n) ? 1 : 0, y = m) : (y = Math.floor(Math.log(n) / Math.LN2), n * (d = Math.pow(2, -y)) < 1 && (y--, d *= 2), y + w >= 1 ? n += B / d : n += B * Math.pow(2, 1 - w), n * d >= 2 && (y++, d /= 2), y + w >= m ? (a = 0, y = m) : y + w >= 1 ? (a = (n * d - 1) * Math.pow(2, u), y = y + w) : (a = n * Math.pow(2, w - 1) * Math.pow(2, u), y = 0)); u >= 8; l[s + x] = a & 255, x += E, a /= 256, u -= 8)
77
+ ;
78
+ for (y = y << u | a, N += u; N > 0; l[s + x] = y & 255, x += E, y /= 256, N -= 8)
79
+ ;
80
+ l[s + x - E] |= C * 128;
81
+ }), Ne;
82
+ }
83
+ /*!
84
+ * The buffer module from node.js, for the browser.
85
+ *
86
+ * @author Feross Aboukhadijeh <https://feross.org>
87
+ * @license MIT
88
+ */
89
+ var Ye;
90
+ function qt() {
91
+ return Ye || (Ye = 1, function(l) {
92
+ const n = Kt(), s = Qt(), c = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
93
+ l.Buffer = a, l.SlowBuffer = I, l.INSPECT_MAX_BYTES = 50;
94
+ const u = 2147483647;
95
+ l.kMaxLength = u, a.TYPED_ARRAY_SUPPORT = h(), !a.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
96
+ "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
97
+ );
98
+ function h() {
99
+ try {
100
+ const t = new Uint8Array(1), e = { foo: function() {
101
+ return 42;
102
+ } };
103
+ return Object.setPrototypeOf(e, Uint8Array.prototype), Object.setPrototypeOf(t, e), t.foo() === 42;
104
+ } catch {
105
+ return !1;
106
+ }
107
+ }
108
+ Object.defineProperty(a.prototype, "parent", {
109
+ enumerable: !0,
110
+ get: function() {
111
+ if (a.isBuffer(this))
112
+ return this.buffer;
113
+ }
114
+ }), Object.defineProperty(a.prototype, "offset", {
115
+ enumerable: !0,
116
+ get: function() {
117
+ if (a.isBuffer(this))
118
+ return this.byteOffset;
119
+ }
120
+ });
121
+ function y(t) {
122
+ if (t > u)
123
+ throw new RangeError('The value "' + t + '" is invalid for option "size"');
124
+ const e = new Uint8Array(t);
125
+ return Object.setPrototypeOf(e, a.prototype), e;
126
+ }
127
+ function a(t, e, r) {
128
+ if (typeof t == "number") {
129
+ if (typeof e == "string")
130
+ throw new TypeError(
131
+ 'The "string" argument must be of type string. Received type number'
132
+ );
133
+ return w(t);
134
+ }
135
+ return d(t, e, r);
136
+ }
137
+ a.poolSize = 8192;
138
+ function d(t, e, r) {
139
+ if (typeof t == "string")
140
+ return B(t, e);
141
+ if (ArrayBuffer.isView(t))
142
+ return E(t);
143
+ if (t == null)
144
+ throw new TypeError(
145
+ "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t
146
+ );
147
+ if (ee(t, ArrayBuffer) || t && ee(t.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (ee(t, SharedArrayBuffer) || t && ee(t.buffer, SharedArrayBuffer)))
148
+ return C(t, e, r);
149
+ if (typeof t == "number")
150
+ throw new TypeError(
151
+ 'The "value" argument must not be of type number. Received type number'
152
+ );
153
+ const i = t.valueOf && t.valueOf();
154
+ if (i != null && i !== t)
155
+ return a.from(i, e, r);
156
+ const o = R(t);
157
+ if (o) return o;
158
+ if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof t[Symbol.toPrimitive] == "function")
159
+ return a.from(t[Symbol.toPrimitive]("string"), e, r);
160
+ throw new TypeError(
161
+ "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t
162
+ );
163
+ }
164
+ a.from = function(t, e, r) {
165
+ return d(t, e, r);
166
+ }, Object.setPrototypeOf(a.prototype, Uint8Array.prototype), Object.setPrototypeOf(a, Uint8Array);
167
+ function N(t) {
168
+ if (typeof t != "number")
169
+ throw new TypeError('"size" argument must be of type number');
170
+ if (t < 0)
171
+ throw new RangeError('The value "' + t + '" is invalid for option "size"');
172
+ }
173
+ function m(t, e, r) {
174
+ return N(t), t <= 0 ? y(t) : e !== void 0 ? typeof r == "string" ? y(t).fill(e, r) : y(t).fill(e) : y(t);
175
+ }
176
+ a.alloc = function(t, e, r) {
177
+ return m(t, e, r);
178
+ };
179
+ function w(t) {
180
+ return N(t), y(t < 0 ? 0 : k(t) | 0);
181
+ }
182
+ a.allocUnsafe = function(t) {
183
+ return w(t);
184
+ }, a.allocUnsafeSlow = function(t) {
185
+ return w(t);
186
+ };
187
+ function B(t, e) {
188
+ if ((typeof e != "string" || e === "") && (e = "utf8"), !a.isEncoding(e))
189
+ throw new TypeError("Unknown encoding: " + e);
190
+ const r = b(t, e) | 0;
191
+ let i = y(r);
192
+ const o = i.write(t, e);
193
+ return o !== r && (i = i.slice(0, o)), i;
194
+ }
195
+ function x(t) {
196
+ const e = t.length < 0 ? 0 : k(t.length) | 0, r = y(e);
197
+ for (let i = 0; i < e; i += 1)
198
+ r[i] = t[i] & 255;
199
+ return r;
200
+ }
201
+ function E(t) {
202
+ if (ee(t, Uint8Array)) {
203
+ const e = new Uint8Array(t);
204
+ return C(e.buffer, e.byteOffset, e.byteLength);
205
+ }
206
+ return x(t);
207
+ }
208
+ function C(t, e, r) {
209
+ if (e < 0 || t.byteLength < e)
210
+ throw new RangeError('"offset" is outside of buffer bounds');
211
+ if (t.byteLength < e + (r || 0))
212
+ throw new RangeError('"length" is outside of buffer bounds');
213
+ let i;
214
+ return e === void 0 && r === void 0 ? i = new Uint8Array(t) : r === void 0 ? i = new Uint8Array(t, e) : i = new Uint8Array(t, e, r), Object.setPrototypeOf(i, a.prototype), i;
215
+ }
216
+ function R(t) {
217
+ if (a.isBuffer(t)) {
218
+ const e = k(t.length) | 0, r = y(e);
219
+ return r.length === 0 || t.copy(r, 0, 0, e), r;
220
+ }
221
+ if (t.length !== void 0)
222
+ return typeof t.length != "number" || Re(t.length) ? y(0) : x(t);
223
+ if (t.type === "Buffer" && Array.isArray(t.data))
224
+ return x(t.data);
225
+ }
226
+ function k(t) {
227
+ if (t >= u)
228
+ throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + u.toString(16) + " bytes");
229
+ return t | 0;
230
+ }
231
+ function I(t) {
232
+ return +t != t && (t = 0), a.alloc(+t);
233
+ }
234
+ a.isBuffer = function(e) {
235
+ return e != null && e._isBuffer === !0 && e !== a.prototype;
236
+ }, a.compare = function(e, r) {
237
+ if (ee(e, Uint8Array) && (e = a.from(e, e.offset, e.byteLength)), ee(r, Uint8Array) && (r = a.from(r, r.offset, r.byteLength)), !a.isBuffer(e) || !a.isBuffer(r))
238
+ throw new TypeError(
239
+ 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
240
+ );
241
+ if (e === r) return 0;
242
+ let i = e.length, o = r.length;
243
+ for (let p = 0, v = Math.min(i, o); p < v; ++p)
244
+ if (e[p] !== r[p]) {
245
+ i = e[p], o = r[p];
246
+ break;
247
+ }
248
+ return i < o ? -1 : o < i ? 1 : 0;
249
+ }, a.isEncoding = function(e) {
250
+ switch (String(e).toLowerCase()) {
251
+ case "hex":
252
+ case "utf8":
253
+ case "utf-8":
254
+ case "ascii":
255
+ case "latin1":
256
+ case "binary":
257
+ case "base64":
258
+ case "ucs2":
259
+ case "ucs-2":
260
+ case "utf16le":
261
+ case "utf-16le":
262
+ return !0;
263
+ default:
264
+ return !1;
265
+ }
266
+ }, a.concat = function(e, r) {
267
+ if (!Array.isArray(e))
268
+ throw new TypeError('"list" argument must be an Array of Buffers');
269
+ if (e.length === 0)
270
+ return a.alloc(0);
271
+ let i;
272
+ if (r === void 0)
273
+ for (r = 0, i = 0; i < e.length; ++i)
274
+ r += e[i].length;
275
+ const o = a.allocUnsafe(r);
276
+ let p = 0;
277
+ for (i = 0; i < e.length; ++i) {
278
+ let v = e[i];
279
+ if (ee(v, Uint8Array))
280
+ p + v.length > o.length ? (a.isBuffer(v) || (v = a.from(v)), v.copy(o, p)) : Uint8Array.prototype.set.call(
281
+ o,
282
+ v,
283
+ p
284
+ );
285
+ else if (a.isBuffer(v))
286
+ v.copy(o, p);
287
+ else
288
+ throw new TypeError('"list" argument must be an Array of Buffers');
289
+ p += v.length;
290
+ }
291
+ return o;
292
+ };
293
+ function b(t, e) {
294
+ if (a.isBuffer(t))
295
+ return t.length;
296
+ if (ArrayBuffer.isView(t) || ee(t, ArrayBuffer))
297
+ return t.byteLength;
298
+ if (typeof t != "string")
299
+ throw new TypeError(
300
+ 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof t
301
+ );
302
+ const r = t.length, i = arguments.length > 2 && arguments[2] === !0;
303
+ if (!i && r === 0) return 0;
304
+ let o = !1;
305
+ for (; ; )
306
+ switch (e) {
307
+ case "ascii":
308
+ case "latin1":
309
+ case "binary":
310
+ return r;
311
+ case "utf8":
312
+ case "utf-8":
313
+ return Ce(t).length;
314
+ case "ucs2":
315
+ case "ucs-2":
316
+ case "utf16le":
317
+ case "utf-16le":
318
+ return r * 2;
319
+ case "hex":
320
+ return r >>> 1;
321
+ case "base64":
322
+ return Ze(t).length;
323
+ default:
324
+ if (o)
325
+ return i ? -1 : Ce(t).length;
326
+ e = ("" + e).toLowerCase(), o = !0;
327
+ }
328
+ }
329
+ a.byteLength = b;
330
+ function U(t, e, r) {
331
+ let i = !1;
332
+ if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((r === void 0 || r > this.length) && (r = this.length), r <= 0) || (r >>>= 0, e >>>= 0, r <= e))
333
+ return "";
334
+ for (t || (t = "utf8"); ; )
335
+ switch (t) {
336
+ case "hex":
337
+ return Ct(this, e, r);
338
+ case "utf8":
339
+ case "utf-8":
340
+ return xe(this, e, r);
341
+ case "ascii":
342
+ return Bt(this, e, r);
343
+ case "latin1":
344
+ case "binary":
345
+ return Et(this, e, r);
346
+ case "base64":
347
+ return ae(this, e, r);
348
+ case "ucs2":
349
+ case "ucs-2":
350
+ case "utf16le":
351
+ case "utf-16le":
352
+ return Rt(this, e, r);
353
+ default:
354
+ if (i) throw new TypeError("Unknown encoding: " + t);
355
+ t = (t + "").toLowerCase(), i = !0;
356
+ }
357
+ }
358
+ a.prototype._isBuffer = !0;
359
+ function j(t, e, r) {
360
+ const i = t[e];
361
+ t[e] = t[r], t[r] = i;
362
+ }
363
+ a.prototype.swap16 = function() {
364
+ const e = this.length;
365
+ if (e % 2 !== 0)
366
+ throw new RangeError("Buffer size must be a multiple of 16-bits");
367
+ for (let r = 0; r < e; r += 2)
368
+ j(this, r, r + 1);
369
+ return this;
370
+ }, a.prototype.swap32 = function() {
371
+ const e = this.length;
372
+ if (e % 4 !== 0)
373
+ throw new RangeError("Buffer size must be a multiple of 32-bits");
374
+ for (let r = 0; r < e; r += 4)
375
+ j(this, r, r + 3), j(this, r + 1, r + 2);
376
+ return this;
377
+ }, a.prototype.swap64 = function() {
378
+ const e = this.length;
379
+ if (e % 8 !== 0)
380
+ throw new RangeError("Buffer size must be a multiple of 64-bits");
381
+ for (let r = 0; r < e; r += 8)
382
+ j(this, r, r + 7), j(this, r + 1, r + 6), j(this, r + 2, r + 5), j(this, r + 3, r + 4);
383
+ return this;
384
+ }, a.prototype.toString = function() {
385
+ const e = this.length;
386
+ return e === 0 ? "" : arguments.length === 0 ? xe(this, 0, e) : U.apply(this, arguments);
387
+ }, a.prototype.toLocaleString = a.prototype.toString, a.prototype.equals = function(e) {
388
+ if (!a.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
389
+ return this === e ? !0 : a.compare(this, e) === 0;
390
+ }, a.prototype.inspect = function() {
391
+ let e = "";
392
+ const r = l.INSPECT_MAX_BYTES;
393
+ return e = this.toString("hex", 0, r).replace(/(.{2})/g, "$1 ").trim(), this.length > r && (e += " ... "), "<Buffer " + e + ">";
394
+ }, c && (a.prototype[c] = a.prototype.inspect), a.prototype.compare = function(e, r, i, o, p) {
395
+ if (ee(e, Uint8Array) && (e = a.from(e, e.offset, e.byteLength)), !a.isBuffer(e))
396
+ throw new TypeError(
397
+ 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e
398
+ );
399
+ if (r === void 0 && (r = 0), i === void 0 && (i = e ? e.length : 0), o === void 0 && (o = 0), p === void 0 && (p = this.length), r < 0 || i > e.length || o < 0 || p > this.length)
400
+ throw new RangeError("out of range index");
401
+ if (o >= p && r >= i)
402
+ return 0;
403
+ if (o >= p)
404
+ return -1;
405
+ if (r >= i)
406
+ return 1;
407
+ if (r >>>= 0, i >>>= 0, o >>>= 0, p >>>= 0, this === e) return 0;
408
+ let v = p - o, T = i - r;
409
+ const D = Math.min(v, T), V = this.slice(o, p), J = e.slice(r, i);
410
+ for (let L = 0; L < D; ++L)
411
+ if (V[L] !== J[L]) {
412
+ v = V[L], T = J[L];
413
+ break;
414
+ }
415
+ return v < T ? -1 : T < v ? 1 : 0;
416
+ };
417
+ function $(t, e, r, i, o) {
418
+ if (t.length === 0) return -1;
419
+ if (typeof r == "string" ? (i = r, r = 0) : r > 2147483647 ? r = 2147483647 : r < -2147483648 && (r = -2147483648), r = +r, Re(r) && (r = o ? 0 : t.length - 1), r < 0 && (r = t.length + r), r >= t.length) {
420
+ if (o) return -1;
421
+ r = t.length - 1;
422
+ } else if (r < 0)
423
+ if (o) r = 0;
424
+ else return -1;
425
+ if (typeof e == "string" && (e = a.from(e, i)), a.isBuffer(e))
426
+ return e.length === 0 ? -1 : W(t, e, r, i, o);
427
+ if (typeof e == "number")
428
+ return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ? o ? Uint8Array.prototype.indexOf.call(t, e, r) : Uint8Array.prototype.lastIndexOf.call(t, e, r) : W(t, [e], r, i, o);
429
+ throw new TypeError("val must be string, number or Buffer");
430
+ }
431
+ function W(t, e, r, i, o) {
432
+ let p = 1, v = t.length, T = e.length;
433
+ if (i !== void 0 && (i = String(i).toLowerCase(), i === "ucs2" || i === "ucs-2" || i === "utf16le" || i === "utf-16le")) {
434
+ if (t.length < 2 || e.length < 2)
435
+ return -1;
436
+ p = 2, v /= 2, T /= 2, r /= 2;
437
+ }
438
+ function D(J, L) {
439
+ return p === 1 ? J[L] : J.readUInt16BE(L * p);
440
+ }
441
+ let V;
442
+ if (o) {
443
+ let J = -1;
444
+ for (V = r; V < v; V++)
445
+ if (D(t, V) === D(e, J === -1 ? 0 : V - J)) {
446
+ if (J === -1 && (J = V), V - J + 1 === T) return J * p;
447
+ } else
448
+ J !== -1 && (V -= V - J), J = -1;
449
+ } else
450
+ for (r + T > v && (r = v - T), V = r; V >= 0; V--) {
451
+ let J = !0;
452
+ for (let L = 0; L < T; L++)
453
+ if (D(t, V + L) !== D(e, L)) {
454
+ J = !1;
455
+ break;
456
+ }
457
+ if (J) return V;
458
+ }
459
+ return -1;
460
+ }
461
+ a.prototype.includes = function(e, r, i) {
462
+ return this.indexOf(e, r, i) !== -1;
463
+ }, a.prototype.indexOf = function(e, r, i) {
464
+ return $(this, e, r, i, !0);
465
+ }, a.prototype.lastIndexOf = function(e, r, i) {
466
+ return $(this, e, r, i, !1);
467
+ };
468
+ function re(t, e, r, i) {
469
+ r = Number(r) || 0;
470
+ const o = t.length - r;
471
+ i ? (i = Number(i), i > o && (i = o)) : i = o;
472
+ const p = e.length;
473
+ i > p / 2 && (i = p / 2);
474
+ let v;
475
+ for (v = 0; v < i; ++v) {
476
+ const T = parseInt(e.substr(v * 2, 2), 16);
477
+ if (Re(T)) return v;
478
+ t[r + v] = T;
479
+ }
480
+ return v;
481
+ }
482
+ function P(t, e, r, i) {
483
+ return ge(Ce(e, t.length - r), t, r, i);
484
+ }
485
+ function Y(t, e, r, i) {
486
+ return ge(jt(e), t, r, i);
487
+ }
488
+ function ue(t, e, r, i) {
489
+ return ge(Ze(e), t, r, i);
490
+ }
491
+ function ie(t, e, r, i) {
492
+ return ge(Tt(e, t.length - r), t, r, i);
493
+ }
494
+ a.prototype.write = function(e, r, i, o) {
495
+ if (r === void 0)
496
+ o = "utf8", i = this.length, r = 0;
497
+ else if (i === void 0 && typeof r == "string")
498
+ o = r, i = this.length, r = 0;
499
+ else if (isFinite(r))
500
+ r = r >>> 0, isFinite(i) ? (i = i >>> 0, o === void 0 && (o = "utf8")) : (o = i, i = void 0);
501
+ else
502
+ throw new Error(
503
+ "Buffer.write(string, encoding, offset[, length]) is no longer supported"
504
+ );
505
+ const p = this.length - r;
506
+ if ((i === void 0 || i > p) && (i = p), e.length > 0 && (i < 0 || r < 0) || r > this.length)
507
+ throw new RangeError("Attempt to write outside buffer bounds");
508
+ o || (o = "utf8");
509
+ let v = !1;
510
+ for (; ; )
511
+ switch (o) {
512
+ case "hex":
513
+ return re(this, e, r, i);
514
+ case "utf8":
515
+ case "utf-8":
516
+ return P(this, e, r, i);
517
+ case "ascii":
518
+ case "latin1":
519
+ case "binary":
520
+ return Y(this, e, r, i);
521
+ case "base64":
522
+ return ue(this, e, r, i);
523
+ case "ucs2":
524
+ case "ucs-2":
525
+ case "utf16le":
526
+ case "utf-16le":
527
+ return ie(this, e, r, i);
528
+ default:
529
+ if (v) throw new TypeError("Unknown encoding: " + o);
530
+ o = ("" + o).toLowerCase(), v = !0;
531
+ }
532
+ }, a.prototype.toJSON = function() {
533
+ return {
534
+ type: "Buffer",
535
+ data: Array.prototype.slice.call(this._arr || this, 0)
536
+ };
537
+ };
538
+ function ae(t, e, r) {
539
+ return e === 0 && r === t.length ? n.fromByteArray(t) : n.fromByteArray(t.slice(e, r));
540
+ }
541
+ function xe(t, e, r) {
542
+ r = Math.min(t.length, r);
543
+ const i = [];
544
+ let o = e;
545
+ for (; o < r; ) {
546
+ const p = t[o];
547
+ let v = null, T = p > 239 ? 4 : p > 223 ? 3 : p > 191 ? 2 : 1;
548
+ if (o + T <= r) {
549
+ let D, V, J, L;
550
+ switch (T) {
551
+ case 1:
552
+ p < 128 && (v = p);
553
+ break;
554
+ case 2:
555
+ D = t[o + 1], (D & 192) === 128 && (L = (p & 31) << 6 | D & 63, L > 127 && (v = L));
556
+ break;
557
+ case 3:
558
+ D = t[o + 1], V = t[o + 2], (D & 192) === 128 && (V & 192) === 128 && (L = (p & 15) << 12 | (D & 63) << 6 | V & 63, L > 2047 && (L < 55296 || L > 57343) && (v = L));
559
+ break;
560
+ case 4:
561
+ D = t[o + 1], V = t[o + 2], J = t[o + 3], (D & 192) === 128 && (V & 192) === 128 && (J & 192) === 128 && (L = (p & 15) << 18 | (D & 63) << 12 | (V & 63) << 6 | J & 63, L > 65535 && L < 1114112 && (v = L));
562
+ }
563
+ }
564
+ v === null ? (v = 65533, T = 1) : v > 65535 && (v -= 65536, i.push(v >>> 10 & 1023 | 55296), v = 56320 | v & 1023), i.push(v), o += T;
565
+ }
566
+ return Nt(i);
567
+ }
568
+ const X = 4096;
569
+ function Nt(t) {
570
+ const e = t.length;
571
+ if (e <= X)
572
+ return String.fromCharCode.apply(String, t);
573
+ let r = "", i = 0;
574
+ for (; i < e; )
575
+ r += String.fromCharCode.apply(
576
+ String,
577
+ t.slice(i, i += X)
578
+ );
579
+ return r;
580
+ }
581
+ function Bt(t, e, r) {
582
+ let i = "";
583
+ r = Math.min(t.length, r);
584
+ for (let o = e; o < r; ++o)
585
+ i += String.fromCharCode(t[o] & 127);
586
+ return i;
587
+ }
588
+ function Et(t, e, r) {
589
+ let i = "";
590
+ r = Math.min(t.length, r);
591
+ for (let o = e; o < r; ++o)
592
+ i += String.fromCharCode(t[o]);
593
+ return i;
594
+ }
595
+ function Ct(t, e, r) {
596
+ const i = t.length;
597
+ (!e || e < 0) && (e = 0), (!r || r < 0 || r > i) && (r = i);
598
+ let o = "";
599
+ for (let p = e; p < r; ++p)
600
+ o += St[t[p]];
601
+ return o;
602
+ }
603
+ function Rt(t, e, r) {
604
+ const i = t.slice(e, r);
605
+ let o = "";
606
+ for (let p = 0; p < i.length - 1; p += 2)
607
+ o += String.fromCharCode(i[p] + i[p + 1] * 256);
608
+ return o;
609
+ }
610
+ a.prototype.slice = function(e, r) {
611
+ const i = this.length;
612
+ e = ~~e, r = r === void 0 ? i : ~~r, e < 0 ? (e += i, e < 0 && (e = 0)) : e > i && (e = i), r < 0 ? (r += i, r < 0 && (r = 0)) : r > i && (r = i), r < e && (r = e);
613
+ const o = this.subarray(e, r);
614
+ return Object.setPrototypeOf(o, a.prototype), o;
615
+ };
616
+ function M(t, e, r) {
617
+ if (t % 1 !== 0 || t < 0) throw new RangeError("offset is not uint");
618
+ if (t + e > r) throw new RangeError("Trying to access beyond buffer length");
619
+ }
620
+ a.prototype.readUintLE = a.prototype.readUIntLE = function(e, r, i) {
621
+ e = e >>> 0, r = r >>> 0, i || M(e, r, this.length);
622
+ let o = this[e], p = 1, v = 0;
623
+ for (; ++v < r && (p *= 256); )
624
+ o += this[e + v] * p;
625
+ return o;
626
+ }, a.prototype.readUintBE = a.prototype.readUIntBE = function(e, r, i) {
627
+ e = e >>> 0, r = r >>> 0, i || M(e, r, this.length);
628
+ let o = this[e + --r], p = 1;
629
+ for (; r > 0 && (p *= 256); )
630
+ o += this[e + --r] * p;
631
+ return o;
632
+ }, a.prototype.readUint8 = a.prototype.readUInt8 = function(e, r) {
633
+ return e = e >>> 0, r || M(e, 1, this.length), this[e];
634
+ }, a.prototype.readUint16LE = a.prototype.readUInt16LE = function(e, r) {
635
+ return e = e >>> 0, r || M(e, 2, this.length), this[e] | this[e + 1] << 8;
636
+ }, a.prototype.readUint16BE = a.prototype.readUInt16BE = function(e, r) {
637
+ return e = e >>> 0, r || M(e, 2, this.length), this[e] << 8 | this[e + 1];
638
+ }, a.prototype.readUint32LE = a.prototype.readUInt32LE = function(e, r) {
639
+ return e = e >>> 0, r || M(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
640
+ }, a.prototype.readUint32BE = a.prototype.readUInt32BE = function(e, r) {
641
+ return e = e >>> 0, r || M(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
642
+ }, a.prototype.readBigUInt64LE = te(function(e) {
643
+ e = e >>> 0, pe(e, "offset");
644
+ const r = this[e], i = this[e + 7];
645
+ (r === void 0 || i === void 0) && he(e, this.length - 8);
646
+ const o = r + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, p = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + i * 2 ** 24;
647
+ return BigInt(o) + (BigInt(p) << BigInt(32));
648
+ }), a.prototype.readBigUInt64BE = te(function(e) {
649
+ e = e >>> 0, pe(e, "offset");
650
+ const r = this[e], i = this[e + 7];
651
+ (r === void 0 || i === void 0) && he(e, this.length - 8);
652
+ const o = r * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], p = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + i;
653
+ return (BigInt(o) << BigInt(32)) + BigInt(p);
654
+ }), a.prototype.readIntLE = function(e, r, i) {
655
+ e = e >>> 0, r = r >>> 0, i || M(e, r, this.length);
656
+ let o = this[e], p = 1, v = 0;
657
+ for (; ++v < r && (p *= 256); )
658
+ o += this[e + v] * p;
659
+ return p *= 128, o >= p && (o -= Math.pow(2, 8 * r)), o;
660
+ }, a.prototype.readIntBE = function(e, r, i) {
661
+ e = e >>> 0, r = r >>> 0, i || M(e, r, this.length);
662
+ let o = r, p = 1, v = this[e + --o];
663
+ for (; o > 0 && (p *= 256); )
664
+ v += this[e + --o] * p;
665
+ return p *= 128, v >= p && (v -= Math.pow(2, 8 * r)), v;
666
+ }, a.prototype.readInt8 = function(e, r) {
667
+ return e = e >>> 0, r || M(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
668
+ }, a.prototype.readInt16LE = function(e, r) {
669
+ e = e >>> 0, r || M(e, 2, this.length);
670
+ const i = this[e] | this[e + 1] << 8;
671
+ return i & 32768 ? i | 4294901760 : i;
672
+ }, a.prototype.readInt16BE = function(e, r) {
673
+ e = e >>> 0, r || M(e, 2, this.length);
674
+ const i = this[e + 1] | this[e] << 8;
675
+ return i & 32768 ? i | 4294901760 : i;
676
+ }, a.prototype.readInt32LE = function(e, r) {
677
+ return e = e >>> 0, r || M(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
678
+ }, a.prototype.readInt32BE = function(e, r) {
679
+ return e = e >>> 0, r || M(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
680
+ }, a.prototype.readBigInt64LE = te(function(e) {
681
+ e = e >>> 0, pe(e, "offset");
682
+ const r = this[e], i = this[e + 7];
683
+ (r === void 0 || i === void 0) && he(e, this.length - 8);
684
+ const o = this[e + 4] + this[e + 5] * 2 ** 8 + this[e + 6] * 2 ** 16 + (i << 24);
685
+ return (BigInt(o) << BigInt(32)) + BigInt(r + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
686
+ }), a.prototype.readBigInt64BE = te(function(e) {
687
+ e = e >>> 0, pe(e, "offset");
688
+ const r = this[e], i = this[e + 7];
689
+ (r === void 0 || i === void 0) && he(e, this.length - 8);
690
+ const o = (r << 24) + // Overflow
691
+ this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
692
+ return (BigInt(o) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + i);
693
+ }), a.prototype.readFloatLE = function(e, r) {
694
+ return e = e >>> 0, r || M(e, 4, this.length), s.read(this, e, !0, 23, 4);
695
+ }, a.prototype.readFloatBE = function(e, r) {
696
+ return e = e >>> 0, r || M(e, 4, this.length), s.read(this, e, !1, 23, 4);
697
+ }, a.prototype.readDoubleLE = function(e, r) {
698
+ return e = e >>> 0, r || M(e, 8, this.length), s.read(this, e, !0, 52, 8);
699
+ }, a.prototype.readDoubleBE = function(e, r) {
700
+ return e = e >>> 0, r || M(e, 8, this.length), s.read(this, e, !1, 52, 8);
701
+ };
702
+ function O(t, e, r, i, o, p) {
703
+ if (!a.isBuffer(t)) throw new TypeError('"buffer" argument must be a Buffer instance');
704
+ if (e > o || e < p) throw new RangeError('"value" argument is out of bounds');
705
+ if (r + i > t.length) throw new RangeError("Index out of range");
706
+ }
707
+ a.prototype.writeUintLE = a.prototype.writeUIntLE = function(e, r, i, o) {
708
+ if (e = +e, r = r >>> 0, i = i >>> 0, !o) {
709
+ const T = Math.pow(2, 8 * i) - 1;
710
+ O(this, e, r, i, T, 0);
711
+ }
712
+ let p = 1, v = 0;
713
+ for (this[r] = e & 255; ++v < i && (p *= 256); )
714
+ this[r + v] = e / p & 255;
715
+ return r + i;
716
+ }, a.prototype.writeUintBE = a.prototype.writeUIntBE = function(e, r, i, o) {
717
+ if (e = +e, r = r >>> 0, i = i >>> 0, !o) {
718
+ const T = Math.pow(2, 8 * i) - 1;
719
+ O(this, e, r, i, T, 0);
720
+ }
721
+ let p = i - 1, v = 1;
722
+ for (this[r + p] = e & 255; --p >= 0 && (v *= 256); )
723
+ this[r + p] = e / v & 255;
724
+ return r + i;
725
+ }, a.prototype.writeUint8 = a.prototype.writeUInt8 = function(e, r, i) {
726
+ return e = +e, r = r >>> 0, i || O(this, e, r, 1, 255, 0), this[r] = e & 255, r + 1;
727
+ }, a.prototype.writeUint16LE = a.prototype.writeUInt16LE = function(e, r, i) {
728
+ return e = +e, r = r >>> 0, i || O(this, e, r, 2, 65535, 0), this[r] = e & 255, this[r + 1] = e >>> 8, r + 2;
729
+ }, a.prototype.writeUint16BE = a.prototype.writeUInt16BE = function(e, r, i) {
730
+ return e = +e, r = r >>> 0, i || O(this, e, r, 2, 65535, 0), this[r] = e >>> 8, this[r + 1] = e & 255, r + 2;
731
+ }, a.prototype.writeUint32LE = a.prototype.writeUInt32LE = function(e, r, i) {
732
+ return e = +e, r = r >>> 0, i || O(this, e, r, 4, 4294967295, 0), this[r + 3] = e >>> 24, this[r + 2] = e >>> 16, this[r + 1] = e >>> 8, this[r] = e & 255, r + 4;
733
+ }, a.prototype.writeUint32BE = a.prototype.writeUInt32BE = function(e, r, i) {
734
+ return e = +e, r = r >>> 0, i || O(this, e, r, 4, 4294967295, 0), this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255, r + 4;
735
+ };
736
+ function $e(t, e, r, i, o) {
737
+ We(e, i, o, t, r, 7);
738
+ let p = Number(e & BigInt(4294967295));
739
+ t[r++] = p, p = p >> 8, t[r++] = p, p = p >> 8, t[r++] = p, p = p >> 8, t[r++] = p;
740
+ let v = Number(e >> BigInt(32) & BigInt(4294967295));
741
+ return t[r++] = v, v = v >> 8, t[r++] = v, v = v >> 8, t[r++] = v, v = v >> 8, t[r++] = v, r;
742
+ }
743
+ function Pe(t, e, r, i, o) {
744
+ We(e, i, o, t, r, 7);
745
+ let p = Number(e & BigInt(4294967295));
746
+ t[r + 7] = p, p = p >> 8, t[r + 6] = p, p = p >> 8, t[r + 5] = p, p = p >> 8, t[r + 4] = p;
747
+ let v = Number(e >> BigInt(32) & BigInt(4294967295));
748
+ return t[r + 3] = v, v = v >> 8, t[r + 2] = v, v = v >> 8, t[r + 1] = v, v = v >> 8, t[r] = v, r + 8;
749
+ }
750
+ a.prototype.writeBigUInt64LE = te(function(e, r = 0) {
751
+ return $e(this, e, r, BigInt(0), BigInt("0xffffffffffffffff"));
752
+ }), a.prototype.writeBigUInt64BE = te(function(e, r = 0) {
753
+ return Pe(this, e, r, BigInt(0), BigInt("0xffffffffffffffff"));
754
+ }), a.prototype.writeIntLE = function(e, r, i, o) {
755
+ if (e = +e, r = r >>> 0, !o) {
756
+ const D = Math.pow(2, 8 * i - 1);
757
+ O(this, e, r, i, D - 1, -D);
758
+ }
759
+ let p = 0, v = 1, T = 0;
760
+ for (this[r] = e & 255; ++p < i && (v *= 256); )
761
+ e < 0 && T === 0 && this[r + p - 1] !== 0 && (T = 1), this[r + p] = (e / v >> 0) - T & 255;
762
+ return r + i;
763
+ }, a.prototype.writeIntBE = function(e, r, i, o) {
764
+ if (e = +e, r = r >>> 0, !o) {
765
+ const D = Math.pow(2, 8 * i - 1);
766
+ O(this, e, r, i, D - 1, -D);
767
+ }
768
+ let p = i - 1, v = 1, T = 0;
769
+ for (this[r + p] = e & 255; --p >= 0 && (v *= 256); )
770
+ e < 0 && T === 0 && this[r + p + 1] !== 0 && (T = 1), this[r + p] = (e / v >> 0) - T & 255;
771
+ return r + i;
772
+ }, a.prototype.writeInt8 = function(e, r, i) {
773
+ return e = +e, r = r >>> 0, i || O(this, e, r, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[r] = e & 255, r + 1;
774
+ }, a.prototype.writeInt16LE = function(e, r, i) {
775
+ return e = +e, r = r >>> 0, i || O(this, e, r, 2, 32767, -32768), this[r] = e & 255, this[r + 1] = e >>> 8, r + 2;
776
+ }, a.prototype.writeInt16BE = function(e, r, i) {
777
+ return e = +e, r = r >>> 0, i || O(this, e, r, 2, 32767, -32768), this[r] = e >>> 8, this[r + 1] = e & 255, r + 2;
778
+ }, a.prototype.writeInt32LE = function(e, r, i) {
779
+ return e = +e, r = r >>> 0, i || O(this, e, r, 4, 2147483647, -2147483648), this[r] = e & 255, this[r + 1] = e >>> 8, this[r + 2] = e >>> 16, this[r + 3] = e >>> 24, r + 4;
780
+ }, a.prototype.writeInt32BE = function(e, r, i) {
781
+ return e = +e, r = r >>> 0, i || O(this, e, r, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255, r + 4;
782
+ }, a.prototype.writeBigInt64LE = te(function(e, r = 0) {
783
+ return $e(this, e, r, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
784
+ }), a.prototype.writeBigInt64BE = te(function(e, r = 0) {
785
+ return Pe(this, e, r, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
786
+ });
787
+ function Oe(t, e, r, i, o, p) {
788
+ if (r + i > t.length) throw new RangeError("Index out of range");
789
+ if (r < 0) throw new RangeError("Index out of range");
790
+ }
791
+ function Ke(t, e, r, i, o) {
792
+ return e = +e, r = r >>> 0, o || Oe(t, e, r, 4), s.write(t, e, r, i, 23, 4), r + 4;
793
+ }
794
+ a.prototype.writeFloatLE = function(e, r, i) {
795
+ return Ke(this, e, r, !0, i);
796
+ }, a.prototype.writeFloatBE = function(e, r, i) {
797
+ return Ke(this, e, r, !1, i);
798
+ };
799
+ function Qe(t, e, r, i, o) {
800
+ return e = +e, r = r >>> 0, o || Oe(t, e, r, 8), s.write(t, e, r, i, 52, 8), r + 8;
801
+ }
802
+ a.prototype.writeDoubleLE = function(e, r, i) {
803
+ return Qe(this, e, r, !0, i);
804
+ }, a.prototype.writeDoubleBE = function(e, r, i) {
805
+ return Qe(this, e, r, !1, i);
806
+ }, a.prototype.copy = function(e, r, i, o) {
807
+ if (!a.isBuffer(e)) throw new TypeError("argument should be a Buffer");
808
+ if (i || (i = 0), !o && o !== 0 && (o = this.length), r >= e.length && (r = e.length), r || (r = 0), o > 0 && o < i && (o = i), o === i || e.length === 0 || this.length === 0) return 0;
809
+ if (r < 0)
810
+ throw new RangeError("targetStart out of bounds");
811
+ if (i < 0 || i >= this.length) throw new RangeError("Index out of range");
812
+ if (o < 0) throw new RangeError("sourceEnd out of bounds");
813
+ o > this.length && (o = this.length), e.length - r < o - i && (o = e.length - r + i);
814
+ const p = o - i;
815
+ return this === e && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(r, i, o) : Uint8Array.prototype.set.call(
816
+ e,
817
+ this.subarray(i, o),
818
+ r
819
+ ), p;
820
+ }, a.prototype.fill = function(e, r, i, o) {
821
+ if (typeof e == "string") {
822
+ if (typeof r == "string" ? (o = r, r = 0, i = this.length) : typeof i == "string" && (o = i, i = this.length), o !== void 0 && typeof o != "string")
823
+ throw new TypeError("encoding must be a string");
824
+ if (typeof o == "string" && !a.isEncoding(o))
825
+ throw new TypeError("Unknown encoding: " + o);
826
+ if (e.length === 1) {
827
+ const v = e.charCodeAt(0);
828
+ (o === "utf8" && v < 128 || o === "latin1") && (e = v);
829
+ }
830
+ } else typeof e == "number" ? e = e & 255 : typeof e == "boolean" && (e = Number(e));
831
+ if (r < 0 || this.length < r || this.length < i)
832
+ throw new RangeError("Out of range index");
833
+ if (i <= r)
834
+ return this;
835
+ r = r >>> 0, i = i === void 0 ? this.length : i >>> 0, e || (e = 0);
836
+ let p;
837
+ if (typeof e == "number")
838
+ for (p = r; p < i; ++p)
839
+ this[p] = e;
840
+ else {
841
+ const v = a.isBuffer(e) ? e : a.from(e, o), T = v.length;
842
+ if (T === 0)
843
+ throw new TypeError('The value "' + e + '" is invalid for argument "value"');
844
+ for (p = 0; p < i - r; ++p)
845
+ this[p + r] = v[p % T];
846
+ }
847
+ return this;
848
+ };
849
+ const ce = {};
850
+ function Ee(t, e, r) {
851
+ ce[t] = class extends r {
852
+ constructor() {
853
+ super(), Object.defineProperty(this, "message", {
854
+ value: e.apply(this, arguments),
855
+ writable: !0,
856
+ configurable: !0
857
+ }), this.name = `${this.name} [${t}]`, this.stack, delete this.name;
858
+ }
859
+ get code() {
860
+ return t;
861
+ }
862
+ set code(o) {
863
+ Object.defineProperty(this, "code", {
864
+ configurable: !0,
865
+ enumerable: !0,
866
+ value: o,
867
+ writable: !0
868
+ });
869
+ }
870
+ toString() {
871
+ return `${this.name} [${t}]: ${this.message}`;
872
+ }
873
+ };
874
+ }
875
+ Ee(
876
+ "ERR_BUFFER_OUT_OF_BOUNDS",
877
+ function(t) {
878
+ return t ? `${t} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
879
+ },
880
+ RangeError
881
+ ), Ee(
882
+ "ERR_INVALID_ARG_TYPE",
883
+ function(t, e) {
884
+ return `The "${t}" argument must be of type number. Received type ${typeof e}`;
885
+ },
886
+ TypeError
887
+ ), Ee(
888
+ "ERR_OUT_OF_RANGE",
889
+ function(t, e, r) {
890
+ let i = `The value of "${t}" is out of range.`, o = r;
891
+ return Number.isInteger(r) && Math.abs(r) > 2 ** 32 ? o = qe(String(r)) : typeof r == "bigint" && (o = String(r), (r > BigInt(2) ** BigInt(32) || r < -(BigInt(2) ** BigInt(32))) && (o = qe(o)), o += "n"), i += ` It must be ${e}. Received ${o}`, i;
892
+ },
893
+ RangeError
894
+ );
895
+ function qe(t) {
896
+ let e = "", r = t.length;
897
+ const i = t[0] === "-" ? 1 : 0;
898
+ for (; r >= i + 4; r -= 3)
899
+ e = `_${t.slice(r - 3, r)}${e}`;
900
+ return `${t.slice(0, r)}${e}`;
901
+ }
902
+ function It(t, e, r) {
903
+ pe(e, "offset"), (t[e] === void 0 || t[e + r] === void 0) && he(e, t.length - (r + 1));
904
+ }
905
+ function We(t, e, r, i, o, p) {
906
+ if (t > r || t < e) {
907
+ const v = typeof e == "bigint" ? "n" : "";
908
+ let T;
909
+ throw e === 0 || e === BigInt(0) ? T = `>= 0${v} and < 2${v} ** ${(p + 1) * 8}${v}` : T = `>= -(2${v} ** ${(p + 1) * 8 - 1}${v}) and < 2 ** ${(p + 1) * 8 - 1}${v}`, new ce.ERR_OUT_OF_RANGE("value", T, t);
910
+ }
911
+ It(i, o, p);
912
+ }
913
+ function pe(t, e) {
914
+ if (typeof t != "number")
915
+ throw new ce.ERR_INVALID_ARG_TYPE(e, "number", t);
916
+ }
917
+ function he(t, e, r) {
918
+ throw Math.floor(t) !== t ? (pe(t, r), new ce.ERR_OUT_OF_RANGE("offset", "an integer", t)) : e < 0 ? new ce.ERR_BUFFER_OUT_OF_BOUNDS() : new ce.ERR_OUT_OF_RANGE(
919
+ "offset",
920
+ `>= 0 and <= ${e}`,
921
+ t
922
+ );
923
+ }
924
+ const kt = /[^+/0-9A-Za-z-_]/g;
925
+ function bt(t) {
926
+ if (t = t.split("=")[0], t = t.trim().replace(kt, ""), t.length < 2) return "";
927
+ for (; t.length % 4 !== 0; )
928
+ t = t + "=";
929
+ return t;
930
+ }
931
+ function Ce(t, e) {
932
+ e = e || 1 / 0;
933
+ let r;
934
+ const i = t.length;
935
+ let o = null;
936
+ const p = [];
937
+ for (let v = 0; v < i; ++v) {
938
+ if (r = t.charCodeAt(v), r > 55295 && r < 57344) {
939
+ if (!o) {
940
+ if (r > 56319) {
941
+ (e -= 3) > -1 && p.push(239, 191, 189);
942
+ continue;
943
+ } else if (v + 1 === i) {
944
+ (e -= 3) > -1 && p.push(239, 191, 189);
945
+ continue;
946
+ }
947
+ o = r;
948
+ continue;
949
+ }
950
+ if (r < 56320) {
951
+ (e -= 3) > -1 && p.push(239, 191, 189), o = r;
952
+ continue;
953
+ }
954
+ r = (o - 55296 << 10 | r - 56320) + 65536;
955
+ } else o && (e -= 3) > -1 && p.push(239, 191, 189);
956
+ if (o = null, r < 128) {
957
+ if ((e -= 1) < 0) break;
958
+ p.push(r);
959
+ } else if (r < 2048) {
960
+ if ((e -= 2) < 0) break;
961
+ p.push(
962
+ r >> 6 | 192,
963
+ r & 63 | 128
964
+ );
965
+ } else if (r < 65536) {
966
+ if ((e -= 3) < 0) break;
967
+ p.push(
968
+ r >> 12 | 224,
969
+ r >> 6 & 63 | 128,
970
+ r & 63 | 128
971
+ );
972
+ } else if (r < 1114112) {
973
+ if ((e -= 4) < 0) break;
974
+ p.push(
975
+ r >> 18 | 240,
976
+ r >> 12 & 63 | 128,
977
+ r >> 6 & 63 | 128,
978
+ r & 63 | 128
979
+ );
980
+ } else
981
+ throw new Error("Invalid code point");
982
+ }
983
+ return p;
984
+ }
985
+ function jt(t) {
986
+ const e = [];
987
+ for (let r = 0; r < t.length; ++r)
988
+ e.push(t.charCodeAt(r) & 255);
989
+ return e;
990
+ }
991
+ function Tt(t, e) {
992
+ let r, i, o;
993
+ const p = [];
994
+ for (let v = 0; v < t.length && !((e -= 2) < 0); ++v)
995
+ r = t.charCodeAt(v), i = r >> 8, o = r % 256, p.push(o), p.push(i);
996
+ return p;
997
+ }
998
+ function Ze(t) {
999
+ return n.toByteArray(bt(t));
1000
+ }
1001
+ function ge(t, e, r, i) {
1002
+ let o;
1003
+ for (o = 0; o < i && !(o + r >= e.length || o >= t.length); ++o)
1004
+ e[o + r] = t[o];
1005
+ return o;
1006
+ }
1007
+ function ee(t, e) {
1008
+ return t instanceof e || t != null && t.constructor != null && t.constructor.name != null && t.constructor.name === e.name;
1009
+ }
1010
+ function Re(t) {
1011
+ return t !== t;
1012
+ }
1013
+ const St = function() {
1014
+ const t = "0123456789abcdef", e = new Array(256);
1015
+ for (let r = 0; r < 16; ++r) {
1016
+ const i = r * 16;
1017
+ for (let o = 0; o < 16; ++o)
1018
+ e[i + o] = t[r] + t[o];
1019
+ }
1020
+ return e;
1021
+ }();
1022
+ function te(t) {
1023
+ return typeof BigInt > "u" ? Ft : t;
1024
+ }
1025
+ function Ft() {
1026
+ throw new Error("BigInt not supported");
1027
+ }
1028
+ }(ke)), ke;
1029
+ }
1030
+ var Wt = qt();
1031
+ function f() {
1032
+ return f = Object.assign ? Object.assign.bind() : function(l) {
1033
+ for (var n = 1; n < arguments.length; n++) {
1034
+ var s = arguments[n];
1035
+ for (var c in s) ({}).hasOwnProperty.call(s, c) && (l[c] = s[c]);
1036
+ }
1037
+ return l;
1038
+ }, f.apply(null, arguments);
1039
+ }
1040
+ function S(l, n) {
1041
+ if (l == null) return {};
1042
+ var s = {};
1043
+ for (var c in l) if ({}.hasOwnProperty.call(l, c)) {
1044
+ if (n.indexOf(c) !== -1) continue;
1045
+ s[c] = l[c];
1046
+ }
1047
+ return s;
1048
+ }
1049
+ var rr = {}, tr = /* @__PURE__ */ Z(rr), Zt = (l, n) => f({}, l, n), zt = () => G(tr), Se = /* @__PURE__ */ Z(() => {
1050
+ });
1051
+ Se.displayName = "JVR.DispatchShowTools";
1052
+ function Gt() {
1053
+ return de(Zt, rr);
1054
+ }
1055
+ function nr() {
1056
+ return G(Se);
1057
+ }
1058
+ var ir = (l) => {
1059
+ var {
1060
+ initial: n,
1061
+ dispatch: s,
1062
+ children: c
1063
+ } = l;
1064
+ return /* @__PURE__ */ g(tr.Provider, {
1065
+ value: n,
1066
+ children: /* @__PURE__ */ g(Se.Provider, {
1067
+ value: s,
1068
+ children: c
1069
+ })
1070
+ });
1071
+ };
1072
+ ir.displayName = "JVR.ShowTools";
1073
+ var ar = {}, lr = /* @__PURE__ */ Z(ar), Ht = (l, n) => f({}, l, n), Be = () => G(lr), Fe = /* @__PURE__ */ Z(() => {
1074
+ });
1075
+ Fe.displayName = "JVR.DispatchExpands";
1076
+ function Yt() {
1077
+ return de(Ht, ar);
1078
+ }
1079
+ function Xt() {
1080
+ return G(Fe);
1081
+ }
1082
+ var or = (l) => {
1083
+ var {
1084
+ initial: n,
1085
+ dispatch: s,
1086
+ children: c
1087
+ } = l;
1088
+ return /* @__PURE__ */ g(lr.Provider, {
1089
+ value: n,
1090
+ children: /* @__PURE__ */ g(Fe.Provider, {
1091
+ value: s,
1092
+ children: c
1093
+ })
1094
+ });
1095
+ };
1096
+ or.displayName = "JVR.Expands";
1097
+ var sr = {
1098
+ Str: {
1099
+ as: "span",
1100
+ "data-type": "string",
1101
+ style: {
1102
+ color: "var(--w-rjv-type-string-color, #cb4b16)"
1103
+ },
1104
+ className: "w-rjv-type",
1105
+ children: "string"
1106
+ },
1107
+ Url: {
1108
+ as: "a",
1109
+ style: {
1110
+ color: "var(--w-rjv-type-url-color, #0969da)"
1111
+ },
1112
+ "data-type": "url",
1113
+ className: "w-rjv-type",
1114
+ children: "url"
1115
+ },
1116
+ Undefined: {
1117
+ style: {
1118
+ color: "var(--w-rjv-type-undefined-color, #586e75)"
1119
+ },
1120
+ as: "span",
1121
+ "data-type": "undefined",
1122
+ className: "w-rjv-type",
1123
+ children: "undefined"
1124
+ },
1125
+ Null: {
1126
+ style: {
1127
+ color: "var(--w-rjv-type-null-color, #d33682)"
1128
+ },
1129
+ as: "span",
1130
+ "data-type": "null",
1131
+ className: "w-rjv-type",
1132
+ children: "null"
1133
+ },
1134
+ Map: {
1135
+ style: {
1136
+ color: "var(--w-rjv-type-map-color, #268bd2)",
1137
+ marginRight: 3
1138
+ },
1139
+ as: "span",
1140
+ "data-type": "map",
1141
+ className: "w-rjv-type",
1142
+ children: "Map"
1143
+ },
1144
+ Nan: {
1145
+ style: {
1146
+ color: "var(--w-rjv-type-nan-color, #859900)"
1147
+ },
1148
+ as: "span",
1149
+ "data-type": "nan",
1150
+ className: "w-rjv-type",
1151
+ children: "NaN"
1152
+ },
1153
+ Bigint: {
1154
+ style: {
1155
+ color: "var(--w-rjv-type-bigint-color, #268bd2)"
1156
+ },
1157
+ as: "span",
1158
+ "data-type": "bigint",
1159
+ className: "w-rjv-type",
1160
+ children: "bigint"
1161
+ },
1162
+ Int: {
1163
+ style: {
1164
+ color: "var(--w-rjv-type-int-color, #268bd2)"
1165
+ },
1166
+ as: "span",
1167
+ "data-type": "int",
1168
+ className: "w-rjv-type",
1169
+ children: "int"
1170
+ },
1171
+ Set: {
1172
+ style: {
1173
+ color: "var(--w-rjv-type-set-color, #268bd2)",
1174
+ marginRight: 3
1175
+ },
1176
+ as: "span",
1177
+ "data-type": "set",
1178
+ className: "w-rjv-type",
1179
+ children: "Set"
1180
+ },
1181
+ Float: {
1182
+ style: {
1183
+ color: "var(--w-rjv-type-float-color, #859900)"
1184
+ },
1185
+ as: "span",
1186
+ "data-type": "float",
1187
+ className: "w-rjv-type",
1188
+ children: "float"
1189
+ },
1190
+ True: {
1191
+ style: {
1192
+ color: "var(--w-rjv-type-boolean-color, #2aa198)"
1193
+ },
1194
+ as: "span",
1195
+ "data-type": "bool",
1196
+ className: "w-rjv-type",
1197
+ children: "bool"
1198
+ },
1199
+ False: {
1200
+ style: {
1201
+ color: "var(--w-rjv-type-boolean-color, #2aa198)"
1202
+ },
1203
+ as: "span",
1204
+ "data-type": "bool",
1205
+ className: "w-rjv-type",
1206
+ children: "bool"
1207
+ },
1208
+ Date: {
1209
+ style: {
1210
+ color: "var(--w-rjv-type-date-color, #268bd2)"
1211
+ },
1212
+ as: "span",
1213
+ "data-type": "date",
1214
+ className: "w-rjv-type",
1215
+ children: "date"
1216
+ }
1217
+ }, ur = /* @__PURE__ */ Z(sr), en = (l, n) => f({}, l, n), A = () => G(ur), Le = /* @__PURE__ */ Z(() => {
1218
+ });
1219
+ Le.displayName = "JVR.DispatchTypes";
1220
+ function rn() {
1221
+ return de(en, sr);
1222
+ }
1223
+ function tn() {
1224
+ return G(Le);
1225
+ }
1226
+ function cr(l) {
1227
+ var {
1228
+ initial: n,
1229
+ dispatch: s,
1230
+ children: c
1231
+ } = l;
1232
+ return /* @__PURE__ */ g(ur.Provider, {
1233
+ value: n,
1234
+ children: /* @__PURE__ */ g(Le.Provider, {
1235
+ value: s,
1236
+ children: c
1237
+ })
1238
+ });
1239
+ }
1240
+ cr.displayName = "JVR.Types";
1241
+ var nn = ["style"];
1242
+ function pr(l) {
1243
+ var {
1244
+ style: n
1245
+ } = l, s = S(l, nn), c = f({
1246
+ cursor: "pointer",
1247
+ height: "1em",
1248
+ width: "1em",
1249
+ userSelect: "none",
1250
+ display: "inline-flex"
1251
+ }, n);
1252
+ return /* @__PURE__ */ g("svg", f({
1253
+ viewBox: "0 0 24 24",
1254
+ fill: "var(--w-rjv-arrow-color, currentColor)",
1255
+ style: c
1256
+ }, s, {
1257
+ children: /* @__PURE__ */ g("path", {
1258
+ d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
1259
+ })
1260
+ }));
1261
+ }
1262
+ pr.displayName = "JVR.TriangleArrow";
1263
+ var yr = {
1264
+ Arrow: {
1265
+ as: "span",
1266
+ className: "w-rjv-arrow",
1267
+ style: {
1268
+ transform: "rotate(0deg)",
1269
+ transition: "all 0.3s"
1270
+ },
1271
+ children: /* @__PURE__ */ g(pr, {})
1272
+ },
1273
+ Colon: {
1274
+ as: "span",
1275
+ style: {
1276
+ color: "var(--w-rjv-colon-color, var(--w-rjv-color))",
1277
+ marginLeft: 0,
1278
+ marginRight: 2
1279
+ },
1280
+ className: "w-rjv-colon",
1281
+ children: ":"
1282
+ },
1283
+ Quote: {
1284
+ as: "span",
1285
+ style: {
1286
+ color: "var(--w-rjv-quotes-color, #236a7c)"
1287
+ },
1288
+ className: "w-rjv-quotes",
1289
+ children: '"'
1290
+ },
1291
+ ValueQuote: {
1292
+ as: "span",
1293
+ style: {
1294
+ color: "var(--w-rjv-quotes-string-color, #cb4b16)"
1295
+ },
1296
+ className: "w-rjv-quotes",
1297
+ children: '"'
1298
+ },
1299
+ BracketsLeft: {
1300
+ as: "span",
1301
+ style: {
1302
+ color: "var(--w-rjv-brackets-color, #236a7c)"
1303
+ },
1304
+ className: "w-rjv-brackets-start",
1305
+ children: "["
1306
+ },
1307
+ BracketsRight: {
1308
+ as: "span",
1309
+ style: {
1310
+ color: "var(--w-rjv-brackets-color, #236a7c)"
1311
+ },
1312
+ className: "w-rjv-brackets-end",
1313
+ children: "]"
1314
+ },
1315
+ BraceLeft: {
1316
+ as: "span",
1317
+ style: {
1318
+ color: "var(--w-rjv-curlybraces-color, #236a7c)"
1319
+ },
1320
+ className: "w-rjv-curlybraces-start",
1321
+ children: "{"
1322
+ },
1323
+ BraceRight: {
1324
+ as: "span",
1325
+ style: {
1326
+ color: "var(--w-rjv-curlybraces-color, #236a7c)"
1327
+ },
1328
+ className: "w-rjv-curlybraces-end",
1329
+ children: "}"
1330
+ }
1331
+ }, dr = /* @__PURE__ */ Z(yr), an = (l, n) => f({}, l, n), K = () => G(dr), Ae = /* @__PURE__ */ Z(() => {
1332
+ });
1333
+ Ae.displayName = "JVR.DispatchSymbols";
1334
+ function ln() {
1335
+ return de(an, yr);
1336
+ }
1337
+ function on() {
1338
+ return G(Ae);
1339
+ }
1340
+ var fr = (l) => {
1341
+ var {
1342
+ initial: n,
1343
+ dispatch: s,
1344
+ children: c
1345
+ } = l;
1346
+ return /* @__PURE__ */ g(dr.Provider, {
1347
+ value: n,
1348
+ children: /* @__PURE__ */ g(Ae.Provider, {
1349
+ value: s,
1350
+ children: c
1351
+ })
1352
+ });
1353
+ };
1354
+ fr.displayName = "JVR.Symbols";
1355
+ var hr = {
1356
+ Copied: {
1357
+ className: "w-rjv-copied",
1358
+ style: {
1359
+ height: "1em",
1360
+ width: "1em",
1361
+ cursor: "pointer",
1362
+ verticalAlign: "middle",
1363
+ marginLeft: 5
1364
+ }
1365
+ },
1366
+ CountInfo: {
1367
+ as: "span",
1368
+ className: "w-rjv-object-size",
1369
+ style: {
1370
+ color: "var(--w-rjv-info-color, #0000004d)",
1371
+ paddingLeft: 8,
1372
+ fontStyle: "italic"
1373
+ }
1374
+ },
1375
+ CountInfoExtra: {
1376
+ as: "span",
1377
+ className: "w-rjv-object-extra",
1378
+ style: {
1379
+ paddingLeft: 8
1380
+ }
1381
+ },
1382
+ Ellipsis: {
1383
+ as: "span",
1384
+ style: {
1385
+ cursor: "pointer",
1386
+ color: "var(--w-rjv-ellipsis-color, #cb4b16)",
1387
+ userSelect: "none"
1388
+ },
1389
+ className: "w-rjv-ellipsis",
1390
+ children: "..."
1391
+ },
1392
+ Row: {
1393
+ as: "div",
1394
+ className: "w-rjv-line"
1395
+ },
1396
+ KeyName: {
1397
+ as: "span",
1398
+ className: "w-rjv-object-key"
1399
+ }
1400
+ }, vr = /* @__PURE__ */ Z(hr), sn = (l, n) => f({}, l, n), z = () => G(vr), Ve = /* @__PURE__ */ Z(() => {
1401
+ });
1402
+ Ve.displayName = "JVR.DispatchSection";
1403
+ function un() {
1404
+ return de(sn, hr);
1405
+ }
1406
+ function cn() {
1407
+ return G(Ve);
1408
+ }
1409
+ var mr = (l) => {
1410
+ var {
1411
+ initial: n,
1412
+ dispatch: s,
1413
+ children: c
1414
+ } = l;
1415
+ return /* @__PURE__ */ g(vr.Provider, {
1416
+ value: n,
1417
+ children: /* @__PURE__ */ g(Ve.Provider, {
1418
+ value: s,
1419
+ children: c
1420
+ })
1421
+ });
1422
+ };
1423
+ mr.displayName = "JVR.Section";
1424
+ var wr = {
1425
+ objectSortKeys: !1,
1426
+ indentWidth: 15
1427
+ }, Ue = /* @__PURE__ */ Z(wr);
1428
+ Ue.displayName = "JVR.Context";
1429
+ var xr = /* @__PURE__ */ Z(() => {
1430
+ });
1431
+ xr.displayName = "JVR.DispatchContext";
1432
+ function pn(l, n) {
1433
+ return f({}, l, n);
1434
+ }
1435
+ var se = () => G(Ue), gr = (l) => {
1436
+ var {
1437
+ children: n,
1438
+ initialState: s,
1439
+ initialTypes: c
1440
+ } = l, [u, h] = de(pn, Object.assign({}, wr, s)), [y, a] = Gt(), [d, N] = Yt(), [m, w] = rn(), [B, x] = ln(), [E, C] = un();
1441
+ return oe(() => h(f({}, s)), [s]), /* @__PURE__ */ g(Ue.Provider, {
1442
+ value: u,
1443
+ children: /* @__PURE__ */ g(xr.Provider, {
1444
+ value: h,
1445
+ children: /* @__PURE__ */ g(ir, {
1446
+ initial: y,
1447
+ dispatch: a,
1448
+ children: /* @__PURE__ */ g(or, {
1449
+ initial: d,
1450
+ dispatch: N,
1451
+ children: /* @__PURE__ */ g(cr, {
1452
+ initial: f({}, m, c),
1453
+ dispatch: w,
1454
+ children: /* @__PURE__ */ g(fr, {
1455
+ initial: B,
1456
+ dispatch: x,
1457
+ children: /* @__PURE__ */ g(mr, {
1458
+ initial: E,
1459
+ dispatch: C,
1460
+ children: n
1461
+ })
1462
+ })
1463
+ })
1464
+ })
1465
+ })
1466
+ })
1467
+ });
1468
+ };
1469
+ gr.displayName = "JVR.Provider";
1470
+ function yn(l) {
1471
+ if (l == null) throw new TypeError("Cannot destructure " + l);
1472
+ }
1473
+ var dn = ["isNumber", "value", "parentValue", "keyName", "keys"], fn = ["as", "render"], hn = ["as", "render"], vn = ["as", "render"], mn = ["as", "style", "render"], wn = ["as", "render"], xn = ["as", "render"], gn = ["as", "render"], Nn = ["as", "render"], be = (l) => {
1474
+ var {
1475
+ Quote: n = {}
1476
+ } = K(), {
1477
+ isNumber: s,
1478
+ value: c,
1479
+ parentValue: u,
1480
+ keyName: h,
1481
+ keys: y
1482
+ } = l, a = S(l, dn);
1483
+ if (s) return null;
1484
+ var {
1485
+ as: d,
1486
+ render: N
1487
+ } = n, m = S(n, fn), w = d || "span", B = f({}, a, m);
1488
+ if (typeof B.children == "string") {
1489
+ var x = B.children.trim();
1490
+ B.children = x || void 0;
1491
+ }
1492
+ var E = {
1493
+ value: c,
1494
+ parentValue: u,
1495
+ keyName: h,
1496
+ keys: y || (h ? [h] : [])
1497
+ }, C = N && typeof N == "function" && N(B, E);
1498
+ return C || /* @__PURE__ */ g(w, f({}, B));
1499
+ };
1500
+ be.displayName = "JVR.Quote";
1501
+ var we = (l) => {
1502
+ var {
1503
+ ValueQuote: n = {}
1504
+ } = K(), s = f({}, (yn(l), l)), {
1505
+ as: c,
1506
+ render: u
1507
+ } = n, h = S(n, hn), y = c || "span", a = f({}, s, h), d = u && typeof u == "function" && u(a, {});
1508
+ return d || /* @__PURE__ */ g(y, f({}, a));
1509
+ };
1510
+ we.displayName = "JVR.ValueQuote";
1511
+ var Nr = (l) => {
1512
+ var {
1513
+ value: n,
1514
+ parentValue: s,
1515
+ keyName: c,
1516
+ keys: u
1517
+ } = l, {
1518
+ Colon: h = {}
1519
+ } = K(), {
1520
+ as: y,
1521
+ render: a
1522
+ } = h, d = S(h, vn), N = y || "span", m = a && typeof a == "function" && a(d, {
1523
+ value: n,
1524
+ parentValue: s,
1525
+ keyName: c,
1526
+ keys: u || (c ? [c] : [])
1527
+ });
1528
+ return m || /* @__PURE__ */ g(N, f({}, d));
1529
+ };
1530
+ Nr.displayName = "JVR.Colon";
1531
+ var Br = (l) => {
1532
+ var {
1533
+ Arrow: n = {}
1534
+ } = K(), s = Be(), {
1535
+ expandKey: c,
1536
+ style: u,
1537
+ value: h,
1538
+ parentValue: y,
1539
+ keyName: a,
1540
+ keys: d
1541
+ } = l, N = !!s[c], {
1542
+ as: m,
1543
+ style: w,
1544
+ render: B
1545
+ } = n, x = S(n, mn), E = m || "span", C = B && typeof B == "function", R = f({}, x, {
1546
+ "data-expanded": N,
1547
+ style: f({}, w, u)
1548
+ }), k = {
1549
+ value: h,
1550
+ parentValue: y,
1551
+ keyName: a,
1552
+ keys: d || (a ? [a] : [])
1553
+ }, I = C && B(R, k);
1554
+ return I || /* @__PURE__ */ g(E, f({}, x, {
1555
+ style: f({}, w, u)
1556
+ }));
1557
+ };
1558
+ Br.displayName = "JVR.Arrow";
1559
+ var Er = (l) => {
1560
+ var {
1561
+ isBrackets: n,
1562
+ value: s,
1563
+ parentValue: c,
1564
+ keyName: u,
1565
+ keys: h
1566
+ } = l, {
1567
+ BracketsLeft: y = {},
1568
+ BraceLeft: a = {}
1569
+ } = K(), d = {
1570
+ value: s,
1571
+ parentValue: c,
1572
+ keyName: u,
1573
+ keys: h || (u ? [u] : [])
1574
+ };
1575
+ if (n) {
1576
+ var {
1577
+ as: N,
1578
+ render: m
1579
+ } = y, w = S(y, wn), B = N || "span", x = m && typeof m == "function" && m(w, d);
1580
+ return x || /* @__PURE__ */ g(B, f({}, w));
1581
+ }
1582
+ var {
1583
+ as: E,
1584
+ render: C
1585
+ } = a, R = S(a, xn), k = E || "span", I = C && typeof C == "function" && C(R, d);
1586
+ return I || /* @__PURE__ */ g(k, f({}, R));
1587
+ };
1588
+ Er.displayName = "JVR.BracketsOpen";
1589
+ var De = (l) => {
1590
+ var {
1591
+ isBrackets: n,
1592
+ isVisiable: s,
1593
+ value: c,
1594
+ parentValue: u,
1595
+ keyName: h,
1596
+ keys: y
1597
+ } = l, a = {
1598
+ value: c,
1599
+ parentValue: u,
1600
+ keyName: h,
1601
+ keys: y || (h ? [h] : [])
1602
+ };
1603
+ if (!s) return null;
1604
+ var {
1605
+ BracketsRight: d = {},
1606
+ BraceRight: N = {}
1607
+ } = K();
1608
+ if (n) {
1609
+ var {
1610
+ as: m,
1611
+ render: w
1612
+ } = d, B = S(d, gn), x = m || "span", E = w && typeof w == "function" && w(B, a);
1613
+ return E || /* @__PURE__ */ g(x, f({}, B));
1614
+ }
1615
+ var {
1616
+ as: C,
1617
+ render: R
1618
+ } = N, k = S(N, Nn), I = C || "span", b = R && typeof R == "function" && R(k, a);
1619
+ return b || /* @__PURE__ */ g(I, f({}, k));
1620
+ };
1621
+ De.displayName = "JVR.BracketsClose";
1622
+ var Cr = (l) => {
1623
+ var n, {
1624
+ keyName: s,
1625
+ value: c,
1626
+ expandKey: u,
1627
+ parentValue: h,
1628
+ level: y,
1629
+ keys: a = []
1630
+ } = l, d = Be(), {
1631
+ collapsed: N,
1632
+ shouldExpandNodeInitially: m
1633
+ } = se(), w = typeof N == "boolean" ? N : typeof N == "number" ? y > N : !1, B = (n = d[u]) != null ? n : m ? !1 : w, x = m && m(!B, {
1634
+ value: c,
1635
+ keys: a,
1636
+ level: y,
1637
+ keyName: s,
1638
+ parentValue: h
1639
+ });
1640
+ if (m && N === !1) {
1641
+ if (d[u] === void 0 && !x)
1642
+ return null;
1643
+ } else if (d[u] === void 0 && x)
1644
+ return null;
1645
+ var E = Object.keys(c).length;
1646
+ if (B || E === 0)
1647
+ return null;
1648
+ var C = {
1649
+ paddingLeft: 4
1650
+ }, R = {
1651
+ keyName: s,
1652
+ value: c,
1653
+ keys: a,
1654
+ parentValue: h
1655
+ }, k = Array.isArray(c), I = c instanceof Set;
1656
+ return /* @__PURE__ */ g("div", {
1657
+ style: C,
1658
+ children: /* @__PURE__ */ g(De, f({
1659
+ isBrackets: k || I
1660
+ }, R, {
1661
+ isVisiable: !0
1662
+ }))
1663
+ });
1664
+ };
1665
+ Cr.displayName = "JVR.NestedClose";
1666
+ var Bn = ["as", "render"], En = ["as", "render"], Cn = ["as", "render"], Rn = ["as", "render"], In = ["as", "render"], kn = ["as", "render"], bn = ["as", "render"], jn = ["as", "render"], Tn = ["as", "render"], Sn = ["as", "render"], Fn = ["as", "render"], Ln = ["as", "render"], An = ["as", "render"], je = (l) => {
1667
+ if (l === void 0)
1668
+ return "0n";
1669
+ if (typeof l == "string")
1670
+ try {
1671
+ l = BigInt(l);
1672
+ } catch {
1673
+ return "0n";
1674
+ }
1675
+ return l ? l.toString() + "n" : "0n";
1676
+ }, Rr = (l) => {
1677
+ var {
1678
+ value: n,
1679
+ keyName: s
1680
+ } = l, {
1681
+ Set: c = {},
1682
+ displayDataTypes: u
1683
+ } = A(), h = n instanceof Set;
1684
+ if (!h || !u) return null;
1685
+ var {
1686
+ as: y,
1687
+ render: a
1688
+ } = c, d = S(c, Bn), N = a && typeof a == "function", m = N && a(d, {
1689
+ type: "type",
1690
+ value: n,
1691
+ keyName: s
1692
+ });
1693
+ if (m) return m;
1694
+ var w = y || "span";
1695
+ return /* @__PURE__ */ g(w, f({}, d));
1696
+ };
1697
+ Rr.displayName = "JVR.SetComp";
1698
+ var Ir = (l) => {
1699
+ var {
1700
+ value: n,
1701
+ keyName: s
1702
+ } = l, {
1703
+ Map: c = {},
1704
+ displayDataTypes: u
1705
+ } = A(), h = n instanceof Map;
1706
+ if (!h || !u) return null;
1707
+ var {
1708
+ as: y,
1709
+ render: a
1710
+ } = c, d = S(c, En), N = a && typeof a == "function", m = N && a(d, {
1711
+ type: "type",
1712
+ value: n,
1713
+ keyName: s
1714
+ });
1715
+ if (m) return m;
1716
+ var w = y || "span";
1717
+ return /* @__PURE__ */ g(w, f({}, d));
1718
+ };
1719
+ Ir.displayName = "JVR.MapComp";
1720
+ var H = {
1721
+ opacity: 0.75,
1722
+ paddingRight: 4
1723
+ }, kr = (l) => {
1724
+ var {
1725
+ children: n = "",
1726
+ keyName: s,
1727
+ keys: c
1728
+ } = l, {
1729
+ Str: u = {},
1730
+ displayDataTypes: h
1731
+ } = A(), {
1732
+ shortenTextAfterLength: y = 30,
1733
+ stringEllipsis: a = "..."
1734
+ } = se(), {
1735
+ as: d,
1736
+ render: N
1737
+ } = u, m = S(u, Cn), w = n, [B, x] = Xe(y && w.length > y);
1738
+ oe(() => x(y && w.length > y), [y]);
1739
+ var E = d || "span", C = f({}, H, u.style || {});
1740
+ y > 0 && (m.style = f({}, m.style, {
1741
+ cursor: w.length <= y ? "initial" : "pointer"
1742
+ }), w.length > y && (m.onClick = () => {
1743
+ x(!B);
1744
+ }));
1745
+ var R = B ? "" + w.slice(0, y) + a : w, k = N && typeof N == "function", I = k && N(f({}, m, {
1746
+ style: C
1747
+ }), {
1748
+ type: "type",
1749
+ value: n,
1750
+ keyName: s,
1751
+ keys: c
1752
+ }), b = B ? "w-rjv-value w-rjv-value-short" : "w-rjv-value", U = k && N(f({}, m, {
1753
+ children: R,
1754
+ className: b
1755
+ }), {
1756
+ type: "value",
1757
+ value: n,
1758
+ keyName: s,
1759
+ keys: c
1760
+ });
1761
+ return /* @__PURE__ */ _(Q, {
1762
+ children: [h && (I || /* @__PURE__ */ g(E, f({}, m, {
1763
+ style: C
1764
+ }))), U || /* @__PURE__ */ _(Q, {
1765
+ children: [/* @__PURE__ */ g(we, {}), /* @__PURE__ */ g(E, f({}, m, {
1766
+ className: b,
1767
+ children: R
1768
+ })), /* @__PURE__ */ g(we, {})]
1769
+ })]
1770
+ });
1771
+ };
1772
+ kr.displayName = "JVR.TypeString";
1773
+ var br = (l) => {
1774
+ var {
1775
+ children: n,
1776
+ keyName: s,
1777
+ keys: c
1778
+ } = l, {
1779
+ True: u = {},
1780
+ displayDataTypes: h
1781
+ } = A(), {
1782
+ as: y,
1783
+ render: a
1784
+ } = u, d = S(u, Rn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1785
+ style: m
1786
+ }), {
1787
+ type: "type",
1788
+ value: n,
1789
+ keyName: s,
1790
+ keys: c
1791
+ }), x = w && a(f({}, d, {
1792
+ children: n,
1793
+ className: "w-rjv-value"
1794
+ }), {
1795
+ type: "value",
1796
+ value: n,
1797
+ keyName: s,
1798
+ keys: c
1799
+ });
1800
+ return /* @__PURE__ */ _(Q, {
1801
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
1802
+ style: m
1803
+ }))), x || /* @__PURE__ */ g(N, f({}, d, {
1804
+ className: "w-rjv-value",
1805
+ children: n?.toString()
1806
+ }))]
1807
+ });
1808
+ };
1809
+ br.displayName = "JVR.TypeTrue";
1810
+ var jr = (l) => {
1811
+ var {
1812
+ children: n,
1813
+ keyName: s,
1814
+ keys: c
1815
+ } = l, {
1816
+ False: u = {},
1817
+ displayDataTypes: h
1818
+ } = A(), {
1819
+ as: y,
1820
+ render: a
1821
+ } = u, d = S(u, In), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1822
+ style: m
1823
+ }), {
1824
+ type: "type",
1825
+ value: n,
1826
+ keyName: s,
1827
+ keys: c
1828
+ }), x = w && a(f({}, d, {
1829
+ children: n,
1830
+ className: "w-rjv-value"
1831
+ }), {
1832
+ type: "value",
1833
+ value: n,
1834
+ keyName: s,
1835
+ keys: c
1836
+ });
1837
+ return /* @__PURE__ */ _(Q, {
1838
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
1839
+ style: m
1840
+ }))), x || /* @__PURE__ */ g(N, f({}, d, {
1841
+ className: "w-rjv-value",
1842
+ children: n?.toString()
1843
+ }))]
1844
+ });
1845
+ };
1846
+ jr.displayName = "JVR.TypeFalse";
1847
+ var Tr = (l) => {
1848
+ var {
1849
+ children: n,
1850
+ keyName: s,
1851
+ keys: c
1852
+ } = l, {
1853
+ Float: u = {},
1854
+ displayDataTypes: h
1855
+ } = A(), {
1856
+ as: y,
1857
+ render: a
1858
+ } = u, d = S(u, kn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1859
+ style: m
1860
+ }), {
1861
+ type: "type",
1862
+ value: n,
1863
+ keyName: s,
1864
+ keys: c
1865
+ }), x = w && a(f({}, d, {
1866
+ children: n,
1867
+ className: "w-rjv-value"
1868
+ }), {
1869
+ type: "value",
1870
+ value: n,
1871
+ keyName: s,
1872
+ keys: c
1873
+ });
1874
+ return /* @__PURE__ */ _(Q, {
1875
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
1876
+ style: m
1877
+ }))), x || /* @__PURE__ */ g(N, f({}, d, {
1878
+ className: "w-rjv-value",
1879
+ children: n?.toString()
1880
+ }))]
1881
+ });
1882
+ };
1883
+ Tr.displayName = "JVR.TypeFloat";
1884
+ var Sr = (l) => {
1885
+ var {
1886
+ children: n,
1887
+ keyName: s,
1888
+ keys: c
1889
+ } = l, {
1890
+ Int: u = {},
1891
+ displayDataTypes: h
1892
+ } = A(), {
1893
+ as: y,
1894
+ render: a
1895
+ } = u, d = S(u, bn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1896
+ style: m
1897
+ }), {
1898
+ type: "type",
1899
+ value: n,
1900
+ keyName: s,
1901
+ keys: c
1902
+ }), x = w && a(f({}, d, {
1903
+ children: n,
1904
+ className: "w-rjv-value"
1905
+ }), {
1906
+ type: "value",
1907
+ value: n,
1908
+ keyName: s,
1909
+ keys: c
1910
+ });
1911
+ return /* @__PURE__ */ _(Q, {
1912
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
1913
+ style: m
1914
+ }))), x || /* @__PURE__ */ g(N, f({}, d, {
1915
+ className: "w-rjv-value",
1916
+ children: n?.toString()
1917
+ }))]
1918
+ });
1919
+ };
1920
+ Sr.displayName = "JVR.TypeInt";
1921
+ var Fr = (l) => {
1922
+ var {
1923
+ children: n,
1924
+ keyName: s,
1925
+ keys: c
1926
+ } = l, {
1927
+ Bigint: u = {},
1928
+ displayDataTypes: h
1929
+ } = A(), {
1930
+ as: y,
1931
+ render: a
1932
+ } = u, d = S(u, jn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1933
+ style: m
1934
+ }), {
1935
+ type: "type",
1936
+ value: n,
1937
+ keyName: s,
1938
+ keys: c
1939
+ }), x = w && a(f({}, d, {
1940
+ children: n,
1941
+ className: "w-rjv-value"
1942
+ }), {
1943
+ type: "value",
1944
+ value: n,
1945
+ keyName: s,
1946
+ keys: c
1947
+ });
1948
+ return /* @__PURE__ */ _(Q, {
1949
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
1950
+ style: m
1951
+ }))), x || /* @__PURE__ */ g(N, f({}, d, {
1952
+ className: "w-rjv-value",
1953
+ children: je(n?.toString())
1954
+ }))]
1955
+ });
1956
+ };
1957
+ Fr.displayName = "JVR.TypeFloat";
1958
+ var Lr = (l) => {
1959
+ var {
1960
+ children: n,
1961
+ keyName: s,
1962
+ keys: c
1963
+ } = l, {
1964
+ Url: u = {},
1965
+ displayDataTypes: h
1966
+ } = A(), {
1967
+ as: y,
1968
+ render: a
1969
+ } = u, d = S(u, Tn), N = y || "span", m = f({}, H, u.style), w = a && typeof a == "function", B = w && a(f({}, d, {
1970
+ style: m
1971
+ }), {
1972
+ type: "type",
1973
+ value: n,
1974
+ keyName: s,
1975
+ keys: c
1976
+ }), x = w && a(f({}, d, {
1977
+ children: n?.href,
1978
+ className: "w-rjv-value"
1979
+ }), {
1980
+ type: "value",
1981
+ value: n,
1982
+ keyName: s,
1983
+ keys: c
1984
+ });
1985
+ return /* @__PURE__ */ _(Q, {
1986
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
1987
+ style: m
1988
+ }))), x || /* @__PURE__ */ _("a", f({
1989
+ href: n?.href,
1990
+ target: "_blank"
1991
+ }, d, {
1992
+ className: "w-rjv-value",
1993
+ children: [/* @__PURE__ */ g(we, {}), n?.href, /* @__PURE__ */ g(we, {})]
1994
+ }))]
1995
+ });
1996
+ };
1997
+ Lr.displayName = "JVR.TypeUrl";
1998
+ var Ar = (l) => {
1999
+ var {
2000
+ children: n,
2001
+ keyName: s,
2002
+ keys: c
2003
+ } = l, {
2004
+ Date: u = {},
2005
+ displayDataTypes: h
2006
+ } = A(), {
2007
+ as: y,
2008
+ render: a
2009
+ } = u, d = S(u, Sn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2010
+ style: m
2011
+ }), {
2012
+ type: "type",
2013
+ value: n,
2014
+ keyName: s,
2015
+ keys: c
2016
+ }), x = n instanceof Date ? n.toLocaleString() : n, E = w && a(f({}, d, {
2017
+ children: x,
2018
+ className: "w-rjv-value"
2019
+ }), {
2020
+ type: "value",
2021
+ value: n,
2022
+ keyName: s,
2023
+ keys: c
2024
+ });
2025
+ return /* @__PURE__ */ _(Q, {
2026
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
2027
+ style: m
2028
+ }))), E || /* @__PURE__ */ g(N, f({}, d, {
2029
+ className: "w-rjv-value",
2030
+ children: x
2031
+ }))]
2032
+ });
2033
+ };
2034
+ Ar.displayName = "JVR.TypeDate";
2035
+ var Vr = (l) => {
2036
+ var {
2037
+ children: n,
2038
+ keyName: s,
2039
+ keys: c
2040
+ } = l, {
2041
+ Undefined: u = {},
2042
+ displayDataTypes: h
2043
+ } = A(), {
2044
+ as: y,
2045
+ render: a
2046
+ } = u, d = S(u, Fn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2047
+ style: m
2048
+ }), {
2049
+ type: "type",
2050
+ value: n,
2051
+ keyName: s,
2052
+ keys: c
2053
+ }), x = w && a(f({}, d, {
2054
+ children: n,
2055
+ className: "w-rjv-value"
2056
+ }), {
2057
+ type: "value",
2058
+ value: n,
2059
+ keyName: s,
2060
+ keys: c
2061
+ });
2062
+ return /* @__PURE__ */ _(Q, {
2063
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
2064
+ style: m
2065
+ }))), x]
2066
+ });
2067
+ };
2068
+ Vr.displayName = "JVR.TypeUndefined";
2069
+ var Ur = (l) => {
2070
+ var {
2071
+ children: n,
2072
+ keyName: s,
2073
+ keys: c
2074
+ } = l, {
2075
+ Null: u = {},
2076
+ displayDataTypes: h
2077
+ } = A(), {
2078
+ as: y,
2079
+ render: a
2080
+ } = u, d = S(u, Ln), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2081
+ style: m
2082
+ }), {
2083
+ type: "type",
2084
+ value: n,
2085
+ keyName: s,
2086
+ keys: c
2087
+ }), x = w && a(f({}, d, {
2088
+ children: n,
2089
+ className: "w-rjv-value"
2090
+ }), {
2091
+ type: "value",
2092
+ value: n,
2093
+ keyName: s,
2094
+ keys: c
2095
+ });
2096
+ return /* @__PURE__ */ _(Q, {
2097
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
2098
+ style: m
2099
+ }))), x]
2100
+ });
2101
+ };
2102
+ Ur.displayName = "JVR.TypeNull";
2103
+ var Dr = (l) => {
2104
+ var {
2105
+ children: n,
2106
+ keyName: s,
2107
+ keys: c
2108
+ } = l, {
2109
+ Nan: u = {},
2110
+ displayDataTypes: h
2111
+ } = A(), {
2112
+ as: y,
2113
+ render: a
2114
+ } = u, d = S(u, An), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2115
+ style: m
2116
+ }), {
2117
+ type: "type",
2118
+ value: n,
2119
+ keyName: s,
2120
+ keys: c
2121
+ }), x = w && a(f({}, d, {
2122
+ children: n?.toString(),
2123
+ className: "w-rjv-value"
2124
+ }), {
2125
+ type: "value",
2126
+ value: n,
2127
+ keyName: s,
2128
+ keys: c
2129
+ });
2130
+ return /* @__PURE__ */ _(Q, {
2131
+ children: [h && (B || /* @__PURE__ */ g(N, f({}, d, {
2132
+ style: m
2133
+ }))), x]
2134
+ });
2135
+ };
2136
+ Dr.displayName = "JVR.TypeNan";
2137
+ var Vn = (l) => Number(l) === l && l % 1 !== 0 || isNaN(l), Jr = (l) => {
2138
+ var {
2139
+ value: n,
2140
+ keyName: s,
2141
+ keys: c
2142
+ } = l, u = {
2143
+ keyName: s,
2144
+ keys: c
2145
+ };
2146
+ return n instanceof URL ? /* @__PURE__ */ g(Lr, f({}, u, {
2147
+ children: n
2148
+ })) : typeof n == "string" ? /* @__PURE__ */ g(kr, f({}, u, {
2149
+ children: n
2150
+ })) : n === !0 ? /* @__PURE__ */ g(br, f({}, u, {
2151
+ children: n
2152
+ })) : n === !1 ? /* @__PURE__ */ g(jr, f({}, u, {
2153
+ children: n
2154
+ })) : n === null ? /* @__PURE__ */ g(Ur, f({}, u, {
2155
+ children: n
2156
+ })) : n === void 0 ? /* @__PURE__ */ g(Vr, f({}, u, {
2157
+ children: n
2158
+ })) : n instanceof Date ? /* @__PURE__ */ g(Ar, f({}, u, {
2159
+ children: n
2160
+ })) : typeof n == "number" && isNaN(n) ? /* @__PURE__ */ g(Dr, f({}, u, {
2161
+ children: n
2162
+ })) : typeof n == "number" && Vn(n) ? /* @__PURE__ */ g(Tr, f({}, u, {
2163
+ children: n
2164
+ })) : typeof n == "bigint" ? /* @__PURE__ */ g(Fr, f({}, u, {
2165
+ children: n
2166
+ })) : typeof n == "number" ? /* @__PURE__ */ g(Sr, f({}, u, {
2167
+ children: n
2168
+ })) : null;
2169
+ };
2170
+ Jr.displayName = "JVR.Value";
2171
+ function ne(l, n, s) {
2172
+ var c = on(), u = [l.className, n.className].filter(Boolean).join(" "), h = f({}, l, n, {
2173
+ className: u,
2174
+ style: f({}, l.style, n.style),
2175
+ children: n.children || l.children
2176
+ });
2177
+ oe(() => c({
2178
+ [s]: h
2179
+ }), [n]);
2180
+ }
2181
+ function q(l, n, s) {
2182
+ var c = tn(), u = [l.className, n.className].filter(Boolean).join(" "), h = f({}, l, n, {
2183
+ className: u,
2184
+ style: f({}, l.style, n.style),
2185
+ children: n.children || l.children
2186
+ });
2187
+ oe(() => c({
2188
+ [s]: h
2189
+ }), [n]);
2190
+ }
2191
+ function fe(l, n, s) {
2192
+ var c = cn(), u = [l.className, n.className].filter(Boolean).join(" "), h = f({}, l, n, {
2193
+ className: u,
2194
+ style: f({}, l.style, n.style),
2195
+ children: n.children || l.children
2196
+ });
2197
+ oe(() => c({
2198
+ [s]: h
2199
+ }), [n]);
2200
+ }
2201
+ var Un = ["as", "render"], _r = (l) => {
2202
+ var {
2203
+ KeyName: n = {}
2204
+ } = z();
2205
+ return fe(n, l, "KeyName"), null;
2206
+ };
2207
+ _r.displayName = "JVR.KeyName";
2208
+ var Mr = (l) => {
2209
+ var {
2210
+ children: n,
2211
+ value: s,
2212
+ parentValue: c,
2213
+ keyName: u,
2214
+ keys: h
2215
+ } = l, y = typeof n == "number", a = {
2216
+ color: y ? "var(--w-rjv-key-number, #268bd2)" : "var(--w-rjv-key-string, #002b36)"
2217
+ }, {
2218
+ KeyName: d = {}
2219
+ } = z(), {
2220
+ as: N,
2221
+ render: m
2222
+ } = d, w = S(d, Un);
2223
+ w.style = f({}, w.style, a);
2224
+ var B = N || "span", x = m && typeof m == "function" && m(f({}, w, {
2225
+ children: n
2226
+ }), {
2227
+ value: s,
2228
+ parentValue: c,
2229
+ keyName: u,
2230
+ keys: h || (u ? [u] : [])
2231
+ });
2232
+ return x || /* @__PURE__ */ g(B, f({}, w, {
2233
+ children: n
2234
+ }));
2235
+ };
2236
+ Mr.displayName = "JVR.KeyNameComp";
2237
+ var Dn = ["children", "value", "parentValue", "keyName", "keys"], Jn = ["as", "render", "children"], $r = (l) => {
2238
+ var {
2239
+ Row: n = {}
2240
+ } = z();
2241
+ return fe(n, l, "Row"), null;
2242
+ };
2243
+ $r.displayName = "JVR.Row";
2244
+ var Pr = (l) => {
2245
+ var {
2246
+ children: n,
2247
+ value: s,
2248
+ parentValue: c,
2249
+ keyName: u,
2250
+ keys: h
2251
+ } = l, y = S(l, Dn), {
2252
+ Row: a = {}
2253
+ } = z(), {
2254
+ as: d,
2255
+ render: N
2256
+ } = a, m = S(a, Jn), w = d || "div", B = N && typeof N == "function" && N(f({}, y, m, {
2257
+ children: n
2258
+ }), {
2259
+ value: s,
2260
+ keyName: u,
2261
+ parentValue: c,
2262
+ keys: h
2263
+ });
2264
+ return B || /* @__PURE__ */ g(w, f({}, y, m, {
2265
+ children: n
2266
+ }));
2267
+ };
2268
+ Pr.displayName = "JVR.RowComp";
2269
+ function _n(l) {
2270
+ var n = Te();
2271
+ return oe(() => {
2272
+ n.current = l;
2273
+ }), n.current;
2274
+ }
2275
+ function Mn(l) {
2276
+ var {
2277
+ value: n,
2278
+ highlightUpdates: s,
2279
+ highlightContainer: c
2280
+ } = l, u = _n(n), h = Mt(() => {
2281
+ if (!s || u === void 0) return !1;
2282
+ if (typeof n != typeof u)
2283
+ return !0;
2284
+ if (typeof n == "number")
2285
+ return isNaN(n) && isNaN(u) ? !1 : n !== u;
2286
+ if (Array.isArray(n) !== Array.isArray(u))
2287
+ return !0;
2288
+ if (typeof n == "object" || typeof n == "function")
2289
+ return !1;
2290
+ if (n !== u)
2291
+ return !0;
2292
+ }, [s, n]);
2293
+ oe(() => {
2294
+ c && c.current && h && "animate" in c.current && c.current.animate([{
2295
+ backgroundColor: "var(--w-rjv-update-color, #ebcb8b)"
2296
+ }, {
2297
+ backgroundColor: ""
2298
+ }], {
2299
+ duration: 1e3,
2300
+ easing: "ease-in"
2301
+ });
2302
+ }, [h, n, c]);
2303
+ }
2304
+ var $n = ["keyName", "value", "parentValue", "expandKey", "keys", "beforeCopy"], Pn = ["as", "render"], Je = (l) => {
2305
+ var {
2306
+ keyName: n,
2307
+ value: s,
2308
+ parentValue: c,
2309
+ expandKey: u,
2310
+ keys: h,
2311
+ beforeCopy: y
2312
+ } = l, a = S(l, $n), {
2313
+ onCopied: d,
2314
+ enableClipboard: N,
2315
+ beforeCopy: m
2316
+ } = se(), w = zt(), B = w[u], [x, E] = Xe(!1), {
2317
+ Copied: C = {}
2318
+ } = z(), R = C?.beforeCopy;
2319
+ if (N === !1 || !B) return null;
2320
+ var k = (re) => {
2321
+ re.stopPropagation();
2322
+ var P = "";
2323
+ typeof s == "number" && s === 1 / 0 ? P = "Infinity" : typeof s == "number" && isNaN(s) ? P = "NaN" : typeof s == "bigint" ? P = je(s) : s instanceof Date ? P = s.toLocaleString() : P = JSON.stringify(s, (ie, ae) => typeof ae == "bigint" ? je(ae) : ae, 2);
2324
+ var Y = y || R || m;
2325
+ Y && typeof Y == "function" && (P = Y(P, n, s, c, u, h)), d && d(P, s), E(!0);
2326
+ var ue = navigator.clipboard || {
2327
+ writeText(ie) {
2328
+ return new Promise((ae, xe) => {
2329
+ var X = document.createElement("textarea");
2330
+ X.style.position = "absolute", X.style.opacity = "0", X.style.left = "-99999999px", X.value = ie, document.body.appendChild(X), X.select(), document.execCommand("copy") ? ae() : xe(), X.remove();
2331
+ });
2332
+ }
2333
+ };
2334
+ ue.writeText(P).then(() => {
2335
+ var ie = setTimeout(() => {
2336
+ E(!1), clearTimeout(ie);
2337
+ }, 3e3);
2338
+ }).catch((ie) => {
2339
+ });
2340
+ }, I = {
2341
+ style: {
2342
+ display: "inline-flex"
2343
+ },
2344
+ fill: x ? "var(--w-rjv-copied-success-color, #28a745)" : "var(--w-rjv-copied-color, currentColor)",
2345
+ onClick: k
2346
+ }, {
2347
+ render: b
2348
+ } = C, U = S(C, Pn), j = f({}, U, a, I, {
2349
+ style: f({}, U.style, a.style, I.style)
2350
+ }), $ = b && typeof b == "function", W = $ && b(f({}, j, {
2351
+ "data-copied": x
2352
+ }), {
2353
+ value: s,
2354
+ keyName: n,
2355
+ keys: h,
2356
+ parentValue: c
2357
+ });
2358
+ return W || (x ? /* @__PURE__ */ g("svg", f({
2359
+ viewBox: "0 0 32 36"
2360
+ }, j, {
2361
+ children: /* @__PURE__ */ g("path", {
2362
+ d: "M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"
2363
+ })
2364
+ })) : /* @__PURE__ */ g("svg", f({
2365
+ viewBox: "0 0 32 36"
2366
+ }, j, {
2367
+ children: /* @__PURE__ */ g("path", {
2368
+ d: "M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"
2369
+ })
2370
+ })));
2371
+ };
2372
+ Je.displayName = "JVR.Copied";
2373
+ function Or() {
2374
+ var l = Te(null);
2375
+ return l.current === null && (l.current = "custom-id-" + Math.random().toString(36).substr(2, 9)), l.current;
2376
+ }
2377
+ var Kr = (l) => {
2378
+ var n, {
2379
+ keyName: s,
2380
+ value: c,
2381
+ expandKey: u = "",
2382
+ level: h,
2383
+ keys: y = [],
2384
+ parentValue: a
2385
+ } = l, d = Be(), {
2386
+ objectSortKeys: N,
2387
+ indentWidth: m,
2388
+ collapsed: w,
2389
+ shouldExpandNodeInitially: B
2390
+ } = se(), x = typeof w == "boolean" ? w : typeof w == "number" ? h > w : !1, E = (n = d[u]) != null ? n : B ? !1 : x, C = B && B(!E, {
2391
+ value: c,
2392
+ keys: y,
2393
+ level: h,
2394
+ keyName: s,
2395
+ parentValue: a
2396
+ });
2397
+ if (B && w === !1) {
2398
+ if (d[u] === void 0 && !C)
2399
+ return null;
2400
+ } else if (d[u] === void 0 && C)
2401
+ return null;
2402
+ if (E)
2403
+ return null;
2404
+ var R = Array.isArray(c), k = R ? Object.entries(c).map((b) => [Number(b[0]), b[1]]) : Object.entries(c);
2405
+ N && (k = N === !0 ? k.sort((b, U) => {
2406
+ var [j] = b, [$] = U;
2407
+ return typeof j == "string" && typeof $ == "string" ? j.localeCompare($) : 0;
2408
+ }) : k.sort((b, U) => {
2409
+ var [j, $] = b, [W, re] = U;
2410
+ return typeof j == "string" && typeof W == "string" ? N(j, W, $, re) : 0;
2411
+ }));
2412
+ var I = {
2413
+ borderLeft: "var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",
2414
+ paddingLeft: m,
2415
+ marginLeft: 6
2416
+ };
2417
+ return /* @__PURE__ */ g("div", {
2418
+ className: "w-rjv-wrap",
2419
+ style: I,
2420
+ children: k.map((b, U) => {
2421
+ var [j, $] = b;
2422
+ return /* @__PURE__ */ g(Qr, {
2423
+ parentValue: c,
2424
+ keyName: j,
2425
+ keys: [...y, j],
2426
+ value: $,
2427
+ level: h
2428
+ }, U);
2429
+ })
2430
+ });
2431
+ };
2432
+ Kr.displayName = "JVR.KeyValues";
2433
+ var _e = (l) => {
2434
+ var {
2435
+ keyName: n,
2436
+ parentValue: s,
2437
+ keys: c,
2438
+ value: u
2439
+ } = l, {
2440
+ highlightUpdates: h
2441
+ } = se(), y = typeof n == "number", a = Te(null);
2442
+ Mn({
2443
+ value: u,
2444
+ highlightUpdates: h,
2445
+ highlightContainer: a
2446
+ });
2447
+ var d = {
2448
+ keyName: n,
2449
+ value: u,
2450
+ keys: c,
2451
+ parentValue: s
2452
+ };
2453
+ return /* @__PURE__ */ _(Q, {
2454
+ children: [/* @__PURE__ */ _("span", {
2455
+ ref: a,
2456
+ children: [/* @__PURE__ */ g(be, f({
2457
+ isNumber: y,
2458
+ "data-placement": "left"
2459
+ }, d)), /* @__PURE__ */ g(Mr, f({}, d, {
2460
+ children: n
2461
+ })), /* @__PURE__ */ g(be, f({
2462
+ isNumber: y,
2463
+ "data-placement": "right"
2464
+ }, d))]
2465
+ }), /* @__PURE__ */ g(Nr, f({}, d))]
2466
+ });
2467
+ };
2468
+ _e.displayName = "JVR.KayName";
2469
+ var Qr = (l) => {
2470
+ var {
2471
+ keyName: n,
2472
+ value: s,
2473
+ parentValue: c,
2474
+ level: u = 0,
2475
+ keys: h = []
2476
+ } = l, y = nr(), a = Or(), d = Array.isArray(s), N = s instanceof Set, m = s instanceof Map, w = s instanceof Date, B = s instanceof URL, x = s && typeof s == "object" && !d && !N && !m && !w && !B, E = x || d || N || m;
2477
+ if (E) {
2478
+ var C = N ? Array.from(s) : m ? Object.fromEntries(s) : s;
2479
+ return /* @__PURE__ */ g(Me, {
2480
+ keyName: n,
2481
+ value: C,
2482
+ parentValue: c,
2483
+ initialValue: s,
2484
+ keys: h,
2485
+ level: u + 1
2486
+ });
2487
+ }
2488
+ var R = {
2489
+ onMouseEnter: () => y({
2490
+ [a]: !0
2491
+ }),
2492
+ onMouseLeave: () => y({
2493
+ [a]: !1
2494
+ })
2495
+ };
2496
+ return /* @__PURE__ */ _(Pr, f({
2497
+ className: "w-rjv-line",
2498
+ value: s,
2499
+ keyName: n,
2500
+ keys: h,
2501
+ parentValue: c
2502
+ }, R, {
2503
+ children: [/* @__PURE__ */ g(_e, {
2504
+ keyName: n,
2505
+ value: s,
2506
+ keys: h,
2507
+ parentValue: c
2508
+ }), /* @__PURE__ */ g(Jr, {
2509
+ keyName: n,
2510
+ value: s,
2511
+ keys: h
2512
+ }), /* @__PURE__ */ g(Je, {
2513
+ keyName: n,
2514
+ value: s,
2515
+ keys: h,
2516
+ parentValue: c,
2517
+ expandKey: a
2518
+ })]
2519
+ }));
2520
+ };
2521
+ Qr.displayName = "JVR.KeyValuesItem";
2522
+ var On = ["value", "keyName"], Kn = ["as", "render"], qr = (l) => {
2523
+ var {
2524
+ CountInfoExtra: n = {}
2525
+ } = z();
2526
+ return fe(n, l, "CountInfoExtra"), null;
2527
+ };
2528
+ qr.displayName = "JVR.CountInfoExtra";
2529
+ var Wr = (l) => {
2530
+ var {
2531
+ value: n = {},
2532
+ keyName: s
2533
+ } = l, c = S(l, On), {
2534
+ CountInfoExtra: u = {}
2535
+ } = z(), {
2536
+ as: h,
2537
+ render: y
2538
+ } = u, a = S(u, Kn);
2539
+ if (!y && !a.children) return null;
2540
+ var d = h || "span", N = y && typeof y == "function", m = f({}, a, c), w = N && y(m, {
2541
+ value: n,
2542
+ keyName: s
2543
+ });
2544
+ return w || /* @__PURE__ */ g(d, f({}, m));
2545
+ };
2546
+ Wr.displayName = "JVR.CountInfoExtraComps";
2547
+ var Qn = ["value", "keyName"], qn = ["as", "render"], Zr = (l) => {
2548
+ var {
2549
+ CountInfo: n = {}
2550
+ } = z();
2551
+ return fe(n, l, "CountInfo"), null;
2552
+ };
2553
+ Zr.displayName = "JVR.CountInfo";
2554
+ var zr = (l) => {
2555
+ var {
2556
+ value: n = {},
2557
+ keyName: s
2558
+ } = l, c = S(l, Qn), {
2559
+ displayObjectSize: u
2560
+ } = se(), {
2561
+ CountInfo: h = {}
2562
+ } = z();
2563
+ if (!u) return null;
2564
+ var {
2565
+ as: y,
2566
+ render: a
2567
+ } = h, d = S(h, qn), N = y || "span";
2568
+ d.style = f({}, d.style, l.style);
2569
+ var m = Object.keys(n).length;
2570
+ d.children || (d.children = m + " item" + (m === 1 ? "" : "s"));
2571
+ var w = f({}, d, c), B = a && typeof a == "function", x = B && a(f({}, w, {
2572
+ "data-length": m
2573
+ }), {
2574
+ value: n,
2575
+ keyName: s
2576
+ });
2577
+ return x || /* @__PURE__ */ g(N, f({}, w));
2578
+ };
2579
+ zr.displayName = "JVR.CountInfoComp";
2580
+ var Wn = ["as", "render"], Gr = (l) => {
2581
+ var {
2582
+ Ellipsis: n = {}
2583
+ } = z();
2584
+ return fe(n, l, "Ellipsis"), null;
2585
+ };
2586
+ Gr.displayName = "JVR.Ellipsis";
2587
+ var Hr = (l) => {
2588
+ var {
2589
+ isExpanded: n,
2590
+ value: s,
2591
+ keyName: c
2592
+ } = l, {
2593
+ Ellipsis: u = {}
2594
+ } = z(), {
2595
+ as: h,
2596
+ render: y
2597
+ } = u, a = S(u, Wn), d = h || "span", N = y && typeof y == "function" && y(f({}, a, {
2598
+ "data-expanded": n
2599
+ }), {
2600
+ value: s,
2601
+ keyName: c
2602
+ });
2603
+ return N || (!n || typeof s == "object" && Object.keys(s).length == 0 ? null : /* @__PURE__ */ g(d, f({}, a)));
2604
+ };
2605
+ Hr.displayName = "JVR.EllipsisComp";
2606
+ var Yr = (l) => {
2607
+ var n, {
2608
+ keyName: s,
2609
+ expandKey: c,
2610
+ keys: u = [],
2611
+ initialValue: h,
2612
+ value: y,
2613
+ parentValue: a,
2614
+ level: d
2615
+ } = l, N = Be(), m = Xt(), {
2616
+ onExpand: w,
2617
+ collapsed: B,
2618
+ shouldExpandNodeInitially: x
2619
+ } = se(), E = typeof B == "boolean" ? B : typeof B == "number" ? d > B : !1, C = (n = N[c]) != null ? n : x ? !1 : E, R = x && x(!C, {
2620
+ value: y,
2621
+ keys: u,
2622
+ level: d,
2623
+ keyName: s,
2624
+ parentValue: a
2625
+ });
2626
+ N[c] === void 0 && x && (C = !R);
2627
+ var k = () => {
2628
+ var ue = {
2629
+ expand: !C,
2630
+ value: y,
2631
+ keyid: c,
2632
+ keyName: s
2633
+ };
2634
+ w && w(ue), m({
2635
+ [c]: ue.expand
2636
+ });
2637
+ }, I = {
2638
+ display: "inline-flex",
2639
+ alignItems: "center"
2640
+ }, b = {
2641
+ transform: "rotate(" + (C ? "-90" : "0") + "deg)",
2642
+ transition: "all 0.3s"
2643
+ }, U = Object.keys(y).length, j = typeof y == "object", $ = Array.isArray(y), W = y instanceof Set, re = U !== 0 && ($ || W || j), P = {
2644
+ style: I
2645
+ };
2646
+ re && (P.onClick = k);
2647
+ var Y = {
2648
+ keyName: s,
2649
+ value: y,
2650
+ keys: u,
2651
+ parentValue: a
2652
+ };
2653
+ return /* @__PURE__ */ _("span", f({}, P, {
2654
+ children: [re && /* @__PURE__ */ g(Br, f({
2655
+ style: b,
2656
+ expandKey: c
2657
+ }, Y)), (s || typeof s == "number") && /* @__PURE__ */ g(_e, f({}, Y)), /* @__PURE__ */ g(Rr, {
2658
+ value: h,
2659
+ keyName: s
2660
+ }), /* @__PURE__ */ g(Ir, {
2661
+ value: h,
2662
+ keyName: s
2663
+ }), /* @__PURE__ */ g(Er, f({
2664
+ isBrackets: $ || W
2665
+ }, Y)), /* @__PURE__ */ g(Hr, {
2666
+ keyName: s,
2667
+ value: y,
2668
+ isExpanded: C
2669
+ }), /* @__PURE__ */ g(De, f({
2670
+ isVisiable: C || !re,
2671
+ isBrackets: $ || W
2672
+ }, Y)), /* @__PURE__ */ g(zr, {
2673
+ value: y,
2674
+ keyName: s
2675
+ }), /* @__PURE__ */ g(Wr, {
2676
+ value: y,
2677
+ keyName: s
2678
+ }), /* @__PURE__ */ g(Je, {
2679
+ keyName: s,
2680
+ value: y,
2681
+ expandKey: c,
2682
+ parentValue: a,
2683
+ keys: u
2684
+ })]
2685
+ }));
2686
+ };
2687
+ Yr.displayName = "JVR.NestedOpen";
2688
+ var Zn = ["className", "children", "parentValue", "keyid", "level", "value", "initialValue", "keys", "keyName"], Me = /* @__PURE__ */ er((l, n) => {
2689
+ var {
2690
+ className: s = "",
2691
+ parentValue: c,
2692
+ level: u = 1,
2693
+ value: h,
2694
+ initialValue: y,
2695
+ keys: a,
2696
+ keyName: d
2697
+ } = l, N = S(l, Zn), m = nr(), w = Or(), B = [s, "w-rjv-inner"].filter(Boolean).join(" "), x = {
2698
+ onMouseEnter: () => m({
2699
+ [w]: !0
2700
+ }),
2701
+ onMouseLeave: () => m({
2702
+ [w]: !1
2703
+ })
2704
+ };
2705
+ return /* @__PURE__ */ _("div", f({
2706
+ className: B,
2707
+ ref: n
2708
+ }, N, x, {
2709
+ children: [/* @__PURE__ */ g(Yr, {
2710
+ expandKey: w,
2711
+ value: h,
2712
+ level: u,
2713
+ keys: a,
2714
+ parentValue: c,
2715
+ keyName: d,
2716
+ initialValue: y
2717
+ }), /* @__PURE__ */ g(Kr, {
2718
+ expandKey: w,
2719
+ value: h,
2720
+ level: u,
2721
+ keys: a,
2722
+ parentValue: c,
2723
+ keyName: d
2724
+ }), /* @__PURE__ */ g(Cr, {
2725
+ expandKey: w,
2726
+ value: h,
2727
+ level: u,
2728
+ keys: a,
2729
+ parentValue: c,
2730
+ keyName: d
2731
+ })]
2732
+ }));
2733
+ });
2734
+ Me.displayName = "JVR.Container";
2735
+ var Xr = (l) => {
2736
+ var {
2737
+ BraceLeft: n = {}
2738
+ } = K();
2739
+ return ne(n, l, "BraceLeft"), null;
2740
+ };
2741
+ Xr.displayName = "JVR.BraceLeft";
2742
+ var et = (l) => {
2743
+ var {
2744
+ BraceRight: n = {}
2745
+ } = K();
2746
+ return ne(n, l, "BraceRight"), null;
2747
+ };
2748
+ et.displayName = "JVR.BraceRight";
2749
+ var rt = (l) => {
2750
+ var {
2751
+ BracketsLeft: n = {}
2752
+ } = K();
2753
+ return ne(n, l, "BracketsLeft"), null;
2754
+ };
2755
+ rt.displayName = "JVR.BracketsLeft";
2756
+ var tt = (l) => {
2757
+ var {
2758
+ BracketsRight: n = {}
2759
+ } = K();
2760
+ return ne(n, l, "BracketsRight"), null;
2761
+ };
2762
+ tt.displayName = "JVR.BracketsRight";
2763
+ var nt = (l) => {
2764
+ var {
2765
+ Arrow: n = {}
2766
+ } = K();
2767
+ return ne(n, l, "Arrow"), null;
2768
+ };
2769
+ nt.displayName = "JVR.Arrow";
2770
+ var it = (l) => {
2771
+ var {
2772
+ Colon: n = {}
2773
+ } = K();
2774
+ return ne(n, l, "Colon"), null;
2775
+ };
2776
+ it.displayName = "JVR.Colon";
2777
+ var at = (l) => {
2778
+ var {
2779
+ Quote: n = {}
2780
+ } = K();
2781
+ return ne(n, l, "Quote"), null;
2782
+ };
2783
+ at.displayName = "JVR.Quote";
2784
+ var lt = (l) => {
2785
+ var {
2786
+ ValueQuote: n = {}
2787
+ } = K();
2788
+ return ne(n, l, "ValueQuote"), null;
2789
+ };
2790
+ lt.displayName = "JVR.ValueQuote";
2791
+ var ot = (l) => {
2792
+ var {
2793
+ Bigint: n = {}
2794
+ } = A();
2795
+ return q(n, l, "Bigint"), null;
2796
+ };
2797
+ ot.displayName = "JVR.Bigint";
2798
+ var st = (l) => {
2799
+ var {
2800
+ Date: n = {}
2801
+ } = A();
2802
+ return q(n, l, "Date"), null;
2803
+ };
2804
+ st.displayName = "JVR.Date";
2805
+ var ut = (l) => {
2806
+ var {
2807
+ False: n = {}
2808
+ } = A();
2809
+ return q(n, l, "False"), null;
2810
+ };
2811
+ ut.displayName = "JVR.False";
2812
+ var ct = (l) => {
2813
+ var {
2814
+ Float: n = {}
2815
+ } = A();
2816
+ return q(n, l, "Float"), null;
2817
+ };
2818
+ ct.displayName = "JVR.Float";
2819
+ var pt = (l) => {
2820
+ var {
2821
+ Int: n = {}
2822
+ } = A();
2823
+ return q(n, l, "Int"), null;
2824
+ };
2825
+ pt.displayName = "JVR.Int";
2826
+ var yt = (l) => {
2827
+ var {
2828
+ Map: n = {}
2829
+ } = A();
2830
+ return q(n, l, "Map"), null;
2831
+ };
2832
+ yt.displayName = "JVR.Map";
2833
+ var dt = (l) => {
2834
+ var {
2835
+ Nan: n = {}
2836
+ } = A();
2837
+ return q(n, l, "Nan"), null;
2838
+ };
2839
+ dt.displayName = "JVR.Nan";
2840
+ var ft = (l) => {
2841
+ var {
2842
+ Null: n = {}
2843
+ } = A();
2844
+ return q(n, l, "Null"), null;
2845
+ };
2846
+ ft.displayName = "JVR.Null";
2847
+ var ht = (l) => {
2848
+ var {
2849
+ Set: n = {}
2850
+ } = A();
2851
+ return q(n, l, "Set"), null;
2852
+ };
2853
+ ht.displayName = "JVR.Set";
2854
+ var vt = (l) => {
2855
+ var {
2856
+ Str: n = {}
2857
+ } = A();
2858
+ return q(n, l, "Str"), null;
2859
+ };
2860
+ vt.displayName = "JVR.StringText";
2861
+ var mt = (l) => {
2862
+ var {
2863
+ True: n = {}
2864
+ } = A();
2865
+ return q(n, l, "True"), null;
2866
+ };
2867
+ mt.displayName = "JVR.True";
2868
+ var wt = (l) => {
2869
+ var {
2870
+ Undefined: n = {}
2871
+ } = A();
2872
+ return q(n, l, "Undefined"), null;
2873
+ };
2874
+ wt.displayName = "JVR.Undefined";
2875
+ var xt = (l) => {
2876
+ var {
2877
+ Url: n = {}
2878
+ } = A();
2879
+ return q(n, l, "Url"), null;
2880
+ };
2881
+ xt.displayName = "JVR.Url";
2882
+ var gt = (l) => {
2883
+ var {
2884
+ Copied: n = {}
2885
+ } = z();
2886
+ return fe(n, l, "Copied"), null;
2887
+ };
2888
+ gt.displayName = "JVR.Copied";
2889
+ var zn = ["className", "style", "value", "children", "collapsed", "shouldExpandNodeInitially", "indentWidth", "displayObjectSize", "shortenTextAfterLength", "stringEllipsis", "highlightUpdates", "enableClipboard", "displayDataTypes", "objectSortKeys", "onExpand", "onCopied", "beforeCopy"], F = /* @__PURE__ */ er((l, n) => {
2890
+ var {
2891
+ className: s = "",
2892
+ style: c,
2893
+ value: u,
2894
+ children: h,
2895
+ collapsed: y = !1,
2896
+ shouldExpandNodeInitially: a,
2897
+ indentWidth: d = 15,
2898
+ displayObjectSize: N = !0,
2899
+ shortenTextAfterLength: m = 30,
2900
+ stringEllipsis: w,
2901
+ highlightUpdates: B = !0,
2902
+ enableClipboard: x = !0,
2903
+ displayDataTypes: E = !0,
2904
+ objectSortKeys: C = !1,
2905
+ onExpand: R,
2906
+ onCopied: k,
2907
+ beforeCopy: I
2908
+ } = l, b = S(l, zn), U = f({
2909
+ lineHeight: 1.4,
2910
+ fontFamily: "var(--w-rjv-font-family, Menlo, monospace)",
2911
+ color: "var(--w-rjv-color, #002b36)",
2912
+ backgroundColor: "var(--w-rjv-background-color, #00000000)",
2913
+ fontSize: 13
2914
+ }, c), j = ["w-json-view-container", "w-rjv", s].filter(Boolean).join(" ");
2915
+ return /* @__PURE__ */ _(gr, {
2916
+ initialState: {
2917
+ value: u,
2918
+ objectSortKeys: C,
2919
+ indentWidth: d,
2920
+ shouldExpandNodeInitially: y === !1 ? a : void 0,
2921
+ displayObjectSize: N,
2922
+ collapsed: y,
2923
+ enableClipboard: x,
2924
+ shortenTextAfterLength: m,
2925
+ stringEllipsis: w,
2926
+ highlightUpdates: B,
2927
+ onCopied: k,
2928
+ onExpand: R,
2929
+ beforeCopy: I
2930
+ },
2931
+ initialTypes: {
2932
+ displayDataTypes: E
2933
+ },
2934
+ children: [/* @__PURE__ */ g(Me, f({
2935
+ value: u
2936
+ }, b, {
2937
+ ref: n,
2938
+ className: j,
2939
+ style: U
2940
+ })), h]
2941
+ });
2942
+ });
2943
+ F.Bigint = ot;
2944
+ F.Date = st;
2945
+ F.False = ut;
2946
+ F.Float = ct;
2947
+ F.Int = pt;
2948
+ F.Map = yt;
2949
+ F.Nan = dt;
2950
+ F.Null = ft;
2951
+ F.Set = ht;
2952
+ F.String = vt;
2953
+ F.True = mt;
2954
+ F.Undefined = wt;
2955
+ F.Url = xt;
2956
+ F.ValueQuote = lt;
2957
+ F.Arrow = nt;
2958
+ F.Colon = it;
2959
+ F.Quote = at;
2960
+ F.Ellipsis = Gr;
2961
+ F.BraceLeft = Xr;
2962
+ F.BraceRight = et;
2963
+ F.BracketsLeft = rt;
2964
+ F.BracketsRight = tt;
2965
+ F.Copied = gt;
2966
+ F.CountInfo = Zr;
2967
+ F.CountInfoExtra = qr;
2968
+ F.KeyName = _r;
2969
+ F.Row = $r;
2970
+ F.displayName = "JVR.JsonView";
2971
+ const Gn = {
2972
+ // Structural
2973
+ "--w-rjv-font-family": _t,
2974
+ "--w-rjv-color": ze,
2975
+ "--w-rjv-background-color": Jt,
2976
+ "--w-rjv-line-color": Dt,
2977
+ "--w-rjv-arrow-color": ye,
2978
+ // Keys and Labels
2979
+ "--w-rjv-key-string": ze,
2980
+ "--w-rjv-key-number": ye,
2981
+ // Punctuation
2982
+ "--w-rjv-curlybraces-color": le,
2983
+ "--w-rjv-colon-color": le,
2984
+ "--w-rjv-brackets-color": le,
2985
+ "--w-rjv-ellipsis-color": ve,
2986
+ "--w-rjv-quotes-color": le,
2987
+ "--w-rjv-quotes-string-color": Ie,
2988
+ // Types
2989
+ "--w-rjv-type-string-color": Ie,
2990
+ "--w-rjv-type-int-color": ve,
2991
+ "--w-rjv-type-float-color": ve,
2992
+ "--w-rjv-type-bigint-color": ve,
2993
+ "--w-rjv-type-boolean-color": Ut,
2994
+ "--w-rjv-type-date-color": ve,
2995
+ "--w-rjv-type-url-color": ye,
2996
+ "--w-rjv-type-null-color": le,
2997
+ "--w-rjv-type-nan-color": le,
2998
+ "--w-rjv-type-undefined-color": le,
2999
+ // Actions
3000
+ "--w-rjv-edit-color": ye,
3001
+ "--w-rjv-info-color": Vt,
3002
+ "--w-rjv-update-color": ye,
3003
+ "--w-rjv-copied-color": ye,
3004
+ "--w-rjv-copied-success-color": Ie
3005
+ };
3006
+ function Hn({ data: l }) {
3007
+ return l ? /* @__PURE__ */ g(
3008
+ F,
3009
+ {
3010
+ value: l,
3011
+ style: Gn
3012
+ }
3013
+ ) : null;
3014
+ }
3015
+ function li({
3016
+ content: l,
3017
+ encoding: n,
3018
+ mimeType: s
3019
+ }) {
3020
+ const c = $t(s);
3021
+ if (c === "Img")
3022
+ return /* @__PURE__ */ g(
3023
+ "img",
3024
+ {
3025
+ src: `data:${s};base64,${l}`,
3026
+ alt: "HAR entry content",
3027
+ style: { maxWidth: "100%", maxHeight: 400 }
3028
+ }
3029
+ );
3030
+ let u = Pt(s), h = l;
3031
+ if (n === "base64" && (h = Wt.Buffer.from(l, n).toString("utf8")), c === "JSON") {
3032
+ const [y, a] = Ot(h);
3033
+ if (!a)
3034
+ return /* @__PURE__ */ g(Hn, { data: y });
3035
+ u = void 0;
3036
+ }
3037
+ return /* @__PURE__ */ g(
3038
+ Lt,
3039
+ {
3040
+ lineNumbers: !0,
3041
+ wrapLines: !0,
3042
+ content: h,
3043
+ highlight: u,
3044
+ actions: /* @__PURE__ */ g(At, { copyErrorText: "Copy failed", copySuccessText: "Copied", textToCopy: h })
3045
+ }
3046
+ );
3047
+ }
3048
+ export {
3049
+ li as default
3050
+ };