strapi-plugin-comments 3.0.7 → 3.0.8

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.
@@ -0,0 +1,2022 @@
1
+ import { jsx as _, jsxs as Ee } from "react/jsx-runtime";
2
+ import { ab as tn, ac as $r, l as wr, ad as nn, ae as it, af as on, ag as ee, ah as Rr, ai as lt, p as an, aj as V, F as ln, ak as un, T as cn, e as Cr } from "./index-Dz0m9-CE.mjs";
3
+ import { useQuery as fn, QueryClientProvider as sn, QueryClient as pn } from "@tanstack/react-query";
4
+ import * as ae from "react";
5
+ import { useMemo as ut, createContext as yn, useState as Tr } from "react";
6
+ import { getFetchClient as dn, useRBAC as mn } from "@strapi/strapi/admin";
7
+ import { z as a } from "zod";
8
+ var ce = TypeError;
9
+ const vn = {}, gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10
+ __proto__: null,
11
+ default: vn
12
+ }, Symbol.toStringTag, { value: "Module" })), hn = /* @__PURE__ */ tn(gn);
13
+ var dr = typeof Map == "function" && Map.prototype, Le = Object.getOwnPropertyDescriptor && dr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Re = dr && Le && typeof Le.get == "function" ? Le.get : null, _r = dr && Map.prototype.forEach, mr = typeof Set == "function" && Set.prototype, Be = Object.getOwnPropertyDescriptor && mr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ce = mr && Be && typeof Be.get == "function" ? Be.get : null, Ir = mr && Set.prototype.forEach, Sn = typeof WeakMap == "function" && WeakMap.prototype, se = Sn ? WeakMap.prototype.has : null, bn = typeof WeakSet == "function" && WeakSet.prototype, pe = bn ? WeakSet.prototype.has : null, En = typeof WeakRef == "function" && WeakRef.prototype, Nr = En ? WeakRef.prototype.deref : null, An = Boolean.prototype.valueOf, On = Object.prototype.toString, Pn = Function.prototype.toString, $n = String.prototype.match, vr = String.prototype.slice, H = String.prototype.replace, wn = String.prototype.toUpperCase, xr = String.prototype.toLowerCase, ct = RegExp.prototype.test, Fr = Array.prototype.concat, L = Array.prototype.join, Rn = Array.prototype.slice, Mr = Math.floor, or = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ue = Object.getOwnPropertySymbols, ar = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ie = typeof Symbol == "function" && typeof Symbol.iterator == "object", ye = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ie || !0) ? Symbol.toStringTag : null, ft = Object.prototype.propertyIsEnumerable, Dr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
14
+ return r.__proto__;
15
+ } : null);
16
+ function Lr(r, e) {
17
+ if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || ct.call(/e/, e))
18
+ return e;
19
+ var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
20
+ if (typeof r == "number") {
21
+ var n = r < 0 ? -Mr(-r) : Mr(r);
22
+ if (n !== r) {
23
+ var o = String(n), i = vr.call(e, o.length + 1);
24
+ return H.call(o, t, "$&_") + "." + H.call(H.call(i, /([0-9]{3})/g, "$&_"), /_$/, "");
25
+ }
26
+ }
27
+ return H.call(e, t, "$&_");
28
+ }
29
+ var ir = hn, Br = ir.custom, Ur = yt(Br) ? Br : null, st = {
30
+ __proto__: null,
31
+ double: '"',
32
+ single: "'"
33
+ }, Cn = {
34
+ __proto__: null,
35
+ double: /(["\\])/g,
36
+ single: /(['\\])/g
37
+ }, Ne = function r(e, t, n, o) {
38
+ var i = t || {};
39
+ if (U(i, "quoteStyle") && !U(st, i.quoteStyle))
40
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
41
+ if (U(i, "maxStringLength") && (typeof i.maxStringLength == "number" ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0 : i.maxStringLength !== null))
42
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
43
+ var c = U(i, "customInspect") ? i.customInspect : !0;
44
+ if (typeof c != "boolean" && c !== "symbol")
45
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
46
+ if (U(i, "indent") && i.indent !== null && i.indent !== " " && !(parseInt(i.indent, 10) === i.indent && i.indent > 0))
47
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
48
+ if (U(i, "numericSeparator") && typeof i.numericSeparator != "boolean")
49
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
50
+ var l = i.numericSeparator;
51
+ if (typeof e > "u")
52
+ return "undefined";
53
+ if (e === null)
54
+ return "null";
55
+ if (typeof e == "boolean")
56
+ return e ? "true" : "false";
57
+ if (typeof e == "string")
58
+ return mt(e, i);
59
+ if (typeof e == "number") {
60
+ if (e === 0)
61
+ return 1 / 0 / e > 0 ? "0" : "-0";
62
+ var f = String(e);
63
+ return l ? Lr(e, f) : f;
64
+ }
65
+ if (typeof e == "bigint") {
66
+ var u = String(e) + "n";
67
+ return l ? Lr(e, u) : u;
68
+ }
69
+ var p = typeof i.depth > "u" ? 5 : i.depth;
70
+ if (typeof n > "u" && (n = 0), n >= p && p > 0 && typeof e == "object")
71
+ return lr(e) ? "[Array]" : "[Object]";
72
+ var y = zn(i, n);
73
+ if (typeof o > "u")
74
+ o = [];
75
+ else if (dt(o, e) >= 0)
76
+ return "[Circular]";
77
+ function m(x, G, Z) {
78
+ if (G && (o = Rn.call(o), o.push(G)), Z) {
79
+ var j = {
80
+ depth: i.depth
81
+ };
82
+ return U(i, "quoteStyle") && (j.quoteStyle = i.quoteStyle), r(x, j, n + 1, o);
83
+ }
84
+ return r(x, i, n + 1, o);
85
+ }
86
+ if (typeof e == "function" && !qr(e)) {
87
+ var h = Ln(e), v = Ae(e, m);
88
+ return "[Function" + (h ? ": " + h : " (anonymous)") + "]" + (v.length > 0 ? " { " + L.call(v, ", ") + " }" : "");
89
+ }
90
+ if (yt(e)) {
91
+ var P = ie ? H.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : ar.call(e);
92
+ return typeof e == "object" && !ie ? fe(P) : P;
93
+ }
94
+ if (Gn(e)) {
95
+ for (var C = "<" + xr.call(String(e.nodeName)), g = e.attributes || [], I = 0; I < g.length; I++)
96
+ C += " " + g[I].name + "=" + pt(Tn(g[I].value), "double", i);
97
+ return C += ">", e.childNodes && e.childNodes.length && (C += "..."), C += "</" + xr.call(String(e.nodeName)) + ">", C;
98
+ }
99
+ if (lr(e)) {
100
+ if (e.length === 0)
101
+ return "[]";
102
+ var O = Ae(e, m);
103
+ return y && !Vn(O) ? "[" + ur(O, y) + "]" : "[ " + L.call(O, ", ") + " ]";
104
+ }
105
+ if (In(e)) {
106
+ var $ = Ae(e, m);
107
+ return !("cause" in Error.prototype) && "cause" in e && !ft.call(e, "cause") ? "{ [" + String(e) + "] " + L.call(Fr.call("[cause]: " + m(e.cause), $), ", ") + " }" : $.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + L.call($, ", ") + " }";
108
+ }
109
+ if (typeof e == "object" && c) {
110
+ if (Ur && typeof e[Ur] == "function" && ir)
111
+ return ir(e, { depth: p - n });
112
+ if (c !== "symbol" && typeof e.inspect == "function")
113
+ return e.inspect();
114
+ }
115
+ if (Bn(e)) {
116
+ var s = [];
117
+ return _r && _r.call(e, function(x, G) {
118
+ s.push(m(G, e, !0) + " => " + m(x, e));
119
+ }), Wr("Map", Re.call(e), s, y);
120
+ }
121
+ if (Wn(e)) {
122
+ var F = [];
123
+ return Ir && Ir.call(e, function(x) {
124
+ F.push(m(x, e));
125
+ }), Wr("Set", Ce.call(e), F, y);
126
+ }
127
+ if (Un(e))
128
+ return qe("WeakMap");
129
+ if (kn(e))
130
+ return qe("WeakSet");
131
+ if (qn(e))
132
+ return qe("WeakRef");
133
+ if (xn(e))
134
+ return fe(m(Number(e)));
135
+ if (Mn(e))
136
+ return fe(m(or.call(e)));
137
+ if (Fn(e))
138
+ return fe(An.call(e));
139
+ if (Nn(e))
140
+ return fe(m(String(e)));
141
+ if (typeof window < "u" && e === window)
142
+ return "{ [object Window] }";
143
+ if (typeof globalThis < "u" && e === globalThis || typeof $r < "u" && e === $r)
144
+ return "{ [object globalThis] }";
145
+ if (!_n(e) && !qr(e)) {
146
+ var B = Ae(e, m), M = Dr ? Dr(e) === Object.prototype : e instanceof Object || e.constructor === Object, W = e instanceof Object ? "" : "null prototype", k = !M && ye && Object(e) === e && ye in e ? vr.call(Y(e), 8, -1) : W ? "Object" : "", K = M || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", N = K + (k || W ? "[" + L.call(Fr.call([], k || [], W || []), ": ") + "] " : "");
147
+ return B.length === 0 ? N + "{}" : y ? N + "{" + ur(B, y) + "}" : N + "{ " + L.call(B, ", ") + " }";
148
+ }
149
+ return String(e);
150
+ };
151
+ function pt(r, e, t) {
152
+ var n = t.quoteStyle || e, o = st[n];
153
+ return o + r + o;
154
+ }
155
+ function Tn(r) {
156
+ return H.call(String(r), /"/g, "&quot;");
157
+ }
158
+ function X(r) {
159
+ return !ye || !(typeof r == "object" && (ye in r || typeof r[ye] < "u"));
160
+ }
161
+ function lr(r) {
162
+ return Y(r) === "[object Array]" && X(r);
163
+ }
164
+ function _n(r) {
165
+ return Y(r) === "[object Date]" && X(r);
166
+ }
167
+ function qr(r) {
168
+ return Y(r) === "[object RegExp]" && X(r);
169
+ }
170
+ function In(r) {
171
+ return Y(r) === "[object Error]" && X(r);
172
+ }
173
+ function Nn(r) {
174
+ return Y(r) === "[object String]" && X(r);
175
+ }
176
+ function xn(r) {
177
+ return Y(r) === "[object Number]" && X(r);
178
+ }
179
+ function Fn(r) {
180
+ return Y(r) === "[object Boolean]" && X(r);
181
+ }
182
+ function yt(r) {
183
+ if (ie)
184
+ return r && typeof r == "object" && r instanceof Symbol;
185
+ if (typeof r == "symbol")
186
+ return !0;
187
+ if (!r || typeof r != "object" || !ar)
188
+ return !1;
189
+ try {
190
+ return ar.call(r), !0;
191
+ } catch {
192
+ }
193
+ return !1;
194
+ }
195
+ function Mn(r) {
196
+ if (!r || typeof r != "object" || !or)
197
+ return !1;
198
+ try {
199
+ return or.call(r), !0;
200
+ } catch {
201
+ }
202
+ return !1;
203
+ }
204
+ var Dn = Object.prototype.hasOwnProperty || function(r) {
205
+ return r in this;
206
+ };
207
+ function U(r, e) {
208
+ return Dn.call(r, e);
209
+ }
210
+ function Y(r) {
211
+ return On.call(r);
212
+ }
213
+ function Ln(r) {
214
+ if (r.name)
215
+ return r.name;
216
+ var e = $n.call(Pn.call(r), /^function\s*([\w$]+)/);
217
+ return e ? e[1] : null;
218
+ }
219
+ function dt(r, e) {
220
+ if (r.indexOf)
221
+ return r.indexOf(e);
222
+ for (var t = 0, n = r.length; t < n; t++)
223
+ if (r[t] === e)
224
+ return t;
225
+ return -1;
226
+ }
227
+ function Bn(r) {
228
+ if (!Re || !r || typeof r != "object")
229
+ return !1;
230
+ try {
231
+ Re.call(r);
232
+ try {
233
+ Ce.call(r);
234
+ } catch {
235
+ return !0;
236
+ }
237
+ return r instanceof Map;
238
+ } catch {
239
+ }
240
+ return !1;
241
+ }
242
+ function Un(r) {
243
+ if (!se || !r || typeof r != "object")
244
+ return !1;
245
+ try {
246
+ se.call(r, se);
247
+ try {
248
+ pe.call(r, pe);
249
+ } catch {
250
+ return !0;
251
+ }
252
+ return r instanceof WeakMap;
253
+ } catch {
254
+ }
255
+ return !1;
256
+ }
257
+ function qn(r) {
258
+ if (!Nr || !r || typeof r != "object")
259
+ return !1;
260
+ try {
261
+ return Nr.call(r), !0;
262
+ } catch {
263
+ }
264
+ return !1;
265
+ }
266
+ function Wn(r) {
267
+ if (!Ce || !r || typeof r != "object")
268
+ return !1;
269
+ try {
270
+ Ce.call(r);
271
+ try {
272
+ Re.call(r);
273
+ } catch {
274
+ return !0;
275
+ }
276
+ return r instanceof Set;
277
+ } catch {
278
+ }
279
+ return !1;
280
+ }
281
+ function kn(r) {
282
+ if (!pe || !r || typeof r != "object")
283
+ return !1;
284
+ try {
285
+ pe.call(r, pe);
286
+ try {
287
+ se.call(r, se);
288
+ } catch {
289
+ return !0;
290
+ }
291
+ return r instanceof WeakSet;
292
+ } catch {
293
+ }
294
+ return !1;
295
+ }
296
+ function Gn(r) {
297
+ return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
298
+ }
299
+ function mt(r, e) {
300
+ if (r.length > e.maxStringLength) {
301
+ var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
302
+ return mt(vr.call(r, 0, e.maxStringLength), e) + n;
303
+ }
304
+ var o = Cn[e.quoteStyle || "single"];
305
+ o.lastIndex = 0;
306
+ var i = H.call(H.call(r, o, "\\$1"), /[\x00-\x1f]/g, jn);
307
+ return pt(i, "single", e);
308
+ }
309
+ function jn(r) {
310
+ var e = r.charCodeAt(0), t = {
311
+ 8: "b",
312
+ 9: "t",
313
+ 10: "n",
314
+ 12: "f",
315
+ 13: "r"
316
+ }[e];
317
+ return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + wn.call(e.toString(16));
318
+ }
319
+ function fe(r) {
320
+ return "Object(" + r + ")";
321
+ }
322
+ function qe(r) {
323
+ return r + " { ? }";
324
+ }
325
+ function Wr(r, e, t, n) {
326
+ var o = n ? ur(t, n) : L.call(t, ", ");
327
+ return r + " (" + e + ") {" + o + "}";
328
+ }
329
+ function Vn(r) {
330
+ for (var e = 0; e < r.length; e++)
331
+ if (dt(r[e], `
332
+ `) >= 0)
333
+ return !1;
334
+ return !0;
335
+ }
336
+ function zn(r, e) {
337
+ var t;
338
+ if (r.indent === " ")
339
+ t = " ";
340
+ else if (typeof r.indent == "number" && r.indent > 0)
341
+ t = L.call(Array(r.indent + 1), " ");
342
+ else
343
+ return null;
344
+ return {
345
+ base: t,
346
+ prev: L.call(Array(e + 1), t)
347
+ };
348
+ }
349
+ function ur(r, e) {
350
+ if (r.length === 0)
351
+ return "";
352
+ var t = `
353
+ ` + e.prev + e.base;
354
+ return t + L.call(r, "," + t) + `
355
+ ` + e.prev;
356
+ }
357
+ function Ae(r, e) {
358
+ var t = lr(r), n = [];
359
+ if (t) {
360
+ n.length = r.length;
361
+ for (var o = 0; o < r.length; o++)
362
+ n[o] = U(r, o) ? e(r[o], r) : "";
363
+ }
364
+ var i = typeof Ue == "function" ? Ue(r) : [], c;
365
+ if (ie) {
366
+ c = {};
367
+ for (var l = 0; l < i.length; l++)
368
+ c["$" + i[l]] = i[l];
369
+ }
370
+ for (var f in r)
371
+ U(r, f) && (t && String(Number(f)) === f && f < r.length || ie && c["$" + f] instanceof Symbol || (ct.call(/[^\w$]/, f) ? n.push(e(f, r) + ": " + e(r[f], r)) : n.push(f + ": " + e(r[f], r))));
372
+ if (typeof Ue == "function")
373
+ for (var u = 0; u < i.length; u++)
374
+ ft.call(r, i[u]) && n.push("[" + e(i[u]) + "]: " + e(r[i[u]], r));
375
+ return n;
376
+ }
377
+ var Hn = Ne, Yn = ce, xe = function(r, e, t) {
378
+ for (var n = r, o; (o = n.next) != null; n = o)
379
+ if (o.key === e)
380
+ return n.next = o.next, t || (o.next = /** @type {NonNullable<typeof list.next>} */
381
+ r.next, r.next = o), o;
382
+ }, Kn = function(r, e) {
383
+ if (r) {
384
+ var t = xe(r, e);
385
+ return t && t.value;
386
+ }
387
+ }, Qn = function(r, e, t) {
388
+ var n = xe(r, e);
389
+ n ? n.value = t : r.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
390
+ {
391
+ // eslint-disable-line no-param-reassign, no-extra-parens
392
+ key: e,
393
+ next: r.next,
394
+ value: t
395
+ };
396
+ }, Jn = function(r, e) {
397
+ return r ? !!xe(r, e) : !1;
398
+ }, Xn = function(r, e) {
399
+ if (r)
400
+ return xe(r, e, !0);
401
+ }, Zn = function() {
402
+ var e, t = {
403
+ assert: function(n) {
404
+ if (!t.has(n))
405
+ throw new Yn("Side channel does not contain " + Hn(n));
406
+ },
407
+ delete: function(n) {
408
+ var o = e && e.next, i = Xn(e, n);
409
+ return i && o && o === i && (e = void 0), !!i;
410
+ },
411
+ get: function(n) {
412
+ return Kn(e, n);
413
+ },
414
+ has: function(n) {
415
+ return Jn(e, n);
416
+ },
417
+ set: function(n, o) {
418
+ e || (e = {
419
+ next: void 0
420
+ }), Qn(
421
+ /** @type {NonNullable<typeof $o>} */
422
+ e,
423
+ n,
424
+ o
425
+ );
426
+ }
427
+ };
428
+ return t;
429
+ }, vt = Object, eo = Error, ro = EvalError, to = RangeError, no = ReferenceError, oo = SyntaxError, ao = URIError, io = Math.abs, lo = Math.floor, uo = Math.max, co = Math.min, fo = Math.pow, so = Math.round, po = Number.isNaN || function(e) {
430
+ return e !== e;
431
+ }, yo = po, mo = function(e) {
432
+ return yo(e) || e === 0 ? e : e < 0 ? -1 : 1;
433
+ }, vo = Object.getOwnPropertyDescriptor, Pe = vo;
434
+ if (Pe)
435
+ try {
436
+ Pe([], "length");
437
+ } catch {
438
+ Pe = null;
439
+ }
440
+ var gt = Pe, $e = Object.defineProperty || !1;
441
+ if ($e)
442
+ try {
443
+ $e({}, "a", { value: 1 });
444
+ } catch {
445
+ $e = !1;
446
+ }
447
+ var go = $e, We, kr;
448
+ function ho() {
449
+ return kr || (kr = 1, We = function() {
450
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
451
+ return !1;
452
+ if (typeof Symbol.iterator == "symbol")
453
+ return !0;
454
+ var e = {}, t = Symbol("test"), n = Object(t);
455
+ if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
456
+ return !1;
457
+ var o = 42;
458
+ e[t] = o;
459
+ for (var i in e)
460
+ return !1;
461
+ if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
462
+ return !1;
463
+ var c = Object.getOwnPropertySymbols(e);
464
+ if (c.length !== 1 || c[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
465
+ return !1;
466
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
467
+ var l = (
468
+ /** @type {PropertyDescriptor} */
469
+ Object.getOwnPropertyDescriptor(e, t)
470
+ );
471
+ if (l.value !== o || l.enumerable !== !0)
472
+ return !1;
473
+ }
474
+ return !0;
475
+ }), We;
476
+ }
477
+ var ke, Gr;
478
+ function So() {
479
+ if (Gr) return ke;
480
+ Gr = 1;
481
+ var r = typeof Symbol < "u" && Symbol, e = ho();
482
+ return ke = function() {
483
+ return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
484
+ }, ke;
485
+ }
486
+ var Ge, jr;
487
+ function ht() {
488
+ return jr || (jr = 1, Ge = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ge;
489
+ }
490
+ var je, Vr;
491
+ function St() {
492
+ if (Vr) return je;
493
+ Vr = 1;
494
+ var r = vt;
495
+ return je = r.getPrototypeOf || null, je;
496
+ }
497
+ var Ve, zr;
498
+ function bo() {
499
+ if (zr) return Ve;
500
+ zr = 1;
501
+ var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, n = "[object Function]", o = function(f, u) {
502
+ for (var p = [], y = 0; y < f.length; y += 1)
503
+ p[y] = f[y];
504
+ for (var m = 0; m < u.length; m += 1)
505
+ p[m + f.length] = u[m];
506
+ return p;
507
+ }, i = function(f, u) {
508
+ for (var p = [], y = u, m = 0; y < f.length; y += 1, m += 1)
509
+ p[m] = f[y];
510
+ return p;
511
+ }, c = function(l, f) {
512
+ for (var u = "", p = 0; p < l.length; p += 1)
513
+ u += l[p], p + 1 < l.length && (u += f);
514
+ return u;
515
+ };
516
+ return Ve = function(f) {
517
+ var u = this;
518
+ if (typeof u != "function" || e.apply(u) !== n)
519
+ throw new TypeError(r + u);
520
+ for (var p = i(arguments, 1), y, m = function() {
521
+ if (this instanceof y) {
522
+ var g = u.apply(
523
+ this,
524
+ o(p, arguments)
525
+ );
526
+ return Object(g) === g ? g : this;
527
+ }
528
+ return u.apply(
529
+ f,
530
+ o(p, arguments)
531
+ );
532
+ }, h = t(0, u.length - p.length), v = [], P = 0; P < h; P++)
533
+ v[P] = "$" + P;
534
+ if (y = Function("binder", "return function (" + c(v, ",") + "){ return binder.apply(this,arguments); }")(m), u.prototype) {
535
+ var C = function() {
536
+ };
537
+ C.prototype = u.prototype, y.prototype = new C(), C.prototype = null;
538
+ }
539
+ return y;
540
+ }, Ve;
541
+ }
542
+ var ze, Hr;
543
+ function Fe() {
544
+ if (Hr) return ze;
545
+ Hr = 1;
546
+ var r = bo();
547
+ return ze = Function.prototype.bind || r, ze;
548
+ }
549
+ var He, Yr;
550
+ function gr() {
551
+ return Yr || (Yr = 1, He = Function.prototype.call), He;
552
+ }
553
+ var Ye, Kr;
554
+ function bt() {
555
+ return Kr || (Kr = 1, Ye = Function.prototype.apply), Ye;
556
+ }
557
+ var Eo = typeof Reflect < "u" && Reflect && Reflect.apply, Ao = Fe(), Oo = bt(), Po = gr(), $o = Eo, wo = $o || Ao.call(Po, Oo), Ro = Fe(), Co = ce, To = gr(), _o = wo, Et = function(e) {
558
+ if (e.length < 1 || typeof e[0] != "function")
559
+ throw new Co("a function is required");
560
+ return _o(Ro, To, e);
561
+ }, Ke, Qr;
562
+ function Io() {
563
+ if (Qr) return Ke;
564
+ Qr = 1;
565
+ var r = Et, e = gt, t;
566
+ try {
567
+ t = /** @type {{ __proto__?: typeof Array.prototype }} */
568
+ [].__proto__ === Array.prototype;
569
+ } catch (c) {
570
+ if (!c || typeof c != "object" || !("code" in c) || c.code !== "ERR_PROTO_ACCESS")
571
+ throw c;
572
+ }
573
+ var n = !!t && e && e(
574
+ Object.prototype,
575
+ /** @type {keyof typeof Object.prototype} */
576
+ "__proto__"
577
+ ), o = Object, i = o.getPrototypeOf;
578
+ return Ke = n && typeof n.get == "function" ? r([n.get]) : typeof i == "function" ? (
579
+ /** @type {import('./get')} */
580
+ function(l) {
581
+ return i(l == null ? l : o(l));
582
+ }
583
+ ) : !1, Ke;
584
+ }
585
+ var Qe, Jr;
586
+ function No() {
587
+ if (Jr) return Qe;
588
+ Jr = 1;
589
+ var r = ht(), e = St(), t = Io();
590
+ return Qe = r ? function(o) {
591
+ return r(o);
592
+ } : e ? function(o) {
593
+ if (!o || typeof o != "object" && typeof o != "function")
594
+ throw new TypeError("getProto: not an object");
595
+ return e(o);
596
+ } : t ? function(o) {
597
+ return t(o);
598
+ } : null, Qe;
599
+ }
600
+ var Je, Xr;
601
+ function xo() {
602
+ if (Xr) return Je;
603
+ Xr = 1;
604
+ var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Fe();
605
+ return Je = t.call(r, e), Je;
606
+ }
607
+ var S, Fo = vt, Mo = eo, Do = ro, Lo = to, Bo = no, le = oo, oe = ce, Uo = ao, qo = io, Wo = lo, ko = uo, Go = co, jo = fo, Vo = so, zo = mo, At = Function, Xe = function(r) {
608
+ try {
609
+ return At('"use strict"; return (' + r + ").constructor;")();
610
+ } catch {
611
+ }
612
+ }, me = gt, Ho = go, Ze = function() {
613
+ throw new oe();
614
+ }, Yo = me ? function() {
615
+ try {
616
+ return arguments.callee, Ze;
617
+ } catch {
618
+ try {
619
+ return me(arguments, "callee").get;
620
+ } catch {
621
+ return Ze;
622
+ }
623
+ }
624
+ }() : Ze, re = So()(), R = No(), Ko = St(), Qo = ht(), Ot = bt(), ve = gr(), ne = {}, Jo = typeof Uint8Array > "u" || !R ? S : R(Uint8Array), J = {
625
+ __proto__: null,
626
+ "%AggregateError%": typeof AggregateError > "u" ? S : AggregateError,
627
+ "%Array%": Array,
628
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? S : ArrayBuffer,
629
+ "%ArrayIteratorPrototype%": re && R ? R([][Symbol.iterator]()) : S,
630
+ "%AsyncFromSyncIteratorPrototype%": S,
631
+ "%AsyncFunction%": ne,
632
+ "%AsyncGenerator%": ne,
633
+ "%AsyncGeneratorFunction%": ne,
634
+ "%AsyncIteratorPrototype%": ne,
635
+ "%Atomics%": typeof Atomics > "u" ? S : Atomics,
636
+ "%BigInt%": typeof BigInt > "u" ? S : BigInt,
637
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? S : BigInt64Array,
638
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? S : BigUint64Array,
639
+ "%Boolean%": Boolean,
640
+ "%DataView%": typeof DataView > "u" ? S : DataView,
641
+ "%Date%": Date,
642
+ "%decodeURI%": decodeURI,
643
+ "%decodeURIComponent%": decodeURIComponent,
644
+ "%encodeURI%": encodeURI,
645
+ "%encodeURIComponent%": encodeURIComponent,
646
+ "%Error%": Mo,
647
+ "%eval%": eval,
648
+ // eslint-disable-line no-eval
649
+ "%EvalError%": Do,
650
+ "%Float32Array%": typeof Float32Array > "u" ? S : Float32Array,
651
+ "%Float64Array%": typeof Float64Array > "u" ? S : Float64Array,
652
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? S : FinalizationRegistry,
653
+ "%Function%": At,
654
+ "%GeneratorFunction%": ne,
655
+ "%Int8Array%": typeof Int8Array > "u" ? S : Int8Array,
656
+ "%Int16Array%": typeof Int16Array > "u" ? S : Int16Array,
657
+ "%Int32Array%": typeof Int32Array > "u" ? S : Int32Array,
658
+ "%isFinite%": isFinite,
659
+ "%isNaN%": isNaN,
660
+ "%IteratorPrototype%": re && R ? R(R([][Symbol.iterator]())) : S,
661
+ "%JSON%": typeof JSON == "object" ? JSON : S,
662
+ "%Map%": typeof Map > "u" ? S : Map,
663
+ "%MapIteratorPrototype%": typeof Map > "u" || !re || !R ? S : R((/* @__PURE__ */ new Map())[Symbol.iterator]()),
664
+ "%Math%": Math,
665
+ "%Number%": Number,
666
+ "%Object%": Fo,
667
+ "%Object.getOwnPropertyDescriptor%": me,
668
+ "%parseFloat%": parseFloat,
669
+ "%parseInt%": parseInt,
670
+ "%Promise%": typeof Promise > "u" ? S : Promise,
671
+ "%Proxy%": typeof Proxy > "u" ? S : Proxy,
672
+ "%RangeError%": Lo,
673
+ "%ReferenceError%": Bo,
674
+ "%Reflect%": typeof Reflect > "u" ? S : Reflect,
675
+ "%RegExp%": RegExp,
676
+ "%Set%": typeof Set > "u" ? S : Set,
677
+ "%SetIteratorPrototype%": typeof Set > "u" || !re || !R ? S : R((/* @__PURE__ */ new Set())[Symbol.iterator]()),
678
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? S : SharedArrayBuffer,
679
+ "%String%": String,
680
+ "%StringIteratorPrototype%": re && R ? R(""[Symbol.iterator]()) : S,
681
+ "%Symbol%": re ? Symbol : S,
682
+ "%SyntaxError%": le,
683
+ "%ThrowTypeError%": Yo,
684
+ "%TypedArray%": Jo,
685
+ "%TypeError%": oe,
686
+ "%Uint8Array%": typeof Uint8Array > "u" ? S : Uint8Array,
687
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? S : Uint8ClampedArray,
688
+ "%Uint16Array%": typeof Uint16Array > "u" ? S : Uint16Array,
689
+ "%Uint32Array%": typeof Uint32Array > "u" ? S : Uint32Array,
690
+ "%URIError%": Uo,
691
+ "%WeakMap%": typeof WeakMap > "u" ? S : WeakMap,
692
+ "%WeakRef%": typeof WeakRef > "u" ? S : WeakRef,
693
+ "%WeakSet%": typeof WeakSet > "u" ? S : WeakSet,
694
+ "%Function.prototype.call%": ve,
695
+ "%Function.prototype.apply%": Ot,
696
+ "%Object.defineProperty%": Ho,
697
+ "%Object.getPrototypeOf%": Ko,
698
+ "%Math.abs%": qo,
699
+ "%Math.floor%": Wo,
700
+ "%Math.max%": ko,
701
+ "%Math.min%": Go,
702
+ "%Math.pow%": jo,
703
+ "%Math.round%": Vo,
704
+ "%Math.sign%": zo,
705
+ "%Reflect.getPrototypeOf%": Qo
706
+ };
707
+ if (R)
708
+ try {
709
+ null.error;
710
+ } catch (r) {
711
+ var Xo = R(R(r));
712
+ J["%Error.prototype%"] = Xo;
713
+ }
714
+ var Zo = function r(e) {
715
+ var t;
716
+ if (e === "%AsyncFunction%")
717
+ t = Xe("async function () {}");
718
+ else if (e === "%GeneratorFunction%")
719
+ t = Xe("function* () {}");
720
+ else if (e === "%AsyncGeneratorFunction%")
721
+ t = Xe("async function* () {}");
722
+ else if (e === "%AsyncGenerator%") {
723
+ var n = r("%AsyncGeneratorFunction%");
724
+ n && (t = n.prototype);
725
+ } else if (e === "%AsyncIteratorPrototype%") {
726
+ var o = r("%AsyncGenerator%");
727
+ o && R && (t = R(o.prototype));
728
+ }
729
+ return J[e] = t, t;
730
+ }, Zr = {
731
+ __proto__: null,
732
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
733
+ "%ArrayPrototype%": ["Array", "prototype"],
734
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
735
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
736
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
737
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
738
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
739
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
740
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
741
+ "%BooleanPrototype%": ["Boolean", "prototype"],
742
+ "%DataViewPrototype%": ["DataView", "prototype"],
743
+ "%DatePrototype%": ["Date", "prototype"],
744
+ "%ErrorPrototype%": ["Error", "prototype"],
745
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
746
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
747
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
748
+ "%FunctionPrototype%": ["Function", "prototype"],
749
+ "%Generator%": ["GeneratorFunction", "prototype"],
750
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
751
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
752
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
753
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
754
+ "%JSONParse%": ["JSON", "parse"],
755
+ "%JSONStringify%": ["JSON", "stringify"],
756
+ "%MapPrototype%": ["Map", "prototype"],
757
+ "%NumberPrototype%": ["Number", "prototype"],
758
+ "%ObjectPrototype%": ["Object", "prototype"],
759
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
760
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
761
+ "%PromisePrototype%": ["Promise", "prototype"],
762
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
763
+ "%Promise_all%": ["Promise", "all"],
764
+ "%Promise_reject%": ["Promise", "reject"],
765
+ "%Promise_resolve%": ["Promise", "resolve"],
766
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
767
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
768
+ "%RegExpPrototype%": ["RegExp", "prototype"],
769
+ "%SetPrototype%": ["Set", "prototype"],
770
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
771
+ "%StringPrototype%": ["String", "prototype"],
772
+ "%SymbolPrototype%": ["Symbol", "prototype"],
773
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
774
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
775
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
776
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
777
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
778
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
779
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
780
+ "%URIErrorPrototype%": ["URIError", "prototype"],
781
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
782
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
783
+ }, ge = Fe(), Te = xo(), ea = ge.call(ve, Array.prototype.concat), ra = ge.call(Ot, Array.prototype.splice), et = ge.call(ve, String.prototype.replace), _e = ge.call(ve, String.prototype.slice), ta = ge.call(ve, RegExp.prototype.exec), na = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, oa = /\\(\\)?/g, aa = function(e) {
784
+ var t = _e(e, 0, 1), n = _e(e, -1);
785
+ if (t === "%" && n !== "%")
786
+ throw new le("invalid intrinsic syntax, expected closing `%`");
787
+ if (n === "%" && t !== "%")
788
+ throw new le("invalid intrinsic syntax, expected opening `%`");
789
+ var o = [];
790
+ return et(e, na, function(i, c, l, f) {
791
+ o[o.length] = l ? et(f, oa, "$1") : c || i;
792
+ }), o;
793
+ }, ia = function(e, t) {
794
+ var n = e, o;
795
+ if (Te(Zr, n) && (o = Zr[n], n = "%" + o[0] + "%"), Te(J, n)) {
796
+ var i = J[n];
797
+ if (i === ne && (i = Zo(n)), typeof i > "u" && !t)
798
+ throw new oe("intrinsic " + e + " exists, but is not available. Please file an issue!");
799
+ return {
800
+ alias: o,
801
+ name: n,
802
+ value: i
803
+ };
804
+ }
805
+ throw new le("intrinsic " + e + " does not exist!");
806
+ }, hr = function(e, t) {
807
+ if (typeof e != "string" || e.length === 0)
808
+ throw new oe("intrinsic name must be a non-empty string");
809
+ if (arguments.length > 1 && typeof t != "boolean")
810
+ throw new oe('"allowMissing" argument must be a boolean');
811
+ if (ta(/^%?[^%]*%?$/, e) === null)
812
+ throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
813
+ var n = aa(e), o = n.length > 0 ? n[0] : "", i = ia("%" + o + "%", t), c = i.name, l = i.value, f = !1, u = i.alias;
814
+ u && (o = u[0], ra(n, ea([0, 1], u)));
815
+ for (var p = 1, y = !0; p < n.length; p += 1) {
816
+ var m = n[p], h = _e(m, 0, 1), v = _e(m, -1);
817
+ if ((h === '"' || h === "'" || h === "`" || v === '"' || v === "'" || v === "`") && h !== v)
818
+ throw new le("property names with quotes must have matching quotes");
819
+ if ((m === "constructor" || !y) && (f = !0), o += "." + m, c = "%" + o + "%", Te(J, c))
820
+ l = J[c];
821
+ else if (l != null) {
822
+ if (!(m in l)) {
823
+ if (!t)
824
+ throw new oe("base intrinsic for " + e + " exists, but the property is not available.");
825
+ return;
826
+ }
827
+ if (me && p + 1 >= n.length) {
828
+ var P = me(l, m);
829
+ y = !!P, y && "get" in P && !("originalValue" in P.get) ? l = P.get : l = l[m];
830
+ } else
831
+ y = Te(l, m), l = l[m];
832
+ y && !f && (J[c] = l);
833
+ }
834
+ }
835
+ return l;
836
+ }, Pt = hr, $t = Et, la = $t([Pt("%String.prototype.indexOf%")]), wt = function(e, t) {
837
+ var n = (
838
+ /** @type {Parameters<typeof callBindBasic>[0][0]} */
839
+ Pt(e, !!t)
840
+ );
841
+ return typeof n == "function" && la(e, ".prototype.") > -1 ? $t([n]) : n;
842
+ }, ua = hr, he = wt, ca = Ne, fa = ce, rt = ua("%Map%", !0), sa = he("Map.prototype.get", !0), pa = he("Map.prototype.set", !0), ya = he("Map.prototype.has", !0), da = he("Map.prototype.delete", !0), ma = he("Map.prototype.size", !0), Rt = !!rt && /** @type {Exclude<import('.'), false>} */
843
+ function() {
844
+ var e, t = {
845
+ assert: function(n) {
846
+ if (!t.has(n))
847
+ throw new fa("Side channel does not contain " + ca(n));
848
+ },
849
+ delete: function(n) {
850
+ if (e) {
851
+ var o = da(e, n);
852
+ return ma(e) === 0 && (e = void 0), o;
853
+ }
854
+ return !1;
855
+ },
856
+ get: function(n) {
857
+ if (e)
858
+ return sa(e, n);
859
+ },
860
+ has: function(n) {
861
+ return e ? ya(e, n) : !1;
862
+ },
863
+ set: function(n, o) {
864
+ e || (e = new rt()), pa(e, n, o);
865
+ }
866
+ };
867
+ return t;
868
+ }, va = hr, Me = wt, ga = Ne, Oe = Rt, ha = ce, te = va("%WeakMap%", !0), Sa = Me("WeakMap.prototype.get", !0), ba = Me("WeakMap.prototype.set", !0), Ea = Me("WeakMap.prototype.has", !0), Aa = Me("WeakMap.prototype.delete", !0), Oa = te ? (
869
+ /** @type {Exclude<import('.'), false>} */
870
+ function() {
871
+ var e, t, n = {
872
+ assert: function(o) {
873
+ if (!n.has(o))
874
+ throw new ha("Side channel does not contain " + ga(o));
875
+ },
876
+ delete: function(o) {
877
+ if (te && o && (typeof o == "object" || typeof o == "function")) {
878
+ if (e)
879
+ return Aa(e, o);
880
+ } else if (Oe && t)
881
+ return t.delete(o);
882
+ return !1;
883
+ },
884
+ get: function(o) {
885
+ return te && o && (typeof o == "object" || typeof o == "function") && e ? Sa(e, o) : t && t.get(o);
886
+ },
887
+ has: function(o) {
888
+ return te && o && (typeof o == "object" || typeof o == "function") && e ? Ea(e, o) : !!t && t.has(o);
889
+ },
890
+ set: function(o, i) {
891
+ te && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new te()), ba(e, o, i)) : Oe && (t || (t = Oe()), t.set(o, i));
892
+ }
893
+ };
894
+ return n;
895
+ }
896
+ ) : Oe, Pa = ce, $a = Ne, wa = Zn, Ra = Rt, Ca = Oa, Ta = Ca || Ra || wa, _a = function() {
897
+ var e, t = {
898
+ assert: function(n) {
899
+ if (!t.has(n))
900
+ throw new Pa("Side channel does not contain " + $a(n));
901
+ },
902
+ delete: function(n) {
903
+ return !!e && e.delete(n);
904
+ },
905
+ get: function(n) {
906
+ return e && e.get(n);
907
+ },
908
+ has: function(n) {
909
+ return !!e && e.has(n);
910
+ },
911
+ set: function(n, o) {
912
+ e || (e = Ta()), e.set(n, o);
913
+ }
914
+ };
915
+ return t;
916
+ }, Ia = String.prototype.replace, Na = /%20/g, er = {
917
+ RFC1738: "RFC1738",
918
+ RFC3986: "RFC3986"
919
+ }, Sr = {
920
+ default: er.RFC3986,
921
+ formatters: {
922
+ RFC1738: function(r) {
923
+ return Ia.call(r, Na, "+");
924
+ },
925
+ RFC3986: function(r) {
926
+ return String(r);
927
+ }
928
+ },
929
+ RFC1738: er.RFC1738,
930
+ RFC3986: er.RFC3986
931
+ }, xa = Sr, rr = Object.prototype.hasOwnProperty, Q = Array.isArray, D = function() {
932
+ for (var r = [], e = 0; e < 256; ++e)
933
+ r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
934
+ return r;
935
+ }(), Fa = function(e) {
936
+ for (; e.length > 1; ) {
937
+ var t = e.pop(), n = t.obj[t.prop];
938
+ if (Q(n)) {
939
+ for (var o = [], i = 0; i < n.length; ++i)
940
+ typeof n[i] < "u" && o.push(n[i]);
941
+ t.obj[t.prop] = o;
942
+ }
943
+ }
944
+ }, Ct = function(e, t) {
945
+ for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
946
+ typeof e[o] < "u" && (n[o] = e[o]);
947
+ return n;
948
+ }, Ma = function r(e, t, n) {
949
+ if (!t)
950
+ return e;
951
+ if (typeof t != "object") {
952
+ if (Q(e))
953
+ e.push(t);
954
+ else if (e && typeof e == "object")
955
+ (n && (n.plainObjects || n.allowPrototypes) || !rr.call(Object.prototype, t)) && (e[t] = !0);
956
+ else
957
+ return [e, t];
958
+ return e;
959
+ }
960
+ if (!e || typeof e != "object")
961
+ return [e].concat(t);
962
+ var o = e;
963
+ return Q(e) && !Q(t) && (o = Ct(e, n)), Q(e) && Q(t) ? (t.forEach(function(i, c) {
964
+ if (rr.call(e, c)) {
965
+ var l = e[c];
966
+ l && typeof l == "object" && i && typeof i == "object" ? e[c] = r(l, i, n) : e.push(i);
967
+ } else
968
+ e[c] = i;
969
+ }), e) : Object.keys(t).reduce(function(i, c) {
970
+ var l = t[c];
971
+ return rr.call(i, c) ? i[c] = r(i[c], l, n) : i[c] = l, i;
972
+ }, o);
973
+ }, Da = function(e, t) {
974
+ return Object.keys(t).reduce(function(n, o) {
975
+ return n[o] = t[o], n;
976
+ }, e);
977
+ }, La = function(r, e, t) {
978
+ var n = r.replace(/\+/g, " ");
979
+ if (t === "iso-8859-1")
980
+ return n.replace(/%[0-9a-f]{2}/gi, unescape);
981
+ try {
982
+ return decodeURIComponent(n);
983
+ } catch {
984
+ return n;
985
+ }
986
+ }, Ba = function(e, t, n, o, i) {
987
+ if (e.length === 0)
988
+ return e;
989
+ var c = e;
990
+ if (typeof e == "symbol" ? c = Symbol.prototype.toString.call(e) : typeof e != "string" && (c = String(e)), n === "iso-8859-1")
991
+ return escape(c).replace(/%u[0-9a-f]{4}/gi, function(p) {
992
+ return "%26%23" + parseInt(p.slice(2), 16) + "%3B";
993
+ });
994
+ for (var l = "", f = 0; f < c.length; ++f) {
995
+ var u = c.charCodeAt(f);
996
+ if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || i === xa.RFC1738 && (u === 40 || u === 41)) {
997
+ l += c.charAt(f);
998
+ continue;
999
+ }
1000
+ if (u < 128) {
1001
+ l = l + D[u];
1002
+ continue;
1003
+ }
1004
+ if (u < 2048) {
1005
+ l = l + (D[192 | u >> 6] + D[128 | u & 63]);
1006
+ continue;
1007
+ }
1008
+ if (u < 55296 || u >= 57344) {
1009
+ l = l + (D[224 | u >> 12] + D[128 | u >> 6 & 63] + D[128 | u & 63]);
1010
+ continue;
1011
+ }
1012
+ f += 1, u = 65536 + ((u & 1023) << 10 | c.charCodeAt(f) & 1023), l += D[240 | u >> 18] + D[128 | u >> 12 & 63] + D[128 | u >> 6 & 63] + D[128 | u & 63];
1013
+ }
1014
+ return l;
1015
+ }, Ua = function(e) {
1016
+ for (var t = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < t.length; ++o)
1017
+ for (var i = t[o], c = i.obj[i.prop], l = Object.keys(c), f = 0; f < l.length; ++f) {
1018
+ var u = l[f], p = c[u];
1019
+ typeof p == "object" && p !== null && n.indexOf(p) === -1 && (t.push({ obj: c, prop: u }), n.push(p));
1020
+ }
1021
+ return Fa(t), e;
1022
+ }, qa = function(e) {
1023
+ return Object.prototype.toString.call(e) === "[object RegExp]";
1024
+ }, Wa = function(e) {
1025
+ return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
1026
+ }, ka = function(e, t) {
1027
+ return [].concat(e, t);
1028
+ }, Ga = function(e, t) {
1029
+ if (Q(e)) {
1030
+ for (var n = [], o = 0; o < e.length; o += 1)
1031
+ n.push(t(e[o]));
1032
+ return n;
1033
+ }
1034
+ return t(e);
1035
+ }, Tt = {
1036
+ arrayToObject: Ct,
1037
+ assign: Da,
1038
+ combine: ka,
1039
+ compact: Ua,
1040
+ decode: La,
1041
+ encode: Ba,
1042
+ isBuffer: Wa,
1043
+ isRegExp: qa,
1044
+ maybeMap: Ga,
1045
+ merge: Ma
1046
+ }, _t = _a, we = Tt, de = Sr, ja = Object.prototype.hasOwnProperty, tt = {
1047
+ brackets: function(e) {
1048
+ return e + "[]";
1049
+ },
1050
+ comma: "comma",
1051
+ indices: function(e, t) {
1052
+ return e + "[" + t + "]";
1053
+ },
1054
+ repeat: function(e) {
1055
+ return e;
1056
+ }
1057
+ }, q = Array.isArray, Va = Array.prototype.push, It = function(r, e) {
1058
+ Va.apply(r, q(e) ? e : [e]);
1059
+ }, za = Date.prototype.toISOString, nt = de.default, T = {
1060
+ addQueryPrefix: !1,
1061
+ allowDots: !1,
1062
+ charset: "utf-8",
1063
+ charsetSentinel: !1,
1064
+ delimiter: "&",
1065
+ encode: !0,
1066
+ encoder: we.encode,
1067
+ encodeValuesOnly: !1,
1068
+ format: nt,
1069
+ formatter: de.formatters[nt],
1070
+ // deprecated
1071
+ indices: !1,
1072
+ serializeDate: function(e) {
1073
+ return za.call(e);
1074
+ },
1075
+ skipNulls: !1,
1076
+ strictNullHandling: !1
1077
+ }, Ha = function(e) {
1078
+ return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1079
+ }, tr = {}, Ya = function r(e, t, n, o, i, c, l, f, u, p, y, m, h, v, P, C) {
1080
+ for (var g = e, I = C, O = 0, $ = !1; (I = I.get(tr)) !== void 0 && !$; ) {
1081
+ var s = I.get(e);
1082
+ if (O += 1, typeof s < "u") {
1083
+ if (s === O)
1084
+ throw new RangeError("Cyclic object value");
1085
+ $ = !0;
1086
+ }
1087
+ typeof I.get(tr) > "u" && (O = 0);
1088
+ }
1089
+ if (typeof f == "function" ? g = f(t, g) : g instanceof Date ? g = y(g) : n === "comma" && q(g) && (g = we.maybeMap(g, function(j) {
1090
+ return j instanceof Date ? y(j) : j;
1091
+ })), g === null) {
1092
+ if (i)
1093
+ return l && !v ? l(t, T.encoder, P, "key", m) : t;
1094
+ g = "";
1095
+ }
1096
+ if (Ha(g) || we.isBuffer(g)) {
1097
+ if (l) {
1098
+ var F = v ? t : l(t, T.encoder, P, "key", m);
1099
+ return [h(F) + "=" + h(l(g, T.encoder, P, "value", m))];
1100
+ }
1101
+ return [h(t) + "=" + h(String(g))];
1102
+ }
1103
+ var B = [];
1104
+ if (typeof g > "u")
1105
+ return B;
1106
+ var M;
1107
+ if (n === "comma" && q(g))
1108
+ v && l && (g = we.maybeMap(g, l)), M = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
1109
+ else if (q(f))
1110
+ M = f;
1111
+ else {
1112
+ var W = Object.keys(g);
1113
+ M = u ? W.sort(u) : W;
1114
+ }
1115
+ for (var k = o && q(g) && g.length === 1 ? t + "[]" : t, K = 0; K < M.length; ++K) {
1116
+ var N = M[K], x = typeof N == "object" && typeof N.value < "u" ? N.value : g[N];
1117
+ if (!(c && x === null)) {
1118
+ var G = q(g) ? typeof n == "function" ? n(k, N) : k : k + (p ? "." + N : "[" + N + "]");
1119
+ C.set(e, O);
1120
+ var Z = _t();
1121
+ Z.set(tr, C), It(B, r(
1122
+ x,
1123
+ G,
1124
+ n,
1125
+ o,
1126
+ i,
1127
+ c,
1128
+ n === "comma" && v && q(g) ? null : l,
1129
+ f,
1130
+ u,
1131
+ p,
1132
+ y,
1133
+ m,
1134
+ h,
1135
+ v,
1136
+ P,
1137
+ Z
1138
+ ));
1139
+ }
1140
+ }
1141
+ return B;
1142
+ }, Ka = function(e) {
1143
+ if (!e)
1144
+ return T;
1145
+ if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
1146
+ throw new TypeError("Encoder has to be a function.");
1147
+ var t = e.charset || T.charset;
1148
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1149
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1150
+ var n = de.default;
1151
+ if (typeof e.format < "u") {
1152
+ if (!ja.call(de.formatters, e.format))
1153
+ throw new TypeError("Unknown format option provided.");
1154
+ n = e.format;
1155
+ }
1156
+ var o = de.formatters[n], i = T.filter;
1157
+ return (typeof e.filter == "function" || q(e.filter)) && (i = e.filter), {
1158
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : T.addQueryPrefix,
1159
+ allowDots: typeof e.allowDots > "u" ? T.allowDots : !!e.allowDots,
1160
+ charset: t,
1161
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : T.charsetSentinel,
1162
+ delimiter: typeof e.delimiter > "u" ? T.delimiter : e.delimiter,
1163
+ encode: typeof e.encode == "boolean" ? e.encode : T.encode,
1164
+ encoder: typeof e.encoder == "function" ? e.encoder : T.encoder,
1165
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : T.encodeValuesOnly,
1166
+ filter: i,
1167
+ format: n,
1168
+ formatter: o,
1169
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : T.serializeDate,
1170
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : T.skipNulls,
1171
+ sort: typeof e.sort == "function" ? e.sort : null,
1172
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : T.strictNullHandling
1173
+ };
1174
+ }, Qa = function(r, e) {
1175
+ var t = r, n = Ka(e), o, i;
1176
+ typeof n.filter == "function" ? (i = n.filter, t = i("", t)) : q(n.filter) && (i = n.filter, o = i);
1177
+ var c = [];
1178
+ if (typeof t != "object" || t === null)
1179
+ return "";
1180
+ var l;
1181
+ e && e.arrayFormat in tt ? l = e.arrayFormat : e && "indices" in e ? l = e.indices ? "indices" : "repeat" : l = "indices";
1182
+ var f = tt[l];
1183
+ if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1184
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1185
+ var u = f === "comma" && e && e.commaRoundTrip;
1186
+ o || (o = Object.keys(t)), n.sort && o.sort(n.sort);
1187
+ for (var p = _t(), y = 0; y < o.length; ++y) {
1188
+ var m = o[y];
1189
+ n.skipNulls && t[m] === null || It(c, Ya(
1190
+ t[m],
1191
+ m,
1192
+ f,
1193
+ u,
1194
+ n.strictNullHandling,
1195
+ n.skipNulls,
1196
+ n.encode ? n.encoder : null,
1197
+ n.filter,
1198
+ n.sort,
1199
+ n.allowDots,
1200
+ n.serializeDate,
1201
+ n.format,
1202
+ n.formatter,
1203
+ n.encodeValuesOnly,
1204
+ n.charset,
1205
+ p
1206
+ ));
1207
+ }
1208
+ var h = c.join(n.delimiter), v = n.addQueryPrefix === !0 ? "?" : "";
1209
+ return n.charsetSentinel && (n.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B&" : v += "utf8=%E2%9C%93&"), h.length > 0 ? v + h : "";
1210
+ }, ue = Tt, cr = Object.prototype.hasOwnProperty, Ja = Array.isArray, w = {
1211
+ allowDots: !1,
1212
+ allowPrototypes: !1,
1213
+ allowSparse: !1,
1214
+ arrayLimit: 20,
1215
+ charset: "utf-8",
1216
+ charsetSentinel: !1,
1217
+ comma: !1,
1218
+ decoder: ue.decode,
1219
+ delimiter: "&",
1220
+ depth: 5,
1221
+ ignoreQueryPrefix: !1,
1222
+ interpretNumericEntities: !1,
1223
+ parameterLimit: 1e3,
1224
+ parseArrays: !0,
1225
+ plainObjects: !1,
1226
+ strictNullHandling: !1
1227
+ }, Xa = function(r) {
1228
+ return r.replace(/&#(\d+);/g, function(e, t) {
1229
+ return String.fromCharCode(parseInt(t, 10));
1230
+ });
1231
+ }, Nt = function(r, e) {
1232
+ return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
1233
+ }, Za = "utf8=%26%2310003%3B", ei = "utf8=%E2%9C%93", ri = function(e, t) {
1234
+ var n = {}, o = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, i = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, c = o.split(t.delimiter, i), l = -1, f, u = t.charset;
1235
+ if (t.charsetSentinel)
1236
+ for (f = 0; f < c.length; ++f)
1237
+ c[f].indexOf("utf8=") === 0 && (c[f] === ei ? u = "utf-8" : c[f] === Za && (u = "iso-8859-1"), l = f, f = c.length);
1238
+ for (f = 0; f < c.length; ++f)
1239
+ if (f !== l) {
1240
+ var p = c[f], y = p.indexOf("]="), m = y === -1 ? p.indexOf("=") : y + 1, h, v;
1241
+ m === -1 ? (h = t.decoder(p, w.decoder, u, "key"), v = t.strictNullHandling ? null : "") : (h = t.decoder(p.slice(0, m), w.decoder, u, "key"), v = ue.maybeMap(
1242
+ Nt(p.slice(m + 1), t),
1243
+ function(P) {
1244
+ return t.decoder(P, w.decoder, u, "value");
1245
+ }
1246
+ )), v && t.interpretNumericEntities && u === "iso-8859-1" && (v = Xa(v)), p.indexOf("[]=") > -1 && (v = Ja(v) ? [v] : v), cr.call(n, h) ? n[h] = ue.combine(n[h], v) : n[h] = v;
1247
+ }
1248
+ return n;
1249
+ }, ti = function(r, e, t, n) {
1250
+ for (var o = n ? e : Nt(e, t), i = r.length - 1; i >= 0; --i) {
1251
+ var c, l = r[i];
1252
+ if (l === "[]" && t.parseArrays)
1253
+ c = [].concat(o);
1254
+ else {
1255
+ c = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1256
+ var f = l.charAt(0) === "[" && l.charAt(l.length - 1) === "]" ? l.slice(1, -1) : l, u = parseInt(f, 10);
1257
+ !t.parseArrays && f === "" ? c = { 0: o } : !isNaN(u) && l !== f && String(u) === f && u >= 0 && t.parseArrays && u <= t.arrayLimit ? (c = [], c[u] = o) : f !== "__proto__" && (c[f] = o);
1258
+ }
1259
+ o = c;
1260
+ }
1261
+ return o;
1262
+ }, ni = function(e, t, n, o) {
1263
+ if (e) {
1264
+ var i = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, c = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, f = n.depth > 0 && c.exec(i), u = f ? i.slice(0, f.index) : i, p = [];
1265
+ if (u) {
1266
+ if (!n.plainObjects && cr.call(Object.prototype, u) && !n.allowPrototypes)
1267
+ return;
1268
+ p.push(u);
1269
+ }
1270
+ for (var y = 0; n.depth > 0 && (f = l.exec(i)) !== null && y < n.depth; ) {
1271
+ if (y += 1, !n.plainObjects && cr.call(Object.prototype, f[1].slice(1, -1)) && !n.allowPrototypes)
1272
+ return;
1273
+ p.push(f[1]);
1274
+ }
1275
+ return f && p.push("[" + i.slice(f.index) + "]"), ti(p, t, n, o);
1276
+ }
1277
+ }, oi = function(e) {
1278
+ if (!e)
1279
+ return w;
1280
+ if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
1281
+ throw new TypeError("Decoder has to be a function.");
1282
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1283
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1284
+ var t = typeof e.charset > "u" ? w.charset : e.charset;
1285
+ return {
1286
+ allowDots: typeof e.allowDots > "u" ? w.allowDots : !!e.allowDots,
1287
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : w.allowPrototypes,
1288
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : w.allowSparse,
1289
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : w.arrayLimit,
1290
+ charset: t,
1291
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : w.charsetSentinel,
1292
+ comma: typeof e.comma == "boolean" ? e.comma : w.comma,
1293
+ decoder: typeof e.decoder == "function" ? e.decoder : w.decoder,
1294
+ delimiter: typeof e.delimiter == "string" || ue.isRegExp(e.delimiter) ? e.delimiter : w.delimiter,
1295
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1296
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : w.depth,
1297
+ ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
1298
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : w.interpretNumericEntities,
1299
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : w.parameterLimit,
1300
+ parseArrays: e.parseArrays !== !1,
1301
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : w.plainObjects,
1302
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : w.strictNullHandling
1303
+ };
1304
+ }, ai = function(r, e) {
1305
+ var t = oi(e);
1306
+ if (r === "" || r === null || typeof r > "u")
1307
+ return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1308
+ for (var n = typeof r == "string" ? ri(r, t) : r, o = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = Object.keys(n), c = 0; c < i.length; ++c) {
1309
+ var l = i[c], f = ni(l, n[l], t, typeof r == "string");
1310
+ o = ue.merge(o, f, t);
1311
+ }
1312
+ return t.allowSparse === !0 ? o : ue.compact(o);
1313
+ }, ii = Qa, li = ai, ui = Sr, nr = {
1314
+ formats: ui,
1315
+ parse: li,
1316
+ stringify: ii
1317
+ };
1318
+ const xt = {
1319
+ PENDING: "PENDING",
1320
+ APPROVED: "APPROVED",
1321
+ REJECTED: "REJECTED"
1322
+ }, ji = {
1323
+ ...xt,
1324
+ BLOCKED: "BLOCKED",
1325
+ OPEN: "OPEN",
1326
+ RESOLVED: "RESOLVED"
1327
+ };
1328
+ var ci = /* @__PURE__ */ ((r) => (r.BAD_LANGUAGE = "BAD_LANGUAGE", r.DISCRIMINATION = "DISCRIMINATION", r.OTHER = "OTHER", r))(ci || {});
1329
+ const z = {
1330
+ ...xt,
1331
+ BLOCKED: "BLOCKED",
1332
+ OPEN: "OPEN",
1333
+ REMOVED: "REMOVED",
1334
+ TO_REVIEW: "TO_REVIEW",
1335
+ UNKNOWN: "UNKNOWN"
1336
+ }, fi = a.object({
1337
+ entryLabel: a.record(a.array(a.string())),
1338
+ approvalFlow: a.array(a.string()),
1339
+ blockedAuthorProps: a.array(a.string()),
1340
+ reportReasons: a.object({
1341
+ BAD_LANGUAGE: a.literal("BAD_LANGUAGE"),
1342
+ DISCRIMINATION: a.literal("DISCRIMINATION"),
1343
+ OTHER: a.literal("OTHER")
1344
+ }),
1345
+ regex: a.object({
1346
+ uid: a.string(),
1347
+ relatedUid: a.string(),
1348
+ email: a.string(),
1349
+ sorting: a.string()
1350
+ }),
1351
+ enabledCollections: a.array(a.string()),
1352
+ moderatorRoles: a.array(a.string()),
1353
+ isGQLPluginEnabled: a.boolean(),
1354
+ badWords: a.boolean().nullable().optional(),
1355
+ gql: a.object({
1356
+ auth: a.boolean().nullable()
1357
+ }).optional(),
1358
+ client: a.object({
1359
+ url: a.string().nullable(),
1360
+ contactEmail: a.string().nullable()
1361
+ }).default({ url: null, contactEmail: null })
1362
+ }), Ft = a.intersection(
1363
+ a.object({
1364
+ id: a.number(),
1365
+ uid: a.string(),
1366
+ documentId: a.string(),
1367
+ createdAt: a.string(),
1368
+ updatedAt: a.string(),
1369
+ publishedAt: a.string().nullable(),
1370
+ locale: a.string().nullable().optional()
1371
+ }),
1372
+ a.record(a.unknown())
1373
+ ), si = a.object({
1374
+ id: a.union([a.number(), a.string()]),
1375
+ name: a.string().optional().nullable(),
1376
+ email: a.string(),
1377
+ avatar: a.union([
1378
+ a.object({
1379
+ url: a.string()
1380
+ }),
1381
+ a.object({
1382
+ url: a.string(),
1383
+ formats: a.object({
1384
+ thumbnail: a.object({
1385
+ url: a.string()
1386
+ }).nullable()
1387
+ })
1388
+ }),
1389
+ a.string()
1390
+ ]).nullable().optional()
1391
+ }), Mt = a.union([
1392
+ a.literal(z.PENDING),
1393
+ a.literal(z.APPROVED),
1394
+ a.literal(z.REJECTED),
1395
+ a.literal(z.BLOCKED),
1396
+ a.literal(z.OPEN),
1397
+ a.literal(z.REMOVED),
1398
+ a.literal(z.TO_REVIEW),
1399
+ a.literal(z.UNKNOWN)
1400
+ ]), Dt = a.union([
1401
+ a.literal("BAD_LANGUAGE"),
1402
+ a.literal("DISCRIMINATION"),
1403
+ a.literal("OTHER")
1404
+ ]), pi = a.object({
1405
+ id: a.number(),
1406
+ reason: Dt,
1407
+ content: a.string(),
1408
+ resolved: a.boolean(),
1409
+ createdAt: a.string(),
1410
+ updatedAt: a.string().nullable()
1411
+ }), Ie = a.object({
1412
+ id: a.number(),
1413
+ content: a.string(),
1414
+ blocked: a.boolean().nullable(),
1415
+ blockedThread: a.boolean().nullable(),
1416
+ blockReason: a.string().nullable(),
1417
+ isAdminComment: a.boolean().nullable(),
1418
+ removed: a.boolean().nullable(),
1419
+ approvalStatus: Mt.nullable(),
1420
+ createdAt: a.string(),
1421
+ updatedAt: a.string(),
1422
+ reports: a.array(pi).nullable().optional(),
1423
+ author: si,
1424
+ gotThread: a.boolean().nullable().optional(),
1425
+ threadFirstItemId: a.number().nullable().optional()
1426
+ }), Lt = a.object({
1427
+ page: a.number(),
1428
+ pageSize: a.number(),
1429
+ pageCount: a.number(),
1430
+ total: a.number()
1431
+ });
1432
+ function fr() {
1433
+ return Ie.extend({
1434
+ related: Ft,
1435
+ documentId: a.string(),
1436
+ threadOf: a.lazy(
1437
+ () => Ie.merge(a.object({ related: a.string(), threadOf: Bt.nullable().optional(), documentId: a.string().optional() }))
1438
+ ).nullable().optional()
1439
+ });
1440
+ }
1441
+ const Bt = fr(), yi = a.object({
1442
+ pagination: Lt,
1443
+ result: a.array(Bt)
1444
+ }), di = a.object({
1445
+ entity: Ft,
1446
+ selected: Ie.merge(
1447
+ a.object({
1448
+ related: a.string(),
1449
+ threadOf: fr().omit({ related: !0 }).merge(a.object({ related: a.string() })).nullable().optional()
1450
+ })
1451
+ ).nullable(),
1452
+ level: a.array(fr().omit({ threadOf: !0, related: !0 }))
1453
+ }), Ut = a.object({
1454
+ apiID: a.string(),
1455
+ uid: a.string(),
1456
+ schema: a.object({
1457
+ attributes: a.record(a.object({ type: a.union([a.literal("string"), a.string()]) })),
1458
+ collectionName: a.string(),
1459
+ description: a.string(),
1460
+ displayName: a.string(),
1461
+ draftAndPublish: a.boolean(),
1462
+ kind: a.string(),
1463
+ pluralName: a.string(),
1464
+ singularName: a.string(),
1465
+ visible: a.boolean()
1466
+ })
1467
+ }), mi = a.object({
1468
+ data: Ut
1469
+ }), vi = a.object({
1470
+ data: a.array(Ut)
1471
+ }), gi = a.object({
1472
+ author: a.unknown(),
1473
+ content: a.string(),
1474
+ id: a.number(),
1475
+ approvalStatus: Mt.nullable().optional(),
1476
+ reason: Dt,
1477
+ reports: a.array(a.unknown()),
1478
+ resolved: a.boolean().optional(),
1479
+ updatedAt: a.string().nullable(),
1480
+ createdAt: a.string(),
1481
+ related: Ie
1482
+ }), hi = a.object({
1483
+ pagination: Lt,
1484
+ result: a.array(gi)
1485
+ }), Si = a.object({
1486
+ id: a.number(),
1487
+ documentId: a.string(),
1488
+ name: a.string(),
1489
+ code: a.string(),
1490
+ description: a.string(),
1491
+ createdAt: a.string(),
1492
+ updatedAt: a.string(),
1493
+ publishedAt: a.string(),
1494
+ locale: a.string().nullable(),
1495
+ usersCount: a.number()
1496
+ }), bi = a.object({
1497
+ data: a.array(
1498
+ Si
1499
+ )
1500
+ }), Ei = a.object({
1501
+ data: a.object({
1502
+ id: a.number(),
1503
+ documentId: a.string(),
1504
+ firstname: a.string(),
1505
+ lastname: a.string(),
1506
+ username: a.string().nullable(),
1507
+ email: a.string(),
1508
+ isActive: a.boolean(),
1509
+ blocked: a.boolean(),
1510
+ preferedLanguage: a.string().nullable(),
1511
+ createdAt: a.string(),
1512
+ updatedAt: a.string(),
1513
+ publishedAt: a.string(),
1514
+ locale: a.null(),
1515
+ roles: a.array(
1516
+ a.object({
1517
+ id: a.number(),
1518
+ name: a.string(),
1519
+ description: a.string(),
1520
+ code: a.string()
1521
+ })
1522
+ )
1523
+ })
1524
+ }), A = "comments", Ai = wr.once((r) => ({
1525
+ config: {
1526
+ getKey() {
1527
+ return [A, "config"];
1528
+ },
1529
+ async query() {
1530
+ const e = await r.get(`/${A}/settings/config`);
1531
+ return fi.parseAsync(e.data);
1532
+ }
1533
+ },
1534
+ contentTypeBuilder: {
1535
+ single: {
1536
+ getKey(e, t) {
1537
+ return [A, "moderate", "content-type", t, e];
1538
+ },
1539
+ async query(e) {
1540
+ const t = await r.get(`/content-type-builder/content-types/${e}`);
1541
+ return mi.parseAsync(t.data).then((n) => n.data);
1542
+ }
1543
+ },
1544
+ all: {
1545
+ getKey() {
1546
+ return [A, "moderate", "content-types"];
1547
+ },
1548
+ async query() {
1549
+ const e = await r.get("/content-type-builder/content-types");
1550
+ return vi.parseAsync(e.data).then((t) => t.data);
1551
+ }
1552
+ }
1553
+ },
1554
+ roles: {
1555
+ getKey() {
1556
+ return [A, "moderate", "roles"];
1557
+ },
1558
+ async query() {
1559
+ const e = await r.get("/admin/roles");
1560
+ return bi.parseAsync(e.data).then((t) => t.data);
1561
+ }
1562
+ },
1563
+ user: {
1564
+ getKey() {
1565
+ return [A, "moderate", "user"];
1566
+ },
1567
+ async query() {
1568
+ const e = await r.get("/admin/users/me");
1569
+ return Ei.parseAsync(e.data).then((t) => t.data);
1570
+ }
1571
+ },
1572
+ comments: {
1573
+ findAll: {
1574
+ getKey(e) {
1575
+ return [A, "moderate", "all", e ? JSON.stringify(e) : void 0].filter(Boolean);
1576
+ },
1577
+ async query(e) {
1578
+ const t = await r.get(`/${A}/moderate/all?${nr.stringify(e, { encode: !1 })}`);
1579
+ return yi.parseAsync(t.data);
1580
+ }
1581
+ },
1582
+ findOne: {
1583
+ getKey(e, t) {
1584
+ return [A, "details", e?.toString(), t ? JSON.stringify(t) : void 0].filter(Boolean);
1585
+ },
1586
+ async query(e, t) {
1587
+ const n = wr.isEmpty(t) ? "" : `?${nr.stringify(t, { encode: !1 })}`, o = await r.get(`/${A}/moderate/single/${e}${n}`);
1588
+ return di.parseAsync(o.data);
1589
+ }
1590
+ },
1591
+ approve(e) {
1592
+ return r.put(`/${A}/moderate/single/${e}/approve`);
1593
+ },
1594
+ reject(e) {
1595
+ return r.put(`/${A}/moderate/single/${e}/reject`);
1596
+ },
1597
+ block(e) {
1598
+ return r.put(`/${A}/moderate/single/${e}/block`);
1599
+ },
1600
+ unblock(e) {
1601
+ return r.put(`/${A}/moderate/single/${e}/unblock`);
1602
+ },
1603
+ blockThread(e) {
1604
+ return r.put(`/${A}/moderate/thread/${e}/block`);
1605
+ },
1606
+ unBlockThread(e) {
1607
+ return r.put(`/${A}/moderate/thread/${e}/unblock`);
1608
+ },
1609
+ delete(e) {
1610
+ return r.del(`/${A}/moderate/single/${e}/delete`);
1611
+ },
1612
+ postComment({ id: e, content: t, author: n }) {
1613
+ return r.post(`/${A}/moderate/thread/${e}/postComment`, { content: t, author: n });
1614
+ },
1615
+ updateComment({ id: e, content: t }) {
1616
+ return r.put(`/${A}/moderate/single/${e}/update`, { content: t });
1617
+ }
1618
+ },
1619
+ reports: {
1620
+ findAll: {
1621
+ getKey(e) {
1622
+ return [A, "moderate", "reports", e ? JSON.stringify(e) : void 0].filter(Boolean);
1623
+ },
1624
+ async query(e) {
1625
+ const t = await r.get(`/${A}/moderate/reports${e ? `?${nr.stringify(e, { encode: !1 })}` : ""}`);
1626
+ return hi.parseAsync(t.data);
1627
+ }
1628
+ },
1629
+ resolve({ id: e, reportId: t }) {
1630
+ return r.put(`/${A}/moderate/single/${e}/report/${t}/resolve`);
1631
+ },
1632
+ resolveMultipleReports({ reportIds: e }) {
1633
+ return r.put(`/${A}/moderate/multiple/report/resolve`, { reportIds: e });
1634
+ },
1635
+ resolveCommentMultipleReports({ id: e, reportIds: t }) {
1636
+ return r.put(`/${A}/moderate/single/${e}/report/resolve`, { reportIds: t });
1637
+ },
1638
+ resolveAllAbuseReportsForComment(e) {
1639
+ return r.put(`/${A}/moderate/all/${e}/report/resolve`);
1640
+ },
1641
+ resolveAllAbuseReportsForThread(e) {
1642
+ return r.put(`/${A}/moderate/thread/${e}/report/resolve-thread`);
1643
+ }
1644
+ },
1645
+ settings: {
1646
+ update(e) {
1647
+ return r.put(`/${A}/settings/config`, e);
1648
+ },
1649
+ restore() {
1650
+ return r.del(`/${A}/settings/config`);
1651
+ },
1652
+ restart() {
1653
+ return r.post(`/${A}/settings/restart`);
1654
+ }
1655
+ }
1656
+ })), Oi = () => {
1657
+ const r = dn();
1658
+ return ut(() => Ai(r), [r]);
1659
+ }, Pi = yn(null), $i = ({ children: r }) => {
1660
+ const e = Oi(), { data: t } = fn({
1661
+ queryKey: e.user.getKey(),
1662
+ queryFn: e.user.query
1663
+ });
1664
+ return t ? /* @__PURE__ */ _(Pi.Provider, { value: t, children: r }) : null;
1665
+ };
1666
+ console.log("!!darkTheme", !!it);
1667
+ console.log("!!lightTheme", !!on);
1668
+ const wi = new pn({
1669
+ defaultOptions: {
1670
+ queries: {
1671
+ retry: !1,
1672
+ refetchOnWindowFocus: !1
1673
+ }
1674
+ }
1675
+ }), Vi = ({ children: r }) => /* @__PURE__ */ _(sn, { client: wi, children: /* @__PURE__ */ _(nn, { theme: { theme: it, themeName: "light" }, children: /* @__PURE__ */ _($i, { children: r }) }) }), zi = () => {
1676
+ const r = ut(
1677
+ () => ({
1678
+ access: ee.access,
1679
+ moderate: ee.moderate,
1680
+ accessReports: ee.reports,
1681
+ reviewReports: ee.reportsReview,
1682
+ settings: ee.settings,
1683
+ settingsChange: ee.settingsChange
1684
+ }),
1685
+ []
1686
+ ), {
1687
+ isLoading: e,
1688
+ allowedActions: {
1689
+ canCommentsModerate: t,
1690
+ canCommentsRead: n,
1691
+ canReportsRead: o,
1692
+ canSettingsChange: i,
1693
+ canSettingsRead: c,
1694
+ canReportsReview: l
1695
+ }
1696
+ } = mn(r);
1697
+ return {
1698
+ isLoadingForPermissions: e,
1699
+ canAccess: n || o || c,
1700
+ canModerate: t,
1701
+ canAccessReports: o,
1702
+ canReviewReports: l,
1703
+ canSettings: c,
1704
+ canSettingsChange: i
1705
+ };
1706
+ };
1707
+ var sr = { exports: {} }, b = {};
1708
+ /** @license React v16.13.1
1709
+ * react-is.production.min.js
1710
+ *
1711
+ * Copyright (c) Facebook, Inc. and its affiliates.
1712
+ *
1713
+ * This source code is licensed under the MIT license found in the
1714
+ * LICENSE file in the root directory of this source tree.
1715
+ */
1716
+ var ot;
1717
+ function Ri() {
1718
+ if (ot) return b;
1719
+ ot = 1;
1720
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, o = r ? Symbol.for("react.strict_mode") : 60108, i = r ? Symbol.for("react.profiler") : 60114, c = r ? Symbol.for("react.provider") : 60109, l = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, u = r ? Symbol.for("react.concurrent_mode") : 60111, p = r ? Symbol.for("react.forward_ref") : 60112, y = r ? Symbol.for("react.suspense") : 60113, m = r ? Symbol.for("react.suspense_list") : 60120, h = r ? Symbol.for("react.memo") : 60115, v = r ? Symbol.for("react.lazy") : 60116, P = r ? Symbol.for("react.block") : 60121, C = r ? Symbol.for("react.fundamental") : 60117, g = r ? Symbol.for("react.responder") : 60118, I = r ? Symbol.for("react.scope") : 60119;
1721
+ function O(s) {
1722
+ if (typeof s == "object" && s !== null) {
1723
+ var F = s.$$typeof;
1724
+ switch (F) {
1725
+ case e:
1726
+ switch (s = s.type, s) {
1727
+ case f:
1728
+ case u:
1729
+ case n:
1730
+ case i:
1731
+ case o:
1732
+ case y:
1733
+ return s;
1734
+ default:
1735
+ switch (s = s && s.$$typeof, s) {
1736
+ case l:
1737
+ case p:
1738
+ case v:
1739
+ case h:
1740
+ case c:
1741
+ return s;
1742
+ default:
1743
+ return F;
1744
+ }
1745
+ }
1746
+ case t:
1747
+ return F;
1748
+ }
1749
+ }
1750
+ }
1751
+ function $(s) {
1752
+ return O(s) === u;
1753
+ }
1754
+ return b.AsyncMode = f, b.ConcurrentMode = u, b.ContextConsumer = l, b.ContextProvider = c, b.Element = e, b.ForwardRef = p, b.Fragment = n, b.Lazy = v, b.Memo = h, b.Portal = t, b.Profiler = i, b.StrictMode = o, b.Suspense = y, b.isAsyncMode = function(s) {
1755
+ return $(s) || O(s) === f;
1756
+ }, b.isConcurrentMode = $, b.isContextConsumer = function(s) {
1757
+ return O(s) === l;
1758
+ }, b.isContextProvider = function(s) {
1759
+ return O(s) === c;
1760
+ }, b.isElement = function(s) {
1761
+ return typeof s == "object" && s !== null && s.$$typeof === e;
1762
+ }, b.isForwardRef = function(s) {
1763
+ return O(s) === p;
1764
+ }, b.isFragment = function(s) {
1765
+ return O(s) === n;
1766
+ }, b.isLazy = function(s) {
1767
+ return O(s) === v;
1768
+ }, b.isMemo = function(s) {
1769
+ return O(s) === h;
1770
+ }, b.isPortal = function(s) {
1771
+ return O(s) === t;
1772
+ }, b.isProfiler = function(s) {
1773
+ return O(s) === i;
1774
+ }, b.isStrictMode = function(s) {
1775
+ return O(s) === o;
1776
+ }, b.isSuspense = function(s) {
1777
+ return O(s) === y;
1778
+ }, b.isValidElementType = function(s) {
1779
+ return typeof s == "string" || typeof s == "function" || s === n || s === u || s === i || s === o || s === y || s === m || typeof s == "object" && s !== null && (s.$$typeof === v || s.$$typeof === h || s.$$typeof === c || s.$$typeof === l || s.$$typeof === p || s.$$typeof === C || s.$$typeof === g || s.$$typeof === I || s.$$typeof === P);
1780
+ }, b.typeOf = O, b;
1781
+ }
1782
+ var E = {};
1783
+ /** @license React v16.13.1
1784
+ * react-is.development.js
1785
+ *
1786
+ * Copyright (c) Facebook, Inc. and its affiliates.
1787
+ *
1788
+ * This source code is licensed under the MIT license found in the
1789
+ * LICENSE file in the root directory of this source tree.
1790
+ */
1791
+ var at;
1792
+ function Ci() {
1793
+ return at || (at = 1, process.env.NODE_ENV !== "production" && function() {
1794
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, o = r ? Symbol.for("react.strict_mode") : 60108, i = r ? Symbol.for("react.profiler") : 60114, c = r ? Symbol.for("react.provider") : 60109, l = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, u = r ? Symbol.for("react.concurrent_mode") : 60111, p = r ? Symbol.for("react.forward_ref") : 60112, y = r ? Symbol.for("react.suspense") : 60113, m = r ? Symbol.for("react.suspense_list") : 60120, h = r ? Symbol.for("react.memo") : 60115, v = r ? Symbol.for("react.lazy") : 60116, P = r ? Symbol.for("react.block") : 60121, C = r ? Symbol.for("react.fundamental") : 60117, g = r ? Symbol.for("react.responder") : 60118, I = r ? Symbol.for("react.scope") : 60119;
1795
+ function O(d) {
1796
+ return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1797
+ d === n || d === u || d === i || d === o || d === y || d === m || typeof d == "object" && d !== null && (d.$$typeof === v || d.$$typeof === h || d.$$typeof === c || d.$$typeof === l || d.$$typeof === p || d.$$typeof === C || d.$$typeof === g || d.$$typeof === I || d.$$typeof === P);
1798
+ }
1799
+ function $(d) {
1800
+ if (typeof d == "object" && d !== null) {
1801
+ var De = d.$$typeof;
1802
+ switch (De) {
1803
+ case e:
1804
+ var be = d.type;
1805
+ switch (be) {
1806
+ case f:
1807
+ case u:
1808
+ case n:
1809
+ case i:
1810
+ case o:
1811
+ case y:
1812
+ return be;
1813
+ default:
1814
+ var Pr = be && be.$$typeof;
1815
+ switch (Pr) {
1816
+ case l:
1817
+ case p:
1818
+ case v:
1819
+ case h:
1820
+ case c:
1821
+ return Pr;
1822
+ default:
1823
+ return De;
1824
+ }
1825
+ }
1826
+ case t:
1827
+ return De;
1828
+ }
1829
+ }
1830
+ }
1831
+ var s = f, F = u, B = l, M = c, W = e, k = p, K = n, N = v, x = h, G = t, Z = i, j = o, Gt = y, Ar = !1;
1832
+ function jt(d) {
1833
+ return Ar || (Ar = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Or(d) || $(d) === f;
1834
+ }
1835
+ function Or(d) {
1836
+ return $(d) === u;
1837
+ }
1838
+ function Vt(d) {
1839
+ return $(d) === l;
1840
+ }
1841
+ function zt(d) {
1842
+ return $(d) === c;
1843
+ }
1844
+ function Ht(d) {
1845
+ return typeof d == "object" && d !== null && d.$$typeof === e;
1846
+ }
1847
+ function Yt(d) {
1848
+ return $(d) === p;
1849
+ }
1850
+ function Kt(d) {
1851
+ return $(d) === n;
1852
+ }
1853
+ function Qt(d) {
1854
+ return $(d) === v;
1855
+ }
1856
+ function Jt(d) {
1857
+ return $(d) === h;
1858
+ }
1859
+ function Xt(d) {
1860
+ return $(d) === t;
1861
+ }
1862
+ function Zt(d) {
1863
+ return $(d) === i;
1864
+ }
1865
+ function en(d) {
1866
+ return $(d) === o;
1867
+ }
1868
+ function rn(d) {
1869
+ return $(d) === y;
1870
+ }
1871
+ E.AsyncMode = s, E.ConcurrentMode = F, E.ContextConsumer = B, E.ContextProvider = M, E.Element = W, E.ForwardRef = k, E.Fragment = K, E.Lazy = N, E.Memo = x, E.Portal = G, E.Profiler = Z, E.StrictMode = j, E.Suspense = Gt, E.isAsyncMode = jt, E.isConcurrentMode = Or, E.isContextConsumer = Vt, E.isContextProvider = zt, E.isElement = Ht, E.isForwardRef = Yt, E.isFragment = Kt, E.isLazy = Qt, E.isMemo = Jt, E.isPortal = Xt, E.isProfiler = Zt, E.isStrictMode = en, E.isSuspense = rn, E.isValidElementType = O, E.typeOf = $;
1872
+ }()), E;
1873
+ }
1874
+ process.env.NODE_ENV === "production" ? sr.exports = Ri() : sr.exports = Ci();
1875
+ var Ti = sr.exports, qt = Ti, _i = {
1876
+ $$typeof: !0,
1877
+ render: !0,
1878
+ defaultProps: !0,
1879
+ displayName: !0,
1880
+ propTypes: !0
1881
+ }, Ii = {
1882
+ $$typeof: !0,
1883
+ compare: !0,
1884
+ defaultProps: !0,
1885
+ displayName: !0,
1886
+ propTypes: !0,
1887
+ type: !0
1888
+ }, Wt = {};
1889
+ Wt[qt.ForwardRef] = _i;
1890
+ Wt[qt.Memo] = Ii;
1891
+ function Ni(r, e, t) {
1892
+ if (t === void 0 && (t = Error), !r)
1893
+ throw new t(e);
1894
+ }
1895
+ var xi = function(r) {
1896
+ process.env.NODE_ENV !== "production" && console.error(r);
1897
+ }, Fi = function(r) {
1898
+ process.env.NODE_ENV !== "production" && console.warn(r);
1899
+ }, Mi = {
1900
+ formats: {},
1901
+ messages: {},
1902
+ timeZone: void 0,
1903
+ defaultLocale: "en",
1904
+ defaultFormats: {},
1905
+ fallbackOnEmptyString: !0,
1906
+ onError: xi,
1907
+ onWarn: Fi
1908
+ };
1909
+ function Di(r) {
1910
+ Ni(r, "[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.");
1911
+ }
1912
+ Rr(Rr({}, Mi), { textComponent: ae.Fragment });
1913
+ var br = typeof window < "u" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = ae.createContext(null)) : ae.createContext(null);
1914
+ br.Consumer;
1915
+ br.Provider;
1916
+ var Li = br;
1917
+ function Er() {
1918
+ var r = ae.useContext(Li);
1919
+ return Di(r), r;
1920
+ }
1921
+ var pr;
1922
+ (function(r) {
1923
+ r.formatDate = "FormattedDate", r.formatTime = "FormattedTime", r.formatNumber = "FormattedNumber", r.formatList = "FormattedList", r.formatDisplayName = "FormattedDisplayName";
1924
+ })(pr || (pr = {}));
1925
+ var yr;
1926
+ (function(r) {
1927
+ r.formatDate = "FormattedDateParts", r.formatTime = "FormattedTimeParts", r.formatNumber = "FormattedNumberParts", r.formatList = "FormattedListParts";
1928
+ })(yr || (yr = {}));
1929
+ function kt(r) {
1930
+ var e = function(t) {
1931
+ var n = Er(), o = t.value, i = t.children, c = lt(t, ["value", "children"]), l = typeof o == "string" ? new Date(o || 0) : o, f = r === "formatDate" ? n.formatDateToParts(l, c) : n.formatTimeToParts(l, c);
1932
+ return i(f);
1933
+ };
1934
+ return e.displayName = yr[r], e;
1935
+ }
1936
+ function Se(r) {
1937
+ var e = function(t) {
1938
+ var n = Er(), o = t.value, i = t.children, c = lt(
1939
+ t,
1940
+ ["value", "children"]
1941
+ ), l = n[r](o, c);
1942
+ if (typeof i == "function")
1943
+ return i(l);
1944
+ var f = n.textComponent || ae.Fragment;
1945
+ return ae.createElement(f, null, l);
1946
+ };
1947
+ return e.displayName = pr[r], e;
1948
+ }
1949
+ Se("formatDate");
1950
+ Se("formatTime");
1951
+ Se("formatNumber");
1952
+ Se("formatList");
1953
+ Se("formatDisplayName");
1954
+ kt("formatDate");
1955
+ kt("formatTime");
1956
+ const Hi = (r, e = "", t = !0) => {
1957
+ const { formatMessage: n } = Er();
1958
+ let o = "";
1959
+ return typeof r == "string" ? o = r : o = r?.id.toString() || o, n(
1960
+ {
1961
+ id: `${t ? an : "app.components"}.${o}`,
1962
+ defaultMessage: e
1963
+ },
1964
+ typeof r == "string" ? void 0 : r?.props
1965
+ );
1966
+ }, Yi = ({
1967
+ title: r,
1968
+ onConfirm: e,
1969
+ Trigger: t,
1970
+ labelConfirm: n,
1971
+ iconConfirm: o,
1972
+ labelCancel: i,
1973
+ children: c
1974
+ }) => {
1975
+ const [l, f] = Tr(!1), [u, p] = Tr(!1), y = () => f((h) => !h), m = async () => {
1976
+ p(!0), await e(), p(!1), y();
1977
+ };
1978
+ return /* @__PURE__ */ Ee(V.Root, { open: l, children: [
1979
+ /* @__PURE__ */ _(V.Trigger, { children: /* @__PURE__ */ _(t, { onClick: y }) }),
1980
+ /* @__PURE__ */ Ee(V.Content, { children: [
1981
+ /* @__PURE__ */ _(V.Header, { children: r }),
1982
+ /* @__PURE__ */ _(V.Body, { children: /* @__PURE__ */ Ee(ln, { justifyContent: "center", direction: "column", children: [
1983
+ /* @__PURE__ */ _(un, { fill: "danger500", stroke: "danger500", height: "24", width: "24" }),
1984
+ /* @__PURE__ */ _(cn, { id: "confirm-description", children: c })
1985
+ ] }) }),
1986
+ /* @__PURE__ */ Ee(V.Footer, { children: [
1987
+ /* @__PURE__ */ _(V.Cancel, { children: /* @__PURE__ */ _(
1988
+ Cr,
1989
+ {
1990
+ onClick: y,
1991
+ disabled: u,
1992
+ variant: "tertiary",
1993
+ children: i || "Cancel"
1994
+ }
1995
+ ) }),
1996
+ /* @__PURE__ */ _(V.Action, { children: /* @__PURE__ */ _(
1997
+ Cr,
1998
+ {
1999
+ onClick: m,
2000
+ variant: "danger-light",
2001
+ loading: u,
2002
+ disabled: u,
2003
+ startIcon: o,
2004
+ children: n
2005
+ }
2006
+ ) })
2007
+ ] })
2008
+ ] })
2009
+ ] });
2010
+ };
2011
+ export {
2012
+ z as C,
2013
+ ji as R,
2014
+ Pi as U,
2015
+ zi as a,
2016
+ Er as b,
2017
+ ci as c,
2018
+ Yi as d,
2019
+ Vi as e,
2020
+ Hi as g,
2021
+ Oi as u
2022
+ };