soonjs 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +8 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +650 -668
- package/dist/types.d.ts +4 -0
- package/dist/vite-plugin-soon-client.cjs +3 -3
- package/dist/vite-plugin-soon-client.js +15 -15
- package/dist/vite-plugin-soon-server.cjs +1 -1
- package/dist/vite-plugin-soon-server.js +1 -1
- package/package.json +1 -1
- /package/dist/deps/{acorn-jU-39Pbw5W-tlyikqxxb.js → acorn-jU-39Pbw5W-h3ruckghp.js} +0 -0
- /package/dist/deps/{acorn-jU-39Pbw5W-pyzr6thqf.js → acorn-jU-39Pbw5W-xkdgla69t.js} +0 -0
- /package/dist/deps/{angular-eXKcfordor-gjar1bk5h.js → angular-eXKcfordor-g9ggqmosz.js} +0 -0
- /package/dist/deps/{angular-eXKcfordor-8f5xxksmt.js → angular-eXKcfordor-uyi234ws8.js} +0 -0
- /package/dist/deps/{babel-QODt_XJZCU-bsxnxqtkc.js → babel-QODt_XJZCU-04et0pddu.js} +0 -0
- /package/dist/deps/{babel-QODt_XJZCU-aea7wd9s9.js → babel-QODt_XJZCU-9bzuwsjpv.js} +0 -0
- /package/dist/deps/{estree-_Gcr3virjH-aj6etbdw2.js → estree-_Gcr3virjH-5tfq5t2is.js} +0 -0
- /package/dist/deps/{estree-_Gcr3virjH-iw6fl1iik.js → estree-_Gcr3virjH-qwxmzf6xk.js} +0 -0
- /package/dist/deps/{flow-VkrRJr6lFd-nzn1st4yq.js → flow-VkrRJr6lFd-2vxssacuo.js} +0 -0
- /package/dist/deps/{flow-VkrRJr6lFd-frj2khjn9.js → flow-VkrRJr6lFd-x0wyj6uqd.js} +0 -0
- /package/dist/deps/{glimmer-I6jyK4xw2I-18u5lqd62.js → glimmer-I6jyK4xw2I-f6qd505ie.js} +0 -0
- /package/dist/deps/{glimmer-I6jyK4xw2I-769lz4sr2.js → glimmer-I6jyK4xw2I-z7w74nqx7.js} +0 -0
- /package/dist/deps/{graphql-F7JRnTC996-e5p1nm12p.js → graphql-F7JRnTC996-9c67wb7ep.js} +0 -0
- /package/dist/deps/{graphql-F7JRnTC996-ayvu1usbu.js → graphql-F7JRnTC996-fivswe0wh.js} +0 -0
- /package/dist/deps/{html-C-ZYESkdqr-8z224ckkh.js → html-C-ZYESkdqr-9u3x97fu2.js} +0 -0
- /package/dist/deps/{html-C-ZYESkdqr-11a9koibr.js → html-C-ZYESkdqr-sprodg7gy.js} +0 -0
- /package/dist/deps/{markdown-4m9fGqwyBD-cxujxs2rc.js → markdown-4m9fGqwyBD-p01s6zl24.js} +0 -0
- /package/dist/deps/{markdown-4m9fGqwyBD-7ioemazbo.js → markdown-4m9fGqwyBD-xydhe8qra.js} +0 -0
- /package/dist/deps/{meriyah-2XmgupY1jB-k4r4wqa1m.js → meriyah-2XmgupY1jB-jcofsczid.js} +0 -0
- /package/dist/deps/{meriyah-2XmgupY1jB-7njqx9g3a.js → meriyah-2XmgupY1jB-w36vfsxw0.js} +0 -0
- /package/dist/deps/{postcss-UtIjNac23s-llf22drl3.js → postcss-UtIjNac23s-64ewg9fun.js} +0 -0
- /package/dist/deps/{postcss-UtIjNac23s-7atpp9bv0.js → postcss-UtIjNac23s-6windfpuz.js} +0 -0
- /package/dist/deps/{soon-id-t25L9qRGGZ-ho0x5m1c3.js → soon-id-t25L9qRGGZ-1fn0mvfiw.js} +0 -0
- /package/dist/deps/{soon-id-t25L9qRGGZ-zb70pi9of.js → soon-id-t25L9qRGGZ-zwi3vo6up.js} +0 -0
- /package/dist/deps/{typescript-7W94NRN5-v-dp5rdx11f.js → typescript-7W94NRN5-v-audtlu32h.js} +0 -0
- /package/dist/deps/{typescript-7W94NRN5-v-vmk97jc6x.js → typescript-7W94NRN5-v-bsdaapgi8.js} +0 -0
- /package/dist/deps/{yaml-GTMY6ek0xu-pown9flit.js → yaml-GTMY6ek0xu-dwjgwemiv.js} +0 -0
- /package/dist/deps/{yaml-GTMY6ek0xu-zrnmxlhi1.js → yaml-GTMY6ek0xu-h1v3g8nse.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var P = (r, e, t) =>
|
|
4
|
-
import { PassThrough as
|
|
5
|
-
import { g as
|
|
6
|
-
import
|
|
1
|
+
var qt = Object.defineProperty;
|
|
2
|
+
var Wt = (r, e, t) => e in r ? qt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var P = (r, e, t) => Wt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { PassThrough as Ft } from "stream";
|
|
5
|
+
import { g as nt, c as Ir, u as Gt } from "./deps/soon-id-t25L9qRGGZ-1fn0mvfiw.js";
|
|
6
|
+
import Ht from "util";
|
|
7
7
|
var H = {};
|
|
8
8
|
Object.defineProperty(H, "__esModule", { value: !0 });
|
|
9
9
|
H.TokenData = void 0;
|
|
10
|
-
H.parse =
|
|
11
|
-
H.compile =
|
|
12
|
-
var
|
|
13
|
-
H.pathToRegexp =
|
|
14
|
-
const
|
|
10
|
+
H.parse = wr;
|
|
11
|
+
H.compile = Qt;
|
|
12
|
+
var jt = H.match = Yt;
|
|
13
|
+
H.pathToRegexp = lt;
|
|
14
|
+
const at = "/", gr = (r) => r, kt = new RegExp("^\\p{XID_Continue}$", "u"), fe = "https://git.new/pathToRegexpError", zt = {
|
|
15
15
|
"!": "!",
|
|
16
16
|
"@": "@",
|
|
17
17
|
";": ";",
|
|
@@ -22,11 +22,11 @@ const ut = "/", br = (r) => r, Jt = new RegExp("^\\p{XID_Continue}$", "u"), fe =
|
|
|
22
22
|
"{": "{",
|
|
23
23
|
"}": "}"
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function Kt(r) {
|
|
26
26
|
const e = [...r], t = [];
|
|
27
27
|
let n = 0;
|
|
28
28
|
for (; n < e.length; ) {
|
|
29
|
-
const a = e[n], i =
|
|
29
|
+
const a = e[n], i = zt[a];
|
|
30
30
|
if (i) {
|
|
31
31
|
t.push({ type: i, index: n++, value: a });
|
|
32
32
|
continue;
|
|
@@ -37,7 +37,7 @@ function Yt(r) {
|
|
|
37
37
|
}
|
|
38
38
|
if (a === ":") {
|
|
39
39
|
let o = "";
|
|
40
|
-
for (;
|
|
40
|
+
for (; kt.test(e[++n]); )
|
|
41
41
|
o += e[n];
|
|
42
42
|
if (!o)
|
|
43
43
|
throw new TypeError(`Missing parameter name at ${n}`);
|
|
@@ -46,7 +46,7 @@ function Yt(r) {
|
|
|
46
46
|
}
|
|
47
47
|
if (a === "(") {
|
|
48
48
|
const o = n++;
|
|
49
|
-
let
|
|
49
|
+
let f = 1, l = "";
|
|
50
50
|
if (e[n] === "?")
|
|
51
51
|
throw new TypeError(`Pattern cannot start with "?" at ${n}`);
|
|
52
52
|
for (; n < e.length; ) {
|
|
@@ -55,15 +55,15 @@ function Yt(r) {
|
|
|
55
55
|
continue;
|
|
56
56
|
}
|
|
57
57
|
if (e[n] === ")") {
|
|
58
|
-
if (
|
|
58
|
+
if (f--, f === 0) {
|
|
59
59
|
n++;
|
|
60
60
|
break;
|
|
61
61
|
}
|
|
62
|
-
} else if (e[n] === "(" && (
|
|
62
|
+
} else if (e[n] === "(" && (f++, e[n + 1] !== "?"))
|
|
63
63
|
throw new TypeError(`Capturing groups are not allowed at ${n}`);
|
|
64
64
|
l += e[n++];
|
|
65
65
|
}
|
|
66
|
-
if (
|
|
66
|
+
if (f)
|
|
67
67
|
throw new TypeError(`Unbalanced pattern at ${o}`);
|
|
68
68
|
if (!l)
|
|
69
69
|
throw new TypeError(`Missing pattern at ${o}`);
|
|
@@ -72,9 +72,9 @@ function Yt(r) {
|
|
|
72
72
|
}
|
|
73
73
|
t.push({ type: "CHAR", index: n, value: e[n++] });
|
|
74
74
|
}
|
|
75
|
-
return t.push({ type: "END", index: n, value: "" }), new
|
|
75
|
+
return t.push({ type: "END", index: n, value: "" }), new Vt(t);
|
|
76
76
|
}
|
|
77
|
-
class
|
|
77
|
+
class Vt {
|
|
78
78
|
constructor(e) {
|
|
79
79
|
this.tokens = e, this.index = 0;
|
|
80
80
|
}
|
|
@@ -109,21 +109,21 @@ class Me {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
H.TokenData = Me;
|
|
112
|
-
function
|
|
113
|
-
const { encodePath: t =
|
|
112
|
+
function wr(r, e = {}) {
|
|
113
|
+
const { encodePath: t = gr, delimiter: n = t(at) } = e, a = [], i = Kt(r);
|
|
114
114
|
let o = 0;
|
|
115
115
|
do {
|
|
116
|
-
const
|
|
117
|
-
|
|
116
|
+
const f = i.text();
|
|
117
|
+
f && a.push(t(f));
|
|
118
118
|
const l = i.tryConsume("NAME"), c = i.tryConsume("PATTERN");
|
|
119
119
|
if (l || c) {
|
|
120
120
|
a.push({
|
|
121
121
|
name: l || String(o++),
|
|
122
122
|
pattern: c
|
|
123
123
|
});
|
|
124
|
-
const
|
|
125
|
-
if (
|
|
126
|
-
throw new TypeError(`Unexpected * at ${
|
|
124
|
+
const u = i.peek();
|
|
125
|
+
if (u.type === "*")
|
|
126
|
+
throw new TypeError(`Unexpected * at ${u.index}, you probably want \`/*\` or \`{/:foo}*\`: ${fe}`);
|
|
127
127
|
continue;
|
|
128
128
|
}
|
|
129
129
|
if (i.tryConsume("*")) {
|
|
@@ -136,15 +136,15 @@ function Er(r, e = {}) {
|
|
|
136
136
|
continue;
|
|
137
137
|
}
|
|
138
138
|
if (i.tryConsume("{")) {
|
|
139
|
-
const
|
|
139
|
+
const u = i.text(), d = i.tryConsume("NAME"), y = i.tryConsume("PATTERN"), h = i.text(), g = i.tryConsume(";") && i.text();
|
|
140
140
|
i.consume("}");
|
|
141
|
-
const
|
|
141
|
+
const $ = i.modifier();
|
|
142
142
|
a.push({
|
|
143
143
|
name: d || (y ? String(o++) : ""),
|
|
144
|
-
prefix: t(
|
|
144
|
+
prefix: t(u),
|
|
145
145
|
suffix: t(h),
|
|
146
146
|
pattern: y,
|
|
147
|
-
modifier:
|
|
147
|
+
modifier: $,
|
|
148
148
|
separator: g
|
|
149
149
|
});
|
|
150
150
|
continue;
|
|
@@ -154,30 +154,30 @@ function Er(r, e = {}) {
|
|
|
154
154
|
} while (!0);
|
|
155
155
|
return new Me(a, n);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
const t = r instanceof Me ? r :
|
|
159
|
-
return
|
|
157
|
+
function Qt(r, e = {}) {
|
|
158
|
+
const t = r instanceof Me ? r : wr(r, e);
|
|
159
|
+
return Xt(t, e);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Jt(r, e) {
|
|
162
162
|
if (typeof r == "string")
|
|
163
163
|
return () => r;
|
|
164
|
-
const t = e ||
|
|
164
|
+
const t = e || gr, n = r.modifier === "+" || r.modifier === "*", a = r.modifier === "?" || r.modifier === "*", { prefix: i = "", suffix: o = "", separator: f = o + i } = r;
|
|
165
165
|
if (e && n) {
|
|
166
|
-
const c = (p,
|
|
166
|
+
const c = (p, u) => {
|
|
167
167
|
if (typeof p != "string")
|
|
168
|
-
throw new TypeError(`Expected "${r.name}/${
|
|
168
|
+
throw new TypeError(`Expected "${r.name}/${u}" to be a string`);
|
|
169
169
|
return t(p);
|
|
170
170
|
}, s = (p) => {
|
|
171
171
|
if (!Array.isArray(p))
|
|
172
172
|
throw new TypeError(`Expected "${r.name}" to be an array`);
|
|
173
|
-
return p.length === 0 ? "" : i + p.map(c).join(
|
|
173
|
+
return p.length === 0 ? "" : i + p.map(c).join(f) + o;
|
|
174
174
|
};
|
|
175
175
|
return a ? (p) => {
|
|
176
|
-
const
|
|
177
|
-
return
|
|
176
|
+
const u = p[r.name];
|
|
177
|
+
return u == null ? "" : u.length ? s(u) : "";
|
|
178
178
|
} : (p) => {
|
|
179
|
-
const
|
|
180
|
-
return s(
|
|
179
|
+
const u = p[r.name];
|
|
180
|
+
return s(u);
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
183
|
const l = (c) => {
|
|
@@ -193,94 +193,94 @@ function rn(r, e) {
|
|
|
193
193
|
return l(s);
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
const { encode: t = encodeURIComponent, loose: n = !0, validate: a = !0, strict: i = !1 } = e, o =
|
|
198
|
-
const
|
|
196
|
+
function Xt(r, e) {
|
|
197
|
+
const { encode: t = encodeURIComponent, loose: n = !0, validate: a = !0, strict: i = !1 } = e, o = it(e), f = Sr(n, r.delimiter), l = ot(r, f, [], o, i), c = r.tokens.map((s, p) => {
|
|
198
|
+
const u = Jt(s, t);
|
|
199
199
|
if (!a || typeof s == "string")
|
|
200
|
-
return
|
|
200
|
+
return u;
|
|
201
201
|
const d = new RegExp(`^${l[p]}$`, o);
|
|
202
202
|
return (y) => {
|
|
203
|
-
const h =
|
|
203
|
+
const h = u(y);
|
|
204
204
|
if (!d.test(h))
|
|
205
205
|
throw new TypeError(`Invalid value for "${s.name}": ${JSON.stringify(h)}`);
|
|
206
206
|
return h;
|
|
207
207
|
};
|
|
208
208
|
});
|
|
209
209
|
return function(p = {}) {
|
|
210
|
-
let
|
|
210
|
+
let u = "";
|
|
211
211
|
for (const d of c)
|
|
212
|
-
|
|
213
|
-
return
|
|
212
|
+
u += d(p);
|
|
213
|
+
return u;
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
const { decode: t = decodeURIComponent, loose: n = !0, delimiter: a =
|
|
216
|
+
function Yt(r, e = {}) {
|
|
217
|
+
const { decode: t = decodeURIComponent, loose: n = !0, delimiter: a = at } = e, i = lt(r, e), o = Sr(n, a), f = i.keys.map((l) => {
|
|
218
218
|
if (t && (l.modifier === "+" || l.modifier === "*")) {
|
|
219
|
-
const { prefix: c = "", suffix: s = "", separator: p = s + c } = l,
|
|
220
|
-
return (d) => d.split(
|
|
219
|
+
const { prefix: c = "", suffix: s = "", separator: p = s + c } = l, u = new RegExp(o(p), "g");
|
|
220
|
+
return (d) => d.split(u).map(t);
|
|
221
221
|
}
|
|
222
|
-
return t ||
|
|
222
|
+
return t || gr;
|
|
223
223
|
});
|
|
224
224
|
return function(c) {
|
|
225
225
|
const s = i.exec(c);
|
|
226
226
|
if (!s)
|
|
227
227
|
return !1;
|
|
228
|
-
const { 0: p, index:
|
|
228
|
+
const { 0: p, index: u } = s, d = /* @__PURE__ */ Object.create(null);
|
|
229
229
|
for (let y = 1; y < s.length; y++) {
|
|
230
230
|
if (s[y] === void 0)
|
|
231
231
|
continue;
|
|
232
|
-
const h = i.keys[y - 1], g =
|
|
232
|
+
const h = i.keys[y - 1], g = f[y - 1];
|
|
233
233
|
d[h.name] = g(s[y]);
|
|
234
234
|
}
|
|
235
|
-
return { path: p, index:
|
|
235
|
+
return { path: p, index: u, params: d };
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
function Y(r) {
|
|
239
239
|
return r.replace(/[.+*?^${}()[\]|/\\]/g, "\\$&");
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Zt(r, e) {
|
|
242
242
|
const t = Y(r);
|
|
243
243
|
return e ? `(?:${t})+(?!${t})` : t;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function Sr(r, e) {
|
|
246
246
|
if (!r)
|
|
247
247
|
return Y;
|
|
248
248
|
const t = new RegExp(`(?:(?!${Y(e)}).)+|(.)`, "g");
|
|
249
|
-
return (n) => n.replace(t,
|
|
249
|
+
return (n) => n.replace(t, Zt);
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function it(r) {
|
|
252
252
|
return r.sensitive ? "" : "i";
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
const a = r instanceof Me ? r :
|
|
256
|
-
let
|
|
257
|
-
return
|
|
254
|
+
function Rr(r, e, t, n) {
|
|
255
|
+
const a = r instanceof Me ? r : wr(r, n), { trailing: i = !0, loose: o = !0, start: f = !0, end: l = !0, strict: c = !1 } = n, s = Sr(o, a.delimiter), p = ot(a, s, e, t, c);
|
|
256
|
+
let u = f ? "^" : "";
|
|
257
|
+
return u += p.join(""), i && (u += `(?:${s(a.delimiter)}$)?`), u += l ? "$" : `(?=${Y(a.delimiter)}|$)`, u;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function ot(r, e, t, n, a) {
|
|
260
260
|
const i = `(?:(?!${Y(r.delimiter)}).)+?`;
|
|
261
|
-
let o = "",
|
|
261
|
+
let o = "", f = !0;
|
|
262
262
|
return r.tokens.map((l) => {
|
|
263
263
|
if (typeof l == "string")
|
|
264
264
|
return o = l, e(l);
|
|
265
|
-
const { prefix: c = "", suffix: s = "", separator: p = s + c, modifier:
|
|
265
|
+
const { prefix: c = "", suffix: s = "", separator: p = s + c, modifier: u = "" } = l, d = e(c), y = e(s);
|
|
266
266
|
if (l.name) {
|
|
267
|
-
const h = l.pattern ? `(?:${l.pattern})` : i, g =
|
|
268
|
-
if (
|
|
267
|
+
const h = l.pattern ? `(?:${l.pattern})` : i, g = en(h, l.name, n);
|
|
268
|
+
if (f || (f = He(g, c || o)), !f)
|
|
269
269
|
throw new TypeError(`Ambiguous pattern for "${l.name}": ${fe}`);
|
|
270
|
-
if (
|
|
271
|
-
const
|
|
272
|
-
if (!
|
|
270
|
+
if (f = !a || He(g, s), o = "", t.push(l), u === "+" || u === "*") {
|
|
271
|
+
const $ = u === "*" ? "?" : "", E = e(p);
|
|
272
|
+
if (!E)
|
|
273
273
|
throw new TypeError(`Missing separator for "${l.name}": ${fe}`);
|
|
274
|
-
if (
|
|
274
|
+
if (f || (f = !a || He(g, p)), !f)
|
|
275
275
|
throw new TypeError(`Ambiguous pattern for "${l.name}" separator: ${fe}`);
|
|
276
|
-
return
|
|
276
|
+
return f = !a, `(?:${d}(${h}(?:${E}${h})*)${y})${$}`;
|
|
277
277
|
}
|
|
278
|
-
return `(?:${d}(${h})${y})${
|
|
278
|
+
return `(?:${d}(${h})${y})${u}`;
|
|
279
279
|
}
|
|
280
|
-
return `(?:${d}${y})${
|
|
280
|
+
return `(?:${d}${y})${u}`;
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function en(r, e, t) {
|
|
284
284
|
try {
|
|
285
285
|
return new RegExp(`^${r}$`, t);
|
|
286
286
|
} catch (n) {
|
|
@@ -290,13 +290,13 @@ function on(r, e, t) {
|
|
|
290
290
|
function He(r, e) {
|
|
291
291
|
return e ? !r.test(e) : !1;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
const t = [], n =
|
|
293
|
+
function lt(r, e = {}) {
|
|
294
|
+
const t = [], n = it(e);
|
|
295
295
|
if (Array.isArray(r)) {
|
|
296
|
-
const i = r.map((o) =>
|
|
296
|
+
const i = r.map((o) => Rr(o, t, n, e));
|
|
297
297
|
return Object.assign(new RegExp(i.join("|")), { keys: t });
|
|
298
298
|
}
|
|
299
|
-
const a =
|
|
299
|
+
const a = Rr(r, t, n, e);
|
|
300
300
|
return Object.assign(new RegExp(a), { keys: t });
|
|
301
301
|
}
|
|
302
302
|
var De = {};
|
|
@@ -304,8 +304,8 @@ Object.defineProperty(De, "__esModule", {
|
|
|
304
304
|
value: !0
|
|
305
305
|
});
|
|
306
306
|
De.Observable = void 0;
|
|
307
|
-
const
|
|
308
|
-
function
|
|
307
|
+
const ft = (r) => !!Symbol[r], br = (r) => ft(r) ? Symbol[r] : "@@" + r, rn = br("iterator"), cr = br("observable"), ut = br("species");
|
|
308
|
+
function _e(r, e) {
|
|
309
309
|
let t = r[e];
|
|
310
310
|
if (t != null) {
|
|
311
311
|
if (typeof t != "function") throw new TypeError(t + " is not a function");
|
|
@@ -314,9 +314,9 @@ function Ie(r, e) {
|
|
|
314
314
|
}
|
|
315
315
|
function ie(r) {
|
|
316
316
|
let e = r.constructor;
|
|
317
|
-
return e !== void 0 && (e = e[
|
|
317
|
+
return e !== void 0 && (e = e[ut], e === null && (e = void 0)), e !== void 0 ? e : Ne;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function tn(r) {
|
|
320
320
|
return r instanceof Ne;
|
|
321
321
|
}
|
|
322
322
|
function Z(r) {
|
|
@@ -333,52 +333,52 @@ function Ee(r) {
|
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function ct(r) {
|
|
337
337
|
let e = r._cleanup;
|
|
338
338
|
if (e !== void 0 && (r._cleanup = void 0, !!e))
|
|
339
339
|
try {
|
|
340
340
|
if (typeof e == "function")
|
|
341
341
|
e();
|
|
342
342
|
else {
|
|
343
|
-
let t =
|
|
343
|
+
let t = _e(e, "unsubscribe");
|
|
344
344
|
t && t.call(e);
|
|
345
345
|
}
|
|
346
346
|
} catch (t) {
|
|
347
347
|
Z(t);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function sr(r) {
|
|
351
351
|
r._observer = void 0, r._queue = void 0, r._state = "closed";
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function nn(r) {
|
|
354
354
|
let e = r._queue;
|
|
355
355
|
if (e) {
|
|
356
356
|
r._queue = void 0, r._state = "ready";
|
|
357
|
-
for (let t = 0; t < e.length && (
|
|
357
|
+
for (let t = 0; t < e.length && (st(r, e[t].type, e[t].value), r._state !== "closed"); ++t)
|
|
358
358
|
;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function st(r, e, t) {
|
|
362
362
|
r._state = "running";
|
|
363
363
|
let n = r._observer;
|
|
364
364
|
try {
|
|
365
|
-
let a =
|
|
365
|
+
let a = _e(n, e);
|
|
366
366
|
switch (e) {
|
|
367
367
|
case "next":
|
|
368
368
|
a && a.call(n, t);
|
|
369
369
|
break;
|
|
370
370
|
case "error":
|
|
371
|
-
if (
|
|
371
|
+
if (sr(r), a) a.call(n, t);
|
|
372
372
|
else throw t;
|
|
373
373
|
break;
|
|
374
374
|
case "complete":
|
|
375
|
-
|
|
375
|
+
sr(r), a && a.call(n);
|
|
376
376
|
break;
|
|
377
377
|
}
|
|
378
378
|
} catch (a) {
|
|
379
379
|
Z(a);
|
|
380
380
|
}
|
|
381
|
-
r._state === "closed" ?
|
|
381
|
+
r._state === "closed" ? ct(r) : r._state === "running" && (r._state = "ready");
|
|
382
382
|
}
|
|
383
383
|
function je(r, e, t) {
|
|
384
384
|
if (r._state !== "closed") {
|
|
@@ -393,13 +393,13 @@ function je(r, e, t) {
|
|
|
393
393
|
r._state = "buffering", r._queue = [{
|
|
394
394
|
type: e,
|
|
395
395
|
value: t
|
|
396
|
-
}], Ee(() =>
|
|
396
|
+
}], Ee(() => nn(r));
|
|
397
397
|
return;
|
|
398
398
|
}
|
|
399
|
-
|
|
399
|
+
st(r, e, t);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
class
|
|
402
|
+
class an {
|
|
403
403
|
constructor(e, t) {
|
|
404
404
|
this._cleanup = void 0, this._observer = e, this._queue = void 0, this._state = "initializing";
|
|
405
405
|
let n = this, a = {
|
|
@@ -427,7 +427,7 @@ class cn {
|
|
|
427
427
|
return this._state === "closed";
|
|
428
428
|
}
|
|
429
429
|
unsubscribe() {
|
|
430
|
-
this._state !== "closed" && (
|
|
430
|
+
this._state !== "closed" && (sr(this), ct(this));
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
let Ne = class Ae {
|
|
@@ -441,7 +441,7 @@ let Ne = class Ae {
|
|
|
441
441
|
next: e,
|
|
442
442
|
error: arguments[1],
|
|
443
443
|
complete: arguments[2]
|
|
444
|
-
}), new
|
|
444
|
+
}), new an(e, this._subscriber);
|
|
445
445
|
}
|
|
446
446
|
forEach(e) {
|
|
447
447
|
return new Promise((t, n) => {
|
|
@@ -456,8 +456,8 @@ let Ne = class Ae {
|
|
|
456
456
|
next(o) {
|
|
457
457
|
try {
|
|
458
458
|
e(o, a);
|
|
459
|
-
} catch (
|
|
460
|
-
n(
|
|
459
|
+
} catch (f) {
|
|
460
|
+
n(f), i.unsubscribe();
|
|
461
461
|
}
|
|
462
462
|
},
|
|
463
463
|
error: n,
|
|
@@ -508,24 +508,24 @@ let Ne = class Ae {
|
|
|
508
508
|
reduce(e) {
|
|
509
509
|
if (typeof e != "function") throw new TypeError(e + " is not a function");
|
|
510
510
|
let t = ie(this), n = arguments.length > 1, a = !1, o = arguments[1];
|
|
511
|
-
return new t((
|
|
511
|
+
return new t((f) => this.subscribe({
|
|
512
512
|
next(l) {
|
|
513
513
|
let c = !a;
|
|
514
514
|
if (a = !0, !c || n)
|
|
515
515
|
try {
|
|
516
516
|
o = e(o, l);
|
|
517
517
|
} catch (s) {
|
|
518
|
-
return
|
|
518
|
+
return f.error(s);
|
|
519
519
|
}
|
|
520
520
|
else
|
|
521
521
|
o = l;
|
|
522
522
|
},
|
|
523
523
|
error(l) {
|
|
524
|
-
|
|
524
|
+
f.error(l);
|
|
525
525
|
},
|
|
526
526
|
complete() {
|
|
527
|
-
if (!a && !n) return
|
|
528
|
-
|
|
527
|
+
if (!a && !n) return f.error(new TypeError("Cannot reduce an empty sequence"));
|
|
528
|
+
f.next(o), f.complete();
|
|
529
529
|
}
|
|
530
530
|
}));
|
|
531
531
|
}
|
|
@@ -537,8 +537,8 @@ let Ne = class Ae {
|
|
|
537
537
|
let t = ie(this);
|
|
538
538
|
return new t((n) => {
|
|
539
539
|
let a, i = 0;
|
|
540
|
-
function o(
|
|
541
|
-
a =
|
|
540
|
+
function o(f) {
|
|
541
|
+
a = f.subscribe({
|
|
542
542
|
next(l) {
|
|
543
543
|
n.next(l);
|
|
544
544
|
},
|
|
@@ -560,14 +560,14 @@ let Ne = class Ae {
|
|
|
560
560
|
let t = ie(this);
|
|
561
561
|
return new t((n) => {
|
|
562
562
|
let a = [], i = this.subscribe({
|
|
563
|
-
next(
|
|
563
|
+
next(f) {
|
|
564
564
|
if (e)
|
|
565
565
|
try {
|
|
566
|
-
|
|
566
|
+
f = e(f);
|
|
567
567
|
} catch (c) {
|
|
568
568
|
return n.error(c);
|
|
569
569
|
}
|
|
570
|
-
let l = t.from(
|
|
570
|
+
let l = t.from(f).subscribe({
|
|
571
571
|
next(c) {
|
|
572
572
|
n.next(c);
|
|
573
573
|
},
|
|
@@ -581,8 +581,8 @@ let Ne = class Ae {
|
|
|
581
581
|
});
|
|
582
582
|
a.push(l);
|
|
583
583
|
},
|
|
584
|
-
error(
|
|
585
|
-
n.error(
|
|
584
|
+
error(f) {
|
|
585
|
+
n.error(f);
|
|
586
586
|
},
|
|
587
587
|
complete() {
|
|
588
588
|
o();
|
|
@@ -592,23 +592,23 @@ let Ne = class Ae {
|
|
|
592
592
|
i.closed && a.length === 0 && n.complete();
|
|
593
593
|
}
|
|
594
594
|
return () => {
|
|
595
|
-
a.forEach((
|
|
595
|
+
a.forEach((f) => f.unsubscribe()), i.unsubscribe();
|
|
596
596
|
};
|
|
597
597
|
});
|
|
598
598
|
}
|
|
599
|
-
[
|
|
599
|
+
[cr]() {
|
|
600
600
|
return this;
|
|
601
601
|
}
|
|
602
602
|
static from(e) {
|
|
603
603
|
let t = typeof this == "function" ? this : Ae;
|
|
604
604
|
if (e == null) throw new TypeError(e + " is not an object");
|
|
605
|
-
let n =
|
|
605
|
+
let n = _e(e, cr);
|
|
606
606
|
if (n) {
|
|
607
607
|
let a = n.call(e);
|
|
608
608
|
if (Object(a) !== a) throw new TypeError(a + " is not an object");
|
|
609
|
-
return
|
|
609
|
+
return tn(a) && a.constructor === t ? a : new t((i) => a.subscribe(i));
|
|
610
610
|
}
|
|
611
|
-
if (
|
|
611
|
+
if (ft("iterator") && (n = _e(e, rn), n))
|
|
612
612
|
return new t((a) => {
|
|
613
613
|
Ee(() => {
|
|
614
614
|
if (!a.closed) {
|
|
@@ -642,47 +642,47 @@ let Ne = class Ae {
|
|
|
642
642
|
});
|
|
643
643
|
});
|
|
644
644
|
}
|
|
645
|
-
static get [
|
|
645
|
+
static get [ut]() {
|
|
646
646
|
return this;
|
|
647
647
|
}
|
|
648
648
|
};
|
|
649
649
|
De.Observable = Ne;
|
|
650
650
|
Object.defineProperty(Ne, Symbol("extensions"), {
|
|
651
651
|
value: {
|
|
652
|
-
symbol:
|
|
652
|
+
symbol: cr,
|
|
653
653
|
hostReportError: Z
|
|
654
654
|
},
|
|
655
655
|
configurable: !0
|
|
656
656
|
});
|
|
657
|
-
var
|
|
658
|
-
const
|
|
659
|
-
var te = TypeError,
|
|
657
|
+
var on = De.Observable;
|
|
658
|
+
const pt = /* @__PURE__ */ nt(on);
|
|
659
|
+
var te = TypeError, ln = Ht.inspect, Er = typeof Map == "function" && Map.prototype, ke = Object.getOwnPropertyDescriptor && Er ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ie = Er && ke && typeof ke.get == "function" ? ke.get : null, Cr = Er && Map.prototype.forEach, Ar = typeof Set == "function" && Set.prototype, ze = Object.getOwnPropertyDescriptor && Ar ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Re = Ar && ze && typeof ze.get == "function" ? ze.get : null, Tr = Ar && Set.prototype.forEach, fn = typeof WeakMap == "function" && WeakMap.prototype, ue = fn ? WeakMap.prototype.has : null, un = typeof WeakSet == "function" && WeakSet.prototype, ce = un ? WeakSet.prototype.has : null, cn = typeof WeakRef == "function" && WeakRef.prototype, Mr = cn ? WeakRef.prototype.deref : null, sn = Boolean.prototype.valueOf, pn = Object.prototype.toString, yn = Function.prototype.toString, dn = String.prototype.match, $r = String.prototype.slice, L = String.prototype.replace, hn = String.prototype.toUpperCase, Dr = String.prototype.toLowerCase, yt = RegExp.prototype.test, Nr = Array.prototype.concat, I = Array.prototype.join, mn = Array.prototype.slice, Lr = Math.floor, pr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ke = Object.getOwnPropertySymbols, yr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ee = typeof Symbol == "function" && typeof Symbol.iterator == "object", se = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ee || !0) ? Symbol.toStringTag : null, dt = Object.prototype.propertyIsEnumerable, Ur = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
|
|
660
660
|
return r.__proto__;
|
|
661
661
|
} : null);
|
|
662
|
-
function
|
|
663
|
-
if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 ||
|
|
662
|
+
function Br(r, e) {
|
|
663
|
+
if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || yt.call(/e/, e))
|
|
664
664
|
return e;
|
|
665
665
|
var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
666
666
|
if (typeof r == "number") {
|
|
667
|
-
var n = r < 0 ? -
|
|
667
|
+
var n = r < 0 ? -Lr(-r) : Lr(r);
|
|
668
668
|
if (n !== r) {
|
|
669
|
-
var a = String(n), i =
|
|
669
|
+
var a = String(n), i = $r.call(e, a.length + 1);
|
|
670
670
|
return L.call(a, t, "$&_") + "." + L.call(L.call(i, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
673
|
return L.call(e, t, "$&_");
|
|
674
674
|
}
|
|
675
|
-
var
|
|
675
|
+
var dr = ln, qr = dr.custom, Wr = vt(qr) ? qr : null, ht = {
|
|
676
676
|
__proto__: null,
|
|
677
677
|
double: '"',
|
|
678
678
|
single: "'"
|
|
679
|
-
},
|
|
679
|
+
}, vn = {
|
|
680
680
|
__proto__: null,
|
|
681
681
|
double: /(["\\])/g,
|
|
682
682
|
single: /(['\\])/g
|
|
683
683
|
}, Le = function r(e, t, n, a) {
|
|
684
684
|
var i = t || {};
|
|
685
|
-
if (T(i, "quoteStyle") && !T(
|
|
685
|
+
if (T(i, "quoteStyle") && !T(ht, i.quoteStyle))
|
|
686
686
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
687
687
|
if (T(i, "maxStringLength") && (typeof i.maxStringLength == "number" ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0 : i.maxStringLength !== null))
|
|
688
688
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
@@ -693,7 +693,7 @@ var vr = pn, Gr = vr.custom, Hr = Et(Gr) ? Gr : null, St = {
|
|
|
693
693
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
694
694
|
if (T(i, "numericSeparator") && typeof i.numericSeparator != "boolean")
|
|
695
695
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
696
|
-
var
|
|
696
|
+
var f = i.numericSeparator;
|
|
697
697
|
if (typeof e > "u")
|
|
698
698
|
return "undefined";
|
|
699
699
|
if (e === null)
|
|
@@ -701,27 +701,27 @@ var vr = pn, Gr = vr.custom, Hr = Et(Gr) ? Gr : null, St = {
|
|
|
701
701
|
if (typeof e == "boolean")
|
|
702
702
|
return e ? "true" : "false";
|
|
703
703
|
if (typeof e == "string")
|
|
704
|
-
return
|
|
704
|
+
return wt(e, i);
|
|
705
705
|
if (typeof e == "number") {
|
|
706
706
|
if (e === 0)
|
|
707
707
|
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
708
708
|
var l = String(e);
|
|
709
|
-
return
|
|
709
|
+
return f ? Br(e, l) : l;
|
|
710
710
|
}
|
|
711
711
|
if (typeof e == "bigint") {
|
|
712
712
|
var c = String(e) + "n";
|
|
713
|
-
return
|
|
713
|
+
return f ? Br(e, c) : c;
|
|
714
714
|
}
|
|
715
715
|
var s = typeof i.depth > "u" ? 5 : i.depth;
|
|
716
716
|
if (typeof n > "u" && (n = 0), n >= s && s > 0 && typeof e == "object")
|
|
717
|
-
return
|
|
718
|
-
var p =
|
|
717
|
+
return hr(e) ? "[Array]" : "[Object]";
|
|
718
|
+
var p = Nn(i, n);
|
|
719
719
|
if (typeof a > "u")
|
|
720
720
|
a = [];
|
|
721
|
-
else if (
|
|
721
|
+
else if (gt(a, e) >= 0)
|
|
722
722
|
return "[Circular]";
|
|
723
|
-
function
|
|
724
|
-
if (N && (a =
|
|
723
|
+
function u(x, N, C) {
|
|
724
|
+
if (N && (a = mn.call(a), a.push(N)), C) {
|
|
725
725
|
var ae = {
|
|
726
726
|
depth: i.depth
|
|
727
727
|
};
|
|
@@ -729,140 +729,140 @@ var vr = pn, Gr = vr.custom, Hr = Et(Gr) ? Gr : null, St = {
|
|
|
729
729
|
}
|
|
730
730
|
return r(x, i, n + 1, a);
|
|
731
731
|
}
|
|
732
|
-
if (typeof e == "function" && !
|
|
733
|
-
var d =
|
|
734
|
-
return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (y.length > 0 ? " { " +
|
|
732
|
+
if (typeof e == "function" && !Fr(e)) {
|
|
733
|
+
var d = xn(e), y = Se(e, u);
|
|
734
|
+
return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (y.length > 0 ? " { " + I.call(y, ", ") + " }" : "");
|
|
735
735
|
}
|
|
736
|
-
if (
|
|
737
|
-
var h = ee ? L.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") :
|
|
736
|
+
if (vt(e)) {
|
|
737
|
+
var h = ee ? L.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : yr.call(e);
|
|
738
738
|
return typeof e == "object" && !ee ? oe(h) : h;
|
|
739
739
|
}
|
|
740
|
-
if (
|
|
741
|
-
for (var g = "<" +
|
|
742
|
-
g += " " +
|
|
743
|
-
return g += ">", e.childNodes && e.childNodes.length && (g += "..."), g += "</" +
|
|
740
|
+
if (Tn(e)) {
|
|
741
|
+
for (var g = "<" + Dr.call(String(e.nodeName)), $ = e.attributes || [], E = 0; E < $.length; E++)
|
|
742
|
+
g += " " + $[E].name + "=" + mt(gn($[E].value), "double", i);
|
|
743
|
+
return g += ">", e.childNodes && e.childNodes.length && (g += "..."), g += "</" + Dr.call(String(e.nodeName)) + ">", g;
|
|
744
744
|
}
|
|
745
|
-
if (
|
|
745
|
+
if (hr(e)) {
|
|
746
746
|
if (e.length === 0)
|
|
747
747
|
return "[]";
|
|
748
|
-
var m = Se(e,
|
|
749
|
-
return p && !
|
|
748
|
+
var m = Se(e, u);
|
|
749
|
+
return p && !Dn(m) ? "[" + mr(m, p) + "]" : "[ " + I.call(m, ", ") + " ]";
|
|
750
750
|
}
|
|
751
|
-
if (
|
|
752
|
-
var M = Se(e,
|
|
753
|
-
return !("cause" in Error.prototype) && "cause" in e && !
|
|
751
|
+
if (Sn(e)) {
|
|
752
|
+
var M = Se(e, u);
|
|
753
|
+
return !("cause" in Error.prototype) && "cause" in e && !dt.call(e, "cause") ? "{ [" + String(e) + "] " + I.call(Nr.call("[cause]: " + u(e.cause), M), ", ") + " }" : M.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + I.call(M, ", ") + " }";
|
|
754
754
|
}
|
|
755
755
|
if (typeof e == "object" && o) {
|
|
756
|
-
if (
|
|
757
|
-
return
|
|
756
|
+
if (Wr && typeof e[Wr] == "function" && dr)
|
|
757
|
+
return dr(e, { depth: s - n });
|
|
758
758
|
if (o !== "symbol" && typeof e.inspect == "function")
|
|
759
759
|
return e.inspect();
|
|
760
760
|
}
|
|
761
|
-
if (
|
|
761
|
+
if (On(e)) {
|
|
762
762
|
var B = [];
|
|
763
|
-
return
|
|
764
|
-
B.push(
|
|
765
|
-
}),
|
|
763
|
+
return Cr && Cr.call(e, function(x, N) {
|
|
764
|
+
B.push(u(N, e, !0) + " => " + u(x, e));
|
|
765
|
+
}), Gr("Map", Ie.call(e), B, p);
|
|
766
766
|
}
|
|
767
|
-
if (
|
|
767
|
+
if (Rn(e)) {
|
|
768
768
|
var ne = [];
|
|
769
|
-
return
|
|
770
|
-
ne.push(
|
|
771
|
-
}),
|
|
769
|
+
return Tr && Tr.call(e, function(x) {
|
|
770
|
+
ne.push(u(x, e));
|
|
771
|
+
}), Gr("Set", Re.call(e), ne, p);
|
|
772
772
|
}
|
|
773
|
-
if (
|
|
773
|
+
if (_n(e))
|
|
774
774
|
return Ve("WeakMap");
|
|
775
|
-
if (
|
|
775
|
+
if (Cn(e))
|
|
776
776
|
return Ve("WeakSet");
|
|
777
|
-
if (Dn(e))
|
|
778
|
-
return Ve("WeakRef");
|
|
779
|
-
if (On(e))
|
|
780
|
-
return oe(f(Number(e)));
|
|
781
|
-
if (Rn(e))
|
|
782
|
-
return oe(f(hr.call(e)));
|
|
783
777
|
if (In(e))
|
|
784
|
-
return
|
|
785
|
-
if (
|
|
786
|
-
return oe(
|
|
778
|
+
return Ve("WeakRef");
|
|
779
|
+
if (En(e))
|
|
780
|
+
return oe(u(Number(e)));
|
|
781
|
+
if ($n(e))
|
|
782
|
+
return oe(u(pr.call(e)));
|
|
783
|
+
if (An(e))
|
|
784
|
+
return oe(sn.call(e));
|
|
785
|
+
if (bn(e))
|
|
786
|
+
return oe(u(String(e)));
|
|
787
787
|
if (typeof window < "u" && e === window)
|
|
788
788
|
return "{ [object Window] }";
|
|
789
|
-
if (typeof globalThis < "u" && e === globalThis || typeof
|
|
789
|
+
if (typeof globalThis < "u" && e === globalThis || typeof Ir < "u" && e === Ir)
|
|
790
790
|
return "{ [object globalThis] }";
|
|
791
|
-
if (
|
|
792
|
-
var k = Se(e,
|
|
793
|
-
return k.length === 0 ? z + "{}" : p ? z + "{" +
|
|
791
|
+
if (!wn(e) && !Fr(e)) {
|
|
792
|
+
var k = Se(e, u), ge = Ur ? Ur(e) === Object.prototype : e instanceof Object || e.constructor === Object, q = e instanceof Object ? "" : "null prototype", D = !ge && se && Object(e) === e && se in e ? $r.call(U(e), 8, -1) : q ? "Object" : "", we = ge || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", z = we + (D || q ? "[" + I.call(Nr.call([], D || [], q || []), ": ") + "] " : "");
|
|
793
|
+
return k.length === 0 ? z + "{}" : p ? z + "{" + mr(k, p) + "}" : z + "{ " + I.call(k, ", ") + " }";
|
|
794
794
|
}
|
|
795
795
|
return String(e);
|
|
796
796
|
};
|
|
797
|
-
function
|
|
798
|
-
var n = t.quoteStyle || e, a =
|
|
797
|
+
function mt(r, e, t) {
|
|
798
|
+
var n = t.quoteStyle || e, a = ht[n];
|
|
799
799
|
return a + r + a;
|
|
800
800
|
}
|
|
801
|
-
function
|
|
801
|
+
function gn(r) {
|
|
802
802
|
return L.call(String(r), /"/g, """);
|
|
803
803
|
}
|
|
804
804
|
function j(r) {
|
|
805
805
|
return !se || !(typeof r == "object" && (se in r || typeof r[se] < "u"));
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function hr(r) {
|
|
808
808
|
return U(r) === "[object Array]" && j(r);
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function wn(r) {
|
|
811
811
|
return U(r) === "[object Date]" && j(r);
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function Fr(r) {
|
|
814
814
|
return U(r) === "[object RegExp]" && j(r);
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function Sn(r) {
|
|
817
817
|
return U(r) === "[object Error]" && j(r);
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function bn(r) {
|
|
820
820
|
return U(r) === "[object String]" && j(r);
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function En(r) {
|
|
823
823
|
return U(r) === "[object Number]" && j(r);
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function An(r) {
|
|
826
826
|
return U(r) === "[object Boolean]" && j(r);
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function vt(r) {
|
|
829
829
|
if (ee)
|
|
830
830
|
return r && typeof r == "object" && r instanceof Symbol;
|
|
831
831
|
if (typeof r == "symbol")
|
|
832
832
|
return !0;
|
|
833
|
-
if (!r || typeof r != "object" || !
|
|
833
|
+
if (!r || typeof r != "object" || !yr)
|
|
834
834
|
return !1;
|
|
835
835
|
try {
|
|
836
|
-
return
|
|
836
|
+
return yr.call(r), !0;
|
|
837
837
|
} catch {
|
|
838
838
|
}
|
|
839
839
|
return !1;
|
|
840
840
|
}
|
|
841
|
-
function
|
|
842
|
-
if (!r || typeof r != "object" || !
|
|
841
|
+
function $n(r) {
|
|
842
|
+
if (!r || typeof r != "object" || !pr)
|
|
843
843
|
return !1;
|
|
844
844
|
try {
|
|
845
|
-
return
|
|
845
|
+
return pr.call(r), !0;
|
|
846
846
|
} catch {
|
|
847
847
|
}
|
|
848
848
|
return !1;
|
|
849
849
|
}
|
|
850
|
-
var
|
|
850
|
+
var Pn = Object.prototype.hasOwnProperty || function(r) {
|
|
851
851
|
return r in this;
|
|
852
852
|
};
|
|
853
853
|
function T(r, e) {
|
|
854
|
-
return
|
|
854
|
+
return Pn.call(r, e);
|
|
855
855
|
}
|
|
856
856
|
function U(r) {
|
|
857
|
-
return
|
|
857
|
+
return pn.call(r);
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function xn(r) {
|
|
860
860
|
if (r.name)
|
|
861
861
|
return r.name;
|
|
862
|
-
var e =
|
|
862
|
+
var e = dn.call(yn.call(r), /^function\s*([\w$]+)/);
|
|
863
863
|
return e ? e[1] : null;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function gt(r, e) {
|
|
866
866
|
if (r.indexOf)
|
|
867
867
|
return r.indexOf(e);
|
|
868
868
|
for (var t = 0, n = r.length; t < n; t++)
|
|
@@ -870,13 +870,13 @@ function At(r, e) {
|
|
|
870
870
|
return t;
|
|
871
871
|
return -1;
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
if (!
|
|
873
|
+
function On(r) {
|
|
874
|
+
if (!Ie || !r || typeof r != "object")
|
|
875
875
|
return !1;
|
|
876
876
|
try {
|
|
877
|
-
|
|
877
|
+
Ie.call(r);
|
|
878
878
|
try {
|
|
879
|
-
|
|
879
|
+
Re.call(r);
|
|
880
880
|
} catch {
|
|
881
881
|
return !0;
|
|
882
882
|
}
|
|
@@ -885,7 +885,7 @@ function Tn(r) {
|
|
|
885
885
|
}
|
|
886
886
|
return !1;
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function _n(r) {
|
|
889
889
|
if (!ue || !r || typeof r != "object")
|
|
890
890
|
return !1;
|
|
891
891
|
try {
|
|
@@ -900,22 +900,22 @@ function Mn(r) {
|
|
|
900
900
|
}
|
|
901
901
|
return !1;
|
|
902
902
|
}
|
|
903
|
-
function
|
|
904
|
-
if (!
|
|
903
|
+
function In(r) {
|
|
904
|
+
if (!Mr || !r || typeof r != "object")
|
|
905
905
|
return !1;
|
|
906
906
|
try {
|
|
907
|
-
return
|
|
907
|
+
return Mr.call(r), !0;
|
|
908
908
|
} catch {
|
|
909
909
|
}
|
|
910
910
|
return !1;
|
|
911
911
|
}
|
|
912
|
-
function
|
|
913
|
-
if (!
|
|
912
|
+
function Rn(r) {
|
|
913
|
+
if (!Re || !r || typeof r != "object")
|
|
914
914
|
return !1;
|
|
915
915
|
try {
|
|
916
|
-
|
|
916
|
+
Re.call(r);
|
|
917
917
|
try {
|
|
918
|
-
|
|
918
|
+
Ie.call(r);
|
|
919
919
|
} catch {
|
|
920
920
|
return !0;
|
|
921
921
|
}
|
|
@@ -924,7 +924,7 @@ function Nn(r) {
|
|
|
924
924
|
}
|
|
925
925
|
return !1;
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function Cn(r) {
|
|
928
928
|
if (!ce || !r || typeof r != "object")
|
|
929
929
|
return !1;
|
|
930
930
|
try {
|
|
@@ -939,20 +939,20 @@ function Ln(r) {
|
|
|
939
939
|
}
|
|
940
940
|
return !1;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function Tn(r) {
|
|
943
943
|
return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function wt(r, e) {
|
|
946
946
|
if (r.length > e.maxStringLength) {
|
|
947
947
|
var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
|
|
948
|
-
return $
|
|
948
|
+
return wt($r.call(r, 0, e.maxStringLength), e) + n;
|
|
949
949
|
}
|
|
950
|
-
var a =
|
|
950
|
+
var a = vn[e.quoteStyle || "single"];
|
|
951
951
|
a.lastIndex = 0;
|
|
952
|
-
var i = L.call(L.call(r, a, "\\$1"), /[\x00-\x1f]/g,
|
|
953
|
-
return
|
|
952
|
+
var i = L.call(L.call(r, a, "\\$1"), /[\x00-\x1f]/g, Mn);
|
|
953
|
+
return mt(i, "single", e);
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function Mn(r) {
|
|
956
956
|
var e = r.charCodeAt(0), t = {
|
|
957
957
|
8: "b",
|
|
958
958
|
9: "t",
|
|
@@ -960,7 +960,7 @@ function Bn(r) {
|
|
|
960
960
|
12: "f",
|
|
961
961
|
13: "r"
|
|
962
962
|
}[e];
|
|
963
|
-
return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") +
|
|
963
|
+
return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + hn.call(e.toString(16));
|
|
964
964
|
}
|
|
965
965
|
function oe(r) {
|
|
966
966
|
return "Object(" + r + ")";
|
|
@@ -968,40 +968,40 @@ function oe(r) {
|
|
|
968
968
|
function Ve(r) {
|
|
969
969
|
return r + " { ? }";
|
|
970
970
|
}
|
|
971
|
-
function
|
|
972
|
-
var a = n ?
|
|
971
|
+
function Gr(r, e, t, n) {
|
|
972
|
+
var a = n ? mr(t, n) : I.call(t, ", ");
|
|
973
973
|
return r + " (" + e + ") {" + a + "}";
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function Dn(r) {
|
|
976
976
|
for (var e = 0; e < r.length; e++)
|
|
977
|
-
if (
|
|
977
|
+
if (gt(r[e], `
|
|
978
978
|
`) >= 0)
|
|
979
979
|
return !1;
|
|
980
980
|
return !0;
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function Nn(r, e) {
|
|
983
983
|
var t;
|
|
984
984
|
if (r.indent === " ")
|
|
985
985
|
t = " ";
|
|
986
986
|
else if (typeof r.indent == "number" && r.indent > 0)
|
|
987
|
-
t =
|
|
987
|
+
t = I.call(Array(r.indent + 1), " ");
|
|
988
988
|
else
|
|
989
989
|
return null;
|
|
990
990
|
return {
|
|
991
991
|
base: t,
|
|
992
|
-
prev:
|
|
992
|
+
prev: I.call(Array(e + 1), t)
|
|
993
993
|
};
|
|
994
994
|
}
|
|
995
|
-
function
|
|
995
|
+
function mr(r, e) {
|
|
996
996
|
if (r.length === 0)
|
|
997
997
|
return "";
|
|
998
998
|
var t = `
|
|
999
999
|
` + e.prev + e.base;
|
|
1000
|
-
return t +
|
|
1000
|
+
return t + I.call(r, "," + t) + `
|
|
1001
1001
|
` + e.prev;
|
|
1002
1002
|
}
|
|
1003
1003
|
function Se(r, e) {
|
|
1004
|
-
var t =
|
|
1004
|
+
var t = hr(r), n = [];
|
|
1005
1005
|
if (t) {
|
|
1006
1006
|
n.length = r.length;
|
|
1007
1007
|
for (var a = 0; a < r.length; a++)
|
|
@@ -1010,27 +1010,27 @@ function Se(r, e) {
|
|
|
1010
1010
|
var i = typeof Ke == "function" ? Ke(r) : [], o;
|
|
1011
1011
|
if (ee) {
|
|
1012
1012
|
o = {};
|
|
1013
|
-
for (var
|
|
1014
|
-
o["$" + i[
|
|
1013
|
+
for (var f = 0; f < i.length; f++)
|
|
1014
|
+
o["$" + i[f]] = i[f];
|
|
1015
1015
|
}
|
|
1016
1016
|
for (var l in r)
|
|
1017
|
-
T(r, l) && (t && String(Number(l)) === l && l < r.length || ee && o["$" + l] instanceof Symbol || (
|
|
1017
|
+
T(r, l) && (t && String(Number(l)) === l && l < r.length || ee && o["$" + l] instanceof Symbol || (yt.call(/[^\w$]/, l) ? n.push(e(l, r) + ": " + e(r[l], r)) : n.push(l + ": " + e(r[l], r))));
|
|
1018
1018
|
if (typeof Ke == "function")
|
|
1019
1019
|
for (var c = 0; c < i.length; c++)
|
|
1020
|
-
|
|
1020
|
+
dt.call(r, i[c]) && n.push("[" + e(i[c]) + "]: " + e(r[i[c]], r));
|
|
1021
1021
|
return n;
|
|
1022
1022
|
}
|
|
1023
|
-
var
|
|
1023
|
+
var Ln = Le, Un = te, Ue = function(r, e, t) {
|
|
1024
1024
|
for (var n = r, a; (a = n.next) != null; n = a)
|
|
1025
1025
|
if (a.key === e)
|
|
1026
1026
|
return n.next = a.next, t || (a.next = /** @type {NonNullable<typeof list.next>} */
|
|
1027
1027
|
r.next, r.next = a), a;
|
|
1028
|
-
},
|
|
1028
|
+
}, Bn = function(r, e) {
|
|
1029
1029
|
if (r) {
|
|
1030
1030
|
var t = Ue(r, e);
|
|
1031
1031
|
return t && t.value;
|
|
1032
1032
|
}
|
|
1033
|
-
},
|
|
1033
|
+
}, qn = function(r, e, t) {
|
|
1034
1034
|
var n = Ue(r, e);
|
|
1035
1035
|
n ? n.value = t : r.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
1036
1036
|
{
|
|
@@ -1039,31 +1039,31 @@ var Fn = Le, Gn = te, Ue = function(r, e, t) {
|
|
|
1039
1039
|
next: r.next,
|
|
1040
1040
|
value: t
|
|
1041
1041
|
};
|
|
1042
|
-
},
|
|
1042
|
+
}, Wn = function(r, e) {
|
|
1043
1043
|
return r ? !!Ue(r, e) : !1;
|
|
1044
|
-
},
|
|
1044
|
+
}, Fn = function(r, e) {
|
|
1045
1045
|
if (r)
|
|
1046
1046
|
return Ue(r, e, !0);
|
|
1047
|
-
},
|
|
1047
|
+
}, Gn = function() {
|
|
1048
1048
|
var e, t = {
|
|
1049
1049
|
assert: function(n) {
|
|
1050
1050
|
if (!t.has(n))
|
|
1051
|
-
throw new
|
|
1051
|
+
throw new Un("Side channel does not contain " + Ln(n));
|
|
1052
1052
|
},
|
|
1053
1053
|
delete: function(n) {
|
|
1054
|
-
var a = e && e.next, i =
|
|
1054
|
+
var a = e && e.next, i = Fn(e, n);
|
|
1055
1055
|
return i && a && a === i && (e = void 0), !!i;
|
|
1056
1056
|
},
|
|
1057
1057
|
get: function(n) {
|
|
1058
|
-
return
|
|
1058
|
+
return Bn(e, n);
|
|
1059
1059
|
},
|
|
1060
1060
|
has: function(n) {
|
|
1061
|
-
return
|
|
1061
|
+
return Wn(e, n);
|
|
1062
1062
|
},
|
|
1063
1063
|
set: function(n, a) {
|
|
1064
1064
|
e || (e = {
|
|
1065
1065
|
next: void 0
|
|
1066
|
-
}),
|
|
1066
|
+
}), qn(
|
|
1067
1067
|
/** @type {NonNullable<typeof $o>} */
|
|
1068
1068
|
e,
|
|
1069
1069
|
n,
|
|
@@ -1072,27 +1072,27 @@ var Fn = Le, Gn = te, Ue = function(r, e, t) {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
1074
1074
|
return t;
|
|
1075
|
-
},
|
|
1075
|
+
}, St = Object, Hn = Error, jn = EvalError, kn = RangeError, zn = ReferenceError, Kn = SyntaxError, Vn = URIError, Qn = Math.abs, Jn = Math.floor, Xn = Math.max, Yn = Math.min, Zn = Math.pow, ea = Math.round, ra = Number.isNaN || function(e) {
|
|
1076
1076
|
return e !== e;
|
|
1077
|
-
},
|
|
1078
|
-
return
|
|
1079
|
-
},
|
|
1077
|
+
}, ta = ra, na = function(e) {
|
|
1078
|
+
return ta(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
1079
|
+
}, aa = Object.getOwnPropertyDescriptor, $e = aa;
|
|
1080
1080
|
if ($e)
|
|
1081
1081
|
try {
|
|
1082
1082
|
$e([], "length");
|
|
1083
1083
|
} catch {
|
|
1084
1084
|
$e = null;
|
|
1085
1085
|
}
|
|
1086
|
-
var
|
|
1086
|
+
var bt = $e, Pe = Object.defineProperty || !1;
|
|
1087
1087
|
if (Pe)
|
|
1088
1088
|
try {
|
|
1089
1089
|
Pe({}, "a", { value: 1 });
|
|
1090
1090
|
} catch {
|
|
1091
1091
|
Pe = !1;
|
|
1092
1092
|
}
|
|
1093
|
-
var
|
|
1094
|
-
function
|
|
1095
|
-
return
|
|
1093
|
+
var ia = Pe, Qe, Hr;
|
|
1094
|
+
function oa() {
|
|
1095
|
+
return Hr || (Hr = 1, Qe = function() {
|
|
1096
1096
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
1097
1097
|
return !1;
|
|
1098
1098
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -1110,105 +1110,87 @@ function sa() {
|
|
|
1110
1110
|
if (o.length !== 1 || o[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
|
|
1111
1111
|
return !1;
|
|
1112
1112
|
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
1113
|
-
var
|
|
1113
|
+
var f = (
|
|
1114
1114
|
/** @type {PropertyDescriptor} */
|
|
1115
1115
|
Object.getOwnPropertyDescriptor(e, t)
|
|
1116
1116
|
);
|
|
1117
|
-
if (
|
|
1117
|
+
if (f.value !== a || f.enumerable !== !0)
|
|
1118
1118
|
return !1;
|
|
1119
1119
|
}
|
|
1120
1120
|
return !0;
|
|
1121
1121
|
}), Qe;
|
|
1122
1122
|
}
|
|
1123
|
-
var Je,
|
|
1124
|
-
function
|
|
1125
|
-
if (
|
|
1126
|
-
|
|
1127
|
-
var r = typeof Symbol < "u" && Symbol, e =
|
|
1123
|
+
var Je, jr;
|
|
1124
|
+
function la() {
|
|
1125
|
+
if (jr) return Je;
|
|
1126
|
+
jr = 1;
|
|
1127
|
+
var r = typeof Symbol < "u" && Symbol, e = oa();
|
|
1128
1128
|
return Je = function() {
|
|
1129
1129
|
return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
1130
1130
|
}, Je;
|
|
1131
1131
|
}
|
|
1132
|
-
var Xe,
|
|
1133
|
-
function
|
|
1134
|
-
return
|
|
1132
|
+
var Xe, kr;
|
|
1133
|
+
function Et() {
|
|
1134
|
+
return kr || (kr = 1, Xe = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Xe;
|
|
1135
1135
|
}
|
|
1136
|
-
var Ye,
|
|
1137
|
-
function
|
|
1138
|
-
if (
|
|
1139
|
-
|
|
1140
|
-
var r =
|
|
1136
|
+
var Ye, zr;
|
|
1137
|
+
function At() {
|
|
1138
|
+
if (zr) return Ye;
|
|
1139
|
+
zr = 1;
|
|
1140
|
+
var r = St;
|
|
1141
1141
|
return Ye = r.getPrototypeOf || null, Ye;
|
|
1142
1142
|
}
|
|
1143
|
-
var
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
for (var s = i(arguments, 1), p, f = function() {
|
|
1167
|
-
if (this instanceof p) {
|
|
1168
|
-
var b = c.apply(
|
|
1169
|
-
this,
|
|
1170
|
-
a(s, arguments)
|
|
1171
|
-
);
|
|
1172
|
-
return Object(b) === b ? b : this;
|
|
1173
|
-
}
|
|
1174
|
-
return c.apply(
|
|
1175
|
-
l,
|
|
1176
|
-
a(s, arguments)
|
|
1143
|
+
var fa = "Function.prototype.bind called on incompatible ", ua = Object.prototype.toString, ca = Math.max, sa = "[object Function]", Kr = function(e, t) {
|
|
1144
|
+
for (var n = [], a = 0; a < e.length; a += 1)
|
|
1145
|
+
n[a] = e[a];
|
|
1146
|
+
for (var i = 0; i < t.length; i += 1)
|
|
1147
|
+
n[i + e.length] = t[i];
|
|
1148
|
+
return n;
|
|
1149
|
+
}, pa = function(e, t) {
|
|
1150
|
+
for (var n = [], a = t, i = 0; a < e.length; a += 1, i += 1)
|
|
1151
|
+
n[i] = e[a];
|
|
1152
|
+
return n;
|
|
1153
|
+
}, ya = function(r, e) {
|
|
1154
|
+
for (var t = "", n = 0; n < r.length; n += 1)
|
|
1155
|
+
t += r[n], n + 1 < r.length && (t += e);
|
|
1156
|
+
return t;
|
|
1157
|
+
}, da = function(e) {
|
|
1158
|
+
var t = this;
|
|
1159
|
+
if (typeof t != "function" || ua.apply(t) !== sa)
|
|
1160
|
+
throw new TypeError(fa + t);
|
|
1161
|
+
for (var n = pa(arguments, 1), a, i = function() {
|
|
1162
|
+
if (this instanceof a) {
|
|
1163
|
+
var s = t.apply(
|
|
1164
|
+
this,
|
|
1165
|
+
Kr(n, arguments)
|
|
1177
1166
|
);
|
|
1178
|
-
|
|
1179
|
-
y[h] = "$" + h;
|
|
1180
|
-
if (p = Function("binder", "return function (" + o(y, ",") + "){ return binder.apply(this,arguments); }")(f), c.prototype) {
|
|
1181
|
-
var g = function() {
|
|
1182
|
-
};
|
|
1183
|
-
g.prototype = c.prototype, p.prototype = new g(), g.prototype = null;
|
|
1167
|
+
return Object(s) === s ? s : this;
|
|
1184
1168
|
}
|
|
1185
|
-
return
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
function Rt() {
|
|
1201
|
-
return Zr || (Zr = 1, tr = Function.prototype.apply), tr;
|
|
1169
|
+
return t.apply(
|
|
1170
|
+
e,
|
|
1171
|
+
Kr(n, arguments)
|
|
1172
|
+
);
|
|
1173
|
+
}, o = ca(0, t.length - n.length), f = [], l = 0; l < o; l++)
|
|
1174
|
+
f[l] = "$" + l;
|
|
1175
|
+
if (a = Function("binder", "return function (" + ya(f, ",") + "){ return binder.apply(this,arguments); }")(i), t.prototype) {
|
|
1176
|
+
var c = function() {
|
|
1177
|
+
};
|
|
1178
|
+
c.prototype = t.prototype, a.prototype = new c(), c.prototype = null;
|
|
1179
|
+
}
|
|
1180
|
+
return a;
|
|
1181
|
+
}, ha = da, Be = Function.prototype.bind || ha, Pr = Function.prototype.call, Ze, Vr;
|
|
1182
|
+
function $t() {
|
|
1183
|
+
return Vr || (Vr = 1, Ze = Function.prototype.apply), Ze;
|
|
1202
1184
|
}
|
|
1203
|
-
var
|
|
1185
|
+
var ma = typeof Reflect < "u" && Reflect && Reflect.apply, va = Be, ga = $t(), wa = Pr, Sa = ma, ba = Sa || va.call(wa, ga), Ea = Be, Aa = te, $a = Pr, Pa = ba, Pt = function(e) {
|
|
1204
1186
|
if (e.length < 1 || typeof e[0] != "function")
|
|
1205
|
-
throw new
|
|
1206
|
-
return
|
|
1207
|
-
},
|
|
1208
|
-
function
|
|
1209
|
-
if (
|
|
1210
|
-
|
|
1211
|
-
var r =
|
|
1187
|
+
throw new Aa("a function is required");
|
|
1188
|
+
return Pa(Ea, $a, e);
|
|
1189
|
+
}, er, Qr;
|
|
1190
|
+
function xa() {
|
|
1191
|
+
if (Qr) return er;
|
|
1192
|
+
Qr = 1;
|
|
1193
|
+
var r = Pt, e = bt, t;
|
|
1212
1194
|
try {
|
|
1213
1195
|
t = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
1214
1196
|
[].__proto__ === Array.prototype;
|
|
@@ -1221,19 +1203,19 @@ function $a() {
|
|
|
1221
1203
|
/** @type {keyof typeof Object.prototype} */
|
|
1222
1204
|
"__proto__"
|
|
1223
1205
|
), a = Object, i = a.getPrototypeOf;
|
|
1224
|
-
return
|
|
1206
|
+
return er = n && typeof n.get == "function" ? r([n.get]) : typeof i == "function" ? (
|
|
1225
1207
|
/** @type {import('./get')} */
|
|
1226
|
-
function(
|
|
1227
|
-
return i(
|
|
1208
|
+
function(f) {
|
|
1209
|
+
return i(f == null ? f : a(f));
|
|
1228
1210
|
}
|
|
1229
|
-
) : !1,
|
|
1230
|
-
}
|
|
1231
|
-
var
|
|
1232
|
-
function
|
|
1233
|
-
if (
|
|
1234
|
-
|
|
1235
|
-
var r =
|
|
1236
|
-
return
|
|
1211
|
+
) : !1, er;
|
|
1212
|
+
}
|
|
1213
|
+
var rr, Jr;
|
|
1214
|
+
function Oa() {
|
|
1215
|
+
if (Jr) return rr;
|
|
1216
|
+
Jr = 1;
|
|
1217
|
+
var r = Et(), e = At(), t = xa();
|
|
1218
|
+
return rr = r ? function(a) {
|
|
1237
1219
|
return r(a);
|
|
1238
1220
|
} : e ? function(a) {
|
|
1239
1221
|
if (!a || typeof a != "object" && typeof a != "function")
|
|
@@ -1241,38 +1223,38 @@ function Pa() {
|
|
|
1241
1223
|
return e(a);
|
|
1242
1224
|
} : t ? function(a) {
|
|
1243
1225
|
return t(a);
|
|
1244
|
-
} : null,
|
|
1226
|
+
} : null, rr;
|
|
1245
1227
|
}
|
|
1246
|
-
var
|
|
1247
|
-
function
|
|
1248
|
-
if (
|
|
1249
|
-
|
|
1250
|
-
var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Be
|
|
1251
|
-
return
|
|
1228
|
+
var tr, Xr;
|
|
1229
|
+
function _a() {
|
|
1230
|
+
if (Xr) return tr;
|
|
1231
|
+
Xr = 1;
|
|
1232
|
+
var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Be;
|
|
1233
|
+
return tr = t.call(r, e), tr;
|
|
1252
1234
|
}
|
|
1253
|
-
var v,
|
|
1235
|
+
var v, Ia = St, Ra = Hn, Ca = jn, Ta = kn, Ma = zn, re = Kn, X = te, Da = Vn, Na = Qn, La = Jn, Ua = Xn, Ba = Yn, qa = Zn, Wa = ea, Fa = na, xt = Function, nr = function(r) {
|
|
1254
1236
|
try {
|
|
1255
|
-
return
|
|
1237
|
+
return xt('"use strict"; return (' + r + ").constructor;")();
|
|
1256
1238
|
} catch {
|
|
1257
1239
|
}
|
|
1258
|
-
}, de =
|
|
1240
|
+
}, de = bt, Ga = ia, ar = function() {
|
|
1259
1241
|
throw new X();
|
|
1260
|
-
},
|
|
1242
|
+
}, Ha = de ? function() {
|
|
1261
1243
|
try {
|
|
1262
|
-
return arguments.callee,
|
|
1244
|
+
return arguments.callee, ar;
|
|
1263
1245
|
} catch {
|
|
1264
1246
|
try {
|
|
1265
1247
|
return de(arguments, "callee").get;
|
|
1266
1248
|
} catch {
|
|
1267
|
-
return
|
|
1249
|
+
return ar;
|
|
1268
1250
|
}
|
|
1269
1251
|
}
|
|
1270
|
-
}() :
|
|
1252
|
+
}() : ar, K = la()(), A = Oa(), ja = At(), ka = Et(), Ot = $t(), he = Pr, Q = {}, za = typeof Uint8Array > "u" || !A ? v : A(Uint8Array), G = {
|
|
1271
1253
|
__proto__: null,
|
|
1272
1254
|
"%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
|
|
1273
1255
|
"%Array%": Array,
|
|
1274
1256
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
|
|
1275
|
-
"%ArrayIteratorPrototype%": K &&
|
|
1257
|
+
"%ArrayIteratorPrototype%": K && A ? A([][Symbol.iterator]()) : v,
|
|
1276
1258
|
"%AsyncFromSyncIteratorPrototype%": v,
|
|
1277
1259
|
"%AsyncFunction%": Q,
|
|
1278
1260
|
"%AsyncGenerator%": Q,
|
|
@@ -1289,92 +1271,92 @@ var v, Oa = Pt, Ia = Vn, Ra = Qn, _a = Jn, Ca = Xn, re = Yn, X = te, Ta = Zn, Ma
|
|
|
1289
1271
|
"%decodeURIComponent%": decodeURIComponent,
|
|
1290
1272
|
"%encodeURI%": encodeURI,
|
|
1291
1273
|
"%encodeURIComponent%": encodeURIComponent,
|
|
1292
|
-
"%Error%":
|
|
1274
|
+
"%Error%": Ra,
|
|
1293
1275
|
"%eval%": eval,
|
|
1294
1276
|
// eslint-disable-line no-eval
|
|
1295
|
-
"%EvalError%":
|
|
1277
|
+
"%EvalError%": Ca,
|
|
1296
1278
|
"%Float16Array%": typeof Float16Array > "u" ? v : Float16Array,
|
|
1297
1279
|
"%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
|
|
1298
1280
|
"%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
|
|
1299
1281
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
|
|
1300
|
-
"%Function%":
|
|
1282
|
+
"%Function%": xt,
|
|
1301
1283
|
"%GeneratorFunction%": Q,
|
|
1302
1284
|
"%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
|
|
1303
1285
|
"%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
|
|
1304
1286
|
"%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
|
|
1305
1287
|
"%isFinite%": isFinite,
|
|
1306
1288
|
"%isNaN%": isNaN,
|
|
1307
|
-
"%IteratorPrototype%": K &&
|
|
1289
|
+
"%IteratorPrototype%": K && A ? A(A([][Symbol.iterator]())) : v,
|
|
1308
1290
|
"%JSON%": typeof JSON == "object" ? JSON : v,
|
|
1309
1291
|
"%Map%": typeof Map > "u" ? v : Map,
|
|
1310
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !K ||
|
|
1292
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !K || !A ? v : A((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
1311
1293
|
"%Math%": Math,
|
|
1312
1294
|
"%Number%": Number,
|
|
1313
|
-
"%Object%":
|
|
1295
|
+
"%Object%": Ia,
|
|
1314
1296
|
"%Object.getOwnPropertyDescriptor%": de,
|
|
1315
1297
|
"%parseFloat%": parseFloat,
|
|
1316
1298
|
"%parseInt%": parseInt,
|
|
1317
1299
|
"%Promise%": typeof Promise > "u" ? v : Promise,
|
|
1318
1300
|
"%Proxy%": typeof Proxy > "u" ? v : Proxy,
|
|
1319
|
-
"%RangeError%":
|
|
1320
|
-
"%ReferenceError%":
|
|
1301
|
+
"%RangeError%": Ta,
|
|
1302
|
+
"%ReferenceError%": Ma,
|
|
1321
1303
|
"%Reflect%": typeof Reflect > "u" ? v : Reflect,
|
|
1322
1304
|
"%RegExp%": RegExp,
|
|
1323
1305
|
"%Set%": typeof Set > "u" ? v : Set,
|
|
1324
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !K ||
|
|
1306
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !K || !A ? v : A((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
1325
1307
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
|
|
1326
1308
|
"%String%": String,
|
|
1327
|
-
"%StringIteratorPrototype%": K &&
|
|
1309
|
+
"%StringIteratorPrototype%": K && A ? A(""[Symbol.iterator]()) : v,
|
|
1328
1310
|
"%Symbol%": K ? Symbol : v,
|
|
1329
1311
|
"%SyntaxError%": re,
|
|
1330
|
-
"%ThrowTypeError%":
|
|
1331
|
-
"%TypedArray%":
|
|
1312
|
+
"%ThrowTypeError%": Ha,
|
|
1313
|
+
"%TypedArray%": za,
|
|
1332
1314
|
"%TypeError%": X,
|
|
1333
1315
|
"%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
|
|
1334
1316
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
|
|
1335
1317
|
"%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
|
|
1336
1318
|
"%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
|
|
1337
|
-
"%URIError%":
|
|
1319
|
+
"%URIError%": Da,
|
|
1338
1320
|
"%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
|
|
1339
1321
|
"%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
|
|
1340
1322
|
"%WeakSet%": typeof WeakSet > "u" ? v : WeakSet,
|
|
1341
1323
|
"%Function.prototype.call%": he,
|
|
1342
|
-
"%Function.prototype.apply%":
|
|
1343
|
-
"%Object.defineProperty%":
|
|
1344
|
-
"%Object.getPrototypeOf%":
|
|
1345
|
-
"%Math.abs%":
|
|
1346
|
-
"%Math.floor%":
|
|
1347
|
-
"%Math.max%":
|
|
1348
|
-
"%Math.min%":
|
|
1349
|
-
"%Math.pow%":
|
|
1350
|
-
"%Math.round%":
|
|
1351
|
-
"%Math.sign%":
|
|
1352
|
-
"%Reflect.getPrototypeOf%":
|
|
1324
|
+
"%Function.prototype.apply%": Ot,
|
|
1325
|
+
"%Object.defineProperty%": Ga,
|
|
1326
|
+
"%Object.getPrototypeOf%": ja,
|
|
1327
|
+
"%Math.abs%": Na,
|
|
1328
|
+
"%Math.floor%": La,
|
|
1329
|
+
"%Math.max%": Ua,
|
|
1330
|
+
"%Math.min%": Ba,
|
|
1331
|
+
"%Math.pow%": qa,
|
|
1332
|
+
"%Math.round%": Wa,
|
|
1333
|
+
"%Math.sign%": Fa,
|
|
1334
|
+
"%Reflect.getPrototypeOf%": ka
|
|
1353
1335
|
};
|
|
1354
|
-
if (
|
|
1336
|
+
if (A)
|
|
1355
1337
|
try {
|
|
1356
1338
|
null.error;
|
|
1357
1339
|
} catch (r) {
|
|
1358
|
-
var
|
|
1359
|
-
G["%Error.prototype%"] =
|
|
1340
|
+
var Ka = A(A(r));
|
|
1341
|
+
G["%Error.prototype%"] = Ka;
|
|
1360
1342
|
}
|
|
1361
|
-
var
|
|
1343
|
+
var Va = function r(e) {
|
|
1362
1344
|
var t;
|
|
1363
1345
|
if (e === "%AsyncFunction%")
|
|
1364
|
-
t =
|
|
1346
|
+
t = nr("async function () {}");
|
|
1365
1347
|
else if (e === "%GeneratorFunction%")
|
|
1366
|
-
t =
|
|
1348
|
+
t = nr("function* () {}");
|
|
1367
1349
|
else if (e === "%AsyncGeneratorFunction%")
|
|
1368
|
-
t =
|
|
1350
|
+
t = nr("async function* () {}");
|
|
1369
1351
|
else if (e === "%AsyncGenerator%") {
|
|
1370
1352
|
var n = r("%AsyncGeneratorFunction%");
|
|
1371
1353
|
n && (t = n.prototype);
|
|
1372
1354
|
} else if (e === "%AsyncIteratorPrototype%") {
|
|
1373
1355
|
var a = r("%AsyncGenerator%");
|
|
1374
|
-
a &&
|
|
1356
|
+
a && A && (t = A(a.prototype));
|
|
1375
1357
|
}
|
|
1376
1358
|
return G[e] = t, t;
|
|
1377
|
-
},
|
|
1359
|
+
}, Yr = {
|
|
1378
1360
|
__proto__: null,
|
|
1379
1361
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
1380
1362
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -1427,21 +1409,21 @@ var za = function r(e) {
|
|
|
1427
1409
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1428
1410
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1429
1411
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1430
|
-
}, me = Be
|
|
1412
|
+
}, me = Be, Ce = _a(), Qa = me.call(he, Array.prototype.concat), Ja = me.call(Ot, Array.prototype.splice), Zr = me.call(he, String.prototype.replace), Te = me.call(he, String.prototype.slice), Xa = me.call(he, RegExp.prototype.exec), Ya = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Za = /\\(\\)?/g, ei = function(e) {
|
|
1431
1413
|
var t = Te(e, 0, 1), n = Te(e, -1);
|
|
1432
1414
|
if (t === "%" && n !== "%")
|
|
1433
1415
|
throw new re("invalid intrinsic syntax, expected closing `%`");
|
|
1434
1416
|
if (n === "%" && t !== "%")
|
|
1435
1417
|
throw new re("invalid intrinsic syntax, expected opening `%`");
|
|
1436
1418
|
var a = [];
|
|
1437
|
-
return
|
|
1438
|
-
a[a.length] =
|
|
1419
|
+
return Zr(e, Ya, function(i, o, f, l) {
|
|
1420
|
+
a[a.length] = f ? Zr(l, Za, "$1") : o || i;
|
|
1439
1421
|
}), a;
|
|
1440
|
-
},
|
|
1422
|
+
}, ri = function(e, t) {
|
|
1441
1423
|
var n = e, a;
|
|
1442
|
-
if (Ce(
|
|
1424
|
+
if (Ce(Yr, n) && (a = Yr[n], n = "%" + a[0] + "%"), Ce(G, n)) {
|
|
1443
1425
|
var i = G[n];
|
|
1444
|
-
if (i === Q && (i =
|
|
1426
|
+
if (i === Q && (i = Va(n)), typeof i > "u" && !t)
|
|
1445
1427
|
throw new X("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
1446
1428
|
return {
|
|
1447
1429
|
alias: a,
|
|
@@ -1450,104 +1432,104 @@ var za = function r(e) {
|
|
|
1450
1432
|
};
|
|
1451
1433
|
}
|
|
1452
1434
|
throw new re("intrinsic " + e + " does not exist!");
|
|
1453
|
-
},
|
|
1435
|
+
}, xr = function(e, t) {
|
|
1454
1436
|
if (typeof e != "string" || e.length === 0)
|
|
1455
1437
|
throw new X("intrinsic name must be a non-empty string");
|
|
1456
1438
|
if (arguments.length > 1 && typeof t != "boolean")
|
|
1457
1439
|
throw new X('"allowMissing" argument must be a boolean');
|
|
1458
|
-
if (
|
|
1440
|
+
if (Xa(/^%?[^%]*%?$/, e) === null)
|
|
1459
1441
|
throw new re("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1460
|
-
var n =
|
|
1461
|
-
c && (a = c[0],
|
|
1442
|
+
var n = ei(e), a = n.length > 0 ? n[0] : "", i = ri("%" + a + "%", t), o = i.name, f = i.value, l = !1, c = i.alias;
|
|
1443
|
+
c && (a = c[0], Ja(n, Qa([0, 1], c)));
|
|
1462
1444
|
for (var s = 1, p = !0; s < n.length; s += 1) {
|
|
1463
|
-
var
|
|
1445
|
+
var u = n[s], d = Te(u, 0, 1), y = Te(u, -1);
|
|
1464
1446
|
if ((d === '"' || d === "'" || d === "`" || y === '"' || y === "'" || y === "`") && d !== y)
|
|
1465
1447
|
throw new re("property names with quotes must have matching quotes");
|
|
1466
|
-
if ((
|
|
1467
|
-
|
|
1468
|
-
else if (
|
|
1469
|
-
if (!(
|
|
1448
|
+
if ((u === "constructor" || !p) && (l = !0), a += "." + u, o = "%" + a + "%", Ce(G, o))
|
|
1449
|
+
f = G[o];
|
|
1450
|
+
else if (f != null) {
|
|
1451
|
+
if (!(u in f)) {
|
|
1470
1452
|
if (!t)
|
|
1471
1453
|
throw new X("base intrinsic for " + e + " exists, but the property is not available.");
|
|
1472
1454
|
return;
|
|
1473
1455
|
}
|
|
1474
1456
|
if (de && s + 1 >= n.length) {
|
|
1475
|
-
var h = de(
|
|
1476
|
-
p = !!h, p && "get" in h && !("originalValue" in h.get) ?
|
|
1457
|
+
var h = de(f, u);
|
|
1458
|
+
p = !!h, p && "get" in h && !("originalValue" in h.get) ? f = h.get : f = f[u];
|
|
1477
1459
|
} else
|
|
1478
|
-
p = Ce(
|
|
1479
|
-
p && !l && (G[o] =
|
|
1460
|
+
p = Ce(f, u), f = f[u];
|
|
1461
|
+
p && !l && (G[o] = f);
|
|
1480
1462
|
}
|
|
1481
1463
|
}
|
|
1482
|
-
return
|
|
1483
|
-
},
|
|
1464
|
+
return f;
|
|
1465
|
+
}, _t = xr, It = Pt, ti = It([_t("%String.prototype.indexOf%")]), Rt = function(e, t) {
|
|
1484
1466
|
var n = (
|
|
1485
1467
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
1486
|
-
|
|
1468
|
+
_t(e, !!t)
|
|
1487
1469
|
);
|
|
1488
|
-
return typeof n == "function" &&
|
|
1470
|
+
return typeof n == "function" && ti(e, ".prototype.") > -1 ? It(
|
|
1489
1471
|
/** @type {const} */
|
|
1490
1472
|
[n]
|
|
1491
1473
|
) : n;
|
|
1492
|
-
},
|
|
1474
|
+
}, ni = xr, ve = Rt, ai = Le, ii = te, et = ni("%Map%", !0), oi = ve("Map.prototype.get", !0), li = ve("Map.prototype.set", !0), fi = ve("Map.prototype.has", !0), ui = ve("Map.prototype.delete", !0), ci = ve("Map.prototype.size", !0), Ct = !!et && /** @type {Exclude<import('.'), false>} */
|
|
1493
1475
|
function() {
|
|
1494
1476
|
var e, t = {
|
|
1495
1477
|
assert: function(n) {
|
|
1496
1478
|
if (!t.has(n))
|
|
1497
|
-
throw new
|
|
1479
|
+
throw new ii("Side channel does not contain " + ai(n));
|
|
1498
1480
|
},
|
|
1499
1481
|
delete: function(n) {
|
|
1500
1482
|
if (e) {
|
|
1501
|
-
var a =
|
|
1502
|
-
return
|
|
1483
|
+
var a = ui(e, n);
|
|
1484
|
+
return ci(e) === 0 && (e = void 0), a;
|
|
1503
1485
|
}
|
|
1504
1486
|
return !1;
|
|
1505
1487
|
},
|
|
1506
1488
|
get: function(n) {
|
|
1507
1489
|
if (e)
|
|
1508
|
-
return
|
|
1490
|
+
return oi(e, n);
|
|
1509
1491
|
},
|
|
1510
1492
|
has: function(n) {
|
|
1511
|
-
return e ?
|
|
1493
|
+
return e ? fi(e, n) : !1;
|
|
1512
1494
|
},
|
|
1513
1495
|
set: function(n, a) {
|
|
1514
|
-
e || (e = new
|
|
1496
|
+
e || (e = new et()), li(e, n, a);
|
|
1515
1497
|
}
|
|
1516
1498
|
};
|
|
1517
1499
|
return t;
|
|
1518
|
-
},
|
|
1500
|
+
}, si = xr, qe = Rt, pi = Le, be = Ct, yi = te, V = si("%WeakMap%", !0), di = qe("WeakMap.prototype.get", !0), hi = qe("WeakMap.prototype.set", !0), mi = qe("WeakMap.prototype.has", !0), vi = qe("WeakMap.prototype.delete", !0), gi = V ? (
|
|
1519
1501
|
/** @type {Exclude<import('.'), false>} */
|
|
1520
1502
|
function() {
|
|
1521
1503
|
var e, t, n = {
|
|
1522
1504
|
assert: function(a) {
|
|
1523
1505
|
if (!n.has(a))
|
|
1524
|
-
throw new
|
|
1506
|
+
throw new yi("Side channel does not contain " + pi(a));
|
|
1525
1507
|
},
|
|
1526
1508
|
delete: function(a) {
|
|
1527
1509
|
if (V && a && (typeof a == "object" || typeof a == "function")) {
|
|
1528
1510
|
if (e)
|
|
1529
|
-
return
|
|
1511
|
+
return vi(e, a);
|
|
1530
1512
|
} else if (be && t)
|
|
1531
1513
|
return t.delete(a);
|
|
1532
1514
|
return !1;
|
|
1533
1515
|
},
|
|
1534
1516
|
get: function(a) {
|
|
1535
|
-
return V && a && (typeof a == "object" || typeof a == "function") && e ?
|
|
1517
|
+
return V && a && (typeof a == "object" || typeof a == "function") && e ? di(e, a) : t && t.get(a);
|
|
1536
1518
|
},
|
|
1537
1519
|
has: function(a) {
|
|
1538
|
-
return V && a && (typeof a == "object" || typeof a == "function") && e ?
|
|
1520
|
+
return V && a && (typeof a == "object" || typeof a == "function") && e ? mi(e, a) : !!t && t.has(a);
|
|
1539
1521
|
},
|
|
1540
1522
|
set: function(a, i) {
|
|
1541
|
-
V && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new V()),
|
|
1523
|
+
V && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new V()), hi(e, a, i)) : be && (t || (t = be()), t.set(a, i));
|
|
1542
1524
|
}
|
|
1543
1525
|
};
|
|
1544
1526
|
return n;
|
|
1545
1527
|
}
|
|
1546
|
-
) : be,
|
|
1528
|
+
) : be, wi = te, Si = Le, bi = Gn, Ei = Ct, Ai = gi, $i = Ai || Ei || bi, Tt = function() {
|
|
1547
1529
|
var e, t = {
|
|
1548
1530
|
assert: function(n) {
|
|
1549
1531
|
if (!t.has(n))
|
|
1550
|
-
throw new
|
|
1532
|
+
throw new wi("Side channel does not contain " + Si(n));
|
|
1551
1533
|
},
|
|
1552
1534
|
delete: function(n) {
|
|
1553
1535
|
return !!e && e.delete(n);
|
|
@@ -1559,38 +1541,38 @@ function() {
|
|
|
1559
1541
|
return !!e && e.has(n);
|
|
1560
1542
|
},
|
|
1561
1543
|
set: function(n, a) {
|
|
1562
|
-
e || (e =
|
|
1544
|
+
e || (e = $i()), e.set(n, a);
|
|
1563
1545
|
}
|
|
1564
1546
|
};
|
|
1565
1547
|
return t;
|
|
1566
|
-
},
|
|
1548
|
+
}, Pi = String.prototype.replace, xi = /%20/g, ir = {
|
|
1567
1549
|
RFC1738: "RFC1738",
|
|
1568
1550
|
RFC3986: "RFC3986"
|
|
1569
|
-
},
|
|
1570
|
-
default:
|
|
1551
|
+
}, Or = {
|
|
1552
|
+
default: ir.RFC3986,
|
|
1571
1553
|
formatters: {
|
|
1572
1554
|
RFC1738: function(r) {
|
|
1573
|
-
return
|
|
1555
|
+
return Pi.call(r, xi, "+");
|
|
1574
1556
|
},
|
|
1575
1557
|
RFC3986: function(r) {
|
|
1576
1558
|
return String(r);
|
|
1577
1559
|
}
|
|
1578
1560
|
},
|
|
1579
|
-
RFC1738:
|
|
1580
|
-
RFC3986:
|
|
1581
|
-
},
|
|
1561
|
+
RFC1738: ir.RFC1738,
|
|
1562
|
+
RFC3986: ir.RFC3986
|
|
1563
|
+
}, Oi = Or, _i = Tt, or = Object.prototype.hasOwnProperty, W = Array.isArray, We = _i(), J = function(e, t) {
|
|
1582
1564
|
return We.set(e, t), e;
|
|
1583
1565
|
}, F = function(e) {
|
|
1584
1566
|
return We.has(e);
|
|
1585
1567
|
}, le = function(e) {
|
|
1586
1568
|
return We.get(e);
|
|
1587
|
-
},
|
|
1569
|
+
}, vr = function(e, t) {
|
|
1588
1570
|
We.set(e, t);
|
|
1589
1571
|
}, O = function() {
|
|
1590
1572
|
for (var r = [], e = 0; e < 256; ++e)
|
|
1591
1573
|
r[r.length] = "%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase();
|
|
1592
1574
|
return r;
|
|
1593
|
-
}(),
|
|
1575
|
+
}(), Ii = function(e) {
|
|
1594
1576
|
for (; e.length > 1; ) {
|
|
1595
1577
|
var t = e.pop(), n = t.obj[t.prop];
|
|
1596
1578
|
if (W(n)) {
|
|
@@ -1603,7 +1585,7 @@ function() {
|
|
|
1603
1585
|
for (var n = t && t.plainObjects ? { __proto__: null } : {}, a = 0; a < e.length; ++a)
|
|
1604
1586
|
typeof e[a] < "u" && (n[a] = e[a]);
|
|
1605
1587
|
return n;
|
|
1606
|
-
},
|
|
1588
|
+
}, Ri = function r(e, t, n) {
|
|
1607
1589
|
if (!t)
|
|
1608
1590
|
return e;
|
|
1609
1591
|
if (typeof t != "object" && typeof t != "function") {
|
|
@@ -1615,11 +1597,11 @@ function() {
|
|
|
1615
1597
|
} else if (e && typeof e == "object")
|
|
1616
1598
|
if (F(e)) {
|
|
1617
1599
|
var i = le(e) + 1;
|
|
1618
|
-
e[i] = t,
|
|
1600
|
+
e[i] = t, vr(e, i);
|
|
1619
1601
|
} else {
|
|
1620
1602
|
if (n && n.strictMerge)
|
|
1621
1603
|
return [e, t];
|
|
1622
|
-
(n && (n.plainObjects || n.allowPrototypes) || !
|
|
1604
|
+
(n && (n.plainObjects || n.allowPrototypes) || !or.call(Object.prototype, t)) && (e[t] = !0);
|
|
1623
1605
|
}
|
|
1624
1606
|
else
|
|
1625
1607
|
return [e, t];
|
|
@@ -1627,35 +1609,35 @@ function() {
|
|
|
1627
1609
|
}
|
|
1628
1610
|
if (!e || typeof e != "object") {
|
|
1629
1611
|
if (F(t)) {
|
|
1630
|
-
for (var o = Object.keys(t),
|
|
1612
|
+
for (var o = Object.keys(t), f = n && n.plainObjects ? { __proto__: null, 0: e } : { 0: e }, l = 0; l < o.length; l++) {
|
|
1631
1613
|
var c = parseInt(o[l], 10);
|
|
1632
|
-
|
|
1614
|
+
f[c + 1] = t[o[l]];
|
|
1633
1615
|
}
|
|
1634
|
-
return J(
|
|
1616
|
+
return J(f, le(t) + 1);
|
|
1635
1617
|
}
|
|
1636
1618
|
var s = [e].concat(t);
|
|
1637
1619
|
return n && typeof n.arrayLimit == "number" && s.length > n.arrayLimit ? J(pe(s, n), s.length - 1) : s;
|
|
1638
1620
|
}
|
|
1639
1621
|
var p = e;
|
|
1640
|
-
return W(e) && !W(t) && (p = pe(e, n)), W(e) && W(t) ? (t.forEach(function(
|
|
1641
|
-
if (
|
|
1622
|
+
return W(e) && !W(t) && (p = pe(e, n)), W(e) && W(t) ? (t.forEach(function(u, d) {
|
|
1623
|
+
if (or.call(e, d)) {
|
|
1642
1624
|
var y = e[d];
|
|
1643
|
-
y && typeof y == "object" &&
|
|
1625
|
+
y && typeof y == "object" && u && typeof u == "object" ? e[d] = r(y, u, n) : e[e.length] = u;
|
|
1644
1626
|
} else
|
|
1645
|
-
e[d] =
|
|
1646
|
-
}), e) : Object.keys(t).reduce(function(
|
|
1627
|
+
e[d] = u;
|
|
1628
|
+
}), e) : Object.keys(t).reduce(function(u, d) {
|
|
1647
1629
|
var y = t[d];
|
|
1648
|
-
if (
|
|
1630
|
+
if (or.call(u, d) ? u[d] = r(u[d], y, n) : u[d] = y, F(t) && !F(u) && J(u, le(t)), F(u)) {
|
|
1649
1631
|
var h = parseInt(d, 10);
|
|
1650
|
-
String(h) === d && h >= 0 && h > le(
|
|
1632
|
+
String(h) === d && h >= 0 && h > le(u) && vr(u, h);
|
|
1651
1633
|
}
|
|
1652
|
-
return
|
|
1634
|
+
return u;
|
|
1653
1635
|
}, p);
|
|
1654
|
-
},
|
|
1636
|
+
}, Ci = function(e, t) {
|
|
1655
1637
|
return Object.keys(t).reduce(function(n, a) {
|
|
1656
1638
|
return n[a] = t[a], n;
|
|
1657
1639
|
}, e);
|
|
1658
|
-
},
|
|
1640
|
+
}, Ti = function(r, e, t) {
|
|
1659
1641
|
var n = r.replace(/\+/g, " ");
|
|
1660
1642
|
if (t === "iso-8859-1")
|
|
1661
1643
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -1664,7 +1646,7 @@ function() {
|
|
|
1664
1646
|
} catch {
|
|
1665
1647
|
return n;
|
|
1666
1648
|
}
|
|
1667
|
-
},
|
|
1649
|
+
}, lr = 1024, Mi = function(e, t, n, a, i) {
|
|
1668
1650
|
if (e.length === 0)
|
|
1669
1651
|
return e;
|
|
1670
1652
|
var o = e;
|
|
@@ -1672,69 +1654,69 @@ function() {
|
|
|
1672
1654
|
return escape(o).replace(/%u[0-9a-f]{4}/gi, function(d) {
|
|
1673
1655
|
return "%26%23" + parseInt(d.slice(2), 16) + "%3B";
|
|
1674
1656
|
});
|
|
1675
|
-
for (var
|
|
1676
|
-
for (var c = o.length >=
|
|
1677
|
-
var
|
|
1678
|
-
if (
|
|
1657
|
+
for (var f = "", l = 0; l < o.length; l += lr) {
|
|
1658
|
+
for (var c = o.length >= lr ? o.slice(l, l + lr) : o, s = [], p = 0; p < c.length; ++p) {
|
|
1659
|
+
var u = c.charCodeAt(p);
|
|
1660
|
+
if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || i === Oi.RFC1738 && (u === 40 || u === 41)) {
|
|
1679
1661
|
s[s.length] = c.charAt(p);
|
|
1680
1662
|
continue;
|
|
1681
1663
|
}
|
|
1682
|
-
if (
|
|
1683
|
-
s[s.length] = O[
|
|
1664
|
+
if (u < 128) {
|
|
1665
|
+
s[s.length] = O[u];
|
|
1684
1666
|
continue;
|
|
1685
1667
|
}
|
|
1686
|
-
if (
|
|
1687
|
-
s[s.length] = O[192 |
|
|
1668
|
+
if (u < 2048) {
|
|
1669
|
+
s[s.length] = O[192 | u >> 6] + O[128 | u & 63];
|
|
1688
1670
|
continue;
|
|
1689
1671
|
}
|
|
1690
|
-
if (
|
|
1691
|
-
s[s.length] = O[224 |
|
|
1672
|
+
if (u < 55296 || u >= 57344) {
|
|
1673
|
+
s[s.length] = O[224 | u >> 12] + O[128 | u >> 6 & 63] + O[128 | u & 63];
|
|
1692
1674
|
continue;
|
|
1693
1675
|
}
|
|
1694
|
-
p += 1,
|
|
1676
|
+
p += 1, u = 65536 + ((u & 1023) << 10 | c.charCodeAt(p) & 1023), s[s.length] = O[240 | u >> 18] + O[128 | u >> 12 & 63] + O[128 | u >> 6 & 63] + O[128 | u & 63];
|
|
1695
1677
|
}
|
|
1696
|
-
|
|
1678
|
+
f += s.join("");
|
|
1697
1679
|
}
|
|
1698
|
-
return
|
|
1699
|
-
},
|
|
1680
|
+
return f;
|
|
1681
|
+
}, Di = function(e) {
|
|
1700
1682
|
for (var t = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < t.length; ++a)
|
|
1701
|
-
for (var i = t[a], o = i.obj[i.prop],
|
|
1702
|
-
var c =
|
|
1683
|
+
for (var i = t[a], o = i.obj[i.prop], f = Object.keys(o), l = 0; l < f.length; ++l) {
|
|
1684
|
+
var c = f[l], s = o[c];
|
|
1703
1685
|
typeof s == "object" && s !== null && n.indexOf(s) === -1 && (t[t.length] = { obj: o, prop: c }, n[n.length] = s);
|
|
1704
1686
|
}
|
|
1705
|
-
return
|
|
1706
|
-
},
|
|
1687
|
+
return Ii(t), e;
|
|
1688
|
+
}, Ni = function(e) {
|
|
1707
1689
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1708
|
-
},
|
|
1690
|
+
}, Li = function(e) {
|
|
1709
1691
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
1710
|
-
},
|
|
1692
|
+
}, Ui = function(e, t, n, a) {
|
|
1711
1693
|
if (F(e)) {
|
|
1712
1694
|
var i = le(e) + 1;
|
|
1713
|
-
return e[i] = t,
|
|
1695
|
+
return e[i] = t, vr(e, i), e;
|
|
1714
1696
|
}
|
|
1715
1697
|
var o = [].concat(e, t);
|
|
1716
1698
|
return o.length > n ? J(pe(o, { plainObjects: a }), o.length - 1) : o;
|
|
1717
|
-
},
|
|
1699
|
+
}, Bi = function(e, t) {
|
|
1718
1700
|
if (W(e)) {
|
|
1719
1701
|
for (var n = [], a = 0; a < e.length; a += 1)
|
|
1720
1702
|
n[n.length] = t(e[a]);
|
|
1721
1703
|
return n;
|
|
1722
1704
|
}
|
|
1723
1705
|
return t(e);
|
|
1724
|
-
},
|
|
1706
|
+
}, Mt = {
|
|
1725
1707
|
arrayToObject: pe,
|
|
1726
|
-
assign:
|
|
1727
|
-
combine:
|
|
1728
|
-
compact:
|
|
1729
|
-
decode:
|
|
1730
|
-
encode:
|
|
1731
|
-
isBuffer:
|
|
1708
|
+
assign: Ci,
|
|
1709
|
+
combine: Ui,
|
|
1710
|
+
compact: Di,
|
|
1711
|
+
decode: Ti,
|
|
1712
|
+
encode: Mi,
|
|
1713
|
+
isBuffer: Li,
|
|
1732
1714
|
isOverflow: F,
|
|
1733
|
-
isRegExp:
|
|
1715
|
+
isRegExp: Ni,
|
|
1734
1716
|
markOverflow: J,
|
|
1735
|
-
maybeMap:
|
|
1736
|
-
merge:
|
|
1737
|
-
},
|
|
1717
|
+
maybeMap: Bi,
|
|
1718
|
+
merge: Ri
|
|
1719
|
+
}, Dt = Tt, xe = Mt, ye = Or, qi = Object.prototype.hasOwnProperty, Nt = {
|
|
1738
1720
|
brackets: function(e) {
|
|
1739
1721
|
return e + "[]";
|
|
1740
1722
|
},
|
|
@@ -1745,9 +1727,9 @@ function() {
|
|
|
1745
1727
|
repeat: function(e) {
|
|
1746
1728
|
return e;
|
|
1747
1729
|
}
|
|
1748
|
-
},
|
|
1749
|
-
|
|
1750
|
-
},
|
|
1730
|
+
}, _ = Array.isArray, Wi = Array.prototype.push, Lt = function(r, e) {
|
|
1731
|
+
Wi.apply(r, _(e) ? e : [e]);
|
|
1732
|
+
}, Fi = Date.prototype.toISOString, rt = ye.default, b = {
|
|
1751
1733
|
addQueryPrefix: !1,
|
|
1752
1734
|
allowDots: !1,
|
|
1753
1735
|
allowEmptyArrays: !1,
|
|
@@ -1761,38 +1743,38 @@ function() {
|
|
|
1761
1743
|
encoder: xe.encode,
|
|
1762
1744
|
encodeValuesOnly: !1,
|
|
1763
1745
|
filter: void 0,
|
|
1764
|
-
format:
|
|
1765
|
-
formatter: ye.formatters[
|
|
1746
|
+
format: rt,
|
|
1747
|
+
formatter: ye.formatters[rt],
|
|
1766
1748
|
// deprecated
|
|
1767
1749
|
indices: !1,
|
|
1768
1750
|
serializeDate: function(e) {
|
|
1769
|
-
return
|
|
1751
|
+
return Fi.call(e);
|
|
1770
1752
|
},
|
|
1771
1753
|
skipNulls: !1,
|
|
1772
1754
|
strictNullHandling: !1
|
|
1773
|
-
},
|
|
1755
|
+
}, Gi = function(e) {
|
|
1774
1756
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
1775
|
-
},
|
|
1776
|
-
for (var m = e, M =
|
|
1757
|
+
}, fr = {}, Hi = function r(e, t, n, a, i, o, f, l, c, s, p, u, d, y, h, g, $, E) {
|
|
1758
|
+
for (var m = e, M = E, B = 0, ne = !1; (M = M.get(fr)) !== void 0 && !ne; ) {
|
|
1777
1759
|
var k = M.get(e);
|
|
1778
1760
|
if (B += 1, typeof k < "u") {
|
|
1779
1761
|
if (k === B)
|
|
1780
1762
|
throw new RangeError("Cyclic object value");
|
|
1781
1763
|
ne = !0;
|
|
1782
1764
|
}
|
|
1783
|
-
typeof M.get(
|
|
1765
|
+
typeof M.get(fr) > "u" && (B = 0);
|
|
1784
1766
|
}
|
|
1785
|
-
if (typeof s == "function" ? m = s(t, m) : m instanceof Date ? m = d(m) : n === "comma" &&
|
|
1767
|
+
if (typeof s == "function" ? m = s(t, m) : m instanceof Date ? m = d(m) : n === "comma" && _(m) && (m = xe.maybeMap(m, function(Ge) {
|
|
1786
1768
|
return Ge instanceof Date ? d(Ge) : Ge;
|
|
1787
1769
|
})), m === null) {
|
|
1788
1770
|
if (o)
|
|
1789
|
-
return c && !g ? c(t,
|
|
1771
|
+
return c && !g ? c(t, b.encoder, $, "key", y) : t;
|
|
1790
1772
|
m = "";
|
|
1791
1773
|
}
|
|
1792
|
-
if (
|
|
1774
|
+
if (Gi(m) || xe.isBuffer(m)) {
|
|
1793
1775
|
if (c) {
|
|
1794
|
-
var ge = g ? t : c(t,
|
|
1795
|
-
return [h(ge) + "=" + h(c(m,
|
|
1776
|
+
var ge = g ? t : c(t, b.encoder, $, "key", y);
|
|
1777
|
+
return [h(ge) + "=" + h(c(m, b.encoder, $, "value", y))];
|
|
1796
1778
|
}
|
|
1797
1779
|
return [h(t) + "=" + h(String(m))];
|
|
1798
1780
|
}
|
|
@@ -1800,105 +1782,105 @@ function() {
|
|
|
1800
1782
|
if (typeof m > "u")
|
|
1801
1783
|
return q;
|
|
1802
1784
|
var D;
|
|
1803
|
-
if (n === "comma" &&
|
|
1785
|
+
if (n === "comma" && _(m))
|
|
1804
1786
|
g && c && (m = xe.maybeMap(m, c)), D = [{ value: m.length > 0 ? m.join(",") || null : void 0 }];
|
|
1805
|
-
else if (
|
|
1787
|
+
else if (_(s))
|
|
1806
1788
|
D = s;
|
|
1807
1789
|
else {
|
|
1808
1790
|
var we = Object.keys(m);
|
|
1809
1791
|
D = p ? we.sort(p) : we;
|
|
1810
1792
|
}
|
|
1811
|
-
var z = l ? String(t).replace(/\./g, "%2E") : String(t), x = a &&
|
|
1812
|
-
if (i &&
|
|
1793
|
+
var z = l ? String(t).replace(/\./g, "%2E") : String(t), x = a && _(m) && m.length === 1 ? z + "[]" : z;
|
|
1794
|
+
if (i && _(m) && m.length === 0)
|
|
1813
1795
|
return x + "[]";
|
|
1814
1796
|
for (var N = 0; N < D.length; ++N) {
|
|
1815
1797
|
var C = D[N], ae = typeof C == "object" && C && typeof C.value < "u" ? C.value : m[C];
|
|
1816
|
-
if (!(
|
|
1817
|
-
var Fe =
|
|
1818
|
-
|
|
1819
|
-
var
|
|
1820
|
-
|
|
1798
|
+
if (!(f && ae === null)) {
|
|
1799
|
+
var Fe = u && l ? String(C).replace(/\./g, "%2E") : String(C), Bt = _(m) ? typeof n == "function" ? n(x, Fe) : x : x + (u ? "." + Fe : "[" + Fe + "]");
|
|
1800
|
+
E.set(e, B);
|
|
1801
|
+
var _r = Dt();
|
|
1802
|
+
_r.set(fr, E), Lt(q, r(
|
|
1821
1803
|
ae,
|
|
1822
|
-
|
|
1804
|
+
Bt,
|
|
1823
1805
|
n,
|
|
1824
1806
|
a,
|
|
1825
1807
|
i,
|
|
1826
1808
|
o,
|
|
1827
|
-
|
|
1809
|
+
f,
|
|
1828
1810
|
l,
|
|
1829
|
-
n === "comma" && g &&
|
|
1811
|
+
n === "comma" && g && _(m) ? null : c,
|
|
1830
1812
|
s,
|
|
1831
1813
|
p,
|
|
1832
|
-
|
|
1814
|
+
u,
|
|
1833
1815
|
d,
|
|
1834
1816
|
y,
|
|
1835
1817
|
h,
|
|
1836
1818
|
g,
|
|
1837
|
-
|
|
1838
|
-
|
|
1819
|
+
$,
|
|
1820
|
+
_r
|
|
1839
1821
|
));
|
|
1840
1822
|
}
|
|
1841
1823
|
}
|
|
1842
1824
|
return q;
|
|
1843
|
-
},
|
|
1825
|
+
}, ji = function(e) {
|
|
1844
1826
|
if (!e)
|
|
1845
|
-
return
|
|
1827
|
+
return b;
|
|
1846
1828
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
1847
1829
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
1848
1830
|
if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
|
|
1849
1831
|
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
1850
1832
|
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
|
|
1851
1833
|
throw new TypeError("Encoder has to be a function.");
|
|
1852
|
-
var t = e.charset ||
|
|
1834
|
+
var t = e.charset || b.charset;
|
|
1853
1835
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
1854
1836
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1855
1837
|
var n = ye.default;
|
|
1856
1838
|
if (typeof e.format < "u") {
|
|
1857
|
-
if (!
|
|
1839
|
+
if (!qi.call(ye.formatters, e.format))
|
|
1858
1840
|
throw new TypeError("Unknown format option provided.");
|
|
1859
1841
|
n = e.format;
|
|
1860
1842
|
}
|
|
1861
|
-
var a = ye.formatters[n], i =
|
|
1862
|
-
(typeof e.filter == "function" ||
|
|
1843
|
+
var a = ye.formatters[n], i = b.filter;
|
|
1844
|
+
(typeof e.filter == "function" || _(e.filter)) && (i = e.filter);
|
|
1863
1845
|
var o;
|
|
1864
|
-
if (e.arrayFormat in
|
|
1846
|
+
if (e.arrayFormat in Nt ? o = e.arrayFormat : "indices" in e ? o = e.indices ? "indices" : "repeat" : o = b.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
1865
1847
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1866
|
-
var
|
|
1848
|
+
var f = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : b.allowDots : !!e.allowDots;
|
|
1867
1849
|
return {
|
|
1868
|
-
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix :
|
|
1869
|
-
allowDots:
|
|
1870
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays :
|
|
1850
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : b.addQueryPrefix,
|
|
1851
|
+
allowDots: f,
|
|
1852
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : b.allowEmptyArrays,
|
|
1871
1853
|
arrayFormat: o,
|
|
1872
1854
|
charset: t,
|
|
1873
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
1855
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : b.charsetSentinel,
|
|
1874
1856
|
commaRoundTrip: !!e.commaRoundTrip,
|
|
1875
|
-
delimiter: typeof e.delimiter > "u" ?
|
|
1876
|
-
encode: typeof e.encode == "boolean" ? e.encode :
|
|
1877
|
-
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys :
|
|
1878
|
-
encoder: typeof e.encoder == "function" ? e.encoder :
|
|
1879
|
-
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly :
|
|
1857
|
+
delimiter: typeof e.delimiter > "u" ? b.delimiter : e.delimiter,
|
|
1858
|
+
encode: typeof e.encode == "boolean" ? e.encode : b.encode,
|
|
1859
|
+
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : b.encodeDotInKeys,
|
|
1860
|
+
encoder: typeof e.encoder == "function" ? e.encoder : b.encoder,
|
|
1861
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : b.encodeValuesOnly,
|
|
1880
1862
|
filter: i,
|
|
1881
1863
|
format: n,
|
|
1882
1864
|
formatter: a,
|
|
1883
|
-
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate :
|
|
1884
|
-
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls :
|
|
1865
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : b.serializeDate,
|
|
1866
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : b.skipNulls,
|
|
1885
1867
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
1886
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
1868
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : b.strictNullHandling
|
|
1887
1869
|
};
|
|
1888
|
-
},
|
|
1889
|
-
var t = r, n =
|
|
1890
|
-
typeof n.filter == "function" ? (i = n.filter, t = i("", t)) :
|
|
1870
|
+
}, ki = function(r, e) {
|
|
1871
|
+
var t = r, n = ji(e), a, i;
|
|
1872
|
+
typeof n.filter == "function" ? (i = n.filter, t = i("", t)) : _(n.filter) && (i = n.filter, a = i);
|
|
1891
1873
|
var o = [];
|
|
1892
1874
|
if (typeof t != "object" || t === null)
|
|
1893
1875
|
return "";
|
|
1894
|
-
var
|
|
1876
|
+
var f = Nt[n.arrayFormat], l = f === "comma" && n.commaRoundTrip;
|
|
1895
1877
|
a || (a = Object.keys(t)), n.sort && a.sort(n.sort);
|
|
1896
|
-
for (var c =
|
|
1897
|
-
var p = a[s],
|
|
1898
|
-
n.skipNulls &&
|
|
1899
|
-
f,
|
|
1900
|
-
p,
|
|
1878
|
+
for (var c = Dt(), s = 0; s < a.length; ++s) {
|
|
1879
|
+
var p = a[s], u = t[p];
|
|
1880
|
+
n.skipNulls && u === null || Lt(o, Hi(
|
|
1901
1881
|
u,
|
|
1882
|
+
p,
|
|
1883
|
+
f,
|
|
1902
1884
|
l,
|
|
1903
1885
|
n.allowEmptyArrays,
|
|
1904
1886
|
n.strictNullHandling,
|
|
@@ -1918,7 +1900,7 @@ function() {
|
|
|
1918
1900
|
}
|
|
1919
1901
|
var d = o.join(n.delimiter), y = n.addQueryPrefix === !0 ? "?" : "";
|
|
1920
1902
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), d.length > 0 ? y + d : "";
|
|
1921
|
-
},
|
|
1903
|
+
}, R = Mt, Oe = Object.prototype.hasOwnProperty, ur = Array.isArray, S = {
|
|
1922
1904
|
allowDots: !1,
|
|
1923
1905
|
allowEmptyArrays: !1,
|
|
1924
1906
|
allowPrototypes: !1,
|
|
@@ -1928,7 +1910,7 @@ function() {
|
|
|
1928
1910
|
charsetSentinel: !1,
|
|
1929
1911
|
comma: !1,
|
|
1930
1912
|
decodeDotInKeys: !1,
|
|
1931
|
-
decoder:
|
|
1913
|
+
decoder: R.decode,
|
|
1932
1914
|
delimiter: "&",
|
|
1933
1915
|
depth: 5,
|
|
1934
1916
|
duplicates: "combine",
|
|
@@ -1941,17 +1923,17 @@ function() {
|
|
|
1941
1923
|
strictMerge: !0,
|
|
1942
1924
|
strictNullHandling: !1,
|
|
1943
1925
|
throwOnLimitExceeded: !1
|
|
1944
|
-
},
|
|
1926
|
+
}, zi = function(r) {
|
|
1945
1927
|
return r.replace(/&#(\d+);/g, function(e, t) {
|
|
1946
1928
|
return String.fromCharCode(parseInt(t, 10));
|
|
1947
1929
|
});
|
|
1948
|
-
},
|
|
1930
|
+
}, Ut = function(r, e, t) {
|
|
1949
1931
|
if (r && typeof r == "string" && e.comma && r.indexOf(",") > -1)
|
|
1950
1932
|
return r.split(",");
|
|
1951
1933
|
if (e.throwOnLimitExceeded && t >= e.arrayLimit)
|
|
1952
1934
|
throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
1953
1935
|
return r;
|
|
1954
|
-
},
|
|
1936
|
+
}, Ki = "utf8=%26%2310003%3B", Vi = "utf8=%E2%9C%93", Qi = function(e, t) {
|
|
1955
1937
|
var n = { __proto__: null }, a = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
1956
1938
|
a = a.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1957
1939
|
var i = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, o = a.split(
|
|
@@ -1960,30 +1942,30 @@ function() {
|
|
|
1960
1942
|
);
|
|
1961
1943
|
if (t.throwOnLimitExceeded && o.length > i)
|
|
1962
1944
|
throw new RangeError("Parameter limit exceeded. Only " + i + " parameter" + (i === 1 ? "" : "s") + " allowed.");
|
|
1963
|
-
var
|
|
1945
|
+
var f = -1, l, c = t.charset;
|
|
1964
1946
|
if (t.charsetSentinel)
|
|
1965
1947
|
for (l = 0; l < o.length; ++l)
|
|
1966
|
-
o[l].indexOf("utf8=") === 0 && (o[l] ===
|
|
1948
|
+
o[l].indexOf("utf8=") === 0 && (o[l] === Vi ? c = "utf-8" : o[l] === Ki && (c = "iso-8859-1"), f = l, l = o.length);
|
|
1967
1949
|
for (l = 0; l < o.length; ++l)
|
|
1968
|
-
if (l !==
|
|
1969
|
-
var s = o[l], p = s.indexOf("]="),
|
|
1970
|
-
if (
|
|
1971
|
-
|
|
1972
|
-
s.slice(
|
|
1950
|
+
if (l !== f) {
|
|
1951
|
+
var s = o[l], p = s.indexOf("]="), u = p === -1 ? s.indexOf("=") : p + 1, d, y;
|
|
1952
|
+
if (u === -1 ? (d = t.decoder(s, S.decoder, c, "key"), y = t.strictNullHandling ? null : "") : (d = t.decoder(s.slice(0, u), S.decoder, c, "key"), d !== null && (y = R.maybeMap(
|
|
1953
|
+
Ut(
|
|
1954
|
+
s.slice(u + 1),
|
|
1973
1955
|
t,
|
|
1974
|
-
|
|
1956
|
+
ur(n[d]) ? n[d].length : 0
|
|
1975
1957
|
),
|
|
1976
1958
|
function(g) {
|
|
1977
1959
|
return t.decoder(g, S.decoder, c, "value");
|
|
1978
1960
|
}
|
|
1979
|
-
))), y && t.interpretNumericEntities && c === "iso-8859-1" && (y =
|
|
1961
|
+
))), y && t.interpretNumericEntities && c === "iso-8859-1" && (y = zi(String(y))), s.indexOf("[]=") > -1 && (y = ur(y) ? [y] : y), t.comma && ur(y) && y.length > t.arrayLimit) {
|
|
1980
1962
|
if (t.throwOnLimitExceeded)
|
|
1981
1963
|
throw new RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
1982
|
-
y =
|
|
1964
|
+
y = R.combine([], y, t.arrayLimit, t.plainObjects);
|
|
1983
1965
|
}
|
|
1984
1966
|
if (d !== null) {
|
|
1985
1967
|
var h = Oe.call(n, d);
|
|
1986
|
-
h && (t.duplicates === "combine" || s.indexOf("[]=") > -1) ? n[d] =
|
|
1968
|
+
h && (t.duplicates === "combine" || s.indexOf("[]=") > -1) ? n[d] = R.combine(
|
|
1987
1969
|
n[d],
|
|
1988
1970
|
y,
|
|
1989
1971
|
t.arrayLimit,
|
|
@@ -1992,16 +1974,16 @@ function() {
|
|
|
1992
1974
|
}
|
|
1993
1975
|
}
|
|
1994
1976
|
return n;
|
|
1995
|
-
},
|
|
1977
|
+
}, Ji = function(r, e, t, n) {
|
|
1996
1978
|
var a = 0;
|
|
1997
1979
|
if (r.length > 0 && r[r.length - 1] === "[]") {
|
|
1998
1980
|
var i = r.slice(0, -1).join("");
|
|
1999
1981
|
a = Array.isArray(e) && e[i] ? e[i].length : 0;
|
|
2000
1982
|
}
|
|
2001
|
-
for (var o = n ? e :
|
|
2002
|
-
var l, c = r[
|
|
1983
|
+
for (var o = n ? e : Ut(e, t, a), f = r.length - 1; f >= 0; --f) {
|
|
1984
|
+
var l, c = r[f];
|
|
2003
1985
|
if (c === "[]" && t.parseArrays)
|
|
2004
|
-
|
|
1986
|
+
R.isOverflow(o) ? l = o : l = t.allowEmptyArrays && (o === "" || t.strictNullHandling && o === null) ? [] : R.combine(
|
|
2005
1987
|
[],
|
|
2006
1988
|
o,
|
|
2007
1989
|
t.arrayLimit,
|
|
@@ -2009,29 +1991,29 @@ function() {
|
|
|
2009
1991
|
);
|
|
2010
1992
|
else {
|
|
2011
1993
|
l = t.plainObjects ? { __proto__: null } : {};
|
|
2012
|
-
var s = c.charAt(0) === "[" && c.charAt(c.length - 1) === "]" ? c.slice(1, -1) : c, p = t.decodeDotInKeys ? s.replace(/%2E/g, ".") : s,
|
|
1994
|
+
var s = c.charAt(0) === "[" && c.charAt(c.length - 1) === "]" ? c.slice(1, -1) : c, p = t.decodeDotInKeys ? s.replace(/%2E/g, ".") : s, u = parseInt(p, 10), d = !isNaN(u) && c !== p && String(u) === p && u >= 0 && t.parseArrays;
|
|
2013
1995
|
if (!t.parseArrays && p === "")
|
|
2014
1996
|
l = { 0: o };
|
|
2015
|
-
else if (d &&
|
|
2016
|
-
l = [], l[
|
|
1997
|
+
else if (d && u < t.arrayLimit)
|
|
1998
|
+
l = [], l[u] = o;
|
|
2017
1999
|
else {
|
|
2018
2000
|
if (d && t.throwOnLimitExceeded)
|
|
2019
2001
|
throw new RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
2020
|
-
d ? (l[
|
|
2002
|
+
d ? (l[u] = o, R.markOverflow(l, u)) : p !== "__proto__" && (l[p] = o);
|
|
2021
2003
|
}
|
|
2022
2004
|
}
|
|
2023
2005
|
o = l;
|
|
2024
2006
|
}
|
|
2025
2007
|
return o;
|
|
2026
|
-
},
|
|
2008
|
+
}, Xi = function(e, t) {
|
|
2027
2009
|
var n = t.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e;
|
|
2028
2010
|
if (t.depth <= 0)
|
|
2029
2011
|
return !t.plainObjects && Oe.call(Object.prototype, n) && !t.allowPrototypes ? void 0 : [n];
|
|
2030
|
-
var a = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, o = a.exec(n),
|
|
2031
|
-
if (
|
|
2032
|
-
if (!t.plainObjects && Oe.call(Object.prototype,
|
|
2012
|
+
var a = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, o = a.exec(n), f = o ? n.slice(0, o.index) : n, l = [];
|
|
2013
|
+
if (f) {
|
|
2014
|
+
if (!t.plainObjects && Oe.call(Object.prototype, f) && !t.allowPrototypes)
|
|
2033
2015
|
return;
|
|
2034
|
-
l[l.length] =
|
|
2016
|
+
l[l.length] = f;
|
|
2035
2017
|
}
|
|
2036
2018
|
for (var c = 0; (o = i.exec(n)) !== null && c < t.depth; ) {
|
|
2037
2019
|
c += 1;
|
|
@@ -2046,13 +2028,13 @@ function() {
|
|
|
2046
2028
|
l[l.length] = "[" + n.slice(o.index) + "]";
|
|
2047
2029
|
}
|
|
2048
2030
|
return l;
|
|
2049
|
-
},
|
|
2031
|
+
}, Yi = function(e, t, n, a) {
|
|
2050
2032
|
if (e) {
|
|
2051
|
-
var i =
|
|
2033
|
+
var i = Xi(e, n);
|
|
2052
2034
|
if (i)
|
|
2053
|
-
return
|
|
2035
|
+
return Ji(i, t, n, a);
|
|
2054
2036
|
}
|
|
2055
|
-
},
|
|
2037
|
+
}, Zi = function(e) {
|
|
2056
2038
|
if (!e)
|
|
2057
2039
|
return S;
|
|
2058
2040
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -2080,7 +2062,7 @@ function() {
|
|
|
2080
2062
|
comma: typeof e.comma == "boolean" ? e.comma : S.comma,
|
|
2081
2063
|
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : S.decodeDotInKeys,
|
|
2082
2064
|
decoder: typeof e.decoder == "function" ? e.decoder : S.decoder,
|
|
2083
|
-
delimiter: typeof e.delimiter == "string" ||
|
|
2065
|
+
delimiter: typeof e.delimiter == "string" || R.isRegExp(e.delimiter) ? e.delimiter : S.delimiter,
|
|
2084
2066
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
2085
2067
|
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : S.depth,
|
|
2086
2068
|
duplicates: n,
|
|
@@ -2094,22 +2076,22 @@ function() {
|
|
|
2094
2076
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : S.strictNullHandling,
|
|
2095
2077
|
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
2096
2078
|
};
|
|
2097
|
-
},
|
|
2098
|
-
var t =
|
|
2079
|
+
}, eo = function(r, e) {
|
|
2080
|
+
var t = Zi(e);
|
|
2099
2081
|
if (r === "" || r === null || typeof r > "u")
|
|
2100
2082
|
return t.plainObjects ? { __proto__: null } : {};
|
|
2101
|
-
for (var n = typeof r == "string" ?
|
|
2102
|
-
var
|
|
2103
|
-
a =
|
|
2104
|
-
}
|
|
2105
|
-
return t.allowSparse === !0 ? a :
|
|
2106
|
-
},
|
|
2107
|
-
formats:
|
|
2108
|
-
parse:
|
|
2109
|
-
stringify:
|
|
2083
|
+
for (var n = typeof r == "string" ? Qi(r, t) : r, a = t.plainObjects ? { __proto__: null } : {}, i = Object.keys(n), o = 0; o < i.length; ++o) {
|
|
2084
|
+
var f = i[o], l = Yi(f, n[f], t, typeof r == "string");
|
|
2085
|
+
a = R.merge(a, l, t);
|
|
2086
|
+
}
|
|
2087
|
+
return t.allowSparse === !0 ? a : R.compact(a);
|
|
2088
|
+
}, ro = ki, to = eo, no = Or, ao = {
|
|
2089
|
+
formats: no,
|
|
2090
|
+
parse: to,
|
|
2091
|
+
stringify: ro
|
|
2110
2092
|
};
|
|
2111
|
-
const
|
|
2112
|
-
function
|
|
2093
|
+
const io = /* @__PURE__ */ nt(ao);
|
|
2094
|
+
function tt(r) {
|
|
2113
2095
|
if (!Array.isArray(r)) throw new TypeError("Middleware stack must be an array!");
|
|
2114
2096
|
for (const e of r)
|
|
2115
2097
|
if (typeof e != "function") throw new TypeError("Middleware must be composed of functions!");
|
|
@@ -2123,8 +2105,8 @@ function lt(r) {
|
|
|
2123
2105
|
if (i === r.length && (o = t), !o) return Promise.resolve();
|
|
2124
2106
|
try {
|
|
2125
2107
|
return Promise.resolve(o(e, a.bind(null, i + 1)));
|
|
2126
|
-
} catch (
|
|
2127
|
-
return Promise.reject(
|
|
2108
|
+
} catch (f) {
|
|
2109
|
+
return Promise.reject(f);
|
|
2128
2110
|
}
|
|
2129
2111
|
}
|
|
2130
2112
|
};
|
|
@@ -2140,7 +2122,7 @@ const w = {
|
|
|
2140
2122
|
configPending: !1,
|
|
2141
2123
|
configCb: []
|
|
2142
2124
|
};
|
|
2143
|
-
async function
|
|
2125
|
+
async function oo(r) {
|
|
2144
2126
|
if (w.config)
|
|
2145
2127
|
return w.config;
|
|
2146
2128
|
if (w.configPending)
|
|
@@ -2151,7 +2133,7 @@ async function ao(r) {
|
|
|
2151
2133
|
const e = await r();
|
|
2152
2134
|
return w.config = e, w.configCb.forEach((t) => t(e)), w.configCb = [], w.configPending = !1, e;
|
|
2153
2135
|
}
|
|
2154
|
-
class
|
|
2136
|
+
class lo {
|
|
2155
2137
|
constructor(e = {}, t) {
|
|
2156
2138
|
P(this, "options");
|
|
2157
2139
|
P(this, "apis", []);
|
|
@@ -2174,8 +2156,8 @@ class io {
|
|
|
2174
2156
|
P(this, "apiList");
|
|
2175
2157
|
this.options = { ...e, baseUrl: e.baseUrl ?? "/" }, this.options.baseUrl = this.options.baseUrl.split("/").map((a) => encodeURIComponent(a)).join("/"), this.middlewares.push(...this.defaultMiddlewares), this.middlewares.push(...e.middlewares || []);
|
|
2176
2158
|
const n = ((e == null ? void 0 : e.apis) ?? []).sort((a, i) => {
|
|
2177
|
-
const o = i.path.substr(-1, 1),
|
|
2178
|
-
return i.path.split("/").length +
|
|
2159
|
+
const o = i.path.substr(-1, 1), f = o === "*" ? 0 : o === "/" ? 0.1 : 0.2, l = a.path.substr(-1, 1), c = l === "*" ? 0 : l === "/" ? 0.1 : 0.2;
|
|
2160
|
+
return i.path.split("/").length + f - (a.path.split("/").length + c);
|
|
2179
2161
|
}).map((a) => ({
|
|
2180
2162
|
...a,
|
|
2181
2163
|
// path: v.path
|
|
@@ -2190,7 +2172,7 @@ class io {
|
|
|
2190
2172
|
action: (a, i) => {
|
|
2191
2173
|
throw i.res.status = 404, Error("Not Found");
|
|
2192
2174
|
}
|
|
2193
|
-
}, this.fnMiddleware =
|
|
2175
|
+
}, this.fnMiddleware = tt(this.middlewares), this.getId = Gt({ workerId: e.workId }), this.init(t);
|
|
2194
2176
|
}
|
|
2195
2177
|
async init(e) {
|
|
2196
2178
|
var t, n, a, i;
|
|
@@ -2208,15 +2190,15 @@ class io {
|
|
|
2208
2190
|
* 调用 API
|
|
2209
2191
|
*/
|
|
2210
2192
|
async fetchRaw(e, t, n) {
|
|
2211
|
-
var
|
|
2212
|
-
const a = (n == null ? void 0 : n.url) ?? e, i = new URL(a, "http://localhost"), o = this.getId(),
|
|
2193
|
+
var u, d;
|
|
2194
|
+
const a = (n == null ? void 0 : n.url) ?? e, i = new URL(a, "http://localhost"), o = this.getId(), f = {
|
|
2213
2195
|
baseUrl: this.options.baseUrl ?? "",
|
|
2214
2196
|
headers: (n == null ? void 0 : n.headers) ?? {},
|
|
2215
2197
|
method: (n == null ? void 0 : n.method) ?? this.options.defaultMethod ?? "post",
|
|
2216
2198
|
body: (n == null ? void 0 : n.body) ?? t,
|
|
2217
2199
|
params: {},
|
|
2218
2200
|
path: i.pathname,
|
|
2219
|
-
queryString: n != null && n.query ? "?" +
|
|
2201
|
+
queryString: n != null && n.query ? "?" + io.stringify(n.query) : i.search,
|
|
2220
2202
|
query: (n == null ? void 0 : n.query) ?? Object.fromEntries(i.searchParams),
|
|
2221
2203
|
url: a,
|
|
2222
2204
|
reqId: o,
|
|
@@ -2227,10 +2209,10 @@ class io {
|
|
|
2227
2209
|
let l = this.api404;
|
|
2228
2210
|
for (let y = 0; y < this.apis.length; y++) {
|
|
2229
2211
|
const h = this.apis[y];
|
|
2230
|
-
if ((h.namespace ?? "default") ===
|
|
2231
|
-
const
|
|
2232
|
-
if (
|
|
2233
|
-
|
|
2212
|
+
if ((h.namespace ?? "default") === f.namespace && (h.method === "all" || h.method === ((d = (u = f.method) == null ? void 0 : u.toLowerCase) == null ? void 0 : d.call(u)))) {
|
|
2213
|
+
const E = jt((h.baseUrl ?? this.options.baseUrl ?? "") + h.path, { loose: !1, trailing: !1 })(f.path);
|
|
2214
|
+
if (E) {
|
|
2215
|
+
f.params = E.params, l = h;
|
|
2234
2216
|
break;
|
|
2235
2217
|
}
|
|
2236
2218
|
}
|
|
@@ -2242,8 +2224,8 @@ class io {
|
|
|
2242
2224
|
}, s = {
|
|
2243
2225
|
app: this,
|
|
2244
2226
|
currentAPI: l,
|
|
2245
|
-
req:
|
|
2246
|
-
request:
|
|
2227
|
+
req: f,
|
|
2228
|
+
request: f,
|
|
2247
2229
|
reqId: o,
|
|
2248
2230
|
requestId: o,
|
|
2249
2231
|
res: c,
|
|
@@ -2253,15 +2235,15 @@ class io {
|
|
|
2253
2235
|
meta: l.meta ?? {},
|
|
2254
2236
|
service: {}
|
|
2255
2237
|
}, p = async () => {
|
|
2256
|
-
var g,
|
|
2257
|
-
let y =
|
|
2238
|
+
var g, $;
|
|
2239
|
+
let y = f.body;
|
|
2258
2240
|
if (l.bodySchema)
|
|
2259
2241
|
if ((g = l.bodySchema) != null && g.parse)
|
|
2260
2242
|
try {
|
|
2261
|
-
y = l.bodySchema.parse(
|
|
2262
|
-
} catch (
|
|
2243
|
+
y = l.bodySchema.parse(f.body);
|
|
2244
|
+
} catch (E) {
|
|
2263
2245
|
c.status = 400;
|
|
2264
|
-
const m = (
|
|
2246
|
+
const m = ($ = E == null ? void 0 : E.issues) == null ? void 0 : $[0];
|
|
2265
2247
|
throw m && (m.message = (m.path ?? []).join(".") + " " + m.message), m ? { ...m, code: 0 } : new Error("参数错误");
|
|
2266
2248
|
}
|
|
2267
2249
|
else
|
|
@@ -2270,7 +2252,7 @@ class io {
|
|
|
2270
2252
|
h !== void 0 && (c.body = h);
|
|
2271
2253
|
};
|
|
2272
2254
|
if (l.middlewares && l.middlewares.length > 0) {
|
|
2273
|
-
const y =
|
|
2255
|
+
const y = tt(l.middlewares), h = async () => await y(s, p);
|
|
2274
2256
|
n != null && n.noPublicMiddleware ? await h : await this.fnMiddleware(s, h);
|
|
2275
2257
|
} else
|
|
2276
2258
|
n != null && n.noPublicMiddleware ? await p() : await this.fnMiddleware(s, p);
|
|
@@ -2303,13 +2285,13 @@ class io {
|
|
|
2303
2285
|
return this.options.baseUrl ?? "";
|
|
2304
2286
|
}
|
|
2305
2287
|
}
|
|
2306
|
-
const
|
|
2307
|
-
function
|
|
2288
|
+
const fo = Symbol("soon-api");
|
|
2289
|
+
function mo(r) {
|
|
2308
2290
|
const e = { ...r };
|
|
2309
|
-
return e._soon_symbol =
|
|
2291
|
+
return e._soon_symbol = fo, e;
|
|
2310
2292
|
}
|
|
2311
|
-
const
|
|
2312
|
-
function
|
|
2293
|
+
const uo = Symbol("soon-service");
|
|
2294
|
+
function vo(r) {
|
|
2313
2295
|
async function e() {
|
|
2314
2296
|
var i;
|
|
2315
2297
|
const t = r.service;
|
|
@@ -2318,27 +2300,27 @@ function ho(r) {
|
|
|
2318
2300
|
return n;
|
|
2319
2301
|
if (w.servicePending.get(t)) {
|
|
2320
2302
|
let o = w.serviceCb.get(t);
|
|
2321
|
-
return o || (o = [], w.serviceCb.set(t, o)), new Promise((
|
|
2322
|
-
o.push((l) =>
|
|
2303
|
+
return o || (o = [], w.serviceCb.set(t, o)), new Promise((f) => {
|
|
2304
|
+
o.push((l) => f(l));
|
|
2323
2305
|
});
|
|
2324
2306
|
}
|
|
2325
2307
|
return w.servicePending.set(t, !0), await new Promise((o) => {
|
|
2326
2308
|
w.app ? o(1) : w.appCb.push(() => o(1));
|
|
2327
2309
|
}), n = await t(w.app), w.services.set(t, n), (i = w.serviceCb.get(t)) == null || i.forEach((o) => o(n)), w.serviceCb.delete(t), w.servicePending.delete(t), n;
|
|
2328
2310
|
}
|
|
2329
|
-
return e._soon_symbol =
|
|
2311
|
+
return e._soon_symbol = uo, e.serviceName = (r == null ? void 0 : r.serviceName) ?? "", e.autoInject = (r == null ? void 0 : r.autoInject) ?? !1, e.enableClient = (r == null ? void 0 : r.enableClient) ?? !1, e;
|
|
2330
2312
|
}
|
|
2331
|
-
function
|
|
2313
|
+
function go(r) {
|
|
2332
2314
|
return r;
|
|
2333
2315
|
}
|
|
2334
|
-
function
|
|
2316
|
+
function wo(r) {
|
|
2335
2317
|
return async function() {
|
|
2336
|
-
return await
|
|
2318
|
+
return await oo(r);
|
|
2337
2319
|
};
|
|
2338
2320
|
}
|
|
2339
|
-
async function
|
|
2321
|
+
async function So(r) {
|
|
2340
2322
|
return await new Promise((e, t) => {
|
|
2341
|
-
new
|
|
2323
|
+
new lo(r, (n, a) => {
|
|
2342
2324
|
if (n) {
|
|
2343
2325
|
t(n);
|
|
2344
2326
|
return;
|
|
@@ -2347,33 +2329,33 @@ async function go(r) {
|
|
|
2347
2329
|
});
|
|
2348
2330
|
});
|
|
2349
2331
|
}
|
|
2350
|
-
class
|
|
2332
|
+
class bo extends Error {
|
|
2351
2333
|
constructor(t, n) {
|
|
2352
2334
|
super(t);
|
|
2353
2335
|
P(this, "code");
|
|
2354
2336
|
this.code = n;
|
|
2355
2337
|
}
|
|
2356
2338
|
}
|
|
2357
|
-
class
|
|
2339
|
+
class Eo extends Error {
|
|
2358
2340
|
constructor(t, n) {
|
|
2359
2341
|
super(t);
|
|
2360
2342
|
P(this, "status");
|
|
2361
2343
|
this.status = n;
|
|
2362
2344
|
}
|
|
2363
2345
|
}
|
|
2364
|
-
function
|
|
2346
|
+
function Ao({
|
|
2365
2347
|
pingTime: r = 0,
|
|
2366
2348
|
action: e
|
|
2367
2349
|
}) {
|
|
2368
2350
|
let t = () => null;
|
|
2369
|
-
const n = new
|
|
2351
|
+
const n = new pt((a) => {
|
|
2370
2352
|
let i;
|
|
2371
2353
|
r > 0 && (i = setInterval(() => {
|
|
2372
|
-
|
|
2354
|
+
f.closed ? clearInterval(i) : a.next({ event: "ping", message: `: ping
|
|
2373
2355
|
|
|
2374
2356
|
` });
|
|
2375
2357
|
}, r));
|
|
2376
|
-
const o = [],
|
|
2358
|
+
const o = [], f = {
|
|
2377
2359
|
send(l) {
|
|
2378
2360
|
try {
|
|
2379
2361
|
a.next({
|
|
@@ -2384,20 +2366,20 @@ function bo({
|
|
|
2384
2366
|
`
|
|
2385
2367
|
});
|
|
2386
2368
|
} catch (c) {
|
|
2387
|
-
|
|
2369
|
+
f.error(c.message);
|
|
2388
2370
|
}
|
|
2389
2371
|
},
|
|
2390
2372
|
error(l) {
|
|
2391
2373
|
a.next({ event: "error", data: l, message: `event: error
|
|
2392
2374
|
data: ${l}
|
|
2393
2375
|
|
|
2394
|
-
` }), a.complete(),
|
|
2376
|
+
` }), a.complete(), f.closed = !0, o.forEach((c) => c == null ? void 0 : c());
|
|
2395
2377
|
},
|
|
2396
2378
|
close() {
|
|
2397
2379
|
a.next({ event: "close", message: `event: close
|
|
2398
2380
|
data:
|
|
2399
2381
|
|
|
2400
|
-
` }), a.complete(),
|
|
2382
|
+
` }), a.complete(), f.closed = !0, i && clearInterval(i), o.forEach((l) => l == null ? void 0 : l());
|
|
2401
2383
|
},
|
|
2402
2384
|
closed: !1,
|
|
2403
2385
|
onClosed(l) {
|
|
@@ -2405,17 +2387,17 @@ data:
|
|
|
2405
2387
|
}
|
|
2406
2388
|
};
|
|
2407
2389
|
t = () => {
|
|
2408
|
-
|
|
2409
|
-
}, e(
|
|
2390
|
+
f.closed || f.close();
|
|
2391
|
+
}, e(f);
|
|
2410
2392
|
});
|
|
2411
2393
|
return n.streamClose = () => t == null ? void 0 : t(), n;
|
|
2412
2394
|
}
|
|
2413
|
-
function
|
|
2414
|
-
return r instanceof
|
|
2395
|
+
function co(r) {
|
|
2396
|
+
return r instanceof pt;
|
|
2415
2397
|
}
|
|
2416
|
-
function
|
|
2417
|
-
if (
|
|
2418
|
-
const e = new
|
|
2398
|
+
function $o(r) {
|
|
2399
|
+
if (co(r)) {
|
|
2400
|
+
const e = new Ft();
|
|
2419
2401
|
return r.subscribe({
|
|
2420
2402
|
next(t) {
|
|
2421
2403
|
e.write(t.message);
|
|
@@ -2437,19 +2419,19 @@ function Eo(r) {
|
|
|
2437
2419
|
throw new Error("Not a valid SSE body");
|
|
2438
2420
|
}
|
|
2439
2421
|
export {
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2422
|
+
bo as BizError,
|
|
2423
|
+
pt as Observable,
|
|
2424
|
+
lo as SoonApp,
|
|
2425
|
+
Eo as SoonError,
|
|
2426
|
+
So as createSoonApp,
|
|
2427
|
+
mo as defineApi,
|
|
2428
|
+
wo as defineConfig,
|
|
2429
|
+
go as defineMiddleware,
|
|
2430
|
+
vo as defineService,
|
|
2431
|
+
co as isSSEBody,
|
|
2432
|
+
$o as resolveSSEBody,
|
|
2433
|
+
fo as soonApiSymbol,
|
|
2434
|
+
uo as soonServiceSymbol,
|
|
2435
|
+
Ao as useSSE,
|
|
2436
|
+
Gt as useSoonIdGen
|
|
2455
2437
|
};
|