@harbour-enterprises/superdoc 0.8.29 → 0.8.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/chunks/__vite-browser-external-ChNNClnV.cjs +1 -0
  2. package/dist/chunks/__vite-browser-external-YbutIfMq.es.js +7 -0
  3. package/dist/chunks/empty-DBAFSQIv.cjs +1 -0
  4. package/dist/chunks/empty-GlqisfcO.es.js +4 -0
  5. package/dist/chunks/{eventemitter3-BJmh1qdq.es.js → eventemitter3-C2H8juPb.es.js} +1 -1
  6. package/dist/chunks/{eventemitter3-DS1WPZxT.cjs → eventemitter3-D38HWRLP.cjs} +1 -1
  7. package/dist/chunks/index-BXKGjuVW.cjs +1 -0
  8. package/dist/chunks/index-ByK1C9Ha.cjs +1 -0
  9. package/dist/chunks/index-CqRwYOdx.cjs +1 -0
  10. package/dist/chunks/index-DjLrg1eZ.es.js +1676 -0
  11. package/dist/chunks/index-Dwr47WtL.es.js +230 -0
  12. package/dist/chunks/index-dZKHAFXF.es.js +42 -0
  13. package/dist/chunks/jszip-ChlzEvf9.cjs +6 -0
  14. package/dist/chunks/jszip-DSGi1sNe.es.js +1071 -0
  15. package/dist/chunks/{super-editor.es-DOk_Y-T9.cjs → super-editor.es-DW8rMUBO.cjs} +86 -86
  16. package/dist/chunks/{@harbour-enterprises/super-editor-D1Xk5Yrd.es.js → super-editor.es-DiQ6ytI2.es.js} +6577 -6290
  17. package/dist/chunks/url-6Xu7gR4T.cjs +6 -0
  18. package/dist/chunks/url-BxDGAI6E.es.js +1475 -0
  19. package/dist/chunks/{vue-BEXwSXMc.es.js → vue-BDbTsTMu.es.js} +32 -32
  20. package/dist/chunks/xml-js-BAML2_fM.es.js +1757 -0
  21. package/dist/chunks/xml-js-zhwNEV5e.cjs +10 -0
  22. package/dist/components/PdfViewer/helpers/pdfjs-worker.d.ts +3 -0
  23. package/dist/components/PdfViewer/helpers/pdfjs-worker.d.ts.map +1 -0
  24. package/dist/components/PdfViewer/pdfjs.d.ts +3 -0
  25. package/dist/components/PdfViewer/pdfjs.d.ts.map +1 -0
  26. package/dist/core/SuperDoc.d.ts.map +1 -1
  27. package/dist/images/altText_add.svg +3 -0
  28. package/dist/images/altText_done.svg +3 -0
  29. package/dist/images/annotation-check.svg +11 -0
  30. package/dist/images/annotation-comment.svg +16 -0
  31. package/dist/images/annotation-help.svg +26 -0
  32. package/dist/images/annotation-insert.svg +10 -0
  33. package/dist/images/annotation-key.svg +11 -0
  34. package/dist/images/annotation-newparagraph.svg +11 -0
  35. package/dist/images/annotation-noicon.svg +7 -0
  36. package/dist/images/annotation-note.svg +42 -0
  37. package/dist/images/annotation-paperclip.svg +6 -0
  38. package/dist/images/annotation-paragraph.svg +16 -0
  39. package/dist/images/annotation-pushpin.svg +7 -0
  40. package/dist/images/cursor-editorFreeHighlight.svg +6 -0
  41. package/dist/images/cursor-editorFreeText.svg +3 -0
  42. package/dist/images/cursor-editorInk.svg +4 -0
  43. package/dist/images/cursor-editorTextHighlight.svg +8 -0
  44. package/dist/images/editor-toolbar-delete.svg +5 -0
  45. package/dist/images/loading-icon.gif +0 -0
  46. package/dist/images/toolbarButton-editorHighlight.svg +6 -0
  47. package/dist/images/toolbarButton-menuArrow.svg +3 -0
  48. package/dist/style.css +9 -9
  49. package/dist/super-editor/chunks/{converter-14D5Azcr.js → converter-BE8UkEHA.js} +13 -13
  50. package/dist/super-editor/chunks/{docx-zipper-DgX4zdaV.js → docx-zipper-B7iW1WqK.js} +1 -1
  51. package/dist/super-editor/chunks/{editor-CPMoG7gE.js → editor-D7e-8Caj.js} +3275 -2988
  52. package/dist/super-editor/chunks/{toolbar-BDRxH8WI.js → toolbar-C_A0zvKt.js} +2 -2
  53. package/dist/super-editor/converter.es.js +1 -1
  54. package/dist/super-editor/docx-zipper.es.js +2 -2
  55. package/dist/super-editor/editor.es.js +3 -3
  56. package/dist/super-editor/file-zipper.es.js +1 -1
  57. package/dist/super-editor/super-editor.es.js +7 -7
  58. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-DJbCKw0t.d.ts +3 -0
  59. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-DJbCKw0t.d.ts.map +1 -0
  60. package/dist/super-editor/tests/playwright/playwright-test/dist/assets/index-CRixhnI8.d.ts +3 -0
  61. package/dist/super-editor/tests/playwright/playwright-test/dist/assets/index-CRixhnI8.d.ts.map +1 -0
  62. package/dist/super-editor/toolbar.es.js +2 -2
  63. package/dist/super-editor.cjs +1 -1
  64. package/dist/super-editor.es.js +9 -9
  65. package/dist/superdoc.cjs +451 -161
  66. package/dist/superdoc.es.js +27781 -6827
  67. package/dist/superdoc.umd.js +4061 -3777
  68. package/dist/superdoc.umd.js.map +1 -1
  69. package/package.json +1 -1
  70. package/dist/chunks/jszip-B3_nOU0X.es.js +0 -1028
  71. package/dist/chunks/jszip-O1Upj8hc.cjs +0 -6
  72. package/dist/chunks/xml-js-B-IG5FIb.cjs +0 -1
  73. package/dist/chunks/xml-js-DTu9DyCb.es.js +0 -2
@@ -0,0 +1,1475 @@
1
+ import { c as pe, g as gr, a as Qr } from "./jszip-DSGi1sNe.es.js";
2
+ import { t as $e, g as wr, c as Sr } from "./xml-js-BAML2_fM.es.js";
3
+ import { _ as Gr } from "./__vite-browser-external-YbutIfMq.es.js";
4
+ var Ee = { exports: {} };
5
+ /*! https://mths.be/punycode v1.4.1 by @mathias */
6
+ Ee.exports;
7
+ (function(r, e) {
8
+ (function(t) {
9
+ var n = e && !e.nodeType && e, a = r && !r.nodeType && r, i = typeof pe == "object" && pe;
10
+ (i.global === i || i.window === i || i.self === i) && (t = i);
11
+ var f, o = 2147483647, l = 36, s = 1, c = 26, m = 38, u = 700, d = 72, g = 128, I = "-", S = /^xn--/, F = /[^\x20-\x7E]/, y = /[\x2E\u3002\uFF0E\uFF61]/g, p = {
12
+ overflow: "Overflow: input needs wider integers to process",
13
+ "not-basic": "Illegal input >= 0x80 (not a basic code point)",
14
+ "invalid-input": "Invalid input"
15
+ }, x = l - s, b = Math.floor, O = String.fromCharCode, N;
16
+ function T(h) {
17
+ throw new RangeError(p[h]);
18
+ }
19
+ function $(h, v) {
20
+ for (var w = h.length, E = []; w--; )
21
+ E[w] = v(h[w]);
22
+ return E;
23
+ }
24
+ function D(h, v) {
25
+ var w = h.split("@"), E = "";
26
+ w.length > 1 && (E = w[0] + "@", h = w[1]), h = h.replace(y, ".");
27
+ var C = h.split("."), U = $(C, v).join(".");
28
+ return E + U;
29
+ }
30
+ function K(h) {
31
+ for (var v = [], w = 0, E = h.length, C, U; w < E; )
32
+ C = h.charCodeAt(w++), C >= 55296 && C <= 56319 && w < E ? (U = h.charCodeAt(w++), (U & 64512) == 56320 ? v.push(((C & 1023) << 10) + (U & 1023) + 65536) : (v.push(C), w--)) : v.push(C);
33
+ return v;
34
+ }
35
+ function k(h) {
36
+ return $(h, function(v) {
37
+ var w = "";
38
+ return v > 65535 && (v -= 65536, w += O(v >>> 10 & 1023 | 55296), v = 56320 | v & 1023), w += O(v), w;
39
+ }).join("");
40
+ }
41
+ function R(h) {
42
+ return h - 48 < 10 ? h - 22 : h - 65 < 26 ? h - 65 : h - 97 < 26 ? h - 97 : l;
43
+ }
44
+ function q(h, v) {
45
+ return h + 22 + 75 * (h < 26) - ((v != 0) << 5);
46
+ }
47
+ function M(h, v, w) {
48
+ var E = 0;
49
+ for (h = w ? b(h / u) : h >> 1, h += b(h / v); h > x * c >> 1; E += l)
50
+ h = b(h / x);
51
+ return b(E + (x + 1) * h / (h + m));
52
+ }
53
+ function W(h) {
54
+ var v = [], w = h.length, E, C = 0, U = g, L = d, B, Q, V, Y, P, z, G, re, ie;
55
+ for (B = h.lastIndexOf(I), B < 0 && (B = 0), Q = 0; Q < B; ++Q)
56
+ h.charCodeAt(Q) >= 128 && T("not-basic"), v.push(h.charCodeAt(Q));
57
+ for (V = B > 0 ? B + 1 : 0; V < w; ) {
58
+ for (Y = C, P = 1, z = l; V >= w && T("invalid-input"), G = R(h.charCodeAt(V++)), (G >= l || G > b((o - C) / P)) && T("overflow"), C += G * P, re = z <= L ? s : z >= L + c ? c : z - L, !(G < re); z += l)
59
+ ie = l - re, P > b(o / ie) && T("overflow"), P *= ie;
60
+ E = v.length + 1, L = M(C - Y, E, Y == 0), b(C / E) > o - U && T("overflow"), U += b(C / E), C %= E, v.splice(C++, 0, U);
61
+ }
62
+ return k(v);
63
+ }
64
+ function ee(h) {
65
+ var v, w, E, C, U, L, B, Q, V, Y, P, z = [], G, re, ie, De;
66
+ for (h = K(h), G = h.length, v = g, w = 0, U = d, L = 0; L < G; ++L)
67
+ P = h[L], P < 128 && z.push(O(P));
68
+ for (E = C = z.length, C && z.push(I); E < G; ) {
69
+ for (B = o, L = 0; L < G; ++L)
70
+ P = h[L], P >= v && P < B && (B = P);
71
+ for (re = E + 1, B - v > b((o - w) / re) && T("overflow"), w += (B - v) * re, v = B, L = 0; L < G; ++L)
72
+ if (P = h[L], P < v && ++w > o && T("overflow"), P == v) {
73
+ for (Q = w, V = l; Y = V <= U ? s : V >= U + c ? c : V - U, !(Q < Y); V += l)
74
+ De = Q - Y, ie = l - Y, z.push(
75
+ O(q(Y + De % ie, 0))
76
+ ), Q = b(De / ie);
77
+ z.push(O(q(Q, 0))), U = M(w, re, E == C), w = 0, ++E;
78
+ }
79
+ ++w, ++v;
80
+ }
81
+ return z.join("");
82
+ }
83
+ function _e(h) {
84
+ return D(h, function(v) {
85
+ return S.test(v) ? W(v.slice(4).toLowerCase()) : v;
86
+ });
87
+ }
88
+ function Se(h) {
89
+ return D(h, function(v) {
90
+ return F.test(v) ? "xn--" + ee(v) : v;
91
+ });
92
+ }
93
+ if (f = {
94
+ /**
95
+ * A string representing the current Punycode.js version number.
96
+ * @memberOf punycode
97
+ * @type String
98
+ */
99
+ version: "1.4.1",
100
+ /**
101
+ * An object of methods to convert from JavaScript's internal character
102
+ * representation (UCS-2) to Unicode code points, and back.
103
+ * @see <https://mathiasbynens.be/notes/javascript-encoding>
104
+ * @memberOf punycode
105
+ * @type Object
106
+ */
107
+ ucs2: {
108
+ decode: K,
109
+ encode: k
110
+ },
111
+ decode: W,
112
+ encode: ee,
113
+ toASCII: Se,
114
+ toUnicode: _e
115
+ }, n && a)
116
+ if (r.exports == n)
117
+ a.exports = f;
118
+ else
119
+ for (N in f)
120
+ f.hasOwnProperty(N) && (n[N] = f[N]);
121
+ else
122
+ t.punycode = f;
123
+ })(pe);
124
+ })(Ee, Ee.exports);
125
+ var Vr = Ee.exports;
126
+ const Jr = /* @__PURE__ */ gr(Vr), Zr = /* @__PURE__ */ Qr(Gr);
127
+ var Ze = typeof Map == "function" && Map.prototype, Le = Object.getOwnPropertyDescriptor && Ze ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ae = Ze && Le && typeof Le.get == "function" ? Le.get : null, er = Ze && Map.prototype.forEach, Xe = typeof Set == "function" && Set.prototype, Fe = Object.getOwnPropertyDescriptor && Xe ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Te = Xe && Fe && typeof Fe.get == "function" ? Fe.get : null, rr = Xe && Set.prototype.forEach, Xr = typeof WeakMap == "function" && WeakMap.prototype, ye = Xr ? WeakMap.prototype.has : null, Yr = typeof WeakSet == "function" && WeakSet.prototype, de = Yr ? WeakSet.prototype.has : null, jr = typeof WeakRef == "function" && WeakRef.prototype, tr = jr ? WeakRef.prototype.deref : null, et = Boolean.prototype.valueOf, rt = Object.prototype.toString, tt = Function.prototype.toString, nt = String.prototype.match, Ye = String.prototype.slice, te = String.prototype.replace, at = String.prototype.toUpperCase, nr = String.prototype.toLowerCase, br = RegExp.prototype.test, ar = Array.prototype.concat, X = Array.prototype.join, it = Array.prototype.slice, ir = Math.floor, Be = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Me = Object.getOwnPropertySymbols, ze = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ce = typeof Symbol == "function" && typeof Symbol.iterator == "object", me = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ce || !0) ? Symbol.toStringTag : null, xr = Object.prototype.propertyIsEnumerable, or = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
128
+ return r.__proto__;
129
+ } : null);
130
+ function fr(r, e) {
131
+ if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || br.call(/e/, e))
132
+ return e;
133
+ var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
134
+ if (typeof r == "number") {
135
+ var n = r < 0 ? -ir(-r) : ir(r);
136
+ if (n !== r) {
137
+ var a = String(n), i = Ye.call(e, a.length + 1);
138
+ return te.call(a, t, "$&_") + "." + te.call(te.call(i, /([0-9]{3})/g, "$&_"), /_$/, "");
139
+ }
140
+ }
141
+ return te.call(e, t, "$&_");
142
+ }
143
+ var He = Zr, lr = He.custom, ur = Ar(lr) ? lr : null, Or = {
144
+ __proto__: null,
145
+ double: '"',
146
+ single: "'"
147
+ }, ot = {
148
+ __proto__: null,
149
+ double: /(["\\])/g,
150
+ single: /(['\\])/g
151
+ }, Ce = function r(e, t, n, a) {
152
+ var i = t || {};
153
+ if (j(i, "quoteStyle") && !j(Or, i.quoteStyle))
154
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
155
+ if (j(i, "maxStringLength") && (typeof i.maxStringLength == "number" ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0 : i.maxStringLength !== null))
156
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
157
+ var f = j(i, "customInspect") ? i.customInspect : !0;
158
+ if (typeof f != "boolean" && f !== "symbol")
159
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
160
+ if (j(i, "indent") && i.indent !== null && i.indent !== " " && !(parseInt(i.indent, 10) === i.indent && i.indent > 0))
161
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
162
+ if (j(i, "numericSeparator") && typeof i.numericSeparator != "boolean")
163
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
164
+ var o = i.numericSeparator;
165
+ if (typeof e > "u")
166
+ return "undefined";
167
+ if (e === null)
168
+ return "null";
169
+ if (typeof e == "boolean")
170
+ return e ? "true" : "false";
171
+ if (typeof e == "string")
172
+ return $r(e, i);
173
+ if (typeof e == "number") {
174
+ if (e === 0)
175
+ return 1 / 0 / e > 0 ? "0" : "-0";
176
+ var l = String(e);
177
+ return o ? fr(e, l) : l;
178
+ }
179
+ if (typeof e == "bigint") {
180
+ var s = String(e) + "n";
181
+ return o ? fr(e, s) : s;
182
+ }
183
+ var c = typeof i.depth > "u" ? 5 : i.depth;
184
+ if (typeof n > "u" && (n = 0), n >= c && c > 0 && typeof e == "object")
185
+ return Ke(e) ? "[Array]" : "[Object]";
186
+ var m = Et(i, n);
187
+ if (typeof a > "u")
188
+ a = [];
189
+ else if (Tr(a, e) >= 0)
190
+ return "[Circular]";
191
+ function u(R, q, M) {
192
+ if (q && (a = it.call(a), a.push(q)), M) {
193
+ var W = {
194
+ depth: i.depth
195
+ };
196
+ return j(i, "quoteStyle") && (W.quoteStyle = i.quoteStyle), r(R, W, n + 1, a);
197
+ }
198
+ return r(R, i, n + 1, a);
199
+ }
200
+ if (typeof e == "function" && !sr(e)) {
201
+ var d = dt(e), g = be(e, u);
202
+ return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (g.length > 0 ? " { " + X.call(g, ", ") + " }" : "");
203
+ }
204
+ if (Ar(e)) {
205
+ var I = ce ? te.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : ze.call(e);
206
+ return typeof e == "object" && !ce ? he(I) : I;
207
+ }
208
+ if (bt(e)) {
209
+ for (var S = "<" + nr.call(String(e.nodeName)), F = e.attributes || [], y = 0; y < F.length; y++)
210
+ S += " " + F[y].name + "=" + Er(ft(F[y].value), "double", i);
211
+ return S += ">", e.childNodes && e.childNodes.length && (S += "..."), S += "</" + nr.call(String(e.nodeName)) + ">", S;
212
+ }
213
+ if (Ke(e)) {
214
+ if (e.length === 0)
215
+ return "[]";
216
+ var p = be(e, u);
217
+ return m && !Ot(p) ? "[" + ke(p, m) + "]" : "[ " + X.call(p, ", ") + " ]";
218
+ }
219
+ if (ut(e)) {
220
+ var x = be(e, u);
221
+ return !("cause" in Error.prototype) && "cause" in e && !xr.call(e, "cause") ? "{ [" + String(e) + "] " + X.call(ar.call("[cause]: " + u(e.cause), x), ", ") + " }" : x.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + X.call(x, ", ") + " }";
222
+ }
223
+ if (typeof e == "object" && f) {
224
+ if (ur && typeof e[ur] == "function" && He)
225
+ return He(e, { depth: c - n });
226
+ if (f !== "symbol" && typeof e.inspect == "function")
227
+ return e.inspect();
228
+ }
229
+ if (mt(e)) {
230
+ var b = [];
231
+ return er && er.call(e, function(R, q) {
232
+ b.push(u(q, e, !0) + " => " + u(R, e));
233
+ }), cr("Map", Ae.call(e), b, m);
234
+ }
235
+ if (wt(e)) {
236
+ var O = [];
237
+ return rr && rr.call(e, function(R) {
238
+ O.push(u(R, e));
239
+ }), cr("Set", Te.call(e), O, m);
240
+ }
241
+ if (vt(e))
242
+ return Pe("WeakMap");
243
+ if (St(e))
244
+ return Pe("WeakSet");
245
+ if (gt(e))
246
+ return Pe("WeakRef");
247
+ if (ct(e))
248
+ return he(u(Number(e)));
249
+ if (pt(e))
250
+ return he(u(Be.call(e)));
251
+ if (ht(e))
252
+ return he(et.call(e));
253
+ if (st(e))
254
+ return he(u(String(e)));
255
+ if (typeof window < "u" && e === window)
256
+ return "{ [object Window] }";
257
+ if (typeof globalThis < "u" && e === globalThis || typeof pe < "u" && e === pe)
258
+ return "{ [object globalThis] }";
259
+ if (!lt(e) && !sr(e)) {
260
+ var N = be(e, u), T = or ? or(e) === Object.prototype : e instanceof Object || e.constructor === Object, $ = e instanceof Object ? "" : "null prototype", D = !T && me && Object(e) === e && me in e ? Ye.call(ae(e), 8, -1) : $ ? "Object" : "", K = T || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", k = K + (D || $ ? "[" + X.call(ar.call([], D || [], $ || []), ": ") + "] " : "");
261
+ return N.length === 0 ? k + "{}" : m ? k + "{" + ke(N, m) + "}" : k + "{ " + X.call(N, ", ") + " }";
262
+ }
263
+ return String(e);
264
+ };
265
+ function Er(r, e, t) {
266
+ var n = t.quoteStyle || e, a = Or[n];
267
+ return a + r + a;
268
+ }
269
+ function ft(r) {
270
+ return te.call(String(r), /"/g, "&quot;");
271
+ }
272
+ function le(r) {
273
+ return !me || !(typeof r == "object" && (me in r || typeof r[me] < "u"));
274
+ }
275
+ function Ke(r) {
276
+ return ae(r) === "[object Array]" && le(r);
277
+ }
278
+ function lt(r) {
279
+ return ae(r) === "[object Date]" && le(r);
280
+ }
281
+ function sr(r) {
282
+ return ae(r) === "[object RegExp]" && le(r);
283
+ }
284
+ function ut(r) {
285
+ return ae(r) === "[object Error]" && le(r);
286
+ }
287
+ function st(r) {
288
+ return ae(r) === "[object String]" && le(r);
289
+ }
290
+ function ct(r) {
291
+ return ae(r) === "[object Number]" && le(r);
292
+ }
293
+ function ht(r) {
294
+ return ae(r) === "[object Boolean]" && le(r);
295
+ }
296
+ function Ar(r) {
297
+ if (ce)
298
+ return r && typeof r == "object" && r instanceof Symbol;
299
+ if (typeof r == "symbol")
300
+ return !0;
301
+ if (!r || typeof r != "object" || !ze)
302
+ return !1;
303
+ try {
304
+ return ze.call(r), !0;
305
+ } catch {
306
+ }
307
+ return !1;
308
+ }
309
+ function pt(r) {
310
+ if (!r || typeof r != "object" || !Be)
311
+ return !1;
312
+ try {
313
+ return Be.call(r), !0;
314
+ } catch {
315
+ }
316
+ return !1;
317
+ }
318
+ var yt = Object.prototype.hasOwnProperty || function(r) {
319
+ return r in this;
320
+ };
321
+ function j(r, e) {
322
+ return yt.call(r, e);
323
+ }
324
+ function ae(r) {
325
+ return rt.call(r);
326
+ }
327
+ function dt(r) {
328
+ if (r.name)
329
+ return r.name;
330
+ var e = nt.call(tt.call(r), /^function\s*([\w$]+)/);
331
+ return e ? e[1] : null;
332
+ }
333
+ function Tr(r, e) {
334
+ if (r.indexOf)
335
+ return r.indexOf(e);
336
+ for (var t = 0, n = r.length; t < n; t++)
337
+ if (r[t] === e)
338
+ return t;
339
+ return -1;
340
+ }
341
+ function mt(r) {
342
+ if (!Ae || !r || typeof r != "object")
343
+ return !1;
344
+ try {
345
+ Ae.call(r);
346
+ try {
347
+ Te.call(r);
348
+ } catch {
349
+ return !0;
350
+ }
351
+ return r instanceof Map;
352
+ } catch {
353
+ }
354
+ return !1;
355
+ }
356
+ function vt(r) {
357
+ if (!ye || !r || typeof r != "object")
358
+ return !1;
359
+ try {
360
+ ye.call(r, ye);
361
+ try {
362
+ de.call(r, de);
363
+ } catch {
364
+ return !0;
365
+ }
366
+ return r instanceof WeakMap;
367
+ } catch {
368
+ }
369
+ return !1;
370
+ }
371
+ function gt(r) {
372
+ if (!tr || !r || typeof r != "object")
373
+ return !1;
374
+ try {
375
+ return tr.call(r), !0;
376
+ } catch {
377
+ }
378
+ return !1;
379
+ }
380
+ function wt(r) {
381
+ if (!Te || !r || typeof r != "object")
382
+ return !1;
383
+ try {
384
+ Te.call(r);
385
+ try {
386
+ Ae.call(r);
387
+ } catch {
388
+ return !0;
389
+ }
390
+ return r instanceof Set;
391
+ } catch {
392
+ }
393
+ return !1;
394
+ }
395
+ function St(r) {
396
+ if (!de || !r || typeof r != "object")
397
+ return !1;
398
+ try {
399
+ de.call(r, de);
400
+ try {
401
+ ye.call(r, ye);
402
+ } catch {
403
+ return !0;
404
+ }
405
+ return r instanceof WeakSet;
406
+ } catch {
407
+ }
408
+ return !1;
409
+ }
410
+ function bt(r) {
411
+ return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
412
+ }
413
+ function $r(r, e) {
414
+ if (r.length > e.maxStringLength) {
415
+ var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
416
+ return $r(Ye.call(r, 0, e.maxStringLength), e) + n;
417
+ }
418
+ var a = ot[e.quoteStyle || "single"];
419
+ a.lastIndex = 0;
420
+ var i = te.call(te.call(r, a, "\\$1"), /[\x00-\x1f]/g, xt);
421
+ return Er(i, "single", e);
422
+ }
423
+ function xt(r) {
424
+ var e = r.charCodeAt(0), t = {
425
+ 8: "b",
426
+ 9: "t",
427
+ 10: "n",
428
+ 12: "f",
429
+ 13: "r"
430
+ }[e];
431
+ return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + at.call(e.toString(16));
432
+ }
433
+ function he(r) {
434
+ return "Object(" + r + ")";
435
+ }
436
+ function Pe(r) {
437
+ return r + " { ? }";
438
+ }
439
+ function cr(r, e, t, n) {
440
+ var a = n ? ke(t, n) : X.call(t, ", ");
441
+ return r + " (" + e + ") {" + a + "}";
442
+ }
443
+ function Ot(r) {
444
+ for (var e = 0; e < r.length; e++)
445
+ if (Tr(r[e], `
446
+ `) >= 0)
447
+ return !1;
448
+ return !0;
449
+ }
450
+ function Et(r, e) {
451
+ var t;
452
+ if (r.indent === " ")
453
+ t = " ";
454
+ else if (typeof r.indent == "number" && r.indent > 0)
455
+ t = X.call(Array(r.indent + 1), " ");
456
+ else
457
+ return null;
458
+ return {
459
+ base: t,
460
+ prev: X.call(Array(e + 1), t)
461
+ };
462
+ }
463
+ function ke(r, e) {
464
+ if (r.length === 0)
465
+ return "";
466
+ var t = `
467
+ ` + e.prev + e.base;
468
+ return t + X.call(r, "," + t) + `
469
+ ` + e.prev;
470
+ }
471
+ function be(r, e) {
472
+ var t = Ke(r), n = [];
473
+ if (t) {
474
+ n.length = r.length;
475
+ for (var a = 0; a < r.length; a++)
476
+ n[a] = j(r, a) ? e(r[a], r) : "";
477
+ }
478
+ var i = typeof Me == "function" ? Me(r) : [], f;
479
+ if (ce) {
480
+ f = {};
481
+ for (var o = 0; o < i.length; o++)
482
+ f["$" + i[o]] = i[o];
483
+ }
484
+ for (var l in r)
485
+ j(r, l) && (t && String(Number(l)) === l && l < r.length || ce && f["$" + l] instanceof Symbol || (br.call(/[^\w$]/, l) ? n.push(e(l, r) + ": " + e(r[l], r)) : n.push(l + ": " + e(r[l], r))));
486
+ if (typeof Me == "function")
487
+ for (var s = 0; s < i.length; s++)
488
+ xr.call(r, i[s]) && n.push("[" + e(i[s]) + "]: " + e(r[i[s]], r));
489
+ return n;
490
+ }
491
+ var At = Ce, Tt = $e, Ie = function(r, e, t) {
492
+ for (var n = r, a; (a = n.next) != null; n = a)
493
+ if (a.key === e)
494
+ return n.next = a.next, t || (a.next = /** @type {NonNullable<typeof list.next>} */
495
+ r.next, r.next = a), a;
496
+ }, $t = function(r, e) {
497
+ if (r) {
498
+ var t = Ie(r, e);
499
+ return t && t.value;
500
+ }
501
+ }, Ct = function(r, e, t) {
502
+ var n = Ie(r, e);
503
+ n ? n.value = t : r.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
504
+ {
505
+ // eslint-disable-line no-param-reassign, no-extra-parens
506
+ key: e,
507
+ next: r.next,
508
+ value: t
509
+ };
510
+ }, It = function(r, e) {
511
+ return r ? !!Ie(r, e) : !1;
512
+ }, Rt = function(r, e) {
513
+ if (r)
514
+ return Ie(r, e, !0);
515
+ }, _t = function() {
516
+ var e, t = {
517
+ assert: function(n) {
518
+ if (!t.has(n))
519
+ throw new Tt("Side channel does not contain " + At(n));
520
+ },
521
+ delete: function(n) {
522
+ var a = e && e.next, i = Rt(e, n);
523
+ return i && a && a === i && (e = void 0), !!i;
524
+ },
525
+ get: function(n) {
526
+ return $t(e, n);
527
+ },
528
+ has: function(n) {
529
+ return It(e, n);
530
+ },
531
+ set: function(n, a) {
532
+ e || (e = {
533
+ next: void 0
534
+ }), Ct(
535
+ /** @type {NonNullable<typeof $o>} */
536
+ e,
537
+ n,
538
+ a
539
+ );
540
+ }
541
+ };
542
+ return t;
543
+ }, Dt = wr, ge = Sr, Lt = Ce, Ft = $e, hr = Dt("%Map%", !0), Mt = ge("Map.prototype.get", !0), Pt = ge("Map.prototype.set", !0), Nt = ge("Map.prototype.has", !0), qt = ge("Map.prototype.delete", !0), Ut = ge("Map.prototype.size", !0), Cr = !!hr && /** @type {Exclude<import('.'), false>} */
544
+ function() {
545
+ var e, t = {
546
+ assert: function(n) {
547
+ if (!t.has(n))
548
+ throw new Ft("Side channel does not contain " + Lt(n));
549
+ },
550
+ delete: function(n) {
551
+ if (e) {
552
+ var a = qt(e, n);
553
+ return Ut(e) === 0 && (e = void 0), a;
554
+ }
555
+ return !1;
556
+ },
557
+ get: function(n) {
558
+ if (e)
559
+ return Mt(e, n);
560
+ },
561
+ has: function(n) {
562
+ return e ? Nt(e, n) : !1;
563
+ },
564
+ set: function(n, a) {
565
+ e || (e = new hr()), Pt(e, n, a);
566
+ }
567
+ };
568
+ return t;
569
+ }, Wt = wr, Re = Sr, Bt = Ce, xe = Cr, zt = $e, ue = Wt("%WeakMap%", !0), Ht = Re("WeakMap.prototype.get", !0), Kt = Re("WeakMap.prototype.set", !0), kt = Re("WeakMap.prototype.has", !0), Qt = Re("WeakMap.prototype.delete", !0), Gt = ue ? (
570
+ /** @type {Exclude<import('.'), false>} */
571
+ function() {
572
+ var e, t, n = {
573
+ assert: function(a) {
574
+ if (!n.has(a))
575
+ throw new zt("Side channel does not contain " + Bt(a));
576
+ },
577
+ delete: function(a) {
578
+ if (ue && a && (typeof a == "object" || typeof a == "function")) {
579
+ if (e)
580
+ return Qt(e, a);
581
+ } else if (xe && t)
582
+ return t.delete(a);
583
+ return !1;
584
+ },
585
+ get: function(a) {
586
+ return ue && a && (typeof a == "object" || typeof a == "function") && e ? Ht(e, a) : t && t.get(a);
587
+ },
588
+ has: function(a) {
589
+ return ue && a && (typeof a == "object" || typeof a == "function") && e ? kt(e, a) : !!t && t.has(a);
590
+ },
591
+ set: function(a, i) {
592
+ ue && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new ue()), Kt(e, a, i)) : xe && (t || (t = xe()), t.set(a, i));
593
+ }
594
+ };
595
+ return n;
596
+ }
597
+ ) : xe, Vt = $e, Jt = Ce, Zt = _t, Xt = Cr, Yt = Gt, jt = Yt || Xt || Zt, en = function() {
598
+ var e, t = {
599
+ assert: function(n) {
600
+ if (!t.has(n))
601
+ throw new Vt("Side channel does not contain " + Jt(n));
602
+ },
603
+ delete: function(n) {
604
+ return !!e && e.delete(n);
605
+ },
606
+ get: function(n) {
607
+ return e && e.get(n);
608
+ },
609
+ has: function(n) {
610
+ return !!e && e.has(n);
611
+ },
612
+ set: function(n, a) {
613
+ e || (e = jt()), e.set(n, a);
614
+ }
615
+ };
616
+ return t;
617
+ }, rn = String.prototype.replace, tn = /%20/g, Ne = {
618
+ RFC1738: "RFC1738",
619
+ RFC3986: "RFC3986"
620
+ }, je = {
621
+ default: Ne.RFC3986,
622
+ formatters: {
623
+ RFC1738: function(r) {
624
+ return rn.call(r, tn, "+");
625
+ },
626
+ RFC3986: function(r) {
627
+ return String(r);
628
+ }
629
+ },
630
+ RFC1738: Ne.RFC1738,
631
+ RFC3986: Ne.RFC3986
632
+ }, nn = je, qe = Object.prototype.hasOwnProperty, oe = Array.isArray, J = function() {
633
+ for (var r = [], e = 0; e < 256; ++e)
634
+ r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
635
+ return r;
636
+ }(), an = function(e) {
637
+ for (; e.length > 1; ) {
638
+ var t = e.pop(), n = t.obj[t.prop];
639
+ if (oe(n)) {
640
+ for (var a = [], i = 0; i < n.length; ++i)
641
+ typeof n[i] < "u" && a.push(n[i]);
642
+ t.obj[t.prop] = a;
643
+ }
644
+ }
645
+ }, Ir = function(e, t) {
646
+ for (var n = t && t.plainObjects ? { __proto__: null } : {}, a = 0; a < e.length; ++a)
647
+ typeof e[a] < "u" && (n[a] = e[a]);
648
+ return n;
649
+ }, on = function r(e, t, n) {
650
+ if (!t)
651
+ return e;
652
+ if (typeof t != "object" && typeof t != "function") {
653
+ if (oe(e))
654
+ e.push(t);
655
+ else if (e && typeof e == "object")
656
+ (n && (n.plainObjects || n.allowPrototypes) || !qe.call(Object.prototype, t)) && (e[t] = !0);
657
+ else
658
+ return [e, t];
659
+ return e;
660
+ }
661
+ if (!e || typeof e != "object")
662
+ return [e].concat(t);
663
+ var a = e;
664
+ return oe(e) && !oe(t) && (a = Ir(e, n)), oe(e) && oe(t) ? (t.forEach(function(i, f) {
665
+ if (qe.call(e, f)) {
666
+ var o = e[f];
667
+ o && typeof o == "object" && i && typeof i == "object" ? e[f] = r(o, i, n) : e.push(i);
668
+ } else
669
+ e[f] = i;
670
+ }), e) : Object.keys(t).reduce(function(i, f) {
671
+ var o = t[f];
672
+ return qe.call(i, f) ? i[f] = r(i[f], o, n) : i[f] = o, i;
673
+ }, a);
674
+ }, fn = function(e, t) {
675
+ return Object.keys(t).reduce(function(n, a) {
676
+ return n[a] = t[a], n;
677
+ }, e);
678
+ }, ln = function(r, e, t) {
679
+ var n = r.replace(/\+/g, " ");
680
+ if (t === "iso-8859-1")
681
+ return n.replace(/%[0-9a-f]{2}/gi, unescape);
682
+ try {
683
+ return decodeURIComponent(n);
684
+ } catch {
685
+ return n;
686
+ }
687
+ }, Ue = 1024, un = function(e, t, n, a, i) {
688
+ if (e.length === 0)
689
+ return e;
690
+ var f = e;
691
+ if (typeof e == "symbol" ? f = Symbol.prototype.toString.call(e) : typeof e != "string" && (f = String(e)), n === "iso-8859-1")
692
+ return escape(f).replace(/%u[0-9a-f]{4}/gi, function(d) {
693
+ return "%26%23" + parseInt(d.slice(2), 16) + "%3B";
694
+ });
695
+ for (var o = "", l = 0; l < f.length; l += Ue) {
696
+ for (var s = f.length >= Ue ? f.slice(l, l + Ue) : f, c = [], m = 0; m < s.length; ++m) {
697
+ var u = s.charCodeAt(m);
698
+ if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || i === nn.RFC1738 && (u === 40 || u === 41)) {
699
+ c[c.length] = s.charAt(m);
700
+ continue;
701
+ }
702
+ if (u < 128) {
703
+ c[c.length] = J[u];
704
+ continue;
705
+ }
706
+ if (u < 2048) {
707
+ c[c.length] = J[192 | u >> 6] + J[128 | u & 63];
708
+ continue;
709
+ }
710
+ if (u < 55296 || u >= 57344) {
711
+ c[c.length] = J[224 | u >> 12] + J[128 | u >> 6 & 63] + J[128 | u & 63];
712
+ continue;
713
+ }
714
+ m += 1, u = 65536 + ((u & 1023) << 10 | s.charCodeAt(m) & 1023), c[c.length] = J[240 | u >> 18] + J[128 | u >> 12 & 63] + J[128 | u >> 6 & 63] + J[128 | u & 63];
715
+ }
716
+ o += c.join("");
717
+ }
718
+ return o;
719
+ }, sn = function(e) {
720
+ for (var t = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < t.length; ++a)
721
+ for (var i = t[a], f = i.obj[i.prop], o = Object.keys(f), l = 0; l < o.length; ++l) {
722
+ var s = o[l], c = f[s];
723
+ typeof c == "object" && c !== null && n.indexOf(c) === -1 && (t.push({ obj: f, prop: s }), n.push(c));
724
+ }
725
+ return an(t), e;
726
+ }, cn = function(e) {
727
+ return Object.prototype.toString.call(e) === "[object RegExp]";
728
+ }, hn = function(e) {
729
+ return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
730
+ }, pn = function(e, t) {
731
+ return [].concat(e, t);
732
+ }, yn = function(e, t) {
733
+ if (oe(e)) {
734
+ for (var n = [], a = 0; a < e.length; a += 1)
735
+ n.push(t(e[a]));
736
+ return n;
737
+ }
738
+ return t(e);
739
+ }, Rr = {
740
+ arrayToObject: Ir,
741
+ assign: fn,
742
+ combine: pn,
743
+ compact: sn,
744
+ decode: ln,
745
+ encode: un,
746
+ isBuffer: hn,
747
+ isRegExp: cn,
748
+ maybeMap: yn,
749
+ merge: on
750
+ }, _r = en, Oe = Rr, ve = je, dn = Object.prototype.hasOwnProperty, Dr = {
751
+ brackets: function(e) {
752
+ return e + "[]";
753
+ },
754
+ comma: "comma",
755
+ indices: function(e, t) {
756
+ return e + "[" + t + "]";
757
+ },
758
+ repeat: function(e) {
759
+ return e;
760
+ }
761
+ }, Z = Array.isArray, mn = Array.prototype.push, Lr = function(r, e) {
762
+ mn.apply(r, Z(e) ? e : [e]);
763
+ }, vn = Date.prototype.toISOString, pr = ve.default, _ = {
764
+ addQueryPrefix: !1,
765
+ allowDots: !1,
766
+ allowEmptyArrays: !1,
767
+ arrayFormat: "indices",
768
+ charset: "utf-8",
769
+ charsetSentinel: !1,
770
+ commaRoundTrip: !1,
771
+ delimiter: "&",
772
+ encode: !0,
773
+ encodeDotInKeys: !1,
774
+ encoder: Oe.encode,
775
+ encodeValuesOnly: !1,
776
+ filter: void 0,
777
+ format: pr,
778
+ formatter: ve.formatters[pr],
779
+ // deprecated
780
+ indices: !1,
781
+ serializeDate: function(e) {
782
+ return vn.call(e);
783
+ },
784
+ skipNulls: !1,
785
+ strictNullHandling: !1
786
+ }, gn = function(e) {
787
+ return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
788
+ }, We = {}, wn = function r(e, t, n, a, i, f, o, l, s, c, m, u, d, g, I, S, F, y) {
789
+ for (var p = e, x = y, b = 0, O = !1; (x = x.get(We)) !== void 0 && !O; ) {
790
+ var N = x.get(e);
791
+ if (b += 1, typeof N < "u") {
792
+ if (N === b)
793
+ throw new RangeError("Cyclic object value");
794
+ O = !0;
795
+ }
796
+ typeof x.get(We) > "u" && (b = 0);
797
+ }
798
+ if (typeof c == "function" ? p = c(t, p) : p instanceof Date ? p = d(p) : n === "comma" && Z(p) && (p = Oe.maybeMap(p, function(h) {
799
+ return h instanceof Date ? d(h) : h;
800
+ })), p === null) {
801
+ if (f)
802
+ return s && !S ? s(t, _.encoder, F, "key", g) : t;
803
+ p = "";
804
+ }
805
+ if (gn(p) || Oe.isBuffer(p)) {
806
+ if (s) {
807
+ var T = S ? t : s(t, _.encoder, F, "key", g);
808
+ return [I(T) + "=" + I(s(p, _.encoder, F, "value", g))];
809
+ }
810
+ return [I(t) + "=" + I(String(p))];
811
+ }
812
+ var $ = [];
813
+ if (typeof p > "u")
814
+ return $;
815
+ var D;
816
+ if (n === "comma" && Z(p))
817
+ S && s && (p = Oe.maybeMap(p, s)), D = [{ value: p.length > 0 ? p.join(",") || null : void 0 }];
818
+ else if (Z(c))
819
+ D = c;
820
+ else {
821
+ var K = Object.keys(p);
822
+ D = m ? K.sort(m) : K;
823
+ }
824
+ var k = l ? String(t).replace(/\./g, "%2E") : String(t), R = a && Z(p) && p.length === 1 ? k + "[]" : k;
825
+ if (i && Z(p) && p.length === 0)
826
+ return R + "[]";
827
+ for (var q = 0; q < D.length; ++q) {
828
+ var M = D[q], W = typeof M == "object" && M && typeof M.value < "u" ? M.value : p[M];
829
+ if (!(o && W === null)) {
830
+ var ee = u && l ? String(M).replace(/\./g, "%2E") : String(M), _e = Z(p) ? typeof n == "function" ? n(R, ee) : R : R + (u ? "." + ee : "[" + ee + "]");
831
+ y.set(e, b);
832
+ var Se = _r();
833
+ Se.set(We, y), Lr($, r(
834
+ W,
835
+ _e,
836
+ n,
837
+ a,
838
+ i,
839
+ f,
840
+ o,
841
+ l,
842
+ n === "comma" && S && Z(p) ? null : s,
843
+ c,
844
+ m,
845
+ u,
846
+ d,
847
+ g,
848
+ I,
849
+ S,
850
+ F,
851
+ Se
852
+ ));
853
+ }
854
+ }
855
+ return $;
856
+ }, Sn = function(e) {
857
+ if (!e)
858
+ return _;
859
+ if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
860
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
861
+ if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
862
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
863
+ if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
864
+ throw new TypeError("Encoder has to be a function.");
865
+ var t = e.charset || _.charset;
866
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
867
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
868
+ var n = ve.default;
869
+ if (typeof e.format < "u") {
870
+ if (!dn.call(ve.formatters, e.format))
871
+ throw new TypeError("Unknown format option provided.");
872
+ n = e.format;
873
+ }
874
+ var a = ve.formatters[n], i = _.filter;
875
+ (typeof e.filter == "function" || Z(e.filter)) && (i = e.filter);
876
+ var f;
877
+ if (e.arrayFormat in Dr ? f = e.arrayFormat : "indices" in e ? f = e.indices ? "indices" : "repeat" : f = _.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
878
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
879
+ var o = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : _.allowDots : !!e.allowDots;
880
+ return {
881
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : _.addQueryPrefix,
882
+ allowDots: o,
883
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : _.allowEmptyArrays,
884
+ arrayFormat: f,
885
+ charset: t,
886
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : _.charsetSentinel,
887
+ commaRoundTrip: !!e.commaRoundTrip,
888
+ delimiter: typeof e.delimiter > "u" ? _.delimiter : e.delimiter,
889
+ encode: typeof e.encode == "boolean" ? e.encode : _.encode,
890
+ encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : _.encodeDotInKeys,
891
+ encoder: typeof e.encoder == "function" ? e.encoder : _.encoder,
892
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : _.encodeValuesOnly,
893
+ filter: i,
894
+ format: n,
895
+ formatter: a,
896
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : _.serializeDate,
897
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : _.skipNulls,
898
+ sort: typeof e.sort == "function" ? e.sort : null,
899
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : _.strictNullHandling
900
+ };
901
+ }, bn = function(r, e) {
902
+ var t = r, n = Sn(e), a, i;
903
+ typeof n.filter == "function" ? (i = n.filter, t = i("", t)) : Z(n.filter) && (i = n.filter, a = i);
904
+ var f = [];
905
+ if (typeof t != "object" || t === null)
906
+ return "";
907
+ var o = Dr[n.arrayFormat], l = o === "comma" && n.commaRoundTrip;
908
+ a || (a = Object.keys(t)), n.sort && a.sort(n.sort);
909
+ for (var s = _r(), c = 0; c < a.length; ++c) {
910
+ var m = a[c], u = t[m];
911
+ n.skipNulls && u === null || Lr(f, wn(
912
+ u,
913
+ m,
914
+ o,
915
+ l,
916
+ n.allowEmptyArrays,
917
+ n.strictNullHandling,
918
+ n.skipNulls,
919
+ n.encodeDotInKeys,
920
+ n.encode ? n.encoder : null,
921
+ n.filter,
922
+ n.sort,
923
+ n.allowDots,
924
+ n.serializeDate,
925
+ n.format,
926
+ n.formatter,
927
+ n.encodeValuesOnly,
928
+ n.charset,
929
+ s
930
+ ));
931
+ }
932
+ var d = f.join(n.delimiter), g = n.addQueryPrefix === !0 ? "?" : "";
933
+ return n.charsetSentinel && (n.charset === "iso-8859-1" ? g += "utf8=%26%2310003%3B&" : g += "utf8=%E2%9C%93&"), d.length > 0 ? g + d : "";
934
+ }, fe = Rr, Qe = Object.prototype.hasOwnProperty, yr = Array.isArray, A = {
935
+ allowDots: !1,
936
+ allowEmptyArrays: !1,
937
+ allowPrototypes: !1,
938
+ allowSparse: !1,
939
+ arrayLimit: 20,
940
+ charset: "utf-8",
941
+ charsetSentinel: !1,
942
+ comma: !1,
943
+ decodeDotInKeys: !1,
944
+ decoder: fe.decode,
945
+ delimiter: "&",
946
+ depth: 5,
947
+ duplicates: "combine",
948
+ ignoreQueryPrefix: !1,
949
+ interpretNumericEntities: !1,
950
+ parameterLimit: 1e3,
951
+ parseArrays: !0,
952
+ plainObjects: !1,
953
+ strictDepth: !1,
954
+ strictNullHandling: !1,
955
+ throwOnLimitExceeded: !1
956
+ }, xn = function(r) {
957
+ return r.replace(/&#(\d+);/g, function(e, t) {
958
+ return String.fromCharCode(parseInt(t, 10));
959
+ });
960
+ }, Fr = function(r, e, t) {
961
+ if (r && typeof r == "string" && e.comma && r.indexOf(",") > -1)
962
+ return r.split(",");
963
+ if (e.throwOnLimitExceeded && t >= e.arrayLimit)
964
+ throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
965
+ return r;
966
+ }, On = "utf8=%26%2310003%3B", En = "utf8=%E2%9C%93", An = function(e, t) {
967
+ var n = { __proto__: null }, a = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
968
+ a = a.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
969
+ var i = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, f = a.split(
970
+ t.delimiter,
971
+ t.throwOnLimitExceeded ? i + 1 : i
972
+ );
973
+ if (t.throwOnLimitExceeded && f.length > i)
974
+ throw new RangeError("Parameter limit exceeded. Only " + i + " parameter" + (i === 1 ? "" : "s") + " allowed.");
975
+ var o = -1, l, s = t.charset;
976
+ if (t.charsetSentinel)
977
+ for (l = 0; l < f.length; ++l)
978
+ f[l].indexOf("utf8=") === 0 && (f[l] === En ? s = "utf-8" : f[l] === On && (s = "iso-8859-1"), o = l, l = f.length);
979
+ for (l = 0; l < f.length; ++l)
980
+ if (l !== o) {
981
+ var c = f[l], m = c.indexOf("]="), u = m === -1 ? c.indexOf("=") : m + 1, d, g;
982
+ u === -1 ? (d = t.decoder(c, A.decoder, s, "key"), g = t.strictNullHandling ? null : "") : (d = t.decoder(c.slice(0, u), A.decoder, s, "key"), g = fe.maybeMap(
983
+ Fr(
984
+ c.slice(u + 1),
985
+ t,
986
+ yr(n[d]) ? n[d].length : 0
987
+ ),
988
+ function(S) {
989
+ return t.decoder(S, A.decoder, s, "value");
990
+ }
991
+ )), g && t.interpretNumericEntities && s === "iso-8859-1" && (g = xn(String(g))), c.indexOf("[]=") > -1 && (g = yr(g) ? [g] : g);
992
+ var I = Qe.call(n, d);
993
+ I && t.duplicates === "combine" ? n[d] = fe.combine(n[d], g) : (!I || t.duplicates === "last") && (n[d] = g);
994
+ }
995
+ return n;
996
+ }, Tn = function(r, e, t, n) {
997
+ var a = 0;
998
+ if (r.length > 0 && r[r.length - 1] === "[]") {
999
+ var i = r.slice(0, -1).join("");
1000
+ a = Array.isArray(e) && e[i] ? e[i].length : 0;
1001
+ }
1002
+ for (var f = n ? e : Fr(e, t, a), o = r.length - 1; o >= 0; --o) {
1003
+ var l, s = r[o];
1004
+ if (s === "[]" && t.parseArrays)
1005
+ l = t.allowEmptyArrays && (f === "" || t.strictNullHandling && f === null) ? [] : fe.combine([], f);
1006
+ else {
1007
+ l = t.plainObjects ? { __proto__: null } : {};
1008
+ var c = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, m = t.decodeDotInKeys ? c.replace(/%2E/g, ".") : c, u = parseInt(m, 10);
1009
+ !t.parseArrays && m === "" ? l = { 0: f } : !isNaN(u) && s !== m && String(u) === m && u >= 0 && t.parseArrays && u <= t.arrayLimit ? (l = [], l[u] = f) : m !== "__proto__" && (l[m] = f);
1010
+ }
1011
+ f = l;
1012
+ }
1013
+ return f;
1014
+ }, $n = function(e, t, n, a) {
1015
+ if (e) {
1016
+ var i = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, f = /(\[[^[\]]*])/, o = /(\[[^[\]]*])/g, l = n.depth > 0 && f.exec(i), s = l ? i.slice(0, l.index) : i, c = [];
1017
+ if (s) {
1018
+ if (!n.plainObjects && Qe.call(Object.prototype, s) && !n.allowPrototypes)
1019
+ return;
1020
+ c.push(s);
1021
+ }
1022
+ for (var m = 0; n.depth > 0 && (l = o.exec(i)) !== null && m < n.depth; ) {
1023
+ if (m += 1, !n.plainObjects && Qe.call(Object.prototype, l[1].slice(1, -1)) && !n.allowPrototypes)
1024
+ return;
1025
+ c.push(l[1]);
1026
+ }
1027
+ if (l) {
1028
+ if (n.strictDepth === !0)
1029
+ throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
1030
+ c.push("[" + i.slice(l.index) + "]");
1031
+ }
1032
+ return Tn(c, t, n, a);
1033
+ }
1034
+ }, Cn = function(e) {
1035
+ if (!e)
1036
+ return A;
1037
+ if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1038
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1039
+ if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
1040
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
1041
+ if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
1042
+ throw new TypeError("Decoder has to be a function.");
1043
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1044
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1045
+ if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
1046
+ throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
1047
+ var t = typeof e.charset > "u" ? A.charset : e.charset, n = typeof e.duplicates > "u" ? A.duplicates : e.duplicates;
1048
+ if (n !== "combine" && n !== "first" && n !== "last")
1049
+ throw new TypeError("The duplicates option must be either combine, first, or last");
1050
+ var a = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : A.allowDots : !!e.allowDots;
1051
+ return {
1052
+ allowDots: a,
1053
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : A.allowEmptyArrays,
1054
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : A.allowPrototypes,
1055
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : A.allowSparse,
1056
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : A.arrayLimit,
1057
+ charset: t,
1058
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : A.charsetSentinel,
1059
+ comma: typeof e.comma == "boolean" ? e.comma : A.comma,
1060
+ decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : A.decodeDotInKeys,
1061
+ decoder: typeof e.decoder == "function" ? e.decoder : A.decoder,
1062
+ delimiter: typeof e.delimiter == "string" || fe.isRegExp(e.delimiter) ? e.delimiter : A.delimiter,
1063
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1064
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : A.depth,
1065
+ duplicates: n,
1066
+ ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
1067
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : A.interpretNumericEntities,
1068
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : A.parameterLimit,
1069
+ parseArrays: e.parseArrays !== !1,
1070
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : A.plainObjects,
1071
+ strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : A.strictDepth,
1072
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : A.strictNullHandling,
1073
+ throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
1074
+ };
1075
+ }, In = function(r, e) {
1076
+ var t = Cn(e);
1077
+ if (r === "" || r === null || typeof r > "u")
1078
+ return t.plainObjects ? { __proto__: null } : {};
1079
+ for (var n = typeof r == "string" ? An(r, t) : r, a = t.plainObjects ? { __proto__: null } : {}, i = Object.keys(n), f = 0; f < i.length; ++f) {
1080
+ var o = i[f], l = $n(o, n[o], t, typeof r == "string");
1081
+ a = fe.merge(a, l, t);
1082
+ }
1083
+ return t.allowSparse === !0 ? a : fe.compact(a);
1084
+ }, Rn = bn, _n = In, Dn = je, Ln = {
1085
+ formats: Dn,
1086
+ parse: _n,
1087
+ stringify: Rn
1088
+ };
1089
+ const Fn = /* @__PURE__ */ gr(Ln);
1090
+ var Mn = Jr;
1091
+ function H() {
1092
+ this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
1093
+ }
1094
+ var Pn = /^([a-z0-9.+-]+:)/i, Nn = /:[0-9]*$/, qn = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, Un = [
1095
+ "<",
1096
+ ">",
1097
+ '"',
1098
+ "`",
1099
+ " ",
1100
+ "\r",
1101
+ `
1102
+ `,
1103
+ " "
1104
+ ], Wn = [
1105
+ "{",
1106
+ "}",
1107
+ "|",
1108
+ "\\",
1109
+ "^",
1110
+ "`"
1111
+ ].concat(Un), Ge = ["'"].concat(Wn), dr = [
1112
+ "%",
1113
+ "/",
1114
+ "?",
1115
+ ";",
1116
+ "#"
1117
+ ].concat(Ge), mr = [
1118
+ "/",
1119
+ "?",
1120
+ "#"
1121
+ ], Bn = 255, vr = /^[+a-z0-9A-Z_-]{0,63}$/, zn = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Hn = {
1122
+ javascript: !0,
1123
+ "javascript:": !0
1124
+ }, Ve = {
1125
+ javascript: !0,
1126
+ "javascript:": !0
1127
+ }, se = {
1128
+ http: !0,
1129
+ https: !0,
1130
+ ftp: !0,
1131
+ gopher: !0,
1132
+ file: !0,
1133
+ "http:": !0,
1134
+ "https:": !0,
1135
+ "ftp:": !0,
1136
+ "gopher:": !0,
1137
+ "file:": !0
1138
+ }, Je = Fn;
1139
+ function we(r, e, t) {
1140
+ if (r && typeof r == "object" && r instanceof H)
1141
+ return r;
1142
+ var n = new H();
1143
+ return n.parse(r, e, t), n;
1144
+ }
1145
+ H.prototype.parse = function(r, e, t) {
1146
+ if (typeof r != "string")
1147
+ throw new TypeError("Parameter 'url' must be a string, not " + typeof r);
1148
+ var n = r.indexOf("?"), a = n !== -1 && n < r.indexOf("#") ? "?" : "#", i = r.split(a), f = /\\/g;
1149
+ i[0] = i[0].replace(f, "/"), r = i.join(a);
1150
+ var o = r;
1151
+ if (o = o.trim(), !t && r.split("#").length === 1) {
1152
+ var l = qn.exec(o);
1153
+ if (l)
1154
+ return this.path = o, this.href = o, this.pathname = l[1], l[2] ? (this.search = l[2], e ? this.query = Je.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : e && (this.search = "", this.query = {}), this;
1155
+ }
1156
+ var s = Pn.exec(o);
1157
+ if (s) {
1158
+ s = s[0];
1159
+ var c = s.toLowerCase();
1160
+ this.protocol = c, o = o.substr(s.length);
1161
+ }
1162
+ if (t || s || o.match(/^\/\/[^@/]+@[^@/]+/)) {
1163
+ var m = o.substr(0, 2) === "//";
1164
+ m && !(s && Ve[s]) && (o = o.substr(2), this.slashes = !0);
1165
+ }
1166
+ if (!Ve[s] && (m || s && !se[s])) {
1167
+ for (var u = -1, d = 0; d < mr.length; d++) {
1168
+ var g = o.indexOf(mr[d]);
1169
+ g !== -1 && (u === -1 || g < u) && (u = g);
1170
+ }
1171
+ var I, S;
1172
+ u === -1 ? S = o.lastIndexOf("@") : S = o.lastIndexOf("@", u), S !== -1 && (I = o.slice(0, S), o = o.slice(S + 1), this.auth = decodeURIComponent(I)), u = -1;
1173
+ for (var d = 0; d < dr.length; d++) {
1174
+ var g = o.indexOf(dr[d]);
1175
+ g !== -1 && (u === -1 || g < u) && (u = g);
1176
+ }
1177
+ u === -1 && (u = o.length), this.host = o.slice(0, u), o = o.slice(u), this.parseHost(), this.hostname = this.hostname || "";
1178
+ var F = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
1179
+ if (!F)
1180
+ for (var y = this.hostname.split(/\./), d = 0, p = y.length; d < p; d++) {
1181
+ var x = y[d];
1182
+ if (x && !x.match(vr)) {
1183
+ for (var b = "", O = 0, N = x.length; O < N; O++)
1184
+ x.charCodeAt(O) > 127 ? b += "x" : b += x[O];
1185
+ if (!b.match(vr)) {
1186
+ var T = y.slice(0, d), $ = y.slice(d + 1), D = x.match(zn);
1187
+ D && (T.push(D[1]), $.unshift(D[2])), $.length && (o = "/" + $.join(".") + o), this.hostname = T.join(".");
1188
+ break;
1189
+ }
1190
+ }
1191
+ }
1192
+ this.hostname.length > Bn ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), F || (this.hostname = Mn.toASCII(this.hostname));
1193
+ var K = this.port ? ":" + this.port : "", k = this.hostname || "";
1194
+ this.host = k + K, this.href += this.host, F && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
1195
+ }
1196
+ if (!Hn[c])
1197
+ for (var d = 0, p = Ge.length; d < p; d++) {
1198
+ var R = Ge[d];
1199
+ if (o.indexOf(R) !== -1) {
1200
+ var q = encodeURIComponent(R);
1201
+ q === R && (q = escape(R)), o = o.split(R).join(q);
1202
+ }
1203
+ }
1204
+ var M = o.indexOf("#");
1205
+ M !== -1 && (this.hash = o.substr(M), o = o.slice(0, M));
1206
+ var W = o.indexOf("?");
1207
+ if (W !== -1 ? (this.search = o.substr(W), this.query = o.substr(W + 1), e && (this.query = Je.parse(this.query)), o = o.slice(0, W)) : e && (this.search = "", this.query = {}), o && (this.pathname = o), se[c] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
1208
+ var K = this.pathname || "", ee = this.search || "";
1209
+ this.path = K + ee;
1210
+ }
1211
+ return this.href = this.format(), this;
1212
+ };
1213
+ function Kn(r) {
1214
+ return typeof r == "string" && (r = we(r)), r instanceof H ? r.format() : H.prototype.format.call(r);
1215
+ }
1216
+ H.prototype.format = function() {
1217
+ var r = this.auth || "";
1218
+ r && (r = encodeURIComponent(r), r = r.replace(/%3A/i, ":"), r += "@");
1219
+ var e = this.protocol || "", t = this.pathname || "", n = this.hash || "", a = !1, i = "";
1220
+ this.host ? a = r + this.host : this.hostname && (a = r + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (a += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (i = Je.stringify(this.query, {
1221
+ arrayFormat: "repeat",
1222
+ addQueryPrefix: !1
1223
+ }));
1224
+ var f = this.search || i && "?" + i || "";
1225
+ return e && e.substr(-1) !== ":" && (e += ":"), this.slashes || (!e || se[e]) && a !== !1 ? (a = "//" + (a || ""), t && t.charAt(0) !== "/" && (t = "/" + t)) : a || (a = ""), n && n.charAt(0) !== "#" && (n = "#" + n), f && f.charAt(0) !== "?" && (f = "?" + f), t = t.replace(/[?#]/g, function(o) {
1226
+ return encodeURIComponent(o);
1227
+ }), f = f.replace("#", "%23"), e + a + t + f + n;
1228
+ };
1229
+ function kn(r, e) {
1230
+ return we(r, !1, !0).resolve(e);
1231
+ }
1232
+ H.prototype.resolve = function(r) {
1233
+ return this.resolveObject(we(r, !1, !0)).format();
1234
+ };
1235
+ function Qn(r, e) {
1236
+ return r ? we(r, !1, !0).resolveObject(e) : e;
1237
+ }
1238
+ H.prototype.resolveObject = function(r) {
1239
+ if (typeof r == "string") {
1240
+ var e = new H();
1241
+ e.parse(r, !1, !0), r = e;
1242
+ }
1243
+ for (var t = new H(), n = Object.keys(this), a = 0; a < n.length; a++) {
1244
+ var i = n[a];
1245
+ t[i] = this[i];
1246
+ }
1247
+ if (t.hash = r.hash, r.href === "")
1248
+ return t.href = t.format(), t;
1249
+ if (r.slashes && !r.protocol) {
1250
+ for (var f = Object.keys(r), o = 0; o < f.length; o++) {
1251
+ var l = f[o];
1252
+ l !== "protocol" && (t[l] = r[l]);
1253
+ }
1254
+ return se[t.protocol] && t.hostname && !t.pathname && (t.pathname = "/", t.path = t.pathname), t.href = t.format(), t;
1255
+ }
1256
+ if (r.protocol && r.protocol !== t.protocol) {
1257
+ if (!se[r.protocol]) {
1258
+ for (var s = Object.keys(r), c = 0; c < s.length; c++) {
1259
+ var m = s[c];
1260
+ t[m] = r[m];
1261
+ }
1262
+ return t.href = t.format(), t;
1263
+ }
1264
+ if (t.protocol = r.protocol, !r.host && !Ve[r.protocol]) {
1265
+ for (var p = (r.pathname || "").split("/"); p.length && !(r.host = p.shift()); )
1266
+ ;
1267
+ r.host || (r.host = ""), r.hostname || (r.hostname = ""), p[0] !== "" && p.unshift(""), p.length < 2 && p.unshift(""), t.pathname = p.join("/");
1268
+ } else
1269
+ t.pathname = r.pathname;
1270
+ if (t.search = r.search, t.query = r.query, t.host = r.host || "", t.auth = r.auth, t.hostname = r.hostname || r.host, t.port = r.port, t.pathname || t.search) {
1271
+ var u = t.pathname || "", d = t.search || "";
1272
+ t.path = u + d;
1273
+ }
1274
+ return t.slashes = t.slashes || r.slashes, t.href = t.format(), t;
1275
+ }
1276
+ var g = t.pathname && t.pathname.charAt(0) === "/", I = r.host || r.pathname && r.pathname.charAt(0) === "/", S = I || g || t.host && r.pathname, F = S, y = t.pathname && t.pathname.split("/") || [], p = r.pathname && r.pathname.split("/") || [], x = t.protocol && !se[t.protocol];
1277
+ if (x && (t.hostname = "", t.port = null, t.host && (y[0] === "" ? y[0] = t.host : y.unshift(t.host)), t.host = "", r.protocol && (r.hostname = null, r.port = null, r.host && (p[0] === "" ? p[0] = r.host : p.unshift(r.host)), r.host = null), S = S && (p[0] === "" || y[0] === "")), I)
1278
+ t.host = r.host || r.host === "" ? r.host : t.host, t.hostname = r.hostname || r.hostname === "" ? r.hostname : t.hostname, t.search = r.search, t.query = r.query, y = p;
1279
+ else if (p.length)
1280
+ y || (y = []), y.pop(), y = y.concat(p), t.search = r.search, t.query = r.query;
1281
+ else if (r.search != null) {
1282
+ if (x) {
1283
+ t.host = y.shift(), t.hostname = t.host;
1284
+ var b = t.host && t.host.indexOf("@") > 0 ? t.host.split("@") : !1;
1285
+ b && (t.auth = b.shift(), t.hostname = b.shift(), t.host = t.hostname);
1286
+ }
1287
+ return t.search = r.search, t.query = r.query, (t.pathname !== null || t.search !== null) && (t.path = (t.pathname ? t.pathname : "") + (t.search ? t.search : "")), t.href = t.format(), t;
1288
+ }
1289
+ if (!y.length)
1290
+ return t.pathname = null, t.search ? t.path = "/" + t.search : t.path = null, t.href = t.format(), t;
1291
+ for (var O = y.slice(-1)[0], N = (t.host || r.host || y.length > 1) && (O === "." || O === "..") || O === "", T = 0, $ = y.length; $ >= 0; $--)
1292
+ O = y[$], O === "." ? y.splice($, 1) : O === ".." ? (y.splice($, 1), T++) : T && (y.splice($, 1), T--);
1293
+ if (!S && !F)
1294
+ for (; T--; T)
1295
+ y.unshift("..");
1296
+ S && y[0] !== "" && (!y[0] || y[0].charAt(0) !== "/") && y.unshift(""), N && y.join("/").substr(-1) !== "/" && y.push("");
1297
+ var D = y[0] === "" || y[0] && y[0].charAt(0) === "/";
1298
+ if (x) {
1299
+ t.hostname = D ? "" : y.length ? y.shift() : "", t.host = t.hostname;
1300
+ var b = t.host && t.host.indexOf("@") > 0 ? t.host.split("@") : !1;
1301
+ b && (t.auth = b.shift(), t.hostname = b.shift(), t.host = t.hostname);
1302
+ }
1303
+ return S = S || t.host && y.length, S && !D && y.unshift(""), y.length > 0 ? t.pathname = y.join("/") : (t.pathname = null, t.path = null), (t.pathname !== null || t.search !== null) && (t.path = (t.pathname ? t.pathname : "") + (t.search ? t.search : "")), t.auth = r.auth || t.auth, t.slashes = t.slashes || r.slashes, t.href = t.format(), t;
1304
+ };
1305
+ H.prototype.parseHost = function() {
1306
+ var r = this.host, e = Nn.exec(r);
1307
+ e && (e = e[0], e !== ":" && (this.port = e.substr(1)), r = r.substr(0, r.length - e.length)), r && (this.hostname = r);
1308
+ };
1309
+ var Gn = we, Vn = kn, Mr = Qn, Jn = Kn, Zn = H;
1310
+ function Xn(r, e) {
1311
+ for (var t = 0, n = r.length - 1; n >= 0; n--) {
1312
+ var a = r[n];
1313
+ a === "." ? r.splice(n, 1) : a === ".." ? (r.splice(n, 1), t++) : t && (r.splice(n, 1), t--);
1314
+ }
1315
+ if (e)
1316
+ for (; t--; t)
1317
+ r.unshift("..");
1318
+ return r;
1319
+ }
1320
+ function Yn() {
1321
+ for (var r = "", e = !1, t = arguments.length - 1; t >= -1 && !e; t--) {
1322
+ var n = t >= 0 ? arguments[t] : "/";
1323
+ if (typeof n != "string")
1324
+ throw new TypeError("Arguments to path.resolve must be strings");
1325
+ if (!n)
1326
+ continue;
1327
+ r = n + "/" + r, e = n.charAt(0) === "/";
1328
+ }
1329
+ return r = Xn(jn(r.split("/"), function(a) {
1330
+ return !!a;
1331
+ }), !e).join("/"), (e ? "/" : "") + r || ".";
1332
+ }
1333
+ function jn(r, e) {
1334
+ if (r.filter) return r.filter(e);
1335
+ for (var t = [], n = 0; n < r.length; n++)
1336
+ e(r[n], n, r) && t.push(r[n]);
1337
+ return t;
1338
+ }
1339
+ var Pr = function(r) {
1340
+ function e() {
1341
+ var n = this || self;
1342
+ return delete r.prototype.__magic__, n;
1343
+ }
1344
+ if (typeof globalThis == "object")
1345
+ return globalThis;
1346
+ if (this)
1347
+ return e();
1348
+ r.defineProperty(r.prototype, "__magic__", {
1349
+ configurable: !0,
1350
+ get: e
1351
+ });
1352
+ var t = __magic__;
1353
+ return t;
1354
+ }(Object), ea = (
1355
+ /** @type {formatImport}*/
1356
+ Jn
1357
+ ), Nr = (
1358
+ /** @type {parseImport}*/
1359
+ Gn
1360
+ ), qr = (
1361
+ /** @type {resolveImport}*/
1362
+ Vn
1363
+ ), Ur = (
1364
+ /** @type {UrlImport}*/
1365
+ Zn
1366
+ ), ne = Pr.URL, Wr = Pr.URLSearchParams, ra = /%/g, ta = /\\/g, na = /\n/g, aa = /\r/g, ia = /\t/g, oa = 47;
1367
+ function fa(r) {
1368
+ var e = (
1369
+ /** @type {URL|null} */
1370
+ r ?? null
1371
+ );
1372
+ return !!(e !== null && e?.href && e?.origin);
1373
+ }
1374
+ function la(r) {
1375
+ if (r.hostname !== "")
1376
+ throw new TypeError('File URL host must be "localhost" or empty on browser');
1377
+ for (var e = r.pathname, t = 0; t < e.length; t++)
1378
+ if (e[t] === "%") {
1379
+ var n = e.codePointAt(t + 2) | 32;
1380
+ if (e[t + 1] === "2" && n === 102)
1381
+ throw new TypeError("File URL path must not include encoded / characters");
1382
+ }
1383
+ return decodeURIComponent(e);
1384
+ }
1385
+ function ua(r) {
1386
+ return r.includes("%") && (r = r.replace(ra, "%25")), r.includes("\\") && (r = r.replace(ta, "%5C")), r.includes(`
1387
+ `) && (r = r.replace(na, "%0A")), r.includes("\r") && (r = r.replace(aa, "%0D")), r.includes(" ") && (r = r.replace(ia, "%09")), r;
1388
+ }
1389
+ var Br = (
1390
+ /**
1391
+ * @type {domainToASCII}
1392
+ */
1393
+ function(e) {
1394
+ if (typeof e > "u")
1395
+ throw new TypeError('The "domain" argument must be specified');
1396
+ return new ne("http://" + e).hostname;
1397
+ }
1398
+ ), zr = (
1399
+ /**
1400
+ * @type {domainToUnicode}
1401
+ */
1402
+ function(e) {
1403
+ if (typeof e > "u")
1404
+ throw new TypeError('The "domain" argument must be specified');
1405
+ return new ne("http://" + e).hostname;
1406
+ }
1407
+ ), Hr = (
1408
+ /**
1409
+ * @type {(url: string) => URL}
1410
+ */
1411
+ function(e) {
1412
+ var t = new ne("file://"), n = Yn(e), a = e.charCodeAt(e.length - 1);
1413
+ return a === oa && n[n.length - 1] !== "/" && (n += "/"), t.pathname = ua(n), t;
1414
+ }
1415
+ ), Kr = (
1416
+ /**
1417
+ * @type {fileURLToPath & ((path: string | URL) => string)}
1418
+ */
1419
+ function(e) {
1420
+ if (!fa(e) && typeof e != "string")
1421
+ throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type ' + typeof e + " (" + e + ")");
1422
+ var t = new ne(e);
1423
+ if (t.protocol !== "file:")
1424
+ throw new TypeError("The URL must be of scheme file");
1425
+ return la(t);
1426
+ }
1427
+ ), kr = (
1428
+ /**
1429
+ * @type {(
1430
+ * ((urlObject: URL, options?: URLFormatOptions) => string) &
1431
+ * ((urlObject: UrlObject | string, options?: never) => string)
1432
+ * )}
1433
+ */
1434
+ function(e, t) {
1435
+ var n, a, i, f;
1436
+ if (t === void 0 && (t = {}), !(e instanceof ne))
1437
+ return ea(e);
1438
+ if (typeof t != "object" || t === null)
1439
+ throw new TypeError('The "options" argument must be of type object.');
1440
+ var o = (n = t.auth) != null ? n : !0, l = (a = t.fragment) != null ? a : !0, s = (i = t.search) != null ? i : !0;
1441
+ (f = t.unicode) != null;
1442
+ var c = new ne(e.toString());
1443
+ return o || (c.username = "", c.password = ""), l || (c.hash = ""), s || (c.search = ""), c.toString();
1444
+ }
1445
+ ), sa = {
1446
+ format: kr,
1447
+ parse: Nr,
1448
+ resolve: qr,
1449
+ resolveObject: Mr,
1450
+ Url: Ur,
1451
+ URL: ne,
1452
+ URLSearchParams: Wr,
1453
+ domainToASCII: Br,
1454
+ domainToUnicode: zr,
1455
+ pathToFileURL: Hr,
1456
+ fileURLToPath: Kr
1457
+ };
1458
+ const ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1459
+ __proto__: null,
1460
+ URL: ne,
1461
+ URLSearchParams: Wr,
1462
+ Url: Ur,
1463
+ default: sa,
1464
+ domainToASCII: Br,
1465
+ domainToUnicode: zr,
1466
+ fileURLToPath: Kr,
1467
+ format: kr,
1468
+ parse: Nr,
1469
+ pathToFileURL: Hr,
1470
+ resolve: qr,
1471
+ resolveObject: Mr
1472
+ }, Symbol.toStringTag, { value: "Module" }));
1473
+ export {
1474
+ ya as u
1475
+ };