lr-chatbot 0.48.101 → 0.48.103
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/chunks/chatbot-BglPHykB.js +70 -0
- package/chunks/chatbot-BglPHykB.js.map +1 -0
- package/chunks/chatbot-C6GzNOnX.js +70 -0
- package/chunks/chatbot-C6GzNOnX.js.map +1 -0
- package/chunks/deepChat-Cvoxnpjn.js +12874 -0
- package/chunks/deepChat-Cvoxnpjn.js.map +1 -0
- package/chunks/lib-BFePTs6v.js +1325 -0
- package/chunks/lib-BFePTs6v.js.map +1 -0
- package/custom-elements.json +1 -1
- package/index.js +20032 -23436
- package/index.js.map +1 -1
- package/package.json +4 -5
|
@@ -0,0 +1,1325 @@
|
|
|
1
|
+
import { t as e } from "../index.js";
|
|
2
|
+
//#region ../../../../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
+
t.exports = TypeError;
|
|
5
|
+
})), n = /* @__PURE__ */ e(((e, t) => {
|
|
6
|
+
t.exports = {};
|
|
7
|
+
})), r = /* @__PURE__ */ e(((e, t) => {
|
|
8
|
+
var r = typeof Map == "function" && Map.prototype, i = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, a = r && i && typeof i.get == "function" ? i.get : null, o = r && Map.prototype.forEach, s = typeof Set == "function" && Set.prototype, c = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, l = s && c && typeof c.get == "function" ? c.get : null, u = s && Set.prototype.forEach, d = typeof WeakMap == "function" && WeakMap.prototype ? WeakMap.prototype.has : null, f = typeof WeakSet == "function" && WeakSet.prototype ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype ? WeakRef.prototype.deref : null, m = Boolean.prototype.valueOf, h = Object.prototype.toString, g = Function.prototype.toString, _ = String.prototype.match, v = String.prototype.slice, y = String.prototype.replace, b = String.prototype.toUpperCase, x = String.prototype.toLowerCase, S = RegExp.prototype.test, C = Array.prototype.concat, w = Array.prototype.join, T = Array.prototype.slice, E = Math.floor, D = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, O = Object.getOwnPropertySymbols, k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, A = typeof Symbol == "function" && typeof Symbol.iterator == "object", j = typeof Symbol == "function" && Symbol.toStringTag ? Symbol.toStringTag : null, M = Object.prototype.propertyIsEnumerable, N = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
9
|
+
return e.__proto__;
|
|
10
|
+
} : null);
|
|
11
|
+
function P(e, t) {
|
|
12
|
+
if (e === Infinity || e === -Infinity || e !== e || e && e > -1e3 && e < 1e3 || S.call(/e/, t)) return t;
|
|
13
|
+
var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
14
|
+
if (typeof e == "number") {
|
|
15
|
+
var r = e < 0 ? -E(-e) : E(e);
|
|
16
|
+
if (r !== e) {
|
|
17
|
+
var i = String(r), a = v.call(t, i.length + 1);
|
|
18
|
+
return y.call(i, n, "$&_") + "." + y.call(y.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return y.call(t, n, "$&_");
|
|
22
|
+
}
|
|
23
|
+
var F = n(), I = F.custom, L = q(I) ? I : null, R = {
|
|
24
|
+
__proto__: null,
|
|
25
|
+
double: "\"",
|
|
26
|
+
single: "'"
|
|
27
|
+
}, z = {
|
|
28
|
+
__proto__: null,
|
|
29
|
+
double: /(["\\])/g,
|
|
30
|
+
single: /(['\\])/g
|
|
31
|
+
};
|
|
32
|
+
t.exports = function e(t, n, r, i) {
|
|
33
|
+
var s = n || {};
|
|
34
|
+
if (J(s, "quoteStyle") && !J(R, s.quoteStyle)) throw TypeError("option \"quoteStyle\" must be \"single\" or \"double\"");
|
|
35
|
+
if (J(s, "maxStringLength") && (typeof s.maxStringLength == "number" ? s.maxStringLength < 0 && s.maxStringLength !== Infinity : s.maxStringLength !== null)) throw TypeError("option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`");
|
|
36
|
+
var c = !J(s, "customInspect") || s.customInspect;
|
|
37
|
+
if (typeof c != "boolean" && c !== "symbol") throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
38
|
+
if (J(s, "indent") && s.indent !== null && s.indent !== " " && !(parseInt(s.indent, 10) === s.indent && s.indent > 0)) throw TypeError("option \"indent\" must be \"\\t\", an integer > 0, or `null`");
|
|
39
|
+
if (J(s, "numericSeparator") && typeof s.numericSeparator != "boolean") throw TypeError("option \"numericSeparator\", if provided, must be `true` or `false`");
|
|
40
|
+
var d = s.numericSeparator;
|
|
41
|
+
if (t === void 0) return "undefined";
|
|
42
|
+
if (t === null) return "null";
|
|
43
|
+
if (typeof t == "boolean") return t ? "true" : "false";
|
|
44
|
+
if (typeof t == "string") return ue(t, s);
|
|
45
|
+
if (typeof t == "number") {
|
|
46
|
+
if (t === 0) return Infinity / t > 0 ? "0" : "-0";
|
|
47
|
+
var f = String(t);
|
|
48
|
+
return d ? P(t, f) : f;
|
|
49
|
+
}
|
|
50
|
+
if (typeof t == "bigint") {
|
|
51
|
+
var p = String(t) + "n";
|
|
52
|
+
return d ? P(t, p) : p;
|
|
53
|
+
}
|
|
54
|
+
var h = s.depth === void 0 ? 5 : s.depth;
|
|
55
|
+
if (r === void 0 && (r = 0), r >= h && h > 0 && typeof t == "object") return U(t) ? "[Array]" : "[Object]";
|
|
56
|
+
var g = he(s, r);
|
|
57
|
+
if (i === void 0) i = [];
|
|
58
|
+
else if (ae(i, t) >= 0) return "[Circular]";
|
|
59
|
+
function _(t, n, a) {
|
|
60
|
+
if (n && (i = T.call(i), i.push(n)), a) {
|
|
61
|
+
var o = { depth: s.depth };
|
|
62
|
+
return J(s, "quoteStyle") && (o.quoteStyle = s.quoteStyle), e(t, o, r + 1, i);
|
|
63
|
+
}
|
|
64
|
+
return e(t, s, r + 1, i);
|
|
65
|
+
}
|
|
66
|
+
if (typeof t == "function" && !G(t)) {
|
|
67
|
+
var b = X(t), S = _e(t, _);
|
|
68
|
+
return "[Function" + (b ? ": " + b : " (anonymous)") + "]" + (S.length > 0 ? " { " + w.call(S, ", ") + " }" : "");
|
|
69
|
+
}
|
|
70
|
+
if (q(t)) {
|
|
71
|
+
var E = A ? y.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : k.call(t);
|
|
72
|
+
return typeof t == "object" && !A ? $(E) : E;
|
|
73
|
+
}
|
|
74
|
+
if (le(t)) {
|
|
75
|
+
for (var O = "<" + x.call(String(t.nodeName)), I = t.attributes || [], z = 0; z < I.length; z++) O += " " + I[z].name + "=" + B(V(I[z].value), "double", s);
|
|
76
|
+
return O += ">", t.childNodes && t.childNodes.length && (O += "..."), O += "</" + x.call(String(t.nodeName)) + ">", O;
|
|
77
|
+
}
|
|
78
|
+
if (U(t)) {
|
|
79
|
+
if (t.length === 0) return "[]";
|
|
80
|
+
var H = _e(t, _);
|
|
81
|
+
return g && !me(H) ? "[" + ge(H, g) + "]" : "[ " + w.call(H, ", ") + " ]";
|
|
82
|
+
}
|
|
83
|
+
if (ee(t)) {
|
|
84
|
+
var ie = _e(t, _);
|
|
85
|
+
return !("cause" in Error.prototype) && "cause" in t && !M.call(t, "cause") ? "{ [" + String(t) + "] " + w.call(C.call("[cause]: " + _(t.cause), ie), ", ") + " }" : ie.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + w.call(ie, ", ") + " }";
|
|
86
|
+
}
|
|
87
|
+
if (typeof t == "object" && c) {
|
|
88
|
+
if (L && typeof t[L] == "function" && F) return F(t, { depth: h - r });
|
|
89
|
+
if (c !== "symbol" && typeof t.inspect == "function") return t.inspect();
|
|
90
|
+
}
|
|
91
|
+
if (Z(t)) {
|
|
92
|
+
var de = [];
|
|
93
|
+
return o && o.call(t, function(e, n) {
|
|
94
|
+
de.push(_(n, t, !0) + " => " + _(e, t));
|
|
95
|
+
}), pe("Map", a.call(t), de, g);
|
|
96
|
+
}
|
|
97
|
+
if (Q(t)) {
|
|
98
|
+
var ve = [];
|
|
99
|
+
return u && u.call(t, function(e) {
|
|
100
|
+
ve.push(_(e, t));
|
|
101
|
+
}), pe("Set", l.call(t), ve, g);
|
|
102
|
+
}
|
|
103
|
+
if (oe(t)) return fe("WeakMap");
|
|
104
|
+
if (ce(t)) return fe("WeakSet");
|
|
105
|
+
if (se(t)) return fe("WeakRef");
|
|
106
|
+
if (ne(t)) return $(_(Number(t)));
|
|
107
|
+
if (re(t)) return $(_(D.call(t)));
|
|
108
|
+
if (K(t)) return $(m.call(t));
|
|
109
|
+
if (te(t)) return $(_(String(t)));
|
|
110
|
+
if (typeof window < "u" && t === window) return "{ [object Window] }";
|
|
111
|
+
if (typeof globalThis < "u" && t === globalThis || typeof global < "u" && t === global) return "{ [object globalThis] }";
|
|
112
|
+
if (!W(t) && !G(t)) {
|
|
113
|
+
var ye = _e(t, _), be = N ? N(t) === Object.prototype : t instanceof Object || t.constructor === Object, xe = t instanceof Object ? "" : "null prototype", Se = !be && j && Object(t) === t && j in t ? v.call(Y(t), 8, -1) : xe ? "Object" : "", Ce = (be || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "") + (Se || xe ? "[" + w.call(C.call([], Se || [], xe || []), ": ") + "] " : "");
|
|
114
|
+
return ye.length === 0 ? Ce + "{}" : g ? Ce + "{" + ge(ye, g) + "}" : Ce + "{ " + w.call(ye, ", ") + " }";
|
|
115
|
+
}
|
|
116
|
+
return String(t);
|
|
117
|
+
};
|
|
118
|
+
function B(e, t, n) {
|
|
119
|
+
var r = R[n.quoteStyle || t];
|
|
120
|
+
return r + e + r;
|
|
121
|
+
}
|
|
122
|
+
function V(e) {
|
|
123
|
+
return y.call(String(e), /"/g, """);
|
|
124
|
+
}
|
|
125
|
+
function H(e) {
|
|
126
|
+
return !j || !(typeof e == "object" && (j in e || e[j] !== void 0));
|
|
127
|
+
}
|
|
128
|
+
function U(e) {
|
|
129
|
+
return Y(e) === "[object Array]" && H(e);
|
|
130
|
+
}
|
|
131
|
+
function W(e) {
|
|
132
|
+
return Y(e) === "[object Date]" && H(e);
|
|
133
|
+
}
|
|
134
|
+
function G(e) {
|
|
135
|
+
return Y(e) === "[object RegExp]" && H(e);
|
|
136
|
+
}
|
|
137
|
+
function ee(e) {
|
|
138
|
+
return Y(e) === "[object Error]" && H(e);
|
|
139
|
+
}
|
|
140
|
+
function te(e) {
|
|
141
|
+
return Y(e) === "[object String]" && H(e);
|
|
142
|
+
}
|
|
143
|
+
function ne(e) {
|
|
144
|
+
return Y(e) === "[object Number]" && H(e);
|
|
145
|
+
}
|
|
146
|
+
function K(e) {
|
|
147
|
+
return Y(e) === "[object Boolean]" && H(e);
|
|
148
|
+
}
|
|
149
|
+
function q(e) {
|
|
150
|
+
if (A) return e && typeof e == "object" && e instanceof Symbol;
|
|
151
|
+
if (typeof e == "symbol") return !0;
|
|
152
|
+
if (!e || typeof e != "object" || !k) return !1;
|
|
153
|
+
try {
|
|
154
|
+
return k.call(e), !0;
|
|
155
|
+
} catch {}
|
|
156
|
+
return !1;
|
|
157
|
+
}
|
|
158
|
+
function re(e) {
|
|
159
|
+
if (!e || typeof e != "object" || !D) return !1;
|
|
160
|
+
try {
|
|
161
|
+
return D.call(e), !0;
|
|
162
|
+
} catch {}
|
|
163
|
+
return !1;
|
|
164
|
+
}
|
|
165
|
+
var ie = Object.prototype.hasOwnProperty || function(e) {
|
|
166
|
+
return e in this;
|
|
167
|
+
};
|
|
168
|
+
function J(e, t) {
|
|
169
|
+
return ie.call(e, t);
|
|
170
|
+
}
|
|
171
|
+
function Y(e) {
|
|
172
|
+
return h.call(e);
|
|
173
|
+
}
|
|
174
|
+
function X(e) {
|
|
175
|
+
if (e.name) return e.name;
|
|
176
|
+
var t = _.call(g.call(e), /^function\s*([\w$]+)/);
|
|
177
|
+
return t ? t[1] : null;
|
|
178
|
+
}
|
|
179
|
+
function ae(e, t) {
|
|
180
|
+
if (e.indexOf) return e.indexOf(t);
|
|
181
|
+
for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
|
|
182
|
+
return -1;
|
|
183
|
+
}
|
|
184
|
+
function Z(e) {
|
|
185
|
+
if (!a || !e || typeof e != "object") return !1;
|
|
186
|
+
try {
|
|
187
|
+
a.call(e);
|
|
188
|
+
try {
|
|
189
|
+
l.call(e);
|
|
190
|
+
} catch {
|
|
191
|
+
return !0;
|
|
192
|
+
}
|
|
193
|
+
return e instanceof Map;
|
|
194
|
+
} catch {}
|
|
195
|
+
return !1;
|
|
196
|
+
}
|
|
197
|
+
function oe(e) {
|
|
198
|
+
if (!d || !e || typeof e != "object") return !1;
|
|
199
|
+
try {
|
|
200
|
+
d.call(e, d);
|
|
201
|
+
try {
|
|
202
|
+
f.call(e, f);
|
|
203
|
+
} catch {
|
|
204
|
+
return !0;
|
|
205
|
+
}
|
|
206
|
+
return e instanceof WeakMap;
|
|
207
|
+
} catch {}
|
|
208
|
+
return !1;
|
|
209
|
+
}
|
|
210
|
+
function se(e) {
|
|
211
|
+
if (!p || !e || typeof e != "object") return !1;
|
|
212
|
+
try {
|
|
213
|
+
return p.call(e), !0;
|
|
214
|
+
} catch {}
|
|
215
|
+
return !1;
|
|
216
|
+
}
|
|
217
|
+
function Q(e) {
|
|
218
|
+
if (!l || !e || typeof e != "object") return !1;
|
|
219
|
+
try {
|
|
220
|
+
l.call(e);
|
|
221
|
+
try {
|
|
222
|
+
a.call(e);
|
|
223
|
+
} catch {
|
|
224
|
+
return !0;
|
|
225
|
+
}
|
|
226
|
+
return e instanceof Set;
|
|
227
|
+
} catch {}
|
|
228
|
+
return !1;
|
|
229
|
+
}
|
|
230
|
+
function ce(e) {
|
|
231
|
+
if (!f || !e || typeof e != "object") return !1;
|
|
232
|
+
try {
|
|
233
|
+
f.call(e, f);
|
|
234
|
+
try {
|
|
235
|
+
d.call(e, d);
|
|
236
|
+
} catch {
|
|
237
|
+
return !0;
|
|
238
|
+
}
|
|
239
|
+
return e instanceof WeakSet;
|
|
240
|
+
} catch {}
|
|
241
|
+
return !1;
|
|
242
|
+
}
|
|
243
|
+
function le(e) {
|
|
244
|
+
return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement || typeof e.nodeName == "string" && typeof e.getAttribute == "function";
|
|
245
|
+
}
|
|
246
|
+
function ue(e, t) {
|
|
247
|
+
if (e.length > t.maxStringLength) {
|
|
248
|
+
var n = e.length - t.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
249
|
+
return ue(v.call(e, 0, t.maxStringLength), t) + r;
|
|
250
|
+
}
|
|
251
|
+
var i = z[t.quoteStyle || "single"];
|
|
252
|
+
return i.lastIndex = 0, B(y.call(y.call(e, i, "\\$1"), /[\x00-\x1f]/g, de), "single", t);
|
|
253
|
+
}
|
|
254
|
+
function de(e) {
|
|
255
|
+
var t = e.charCodeAt(0), n = {
|
|
256
|
+
8: "b",
|
|
257
|
+
9: "t",
|
|
258
|
+
10: "n",
|
|
259
|
+
12: "f",
|
|
260
|
+
13: "r"
|
|
261
|
+
}[t];
|
|
262
|
+
return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") + b.call(t.toString(16));
|
|
263
|
+
}
|
|
264
|
+
function $(e) {
|
|
265
|
+
return "Object(" + e + ")";
|
|
266
|
+
}
|
|
267
|
+
function fe(e) {
|
|
268
|
+
return e + " { ? }";
|
|
269
|
+
}
|
|
270
|
+
function pe(e, t, n, r) {
|
|
271
|
+
var i = r ? ge(n, r) : w.call(n, ", ");
|
|
272
|
+
return e + " (" + t + ") {" + i + "}";
|
|
273
|
+
}
|
|
274
|
+
function me(e) {
|
|
275
|
+
for (var t = 0; t < e.length; t++) if (ae(e[t], "\n") >= 0) return !1;
|
|
276
|
+
return !0;
|
|
277
|
+
}
|
|
278
|
+
function he(e, t) {
|
|
279
|
+
var n;
|
|
280
|
+
if (e.indent === " ") n = " ";
|
|
281
|
+
else if (typeof e.indent == "number" && e.indent > 0) n = w.call(Array(e.indent + 1), " ");
|
|
282
|
+
else return null;
|
|
283
|
+
return {
|
|
284
|
+
base: n,
|
|
285
|
+
prev: w.call(Array(t + 1), n)
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
function ge(e, t) {
|
|
289
|
+
if (e.length === 0) return "";
|
|
290
|
+
var n = "\n" + t.prev + t.base;
|
|
291
|
+
return n + w.call(e, "," + n) + "\n" + t.prev;
|
|
292
|
+
}
|
|
293
|
+
function _e(e, t) {
|
|
294
|
+
var n = U(e), r = [];
|
|
295
|
+
if (n) {
|
|
296
|
+
r.length = e.length;
|
|
297
|
+
for (var i = 0; i < e.length; i++) r[i] = J(e, i) ? t(e[i], e) : "";
|
|
298
|
+
}
|
|
299
|
+
var a = typeof O == "function" ? O(e) : [], o;
|
|
300
|
+
if (A) {
|
|
301
|
+
o = {};
|
|
302
|
+
for (var s = 0; s < a.length; s++) o["$" + a[s]] = a[s];
|
|
303
|
+
}
|
|
304
|
+
for (var c in e) J(e, c) && (n && String(Number(c)) === c && c < e.length || A && o["$" + c] instanceof Symbol || (S.call(/[^\w$]/, c) ? r.push(t(c, e) + ": " + t(e[c], e)) : r.push(c + ": " + t(e[c], e))));
|
|
305
|
+
if (typeof O == "function") for (var l = 0; l < a.length; l++) M.call(e, a[l]) && r.push("[" + t(a[l]) + "]: " + t(e[a[l]], e));
|
|
306
|
+
return r;
|
|
307
|
+
}
|
|
308
|
+
})), i = /* @__PURE__ */ e(((e, n) => {
|
|
309
|
+
var i = r(), a = t(), o = function(e, t, n) {
|
|
310
|
+
for (var r = e, i; (i = r.next) != null; r = i) if (i.key === t) return r.next = i.next, n || (i.next = e.next, e.next = i), i;
|
|
311
|
+
}, s = function(e, t) {
|
|
312
|
+
if (e) {
|
|
313
|
+
var n = o(e, t);
|
|
314
|
+
return n && n.value;
|
|
315
|
+
}
|
|
316
|
+
}, c = function(e, t, n) {
|
|
317
|
+
var r = o(e, t);
|
|
318
|
+
r ? r.value = n : e.next = {
|
|
319
|
+
key: t,
|
|
320
|
+
next: e.next,
|
|
321
|
+
value: n
|
|
322
|
+
};
|
|
323
|
+
}, l = function(e, t) {
|
|
324
|
+
return e ? !!o(e, t) : !1;
|
|
325
|
+
}, u = function(e, t) {
|
|
326
|
+
if (e) return o(e, t, !0);
|
|
327
|
+
};
|
|
328
|
+
n.exports = function() {
|
|
329
|
+
var e, t = {
|
|
330
|
+
assert: function(e) {
|
|
331
|
+
if (!t.has(e)) throw new a("Side channel does not contain " + i(e));
|
|
332
|
+
},
|
|
333
|
+
delete: function(t) {
|
|
334
|
+
var n = u(e, t);
|
|
335
|
+
return n && e && !e.next && (e = void 0), !!n;
|
|
336
|
+
},
|
|
337
|
+
get: function(t) {
|
|
338
|
+
return s(e, t);
|
|
339
|
+
},
|
|
340
|
+
has: function(t) {
|
|
341
|
+
return l(e, t);
|
|
342
|
+
},
|
|
343
|
+
set: function(t, n) {
|
|
344
|
+
e ||= { next: void 0 }, c(e, t, n);
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
return t;
|
|
348
|
+
};
|
|
349
|
+
})), a = /* @__PURE__ */ e(((e, t) => {
|
|
350
|
+
t.exports = Object;
|
|
351
|
+
})), o = /* @__PURE__ */ e(((e, t) => {
|
|
352
|
+
t.exports = Error;
|
|
353
|
+
})), s = /* @__PURE__ */ e(((e, t) => {
|
|
354
|
+
t.exports = EvalError;
|
|
355
|
+
})), c = /* @__PURE__ */ e(((e, t) => {
|
|
356
|
+
t.exports = RangeError;
|
|
357
|
+
})), l = /* @__PURE__ */ e(((e, t) => {
|
|
358
|
+
t.exports = ReferenceError;
|
|
359
|
+
})), u = /* @__PURE__ */ e(((e, t) => {
|
|
360
|
+
t.exports = SyntaxError;
|
|
361
|
+
})), d = /* @__PURE__ */ e(((e, t) => {
|
|
362
|
+
t.exports = URIError;
|
|
363
|
+
})), f = /* @__PURE__ */ e(((e, t) => {
|
|
364
|
+
t.exports = Math.abs;
|
|
365
|
+
})), p = /* @__PURE__ */ e(((e, t) => {
|
|
366
|
+
t.exports = Math.floor;
|
|
367
|
+
})), m = /* @__PURE__ */ e(((e, t) => {
|
|
368
|
+
t.exports = Math.max;
|
|
369
|
+
})), h = /* @__PURE__ */ e(((e, t) => {
|
|
370
|
+
t.exports = Math.min;
|
|
371
|
+
})), g = /* @__PURE__ */ e(((e, t) => {
|
|
372
|
+
t.exports = Math.pow;
|
|
373
|
+
})), _ = /* @__PURE__ */ e(((e, t) => {
|
|
374
|
+
t.exports = Math.round;
|
|
375
|
+
})), v = /* @__PURE__ */ e(((e, t) => {
|
|
376
|
+
t.exports = Number.isNaN || function(e) {
|
|
377
|
+
return e !== e;
|
|
378
|
+
};
|
|
379
|
+
})), y = /* @__PURE__ */ e(((e, t) => {
|
|
380
|
+
var n = v();
|
|
381
|
+
t.exports = function(e) {
|
|
382
|
+
return n(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
383
|
+
};
|
|
384
|
+
})), b = /* @__PURE__ */ e(((e, t) => {
|
|
385
|
+
t.exports = Object.getOwnPropertyDescriptor;
|
|
386
|
+
})), x = /* @__PURE__ */ e(((e, t) => {
|
|
387
|
+
var n = b();
|
|
388
|
+
if (n) try {
|
|
389
|
+
n([], "length");
|
|
390
|
+
} catch {
|
|
391
|
+
n = null;
|
|
392
|
+
}
|
|
393
|
+
t.exports = n;
|
|
394
|
+
})), S = /* @__PURE__ */ e(((e, t) => {
|
|
395
|
+
var n = Object.defineProperty || !1;
|
|
396
|
+
if (n) try {
|
|
397
|
+
n({}, "a", { value: 1 });
|
|
398
|
+
} catch {
|
|
399
|
+
n = !1;
|
|
400
|
+
}
|
|
401
|
+
t.exports = n;
|
|
402
|
+
})), C = /* @__PURE__ */ e(((e, t) => {
|
|
403
|
+
t.exports = function() {
|
|
404
|
+
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1;
|
|
405
|
+
if (typeof Symbol.iterator == "symbol") return !0;
|
|
406
|
+
var e = {}, t = Symbol("test"), n = Object(t);
|
|
407
|
+
if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]") return !1;
|
|
408
|
+
var r = 42;
|
|
409
|
+
for (var i in e[t] = r, e) return !1;
|
|
410
|
+
if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0) return !1;
|
|
411
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
412
|
+
if (a.length !== 1 || a[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t)) return !1;
|
|
413
|
+
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
414
|
+
var o = Object.getOwnPropertyDescriptor(e, t);
|
|
415
|
+
if (o.value !== r || o.enumerable !== !0) return !1;
|
|
416
|
+
}
|
|
417
|
+
return !0;
|
|
418
|
+
};
|
|
419
|
+
})), w = /* @__PURE__ */ e(((e, t) => {
|
|
420
|
+
var n = typeof Symbol < "u" && Symbol, r = C();
|
|
421
|
+
t.exports = function() {
|
|
422
|
+
return typeof n != "function" || typeof Symbol != "function" || typeof n("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : r();
|
|
423
|
+
};
|
|
424
|
+
})), T = /* @__PURE__ */ e(((e, t) => {
|
|
425
|
+
t.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
426
|
+
})), E = /* @__PURE__ */ e(((e, t) => {
|
|
427
|
+
t.exports = a().getPrototypeOf || null;
|
|
428
|
+
})), D = /* @__PURE__ */ e(((e, t) => {
|
|
429
|
+
var n = Object.prototype.toString, r = Math.max, i = "[object Function]", a = function(e, t) {
|
|
430
|
+
for (var n = [], r = 0; r < e.length; r += 1) n[r] = e[r];
|
|
431
|
+
for (var i = 0; i < t.length; i += 1) n[i + e.length] = t[i];
|
|
432
|
+
return n;
|
|
433
|
+
}, o = function(e, t) {
|
|
434
|
+
for (var n = [], r = t || 0, i = 0; r < e.length; r += 1, i += 1) n[i] = e[r];
|
|
435
|
+
return n;
|
|
436
|
+
}, s = function(e, t) {
|
|
437
|
+
for (var n = "", r = 0; r < e.length; r += 1) n += e[r], r + 1 < e.length && (n += t);
|
|
438
|
+
return n;
|
|
439
|
+
};
|
|
440
|
+
t.exports = function(e) {
|
|
441
|
+
var t = this;
|
|
442
|
+
if (typeof t != "function" || n.apply(t) !== i) throw TypeError("Function.prototype.bind called on incompatible " + t);
|
|
443
|
+
for (var c = o(arguments, 1), l, u = function() {
|
|
444
|
+
if (this instanceof l) {
|
|
445
|
+
var n = t.apply(this, a(c, arguments));
|
|
446
|
+
return Object(n) === n ? n : this;
|
|
447
|
+
}
|
|
448
|
+
return t.apply(e, a(c, arguments));
|
|
449
|
+
}, d = r(0, t.length - c.length), f = [], p = 0; p < d; p++) f[p] = "$" + p;
|
|
450
|
+
if (l = Function("binder", "return function (" + s(f, ",") + "){ return binder.apply(this,arguments); }")(u), t.prototype) {
|
|
451
|
+
var m = function() {};
|
|
452
|
+
m.prototype = t.prototype, l.prototype = new m(), m.prototype = null;
|
|
453
|
+
}
|
|
454
|
+
return l;
|
|
455
|
+
};
|
|
456
|
+
})), O = /* @__PURE__ */ e(((e, t) => {
|
|
457
|
+
var n = D();
|
|
458
|
+
t.exports = Function.prototype.bind || n;
|
|
459
|
+
})), k = /* @__PURE__ */ e(((e, t) => {
|
|
460
|
+
t.exports = Function.prototype.call;
|
|
461
|
+
})), A = /* @__PURE__ */ e(((e, t) => {
|
|
462
|
+
t.exports = Function.prototype.apply;
|
|
463
|
+
})), j = /* @__PURE__ */ e(((e, t) => {
|
|
464
|
+
t.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
|
|
465
|
+
})), M = /* @__PURE__ */ e(((e, t) => {
|
|
466
|
+
var n = O(), r = A(), i = k();
|
|
467
|
+
t.exports = j() || n.call(i, r);
|
|
468
|
+
})), N = /* @__PURE__ */ e(((e, n) => {
|
|
469
|
+
var r = O(), i = t(), a = k(), o = M();
|
|
470
|
+
n.exports = function(e) {
|
|
471
|
+
if (e.length < 1 || typeof e[0] != "function") throw new i("a function is required");
|
|
472
|
+
return o(r, a, e);
|
|
473
|
+
};
|
|
474
|
+
})), P = /* @__PURE__ */ e(((e, t) => {
|
|
475
|
+
var n = N(), r = x(), i;
|
|
476
|
+
try {
|
|
477
|
+
i = [].__proto__ === Array.prototype;
|
|
478
|
+
} catch (e) {
|
|
479
|
+
if (!e || typeof e != "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") throw e;
|
|
480
|
+
}
|
|
481
|
+
var a = !!i && r && r(Object.prototype, "__proto__"), o = Object, s = o.getPrototypeOf;
|
|
482
|
+
t.exports = a && typeof a.get == "function" ? n([a.get]) : typeof s == "function" && function(e) {
|
|
483
|
+
return s(e == null ? e : o(e));
|
|
484
|
+
};
|
|
485
|
+
})), F = /* @__PURE__ */ e(((e, t) => {
|
|
486
|
+
var n = T(), r = E(), i = P();
|
|
487
|
+
t.exports = n ? function(e) {
|
|
488
|
+
return n(e);
|
|
489
|
+
} : r ? function(e) {
|
|
490
|
+
if (!e || typeof e != "object" && typeof e != "function") throw TypeError("getProto: not an object");
|
|
491
|
+
return r(e);
|
|
492
|
+
} : i ? function(e) {
|
|
493
|
+
return i(e);
|
|
494
|
+
} : null;
|
|
495
|
+
})), I = /* @__PURE__ */ e(((e, t) => {
|
|
496
|
+
var n = Function.prototype.call, r = Object.prototype.hasOwnProperty;
|
|
497
|
+
t.exports = O().call(n, r);
|
|
498
|
+
})), L = /* @__PURE__ */ e(((e, n) => {
|
|
499
|
+
var r, i = a(), v = o(), b = s(), C = c(), D = l(), j = u(), M = t(), N = d(), P = f(), L = p(), R = m(), z = h(), B = g(), V = _(), H = y(), U = Function, W = function(e) {
|
|
500
|
+
try {
|
|
501
|
+
return U("\"use strict\"; return (" + e + ").constructor;")();
|
|
502
|
+
} catch {}
|
|
503
|
+
}, G = x(), ee = S(), te = function() {
|
|
504
|
+
throw new M();
|
|
505
|
+
}, ne = G ? function() {
|
|
506
|
+
try {
|
|
507
|
+
return arguments.callee, te;
|
|
508
|
+
} catch {
|
|
509
|
+
try {
|
|
510
|
+
return G(arguments, "callee").get;
|
|
511
|
+
} catch {
|
|
512
|
+
return te;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}() : te, K = w()(), q = F(), re = E(), ie = T(), J = A(), Y = k(), X = {}, ae = typeof Uint8Array > "u" || !q ? r : q(Uint8Array), Z = {
|
|
516
|
+
__proto__: null,
|
|
517
|
+
"%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
|
|
518
|
+
"%Array%": Array,
|
|
519
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? r : ArrayBuffer,
|
|
520
|
+
"%ArrayIteratorPrototype%": K && q ? q([][Symbol.iterator]()) : r,
|
|
521
|
+
"%AsyncFromSyncIteratorPrototype%": r,
|
|
522
|
+
"%AsyncFunction%": X,
|
|
523
|
+
"%AsyncGenerator%": X,
|
|
524
|
+
"%AsyncGeneratorFunction%": X,
|
|
525
|
+
"%AsyncIteratorPrototype%": X,
|
|
526
|
+
"%Atomics%": typeof Atomics > "u" ? r : Atomics,
|
|
527
|
+
"%BigInt%": typeof BigInt > "u" ? r : BigInt,
|
|
528
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? r : BigInt64Array,
|
|
529
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? r : BigUint64Array,
|
|
530
|
+
"%Boolean%": Boolean,
|
|
531
|
+
"%DataView%": typeof DataView > "u" ? r : DataView,
|
|
532
|
+
"%Date%": Date,
|
|
533
|
+
"%decodeURI%": decodeURI,
|
|
534
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
535
|
+
"%encodeURI%": encodeURI,
|
|
536
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
537
|
+
"%Error%": v,
|
|
538
|
+
"%eval%": eval,
|
|
539
|
+
"%EvalError%": b,
|
|
540
|
+
"%Float16Array%": typeof Float16Array > "u" ? r : Float16Array,
|
|
541
|
+
"%Float32Array%": typeof Float32Array > "u" ? r : Float32Array,
|
|
542
|
+
"%Float64Array%": typeof Float64Array > "u" ? r : Float64Array,
|
|
543
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? r : FinalizationRegistry,
|
|
544
|
+
"%Function%": U,
|
|
545
|
+
"%GeneratorFunction%": X,
|
|
546
|
+
"%Int8Array%": typeof Int8Array > "u" ? r : Int8Array,
|
|
547
|
+
"%Int16Array%": typeof Int16Array > "u" ? r : Int16Array,
|
|
548
|
+
"%Int32Array%": typeof Int32Array > "u" ? r : Int32Array,
|
|
549
|
+
"%isFinite%": isFinite,
|
|
550
|
+
"%isNaN%": isNaN,
|
|
551
|
+
"%IteratorPrototype%": K && q ? q(q([][Symbol.iterator]())) : r,
|
|
552
|
+
"%JSON%": typeof JSON == "object" ? JSON : r,
|
|
553
|
+
"%Map%": typeof Map > "u" ? r : Map,
|
|
554
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !K || !q ? r : q((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
555
|
+
"%Math%": Math,
|
|
556
|
+
"%Number%": Number,
|
|
557
|
+
"%Object%": i,
|
|
558
|
+
"%Object.getOwnPropertyDescriptor%": G,
|
|
559
|
+
"%parseFloat%": parseFloat,
|
|
560
|
+
"%parseInt%": parseInt,
|
|
561
|
+
"%Promise%": typeof Promise > "u" ? r : Promise,
|
|
562
|
+
"%Proxy%": typeof Proxy > "u" ? r : Proxy,
|
|
563
|
+
"%RangeError%": C,
|
|
564
|
+
"%ReferenceError%": D,
|
|
565
|
+
"%Reflect%": typeof Reflect > "u" ? r : Reflect,
|
|
566
|
+
"%RegExp%": RegExp,
|
|
567
|
+
"%Set%": typeof Set > "u" ? r : Set,
|
|
568
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !K || !q ? r : q((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
569
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? r : SharedArrayBuffer,
|
|
570
|
+
"%String%": String,
|
|
571
|
+
"%StringIteratorPrototype%": K && q ? q(""[Symbol.iterator]()) : r,
|
|
572
|
+
"%Symbol%": K ? Symbol : r,
|
|
573
|
+
"%SyntaxError%": j,
|
|
574
|
+
"%ThrowTypeError%": ne,
|
|
575
|
+
"%TypedArray%": ae,
|
|
576
|
+
"%TypeError%": M,
|
|
577
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
|
|
578
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
|
|
579
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? r : Uint16Array,
|
|
580
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? r : Uint32Array,
|
|
581
|
+
"%URIError%": N,
|
|
582
|
+
"%WeakMap%": typeof WeakMap > "u" ? r : WeakMap,
|
|
583
|
+
"%WeakRef%": typeof WeakRef > "u" ? r : WeakRef,
|
|
584
|
+
"%WeakSet%": typeof WeakSet > "u" ? r : WeakSet,
|
|
585
|
+
"%Function.prototype.call%": Y,
|
|
586
|
+
"%Function.prototype.apply%": J,
|
|
587
|
+
"%Object.defineProperty%": ee,
|
|
588
|
+
"%Object.getPrototypeOf%": re,
|
|
589
|
+
"%Math.abs%": P,
|
|
590
|
+
"%Math.floor%": L,
|
|
591
|
+
"%Math.max%": R,
|
|
592
|
+
"%Math.min%": z,
|
|
593
|
+
"%Math.pow%": B,
|
|
594
|
+
"%Math.round%": V,
|
|
595
|
+
"%Math.sign%": H,
|
|
596
|
+
"%Reflect.getPrototypeOf%": ie
|
|
597
|
+
};
|
|
598
|
+
if (q) try {
|
|
599
|
+
null.error;
|
|
600
|
+
} catch (e) {
|
|
601
|
+
Z["%Error.prototype%"] = q(q(e));
|
|
602
|
+
}
|
|
603
|
+
var oe = function e(t) {
|
|
604
|
+
var n;
|
|
605
|
+
if (t === "%AsyncFunction%") n = W("async function () {}");
|
|
606
|
+
else if (t === "%GeneratorFunction%") n = W("function* () {}");
|
|
607
|
+
else if (t === "%AsyncGeneratorFunction%") n = W("async function* () {}");
|
|
608
|
+
else if (t === "%AsyncGenerator%") {
|
|
609
|
+
var r = e("%AsyncGeneratorFunction%");
|
|
610
|
+
r && (n = r.prototype);
|
|
611
|
+
} else if (t === "%AsyncIteratorPrototype%") {
|
|
612
|
+
var i = e("%AsyncGenerator%");
|
|
613
|
+
i && q && (n = q(i.prototype));
|
|
614
|
+
}
|
|
615
|
+
return Z[t] = n, n;
|
|
616
|
+
}, se = {
|
|
617
|
+
__proto__: null,
|
|
618
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
619
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
620
|
+
"%ArrayProto_entries%": [
|
|
621
|
+
"Array",
|
|
622
|
+
"prototype",
|
|
623
|
+
"entries"
|
|
624
|
+
],
|
|
625
|
+
"%ArrayProto_forEach%": [
|
|
626
|
+
"Array",
|
|
627
|
+
"prototype",
|
|
628
|
+
"forEach"
|
|
629
|
+
],
|
|
630
|
+
"%ArrayProto_keys%": [
|
|
631
|
+
"Array",
|
|
632
|
+
"prototype",
|
|
633
|
+
"keys"
|
|
634
|
+
],
|
|
635
|
+
"%ArrayProto_values%": [
|
|
636
|
+
"Array",
|
|
637
|
+
"prototype",
|
|
638
|
+
"values"
|
|
639
|
+
],
|
|
640
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
641
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
642
|
+
"%AsyncGeneratorPrototype%": [
|
|
643
|
+
"AsyncGeneratorFunction",
|
|
644
|
+
"prototype",
|
|
645
|
+
"prototype"
|
|
646
|
+
],
|
|
647
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
648
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
649
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
650
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
651
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
652
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
653
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
654
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
655
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
656
|
+
"%GeneratorPrototype%": [
|
|
657
|
+
"GeneratorFunction",
|
|
658
|
+
"prototype",
|
|
659
|
+
"prototype"
|
|
660
|
+
],
|
|
661
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
662
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
663
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
664
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
665
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
666
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
667
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
668
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
669
|
+
"%ObjProto_toString%": [
|
|
670
|
+
"Object",
|
|
671
|
+
"prototype",
|
|
672
|
+
"toString"
|
|
673
|
+
],
|
|
674
|
+
"%ObjProto_valueOf%": [
|
|
675
|
+
"Object",
|
|
676
|
+
"prototype",
|
|
677
|
+
"valueOf"
|
|
678
|
+
],
|
|
679
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
680
|
+
"%PromiseProto_then%": [
|
|
681
|
+
"Promise",
|
|
682
|
+
"prototype",
|
|
683
|
+
"then"
|
|
684
|
+
],
|
|
685
|
+
"%Promise_all%": ["Promise", "all"],
|
|
686
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
687
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
688
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
689
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
690
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
691
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
692
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
693
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
694
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
695
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
696
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
697
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
698
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
699
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
700
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
701
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
702
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
703
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
704
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
705
|
+
}, Q = O(), ce = I(), le = Q.call(Y, Array.prototype.concat), ue = Q.call(J, Array.prototype.splice), de = Q.call(Y, String.prototype.replace), $ = Q.call(Y, String.prototype.slice), fe = Q.call(Y, RegExp.prototype.exec), pe = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, me = /\\(\\)?/g, he = function(e) {
|
|
706
|
+
var t = $(e, 0, 1), n = $(e, -1);
|
|
707
|
+
if (t === "%" && n !== "%") throw new j("invalid intrinsic syntax, expected closing `%`");
|
|
708
|
+
if (n === "%" && t !== "%") throw new j("invalid intrinsic syntax, expected opening `%`");
|
|
709
|
+
var r = [];
|
|
710
|
+
return de(e, pe, function(e, t, n, i) {
|
|
711
|
+
r[r.length] = n ? de(i, me, "$1") : t || e;
|
|
712
|
+
}), r;
|
|
713
|
+
}, ge = function(e, t) {
|
|
714
|
+
var n = e, r;
|
|
715
|
+
if (ce(se, n) && (r = se[n], n = "%" + r[0] + "%"), ce(Z, n)) {
|
|
716
|
+
var i = Z[n];
|
|
717
|
+
if (i === X && (i = oe(n)), i === void 0 && !t) throw new M("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
718
|
+
return {
|
|
719
|
+
alias: r,
|
|
720
|
+
name: n,
|
|
721
|
+
value: i
|
|
722
|
+
};
|
|
723
|
+
}
|
|
724
|
+
throw new j("intrinsic " + e + " does not exist!");
|
|
725
|
+
};
|
|
726
|
+
n.exports = function(e, t) {
|
|
727
|
+
if (typeof e != "string" || e.length === 0) throw new M("intrinsic name must be a non-empty string");
|
|
728
|
+
if (arguments.length > 1 && typeof t != "boolean") throw new M("\"allowMissing\" argument must be a boolean");
|
|
729
|
+
if (fe(/^%?[^%]*%?$/, e) === null) throw new j("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
730
|
+
var n = he(e), r = n.length > 0 ? n[0] : "", i = ge("%" + r + "%", t), a = i.name, o = i.value, s = !1, c = i.alias;
|
|
731
|
+
c && (r = c[0], ue(n, le([0, 1], c)));
|
|
732
|
+
for (var l = 1, u = !0; l < n.length; l += 1) {
|
|
733
|
+
var d = n[l], f = $(d, 0, 1), p = $(d, -1);
|
|
734
|
+
if ((f === "\"" || f === "'" || f === "`" || p === "\"" || p === "'" || p === "`") && f !== p) throw new j("property names with quotes must have matching quotes");
|
|
735
|
+
if ((d === "constructor" || !u) && (s = !0), r += "." + d, a = "%" + r + "%", ce(Z, a)) o = Z[a];
|
|
736
|
+
else if (o != null) {
|
|
737
|
+
if (!(d in o)) {
|
|
738
|
+
if (!t) throw new M("base intrinsic for " + e + " exists, but the property is not available.");
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
if (G && l + 1 >= n.length) {
|
|
742
|
+
var m = G(o, d);
|
|
743
|
+
u = !!m, o = u && "get" in m && !("originalValue" in m.get) ? m.get : o[d];
|
|
744
|
+
} else u = ce(o, d), o = o[d];
|
|
745
|
+
u && !s && (Z[a] = o);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
return o;
|
|
749
|
+
};
|
|
750
|
+
})), R = /* @__PURE__ */ e(((e, t) => {
|
|
751
|
+
var n = L(), r = N(), i = r([n("%String.prototype.indexOf%")]);
|
|
752
|
+
t.exports = function(e, t) {
|
|
753
|
+
var a = n(e, !!t);
|
|
754
|
+
return typeof a == "function" && i(e, ".prototype.") > -1 ? r([a]) : a;
|
|
755
|
+
};
|
|
756
|
+
})), z = /* @__PURE__ */ e(((e, n) => {
|
|
757
|
+
var i = L(), a = R(), o = r(), s = t(), c = i("%Map%", !0), l = a("Map.prototype.get", !0), u = a("Map.prototype.set", !0), d = a("Map.prototype.has", !0), f = a("Map.prototype.delete", !0), p = a("Map.prototype.size", !0);
|
|
758
|
+
n.exports = !!c && function() {
|
|
759
|
+
var e, t = {
|
|
760
|
+
assert: function(e) {
|
|
761
|
+
if (!t.has(e)) throw new s("Side channel does not contain " + o(e));
|
|
762
|
+
},
|
|
763
|
+
delete: function(t) {
|
|
764
|
+
if (e) {
|
|
765
|
+
var n = f(e, t);
|
|
766
|
+
return p(e) === 0 && (e = void 0), n;
|
|
767
|
+
}
|
|
768
|
+
return !1;
|
|
769
|
+
},
|
|
770
|
+
get: function(t) {
|
|
771
|
+
if (e) return l(e, t);
|
|
772
|
+
},
|
|
773
|
+
has: function(t) {
|
|
774
|
+
return e ? d(e, t) : !1;
|
|
775
|
+
},
|
|
776
|
+
set: function(t, n) {
|
|
777
|
+
e ||= new c(), u(e, t, n);
|
|
778
|
+
}
|
|
779
|
+
};
|
|
780
|
+
return t;
|
|
781
|
+
};
|
|
782
|
+
})), B = /* @__PURE__ */ e(((e, n) => {
|
|
783
|
+
var i = L(), a = R(), o = r(), s = z(), c = t(), l = i("%WeakMap%", !0), u = a("WeakMap.prototype.get", !0), d = a("WeakMap.prototype.set", !0), f = a("WeakMap.prototype.has", !0), p = a("WeakMap.prototype.delete", !0);
|
|
784
|
+
n.exports = l ? function() {
|
|
785
|
+
var e, t, n = {
|
|
786
|
+
assert: function(e) {
|
|
787
|
+
if (!n.has(e)) throw new c("Side channel does not contain " + o(e));
|
|
788
|
+
},
|
|
789
|
+
delete: function(n) {
|
|
790
|
+
if (l && n && (typeof n == "object" || typeof n == "function")) {
|
|
791
|
+
if (e) return p(e, n);
|
|
792
|
+
} else if (s && t) return t.delete(n);
|
|
793
|
+
return !1;
|
|
794
|
+
},
|
|
795
|
+
get: function(n) {
|
|
796
|
+
return l && n && (typeof n == "object" || typeof n == "function") && e ? u(e, n) : t && t.get(n);
|
|
797
|
+
},
|
|
798
|
+
has: function(n) {
|
|
799
|
+
return l && n && (typeof n == "object" || typeof n == "function") && e ? f(e, n) : !!t && t.has(n);
|
|
800
|
+
},
|
|
801
|
+
set: function(n, r) {
|
|
802
|
+
l && n && (typeof n == "object" || typeof n == "function") ? (e ||= new l(), d(e, n, r)) : s && (t ||= s(), t.set(n, r));
|
|
803
|
+
}
|
|
804
|
+
};
|
|
805
|
+
return n;
|
|
806
|
+
} : s;
|
|
807
|
+
})), V = /* @__PURE__ */ e(((e, n) => {
|
|
808
|
+
var a = t(), o = r(), s = i(), c = z(), l = B() || c || s;
|
|
809
|
+
n.exports = function() {
|
|
810
|
+
var e, t = {
|
|
811
|
+
assert: function(e) {
|
|
812
|
+
if (!t.has(e)) throw new a("Side channel does not contain " + (e && Object(e) === e ? "the given object key" : o(e)));
|
|
813
|
+
},
|
|
814
|
+
delete: function(t) {
|
|
815
|
+
return !!e && e.delete(t);
|
|
816
|
+
},
|
|
817
|
+
get: function(t) {
|
|
818
|
+
return e && e.get(t);
|
|
819
|
+
},
|
|
820
|
+
has: function(t) {
|
|
821
|
+
return !!e && e.has(t);
|
|
822
|
+
},
|
|
823
|
+
set: function(t, n) {
|
|
824
|
+
e ||= l(), e.set(t, n);
|
|
825
|
+
}
|
|
826
|
+
};
|
|
827
|
+
return t;
|
|
828
|
+
};
|
|
829
|
+
})), H = /* @__PURE__ */ e(((e, t) => {
|
|
830
|
+
var n = String.prototype.replace, r = /%20/g, i = {
|
|
831
|
+
RFC1738: "RFC1738",
|
|
832
|
+
RFC3986: "RFC3986"
|
|
833
|
+
};
|
|
834
|
+
t.exports = {
|
|
835
|
+
default: i.RFC3986,
|
|
836
|
+
formatters: {
|
|
837
|
+
RFC1738: function(e) {
|
|
838
|
+
return n.call(e, r, "+");
|
|
839
|
+
},
|
|
840
|
+
RFC3986: function(e) {
|
|
841
|
+
return String(e);
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
RFC1738: i.RFC1738,
|
|
845
|
+
RFC3986: i.RFC3986
|
|
846
|
+
};
|
|
847
|
+
})), U = /* @__PURE__ */ e(((e, t) => {
|
|
848
|
+
var n = H(), r = V(), i = S(), a = Object.prototype.hasOwnProperty, o = Array.isArray, s = r(), c = function(e, t) {
|
|
849
|
+
return s.set(e, t), e;
|
|
850
|
+
}, l = function(e) {
|
|
851
|
+
return s.has(e);
|
|
852
|
+
}, u = function(e) {
|
|
853
|
+
return s.get(e);
|
|
854
|
+
}, d = function(e, t) {
|
|
855
|
+
s.set(e, t);
|
|
856
|
+
}, f = function() {
|
|
857
|
+
for (var e = [], t = 0; t < 256; ++t) e[e.length] = "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase();
|
|
858
|
+
return e;
|
|
859
|
+
}(), p = function(e) {
|
|
860
|
+
for (; e.length > 1;) {
|
|
861
|
+
var t = e.pop(), n = t.obj[t.prop];
|
|
862
|
+
if (o(n)) {
|
|
863
|
+
for (var r = [], i = 0; i < n.length; ++i) n[i] !== void 0 && (r[r.length] = n[i]);
|
|
864
|
+
t.obj[t.prop] = r;
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}, m = function(e, t) {
|
|
868
|
+
for (var n = t && t.plainObjects ? { __proto__: null } : {}, r = 0; r < e.length; ++r) e[r] !== void 0 && (n[r] = e[r]);
|
|
869
|
+
return n;
|
|
870
|
+
}, h = function(e, t, n) {
|
|
871
|
+
t === "__proto__" && i ? i(e, t, {
|
|
872
|
+
configurable: !0,
|
|
873
|
+
enumerable: !0,
|
|
874
|
+
value: n,
|
|
875
|
+
writable: !0
|
|
876
|
+
}) : e[t] = n;
|
|
877
|
+
}, g = function e(t, n, r) {
|
|
878
|
+
if (!n) return t;
|
|
879
|
+
if (typeof n != "object" && typeof n != "function") {
|
|
880
|
+
if (o(t)) {
|
|
881
|
+
var i = t.length;
|
|
882
|
+
if (r && typeof r.arrayLimit == "number" && i >= r.arrayLimit) {
|
|
883
|
+
if (r.throwOnLimitExceeded) throw RangeError("Array limit exceeded. Only " + r.arrayLimit + " element" + (r.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
884
|
+
return c(m(t.concat(n), r), i);
|
|
885
|
+
}
|
|
886
|
+
t[i] = n;
|
|
887
|
+
} else if (t && typeof t == "object") {
|
|
888
|
+
if (l(t)) {
|
|
889
|
+
var s = u(t) + 1;
|
|
890
|
+
t[s] = n, d(t, s);
|
|
891
|
+
} else if (r && r.strictMerge) return [t, n];
|
|
892
|
+
else (r && (r.plainObjects || r.allowPrototypes) || !a.call(Object.prototype, n)) && (t[n] = !0);
|
|
893
|
+
} else return [t, n];
|
|
894
|
+
return t;
|
|
895
|
+
}
|
|
896
|
+
if (!t || typeof t != "object") {
|
|
897
|
+
if (l(n)) {
|
|
898
|
+
for (var f = Object.keys(n), p = r && r.plainObjects ? {
|
|
899
|
+
__proto__: null,
|
|
900
|
+
0: t
|
|
901
|
+
} : { 0: t }, g = 0; g < f.length; g++) {
|
|
902
|
+
var _ = parseInt(f[g], 10);
|
|
903
|
+
p[_ + 1] = n[f[g]];
|
|
904
|
+
}
|
|
905
|
+
return c(p, u(n) + 1);
|
|
906
|
+
}
|
|
907
|
+
var v = [t].concat(n);
|
|
908
|
+
if (r && typeof r.arrayLimit == "number" && v.length > r.arrayLimit) {
|
|
909
|
+
if (r.throwOnLimitExceeded) throw RangeError("Array limit exceeded. Only " + r.arrayLimit + " element" + (r.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
910
|
+
return c(m(v, r), v.length - 1);
|
|
911
|
+
}
|
|
912
|
+
return v;
|
|
913
|
+
}
|
|
914
|
+
var y = t;
|
|
915
|
+
if (o(t) && !o(n) && (y = m(t, r)), o(t) && o(n)) {
|
|
916
|
+
if (n.forEach(function(n, i) {
|
|
917
|
+
if (a.call(t, i)) {
|
|
918
|
+
var o = t[i];
|
|
919
|
+
o && typeof o == "object" && n && typeof n == "object" ? t[i] = e(o, n, r) : t[t.length] = n;
|
|
920
|
+
} else t[i] = n;
|
|
921
|
+
}), r && typeof r.arrayLimit == "number" && t.length > r.arrayLimit) {
|
|
922
|
+
if (r.throwOnLimitExceeded) throw RangeError("Array limit exceeded. Only " + r.arrayLimit + " element" + (r.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
923
|
+
return c(m(t, r), t.length - 1);
|
|
924
|
+
}
|
|
925
|
+
return t;
|
|
926
|
+
}
|
|
927
|
+
return Object.keys(n).reduce(function(t, i) {
|
|
928
|
+
var o = n[i];
|
|
929
|
+
if (a.call(t, i) ? h(t, i, e(t[i], o, r)) : h(t, i, o), l(n) && !l(t) && c(t, u(n)), l(t)) {
|
|
930
|
+
var s = parseInt(i, 10);
|
|
931
|
+
String(s) === i && s >= 0 && s > u(t) && d(t, s);
|
|
932
|
+
}
|
|
933
|
+
return t;
|
|
934
|
+
}, y);
|
|
935
|
+
}, _ = function(e, t) {
|
|
936
|
+
return Object.keys(t).reduce(function(e, n) {
|
|
937
|
+
return h(e, n, t[n]), e;
|
|
938
|
+
}, e);
|
|
939
|
+
}, v = function(e, t, n) {
|
|
940
|
+
var r = e.replace(/\+/g, " ");
|
|
941
|
+
if (n === "iso-8859-1") return r.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
942
|
+
try {
|
|
943
|
+
return decodeURIComponent(r);
|
|
944
|
+
} catch {
|
|
945
|
+
return r;
|
|
946
|
+
}
|
|
947
|
+
}, y = 1024;
|
|
948
|
+
t.exports = {
|
|
949
|
+
arrayToObject: m,
|
|
950
|
+
assign: _,
|
|
951
|
+
combine: function(e, t, n, r, i) {
|
|
952
|
+
if (l(e)) {
|
|
953
|
+
if (i) throw RangeError("Array limit exceeded. Only " + n + " element" + (n === 1 ? "" : "s") + " allowed in an array.");
|
|
954
|
+
for (var a = o(t) ? t : [t], s = u(e), f = 0; f < a.length; ++f) s += 1, e[s] = a[f];
|
|
955
|
+
return d(e, s), e;
|
|
956
|
+
}
|
|
957
|
+
var p = [].concat(e, t);
|
|
958
|
+
if (p.length > n) {
|
|
959
|
+
if (i) throw RangeError("Array limit exceeded. Only " + n + " element" + (n === 1 ? "" : "s") + " allowed in an array.");
|
|
960
|
+
return c(m(p, { plainObjects: r }), p.length - 1);
|
|
961
|
+
}
|
|
962
|
+
return p;
|
|
963
|
+
},
|
|
964
|
+
compact: function(e) {
|
|
965
|
+
for (var t = [{
|
|
966
|
+
obj: { o: e },
|
|
967
|
+
prop: "o"
|
|
968
|
+
}], n = r(), i = 0; i < t.length; ++i) for (var a = t[i], o = a.obj[a.prop], s = Object.keys(o), c = 0; c < s.length; ++c) {
|
|
969
|
+
var l = s[c], u = o[l];
|
|
970
|
+
typeof u == "object" && u && !n.has(u) && (t[t.length] = {
|
|
971
|
+
obj: o,
|
|
972
|
+
prop: l
|
|
973
|
+
}, n.set(u, !0));
|
|
974
|
+
}
|
|
975
|
+
return p(t), e;
|
|
976
|
+
},
|
|
977
|
+
decode: v,
|
|
978
|
+
encode: function(e, t, r, i, a) {
|
|
979
|
+
if (e.length === 0) return e;
|
|
980
|
+
var o = e;
|
|
981
|
+
if (typeof e == "symbol" ? o = Symbol.prototype.toString.call(e) : typeof e != "string" && (o = String(e)), r === "iso-8859-1") return escape(o).replace(/%u[0-9a-f]{4}/gi, function(e) {
|
|
982
|
+
return "%26%23" + parseInt(e.slice(2), 16) + "%3B";
|
|
983
|
+
});
|
|
984
|
+
for (var s = "", c = 0; c < o.length; c += y) {
|
|
985
|
+
var l = o.length >= y ? o.slice(c, c + y) : o;
|
|
986
|
+
if (c + y < o.length) {
|
|
987
|
+
var u = l.charCodeAt(l.length - 1);
|
|
988
|
+
u >= 55296 && u <= 56319 && (l = l.slice(0, -1), --c);
|
|
989
|
+
}
|
|
990
|
+
for (var d = [], p = 0; p < l.length; ++p) {
|
|
991
|
+
var m = l.charCodeAt(p);
|
|
992
|
+
if (m === 45 || m === 46 || m === 95 || m === 126 || m >= 48 && m <= 57 || m >= 65 && m <= 90 || m >= 97 && m <= 122 || a === n.RFC1738 && (m === 40 || m === 41)) {
|
|
993
|
+
d[d.length] = l.charAt(p);
|
|
994
|
+
continue;
|
|
995
|
+
}
|
|
996
|
+
if (m < 128) {
|
|
997
|
+
d[d.length] = f[m];
|
|
998
|
+
continue;
|
|
999
|
+
}
|
|
1000
|
+
if (m < 2048) {
|
|
1001
|
+
d[d.length] = f[192 | m >> 6] + f[128 | m & 63];
|
|
1002
|
+
continue;
|
|
1003
|
+
}
|
|
1004
|
+
if (m < 55296 || m >= 57344) {
|
|
1005
|
+
d[d.length] = f[224 | m >> 12] + f[128 | m >> 6 & 63] + f[128 | m & 63];
|
|
1006
|
+
continue;
|
|
1007
|
+
}
|
|
1008
|
+
p += 1, m = 65536 + ((m & 1023) << 10 | l.charCodeAt(p) & 1023), d[d.length] = f[240 | m >> 18] + f[128 | m >> 12 & 63] + f[128 | m >> 6 & 63] + f[128 | m & 63];
|
|
1009
|
+
}
|
|
1010
|
+
s += d.join("");
|
|
1011
|
+
}
|
|
1012
|
+
return s;
|
|
1013
|
+
},
|
|
1014
|
+
isBuffer: function(e) {
|
|
1015
|
+
return !e || typeof e != "object" ? !1 : !!(e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e));
|
|
1016
|
+
},
|
|
1017
|
+
isOverflow: l,
|
|
1018
|
+
isRegExp: function(e) {
|
|
1019
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1020
|
+
},
|
|
1021
|
+
markOverflow: c,
|
|
1022
|
+
maybeMap: function(e, t) {
|
|
1023
|
+
if (o(e)) {
|
|
1024
|
+
for (var n = [], r = 0; r < e.length; r += 1) n[n.length] = t(e[r]);
|
|
1025
|
+
return n;
|
|
1026
|
+
}
|
|
1027
|
+
return t(e);
|
|
1028
|
+
},
|
|
1029
|
+
merge: g
|
|
1030
|
+
};
|
|
1031
|
+
})), W = /* @__PURE__ */ e(((e, t) => {
|
|
1032
|
+
var n = V(), r = U(), i = H(), a = Object.prototype.hasOwnProperty, o = {
|
|
1033
|
+
brackets: function(e) {
|
|
1034
|
+
return e + "[]";
|
|
1035
|
+
},
|
|
1036
|
+
comma: "comma",
|
|
1037
|
+
indices: function(e, t) {
|
|
1038
|
+
return e + "[" + t + "]";
|
|
1039
|
+
},
|
|
1040
|
+
repeat: function(e) {
|
|
1041
|
+
return e;
|
|
1042
|
+
}
|
|
1043
|
+
}, s = Array.isArray, c = Array.prototype.push, l = function(e, t) {
|
|
1044
|
+
c.apply(e, s(t) ? t : [t]);
|
|
1045
|
+
}, u = Date.prototype.toISOString, d = i.default, f = {
|
|
1046
|
+
addQueryPrefix: !1,
|
|
1047
|
+
allowDots: !1,
|
|
1048
|
+
allowEmptyArrays: !1,
|
|
1049
|
+
arrayFormat: "indices",
|
|
1050
|
+
charset: "utf-8",
|
|
1051
|
+
charsetSentinel: !1,
|
|
1052
|
+
commaRoundTrip: !1,
|
|
1053
|
+
delimiter: "&",
|
|
1054
|
+
depth: Infinity,
|
|
1055
|
+
encode: !0,
|
|
1056
|
+
encodeDotInKeys: !1,
|
|
1057
|
+
encoder: r.encode,
|
|
1058
|
+
encodeValuesOnly: !1,
|
|
1059
|
+
filter: void 0,
|
|
1060
|
+
format: d,
|
|
1061
|
+
formatter: i.formatters[d],
|
|
1062
|
+
indices: !1,
|
|
1063
|
+
serializeDate: function(e) {
|
|
1064
|
+
return u.call(e);
|
|
1065
|
+
},
|
|
1066
|
+
skipNulls: !1,
|
|
1067
|
+
strictNullHandling: !1
|
|
1068
|
+
}, p = function(e) {
|
|
1069
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
1070
|
+
}, m = {}, h = function e(t, i, a, o, c, u, d, h, g, _, v, y, b, x, S, C, w, T, E, D) {
|
|
1071
|
+
var O = t;
|
|
1072
|
+
if (D > E) throw RangeError("Input depth exceeded depth option of " + E);
|
|
1073
|
+
for (var k = T, A = 0, j = !1; (k = k.get(m)) !== void 0 && !j;) {
|
|
1074
|
+
var M = k.get(t);
|
|
1075
|
+
if (A += 1, M !== void 0) {
|
|
1076
|
+
if (M === A) throw RangeError("Cyclic object value");
|
|
1077
|
+
j = !0;
|
|
1078
|
+
}
|
|
1079
|
+
k.get(m) === void 0 && (A = 0);
|
|
1080
|
+
}
|
|
1081
|
+
if (O = typeof _ == "function" ? _(i, O) : O, O instanceof Date ? O = b(O) : a === "comma" && s(O) && (O = r.maybeMap(O, function(e) {
|
|
1082
|
+
return e instanceof Date ? b(e) : e;
|
|
1083
|
+
})), O === null) {
|
|
1084
|
+
if (u) return S(g && !C ? g(i, f.encoder, w, "key", x) : i);
|
|
1085
|
+
O = "";
|
|
1086
|
+
}
|
|
1087
|
+
if (p(O) || r.isBuffer(O)) return g ? [S(C ? i : g(i, f.encoder, w, "key", x)) + "=" + S(g(O, f.encoder, w, "value", x))] : [S(i) + "=" + S(String(O))];
|
|
1088
|
+
var N = [];
|
|
1089
|
+
if (O === void 0) return N;
|
|
1090
|
+
var P;
|
|
1091
|
+
if (a === "comma" && s(O)) C && g && (O = r.maybeMap(O, function(e) {
|
|
1092
|
+
return e == null ? e : g(e);
|
|
1093
|
+
})), P = [{ value: O.length > 0 ? O.join(",") || null : void 0 }];
|
|
1094
|
+
else if (s(_)) P = _;
|
|
1095
|
+
else {
|
|
1096
|
+
var F = Object.keys(O);
|
|
1097
|
+
P = v ? F.sort(v) : F;
|
|
1098
|
+
}
|
|
1099
|
+
var I = h ? String(i).replace(/\./g, "%2E") : String(i), L = o && s(O) && O.length === 1 ? I + "[]" : I;
|
|
1100
|
+
if (c && s(O) && O.length === 0 && Object.keys(O).length === 0) return L + "[]";
|
|
1101
|
+
for (var R = 0; R < P.length; ++R) {
|
|
1102
|
+
var z = P[R], B = typeof z == "object" && z && z.value !== void 0 ? z.value : O[z];
|
|
1103
|
+
if (!(d && B === null)) {
|
|
1104
|
+
var V = y && h ? String(z).replace(/\./g, "%2E") : String(z), H = s(O) ? typeof a == "function" ? a(L, V) : L : L + (y ? "." + V : "[" + V + "]");
|
|
1105
|
+
T.set(t, A);
|
|
1106
|
+
var U = n();
|
|
1107
|
+
U.set(m, T), l(N, e(B, H, a, o, c, u, d, h, a === "comma" && C && s(O) ? null : g, _, v, y, b, x, S, C, w, U, E, D + 1));
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
return N;
|
|
1111
|
+
}, g = function(e) {
|
|
1112
|
+
if (!e) return f;
|
|
1113
|
+
if (e.allowEmptyArrays !== void 0 && typeof e.allowEmptyArrays != "boolean") throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
1114
|
+
if (e.encodeDotInKeys !== void 0 && typeof e.encodeDotInKeys != "boolean") throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
1115
|
+
if (e.encoder !== null && e.encoder !== void 0 && typeof e.encoder != "function") throw TypeError("Encoder has to be a function.");
|
|
1116
|
+
var t = e.charset || f.charset;
|
|
1117
|
+
if (e.charset !== void 0 && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1118
|
+
var n = i.default;
|
|
1119
|
+
if (e.format !== void 0) {
|
|
1120
|
+
if (!a.call(i.formatters, e.format)) throw TypeError("Unknown format option provided.");
|
|
1121
|
+
n = e.format;
|
|
1122
|
+
}
|
|
1123
|
+
var r = i.formatters[n], c = f.filter;
|
|
1124
|
+
(typeof e.filter == "function" || s(e.filter)) && (c = e.filter);
|
|
1125
|
+
var l = e.arrayFormat in o ? e.arrayFormat : "indices" in e ? e.indices ? "indices" : "repeat" : f.arrayFormat;
|
|
1126
|
+
if ("commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean") throw TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1127
|
+
var u = e.allowDots === void 0 ? e.encodeDotInKeys === !0 || f.allowDots : !!e.allowDots;
|
|
1128
|
+
return {
|
|
1129
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : f.addQueryPrefix,
|
|
1130
|
+
allowDots: u,
|
|
1131
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : f.allowEmptyArrays,
|
|
1132
|
+
arrayFormat: l,
|
|
1133
|
+
charset: t,
|
|
1134
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : f.charsetSentinel,
|
|
1135
|
+
commaRoundTrip: !!e.commaRoundTrip,
|
|
1136
|
+
delimiter: e.delimiter === void 0 ? f.delimiter : e.delimiter,
|
|
1137
|
+
depth: typeof e.depth == "number" ? e.depth : f.depth,
|
|
1138
|
+
encode: typeof e.encode == "boolean" ? e.encode : f.encode,
|
|
1139
|
+
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : f.encodeDotInKeys,
|
|
1140
|
+
encoder: typeof e.encoder == "function" ? e.encoder : f.encoder,
|
|
1141
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : f.encodeValuesOnly,
|
|
1142
|
+
filter: c,
|
|
1143
|
+
format: n,
|
|
1144
|
+
formatter: r,
|
|
1145
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : f.serializeDate,
|
|
1146
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : f.skipNulls,
|
|
1147
|
+
sort: typeof e.sort == "function" ? e.sort : null,
|
|
1148
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : f.strictNullHandling
|
|
1149
|
+
};
|
|
1150
|
+
};
|
|
1151
|
+
t.exports = function(e, t) {
|
|
1152
|
+
var r = e, i = g(t), a, c;
|
|
1153
|
+
typeof i.filter == "function" ? (c = i.filter, r = c("", r)) : s(i.filter) && (c = i.filter, a = c);
|
|
1154
|
+
var u = [];
|
|
1155
|
+
if (typeof r != "object" || !r) return "";
|
|
1156
|
+
var d = o[i.arrayFormat], f = d === "comma" && i.commaRoundTrip;
|
|
1157
|
+
a ||= Object.keys(r), i.sort && a.sort(i.sort);
|
|
1158
|
+
for (var p = n(), m = 0; m < a.length; ++m) {
|
|
1159
|
+
var _ = a[m];
|
|
1160
|
+
if (_ != null) {
|
|
1161
|
+
var v = r[_];
|
|
1162
|
+
i.skipNulls && v === null || l(u, h(v, i.encodeDotInKeys ? String(_).replace(/\./g, "%2E") : String(_), d, f, i.allowEmptyArrays, i.strictNullHandling, i.skipNulls, i.encodeDotInKeys, i.encode ? i.encoder : null, i.filter, i.sort, i.allowDots, i.serializeDate, i.format, i.formatter, i.encodeValuesOnly, i.charset, p, i.depth, 0));
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
var y = u.join(i.delimiter), b = i.addQueryPrefix === !0 ? "?" : "";
|
|
1166
|
+
return i.charsetSentinel && (i.charset === "iso-8859-1" ? b += "utf8=%26%2310003%3B" + i.delimiter : b += "utf8=%E2%9C%93" + i.delimiter), y.length > 0 ? b + y : "";
|
|
1167
|
+
};
|
|
1168
|
+
})), G = /* @__PURE__ */ e(((e, t) => {
|
|
1169
|
+
var n = U(), r = Object.prototype.hasOwnProperty, i = Array.isArray, a = {
|
|
1170
|
+
allowDots: !1,
|
|
1171
|
+
allowEmptyArrays: !1,
|
|
1172
|
+
allowPrototypes: !1,
|
|
1173
|
+
allowSparse: !1,
|
|
1174
|
+
arrayLimit: 20,
|
|
1175
|
+
charset: "utf-8",
|
|
1176
|
+
charsetSentinel: !1,
|
|
1177
|
+
comma: !1,
|
|
1178
|
+
decodeDotInKeys: !1,
|
|
1179
|
+
decoder: n.decode,
|
|
1180
|
+
delimiter: "&",
|
|
1181
|
+
depth: 5,
|
|
1182
|
+
duplicates: "combine",
|
|
1183
|
+
ignoreQueryPrefix: !1,
|
|
1184
|
+
interpretNumericEntities: !1,
|
|
1185
|
+
parameterLimit: 1e3,
|
|
1186
|
+
parseArrays: !0,
|
|
1187
|
+
plainObjects: !1,
|
|
1188
|
+
strictDepth: !1,
|
|
1189
|
+
strictMerge: !0,
|
|
1190
|
+
strictNullHandling: !1,
|
|
1191
|
+
throwOnLimitExceeded: !1
|
|
1192
|
+
}, o = function(e) {
|
|
1193
|
+
return e.replace(/&#(\d+);/g, function(e, t) {
|
|
1194
|
+
return String.fromCharCode(parseInt(t, 10));
|
|
1195
|
+
});
|
|
1196
|
+
}, s = function(e, t, n) {
|
|
1197
|
+
if (e && typeof e == "string" && t.comma && e.indexOf(",") > -1) {
|
|
1198
|
+
if (t.throwOnLimitExceeded) for (var r = 0, i = e.indexOf(","); i > -1;) {
|
|
1199
|
+
if (r += 1, r >= t.arrayLimit) throw RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
1200
|
+
i = e.indexOf(",", i + 1);
|
|
1201
|
+
}
|
|
1202
|
+
return e.split(",");
|
|
1203
|
+
}
|
|
1204
|
+
if (t.throwOnLimitExceeded && n >= t.arrayLimit) throw RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
1205
|
+
return e;
|
|
1206
|
+
}, c = "utf8=%26%2310003%3B", l = "utf8=%E2%9C%93", u = function(e, t) {
|
|
1207
|
+
var u = { __proto__: null }, d = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
1208
|
+
d = d.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1209
|
+
var f = t.parameterLimit === Infinity ? void 0 : t.parameterLimit, p = d.split(t.delimiter, t.throwOnLimitExceeded && f !== void 0 ? f + 1 : f);
|
|
1210
|
+
if (t.throwOnLimitExceeded && f !== void 0 && p.length > f) throw RangeError("Parameter limit exceeded. Only " + f + " parameter" + (f === 1 ? "" : "s") + " allowed.");
|
|
1211
|
+
var m = -1, h, g = t.charset;
|
|
1212
|
+
if (t.charsetSentinel) for (h = 0; h < p.length; ++h) p[h].indexOf("utf8=") === 0 && (p[h] === l ? g = "utf-8" : p[h] === c && (g = "iso-8859-1"), m = h, h = p.length);
|
|
1213
|
+
for (h = 0; h < p.length; ++h) if (h !== m) {
|
|
1214
|
+
var _ = p[h], v = _.indexOf("]="), y = v === -1 ? _.indexOf("=") : v + 1, b, x;
|
|
1215
|
+
if (y === -1 ? (b = t.decoder(_, a.decoder, g, "key"), x = t.strictNullHandling ? null : "") : (b = t.decoder(_.slice(0, y), a.decoder, g, "key"), b !== null && (x = n.maybeMap(s(_.slice(y + 1), t, i(u[b]) ? u[b].length : 0), function(e) {
|
|
1216
|
+
return t.decoder(e, a.decoder, g, "value");
|
|
1217
|
+
}))), x && t.interpretNumericEntities && g === "iso-8859-1" && (x = o(String(x))), _.indexOf("[]=") > -1 && (x = i(x) ? [x] : x), t.comma && i(x) && x.length > t.arrayLimit && (x = n.combine([], x, t.arrayLimit, t.plainObjects, t.throwOnLimitExceeded)), b !== null) {
|
|
1218
|
+
var S = r.call(u, b);
|
|
1219
|
+
S && (t.duplicates === "combine" || _.indexOf("[]=") > -1) ? u[b] = n.combine(u[b], x, t.arrayLimit, t.plainObjects, t.throwOnLimitExceeded) : (!S || t.duplicates === "last") && (u[b] = x);
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
return u;
|
|
1223
|
+
}, d = function(e, t, r, i) {
|
|
1224
|
+
var a = 0;
|
|
1225
|
+
if (e.length > 0 && e[e.length - 1] === "[]") {
|
|
1226
|
+
var o = e.slice(0, -1).join("");
|
|
1227
|
+
a = Array.isArray(t) && t[o] ? t[o].length : 0;
|
|
1228
|
+
}
|
|
1229
|
+
for (var c = i ? t : s(t, r, a), l = e.length - 1; l >= 0; --l) {
|
|
1230
|
+
var u, d = e[l];
|
|
1231
|
+
if (d === "[]" && r.parseArrays) u = n.isOverflow(c) ? c : r.allowEmptyArrays && (c === "" || r.strictNullHandling && c === null) ? [] : n.combine([], c, r.arrayLimit, r.plainObjects, r.throwOnLimitExceeded);
|
|
1232
|
+
else {
|
|
1233
|
+
u = r.plainObjects ? { __proto__: null } : {};
|
|
1234
|
+
var f = d.charAt(0) === "[" && d.charAt(d.length - 1) === "]" ? d.slice(1, -1) : d, p = r.decodeDotInKeys ? f.replace(/%2E/g, ".") : f, m = parseInt(p, 10), h = !isNaN(m) && d !== p && String(m) === p && m >= 0 && r.parseArrays;
|
|
1235
|
+
if (!r.parseArrays && p === "") u = { 0: c };
|
|
1236
|
+
else if (h && m < r.arrayLimit) u = [], u[m] = c;
|
|
1237
|
+
else if (h && r.throwOnLimitExceeded) throw RangeError("Array limit exceeded. Only " + r.arrayLimit + " element" + (r.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
1238
|
+
else h ? (u[m] = c, n.markOverflow(u, m)) : p !== "__proto__" && (u[p] = c);
|
|
1239
|
+
}
|
|
1240
|
+
c = u;
|
|
1241
|
+
}
|
|
1242
|
+
return c;
|
|
1243
|
+
}, f = function(e, t) {
|
|
1244
|
+
var n = t.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e;
|
|
1245
|
+
if (t.depth <= 0) return !t.plainObjects && r.call(Object.prototype, n) && !t.allowPrototypes ? void 0 : [n];
|
|
1246
|
+
var i = [], a = n.indexOf("["), o = a >= 0 ? n.slice(0, a) : n;
|
|
1247
|
+
if (o) {
|
|
1248
|
+
if (!t.plainObjects && r.call(Object.prototype, o) && !t.allowPrototypes) return;
|
|
1249
|
+
i[i.length] = o;
|
|
1250
|
+
}
|
|
1251
|
+
for (var s = n.length, c = a, l = 0; c >= 0 && l < t.depth;) {
|
|
1252
|
+
for (var u = 1, d = c + 1, f = -1; d < s && f < 0;) {
|
|
1253
|
+
var p = n.charCodeAt(d);
|
|
1254
|
+
p === 91 ? u += 1 : p === 93 && (--u, u === 0 && (f = d)), d += 1;
|
|
1255
|
+
}
|
|
1256
|
+
if (f < 0) return i[i.length] = "[" + n.slice(c) + "]", i;
|
|
1257
|
+
var m = n.slice(c, f + 1), h = m.slice(1, -1);
|
|
1258
|
+
if (!t.plainObjects && r.call(Object.prototype, h) && !t.allowPrototypes) return;
|
|
1259
|
+
i[i.length] = m, l += 1, c = n.indexOf("[", f + 1);
|
|
1260
|
+
}
|
|
1261
|
+
if (c >= 0) {
|
|
1262
|
+
if (t.strictDepth === !0) throw RangeError("Input depth exceeded depth option of " + t.depth + " and strictDepth is true");
|
|
1263
|
+
i[i.length] = "[" + n.slice(c) + "]";
|
|
1264
|
+
}
|
|
1265
|
+
return i;
|
|
1266
|
+
}, p = function(e, t, n, r) {
|
|
1267
|
+
if (e) {
|
|
1268
|
+
var i = f(e, n);
|
|
1269
|
+
if (i) return d(i, t, n, r);
|
|
1270
|
+
}
|
|
1271
|
+
}, m = function(e) {
|
|
1272
|
+
if (!e) return a;
|
|
1273
|
+
if (e.allowEmptyArrays !== void 0 && typeof e.allowEmptyArrays != "boolean") throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
1274
|
+
if (e.decodeDotInKeys !== void 0 && typeof e.decodeDotInKeys != "boolean") throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
1275
|
+
if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function") throw TypeError("Decoder has to be a function.");
|
|
1276
|
+
if (e.charset !== void 0 && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1277
|
+
if (e.throwOnLimitExceeded !== void 0 && typeof e.throwOnLimitExceeded != "boolean") throw TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
1278
|
+
var t = e.charset === void 0 ? a.charset : e.charset, r = e.duplicates === void 0 ? a.duplicates : e.duplicates;
|
|
1279
|
+
if (r !== "combine" && r !== "first" && r !== "last") throw TypeError("The duplicates option must be either combine, first, or last");
|
|
1280
|
+
return {
|
|
1281
|
+
allowDots: e.allowDots === void 0 ? e.decodeDotInKeys === !0 || a.allowDots : !!e.allowDots,
|
|
1282
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : a.allowEmptyArrays,
|
|
1283
|
+
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : a.allowPrototypes,
|
|
1284
|
+
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : a.allowSparse,
|
|
1285
|
+
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : a.arrayLimit,
|
|
1286
|
+
charset: t,
|
|
1287
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : a.charsetSentinel,
|
|
1288
|
+
comma: typeof e.comma == "boolean" ? e.comma : a.comma,
|
|
1289
|
+
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : a.decodeDotInKeys,
|
|
1290
|
+
decoder: typeof e.decoder == "function" ? e.decoder : a.decoder,
|
|
1291
|
+
delimiter: typeof e.delimiter == "string" || n.isRegExp(e.delimiter) ? e.delimiter : a.delimiter,
|
|
1292
|
+
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : a.depth,
|
|
1293
|
+
duplicates: r,
|
|
1294
|
+
ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
|
|
1295
|
+
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : a.interpretNumericEntities,
|
|
1296
|
+
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : a.parameterLimit,
|
|
1297
|
+
parseArrays: e.parseArrays !== !1,
|
|
1298
|
+
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : a.plainObjects,
|
|
1299
|
+
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : a.strictDepth,
|
|
1300
|
+
strictMerge: typeof e.strictMerge == "boolean" ? !!e.strictMerge : a.strictMerge,
|
|
1301
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : a.strictNullHandling,
|
|
1302
|
+
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" && e.throwOnLimitExceeded
|
|
1303
|
+
};
|
|
1304
|
+
};
|
|
1305
|
+
t.exports = function(e, t) {
|
|
1306
|
+
var r = m(t);
|
|
1307
|
+
if (e === "" || e == null) return r.plainObjects ? { __proto__: null } : {};
|
|
1308
|
+
for (var i = typeof e == "string" ? u(e, r) : e, a = r.plainObjects ? { __proto__: null } : {}, o = Object.keys(i), s = 0; s < o.length; ++s) {
|
|
1309
|
+
var c = o[s], l = p(c, i[c], r, typeof e == "string");
|
|
1310
|
+
a = n.merge(a, l, r);
|
|
1311
|
+
}
|
|
1312
|
+
return r.allowSparse === !0 ? a : n.compact(a);
|
|
1313
|
+
};
|
|
1314
|
+
})), ee = /* @__PURE__ */ e(((e, t) => {
|
|
1315
|
+
var n = W(), r = G();
|
|
1316
|
+
t.exports = {
|
|
1317
|
+
formats: H(),
|
|
1318
|
+
parse: r,
|
|
1319
|
+
stringify: n
|
|
1320
|
+
};
|
|
1321
|
+
}));
|
|
1322
|
+
//#endregion
|
|
1323
|
+
export default ee();
|
|
1324
|
+
|
|
1325
|
+
//# sourceMappingURL=lib-BFePTs6v.js.map
|