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